/* sportgame-tw · Obsidian casino vault · campaign 1000/588 */
.box-promo-active {
  padding-bottom: clamp(92px, 15vw, 118px);
}

.box-dialog-open {
  overflow: hidden;
}

.box-footer-promo,
.box-backdrop {
  box-sizing: border-box;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

.box-footer-promo *,
.box-backdrop * {
  box-sizing: border-box;
}

.box-footer-promo {
  position: fixed;
  z-index: 2147483000;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  max-width: 860px;
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(130, 255, 225, 0.36);
  border-radius: 14px;
  background:
    linear-gradient(110deg, rgba(112, 255, 222, 0.08), transparent 38%),
    #070a0d;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.56), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.box-footer-promo.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.box-footer-link {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 14px;
  padding: 12px 58px 12px 18px;
  color: #f4fffc;
  text-decoration: none;
}

.box-footer-gem {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid #baffef;
  background: linear-gradient(145deg, #eafff9 0 22%, #59e6c6 23% 58%, #123d39 59%);
  box-shadow: 0 0 24px rgba(89, 230, 198, 0.4);
  clip-path: polygon(50% 0, 88% 25%, 72% 82%, 50% 100%, 28% 82%, 12% 25%);
}

.box-footer-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.box-footer-copy small {
  color: #7ee8d0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.box-footer-copy strong {
  font-size: clamp(15px, 3.6vw, 21px);
  letter-spacing: 0.03em;
}

.box-footer-cta-pill {
  margin-left: auto;
  padding: 9px 15px;
  border: 1px solid rgba(186, 255, 239, 0.7);
  border-radius: 8px;
  background: #baffef;
  color: #07120f;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.box-footer-close,
.box-close {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(2, 5, 7, 0.82);
  color: #f4fffc;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.box-footer-close {
  top: 8px;
  right: 8px;
}

.box-close {
  top: 14px;
  right: 14px;
}

.box-footer-close:focus-visible,
.box-close:focus-visible,
.box-reveal:focus-visible,
.box-cta:focus-visible {
  outline: 3px solid #baffef;
  outline-offset: 3px;
}

.box-backdrop {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 42%, rgba(50, 85, 78, 0.24), transparent 44%),
    rgba(1, 3, 5, 0.82);
  opacity: 0;
  transition: opacity 180ms ease;
}

.box-backdrop.is-visible {
  opacity: 1;
}

.box-card {
  position: relative;
  width: min(94vw, 430px);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 28px 26px 22px;
  border: 1px solid rgba(126, 232, 208, 0.4);
  border-radius: 26px 8px 26px 8px;
  background:
    linear-gradient(135deg, transparent 0 12px, rgba(119, 255, 224, 0.08) 13px 14px, transparent 15px),
    radial-gradient(circle at 50% 34%, rgba(63, 151, 133, 0.2), transparent 38%),
    linear-gradient(155deg, #11171b, #050709 64%);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.74),
    inset 0 0 0 4px #090d10,
    inset 0 0 0 5px rgba(126, 232, 208, 0.12);
  color: #f5fffc;
  text-align: center;
  transform: translateY(18px) scale(0.97);
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.box-backdrop.is-visible .box-card {
  transform: translateY(0) scale(1);
}

.box-eyebrow {
  padding-right: 28px;
  color: #71d7c0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.box-title {
  margin: 9px 0 4px;
  font-size: clamp(26px, 7vw, 36px);
  letter-spacing: 0.05em;
}

.box-description {
  margin: 0;
  color: rgba(235, 255, 250, 0.68);
  font-size: 13px;
}

.box-vault {
  display: grid;
  min-height: 230px;
  place-items: center;
  margin: 8px 0 0;
}

.box-vault-frame {
  position: relative;
  width: 214px;
  height: 214px;
  border: 2px solid #27343a;
  border-radius: 28px 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 28%),
    #0c1115;
  box-shadow:
    inset 0 0 0 8px #070a0d,
    inset 0 0 0 10px #26343a,
    0 20px 34px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.box-vault-bolt {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid #516269;
  border-radius: 50%;
  background: #11191d;
  box-shadow: inset 2px 2px 2px rgba(255, 255, 255, 0.13);
}

.box-bolt-a { top: 16px; left: 17px; }
.box-bolt-b { top: 16px; right: 17px; }
.box-bolt-c { right: 17px; bottom: 16px; }
.box-bolt-d { bottom: 16px; left: 17px; }

.box-vault-door {
  position: absolute;
  inset: 27px;
  border: 3px solid #405057;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 4deg, rgba(255, 255, 255, 0.035) 0 3deg, transparent 3deg 16deg),
    radial-gradient(circle, #172126 0 36%, #0a0f12 37% 54%, #26343a 55% 58%, #0a0e11 59%);
  box-shadow:
    inset 0 0 26px rgba(0, 0, 0, 0.8),
    0 0 0 5px #070a0d,
    0 0 0 7px rgba(101, 132, 131, 0.36);
  animation: boxVaultBreathe 3.8s ease-in-out infinite;
  transform: translateX(0) rotate(0);
  transition:
    transform 560ms 300ms cubic-bezier(.4, 0, .2, 1),
    opacity 260ms 600ms ease;
  z-index: 2;
}

.box-vault-ring {
  position: absolute;
  inset: 41px;
  border: 2px solid rgba(126, 232, 208, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(126, 232, 208, 0.2);
}

.box-vault-spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, #6e8788, #27383b);
  transform-origin: 0 50%;
}

.box-spoke-a { transform: rotate(0deg); }
.box-spoke-b { transform: rotate(90deg); }
.box-spoke-c { transform: rotate(180deg); }
.box-spoke-d { transform: rotate(270deg); }

.box-vault-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border: 5px solid #a6c1be;
  border-radius: 50%;
  background: radial-gradient(circle, #172226 0 25%, #637b7b 27% 35%, #0d1417 37%);
  box-shadow: 0 0 20px rgba(126, 232, 208, 0.22);
  transform: translate(-50%, -50%);
  transition: transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.box-vault-handle::before,
.box-vault-handle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg, #314246, #b3cdca, #314246);
  content: "";
  transform: translate(-50%, -50%);
}

.box-vault-handle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.box-vault-reward {
  position: absolute;
  inset: 28px;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 2px;
  border: 1px solid rgba(159, 247, 226, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(98, 227, 198, 0.24), transparent 58%),
    #07100f;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 260ms 590ms ease, transform 340ms 590ms cubic-bezier(.2, .9, .2, 1);
}

.box-vault-reward strong {
  color: #d8fff6;
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 0 24px rgba(98, 227, 198, 0.55);
}

.box-vault-reward small {
  color: #8fead5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.box-reward-diamond {
  width: 44px;
  height: 44px;
  justify-self: center;
  border: 2px solid #d8fff6;
  background:
    linear-gradient(135deg, #effffb 0 16%, #62e3c6 17% 48%, #17423b 49% 70%, #9ff7e2 71%);
  box-shadow: 0 0 28px rgba(98, 227, 198, 0.5);
  clip-path: polygon(50% 0, 91% 28%, 72% 83%, 50% 100%, 28% 83%, 9% 28%);
}

.box-is-opening .box-vault-handle {
  transform: translate(-50%, -50%) rotate(270deg);
}

.box-is-opening .box-vault-door,
.box-is-revealed .box-vault-door {
  opacity: 0;
  transform: translateX(132%) rotate(7deg);
}

.box-is-revealed .box-vault-reward {
  opacity: 1;
  transform: scale(1);
}

@keyframes boxVaultBreathe {
  0%, 100% { box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.8), 0 0 0 5px #070a0d, 0 0 0 7px rgba(101, 132, 131, 0.36); }
  50% { box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.8), 0 0 0 5px #070a0d, 0 0 0 7px rgba(126, 232, 208, 0.58), 0 0 28px rgba(126, 232, 208, 0.14); }
}

.box-reveal {
  display: block;
  width: min(100%, 286px);
  min-height: 50px;
  margin: -1px auto 14px;
  padding: 10px 18px;
  border: 1px solid #baffef;
  border-radius: 999px;
  background:
    linear-gradient(100deg, rgba(216, 255, 246, 0.98), rgba(104, 229, 201, 0.98));
  box-shadow: 0 9px 25px rgba(83, 221, 190, 0.25), inset 0 1px rgba(255, 255, 255, 0.76);
  color: #07120f;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.04em;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.box-reveal:hover:not(:disabled) {
  box-shadow: 0 13px 31px rgba(83, 221, 190, 0.38);
  transform: translateY(-2px);
}

.box-reveal:disabled {
  cursor: wait;
  opacity: 0.78;
}

.box-is-revealed .box-reveal:disabled {
  border-color: rgba(159, 247, 226, 0.5);
  background: rgba(17, 46, 41, 0.9);
  color: #baffef;
  cursor: default;
  opacity: 1;
}

.box-live-result {
  min-height: 0;
  overflow: hidden;
  color: #baffef;
  font-size: 12px;
  font-weight: 800;
}

.box-live-result:not(:empty) {
  min-height: 18px;
  margin: -5px 0 8px;
}

.box-offer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin-top: -4px;
}

.box-offer strong {
  font-size: clamp(35px, 10vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.box-offer-highlight {
  color: #9ff7e2;
  text-shadow: 0 0 22px rgba(126, 232, 208, 0.38);
}

.box-offer-label,
.box-offer-divider {
  color: rgba(239, 255, 251, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.box-offer-divider {
  color: #71d7c0;
}

.box-note {
  margin: 12px 0 16px;
  color: rgba(235, 255, 250, 0.68);
  font-size: 12px;
}

.box-cta {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border: 1px solid #d8fff6;
  border-radius: 8px;
  background: linear-gradient(100deg, #8cebd5, #d8fff6);
  box-shadow: 0 12px 28px rgba(83, 221, 190, 0.22);
  color: #07120f;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.box-cta:hover {
  box-shadow: 0 16px 34px rgba(83, 221, 190, 0.34);
  transform: translateY(-2px);
}

.box-compliance {
  margin: 13px 0 0;
  color: rgba(232, 255, 249, 0.52);
  font-size: 11px;
}

@media (max-width: 520px) {
  .box-promo-active {
    padding-bottom: 108px;
  }

  .box-footer-promo {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
  }

  .box-footer-link {
    gap: 10px;
    min-height: 82px;
    padding: 10px 44px 10px 12px;
  }

  .box-footer-gem {
    width: 30px;
    height: 30px;
  }

  .box-footer-cta-pill {
    display: none;
  }

  .box-backdrop {
    place-items: end center;
    padding: 0;
  }

  .box-card {
    width: 100%;
    max-height: 94vh;
    padding: 24px 20px max(18px, env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
    transform: translateY(100%);
  }

  .box-backdrop.is-visible .box-card {
    transform: translateY(0);
  }

  .box-vault {
    min-height: 196px;
  }

  .box-vault-frame {
    width: 180px;
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .box-footer-promo,
  .box-backdrop,
  .box-card,
  .box-cta,
  .box-vault-door {
    animation: none;
    transition: none;
  }

  .box-vault-handle,
  .box-vault-reward,
  .box-reveal {
    transition: none;
  }
}
