:root {
  color-scheme: dark;
  --bg: #0d121a;
  --panel: #171e29;
  --panel-2: #202936;
  --line: rgba(255,255,255,.13);
  --text: #f4f6f8;
  --muted: #a4adbc;
  --lime: #d9ff57;
  --coral: #ff765f;
  --blue: #72a8ff;
  --radius: 24px;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at 72% 18%, rgba(100,119,158,.22), transparent 35%), radial-gradient(circle at 8% 72%, rgba(217,255,87,.045), transparent 30%), var(--bg); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.hidden { display: none !important; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.ambient { position: fixed; width: 430px; height: 430px; border-radius: 50%; filter: blur(120px); opacity: .08; pointer-events: none; }
.ambient-a { background: var(--lime); top: 0; left: -260px; }
.ambient-b { background: var(--blue); right: -250px; bottom: -180px; }
.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 18px; font-weight: 900; letter-spacing: .04em; }
.brand > span:last-child > span { color: var(--lime); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #10130a; background: var(--lime); border-radius: 12px; font-size: 20px; transform: rotate(-5deg); }
.secure-chip { padding: 10px 14px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 13px; }
.pulse { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 5px rgba(217,255,87,.1); }
.buyer-main { min-height: calc(100vh - 166px); display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; padding-block: 64px; }
.eyebrow { margin: 0 0 22px; color: var(--lime); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.hero-copy h1 { margin: 0; max-width: 650px; font-size: clamp(52px, 6vw, 88px); line-height: .95; letter-spacing: -.065em; }
.hero-copy h1 span { color: transparent; -webkit-text-stroke: 1px rgba(244,246,248,.42); }
.hero-text { max-width: 550px; margin: 28px 0 38px; color: #b0b6c1; font-size: 17px; line-height: 1.7; }
.rules-row { display: grid; gap: 15px; color: #c9ced8; font-size: 13px; }
.rules-row span { display: flex; align-items: center; gap: 12px; }
.rules-row b { color: var(--lime); font-size: 10px; letter-spacing: .12em; }
.experience-card { position: relative; min-height: 620px; overflow: hidden; background: linear-gradient(150deg, rgba(34,42,57,.98), rgba(19,25,35,.98)); border: 1px solid rgba(255,255,255,.15); border-radius: 30px; box-shadow: 0 40px 100px rgba(0,0,0,.28); }
.experience-card::after { content: ""; position: absolute; inset: auto -90px -90px auto; width: 240px; height: 240px; border-radius: 50%; background: var(--lime); opacity: .04; }
.card-topline { height: 58px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: #747d90; font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.state-panel { position: relative; z-index: 1; padding: 42px; animation: enter .35s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.centered-state { min-height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.centered-state h2 { margin: 22px 0 8px; }
.centered-state p, .muted { color: var(--muted); line-height: 1.6; }
.loader { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.18); border-top-color: var(--lime); border-radius: 50%; animation: rotate .7s linear infinite; vertical-align: middle; }
.loader.large { width: 42px; height: 42px; border-width: 3px; }
@keyframes rotate { to { transform: rotate(360deg); } }
.state-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 16px; color: #111; background: var(--lime); font-size: 24px; font-weight: 900; }
.state-icon.warning { background: var(--coral); }
.ready-intro { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ready-intro .eyebrow { margin: 22px 0 8px; }
.ready-intro h2 { max-width: 420px; margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.045em; }
.ready-intro p:last-child { max-width: 370px; margin: 17px 0 0; color: var(--muted); line-height: 1.6; }
.ready-orbit { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid rgba(217,255,87,.3); border-radius: 24px; color: #10130a; background: var(--lime); box-shadow: 0 18px 55px rgba(217,255,87,.13); font-size: 30px; font-weight: 1000; transform: rotate(-5deg); }
.step-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.step-number { width: 47px; height: 47px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(217,255,87,.25); border-radius: 14px; color: var(--lime); font-weight: 900; }
.step-heading p { margin: 0 0 5px; color: #7e8798; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.step-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.order-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 20px; }
.order-summary div { min-width: 0; padding: 16px; display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.order-summary span { color: #737c8b; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.order-summary b { overflow: hidden; color: #e8ebef; font-size: 12px; text-overflow: ellipsis; }
.protection-note { padding: 14px 16px; border-left: 2px solid var(--lime); border-radius: 0 12px 12px 0; background: rgba(217,255,87,.04); font-size: 12px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 20px; }
.choice-card { min-height: 96px; padding: 18px; display: flex; align-items: center; gap: 13px; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 17px; transition: .2s ease; }
.choice-card:hover { transform: translateY(-2px); border-color: rgba(217,255,87,.42); background: rgba(217,255,87,.04); }
.choice-card span:nth-child(2) { display: grid; gap: 5px; }
.choice-card b { font-size: 14px; }
.choice-card small { color: var(--muted); font-size: 11px; }
.choice-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; color: #111; background: #e8ebef; border-radius: 11px; font-weight: 900; }
.choice-card .arrow { margin-left: auto; color: #777f8d; }
.primary-button, .secondary-button, .ghost-button { border: 0; cursor: pointer; border-radius: 15px; font-weight: 900; transition: .2s ease; }
.primary-button { min-height: 60px; padding: 0 12px 0 25px; display: flex; align-items: center; justify-content: space-between; color: #10130a; background: var(--lime); letter-spacing: .035em; box-shadow: 0 12px 30px rgba(217,255,87,.12); }
.primary-button i { width: 40px; height: 40px; display: grid; place-items: center; background: #10130a; color: var(--lime); border-radius: 12px; font-style: normal; font-size: 20px; }
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .6; transform: none; }
.spin-button { width: 100%; margin-top: 14px; }
.spin-overlay { position: fixed; z-index: 100; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(217,255,87,.09), transparent 34%), radial-gradient(circle at 80% 20%, rgba(114,168,255,.08), transparent 28%), var(--bg); }
.spin-overlay::before, .spin-overlay::after { content: ""; position: absolute; width: 34vw; height: 34vw; border-radius: 50%; filter: blur(140px); opacity: .08; pointer-events: none; }
.spin-overlay::before { left: -17vw; top: 20%; background: var(--lime); }
.spin-overlay::after { right: -17vw; bottom: 0; background: var(--blue); }
.spin-overlay-top { position: relative; z-index: 2; min-height: 88px; padding: 0 clamp(22px, 4vw, 70px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: #727b8a; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.spin-overlay-stage { position: relative; z-index: 2; min-height: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.spin-overlay-stage > .eyebrow, .spin-overlay-stage > h2 { padding-inline: clamp(22px, 5vw, 90px); text-align: center; }
.spin-overlay-stage > .eyebrow { margin-bottom: 12px; }
.spin-overlay-stage > h2 { margin: 0; font-size: clamp(32px, 4vw, 62px); letter-spacing: -.045em; }
.is-spinning { overflow: hidden; }
.reel-window { position: relative; width: 100%; height: min(55vh, 520px); margin-top: clamp(24px, 5vh, 54px); overflow: hidden; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reel-marker { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--lime); box-shadow: 0 0 32px var(--lime); }
.reel-marker::before, .reel-marker::after { content: ""; position: absolute; left: 50%; width: 0; height: 0; transform: translateX(-50%); border-inline: 10px solid transparent; }
.reel-marker::before { top: 0; border-top: 14px solid var(--lime); }
.reel-marker::after { bottom: 0; border-bottom: 14px solid var(--lime); }
.reel-track { height: 100%; display: flex; align-items: center; gap: 14px; width: max-content; transform: translateX(20px); will-change: transform; }
.reel-track.running { animation: reel 7.2s cubic-bezier(.06,.72,.08,1) forwards; }
.reel-tile { width: clamp(190px, 18vw, 270px); height: min(46vh, 390px); flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, #303a4d, #18202c); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.reel-tile.premium { border-color: rgba(217,255,87,.32); box-shadow: 0 0 0 1px rgba(217,255,87,.05), 0 18px 45px rgba(0,0,0,.3); }
.reel-tile > div { position: relative; width: 100%; height: 100%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(217,255,87,.14), transparent 31%), linear-gradient(145deg, #364257, #1c2533); }
.reel-tile.premium > div { background: radial-gradient(circle at 50% 45%, rgba(217,255,87,.25), transparent 34%), linear-gradient(145deg, #3b4937, #202a26); }
.mystery-art::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 38% 62% 58% 42%; animation: mystery-orbit 6s linear infinite; animation-delay: var(--mystery-delay); }
.mystery-art::after { content: ""; position: absolute; width: 48%; aspect-ratio: 1; border: 1px dashed rgba(217,255,87,.24); border-radius: 50%; animation: mystery-orbit 4.5s linear infinite reverse; animation-delay: var(--mystery-delay); }
.mystery-art span { position: relative; z-index: 2; width: 92px; height: 92px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 30px; color: var(--lime); background: rgba(13,18,26,.76); box-shadow: 0 18px 55px rgba(0,0,0,.25), 0 0 42px rgba(217,255,87,.1); font-size: 54px; font-weight: 900; animation: mystery-float 2.4s ease-in-out infinite; animation-delay: var(--mystery-delay); }
.mystery-art i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px var(--lime); animation: spark-pulse 1.8s ease-in-out infinite alternate; animation-delay: var(--mystery-delay); }
.mystery-art i:first-child { left: 18%; top: 24%; }
.mystery-art i:last-child { right: 16%; bottom: 22%; }
@keyframes reel { from { transform: translateX(20px); } to { transform: translateX(var(--reel-end, -4200px)); } }
.center-note { margin: 20px 20px 0; text-align: center; color: var(--muted); font-size: 12px; }
.result-label { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--lime); font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.result-label span { width: 26px; height: 1px; background: var(--lime); }
.result-card { min-height: 250px; display: grid; grid-template-columns: 190px 1fr; overflow: hidden; border-radius: 20px; background: var(--panel-2); border: 1px solid var(--line); }
.result-card.revealed { animation: result-reveal .72s cubic-bezier(.18,.82,.28,1) both; }
.result-card.revealed .game-info { animation: result-copy .65s .18s cubic-bezier(.18,.82,.28,1) both; }
.game-cover { position: relative; min-height: 250px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(217,255,87,.2), transparent 34%), linear-gradient(145deg, #38475b, #202936); }
.game-cover.premium { background: radial-gradient(circle at 50% 45%, rgba(217,255,87,.34), transparent 38%), linear-gradient(145deg, #46543e, #242f29); }
.game-cover::before { content: ""; position: absolute; inset: -55%; background: conic-gradient(from 0deg, transparent, rgba(217,255,87,.17), transparent 34%); animation: result-sweep 5s linear infinite; }
.mystery-ring { position: absolute; width: 128px; height: 128px; border: 1px dashed rgba(217,255,87,.38); border-radius: 50%; animation: mystery-orbit 7s linear infinite; }
.game-mystery { position: relative; z-index: 2; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 27px; color: #11160c; background: var(--lime); box-shadow: 0 18px 55px rgba(217,255,87,.2); font-size: 52px; font-weight: 1000; animation: result-icon-in .8s cubic-bezier(.16,.9,.22,1.25) both, mystery-float 2.8s .8s ease-in-out infinite; }
.result-spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 17px var(--lime); animation: spark-pulse 1.5s ease-in-out infinite alternate; }
.spark-a { left: 22%; top: 24%; }
.spark-b { right: 19%; top: 34%; animation-delay: -.6s; }
.spark-c { right: 27%; bottom: 19%; animation-delay: -1s; }
.game-info { padding: 32px; align-self: center; }
.game-info p { color: var(--lime); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.game-info h2 { margin: 10px 0 22px; font-size: 28px; line-height: 1.15; }
.result-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.result-badges span { padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.06); color: #aeb5c1; font-size: 10px; }
.decision-note { margin: 17px 0; color: var(--muted); font-size: 12px; }
.result-actions { display: grid; grid-template-columns: .85fr 1.15fr; gap: 12px; }
.secondary-button { min-height: 60px; padding: 0 20px; background: transparent; border: 1px solid var(--line); }
.secondary-button:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.03); }
.secondary-button small { display: inline-block; margin-left: 6px; color: var(--muted); }
.success-ring { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 25px; border: 1px solid rgba(217,255,87,.4); border-radius: 50%; background: rgba(217,255,87,.08); color: var(--lime); font-size: 25px; }
#issued-state h2 { margin: 0 0 5px; font-size: 34px; }
.key-box { min-height: 86px; margin: 28px 0; padding: 14px 14px 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px dashed rgba(217,255,87,.42); border-radius: 16px; background: rgba(217,255,87,.04); }
.key-box code { overflow-wrap: anywhere; font-size: clamp(16px, 2vw, 22px); color: var(--lime); font-weight: 800; letter-spacing: .06em; }
.key-box button { padding: 13px 16px; border: 0; border-radius: 10px; cursor: pointer; background: var(--lime); color: #111; font-weight: 800; }
.key-box button:disabled { cursor: not-allowed; opacity: .45; }
.activate-steps { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.activate-steps li { display: flex; align-items: center; gap: 12px; color: #bec3cc; font-size: 13px; }
.activate-steps span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--lime); font-size: 11px; }
footer { height: 74px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #676f7e; font-size: 11px; }
.modal { position: fixed; z-index: 20; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.modal-card { position: relative; width: min(450px, 100%); padding: 36px; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: #171b24; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.modal-card p { color: var(--muted); line-height: 1.6; }
.modal-close { position: absolute; right: 18px; top: 14px; border: 0; color: var(--muted); background: none; cursor: pointer; font-size: 25px; }
.modal-actions { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ghost-button { min-height: 50px; background: rgba(255,255,255,.06); }
.primary-button.compact { min-height: 50px; display: block; padding: 0 18px; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 30px; transform: translateX(-50%); padding: 13px 18px; border: 1px solid var(--line); border-radius: 12px; background: #202633; box-shadow: 0 18px 50px rgba(0,0,0,.45); font-size: 13px; }
@keyframes mystery-orbit { to { transform: rotate(360deg); } }
@keyframes mystery-float { 0%,100% { transform: translateY(-4px) rotate(-3deg); } 50% { transform: translateY(5px) rotate(3deg); } }
@keyframes spark-pulse { from { opacity: .25; transform: scale(.7); } to { opacity: 1; transform: scale(1.35); } }
@keyframes result-reveal { from { opacity: 0; transform: translateY(18px) scale(.97); box-shadow: 0 0 0 rgba(217,255,87,0); } to { opacity: 1; transform: none; box-shadow: 0 22px 70px rgba(0,0,0,.24); } }
@keyframes result-copy { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes result-icon-in { from { opacity: 0; transform: scale(.35) rotate(-24deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes result-sweep { to { transform: rotate(360deg); } }
@media (max-height: 800px) and (min-width: 901px) {
  .buyer-main { gap: 56px; padding-block: 32px; }
  .experience-card { min-height: 560px; }
  .state-panel { padding-block: 34px; }
  .ready-intro { min-height: 360px; }
}
@media (max-width: 900px) {
  .buyer-main { grid-template-columns: 1fr; gap: 45px; padding-block: 42px; }
  .hero-copy { text-align: center; }
  .hero-text { margin-inline: auto; }
  .rules-row { width: max-content; max-width: 100%; margin-inline: auto; text-align: left; }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 1180px); }
  .site-header { height: 72px; }
  .secure-chip { display: none; }
  .buyer-main { padding-top: 34px; }
  .hero-copy h1 { font-size: 48px; }
  .experience-card { min-height: 560px; border-radius: 22px; }
  .state-panel { padding: 28px 20px; }
  .order-summary { grid-template-columns: 1fr; }
  .choice-grid, .result-actions { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; }
  .game-cover { min-height: 180px; }
  .game-info { padding: 24px; }
  .spin-overlay-top { min-height: 72px; }
  .spin-overlay-top > span:last-child { display: none; }
  .reel-window { height: 52vh; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
  .reel-tile { width: 190px; height: 42vh; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
