:root {
  color-scheme: dark;
  --ink: #070d16;
  --gold: #e4c38a;
  --gold-light: #fff0ca;
  --text: #f5f4ee;
  --muted: #a9b6c1;
  --accent: #e4c38a;
  --accent-rgb: 228, 195, 138;
  font-family: Inter, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 280px; background: var(--ink); }
body { min-height: 100vh; min-height: 100dvh; margin: 0; overflow-x: clip; color: var(--text); background: var(--ink); isolation: isolate; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { cursor: wait; }
button, a, [tabindex] { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--gold-light); }
svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
button svg { pointer-events: none; }
::selection { color: #15171b; background: var(--gold); }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.hidden { visibility: hidden; pointer-events: none; }
[inert] { pointer-events: none; }
body[data-world="sport"] { --accent: #83e1ce; --accent-rgb: 131, 225, 206; }
body[data-world="casino"] { --accent: #c9a7f6; --accent-rgb: 201, 167, 246; }

/* One immersive setting, with separate lighting for each destination. */
.scene-root { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; --pointer-x: 0px; --pointer-y: 0px; }
.world { position: absolute; inset: -18px; opacity: 0; background-position: center; background-size: cover; transform: translate3d(var(--pointer-x), var(--pointer-y), 0) scale(1.015); transition: opacity 1.2s ease, transform 1.3s ease-out; }
.world--lobby { opacity: 1; background-image: url("assets/lobby-world-v2.webp"); }
.world--sport { background-image: url("assets/sport-world-v2.webp"); }
.world--casino { background-image: url("assets/casino-world-v2.webp"); }
body[data-world="sport"] .world--lobby,
body[data-world="casino"] .world--lobby { opacity: 0; }
body[data-world="sport"] .world--sport,
body[data-world="casino"] .world--casino { opacity: 1; }
.scene-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(3, 8, 15, .72), rgba(4, 10, 18, .2) 31%, rgba(4, 10, 18, .35) 60%, #050b14 100%), radial-gradient(ellipse at center, transparent 20%, rgba(2, 6, 12, .65)); }
.scene-root::after { position: absolute; z-index: 5; inset: 0; content: ""; box-shadow: inset 0 0 140px rgba(0, 0, 0, .3); }
.world-beam { position: absolute; z-index: 2; top: -40%; width: 12%; height: 170%; background: linear-gradient(180deg, rgba(var(--accent-rgb), .17), transparent 72%); filter: blur(18px); transform: rotate(24deg); transform-origin: top center; animation: beamDrift 23s ease-in-out infinite alternate; }
.beam-one { left: 31%; }
.beam-two { right: 12%; width: 6%; opacity: .55; animation-delay: -11s; }
.scene-mist { position: absolute; z-index: 3; right: -20%; bottom: -17%; left: -20%; height: 47%; background: radial-gradient(ellipse, rgba(var(--accent-rgb), .15), transparent 66%); filter: blur(35px); animation: mistDrift 25s ease-in-out infinite alternate; }
.floating-suits { opacity: 0; transition: opacity 1s; }
body[data-world="casino"] .floating-suits { opacity: 1; }
.floating-suits span { position: absolute; z-index: 2; top: 34%; left: 14%; color: #d6b3fd; font: 66px/1 Georgia, serif; opacity: .2; filter: blur(.4px); animation: suitFloat 19s ease-in-out infinite alternate; }
.floating-suits span:nth-child(2) { top: 61%; left: 81%; font-size: 42px; color: var(--gold); animation-delay: -9s; }
.floating-suits span:nth-child(3) { top: 20%; left: 78%; font-size: 30px; animation-delay: -4s; }
#worldParticles { position: absolute; z-index: 4; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }

.game-shell { position: relative; z-index: 10; width: min(1240px, calc(100% - 80px)); margin: 0 auto; padding-top: 24px; }
.topbar { display: flex; min-height: 63px; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(221, 226, 235, .13); }
.brand { display: flex; min-width: 0; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 37px; height: 44px; place-items: center; border: 1px solid rgba(228, 195, 138, .6); border-radius: 8px 2px 8px 2px; background: linear-gradient(145deg, rgba(228, 195, 138, .2), rgba(228, 195, 138, .02)); }
.brand-mark svg { width: 19px; height: 27px; fill: var(--gold); filter: drop-shadow(0 0 10px rgba(228, 195, 138, .35)); }
.brand b { display: block; font: 800 26px/.95 "Barlow Condensed", sans-serif; letter-spacing: 1.2px; }
.brand small { display: block; margin-top: 7px; color: var(--gold); font-size: 8px; font-weight: 600; letter-spacing: 3px; }
.topbar-center { display: flex; align-items: center; gap: 13px; color: #c1c6c9; font-size: 9px; font-weight: 600; letter-spacing: 3px; }
.topbar-center span { width: 25px; height: 1px; background: linear-gradient(90deg, transparent, rgba(228, 195, 138, .6)); }
.topbar-center span:last-child { transform: rotate(180deg); }
.power-pill { display: flex; min-width: 179px; align-items: center; gap: 12px; padding: 10px 15px; border: 1px solid rgba(228, 195, 138, .28); border-radius: 10px; background: rgba(8, 16, 26, .65); box-shadow: inset 0 1px rgba(255, 255, 255, .04); }
.power-pill > svg { width: 20px; height: 27px; fill: var(--gold); }
.power-description { display: grid; gap: 5px; min-width: 0; }
.power-description small { max-width: 150px; overflow: hidden; color: #cbb98f; font-size: 8px; font-weight: 700; letter-spacing: .8px; text-overflow: ellipsis; white-space: nowrap; }
.power-description > span { color: #b2bdc7; font-size: 10px; }
.power-pill > b { min-width: 14px; margin-left: auto; color: var(--gold-light); font: 700 30px/1 "Barlow Condensed", sans-serif; }
.power-pill.empty { border-color: rgba(178, 129, 114, .4); }
.power-pill.empty > svg { opacity: .45; }
.scene-navigation { display: grid; min-height: 32px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 18px 0 12px; }
.back-button { display: inline-flex; width: fit-content; align-items: center; gap: 9px; padding: 6px 0; border: 0; background: none; color: #c1c9d1; font-size: 10px; transition: color .2s; }
.back-button svg { width: 18px; height: 18px; transform: rotate(180deg); }
.back-button:hover { color: var(--gold-light); }
#sceneCaption { color: #c0c9d2; font-size: 10px; letter-spacing: .3px; text-shadow: 0 2px 8px #000; }
.scene-coordinate { justify-self: end; color: #91a0af; font-size: 8px; letter-spacing: 1.8px; }
.screen { display: none; }
.screen.active { display: block; animation: screenReveal .55s ease-out both; }
.selection-heading, .opening-heading { margin: 18px auto 22px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: 3.2px; }
.eyebrow > span { width: 23px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow > span:last-child { transform: rotate(180deg); }
h1, h2 { margin: 12px 0 0; font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(42px, 5.1vw, 72px); line-height: .98; letter-spacing: -.4px; text-shadow: 0 5px 30px rgba(0, 0, 0, .65); }
h1 em, h2 em { color: var(--gold-light); font-style: normal; }
.selection-heading p, .opening-heading p { margin: 13px auto 0; color: #c3cbd3; font-size: 12px; line-height: 1.6; text-shadow: 0 2px 8px #000; }

/* The chest art shares the arena backdrop rather than a separate tile scene. */
.chest-grid { position: relative; display: grid; width: min(990px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; margin: 24px auto 0; }
.choice-card { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: stretch; padding: 20px 26px 23px; overflow: hidden; border: 1px solid rgba(var(--card-accent-rgb), .3); border-radius: 18px; background: linear-gradient(165deg, rgba(16, 31, 38, .59), rgba(6, 14, 23, .78)); box-shadow: 0 18px 55px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .07); backdrop-filter: blur(5px); text-align: center; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.choice-card.sport { --card-accent: #8edccb; --card-accent-rgb: 142, 220, 203; }
.choice-card.casino { --card-accent: #c9a5f5; --card-accent-rgb: 201, 165, 245; background: linear-gradient(165deg, rgba(31, 23, 46, .61), rgba(10, 12, 24, .8)); }
.choice-card::before { position: absolute; right: 22%; bottom: 0; left: 22%; height: 1px; content: ""; background: linear-gradient(90deg, transparent, var(--card-accent), transparent); box-shadow: 0 0 18px var(--card-accent); }
.choice-card:hover { transform: translateY(-5px); border-color: rgba(var(--card-accent-rgb), .7); box-shadow: 0 25px 65px rgba(0, 0, 0, .4), 0 0 35px rgba(var(--card-accent-rgb), .09); }
.card-topline { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; color: #d0d4d8; font-size: 8px; font-weight: 600; letter-spacing: 1.8px; }
.category-icon { display: grid; width: 30px; height: 30px; flex-shrink: 0; place-items: center; border: 1px solid rgba(var(--card-accent-rgb), .32); border-radius: 8px; background: rgba(var(--card-accent-rgb), .06); color: var(--card-accent); }
.category-icon svg { width: 19px; height: 19px; }
.card-number { margin-left: auto; color: var(--card-accent); font: 600 17px/1 "Barlow Condensed", sans-serif; letter-spacing: 2px; opacity: .75; }
.choice-art { position: relative; display: block; height: 260px; margin: 5px -18px 10px; }
.choice-art img { position: absolute; z-index: 2; top: 50%; left: 50%; display: block; width: 340px; max-width: 112%; height: auto; margin: 0; filter: drop-shadow(0 18px 15px rgba(0, 0, 0, .45)); transform: translate(-50%, -50%); transition: transform .5s ease, filter .5s ease; }
.choice-card:hover .choice-art img { transform: translate(-50%, calc(-50% - 7px)) scale(1.025); filter: drop-shadow(0 22px 20px rgba(0, 0, 0, .5)); }
.card-aura { position: absolute; z-index: 0; right: 10%; bottom: 21%; left: 10%; height: 45%; border-radius: 50%; background: radial-gradient(ellipse, rgba(var(--card-accent-rgb), .35), transparent 70%); filter: blur(18px); transition: opacity .4s; }
.pedestal { position: absolute; z-index: 1; bottom: 22px; left: 50%; width: 72%; height: 31px; border: 1px solid rgba(var(--card-accent-rgb), .22); border-radius: 50%; background: radial-gradient(ellipse, rgba(var(--card-accent-rgb), .13), rgba(1, 6, 13, .08)); box-shadow: 0 5px 23px rgba(0, 0, 0, .45); transform: translateX(-50%); }
.card-copy { position: relative; z-index: 3; display: block; }
.category-label { display: block; color: #faf8f0; font: 800 38px/.98 "Barlow Condensed", sans-serif; letter-spacing: .2px; }
.category-label em { color: var(--card-accent); font-style: normal; }
.category-description { display: block; margin-top: 8px; color: #c0c8cf; font-size: 11px; line-height: 1.5; }
.reward-types { display: block; margin-top: 13px; color: #aeb9c6; font-size: 8px; font-weight: 600; letter-spacing: 1.4px; line-height: 1.5; }
.reward-types i { padding: 0 6px; color: var(--card-accent); font-style: normal; }
.choose-cta { position: relative; z-index: 3; display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; padding: 0 16px; border: 1px solid rgba(244, 218, 168, .55); border-radius: 8px; background: linear-gradient(115deg, #f0d49d, #d7b272); box-shadow: 0 5px 20px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .45); color: #242118; font-size: 10px; font-weight: 800; letter-spacing: 1px; transition: background .25s, box-shadow .25s; }
.choose-cta svg { width: 19px; height: 19px; transition: transform .25s; }
.choice-card:hover .choose-cta { background: linear-gradient(115deg, #ffebc0, #e4bf81); box-shadow: 0 5px 25px rgba(228, 195, 138, .15); }
.choice-card:hover .choose-cta svg { transform: translateX(3px); }
.choice-divider { position: absolute; z-index: 3; top: 36%; left: 50%; display: flex; width: 26px; flex-direction: column; align-items: center; gap: 14px; transform: translateX(-50%); }
.choice-divider span { width: 1px; height: 44px; background: linear-gradient(180deg, transparent, rgba(228, 195, 138, .4)); }
.choice-divider span:last-child { transform: rotate(180deg); }
.choice-divider svg { width: 15px; height: 20px; fill: var(--gold); opacity: .9; }
.selection-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 19px auto 0; color: #b6c0c9; font-size: 10px; line-height: 1.6; text-align: center; }
.selection-note svg { width: 11px; height: 16px; fill: var(--gold); opacity: .85; }

/* A single large chest is the opening stage's focal point. */
.opening-heading { margin: 13px auto 0; }
.opening-heading .eyebrow { color: var(--accent); }
.opening-heading h2 { font-size: clamp(38px, 4.4vw, 62px); line-height: 1; }
.opening-heading p { margin-top: 11px; font-size: 11px; }
.arena { position: relative; width: min(780px, 100%); height: 390px; margin: 0 auto; }
.arena-halo { position: absolute; bottom: 3%; left: 50%; width: min(480px, 90%); height: 160px; border-radius: 50%; background: radial-gradient(ellipse, rgba(var(--accent-rgb), .3), transparent 70%); filter: blur(26px); transform: translateX(-50%); animation: haloBreathe 6s ease-in-out infinite alternate; }
.arena-orbit { position: absolute; top: 53%; left: 50%; width: 365px; height: 365px; border: 1px solid rgba(var(--accent-rgb), .14); border-radius: 50%; transform: translate(-50%, -50%); animation: orbitTurn 38s linear infinite; }
.arena-orbit::before { position: absolute; inset: 12px; border: 1px dashed rgba(var(--accent-rgb), .1); border-radius: 50%; content: ""; }
.arena-orbit::after { position: absolute; top: 35px; left: 66px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); content: ""; }
.lightning { position: absolute; z-index: 7; top: -85px; left: 50%; width: 650px; max-width: 125%; height: 500px; overflow: visible; opacity: 0; transform: translateX(-50%); pointer-events: none; }
.bolt-glow, .bolt-core { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.bolt-glow { stroke: var(--accent); stroke-width: 18px; filter: blur(12px); }
.bolt-core { stroke: #fff9e7; stroke-width: 3px; filter: drop-shadow(0 0 5px var(--accent)); }
.main-chest { position: absolute; z-index: 5; bottom: -39px; left: 50%; width: 500px; max-width: 115vw; aspect-ratio: 1; padding: 0; border: 0; border-radius: 35%; background: transparent; transform: translateX(-50%); transition: filter .35s, opacity .5s, transform .5s; }
.main-chest:hover:not(:disabled) { filter: brightness(1.08); }
.chest-piece { position: absolute; inset: 0; display: block; pointer-events: none; }
.chest-bottom img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 21px rgba(0, 0, 0, .5)); }
.chest-lid { display: none; }
.chest-shadow { position: absolute; right: 16%; bottom: 14%; left: 16%; height: 28px; border-radius: 50%; background: #01070d; filter: blur(13px); opacity: .75; }
.chest-nameplate { position: absolute; bottom: 62px; left: 50%; padding: 6px 11px; border: 1px solid rgba(228, 195, 138, .35); border-radius: 4px; background: rgba(6, 11, 17, .83); color: #e8d2aa; font-size: 8px; font-weight: 700; letter-spacing: 2px; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.impact-ring { position: absolute; z-index: -1; top: 49%; left: 50%; width: 100px; height: 100px; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; transform: translate(-50%, -50%); }
.tap-zone { position: relative; z-index: 8; display: flex; width: min(380px, 100%); min-height: 65px; align-items: center; justify-content: center; gap: 17px; margin: 6px auto 0; padding: 12px 21px; border: 1px solid #ffe3ab; border-radius: 11px; background: linear-gradient(115deg, #f9e4b7, #d7af6a); box-shadow: inset 0 1px rgba(255, 255, 255, .55), 0 13px 40px rgba(0, 0, 0, .4), 0 0 35px rgba(228, 195, 138, .1); color: #292217; transition: transform .2s, filter .2s, opacity .2s; }
.tap-zone > svg { width: 23px; height: 29px; fill: currentColor; }
.tap-zone > .tap-arrow { width: 21px; height: 21px; margin-left: auto; }
.tap-zone > span { text-align: left; }
.tap-zone b { display: block; font-size: 14px; font-weight: 800; letter-spacing: 1px; }
.tap-zone small { display: block; margin-top: 5px; color: #56452b; font-size: 8px; font-weight: 600; letter-spacing: .7px; }
.tap-zone:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-2px); }
.opening-footnote { display: block; margin: 13px auto 0; color: #a8b9c7; font-size: 9px; line-height: 1.5; text-align: center; }
body.striking .tap-zone { opacity: .6; pointer-events: none; }
body.striking .main-chest { animation: chestCharge 1.18s ease-in-out; }
body.striking .lightning { animation: lightningReveal 1.18s ease both; }
body.striking .bolt-glow, body.striking .bolt-core { animation: boltDraw .75s .08s ease-out both; }
body.striking .impact-ring { animation: impactExpand .9s .2s ease-out both; }
body.opened .main-chest { opacity: .45; transform: translateX(-50%) translateY(-8px) scale(1.025); }
body.opened .tap-zone { display: none; }
.flash { position: fixed; z-index: 90; inset: 0; background: radial-gradient(ellipse at 50% 54%, rgba(255, 239, 194, .7), transparent 70%); opacity: 0; pointer-events: none; }
body.striking .flash { animation: warmFlash .7s .15s ease-out both; }
.site-footer { position: relative; z-index: 10; display: flex; width: min(1240px, calc(100% - 80px)); align-items: center; gap: 17px; margin: 26px auto 20px; padding-top: 17px; border-top: 1px solid rgba(221, 226, 235, .1); color: #9aa8b6; font-size: 8px; font-weight: 500; letter-spacing: 1.2px; line-height: 1.6; }
.site-footer > span:first-child { color: #c7c5be; font-weight: 700; letter-spacing: 1.5px; }
.footer-rule { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(228, 195, 138, .14), transparent); }
.site-footer > svg { width: 10px; height: 14px; fill: var(--gold); opacity: .7; }

/* Fixed dialogs scroll inside the available viewport, including landscape. */
.reward-modal-backdrop, .modal-backdrop, .access-modal-backdrop { position: fixed; z-index: 200; inset: 0; display: grid; padding: 16px; place-items: center; visibility: hidden; overflow: hidden; background: rgba(2, 7, 13, .81); backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity .25s ease, visibility .25s; }
.modal-backdrop { z-index: 210; }
.access-modal-backdrop { z-index: 220; }
body.opened .reward-modal-backdrop,
.modal-backdrop.visible,
body.username-required .access-modal-backdrop { visibility: visible; opacity: 1; pointer-events: auto; }
.reward-modal-card, .limit-modal, .access-modal { position: relative; isolation: isolate; width: min(450px, 100%); min-width: 0; min-height: 0; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: 0; padding: 32px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 1px solid rgba(228, 195, 138, .48); border-radius: 19px; background: radial-gradient(ellipse at 50% 0, rgba(160, 113, 49, .18), transparent 63%), linear-gradient(150deg, #15202c, #080f19 70%); box-shadow: 0 30px 100px rgba(0, 0, 0, .7), inset 0 1px rgba(255, 244, 222, .08); text-align: center; scrollbar-width: thin; scrollbar-color: #8d7958 #0d1723; transform: translateY(12px); transition: transform .3s ease; }
body.opened .reward-modal-card,
.modal-backdrop.visible .limit-modal,
body.username-required .access-modal { transform: translateY(0); }
.reward-modal-card { display: flex; flex-direction: column; align-items: center; scroll-padding-block: 14px; }
.reward-modal-card::after { display: block; width: 100%; height: 7px; flex-shrink: 0; content: ""; }
.reward-modal-card > :not(.reward-rays) { position: relative; z-index: 1; flex-shrink: 0; }
.reward-rays { position: absolute; z-index: 0; top: -190px; left: 50%; width: 520px; height: 520px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(239, 205, 143, .09) 0 6deg, transparent 6deg 23deg); mask-image: radial-gradient(circle, #000, transparent 69%); transform: translateX(-50%); animation: rewardTurn 45s linear infinite; pointer-events: none; }
.reward-badge { padding: 7px 10px; border: 1px solid rgba(228, 195, 138, .3); border-radius: 5px; color: #e2ccaa; font-size: 8px; font-weight: 700; letter-spacing: 1.6px; line-height: 1.5; }
.reward-medallion { display: grid; width: 90px; height: 90px; flex-shrink: 0; place-items: center; margin: 23px 0 19px; border: 1px solid rgba(244, 217, 167, .8); border-radius: 50%; background: radial-gradient(circle at 36% 25%, #6a573a, #29271f 68%); box-shadow: 0 0 0 7px rgba(228, 195, 138, .05), 0 0 40px rgba(228, 195, 138, .14), inset 0 0 0 5px rgba(228, 195, 138, .07); }
.reward-icon { color: #ffedc6; font: 700 43px/1 "Barlow Condensed", sans-serif; text-shadow: 0 3px 10px #000; }
.reward-kicker { color: #d0c2a9; font-size: 9px; font-weight: 700; letter-spacing: 2px; }
#rewardAmount { display: block; margin-top: 11px; color: #fff0cc; font: 800 clamp(50px, 8vw, 70px)/1 "Barlow Condensed", sans-serif; letter-spacing: -.5px; text-shadow: 0 0 35px rgba(228, 195, 138, .13); }
.reward-label { display: block; margin-top: 7px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 3px; }
.reward-divider { display: flex; width: 73%; align-items: center; gap: 12px; margin: 20px 0 15px; color: #b19665; font-size: 8px; }
.reward-divider::before, .reward-divider::after { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(228, 195, 138, .3)); content: ""; }
.reward-divider::after { transform: rotate(180deg); }
.reward-modal-card > p { margin: 0 0 22px; color: #bac3cb; font-size: 9px; font-weight: 500; letter-spacing: 1px; line-height: 1.7; }
.gold-button { display: flex; width: 100%; min-height: 49px; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 18px; border: 1px solid #f8dfaf; border-radius: 8px; background: linear-gradient(115deg, #f5deb0, #d4ad69); box-shadow: inset 0 1px rgba(255, 255, 255, .5), 0 7px 20px rgba(0, 0, 0, .2); color: #272118; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; transition: filter .2s; }
.gold-button svg { width: 20px; height: 20px; }
.gold-button:hover { filter: brightness(1.1); }
.gold-button:focus-visible { outline-offset: 3px; }
.modal-emblem { display: grid; width: 65px; height: 65px; place-items: center; margin: 0 auto 23px; border: 1px solid rgba(228, 195, 138, .6); border-radius: 50%; background: rgba(228, 195, 138, .07); box-shadow: 0 0 0 7px rgba(228, 195, 138, .03); color: var(--gold-light); font: 700 34px/1 "Barlow Condensed", sans-serif; }
.modal-emblem svg { width: 25px; height: 34px; fill: var(--gold); }
.modal-kicker { color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: 2px; }
.limit-modal h2, .access-modal h2 { margin: 13px 0; font-size: clamp(35px, 7vw, 44px); line-height: .98; }
.limit-modal h2 em, .access-modal h2 em { display: block; margin-top: 2px; }
.limit-modal p, .access-modal p { margin: 17px auto 23px; color: #b7c1cc; font-size: 12px; line-height: 1.7; }
.particle-layer { position: fixed; z-index: 150; inset: 0; overflow: hidden; pointer-events: none; }
.particle-layer i { position: absolute; top: 50%; left: 50%; width: 4px; height: 9px; border-radius: 1px; background: var(--color); opacity: 0; animation: legacyParticle 1.35s var(--delay) ease-out forwards; }

@keyframes screenReveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes beamDrift { from { transform: rotate(24deg) translateX(-10px); opacity: .65; } to { transform: rotate(17deg) translateX(30px); opacity: 1; } }
@keyframes mistDrift { to { transform: translateX(6%) scale(1.1); } }
@keyframes suitFloat { to { transform: translateY(-32px) rotate(14deg); opacity: .08; } }
@keyframes haloBreathe { to { opacity: .55; transform: translateX(-50%) scale(.88); } }
@keyframes orbitTurn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes boltDraw { to { stroke-dashoffset: 0; } }
@keyframes lightningReveal { 0% { opacity: 0; } 25%, 55% { opacity: 1; } 100% { opacity: 0; } }
@keyframes chestCharge { 0%, 100% { transform: translateX(-50%); } 30% { transform: translateX(-50%) translateY(-8px) scale(1.025); } 42% { transform: translateX(calc(-50% - 3px)) rotate(-.5deg); } 53% { transform: translateX(calc(-50% + 3px)) rotate(.5deg); } 70% { transform: translateX(-50%) scale(1.035); } }
@keyframes impactExpand { 0% { opacity: .8; transform: translate(-50%, -50%) scale(.4); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(4); } }
@keyframes warmFlash { 0%, 100% { opacity: 0; } 35% { opacity: .3; } }
@keyframes rewardTurn { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes legacyParticle { 8% { opacity: .8; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }

@media (max-width: 1000px) {
  .game-shell, .site-footer { width: calc(100% - 48px); }
  .topbar-center { font-size: 8px; letter-spacing: 1.8px; gap: 8px; }
  .topbar-center span { width: 15px; }
  .chest-grid { gap: 26px; }
  .choice-card { padding-right: 20px; padding-left: 20px; }
  .choice-art img { width: 330px; }
  .category-label { font-size: 34px; }
  .choose-cta { font-size: 9px; letter-spacing: .6px; padding: 0 13px; }
}

@media (max-width: 800px) {
  .topbar-center { display: none; }
  .scene-coordinate { font-size: 7px; letter-spacing: .8px; }
  .eyebrow { font-size: 8px; letter-spacing: 2.4px; }
  .choice-art { height: 228px; }
  .choice-art img { width: 300px; max-width: 110%; }
  .card-topline { font-size: 7px; letter-spacing: 1px; }
  .category-description { font-size: 10px; }
  .category-label { font-size: 31px; }
  .reward-types { font-size: 7px; letter-spacing: .8px; }
  .reward-types i { padding: 0 3px; }
}

@media (min-width: 621px) and (max-height: 850px) {
  .game-shell { padding-top: 16px; }
  .topbar { min-height: 56px; padding-bottom: 14px; }
  .scene-navigation { margin-top: 12px; margin-bottom: 6px; }
  .selection-heading { margin-top: 10px; margin-bottom: 18px; }
  h1 { font-size: clamp(40px, 4.7vw, 62px); }
  .chest-grid { margin-top: 18px; }
  .choice-art { height: 225px; }
  .choice-art img { width: 300px; }
  .choice-card { padding-top: 16px; padding-bottom: 18px; }
  .choose-cta { margin-top: 15px; min-height: 43px; }
  .selection-note { margin-top: 14px; }
  .site-footer { margin-top: 20px; padding-top: 13px; }
  .arena { height: 330px; }
  .main-chest { width: 450px; bottom: -44px; }
  .arena-orbit { width: 310px; height: 310px; }
}

@media (max-width: 620px) {
  .game-shell, .site-footer { width: calc(100% - 32px); }
  .game-shell { padding-top: max(15px, env(safe-area-inset-top)); }
  .topbar { min-height: 48px; gap: 12px; padding-bottom: 15px; }
  .brand { gap: 9px; }
  .brand-mark { width: 30px; height: 37px; border-radius: 6px 2px; }
  .brand-mark svg { width: 15px; height: 23px; }
  .brand b { font-size: 22px; letter-spacing: .7px; }
  .brand small { margin-top: 5px; font-size: 7px; letter-spacing: 2.2px; }
  .power-pill { min-width: 67px; gap: 9px; padding: 9px 11px; border-radius: 8px; }
  .power-pill > svg { width: 15px; height: 22px; }
  .power-pill > b { font-size: 25px; }
  .power-description { display: none; }
  .scene-navigation { position: relative; min-height: 29px; grid-template-columns: 1fr; margin: 13px 0 9px; }
  #sceneCaption { justify-self: center; font-size: 10px; }
  .scene-coordinate { display: none; }
  .back-button { position: absolute; top: 0; left: 0; min-height: 30px; font-size: 10px; }
  body:not([data-world="lobby"]) #sceneCaption { visibility: hidden; }
  .selection-heading { margin: 17px auto 22px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.8px; gap: 8px; }
  .eyebrow > span { width: 17px; }
  h1 { margin-top: 12px; font-size: clamp(39px, 10vw, 57px); line-height: .95; letter-spacing: .1px; }
  h1 em { display: block; margin-top: 3px; }
  .selection-heading p { margin-top: 12px; font-size: 11px; }
  .chest-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 0; }
  .choice-card { display: grid; min-height: 242px; grid-template-columns: minmax(0, 1fr) 55%; grid-template-rows: auto 1fr auto; padding: 17px 18px 16px; border-radius: 14px; text-align: left; }
  .card-topline { grid-column: 1 / -1; grid-row: 1; gap: 8px; font-size: 8px; letter-spacing: 1.3px; }
  .category-icon { width: 26px; height: 26px; border-radius: 6px; }
  .category-icon svg { width: 16px; height: 16px; }
  .card-number { font-size: 16px; }
  .choice-art { position: absolute; z-index: 1; top: 22px; right: 5px; bottom: 70px; width: 55%; height: auto; margin: 0; }
  .choice-art img { width: 220px; max-width: 100%; margin: 0; }
  .choice-card:hover .choice-art img { transform: translate(-50%, -50%); }
  .card-aura { right: -10%; bottom: 23%; left: -10%; height: 50%; }
  .pedestal { bottom: 0; width: 95%; height: 23px; }
  .card-copy { align-self: center; grid-column: 1; grid-row: 2; padding: 12px 0 13px; }
  .category-label { font-size: 35px; line-height: .92; }
  .category-label em { display: block; margin-top: 4px; font-size: 28px; }
  .category-description { max-width: 130px; margin-top: 8px; font-size: 10px; line-height: 1.5; }
  .reward-types { margin-top: 9px; font-size: 7px; letter-spacing: .6px; line-height: 1.6; }
  .reward-types i { padding: 0 2px; }
  .choose-cta { grid-column: 1 / -1; grid-row: 3; min-height: 41px; margin-top: 0; padding: 0 13px; font-size: 9px; letter-spacing: .8px; }
  .choose-cta svg { width: 18px; height: 18px; }
  .choice-divider { display: none; }
  .choice-card:hover { transform: none; }
  .selection-note { max-width: 350px; align-items: flex-start; gap: 7px; margin-top: 17px; padding: 0 7px; font-size: 9px; line-height: 1.7; }
  .selection-note svg { margin-top: 2px; }
  .opening-heading { margin-top: 9px; }
  .opening-heading h2 { margin-top: 10px; font-size: clamp(34px, 8.6vw, 46px); }
  .opening-heading h2 em { display: block; }
  .opening-heading p { max-width: 270px; margin-top: 11px; font-size: 10px; }
  .opening-screen { overflow: clip; }
  .arena { height: 325px; margin-top: -6px; }
  .main-chest { bottom: -29px; width: 430px; max-width: 100%; }
  .chest-nameplate { bottom: 52px; font-size: 7px; letter-spacing: 1.5px; padding: 5px 8px; }
  .arena-orbit { top: 53%; width: 285px; height: 285px; }
  .arena-orbit::after { top: 22px; left: 54px; }
  .arena-halo { height: 120px; bottom: 7%; }
  .lightning { top: -61px; width: 510px; max-width: 100%; height: 390px; }
  .tap-zone { width: min(360px, 100%); min-height: 62px; gap: 14px; margin-top: 3px; padding: 11px 18px; }
  .tap-zone b { font-size: 13px; }
  .tap-zone small { font-size: 7px; letter-spacing: .4px; }
  .tap-zone > svg { width: 20px; height: 26px; }
  .opening-footnote { margin-top: 12px; font-size: 9px; }
  .site-footer { flex-wrap: wrap; gap: 9px; margin-top: 22px; margin-bottom: calc(17px + env(safe-area-inset-bottom)); padding-top: 15px; font-size: 7px; letter-spacing: .6px; }
  .site-footer > span:first-child { font-size: 7px; letter-spacing: .8px; }
  .site-footer > svg { display: none; }
  .footer-rule { min-width: 10px; }
  .reward-modal-card, .access-modal, .limit-modal { padding: 26px 24px; border-radius: 15px; }
  .reward-medallion { width: 80px; height: 80px; margin: 21px 0 18px; }
  .reward-badge { font-size: 7px; letter-spacing: 1.3px; }
  .reward-kicker { font-size: 8px; letter-spacing: 1.4px; }
  .reward-modal-card > p { font-size: 8px; letter-spacing: .6px; }
  .floating-suits span { left: 6%; font-size: 42px; }
}

@media (max-width: 360px) {
  .game-shell, .site-footer { width: calc(100% - 28px); }
  .brand b { font-size: 20px; }
  .brand small { font-size: 6px; letter-spacing: 1.8px; }
  .brand { gap: 7px; }
  .power-pill { min-width: 60px; gap: 7px; padding: 8px; }
  h1 { font-size: 38px; }
  .eyebrow { font-size: 7px; letter-spacing: 1.2px; }
  .choice-card { min-height: 235px; padding: 15px; grid-template-columns: minmax(0, 1fr) 55%; }
  .choice-art { right: 4px; width: 55%; }
  .choice-art img { width: 180px; }
  .category-label { font-size: 32px; }
  .category-label em { font-size: 26px; }
  .category-description { max-width: 118px; font-size: 9px; }
  .card-topline { font-size: 7px; letter-spacing: .9px; }
  .reward-types { font-size: 7px; letter-spacing: .1px; }
  .choose-cta { font-size: 8px; letter-spacing: .5px; }
  .arena { height: 285px; }
  .main-chest { width: 365px; bottom: -29px; }
  .arena-orbit { width: 250px; height: 250px; }
  .chest-nameplate { bottom: 45px; }
  .tap-zone { gap: 11px; padding-right: 14px; padding-left: 14px; }
  .tap-zone b { font-size: 12px; }
  .tap-zone small { font-size: 6px; }
  .site-footer > span:last-of-type { max-width: 155px; text-align: right; }
  .reward-modal-card, .access-modal, .limit-modal { padding: 24px 20px; }
}

@media (min-width: 621px) and (max-height: 600px) {
  .opening-heading h2 { font-size: 40px; }
  .arena { height: 255px; }
  .main-chest { width: 360px; bottom: -33px; }
  .chest-nameplate { bottom: 44px; }
  .arena-orbit { width: 240px; height: 240px; }
  .lightning { top: -93px; height: 360px; }
  .tap-zone { min-height: 57px; margin-top: 6px; }
}

@media (max-height: 500px) {
  .reward-modal-card, .limit-modal, .access-modal { padding-top: 20px; padding-bottom: 20px; }
  .reward-medallion { width: 48px; height: 48px; margin: 10px 0; }
  .reward-icon { font-size: 29px; }
  .reward-badge { padding-top: 5px; padding-bottom: 5px; }
  #rewardAmount { font-size: 44px; margin-top: 9px; }
  .reward-label { margin-top: 4px; }
  .reward-divider { margin: 10px 0 8px; }
  .reward-modal-card > p { margin-bottom: 12px; font-size: 8px; line-height: 1.5; }
  .reward-modal-card .gold-button { min-height: 44px; }
  .modal-emblem { width: 50px; height: 50px; margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .world { transform: none; }
  .world-beam, .scene-mist, .floating-suits, .flash, .lightning, .particle-layer, .impact-ring { display: none; }
  .choice-card:hover, .tap-zone:hover:not(:disabled) { transform: none; }
  .choice-card:hover .choice-art img { transform: translate(-50%, -50%); }
}
