:root {
  --ink: #05080a;
  --panel: #0d1215;
  --panel-2: #12191d;
  --line: rgba(255, 255, 255, .10);
  --muted: #8a989f;
  --text: #f3f6f4;
  --mint: #b8ff62;
  --mint-2: #79db43;
  --gold: #f6c95d;
  --violet: #b99cff;
  --danger: #ff6b6b;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% -10%, rgba(184, 255, 98, .10), transparent 28rem),
    radial-gradient(circle at 96% 10%, rgba(185, 156, 255, .09), transparent 30rem),
    var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.hidden { display: none !important; }
.site-shell { display: flex; flex-direction: column; min-height: 100vh; }

.site-header-stack {
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.topbar {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 10, .82);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 17px; font-weight: 760; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(184,255,98,.46); border-radius: 10px; background: var(--mint); color: #10170c; font-size: 11px; font-weight: 900; letter-spacing: -.05em; box-shadow: 0 0 34px rgba(184,255,98,.14); transform: rotate(-4deg); }
.main-nav { display: flex; align-items: center; gap: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); }
.main-nav a { padding: 8px 13px; border-radius: 999px; color: #acb8bd; font-size: 13px; font-weight: 650; text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { background: rgba(255,255,255,.07); color: #fff; outline: none; }
.account-cluster { display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.balance-pill { display: flex; flex-direction: column; gap: 1px; min-width: 132px; padding: 8px 13px; border: 1px solid rgba(184,255,98,.18); border-radius: 12px; background: rgba(184,255,98,.055); text-decoration: none; }
.balance-pill span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.balance-pill strong { font-size: 14px; }
.player-id { display: flex; flex-direction: column; line-height: 1.2; }
.player-id strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.player-id span { color: var(--muted); font-size: 10px; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: #b8c2c6; cursor: pointer; }
.icon-button:hover { border-color: rgba(255,255,255,.25); color: white; }
.trust-strip { justify-self: end; display: flex; gap: 24px; color: var(--muted); font-size: 11px; font-weight: 720; text-transform: uppercase; letter-spacing: .08em; }
.trust-strip span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--mint); }

.announcement-bar { position: relative; z-index: 32; width: 100%; overflow: hidden; border-bottom: 1px solid rgba(184,255,98,.16); background: #0b120e; color: #dce9dd; }
.announcement-track { display: flex; width: max-content; transform: translate3d(0,0,0); will-change: transform; }
.announcement-bar.is-running .announcement-track { animation: announcementScroll 38s linear infinite; }
.announcement-set { display: flex; flex: none; align-items: center; justify-content: space-around; min-width: 100vw; }
.announcement-set span { display: inline-flex; align-items: center; gap: 10px; padding: 9px 28px; white-space: nowrap; font-size: 10px; font-weight: 750; letter-spacing: .025em; }
.announcement-set i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px rgba(184,255,98,.75); }
@keyframes announcementScroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

.page { flex: 1; width: min(1440px, 100%); margin: 0 auto; padding: 54px 4vw 84px; }
.page > * { opacity: 0; animation: pageFadeDown .58s cubic-bezier(.2,.72,.2,1) forwards; }
.page > *:nth-child(2) { animation-delay: .07s; }
.page > *:nth-child(3) { animation-delay: .13s; }
.page > *:nth-child(4) { animation-delay: .19s; }
.page > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes pageFadeDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
.site-footer { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 68px; padding: 18px 4vw; border-top: 1px solid var(--line); background: #080c0e; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .035em; text-align: center; }
.site-footer a { color: #d8e2de; text-decoration: none; transition: color .18s ease; }
.site-footer a:hover { color: var(--mint); }
.site-footer a:focus-visible, .back-link:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.back-link { display: inline-flex; align-items: center; min-height: 40px; margin-bottom: 22px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: #dce4e1; font-size: 11px; font-weight: 750; text-decoration: none; transition: border-color .18s ease, color .18s ease, transform .18s ease; }
.back-link:hover { border-color: rgba(184,255,98,.35); color: var(--mint); transform: translateX(-2px); }
.eyebrow { margin: 0 0 13px; color: var(--mint); font-size: 10px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(44px, 6vw, 92px); line-height: .95; letter-spacing: -.065em; }
h2 { letter-spacing: -.035em; }

.public-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .65fr); gap: clamp(48px, 9vw, 148px); align-items: center; min-height: calc(100vh - 190px); }
.hero-copy { padding: 40px 0; }
.hero-copy h1 span { color: var(--mint); }
.hero-lead { max-width: 680px; color: #a9b5ba; font-size: clamp(17px, 1.8vw, 23px); line-height: 1.55; }
.jackpot-ribbon { display: grid; grid-template-columns: 1fr 1fr; max-width: 690px; margin-top: 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.jackpot-ribbon div { display: flex; flex-direction: column; gap: 7px; padding: 25px 0; }
.jackpot-ribbon div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.jackpot-ribbon span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.jackpot-ribbon strong { font-size: clamp(23px, 2.6vw, 38px); letter-spacing: -.055em; }
.proof-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 25px; color: #728086; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.auth-panel { padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(155deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 28px; padding: 5px; border-radius: 13px; background: #070b0d; }
.auth-tabs button { padding: 11px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 720; }
.auth-tabs button.active { background: #172025; color: white; }
.stack-form { display: grid; gap: 16px; }
.stack-form.compact { gap: 13px; }
.field { display: grid; gap: 8px; }
.field label { color: #c8d0d3; font-size: 12px; font-weight: 700; }
.field input { width: 100%; min-height: 50px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #090d0f; color: white; }
.field input:focus { border-color: rgba(184,255,98,.62); box-shadow: 0 0 0 3px rgba(184,255,98,.08); }
.field small, .console-note, .panel-note { color: var(--muted); font-size: 11px; line-height: 1.5; }
.check-row { display: flex; gap: 10px; color: #99a6ab; font-size: 11px; line-height: 1.45; }
.check-row input { accent-color: var(--mint); }
.remember-row { align-items: center; }
.remembered-login { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 12px 14px; border: 1px solid rgba(184,255,98,.2); border-radius: 12px; background: rgba(184,255,98,.04); }
.remembered-login span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.remembered-login strong { grid-column: 1; font-size: 14px; }
.remembered-login button { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--mint); font-size: 9px; cursor: pointer; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 51px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--mint); color: #11170d; font-size: 12px; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .18s ease, filter .18s ease; }
.primary-button:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-2px); }
.primary-button:disabled { cursor: wait; filter: grayscale(.7); opacity: .48; }
.auth-footnote { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: #77858a; font-size: 10px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

.dashboard-hero, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.dashboard-hero h1, .page-heading h1 { margin-bottom: 10px; font-size: clamp(46px, 6vw, 78px); }
.dashboard-hero p, .page-heading > p { max-width: 470px; color: var(--muted); line-height: 1.55; }
.hero-balance { min-width: 280px; padding: 22px 25px; border-left: 1px solid var(--line); }
.hero-balance span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.hero-balance strong { display: block; margin: 5px 0 12px; font-size: 30px; letter-spacing: -.05em; }
.hero-balance a { color: var(--mint); font-size: 11px; text-decoration: none; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.game-card { position: relative; min-height: 380px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.game-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.26); }
.game-card-top { display: flex; align-items: center; justify-content: space-between; }
.game-kind { color: var(--muted); font-size: 10px; font-weight: 780; text-transform: uppercase; letter-spacing: .1em; }
.arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; }
.game-orbit { position: relative; display: grid; place-items: center; width: 190px; height: 190px; margin: 28px auto 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.game-orbit::before, .game-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid currentColor; opacity: .22; }
.game-orbit::before { inset: 15px; }
.game-orbit::after { inset: 38px; background: currentColor; opacity: .08; }
.game-orbit span { position: absolute; top: 2px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 20px currentColor; }
.game-orbit strong { z-index: 1; max-width: 130px; text-align: center; font-size: 22px; line-height: 1; letter-spacing: -.055em; }
.game-card.gold { color: var(--gold); }
.game-card.violet { color: var(--violet); }
.game-card.mint { color: var(--mint); }
.game-card h2 { margin-bottom: 7px; color: var(--text); font-size: 23px; }
.game-card > p { color: var(--muted); font-size: 12px; }
.system-strip, .wallet-summary, .admin-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.018); }
.system-strip div, .wallet-summary div, .admin-summary div { padding: 20px; }
.system-strip div + div, .wallet-summary div + div, .admin-summary div + div { border-left: 1px solid var(--line); }
.system-strip strong, .wallet-summary strong, .admin-summary strong { display: block; margin-bottom: 4px; font-size: 17px; }
.system-strip span, .wallet-summary span, .admin-summary span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 35px; }
.game-stage, .play-console { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.022); }
.game-stage { min-height: 720px; padding: 28px; }
.game-stage-heading { display: flex; justify-content: space-between; gap: 20px; }
.game-stage-heading h1 { font-size: clamp(36px, 4vw, 58px); }
.game-stage-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 13px; }
.game-preferences { display: flex; gap: 6px; }
.game-preferences button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: #080c0e; color: #aeb9bc; font-size: 9px; font-weight: 750; cursor: pointer; }
.game-preferences button[aria-pressed="true"] { border-color: rgba(184,255,98,.28); color: var(--mint); background: rgba(184,255,98,.05); }
.game-preferences button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.draw-status { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.wheel-visual, .scratch-visual, .slot-visual { display: grid; place-items: center; min-height: 450px; }
.wheel-visual { position: relative; }
.wheel-pointer { position: absolute; top: 54px; z-index: 4; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 30px solid white; filter: drop-shadow(0 4px 10px black); }
.wheel-disc { position: relative; display: grid; place-items: center; width: min(390px, 72vw); aspect-ratio: 1; overflow: hidden; border: 8px solid #26322f; border-radius: 50%; background: conic-gradient(from -25.714deg, #b8ff62 0deg 50.428deg, #18221f 50.428deg 101.856deg, #27332f 101.856deg 153.284deg, #101916 153.284deg 204.712deg, #31413a 204.712deg 256.14deg, #14201c 256.14deg 307.568deg, #789f5b 307.568deg 360deg); box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 0 0 5px rgba(255,255,255,.07); }
.wheel-slot-label { position: absolute; z-index: 2; top: 50%; left: 50%; width: 86px; margin: -8px 0 0 -43px; color: #f7fff5; font-size: 11px; font-weight: 900; line-height: 16px; text-align: center; text-shadow: 0 2px 5px rgba(0,0,0,.9); letter-spacing: -.02em; }
.wheel-slot-label.slot-0 { transform: rotate(0deg) translateY(-148px) rotate(0deg); color: #10170d; text-shadow: none; }
.wheel-slot-label.slot-1 { transform: rotate(51.428deg) translateY(-148px) rotate(-51.428deg); }
.wheel-slot-label.slot-2 { transform: rotate(102.856deg) translateY(-148px) rotate(-102.856deg); }
.wheel-slot-label.slot-3 { transform: rotate(154.284deg) translateY(-148px) rotate(-154.284deg); }
.wheel-slot-label.slot-4 { transform: rotate(205.712deg) translateY(-148px) rotate(-205.712deg); }
.wheel-slot-label.slot-5 { transform: rotate(257.14deg) translateY(-148px) rotate(-257.14deg); }
.wheel-slot-label.slot-6 { transform: rotate(308.568deg) translateY(-148px) rotate(-308.568deg); }
.wheel-core { position: relative; z-index: 3; display: grid; place-items: center; width: 132px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: #080c0e; box-shadow: 0 10px 30px rgba(0,0,0,.48); text-align: center; }
.wheel-core span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.wheel-core strong { max-width: 100px; font-size: 18px; line-height: 1; letter-spacing: -.045em; }
.wheel-disc { transform: rotate(0deg); }
.wheel-disc.is-spinning { transition: transform 3.2s cubic-bezier(.12,.72,.08,1); will-change: transform; }
.slot-machine { width: min(520px, 88vw); padding: 22px; border: 1px solid rgba(184,255,98,.25); border-radius: 26px; background: linear-gradient(160deg, #111a17, #070c0a); box-shadow: 0 30px 80px rgba(0,0,0,.48), inset 0 0 40px rgba(184,255,98,.025); }
.slot-marquee { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 12px 16px; border: 1px solid rgba(184,255,98,.18); border-radius: 13px; background: #0a110e; }
.slot-marquee span { color: var(--mint); font-size: 11px; font-weight: 900; letter-spacing: .2em; }
.slot-marquee strong { color: var(--mint); font-size: 25px; letter-spacing: .12em; text-shadow: 0 0 22px rgba(184,255,98,.5); }
.slot-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: #030605; }
.reel-window { position: relative; height: clamp(118px, 15vw, 154px); overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: linear-gradient(#e7eee8, #abb8ad); color: #101713; box-shadow: inset 0 10px 25px rgba(255,255,255,.45), inset 0 -12px 20px rgba(0,0,0,.16); }
.reel-window::before, .reel-window::after { content: ""; position: absolute; right: 0; left: 0; z-index: 3; height: 24%; pointer-events: none; }
.reel-window::before { top: 0; background: linear-gradient(rgba(21,30,24,.28), transparent); }
.reel-window::after { bottom: 0; background: linear-gradient(transparent, rgba(21,30,24,.28)); }
.reel-strip { position: absolute; inset: 0 0 auto; will-change: transform; }
.reel-symbol { display: grid; grid-template-rows: 1fr auto; place-items: center; width: 100%; height: clamp(118px, 15vw, 154px); padding: 13px 4px 10px; }
.reel-symbol b { align-self: end; font-size: clamp(38px, 7vw, 68px); line-height: .92; }
.reel-symbol small { align-self: end; min-height: 15px; color: #27342c; font-size: clamp(8px, 1.2vw, 11px); font-weight: 950; line-height: 1; letter-spacing: -.02em; }
.reel-symbol.is-text b { font-size: clamp(25px, 4vw, 43px); font-weight: 1000; letter-spacing: -.09em; }
.slot-machine.is-spinning { border-color: rgba(184,255,98,.48); box-shadow: 0 30px 80px rgba(0,0,0,.48), 0 0 42px rgba(184,255,98,.08); }
.mercy-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 17px; }
.mercy-meter > span { height: 7px; border-radius: 999px; background: #26302c; transition: background .2s ease, box-shadow .2s ease; }
.mercy-meter > span.active { background: var(--mint); box-shadow: 0 0 14px rgba(184,255,98,.45); }
.mercy-meter small { grid-column: 1 / -1; margin-top: 3px; color: var(--muted); font-size: 10px; text-align: center; }
.mercy-meter.ready small { color: var(--mint); font-weight: 800; }
.scratch-ticket { position: relative; display: grid; grid-template-rows: 38px 1fr; gap: 12px; width: min(460px, 82vw); aspect-ratio: 1.55; padding: 20px 22px 22px; overflow: hidden; border: 1px solid rgba(184,255,98,.38); border-radius: 20px; background: linear-gradient(135deg, #b8ff62, #73c64a); color: #0c1308; box-shadow: 0 32px 80px rgba(0,0,0,.38); transform: rotate(-1.5deg); }
.scratch-ticket::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: repeating-linear-gradient(110deg, rgba(255,255,255,.22) 0 1px, transparent 1px 8px); mix-blend-mode: overlay; }
.scratch-ticket-head { z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.scratch-ticket-head span, .scratch-ticket-head small { font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.scratch-prize-grid { z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border-radius: 13px; background: rgba(255,255,255,.48); }
.scratch-prize-cell { display: grid; place-items: center; min-width: 0; border: 1px dashed rgba(12,19,8,.28); border-radius: 8px; background: rgba(255,255,255,.32); font-size: clamp(11px, 2vw, 16px); font-weight: 900; letter-spacing: -.02em; }
.scratch-prize-cell.winning { position: relative; background: rgba(255,224,83,.22); }
.scratch-prize-cell.winning::after { content: ""; position: absolute; inset: 7px 10px; border: 3px solid #ffd84d; border-radius: 50%; box-shadow: 0 0 13px rgba(255,216,77,.55); transform: rotate(-5deg); }
.scratch-ticket.lost-ticket { border-color: #ff5b5b; box-shadow: 0 0 0 4px rgba(255,70,70,.82), 0 32px 80px rgba(0,0,0,.38), 0 0 34px rgba(255,70,70,.2); }
.scratch-ticket.winning-ticket { border-color: #ffd84d; }
.scratch-layer { position: absolute; z-index: 3; top: 70px; right: 30px; bottom: 30px; left: 30px; width: calc(100% - 60px); height: calc(100% - 100px); border-radius: 12px; cursor: crosshair; opacity: .58; pointer-events: none; touch-action: none; transition: opacity .25s ease; }
.scratch-layer.is-ready { opacity: 1; pointer-events: auto; }
.scratch-layer.is-revealed { opacity: 0; pointer-events: none; }
.result-panel { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #080c0e; }
.result-panel span { color: var(--mint); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.result-panel strong { font-size: 21px; }
.result-panel small { color: var(--muted); }
.result-panel.win { border-color: rgba(184,255,98,.45); box-shadow: 0 0 36px rgba(184,255,98,.06); }
.result-panel.return { border-color: rgba(184,255,98,.22); background: rgba(184,255,98,.035); }
.play-console { align-self: start; position: sticky; top: 108px; padding: 25px; }
.console-head { display: grid; gap: 7px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.console-head span, .console-stat span { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.console-head strong { font-size: 31px; letter-spacing: -.055em; }
.console-stat { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.console-status { margin: 18px 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: #080c0e; }
.play-button { width: 100%; }
.mobile-play-slot { display: none; }
.desktop-play-slot { width: 100%; }
.console-note { margin: 16px 0; text-align: center; }
.odds-list { border-top: 1px solid var(--line); }
.odds-list summary { padding: 16px 0; color: #c2cccf; font-size: 11px; cursor: pointer; }
.odds-list div { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); font-size: 10px; }
.odds-list strong { color: #dce2e0; }
.odds-list .odds-subhead { margin: 13px 0 2px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--mint); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.rtp-context { margin: 10px 0 0; text-align: left; }

.page-heading > p { margin-bottom: 9px; }
.page-heading > p strong { color: white; }
.wallet-summary, .admin-summary { grid-template-columns: repeat(4, 1fr); margin: 0 0 25px; }
.wallet-summary strong, .admin-summary strong { font-size: 22px; letter-spacing: -.04em; }
.security-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); align-items: center; gap: 30px; margin-bottom: 25px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(115deg, rgba(255,255,255,.028), rgba(184,255,98,.018)); }
.security-panel.active { border-color: rgba(184,255,98,.26); }
.security-panel h2 { margin-bottom: 8px; font-size: 25px; }
.security-panel p:last-child { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.security-panel p strong { color: #f1f7f3; }
.security-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.security-title .eyebrow { margin: 0; }
.security-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.security-badge.active { border-color: rgba(184,255,98,.3); background: rgba(184,255,98,.07); color: var(--mint); }
.security-badge.pending { border-color: rgba(246,201,93,.3); background: rgba(246,201,93,.07); color: var(--gold); }
.security-action { justify-self: end; }
.security-form { grid-template-columns: minmax(180px, 1fr) auto; align-items: end; }
.security-form .primary-button { white-space: nowrap; }
.wallet-grid, .admin-grid, .two-data-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.024); }
.panel h2 { margin-bottom: 22px; font-size: 25px; }
.rate-display { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rate-display span { color: var(--muted); }
.rate-display strong { color: var(--mint); font-size: 24px; }
.deposit-panel ol { display: grid; gap: 13px; padding-left: 20px; color: #aab6ba; font-size: 12px; line-height: 1.5; }
.example-box { display: flex; justify-content: space-between; margin: 20px 0; padding: 14px; border-radius: 11px; background: rgba(184,255,98,.07); font-size: 12px; }
.bonus-callout { margin: 18px 0 0; padding: 15px 16px; border: 1px solid rgba(246,201,93,.32); border-radius: 12px; background: rgba(246,201,93,.07); color: #ffbd52; font-size: 15px; font-weight: 720; line-height: 1.55; }
.data-section { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.018); }
.two-data-columns .data-section { min-width: 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title h2 { margin: 0; font-size: 19px; }
.section-title span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.ledger-details > summary { margin: 0; list-style: none; cursor: pointer; user-select: none; }
.ledger-details > summary::-webkit-details-marker { display: none; }
.ledger-details[open] > summary { margin-bottom: 18px; }
.section-title .ledger-title { display: grid; gap: 4px; color: inherit; text-transform: none; letter-spacing: 0; }
.ledger-title small { color: var(--muted); font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.ledger-toggle { display: inline-flex; align-items: center; gap: 9px; }
.ledger-toggle b { display: inline-grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; color: var(--mint); font-size: 15px; transition: transform .25s ease; }
.ledger-details[open] .ledger-toggle b { transform: rotate(180deg); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 0 12px 11px; color: #68767b; font-size: 9px; text-align: left; text-transform: uppercase; letter-spacing: .1em; }
td { padding: 14px 12px; border-top: 1px solid var(--line); color: #c1cbce; vertical-align: middle; }
td small { display: block; margin-top: 4px; color: #6f7d82; }
td.positive { color: var(--mint); }
td.negative { color: #ff8f8f; }
.entry-type { display: block; color: white; font-weight: 700; text-transform: capitalize; }
.muted-cell { padding: 28px; color: var(--muted); text-align: center; }
.status { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: #a9b5b9; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.status.fulfilled, .status.approved { background: rgba(184,255,98,.09); color: var(--mint); }
.status.requested, .status.owed { background: rgba(246,201,93,.09); color: var(--gold); }
.status.rejected, .status.cancelled { background: rgba(255,107,107,.09); color: #ff8d8d; }
.text-button { margin-right: 7px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--mint); font-size: 9px; font-weight: 750; cursor: pointer; }
.text-button.danger { color: #ff8e8e; }

.formula-panel { display: grid; gap: 10px; margin-top: 20px; padding: 24px; border: 1px solid rgba(184,255,98,.18); border-radius: var(--radius); background: rgba(184,255,98,.035); }
.formula-panel > span { color: var(--mint); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.formula-panel code { overflow-wrap: anywhere; font-size: clamp(13px, 2vw, 20px); }
.formula-panel p { margin: 0; color: var(--muted); font-size: 11px; }
.terms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.terms-grid article > span { color: var(--mint); font-size: 10px; font-weight: 850; }
.terms-grid h2 { margin: 28px 0 10px; }
.terms-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.lottery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lottery-panel { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(184,255,98,.045), rgba(255,255,255,.018)); }
.lottery-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.lottery-top h2 { margin: 0; font-size: 26px; }
.lottery-top > strong { color: var(--mint); font-size: 24px; letter-spacing: -.045em; }
.lottery-pool { display: grid; justify-items: end; gap: 2px; text-align: right; }
.lottery-pool span, .lottery-pool small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.lottery-pool strong { color: var(--mint); font-size: 24px; letter-spacing: -.045em; }
.lottery-pool small { max-width: 150px; text-transform: none; letter-spacing: 0; }
.lottery-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 30px; }
.lottery-stats div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.16); }
.lottery-stats span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.lottery-stats strong { font-size: 12px; }
.lottery-progress { height: 7px; margin: 18px 0; overflow: hidden; border-radius: 999px; background: #202925; }
.lottery-progress span { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.lottery-countdown { display: grid; gap: 4px; min-height: 48px; }
.lottery-countdown strong { font-size: 18px; }
.lottery-countdown small { color: var(--muted); font-size: 10px; }
.lottery-last { margin-top: 12px; color: var(--muted); font-size: 10px; }
.lottery-last strong { color: #dce5e1; }
.lottery-buy { display: grid; grid-template-columns: 110px 1fr; gap: 10px; margin-top: 20px; }
.lottery-buy label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.lottery-buy input { min-width: 0; height: 35px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #080c0a; color: white; }
.lottery-limit { margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 11px; text-align: center; }

.admin-summary { grid-template-columns: repeat(4, 1fr); }
.reserve-panel { background: linear-gradient(145deg, rgba(184,255,98,.075), rgba(255,255,255,.018)); }
.reserve-panel > strong { display: block; margin: 25px 0 10px; color: var(--mint); font-size: clamp(30px, 4vw, 48px); letter-spacing: -.06em; }
.reserve-panel > p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.reserve-breakdown { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.reserve-breakdown span { padding: 6px 9px; border: 1px solid rgba(184,255,98,.15); border-radius: 999px; color: #bfcbca; font-size: 9px; }
.payout-notice { margin: 14px 0 0; padding: 12px 14px; border: 1px solid rgba(184,255,98,.25); border-radius: 10px; background: rgba(184,255,98,.06); color: #dce9d8; font-size: 11px; line-height: 1.5; }
.confirm-dialog { width: min(430px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; background: #101619; color: var(--text); box-shadow: 0 35px 100px rgba(0,0,0,.65); }
.confirm-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.confirm-dialog form { padding: 26px; }
.confirm-dialog h2 { margin-bottom: 10px; font-size: 28px; }
.confirm-dialog p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.confirm-dialog p strong { color: white; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; margin-top: 24px; }
.secondary-button { min-height: 51px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: #dbe3df; font-size: 12px; font-weight: 750; cursor: pointer; }
.empty-state { display: grid; place-items: center; min-height: 70vh; text-align: center; }
.empty-state h1 { font-size: clamp(45px, 8vw, 90px); }
.two-factor-shell { display: grid; place-items: center; min-height: 62vh; }
.two-factor-card { width: min(520px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.026); box-shadow: var(--shadow); }
.two-factor-card.success { border-color: rgba(184,255,98,.3); }
.two-factor-card.error { border-color: rgba(255,107,107,.32); }
.two-factor-card h1 { margin-bottom: 13px; font-size: clamp(38px, 6vw, 60px); }
.two-factor-card > p:not(.eyebrow) { margin-bottom: 25px; color: var(--muted); line-height: 1.65; }
.two-factor-card > p strong { color: white; }
.otp-input { height: 66px; padding-left: 25px !important; font-size: 30px !important; font-weight: 850; letter-spacing: .55em; font-variant-numeric: tabular-nums; }
.two-factor-resend { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 18px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.two-factor-resend .text-button { margin: 0; }
.two-factor-card .back-link { margin: 0; }

.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; gap: 8px; width: min(370px, calc(100vw - 44px)); }
.toast { padding: 14px 16px; border: 1px solid rgba(184,255,98,.25); border-radius: 12px; background: #11191c; box-shadow: var(--shadow); color: #dfe7e4; font-size: 11px; animation: toastIn .22s ease both; }
.toast.error { border-color: rgba(255,107,107,.35); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: auto 1fr; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-self: center; margin-bottom: 10px; }
  .account-cluster { justify-self: end; }
  .public-topbar { grid-template-columns: 1fr 1fr; }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .game-card:last-child { grid-column: 1 / -1; }
  .game-layout { grid-template-columns: 1fr 310px; }
  .lottery-grid { grid-template-columns: 1fr 1fr; }
  .admin-summary { grid-template-columns: 1fr 1fr; }
  .admin-summary div:nth-child(3) { grid-column: auto; border-left: 0; border-top: 1px solid var(--line); }
  .admin-summary div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .page { padding-top: 35px; }
  .topbar { position: relative; padding: 14px 20px; }
  .player-id { display: none; }
  .balance-pill { min-width: 112px; }
  .trust-strip { display: none; }
  .public-hero, .game-layout, .wallet-grid, .admin-grid, .two-data-columns, .lottery-grid { grid-template-columns: 1fr; }
  .terms-grid { grid-template-columns: 1fr; }
  .public-hero { gap: 20px; }
  .hero-copy { padding-bottom: 10px; }
  .auth-panel { max-width: 560px; }
  .dashboard-hero, .page-heading { align-items: flex-start; flex-direction: column; }
  .hero-balance { width: 100%; border-left: 0; border-top: 1px solid var(--line); }
  .game-layout { gap: 18px; }
  .security-panel { grid-template-columns: 1fr; gap: 20px; }
  .security-action { justify-self: start; }
  .security-form { grid-template-columns: 1fr; }
  .game-stage { min-height: 630px; }
  .play-console { position: static; }
  .mobile-play-slot { display: block; margin: -2px 0 14px; }
  .mobile-play-slot .play-button { display: flex; align-items: center; justify-content: space-between; min-height: 54px; }
  .desktop-play-slot:empty { display: none; }
  .announcement-track { animation-duration: 32s; }
}

@media (max-width: 600px) {
  .topbar { display: flex; flex-wrap: wrap; gap: 12px; }
  .brand { margin-right: auto; }
  .account-cluster { gap: 7px; }
  .balance-pill { min-width: 0; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; }
  .main-nav a { display: inline-grid; place-items: center; min-height: 42px; white-space: nowrap; }
  .icon-button { width: 42px; height: 42px; }
  input:not([type="checkbox"]), select, textarea { font-size: 16px; }
  .announcement-set span { padding: 8px 18px; font-size: 9px; }
  .site-footer { flex-direction: column; gap: 10px; padding-block: 22px; }
  .page { padding-inline: 16px; }
  h1 { font-size: 47px; }
  .jackpot-ribbon { grid-template-columns: 1fr; }
  .jackpot-ribbon div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card, .game-card:last-child { grid-column: auto; }
  .system-strip, .wallet-summary, .admin-summary { grid-template-columns: 1fr 1fr; }
  .system-strip div:nth-child(3), .wallet-summary div:nth-child(3), .admin-summary div:nth-child(3) { grid-column: auto; border-top: 1px solid var(--line); border-left: 0; }
  .system-strip div:nth-child(4), .wallet-summary div:nth-child(4), .admin-summary div:nth-child(4) { border-top: 1px solid var(--line); }
  .game-stage { min-height: 550px; padding: 18px; }
  .game-stage-heading { flex-direction: column; }
  .game-stage-tools { align-items: flex-start; }
  .game-preferences { flex-wrap: wrap; }
  .game-preferences button { min-height: 38px; padding-inline: 13px; }
  .wheel-visual, .scratch-visual, .slot-visual { min-height: 350px; }
  .wheel-pointer { top: 20px; }
  .wheel-slot-label.slot-0 { transform: rotate(0deg) translateY(-25vw) rotate(0deg); }
  .wheel-slot-label.slot-1 { transform: rotate(51.428deg) translateY(-25vw) rotate(-51.428deg); }
  .wheel-slot-label.slot-2 { transform: rotate(102.856deg) translateY(-25vw) rotate(-102.856deg); }
  .wheel-slot-label.slot-3 { transform: rotate(154.284deg) translateY(-25vw) rotate(-154.284deg); }
  .wheel-slot-label.slot-4 { transform: rotate(205.712deg) translateY(-25vw) rotate(-205.712deg); }
  .wheel-slot-label.slot-5 { transform: rotate(257.14deg) translateY(-25vw) rotate(-257.14deg); }
  .wheel-slot-label.slot-6 { transform: rotate(308.568deg) translateY(-25vw) rotate(-308.568deg); }
  .lottery-buy { grid-template-columns: 1fr; }
  .lottery-top { flex-direction: column; }
  .lottery-pool { justify-items: start; text-align: left; }
  .confirm-actions { grid-template-columns: 1fr; }
  .panel, .data-section { padding: 18px; }
  .table-wrap { margin-inline: -6px; padding-inline: 6px; overscroll-behavior-inline: contain; }
  .table-wrap table { min-width: 520px; }
  .proof-dialog dl { grid-template-columns: 1fr; gap: 4px; }
  .proof-dialog dd { margin-bottom: 10px; }
}

@media (hover: none) {
  .game-card:hover, .primary-button:hover:not(:disabled) { transform: none; }
}

@media (max-width: 420px) {
  .topbar { gap: 9px; padding: 10px 12px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 31px; height: 31px; }
  .balance-pill { padding: 7px 9px; }
  .balance-pill span { display: none; }
  .balance-pill strong { font-size: 12px; }
  .main-nav { gap: 3px; padding: 3px; }
  .main-nav a { min-height: 40px; padding: 7px 11px; font-size: 12px; }
  .announcement-set span { padding-inline: 14px; }
  .page { padding: 30px 12px 64px; }
  h1, .dashboard-hero h1, .page-heading h1 { font-size: 40px; }
  .page-heading, .dashboard-hero { gap: 18px; margin-bottom: 30px; }
  .public-hero { min-height: auto; }
  .hero-copy { padding-top: 12px; }
  .hero-lead { font-size: 16px; }
  .auth-panel { padding: 20px; border-radius: 20px; }
  .game-card { min-height: 320px; padding: 18px; }
  .game-orbit { width: 160px; height: 160px; margin-block: 23px 17px; }
  .game-stage { min-height: 0; padding: 14px; }
  .game-stage-heading h1 { font-size: 36px; }
  .wheel-visual, .scratch-visual, .slot-visual { min-height: 310px; }
  .wheel-core { width: 92px; }
  .wheel-core strong { max-width: 72px; font-size: 13px; }
  .wheel-core span { font-size: 7px; }
  .wheel-slot-label { width: 64px; margin-left: -32px; font-size: 9px; }
  .slot-machine { width: 100%; padding: 12px; border-radius: 18px; }
  .slot-reels { gap: 5px; padding: 6px; }
  .reel-window, .reel-symbol { height: 108px; }
  .reel-symbol { padding-inline: 2px; }
  .reel-symbol b { font-size: 32px; }
  .reel-symbol.is-text b { font-size: 24px; }
  .scratch-ticket { width: 100%; padding: 14px; border-radius: 15px; }
  .scratch-prize-grid { gap: 5px; padding: 5px; }
  .scratch-layer { right: 20px; bottom: 20px; left: 20px; width: calc(100% - 40px); height: calc(100% - 90px); }
  .result-panel { padding: 15px; }
  .play-console { padding: 18px; }
  .console-head strong { font-size: 26px; overflow-wrap: anywhere; }
  .odds-list div { gap: 12px; }
  .odds-list strong { flex: none; }
  .system-strip, .wallet-summary, .admin-summary { grid-template-columns: 1fr; }
  .system-strip div + div, .wallet-summary div + div, .admin-summary div + div { border-top: 1px solid var(--line); border-left: 0; }
  .wallet-grid, .admin-grid { gap: 14px; }
  .panel, .data-section, .lottery-panel { padding: 16px; border-radius: 17px; }
  .security-panel, .two-factor-card { padding: 20px; border-radius: 17px; }
  .security-title { align-items: flex-start; flex-direction: column; }
  .two-factor-resend { align-items: flex-start; flex-direction: column; }
  .bonus-callout { font-size: 14px; }
  .lottery-stats { grid-template-columns: 1fr 1fr; }
  .lottery-stats div:last-child { grid-column: 1 / -1; }
  .ledger-details > summary { align-items: flex-start; gap: 12px; }
  .ledger-toggle { font-size: 8px; white-space: nowrap; }
  .confirm-dialog form { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
