:root { color-scheme: dark; --bg: #10111a; --panel: #191b29; --surface: #202334; --line: #34384c; --ink: #f4f4fb; --muted: #b3b7cc; --accent: #ccceff; --gold: #efc985; --deep: #16182a; }
:root { --gift-closed-image: url('box.webp'); --gift-open-image: url('box-open.webp'); --gift-tone: grayscale(1) sepia(.7) hue-rotate(194deg) saturate(2.1) brightness(1.08); }
* { box-sizing: border-box; }
body {
  margin: 0;
  padding-left: max(env(safe-area-inset-left, 0px), var(--tg-content-safe-area-inset-left, 0px));
  padding-right: max(env(safe-area-inset-right, 0px), var(--tg-content-safe-area-inset-right, 0px));
  padding-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
  background: radial-gradient(ellipse at 68% -30%, #252440 0%, transparent 58%), var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, sans-serif;
}
.shell { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 80px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; white-space: nowrap; }
.monogram { display: grid; place-items: center; width: 39px; aspect-ratio: 1; color: var(--accent); border: 1px solid #55577a; border-radius: 11px; background: #242641; font-size: .85rem; letter-spacing: -.03em; }
.masthead nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 37px); font-size: .875rem; }
.masthead a { color: var(--muted); text-decoration: none; }
.masthead a:hover { color: var(--ink); }
.demo-label, .caption { font-size: .84rem; color: var(--muted); }
.demo-label { border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px; white-space: nowrap; }
.campaign-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 426px; border: 1px solid #4c4c71; border-radius: 24px; background: linear-gradient(115deg, #1a1b2b 18%, #26263f 68%, #363653); }
.hero-copy { position: relative; z-index: 1; padding: 34px 0 34px 32px; }
.hero-art { position: absolute; inset: 0 0 0 50%; display: grid; place-items: center; pointer-events: none; background: radial-gradient(ellipse at 51% 52%, #8384cf68, transparent 58%); }
.hero-art::after { content: ''; position: absolute; z-index: -1; width: 80%; height: 28%; top: 66%; border: 1px solid #898bb7; border-radius: 50%; background: radial-gradient(ellipse, #171823 0%, #2f3148 68%, #4e5072 100%); box-shadow: inset 0 -2px 0 #b5b6e2a6, 0 14px 0 -2px #191a28; transform: scaleY(.5); }
.hero-box { position: absolute; inset: 0 auto auto; top: 45%; left: 50%; width: 174%; aspect-ratio: 3 / 2; transform: translate(-51%, -48%); filter: drop-shadow(0 19px 18px #090a1770); }
.hero-box > div { position: absolute; inset: 0; }
.hero-box .reveal-open, .hero-box .reveal-lid, .hero:has(.hero-copy[data-open="true"]) .hero-box .reveal-closed { opacity: 0; }
.hero:has(.hero-copy[data-open="true"]) .hero-box :is(.reveal-open, .reveal-lid) { opacity: 1; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.6rem, 4.5vw, 4.25rem); line-height: .97; letter-spacing: -.065em; font-weight: 780; }
h2 { font-size: clamp(1.35rem, 2.15vw, 1.75rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 720; }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 680; margin-bottom: 19px; }
.intro { max-width: 31ch; color: var(--muted); margin: 19px 0 23px; }
button { cursor: pointer; font: inherit; color: inherit; border-radius: 10px; border: 1px solid var(--line); background: transparent; padding: 8px 13px; }
button:enabled:hover { border-color: var(--accent); }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .55; }
.primary { border: 1px solid transparent; background: var(--accent); color: var(--deep); padding: 12px 17px; font-weight: 750; }
.hero .caption { margin-top: 11px; max-width: 34ch; }
#entry-status { color: var(--muted); }
.route { margin-top: 20px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 19px; }
.route > h2 { margin-bottom: 14px; }
.box-list { display: grid; gap: 6px; }
.box-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 64px; padding: 9px 11px; border: 1px solid transparent; border-radius: 11px; }
.box-row + .box-row { border-top-color: var(--line); }
.box-row[data-state="available"] { border-color: #53567b; background: #252843; }
.glyph { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 9px; background: var(--surface); color: var(--accent); font-size: 20px; }
.box-row[data-kind="gold"] .glyph { color: var(--gold); background: #36303c; }
.box-row h3 { font-size: 1rem; }
.box-row p { color: var(--muted); font-size: .875rem; }
.row-action { font-size: .875rem; }
.stock, .club, .gift-card { border: 1px solid var(--line); background: var(--panel); border-radius: 19px; }
.club, .gift-card, .stock-copy { padding: 20px 22px; }
.stock { overflow: hidden; }
.prize-art { min-height: 162px; aspect-ratio: 2.48; background: linear-gradient(0deg, #191b29 0%, transparent 35%), url('prize-showcase.webp') center / cover, #171827; }
.stock-copy > p, .club p, .gift-card p { margin-top: 9px; color: var(--muted); }
.stock-label { margin-top: 13px; color: var(--muted); font-size: .875rem; font-weight: 650; }
.stock dl { margin: 2px 0 0; }
.stock dl div { display: flex; justify-content: space-between; gap: 8px; padding-block: 7px; border-bottom: 1px solid var(--line); }
.stock dd { color: var(--accent); margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.club { margin-top: 20px; }
.referral { padding-top: 13px; border-top: 1px solid var(--line); margin-top: 15px; }
.referral p:first-child { margin-top: 0; }
.referral button { margin-top: 9px; }
.checks { padding-left: 19px; color: var(--muted); font-size: .88rem; }
.checks li { margin-top: 4px; }
.text-button { border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding: 8px 0 0; }
.gift-area { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; margin-top: 18px; }
[hidden] { display: none !important; }
.gift-card { border-color: #5b5e8a; background: radial-gradient(ellipse at 90% 0%, #383958, transparent 66%), var(--panel); }
.gift-card h2 { font-size: 1.65rem; }
.gift-card .eyebrow { color: var(--accent); margin: 0 0 7px; }
.gift-card button { margin-top: 12px; }
.claim-time { color: var(--accent); }
.demo-panel { margin-block: 24px 38px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.demo-panel summary { cursor: pointer; width: fit-content; min-height: 40px; align-content: center; padding-inline: 2px; }
.demo-panel p { margin-block: 12px 8px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.demo-actions button { padding: 5px 9px; }
dialog { max-width: min(480px, calc(100% - 28px)); padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--ink); }
dialog::backdrop { background: #000a; }
dialog li { margin-block: 8px; }
dialog h2 { padding-right: 28px; font-size: 1.75rem; }
.close { position: absolute; top: 12px; right: 12px; padding: 2px 9px; font-size: 1.25rem; }
.reveal { --reveal-motion: 3500ms; --reveal-duration: 4500ms; width: min(530px, calc(100% - 32px)); max-width: none; padding: 0; overflow: hidden; background: #141624; }
.reveal-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 3 / 2;
  background: radial-gradient(ellipse at 22% 36%, #3b3b62 0%, #232640 29%, transparent 60%),
    radial-gradient(ellipse at 54% 86%, #26394b 0%, #181b2b 48%, #11121e 82%);
}
.reveal-art > div { position: absolute; inset: 0; }
.reveal-stage, .reveal-closed { background: var(--gift-closed-image) center / 100% 100%; }
.reveal-stage { mask-image: linear-gradient(transparent 77.6%, #000 81%); }
.reveal-stage, .reveal-closed, .reveal-open, .reveal-lid { filter: var(--gift-tone); }
/* The masks follow the box outlines in the 1200 × 800 source illustrations. */
.reveal-closed {
  transform-origin: 50% 65%;
  clip-path: polygon(28.75% 40.75%, 33.58% 38.38%, 31.83% 38.63%, 34.5% 34.63%, 36.58% 33.25%,
    35.5% 32.38%, 34.92% 31.13%, 34.83% 29%, 35.25% 27.5%, 36.5% 25.88%, 38.17% 23.88%,
    39.5% 22.75%, 40.42% 22.5%, 41.58% 22.75%, 42.92% 23.5%, 44.58% 25.13%, 45.92% 27.13%,
    47% 29.13%, 47.92% 31.38%, 50.08% 31.5%, 50.92% 32%, 52.25% 29.25%, 53.75% 27%,
    55.92% 24.63%, 57.5% 23.13%, 58.83% 22.5%, 60.25% 22.5%, 61.58% 22.88%, 62.25% 23.88%,
    62.83% 26.38%, 63.5% 28.5%, 63.5% 30.5%, 62.92% 32.38%, 62.08% 33.5%, 60.25% 35.25%,
    61.5% 35.75%, 69.92% 37.38%, 69.83% 45.13%, 69.33% 45.63%, 69.17% 68.13%, 55.42% 77.5%,
    29.67% 72%, 29.5% 49.25%, 28.75% 49%);
}
.reveal-open, .reveal-lid { background: var(--gift-open-image) center / 100% 100%; }
.reveal-open { clip-path: polygon(29.67% 45%, 42.42% 40.25%, 68.67% 42.63%, 69.25% 68.38%, 55.42% 77.38%, 29.67% 72%); }
.reveal-lid {
  transform-origin: 54% 26%;
  clip-path: polygon(36% 23.5%, 37.5% 16.25%, 42.58% 15.13%, 40.92% 14.88%, 42.67% 12.5%,
    44.67% 11.38%, 44% 9.63%, 43.83% 8.25%, 43.92% 7%, 44.67% 5.63%, 45.92% 4.38%,
    48% 2.88%, 48.92% 2.5%, 49.92% 2.5%, 50.83% 3%, 52.25% 4.5%, 53.67% 6.75%,
    54.5% 8.75%, 55.17% 11.88%, 56.42% 12.25%, 57.75% 13.13%, 59.75% 11.38%, 61.83% 9.38%,
    63.92% 7.38%, 65.17% 6.63%, 66.25% 6.25%, 67.25% 6.5%, 67.92% 7.38%, 68.5% 9.13%,
    69.08% 12.5%, 69.08% 14.38%, 68.58% 16%, 67.83% 17.5%, 66.67% 18.63%, 65.75% 19.38%,
    73.58% 24%, 71% 38.13%, 69.92% 38.38%, 51.58% 34.13%, 49.75% 33.38%, 44.08% 29.13%,
    43% 28.38%, 41.75% 30.5%, 41.33% 26.88%, 39.67% 25.5%, 37.92% 26%, 38.17% 24.88%, 37.42% 25%);
}
.reveal[open] .reveal-closed { animation: box-closed var(--reveal-motion) ease-in-out both; }
.reveal[open] .reveal-open { animation: box-open var(--reveal-motion) ease-out both; }
.reveal[open] .reveal-lid { animation: box-lid var(--reveal-motion) ease-out both; }
.reveal-light { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at 51% 55%, #fff0b3c4 0%, #d9a14e45 27%, transparent 59%); }
.reveal[open] .reveal-light { animation: reveal-light var(--reveal-motion) ease-out both; }
.reveal-art > .reveal-prize {
  inset: 9% 8% 26%;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 9px;
  opacity: 0;
}
.reveal[open] .reveal-prize { animation: prize-appear var(--reveal-motion) ease-out both; }
.reveal-prize-mark {
  display: grid;
  place-items: center;
  min-width: 46%;
  padding: clamp(13px, 4.4vw, 23px) 18px;
  border: 1px solid #a6a9e2;
  border-radius: 17px;
  background: linear-gradient(145deg, #42456c, #191b32 75%);
  box-shadow: inset 0 0 18px #abaff42d, 0 6px 28px #9c9eef32;
  color: #eeeefe;
  font-size: clamp(1.55rem, 6vw, 2.65rem);
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.reveal-prize-mark:empty { display: none; }
.reveal-prize[data-prize="ps5"] .reveal-prize-mark {
  display: block;
  width: 63%;
  min-width: 0;
  aspect-ratio: 1.65;
  padding: 0;
  border: 0;
  background: url('prize-console.webp') center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 7px 12px #0008);
}
.reveal-prize-name { text-align: center; color: var(--ink); font-weight: 720; font-size: clamp(.92rem, 3.4vw, 1.2rem); line-height: 1.2; text-wrap: balance; }
.activation-check { display: inline-grid; place-items: center; width: 1.6em; aspect-ratio: 1; margin-right: .2em; border-radius: 50%; background: var(--accent); color: var(--deep); font-weight: 800; }
.activation-pop { animation: activation-pop 380ms ease-out both; }
@keyframes box-closed {
  0% { opacity: 1; transform: scale(1); }
  8% { transform: translateX(-1.5%) rotate(-2deg); }
  12% { transform: translateX(2.4%) rotate(3deg); }
  16% { transform: translateX(-2%) rotate(-2.5deg); }
  21% { transform: translateX(0) rotate(0); }
  30% { transform: translateX(-2.6%) rotate(-3.5deg); }
  34% { transform: translateX(3.2%) rotate(4deg); }
  38% { transform: translateX(-3.6%) rotate(-4.5deg); }
  42% { transform: translateX(3.5%) rotate(4.4deg); }
  46% { transform: translateX(-3.4%) rotate(-4.2deg); }
  50% { transform: translateX(3%) rotate(3.8deg); }
  54% { transform: translateX(-2%) rotate(-2.6deg); }
  59% { opacity: 1; transform: translateX(0) rotate(0); animation-timing-function: step-end; }
  65%, 100% { opacity: 0; transform: translateX(0) rotate(0); }
}
@keyframes box-open {
  0% { opacity: 0; animation-timing-function: step-end; }
  65%, 71% { opacity: 1; }
  78%, 100% { opacity: 0; }
}
@keyframes box-lid {
  0% { opacity: 0; transform: translateY(.75%); animation-timing-function: step-end; }
  65% { opacity: 1; transform: translateY(.75%); }
  71% { opacity: 1; transform: translateY(-2%); }
  78%, 100% { opacity: 0; transform: translateY(-2.5%); }
}
@keyframes prize-appear {
  0%, 72% { opacity: 0; transform: translateY(10px) scale(.96); }
  84%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes reveal-light {
  0%, 46%, 100% { opacity: 0; transform: scale(.7); }
  59% { opacity: .32; }
  65% { opacity: .94; transform: scale(1.18); }
  82% { opacity: .22; transform: scale(1.48); }
}
@keyframes activation-pop { 0% { transform: scale(.5); opacity: .4; } 65% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .activation-pop { animation: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .shell { width: min(690px, calc(100% - 32px)); }
  .campaign-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hero { min-height: 390px; }
  h1 { font-size: clamp(2.55rem, 8vw, 4.05rem); }
  .prize-art { aspect-ratio: 2.7; }
}
@media (max-width: 560px) {
  .masthead { min-height: 61px; margin-bottom: 12px; gap: 10px; }
  .masthead nav { display: none; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-copy { padding: 21px 18px 0; }
  .hero-art { position: relative; inset: auto; height: 220px; margin-top: 6px; }
  .hero-art::after { width: min(80%, 330px); height: 30%; top: 72%; }
  .hero-box { width: min(520px, 145%); top: 51%; }
  .hero:has(.hero-copy[data-open="true"]) .hero-box { width: min(420px, 118%); top: 61%; }
  h1 { font-size: clamp(2.45rem, 11.7vw, 3.45rem); }
  .eyebrow { margin-bottom: 14px; }
  .intro { margin-block: 15px 18px; }
  .hero .primary, .gift-card .primary { width: 100%; min-height: 48px; }
  .route, .stock-copy, .club, .gift-card { padding: 17px; }
  .route { margin-top: 16px; }
  .box-row { gap: 8px; padding-inline: 7px; }
  .row-action { min-height: 44px; padding-inline: 8px; }
}
@media (max-width: 560px) and (max-height: 650px) {
  .hero-art { height: 170px; }
  .hero-box { max-width: 440px; top: 49%; }
  .hero:has(.hero-copy[data-open="true"]) .hero-box { max-width: 320px; }
}
