.promo-dock {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  z-index: 90;
  display: flex;
  justify-content: center;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 240ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-dock[hidden] {
  display: none !important;
}

.promo-dock.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.promo-dock__surface {
  position: relative;
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  color: #fff;
  pointer-events: auto;
  background: rgba(10, 10, 12, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34), 0 8px 24px rgba(166, 25, 46, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.promo-dock__mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #f8d477;
  background: rgba(248, 212, 119, 0.13);
  border: 1px solid rgba(248, 212, 119, 0.26);
  border-radius: 14px;
  flex: 0 0 auto;
}

.promo-dock__mark svg,
.promo-dock__close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.promo-dock__message {
  min-width: 0;
}

.promo-dock__eyebrow {
  margin: 0 0 2px;
  color: #f8d477;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.promo-dock__headline {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: 0;
  word-break: keep-all;
}

.promo-dock__body {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  word-break: keep-all;
}

.promo-dock__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-dock__code {
  display: inline-flex;
  min-width: 88px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #111114;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.promo-dock__copy,
.promo-dock__close {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 140ms ease, background-color 180ms ease, color 180ms ease;
}

.promo-dock__copy {
  display: inline-flex;
  height: 40px;
  min-width: 86px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  background: #a6192e;
  border-radius: 12px;
}

.promo-dock__copy:hover {
  background: #c51f37;
}

.promo-dock__copy:active,
.promo-dock__close:active {
  transform: scale(0.96);
}

.promo-dock__copy.is-copied {
  color: #092414;
  background: #86efac;
}

.promo-dock__close {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.promo-dock__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.promo-dock__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .promo-dock {
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 14px;
  }

  .promo-dock__surface {
    width: 100%;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px 11px;
    padding: 13px 42px 13px 14px;
    background: linear-gradient(135deg, rgba(31, 26, 22, 0.96), rgba(19, 17, 16, 0.96));
    border-color: rgba(212, 175, 55, 0.24);
    border-radius: 16px;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28), 0 8px 22px rgba(92, 48, 28, 0.14);
  }

  .promo-dock__mark {
    width: 34px;
    height: 34px;
    margin-top: 2px;
    background: rgba(248, 212, 119, 0.1);
    border-color: rgba(248, 212, 119, 0.22);
    border-radius: 11px;
  }

  .promo-dock__mark svg {
    width: 16px;
    height: 16px;
  }

  .promo-dock__headline {
    font-size: 14px;
    line-height: 1.25;
  }

  .promo-dock__body {
    font-size: 11px;
    line-height: 1.35;
  }

  .promo-dock__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(104px, 36%);
    width: calc(100% + 28px);
    margin-top: 2px;
    gap: 0;
  }

  .promo-dock__code {
    min-width: 0;
    height: 38px;
    border-right: 0;
    border-radius: 13px 0 0 13px;
  }

  .promo-dock__copy {
    min-width: 0;
    height: 38px;
    border-radius: 0 13px 13px 0;
  }

  .promo-dock__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 11px;
  }

  .promo-dock__close svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 360px) {
  .promo-dock__surface {
    padding-left: 12px;
  }

  .promo-dock__mark {
    display: none;
  }

  .promo-dock__message,
  .promo-dock__actions {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-dock {
    transition: opacity 120ms ease;
    transform: none;
  }
}
