:root {
  color-scheme: dark;
  --ink: #f6f3e5;
  --muted: #aaa996;
  --lime: #e4ff39;
  --line: #333626;
  --panel: #191b14;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box }
body { min-height: 100vh; margin: 0; min-width: 290px; color: var(--ink); background: radial-gradient(ellipse at 35% 8%, #222718, transparent 55%), #10120e }
button, input { font: inherit }
button { cursor: pointer }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px }
button:disabled { cursor: default; opacity: .54 }
[hidden] { display: none !important }
.shell { width: min(1080px, calc(100% - 72px)); margin: 0 auto }
.top { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid #ffffff12 }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 900; text-decoration: none; letter-spacing: -.055em; font-size: 23px }
.brand b { color: var(--lime) }
.brand-mark { display: grid; place-items: center; width: 39px; aspect-ratio: 1; border-radius: 12px; background: var(--lime); color: #181d0a }
.brand-mark svg { width: 90% }
.intro { margin: 30px 0 23px }
h1,h2,p { margin: 0 }
h1 { font-size: clamp(38px, 6.4vw, 73px); letter-spacing: -.075em; line-height: 1.02; font-weight: 900 }
h1 span { color: var(--lime) }
.intro p { color: var(--muted); font-size: clamp(14px,1.7vw,16px); margin-top: 10px }
.board { display: grid; grid-template-columns: minmax(0, 1.57fr) minmax(280px, 1fr); gap: 16px; align-items: start }
.stage { position: relative; display: grid; place-items: center; isolation: isolate; min-height: 510px; overflow: hidden; border-radius: 25px; border: 1px solid var(--line); background: radial-gradient(circle at 48% 46%, #414921, #222719 47%, #141712 78%) }
.stage-grid { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(#e7ff5020 1px, transparent 1px), linear-gradient(90deg, #e7ff5020 1px, transparent 1px); background-size: 35px 35px; mask-image: radial-gradient(ellipse, #000 5%, transparent 75%); opacity: .4 }
.orbits { position: absolute; z-index: -1; width: min(110%, 650px); height: auto; color: #cce36a57; stroke: currentColor; fill: none }
.orbits circle { fill: #dfff56; filter: drop-shadow(0 0 6px #e2ff54) }
.wheel-frame { position: relative; width: min(79%, 456px); aspect-ratio: 1; border-radius: 50%; background: #1a1e10; border: 1px solid #81934d; box-shadow: 0 0 0 5px #1c2114, 0 0 0 6px #65723b, 0 0 0 11px #b5d15510, 0 0 48px #beeb4032, 0 17px 45px #000a }
.wheel-frame::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 1px dashed #d7e68c9e; pointer-events: none }
.wheel-rim { position: absolute; inset: 8px; border-radius: 50%; overflow: hidden; isolation: isolate }
.wheel-rim::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 50%; box-shadow: inset 0 0 14px #0008; background: linear-gradient(155deg,#fff1,transparent 42%,#0003) }
#wheel { display: block; width: 100%; height: 100%; transform: rotate(0deg); transition: transform 3.15s cubic-bezier(.13,.72,.12,1); will-change: transform }
#wheel text { font-family: inherit; font-weight: 900; dominant-baseline: central; text-anchor: middle }

.pointer { position: absolute; z-index: 3; width: 48%; height: 17%; left: 50%; top: 41.5%; transform-origin: 0 50%; transform: rotate(-47deg); filter: drop-shadow(0 2px 2px #101500) drop-shadow(0 0 10px #ddff5490); pointer-events: none }
.trail { fill: none; stroke: #efffa7; stroke-width: 2.3; stroke-linecap: round; opacity: .83 }
.mascot { z-index: 2; position: absolute; inset: 31%; border: 2px solid #e0ee9c; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px #20240f, 0 0 0 6px #9fb159a8, 0 0 24px #000b; background: #303719 }
.mascot img { display: block; width: 100%; height: 100%; object-fit: cover }
.controls { display: grid; gap: 13px }
.panel { border: 1px solid var(--line); background: var(--panel); border-radius: 23px; padding: 19px }
.play { background: radial-gradient(ellipse at 4% 0%,#303622,transparent 68%),var(--panel) }
.play-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 15px }
.gift { display: grid; place-items: center; width: 44px; aspect-ratio: 1; border-radius: 13px; color: var(--lime); background: #d8ff5114; border: 1px solid #e5ff3736 }
.gift svg { width: 22px }
h2 { font-size: 18px; letter-spacing: -.025em }
.play-heading p { font-size: 12px; color: var(--muted); margin-top: 3px }
.primary,.secondary { width: 100%; border: 0; border-radius: 12px; font-weight: 800; padding: 12px 15px }
.primary { display: flex; justify-content: space-between; align-items: center; background: var(--lime); color: #15180a; min-height: 52px; font-size: 15px; box-shadow: 0 5px 24px #cfff312b }
.primary:hover:enabled { background: #f1ff8c }
.primary span:last-child { font-size: 23px; line-height: 1 }
.section-title,.result-top,.coupon,.dialog-top { display: flex; justify-content: space-between; gap: 12px; align-items: center }
.info { display: grid; place-items: center; width: 27px; min-width: 27px; height: 27px; border-radius: 50%; padding: 0; border: 1px solid #71765a; background: #24281b; color: #dddcc5; font-size: 14px; font-weight: 750 }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px }
.tags span { border-radius: 8px; border: 1px solid #515b38; background: #2b3420; color: #e0e7c2; padding: 5px 8px; font-weight: 750; font-size: 12px }
.tags .jackpot { border-color: #84932d; color: var(--lime); background: #343b12 }
.result { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px }
.result-top { font-size: 14px; font-weight: 800; color: var(--lime) }
#promo-state { color: var(--muted); font-size: 11px; text-align: right; font-weight: 500 }
.coupon { background: #10130d; border: 1px dashed #66704b; margin-top: 9px; border-radius: 11px; padding: 10px 11px }
.coupon code { font-size: 14px; color: var(--ink); font-weight: 800 }
.plain { color: #e1e5c7; background: none; border: 0; padding: 3px 0; text-align: left; font-size: 12px }
.plain:hover { color: var(--lime) }
.secondary { margin-top: 8px; border: 1px solid #505839; background: #262d1a; color: var(--ink); font-size: 13px }
.secondary:hover:enabled,.info:hover { background: #3c4525 }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 17px 0 max(22px, env(safe-area-inset-bottom)); font-size: 12px; color: var(--muted) }
dialog { width: min(450px, calc(100% - 28px)); max-height: 88dvh; overflow: auto; border-radius: 22px; border: 1px solid #58633d; color: var(--ink); background: #1c2116; padding: 20px; box-shadow: 0 22px 75px #000a }
dialog::backdrop { background: #000a; backdrop-filter: blur(5px) }
dialog .close { font-size: 20px }
dialog p, dialog li { font-size: 14px; line-height: 1.55; color: #d0d0bc }
dialog p { margin-top: 10px }
dialog ul { padding-left: 19px }
dialog label { display: block; font-size: 13px; margin-top: 15px }
dialog input { font-size: 16px; width: 100%; margin-top: 5px; padding: 11px; border: 1px solid #5b6940; border-radius: 10px; color: var(--ink); background: #10140c; text-transform: uppercase }
dialog .primary { margin-top: 13px }
.summary { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 13px; padding-top: 13px }
.summary b { color: var(--lime) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
@media (max-width: 760px) {
  .shell { width: min(560px,calc(100% - 32px)) }
  .top { padding: max(12px, env(safe-area-inset-top)) 0 12px }
  .intro { margin: 23px 0 16px }
  .board { grid-template-columns: minmax(0,1fr); gap: 12px }
  .stage { min-height: 0; aspect-ratio: 1.14; border-radius: 21px }
  .wheel-frame { width: 80%; max-width: 440px }
  .panel { padding: 15px; border-radius: 19px }
  .controls { gap: 11px }
  .wheel-rim { inset: 6px }
}

@media (max-width: 420px) {
  .shell { width: calc(100% - 24px) }
  .intro { margin: 17px 0 14px }
  .brand { font-size: 20px }
  .brand-mark { width: 33px }
  .stage { aspect-ratio: 1.12 }
  .wheel-frame { width: 84% }
  .play-heading { margin-bottom: 12px }
  .info { min-width: 36px; width: 36px; height: 36px }
}
@media (prefers-reduced-motion: reduce) { #wheel { transition: none } }

.offer { padding: 12px 0 13px }
.offer-plan { font-size: 13px; color: var(--muted) }
.offer-prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 4px }
.offer-prices strong { font-size: clamp(31px, 5vw, 41px); line-height: 1.05; letter-spacing: -.055em; color: var(--ink) }
.offer-prices del { color: var(--muted); font-size: 15px }
.offer-saving { font-size: 12px; font-weight: 800; color: var(--lime); margin-top: 5px }
.offer-tip { margin-top: 7px; color: var(--muted); font-size: 11px }
#checkout { margin-bottom: 10px }
#checkout span:last-child { font-size: 20px }

.stage-section, #connection, #access-panel { margin-block: 1rem; }
.stage-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1rem; }
.stage-actions a { text-decoration: none; text-align: center; }
.stage-actions .preferred { color: var(--lime, #ddff35); border-color: currentColor; }
#manual-url { width: 100%; min-height: 44px; border-radius: 10px; background: #151911; color: #f8faef; padding: .6rem; border: 1px solid #424a35; }
#plans-list { display: grid; gap: .5rem; margin-block: .75rem; }
.plan-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; min-height: 44px; width: 100%; background: #161b12; border: 1px solid #414b30; border-radius: 10px; padding: .6rem .8rem; color: inherit; text-align: left; font: inherit; }
.plan-row[aria-pressed="true"] { border-color: #ddff35; }
.plan-row del { opacity: .75; margin-inline-end: .55rem; }
.plan-row strong { color: #ddff35; }
#bonus-labels { margin-top: .65rem; }

.app-nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #161913; }
.app-nav a { display: grid; place-items: center; min-height: 38px; padding: 0 15px; border-radius: 10px; color: var(--muted); font-weight: 750; font-size: 14px; text-decoration: none; }
.app-nav a:hover { color: var(--ink); }
.app-nav a[aria-current="page"] { color: #171a0c; background: var(--lime); }
.partner-cabinet { max-width: 720px; margin: 22px auto; padding-bottom: env(safe-area-inset-bottom); }
.partner-banner { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 19px; background: #161815; }
.partner-data { margin-top: 12px; }
.partner-totals { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 9px; margin: 0 0 16px; }
.partner-totals div { border-bottom: 1px solid var(--line); padding-bottom: 11px; min-width: 0; }
.partner-totals dt { color: var(--muted); font-size: 12px; }
.partner-totals dd { margin: 3px 0 0; font-weight: 800; font-size: clamp(16px, 4vw, 26px); overflow-wrap: anywhere; }
.partner-totals div:first-child dd { color: var(--lime); }
.partner-link { margin-top: 8px; padding: 12px; border-radius: 12px; border: 1px dashed #646b46; background: #10130e; }
.partner-link code { overflow-wrap: anywhere; color: #e9f5a9; font-size: 13px; user-select: all; }
.partner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.partner-status { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.partner-status:empty { display: none; }
.partner-retry { width: auto; }
@media (max-width: 420px) {
  .app-nav { gap: 2px; padding: 3px; }
  .app-nav a { min-height: 38px; padding: 0 10px; font-size: 12px; }
  .partner-cabinet { margin-top: 12px; }
}
