/* LOWTTERY · Casino Night
   Near-black and gold, red velvet, neon pink. Clean sans-serif, sharp edges.
   Performance rules: the backdrop is static, nothing uses backdrop-filter, and
   everything that moves animates only transform or opacity (the browser runs
   those on the GPU without repainting the page). */

@property --pull {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

:root {
  color-scheme: dark;
  --bg: #08070b;
  --s1: #121016;
  --s2: #18151d;
  --line: rgba(233, 196, 106, .14);
  --line-2: rgba(233, 196, 106, .32);
  --text: #f4efe6;
  --muted: #a59f95;
  --faint: #6e6961;
  --gold: #e9c46a;
  --gold-hi: #ffe7a3;
  --gold-lo: #9c7428;
  --gold-grad: linear-gradient(180deg, #fff3c4 0%, #f2cf72 30%, #c1922f 58%, #f5d98a 80%, #a27a2c 100%);
  --red: #d0142c;
  --neon: #ff2d8f;
  --neon-hi: #ff8fca;
  --cyan: #2ee6ff;
  --mint: #34e39b;
  --violet: #a47bff;
  --orange: #ff8a3d;
  --good: #34e39b;
  --bad: #ff5a6e;
  --r: 6px;
  --r-sm: 4px;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bebas Neue', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --script: 'Yellowtail', 'Brush Script MT', cursive;
  --glyph: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Apple Symbols', system-ui, sans-serif;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
  --topbar-h: 60px;
  --tabbar-h: 0px;
}

/* ---- base ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #3a3340 #0b0a0e; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
/* The casino floor: spotlights and a faint carpet lattice, on one fixed layer
   so scrolling never repaints it. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(208, 20, 44, .24), transparent 65%),
    radial-gradient(700px 420px at 100% 0%, rgba(255, 45, 143, .1), transparent 70%),
    radial-gradient(800px 600px at 0% 45%, rgba(233, 196, 106, .06), transparent 70%),
    repeating-linear-gradient(45deg, rgba(233, 196, 106, .022) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-45deg, rgba(233, 196, 106, .022) 0 1px, transparent 1px 26px),
    var(--bg);
}
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
button, input, select, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: rgba(233, 196, 106, .35); }
h1, h2, h3 { font-weight: 400; }
kbd { padding: 1px 6px; border-radius: 3px; border: 1px solid var(--line-2); background: #0b0a0e; font: 600 11px var(--ui); color: var(--gold); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--gold); color: #000; border-radius: 4px; }
.skip:focus { left: 8px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gold { color: var(--gold-hi); }
.muted { color: var(--muted); }
.center { text-align: center; }
.fine { margin: 10px 0 0; color: var(--faint); font-size: 12.5px; }
.fine b { color: var(--gold); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.stars { color: var(--gold); letter-spacing: .1em; }
.stars.big { font-size: 20px; }
.sym { display: block; }

.neon-script {
  font: 400 1em/1 var(--script);
  color: #ffe3f1;
  text-shadow: 0 0 2px #fff, 0 0 10px var(--neon), 0 0 22px var(--neon), 0 0 42px rgba(255, 45, 143, .55);
  animation: flicker 8s steps(1, end) infinite;
}

.tag { display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 3px; font: 800 9.5px/1.2 var(--ui); letter-spacing: .12em; vertical-align: 2px; }
.tag.you { color: #fff; background: var(--neon); box-shadow: 0 0 10px rgba(255, 45, 143, .5); }

/* ---- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-sm);
  font: 700 13px/1 var(--ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #2a1a03;
  background: var(--gold-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(90, 55, 8, .45), 0 8px 22px -10px rgba(233, 196, 106, .6);
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { color: #2a1a03; filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { filter: grayscale(.8) brightness(.55); cursor: not-allowed; transform: none; }
.btn.red { color: #fff; background: linear-gradient(180deg, #ff5a6e 0%, #e01a35 45%, #a30c22 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(60, 0, 8, .5), 0 8px 22px -10px rgba(255, 59, 82, .7); }
.btn.neon { color: #fff; background: linear-gradient(180deg, #ff5fae, #d81b78); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(70, 0, 35, .45), 0 0 0 1px rgba(255, 143, 202, .4), 0 0 24px -4px rgba(255, 45, 143, .65); }
.btn.red:hover, .btn.neon:hover { color: #fff; }
.btn.ghost { color: var(--gold); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { color: var(--gold-hi); background: rgba(233, 196, 106, .08); filter: none; }
.btn.small { height: 34px; padding: 0 14px; font-size: 11.5px; }
.btn.big { height: 52px; padding: 0 28px; font-size: 14px; }
.btn.wide { width: 100%; }

/* ---- top bar, ticker, tab bar, footer -------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--topbar-h);
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  background: rgba(10, 9, 13, .95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px #000;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { position: relative; width: 20px; height: 20px; transform: rotate(45deg); background: var(--gold-grad); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(233, 196, 106, .5), 0 0 14px rgba(255, 45, 143, .4); }
.logo-mark::after { content: ''; position: absolute; inset: 6px; background: var(--red); }
.logo-text { padding-top: 3px; font: 400 30px/1 var(--display); letter-spacing: .07em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a { position: relative; padding: 8px 12px; border-radius: var(--r-sm); font: 600 12.5px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav a.active { color: var(--gold-hi); }
.nav a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -16px; height: 2px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hud { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.credits {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #1b1720, #0f0d12);
  color: var(--gold-hi);
  text-decoration: none;
  font: 400 22px/1 var(--display);
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
}
.credits:hover { color: #fff; }
.credits #credit-count { min-width: 3ch; padding-top: 2px; text-align: right; }
.credits.empty { color: var(--faint); }
.coin { flex: none; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff7d6, #f2cf72 38%, #a8711c 80%, #5e3a0a); box-shadow: inset 0 0 0 2px rgba(94, 58, 10, .55), 0 0 10px rgba(233, 196, 106, .35); }
.auth-btn { height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: transparent; color: var(--gold); font: 700 11.5px var(--ui); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.auth-btn:hover { background: rgba(233, 196, 106, .08); color: var(--gold-hi); }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--gold-hi); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg path:first-child { fill: currentColor; }
.icon-btn .slash, .icon-btn.off .waves { display: none; }
.icon-btn.off .slash { display: inline; }

.ticker { position: relative; height: 32px; overflow: hidden; background: #050407; border-bottom: 1px solid var(--line); }
.ticker::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #050407, transparent 6%, transparent 94%, #050407); }
.ticker-track { display: flex; align-items: center; width: max-content; height: 100%; animation: ticker 80s linear infinite; will-change: transform; }
.ticker-track span { display: inline-flex; align-items: center; gap: 8px; padding: 0 26px; font: 600 11.5px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker-track span i { font-style: normal; color: var(--c); }
.ticker-track span b { color: var(--text); }
.ticker-track span::after { content: '◆'; margin-left: 26px; color: var(--gold-lo); font-size: 7px; }

.tabbar { display: none; }

.view { max-width: 1280px; margin: 0 auto; padding: 22px 20px; }

.footer { max-width: 1280px; margin: 40px auto 0; padding: 28px 20px calc(28px + var(--tabbar-h)); border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; text-align: center; content-visibility: auto; contain-intrinsic-size: auto 140px; }
.footer-brand { margin: 0 0 8px !important; font: 400 22px/1 var(--display); letter-spacing: .12em; color: var(--gold-lo); }
.footer p { margin: 4px 0; }
.footer b { color: var(--muted); }

/* ---- panels and page heads ------------------------------------------------ */

.panel {
  position: relative;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, #16131a 0%, #100e13 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), var(--shadow);
}
.panel.glow { border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 231, 163, .16), 0 24px 60px -34px rgba(233, 196, 106, .3), var(--shadow); }
.panel-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 14px; font: 700 12px/1.25 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.panel-title::before { content: ''; flex: none; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 8px rgba(233, 196, 106, .6); }
.panel-title small { font-weight: 500; font-size: 12px; letter-spacing: .03em; text-transform: none; color: var(--faint); }
.panel-title .more { margin-left: auto; font-size: 11.5px; letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.panel-title .more:hover { color: var(--gold-hi); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 10.5px; letter-spacing: .14em; color: var(--mint); }
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: pulse 1.6s ease-in-out infinite; }

.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 16px; margin: 4px 0 20px; }
.page-head > * { grid-column: 1 / -1; }
.page-head > .page-title { grid-column: 1; }
.page-head > .week-chip { grid-column: 2; grid-row: 1; align-self: center; }
.page-head > .btn { justify-self: start; margin-top: 6px; }
.page-head .back { font: 700 11.5px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.page-head .back:hover { color: var(--gold-hi); }
.page-title { margin: 0; font: 400 clamp(38px, 5vw, 56px)/.95 var(--display); letter-spacing: .03em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-sub { margin: 0; max-width: 72ch; color: var(--muted); }
.week-chip { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font: 700 11.5px var(--ui); letter-spacing: .05em; color: var(--gold); white-space: nowrap; }

.loading { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 50vh; font: 700 12px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.spinner { width: 34px; height: 34px; border-radius: 50%; background: repeating-conic-gradient(var(--gold) 0 15deg, var(--red) 15deg 30deg); -webkit-mask: radial-gradient(circle, transparent 40%, #000 42%); mask: radial-gradient(circle, transparent 40%, #000 42%); animation: spin 1s linear infinite; }
.error-panel { display: grid; justify-items: center; gap: 12px; max-width: 560px; margin: 10vh auto; text-align: center; }
.error-panel p { margin: 0; color: var(--muted); }

/* Marquee bulbs around a box: two offset rows of lamps, blinking against each other. */
.marquee { position: relative; isolation: isolate; }
.marquee::before, .marquee::after {
  --dot: radial-gradient(circle, #fffbe8 0 1.6px, #ffd257 2.4px, rgba(255, 190, 50, .3) 3.6px, transparent 5.5px);
  content: '';
  position: absolute;
  inset: 7px;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: var(--dot) 0 0 / 22px 12px repeat-x, var(--dot) 0 100% / 22px 12px repeat-x, var(--dot) 0 0 / 12px 22px repeat-y, var(--dot) 100% 0 / 12px 22px repeat-y;
  animation: chase 1.6s steps(1, end) infinite;
}
.marquee::after { background-position: 11px 0, 11px 100%, 0 11px, 100% 11px; animation-delay: -.8s; }
.spinning .marquee::before, .spinning .marquee::after { animation-duration: .3s; }
.spinning .marquee::after { animation-delay: -.15s; }
.flash .marquee::before, .flash .marquee::after { animation: blink .22s steps(1, end) 10; }

/* ---- shared lists, rows, meters and tables --------------------------------- */

.rows { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rows li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 38px; padding: 4px 12px 4px 6px; border: 1px solid transparent; border-radius: var(--r-sm); background: rgba(255, 255, 255, .025); }
.rows .rk { display: grid; place-items: center; width: 26px; height: 26px; padding-top: 2px; border-radius: 50%; background: #0b0a0e; box-shadow: inset 0 0 0 1px var(--line); font: 400 16px/1 var(--display); color: var(--muted); }
.rows li.r1 .rk { color: #2a1a03; background: radial-gradient(circle at 35% 30%, #fff7d6, #f2cf72 40%, #b8892e); box-shadow: 0 0 12px rgba(233, 196, 106, .45); }
.rows li.r2 .rk { color: #1c1c22; background: radial-gradient(circle at 35% 30%, #fff, #cfd3dc 45%, #8a8f9c); box-shadow: none; }
.rows li.r3 .rk { color: #2a1405; background: radial-gradient(circle at 35% 30%, #ffe1c4, #d58c4f 45%, #8c4f1e); box-shadow: none; }
.rows .nm { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rows .nm a { color: var(--text); text-decoration: none; }
.rows .rg { margin-right: 8px; font-family: var(--glyph); font-style: normal; color: var(--gold); opacity: .85; }
.rows .rs { font-family: var(--glyph); color: var(--gold); }
.rows .sc { min-width: 3ch; padding-top: 2px; font: 400 20px/1 var(--display); letter-spacing: .04em; text-align: right; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.rows li.me { border-color: rgba(255, 45, 143, .5); background: rgba(255, 45, 143, .08); }
.rows li.gap { display: block; min-height: 0; padding: 0; background: none; text-align: center; letter-spacing: .3em; color: var(--faint); }

.meters { display: grid; gap: 10px; }
.meter { display: grid; grid-template-columns: 92px minmax(0, 1fr) 34px; align-items: center; gap: 10px; }
.meter-label { font-weight: 600; font-size: 13px; white-space: nowrap; }
.meter-label b { margin-right: 4px; font-weight: 400; color: var(--c); }
.meter-bar { position: relative; height: 10px; overflow: hidden; border-radius: 999px; background: #0a090d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.meter-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 50%, #000), var(--c)); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); }
.meter-bar i::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(0, 0, 0, .35) 9px 10px); }
.meter-val { padding-top: 2px; font: 400 20px/1 var(--display); text-align: right; }
.meter.compact { grid-template-columns: 74px minmax(0, 1fr) 28px; gap: 8px; }
.meter.compact .meter-label { font-size: 12px; }
.meter.compact .meter-bar { height: 8px; }
.meter.compact .meter-val { font-size: 17px; }

.paytable { width: 100%; border-collapse: collapse; }
.paytable td { padding: 7px 4px; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 14px; }
.paytable tr:last-child td { border-bottom: 0; }
.paytable .x { font: 400 20px/1 var(--display); letter-spacing: .04em; text-align: right; color: var(--gold-hi); }
.paytable tr.mine td, .paytable tr.mine .x { color: var(--neon-hi); }
.paytable tr.jack .x { color: var(--gold); text-shadow: 0 0 10px rgba(233, 196, 106, .55); }
.syms { display: inline-flex; gap: 4px; vertical-align: middle; }
.syms .sym { width: 26px; height: 26px; }

.log { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.log li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .025); font-size: 13.5px; }
.log .w { font-weight: 700; color: var(--good); }
.log .l { color: var(--muted); }
.log li.empty { justify-content: center; color: var(--faint); }

.kv { display: grid; margin: 0; }
.kv > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { font: 700 10.5px/1.7 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0; }
.facts div { padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .04); border-radius: var(--r-sm); background: rgba(255, 255, 255, .03); }
.facts dt { font: 700 10px/1.4 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 13.5px; }

.perk-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.perk-list li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.perk-list i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-style: normal; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #0b0a0e); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.perk-list b { color: var(--text); }

.steps { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 12px; counter-increment: s; }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding-top: 2px; border-radius: 50%; background: var(--gold-grad); font: 400 17px/1 var(--display); color: #2a1a03; }

.why-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.why-list li { display: flex; gap: 12px; font-size: 13.5px; color: var(--muted); }
.why-list b { display: block; color: var(--text); }
.why-list .ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--gold); background: rgba(233, 196, 106, .08); box-shadow: inset 0 0 0 1px var(--line-2); }

.notes { display: grid; gap: 6px; margin: 12px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.switch { margin: 12px 0 0; font-size: 13.5px; text-align: center; color: var(--muted); }
.headline { margin: 0 0 14px; font-size: 15px; }
.note { margin: 12px 0 0; padding: 10px 12px; border: 1px solid rgba(255, 138, 61, .35); border-radius: var(--r-sm); background: rgba(255, 138, 61, .08); font-size: 13px; color: #ffc9a3; }

.medallion { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold-grad); font: 24px/1 var(--glyph); color: #2a1a03; box-shadow: 0 0 0 3px #0b0a0e, 0 0 0 4px rgba(233, 196, 106, .5), 0 0 18px rgba(233, 196, 106, .35); }
.medallion.big { width: 64px; height: 64px; font-size: 32px; }

.lucky { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lucky > div { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .03); text-align: center; }
.charm { position: relative; isolation: isolate; display: grid; place-items: center; width: 44px; height: 44px; padding-top: 2px; border-radius: 50%; font: 400 22px/1 var(--display); }
.charm.swatch { background: var(--sw); box-shadow: 0 0 0 3px #0b0a0e, 0 0 0 4px rgba(233, 196, 106, .5), 0 0 16px color-mix(in srgb, var(--sw) 50%, transparent); }
.charm.chip-num { color: #fff; background: repeating-conic-gradient(#f4efe6 0 15deg, #c8132d 15deg 30deg); }
.charm.chip-num::before { content: ''; position: absolute; inset: 6px; z-index: -1; border: 1.5px dashed rgba(255, 255, 255, .7); border-radius: 50%; background: #c8132d; }
.charm.day { width: auto; min-width: 48px; padding: 2px 10px 0; border-radius: 6px; background: var(--gold-grad); font-size: 20px; color: #2a1a03; }
.lucky .v { font-weight: 600; font-size: 13px; }
.lucky .k { font: 700 10px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

.orb { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--l), var(--m) 45%, var(--d)); font: 13px/1 var(--glyph); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.retro { font-weight: 700; color: var(--orange); }
.transit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.transit-table th { padding: 0 4px 6px; font: 700 10px var(--ui); letter-spacing: .12em; text-align: left; text-transform: uppercase; color: var(--faint); }
.transit-table td { padding: 6px 4px; border-top: 1px solid rgba(255, 255, 255, .05); }
.eff { font-weight: 700; }

/* ---- lobby -------------------------------------------------------------- */

.lobby { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.lobby > * { grid-column: span 12; }
.lobby .you { grid-column: span 5; }
.lobby .boards-tile { grid-column: span 7; }
.lobby .phal-tile { grid-column: span 5; }
.lobby .sky { grid-column: span 3; }
.lobby .wins { grid-column: span 4; }
.lobby .perks .perk-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lobby .phal-tile, .lobby .sky, .lobby .wins, .lobby .perks { content-visibility: auto; contain-intrinsic-size: auto 420px; }
.lobby .perks { contain-intrinsic-size: auto 110px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 44px 48px;
  overflow: hidden;
  border: 1px solid rgba(233, 196, 106, .35);
  border-radius: 12px;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(255, 59, 82, .3), transparent 70%),
    radial-gradient(500px 340px at 100% 100%, rgba(255, 45, 143, .16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 14px, rgba(255, 255, 255, .018) 14px 28px),
    linear-gradient(180deg, #3a0611 0%, #1c0409 60%, #120307 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 0 5px rgba(233, 196, 106, .1), 0 30px 80px -40px rgba(208, 20, 44, .6), var(--shadow);
}
.hero-copy { position: relative; z-index: 3; }
.hero-welcome { display: inline-block; margin: 0 0 4px; font-size: clamp(30px, 4vw, 44px); transform: rotate(-5deg); transform-origin: left bottom; }
.hero-title { margin: 0; font: 400 clamp(68px, 10vw, 126px)/.86 var(--display); letter-spacing: .04em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 rgba(60, 8, 16, .95)); }
.hero-tag { margin: 8px 0 0; font: 700 13px var(--ui); letter-spacing: .5em; text-transform: uppercase; color: var(--gold); }
.hero-sub { max-width: 46ch; margin: 16px 0 24px; font-size: 16px; color: #e6d9cf; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-cta .fine { flex-basis: 100%; margin-top: 2px; color: #b9a99e; }
.player-chip { display: flex; align-items: center; gap: 14px; max-width: 460px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(0, 0, 0, .35); }
.pc-text { display: grid; min-width: 0; line-height: 1.35; }
.pc-text b { font-size: 17px; }
.pc-text span { font-size: 13px; color: var(--muted); }
.player-chip .btn { margin-left: auto; }

.jackpots { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; border: 1px solid rgba(233, 196, 106, .3); border-radius: 8px; background: #050407; box-shadow: inset 0 0 30px rgba(0, 0, 0, .9), 0 0 0 4px rgba(0, 0, 0, .35); }
.jackpots::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px); }
.jp { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 12px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 6px; background: radial-gradient(120% 120% at 50% 0%, #1a0f12, #0a0709); }
.jp.main { grid-column: 1 / -1; text-align: center; border-color: rgba(255, 45, 143, .35); background: radial-gradient(100% 140% at 50% 0%, #3a0a16, #0c0608); }
.jp .k { display: block; font: 700 10.5px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.led { display: block; margin-top: 8px; font: 400 40px/1 var(--display); letter-spacing: .06em; color: #ffd36b; text-shadow: 0 0 6px rgba(255, 180, 40, .8), 0 0 18px rgba(255, 140, 0, .45); font-variant-numeric: tabular-nums; }
.jp.main .led { font-size: clamp(60px, 7vw, 88px); color: #ffe3f1; text-shadow: 0 0 4px #fff, 0 0 14px var(--neon), 0 0 34px rgba(255, 45, 143, .6); }
.jp small { display: block; margin-top: 6px; font-size: 12px; color: var(--faint); }

.cabinets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cabinet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(233, 196, 106, .28);
  border-radius: 10px;
  background: linear-gradient(180deg, #1d1922 0%, #0e0c11 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 3px rgba(0, 0, 0, .4), 0 26px 50px -30px #000;
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.cab-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cab-name { padding-top: 3px; font: 400 28px/1 var(--display); letter-spacing: .05em; color: #fff; text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 75%, transparent); }
.cab-badge { padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 3px; font: 800 10.5px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.cab-badge.live { color: #062a18; border-color: var(--mint); background: var(--mint); box-shadow: 0 0 14px rgba(52, 227, 155, .5); }
.cab-screen { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 11; overflow: hidden; border: 1px solid rgba(0, 0, 0, .8); border-radius: 8px; background: radial-gradient(80% 70% at 50% 35%, color-mix(in srgb, var(--accent) 30%, #120f15), #070609 75%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), inset 0 10px 30px rgba(0, 0, 0, .7); }
.cab-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cab-facts li { padding: 8px 10px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .03); font-size: 12px; color: var(--muted); }
.cab-facts b { display: block; margin-bottom: 2px; font: 400 20px/1 var(--display); letter-spacing: .04em; color: var(--gold-hi); }
@media (hover: hover) {
  .cabinet:hover { transform: translateY(-4px); border-color: var(--accent); }
  .cabinet:hover .mini-wheel { transform: rotate(150deg); }
}

.wheel-art { position: relative; width: 70%; aspect-ratio: 1; }
.mini-wheel { display: block; width: 100%; height: 100%; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.mini-wheel text, .wheel text { text-anchor: middle; dominant-baseline: central; }
.mini-wheel .wg, .wheel .wg { font-family: var(--glyph); }
.wheel .wl { font-family: var(--display); }
.cab-pointer { position: absolute; left: 50%; top: -3%; width: 10%; aspect-ratio: .75; transform: translateX(-50%); background: var(--gold-grad); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.reels-art { display: flex; gap: 6px; padding: 10px; border-radius: 8px; background: linear-gradient(180deg, #2a0710, #120206); box-shadow: 0 0 0 2px #b8892e, 0 0 0 4px #4a2e06, 0 0 26px rgba(255, 59, 82, .35); }
.reels-art span { display: grid; place-items: center; width: clamp(52px, 5.6vw, 76px); aspect-ratio: .8; border-radius: 4px; background: linear-gradient(180deg, #cfc9bf, #fffdf8 25%, #fffdf8 75%, #cfc9bf); }
.reels-art .sym { width: 74%; height: auto; }
.ticket-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 58%; padding: 10px; border: 1px solid rgba(233, 196, 106, .55); border-radius: 6px; background: linear-gradient(180deg, #1c1612, #0d0a08); transform: rotate(-6deg); box-shadow: 0 16px 30px -12px #000; }
.ticket-art i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 4px; background: #f6f0e3; }
.ticket-art i .sym { width: 76%; height: auto; }
.ticket-art i.foil { background: linear-gradient(135deg, #8d6a24, #f2d27e 45%, #fff2c2 55%, #c1922f); }

.you-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 18px; }
.you-id { display: grid; justify-items: center; gap: 4px; font-size: 13px; text-align: center; color: var(--muted); }
.you-id b { font-size: 17px; color: var(--text); }
.you-id b.gold { font-size: inherit; color: var(--gold-hi); }
.you-id .medallion { margin-bottom: 6px; }
.you .fine { margin: 0 0 10px; }

.tabs { display: flex; gap: 6px; margin: 0 0 12px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font: 600 12.5px var(--ui); color: var(--muted); cursor: pointer; }
.tab i { font-style: normal; color: var(--c); }
.tab small { font-weight: 800; color: var(--neon-hi); }
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { color: #fff; border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: 0 0 16px -4px color-mix(in srgb, var(--c) 60%, transparent); }

.rashi-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.rashi-row { display: grid; grid-template-columns: 22px minmax(0, 76px) minmax(0, 1fr) 26px; align-items: center; gap: 8px; padding: 6px; border-radius: var(--r-sm); font-size: 13px; color: var(--text); text-decoration: none; }
.rashi-row:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.rashi-row .g { font-family: var(--glyph); text-align: center; color: var(--gold); }
.rashi-row .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rashi-row .bar { height: 6px; overflow: hidden; border-radius: 99px; background: #0a090d; }
.rashi-row .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9c7428, #ffe7a3); }
.rashi-row .v { padding-top: 2px; font: 400 17px/1 var(--display); text-align: right; color: var(--gold-hi); }
.rashi-row.mine { background: rgba(255, 45, 143, .1); box-shadow: inset 0 0 0 1px rgba(255, 45, 143, .45); }
.rashi-row.mine .bar i { background: linear-gradient(90deg, #a3155f, var(--neon-hi)); }

.sky-top { display: flex; align-items: center; gap: 14px; }
.moon-svg { flex: none; }
.tithi { display: grid; line-height: 1.3; }
.tithi .k { font: 700 10.5px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.tithi b { padding-top: 4px; font: 400 30px/1 var(--display); letter-spacing: .04em; color: var(--gold-hi); }
.tithi span:last-child { font-size: 13px; color: var(--muted); }
.sky-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.sky-note b { color: var(--orange); }

/* ---- game pages ---------------------------------------------------------- */

.game-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 18px; }
.side { display: grid; gap: 16px; min-width: 0; }
.stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 26px 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(233, 196, 106, .3);
  border-radius: 12px;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(255, 214, 140, .16), transparent 70%),
    radial-gradient(90% 70% at 50% 100%, rgba(0, 0, 0, .6), transparent),
    linear-gradient(180deg, #2a0610, #14030a 70%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 0 5px rgba(233, 196, 106, .08), var(--shadow);
}
.stage .fine { margin: 0; color: #9c8a85; }
.stage-controls { display: grid; justify-items: center; gap: 14px; width: 100%; }
.page-head.compact { margin-bottom: 14px; }
.page-head.compact .page-title { font-size: clamp(36px, 4vw, 46px); }
.page-head.compact .page-sub { font-size: 14px; }

/* Wheel: every layer is a separate box over the same square. */
.wheel-wrap { width: min(100%, 540px, max(300px, calc(100vh - 290px))); padding: 5% 2% 0; }
.wheel { position: relative; width: 100%; aspect-ratio: 1; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.wheel:active { cursor: grabbing; }
.w-layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.w-layer > svg { display: block; width: 100%; height: 100%; }
.w-rotor { will-change: transform; }
.w-glow { opacity: 0; pointer-events: none; }
.wheel.won .w-glow { animation: glow 1s ease-in-out 3; }
.w-bulbs { pointer-events: none; animation: chase 1.6s steps(1, end) infinite; }
.w-bulbs.b { animation-delay: -.8s; }
.wheel.spinning .w-bulbs { animation-duration: .24s; }
.wheel.spinning .w-bulbs.b { animation-delay: -.12s; }
.wheel.won .w-bulbs { animation: blink .26s steps(1, end) 10; }
.flapper { position: absolute; top: -4.5%; left: 50%; z-index: 3; width: 10%; margin-left: -5%; transform-origin: 50% 16%; pointer-events: none; will-change: transform; }
.flapper svg { display: block; width: 100%; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .6)); }
.hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 24%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #ff6a7d, #d0142c 45%, #6e0716 100%);
  box-shadow: 0 0 0 5px #b8892e, 0 0 0 7px #5e3a0a, 0 10px 24px rgba(0, 0, 0, .7), inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -6px 12px rgba(0, 0, 0, .4);
  color: #fff;
  font: 400 clamp(22px, 4.6vw, 36px)/1 var(--display);
  letter-spacing: .08em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .4);
  cursor: pointer;
  transition: transform .12s;
}
.hub span { display: block; padding-top: 4px; }
.hub:hover { filter: brightness(1.08); }
.hub:active { transform: translate(-50%, -50%) scale(.95); }
.hub:disabled { filter: grayscale(.5) brightness(.7); cursor: default; }
.spin-result { min-height: 1.3em; margin: 0; font: 400 clamp(24px, 3.4vw, 34px)/1.2 var(--display); letter-spacing: .05em; text-align: center; }
.spin-result b { color: var(--gold-hi); text-shadow: 0 0 14px rgba(233, 196, 106, .6); }
.spin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; margin: 0; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font: 700 12px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.status-pill.ok { color: var(--mint); border-color: rgba(52, 227, 155, .45); }
.status-pill.ok::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }

/* Slot machine. */
.slot-cabinet {
  --cell: clamp(60px, min(calc((100vw - 170px) / 3), calc((100vh - 560px) / 3)), 104px);
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 560px);
  padding: 16px 16px 18px;
  border: 1px solid rgba(233, 196, 106, .45);
  border-radius: 22px 22px 12px 12px;
  background: linear-gradient(180deg, #2b2430 0%, #141117 40%, #0c0a0e 100%);
  box-shadow: inset 0 0 0 4px #0a090c, inset 0 0 0 5px rgba(233, 196, 106, .3), 0 40px 80px -40px #000, 0 0 60px -20px rgba(255, 59, 82, .35);
}
.slot-sign { padding: 14px 16px 12px; border: 1px solid rgba(255, 59, 82, .45); border-radius: 14px 14px 6px 6px; background: radial-gradient(120% 140% at 50% 0%, #5a0a1c, #1c040a 70%); text-align: center; }
.slot-sign .neon-script { display: block; margin-bottom: -4px; font-size: 34px; }
.slot-sign b { display: block; font: 400 clamp(52px, 8vw, 74px)/.9 var(--display); letter-spacing: .14em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #3a0611); }
.slot-sign small { display: block; margin-top: 6px; font: 700 11px var(--ui); letter-spacing: .2em; text-transform: uppercase; color: #ffb3c0; }
.reels-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.reels { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; border-radius: 10px; background: #050407; box-shadow: 0 0 0 3px #b8892e, 0 0 0 5px #4a2e06, inset 0 0 20px #000; }
.reel { position: relative; height: calc(var(--cell) * 3); overflow: hidden; border-radius: 6px; background: linear-gradient(180deg, #cfc9bf, #fffdf8 18%, #fffdf8 82%, #cfc9bf); }
.reel::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 24%, transparent 76%, rgba(0, 0, 0, .55)); }
.reel::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: repeating-linear-gradient(180deg, transparent 0 7px, rgba(110, 100, 90, .3) 7px 10px); transition: opacity .12s; }
.reel.fast::after { opacity: 1; }
.strip { will-change: transform; }
.cell { position: relative; display: grid; place-items: center; height: var(--cell); }
.reel .cell .sym { width: 68%; height: auto; max-height: 80%; }
.reel .cell.hit { animation: hit .55s ease-in-out 4; }
.reel .cell.hit::before { content: ''; position: absolute; inset: 6%; border-radius: 10px; background: radial-gradient(circle, rgba(255, 210, 90, .7), transparent 70%); }
.payline { position: absolute; top: 50%; left: 4px; right: 4px; z-index: 3; height: 3px; margin-top: -1.5px; pointer-events: none; opacity: .5; background: linear-gradient(90deg, transparent, var(--neon) 8%, var(--neon) 92%, transparent); box-shadow: 0 0 10px var(--neon); }
.slot-cabinet.won .payline { opacity: 1; animation: blink .25s steps(1, end) 6; }
.slot-cabinet.tease .reel:last-child { box-shadow: 0 0 0 3px var(--neon), 0 0 26px var(--neon); }
.lever { --lever-h: calc(var(--cell) * 3 + 20px); position: relative; width: 44px; height: var(--lever-h); padding: 0; border: 0; background: none; cursor: grab; touch-action: none; }
.lever:disabled { cursor: default; opacity: .7; }
.lever-slot { position: absolute; top: 14%; bottom: 14%; left: 50%; width: 12px; margin-left: -6px; border-radius: 6px; background: #050407; box-shadow: inset 0 0 0 1px rgba(233, 196, 106, .4), inset 0 2px 6px #000; }
.lever-rod { position: absolute; top: 9%; left: 50%; width: 8px; height: 41%; margin-left: -4px; border-radius: 4px; background: linear-gradient(90deg, #8a8f9c, #f4f6fa 40%, #8a8f9c); transform-origin: 50% 100%; transform: scaleY(calc(1 - var(--pull) * 2)); }
.lever::after { content: ''; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 0 3px #0a090c; }
.lever-knob { position: absolute; top: 9%; left: 50%; z-index: 1; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a9a, #d0142c 50%, #5a0612); box-shadow: 0 6px 12px rgba(0, 0, 0, .6), inset 0 -3px 6px rgba(0, 0, 0, .4); transform: translateY(calc(var(--pull) * var(--lever-h) * .82)); }
.lever.return { transition: --pull .4s cubic-bezier(.3, 1.5, .5, 1); }
.lever.yank { animation: yank .6s cubic-bezier(.3, .7, .4, 1); }
.lcds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lcd { display: grid; padding: 8px 10px 6px; border-radius: 6px; background: #060205; text-align: center; box-shadow: inset 0 0 0 1px rgba(255, 59, 82, .3), inset 0 0 18px rgba(255, 0, 40, .12); }
.lcd .k { font: 700 9.5px var(--ui); letter-spacing: .2em; text-transform: uppercase; color: #a0606b; }
.lcd .v { font: 400 30px/1.05 var(--display); letter-spacing: .08em; color: #ff4d5e; text-shadow: 0 0 8px rgba(255, 40, 60, .75); font-variant-numeric: tabular-nums; }
.lcd.lit .v { color: #ffe08a; text-shadow: 0 0 8px rgba(255, 200, 60, .85), 0 0 22px rgba(255, 170, 0, .5); }
.slot-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chips { display: flex; gap: 10px; }
.chip { --c2: #2b5bd7; position: relative; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: repeating-conic-gradient(#ecebf2 0 15deg, var(--c2) 15deg 30deg); box-shadow: 0 4px 0 rgba(0, 0, 0, .55), 0 8px 16px -6px #000; cursor: pointer; transition: transform .15s ease; }
.chip span { position: absolute; inset: 7px; display: grid; place-items: center; padding-top: 2px; border: 2px dashed rgba(255, 255, 255, .75); border-radius: 50%; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c2) 70%, #fff), var(--c2) 70%); font: 400 20px/1 var(--display); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.chip.c1 { --c2: #c8132d; }
.chip.c2 { --c2: #12935a; }
.chip[aria-pressed='true'] { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--gold), 0 0 20px rgba(233, 196, 106, .6), 0 10px 0 rgba(0, 0, 0, .45); }
.chip:disabled { opacity: .55; cursor: default; }
.spin-btn {
  flex: none;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #ff6a7d, #d0142c 50%, #6e0716);
  box-shadow: 0 0 0 4px #b8892e, 0 0 0 6px #4a2e06, 0 7px 0 6px #2a0208, 0 18px 30px -6px rgba(0, 0, 0, .8), inset 0 3px 0 rgba(255, 255, 255, .35);
  color: #fff;
  font: 400 28px/1 var(--display);
  letter-spacing: .08em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .4);
  cursor: pointer;
  transition: transform .1s ease;
}
.spin-btn span { display: block; padding-top: 4px; }
.spin-btn:active { transform: translateY(5px); }
.spin-btn:disabled { filter: grayscale(.5) brightness(.7); cursor: default; transform: none; }

/* Scratch card. */
.ticket { position: relative; width: min(100%, 440px); padding: 18px; border: 1px solid rgba(233, 196, 106, .6); border-radius: 14px; background: radial-gradient(120% 80% at 50% 0%, #2a1f12, #120d08 60%); box-shadow: inset 0 0 0 5px #0b0806, inset 0 0 0 6px rgba(233, 196, 106, .35), 0 30px 60px -30px #000; }
.ticket-head { margin-bottom: 14px; text-align: center; }
.ticket-head .neon-script { display: block; margin-bottom: -6px; font-size: 32px; }
.ticket-head b { display: block; font: 400 clamp(46px, 9vw, 64px)/.95 var(--display); letter-spacing: .12em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ticket-head small { display: block; margin-top: 4px; font: 700 11px var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.scratch-area { position: relative; overflow: hidden; border-radius: 10px; touch-action: none; user-select: none; -webkit-user-select: none; }
.scratch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; background: #f3ecdc; }
.scratch-grid .cell { height: auto; aspect-ratio: 1; border-radius: 8px; background: #fffaf0; box-shadow: inset 0 0 0 1px rgba(120, 90, 40, .25); }
.scratch-grid .cell .sym { width: 68%; height: auto; }
.scratch-grid .cell.shown .sym { animation: pop .4s ease-out; }
.scratch-grid .cell::after { content: ''; position: absolute; inset: -3px; border-radius: 10px; opacity: 0; pointer-events: none; }
.scratch-grid .cell.pair::after { opacity: 1; box-shadow: 0 0 0 3px var(--neon), 0 0 18px var(--neon); animation: pulse .8s ease-in-out infinite; }
.scratch-grid .cell.hit::after { opacity: 1; box-shadow: 0 0 0 3px var(--gold), 0 0 22px var(--gold); animation: pulse .7s ease-in-out 4; }
.scratch-grid .cell.miss::after { opacity: .35; animation: none; }
.scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; transition: opacity .5s ease; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='13' fill='%23f2cf72' stroke='%235e3a0a' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='8.5' fill='none' stroke='%23a8711c' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, crosshair; }
.scratch-canvas.gone { opacity: 0; pointer-events: none; }
.flake { position: absolute; z-index: 3; width: 6px; height: 6px; pointer-events: none; background: linear-gradient(135deg, #fff2c2, #c1922f); }
.scratch-hint { min-height: 1.5em; margin: 10px 0 0; font: 600 13px var(--ui); text-align: center; color: var(--muted); }
.scratch-hint.hot { font: 400 24px/1.1 var(--display); letter-spacing: .06em; color: var(--neon-hi); text-shadow: 0 0 12px rgba(255, 45, 143, .6); animation: pulse .8s ease-in-out infinite; }
.ticket-legend { display: flex; justify-content: space-between; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(233, 196, 106, .35); }
.ticket-legend div { display: grid; justify-items: center; gap: 2px; }
.ticket-legend .sym { width: 30px; height: 30px; }
.ticket-legend b { font: 400 17px/1 var(--display); letter-spacing: .04em; color: var(--gold-hi); }
.ticket-serial { display: flex; justify-content: space-between; margin-top: 10px; font: 700 10.5px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ticket-serial b { color: var(--muted); }
.scratch-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.scratch-result { min-height: 1.25em; margin: 0; font: 400 26px/1.2 var(--display); letter-spacing: .05em; text-align: center; }
.scratch-result.win { color: var(--gold-hi); }
.scratch-result.win b { color: #fff; text-shadow: 0 0 14px rgba(233, 196, 106, .8); }
.scratch-result.lose { color: var(--muted); }

/* ---- my card ------------------------------------------------------------- */

.card-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.col { display: grid; gap: 16px; min-width: 0; }
.vip-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  aspect-ratio: 1.586;
  padding: 6% 7%;
  overflow: hidden;
  border: 1px solid rgba(233, 196, 106, .5);
  border-radius: 16px;
  background: radial-gradient(120% 90% at 0% 0%, #2c2733, transparent 60%), linear-gradient(135deg, #17141c 0%, #08070b 60%, #141118 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 6px rgba(0, 0, 0, .25), 0 30px 60px -28px #000, 0 0 40px -18px rgba(233, 196, 106, .35);
  transition: transform .2s ease-out;
}
.vip-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 6px); }
.vip-shine { position: absolute; inset: -40%; pointer-events: none; background: linear-gradient(115deg, transparent 42%, rgba(255, 231, 163, .16) 50%, transparent 58%); animation: shine 7s ease-in-out infinite; }
.vip-top, .vip-mid, .vip-foot { position: relative; display: flex; align-items: center; justify-content: space-between; }
.vip-brand { font: 400 clamp(20px, 2.4vw, 26px)/1 var(--display); letter-spacing: .14em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vip-tier { padding: 4px 8px; border: 1px solid rgba(233, 196, 106, .5); border-radius: 3px; font: 800 10px var(--ui); letter-spacing: .18em; color: var(--gold); }
.vip-chip { position: relative; width: 15%; aspect-ratio: 1.3; border-radius: 6px; background: linear-gradient(135deg, #f6e3a6, #b8892e 45%, #f2d27e 60%, #9c7428); box-shadow: inset 0 0 0 1px rgba(90, 55, 8, .6); }
.vip-chip::after { content: ''; position: absolute; inset: 25% 18%; border: 1px solid rgba(90, 55, 8, .55); border-radius: 3px; }
.vip-glyph { font: clamp(40px, 6vw, 58px)/1 var(--glyph); background: linear-gradient(135deg, #ff8fca, #ffe7a3 35%, #8ae6ff 65%, #a47bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vip-name { position: relative; margin: 0; overflow: hidden; font: 400 clamp(26px, 3.2vw, 36px)/1.05 var(--display); letter-spacing: .1em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; color: #efe6d6; text-shadow: 0 1px 0 rgba(255, 255, 255, .25), 0 -1px 0 rgba(0, 0, 0, .8); }
.vip-meta { position: relative; margin: 2px 0 0; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.vip-foot { margin-top: 8px; font: 700 10.5px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.vip-card.reveal { animation: deal .9s cubic-bezier(.2, .9, .3, 1.2); }
.vip-card.preview { width: 100%; max-width: 440px; justify-self: center; }

.si-chart { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #0b0a0e; }
.si-cell { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 3px; padding: 6px; border: 1px solid rgba(233, 196, 106, .12); }
.si-cell.moon-house { background: rgba(255, 45, 143, .1); box-shadow: inset 0 0 0 1px rgba(255, 45, 143, .45); }
.si-cell .sg { position: absolute; right: 5px; bottom: 3px; font: 13px/1 var(--glyph); color: var(--faint); }
.pl { padding: 3px 4px; border-radius: 3px; background: rgba(233, 196, 106, .12); font: 700 11px/1 var(--ui); color: var(--gold-hi); }
.pl.moon { background: rgba(255, 45, 143, .2); color: var(--neon-hi); }
.pl.asc { background: rgba(46, 230, 255, .15); color: var(--cyan); }
.si-center { display: grid; place-items: center; grid-row: 2 / 4; grid-column: 2 / 4; text-align: center; border: 1px solid rgba(233, 196, 106, .12); background: radial-gradient(circle, #1a1520, #0b0a0e); }
.si-center b { display: block; font: 400 30px/1 var(--display); letter-spacing: .14em; color: var(--gold); }
.si-center small { font-size: 11px; color: var(--faint); }
.tara-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.tara-days div { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .03); text-align: center; }
.tara-days .k { font: 700 10px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.tara-days .t { font-size: 10.5px; line-height: 1.2; overflow-wrap: anywhere; color: var(--muted); }
.tara-days .good { background: rgba(52, 227, 155, .08); box-shadow: inset 0 0 0 1px rgba(52, 227, 155, .3); }
.tara-days .good .t { color: var(--mint); }
.rank-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rank-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-left: 3px solid var(--c); border-radius: var(--r-sm); background: rgba(255, 255, 255, .025); }
.rank-list .k { font-weight: 600; font-size: 13.5px; }
.rank-list .v { font-size: 13px; color: var(--muted); }
.rank-list .v b { margin-right: 4px; font: 400 20px/1 var(--display); letter-spacing: .04em; color: var(--gold-hi); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat-grid div { display: grid; gap: 2px; padding: 10px 6px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .03); text-align: center; }
.stat-grid b { font: 400 26px/1 var(--display); letter-spacing: .04em; color: var(--gold-hi); }
.stat-grid span { font: 700 10px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.danger-zone { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .06); }

/* ---- raasi phal ----------------------------------------------------------- */

.rashi-picker { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.rp { display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; border: 1px solid var(--line); border-radius: var(--r); background: #100e13; color: var(--muted); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.rp .g { font: 22px/1.1 var(--glyph); color: var(--e); }
.rp .n { max-width: 100%; overflow: hidden; font: 600 11.5px var(--ui); text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.rp .s { font: 400 16px/1 var(--display); color: var(--gold); }
.rp:hover { border-color: var(--line-2); transform: translateY(-2px); }
.rp.active { border-color: var(--gold); background: linear-gradient(180deg, #2a2116, #120e0a); box-shadow: 0 0 0 1px var(--gold), 0 10px 30px -12px rgba(233, 196, 106, .5); }
.rp.mine .n::after { content: ' •'; color: var(--neon); }
.phal-page { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.phal-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 16px; }
.phal-glyph { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--e) 55%, #fff), var(--e) 45%, color-mix(in srgb, var(--e) 40%, #000)); font: 44px/1 var(--glyph); color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, .4); box-shadow: 0 0 0 4px #0b0a0e, 0 0 0 5px rgba(233, 196, 106, .6), 0 0 30px color-mix(in srgb, var(--e) 50%, transparent); }
.phal-name h2 { margin: 0; font: 400 48px/1 var(--display); letter-spacing: .04em; }
.phal-name p { margin: 2px 0 4px; font-size: 13px; color: var(--muted); }
.big-score { display: grid; justify-items: center; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 8px; background: #050407; }
.big-score b { font: 400 54px/1 var(--display); color: var(--gold-hi); text-shadow: 0 0 14px rgba(233, 196, 106, .45); }
.big-score span { font: 700 10px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.phal-detail .headline { padding: 12px 14px; border-left: 3px solid var(--gold); border-radius: var(--r-sm); background: rgba(233, 196, 106, .06); font-size: 17px; }
.area-list { display: grid; gap: 12px; }
.area { padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .04); border-radius: var(--r-sm); background: rgba(255, 255, 255, .025); }
.area p { margin: 8px 0 6px; font-size: 14px; color: #d8d1c6; }
.driver { font-size: 12px; color: var(--faint); }

/* ---- leaderboards ---------------------------------------------------------- */

.boards-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; gap: 16px; }
.board { border-top: 2px solid var(--c); }
.board-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.board-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, #0b0a0e); font-size: 18px; color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 0 18px -4px color-mix(in srgb, var(--c) 60%, transparent); }
.board-head h2 { margin: 0; font: 400 26px/1 var(--display); letter-spacing: .05em; }
.board-head p { margin: 2px 0 0; font-size: 12px; color: var(--faint); }
.board-me { margin-left: auto; padding: 4px 9px; border-radius: 999px; background: var(--neon); font: 800 11px var(--ui); color: #fff; }
.heat { grid-column: 1 / -1; }
.heat-scroll { overflow-x: auto; }
.heat table { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 3px; font-size: 13px; }
.heat th { padding: 4px; font-size: 16px; }
.heat th span { display: block; font: 700 9.5px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.heat td { padding: 7px 4px; border-radius: 3px; font-weight: 700; text-align: center; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.heat td.g { text-align: left; }
.heat td.g a { color: var(--text); text-decoration: none; white-space: nowrap; }
.heat tr.mine td.g a { color: var(--neon-hi); }

/* ---- sign up and sign in --------------------------------------------------- */

.auth-page { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: 'form vip' 'form side'; align-items: start; gap: 18px; }
.auth-page.narrow { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); grid-template-rows: auto; grid-template-areas: 'form side'; max-width: 920px; }
.auth-form { grid-area: form; padding: 22px; }
.auth-page > .vip-card { grid-area: vip; }
.auth-side { grid-area: side; display: grid; gap: 16px; }
.form-section { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; font: 700 11px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.form-section::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; margin-bottom: 14px; }
.field > label { font: 700 11px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-sm); background: #0a090d; font: 500 15px var(--ui); color: var(--text); color-scheme: dark; transition: border-color .15s ease, box-shadow .15s ease; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 196, 106, .18); }
.input::placeholder { color: var(--faint); }
.input:disabled { opacity: .45; }
.at-field { position: relative; }
.at-field::before { content: '@'; position: absolute; top: 50%; left: 14px; transform: translateY(-50%); font-weight: 600; color: var(--faint); }
.at-field .input { padding-left: 32px; }
.pw { position: relative; }
.pw .input { padding-right: 72px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; height: 32px; padding: 0 10px; transform: translateY(-50%); border: 0; border-radius: 3px; background: rgba(255, 255, 255, .05); font: 700 11px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.hint { margin: 0; font-size: 12px; color: var(--faint); }
.hint.ok { color: var(--good); }
.hint.bad { color: var(--bad); }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--gold); }
.combo { position: relative; }
.combo-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20; max-height: 260px; margin: 0; padding: 4px; overflow: auto; list-style: none; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #141118; box-shadow: 0 20px 40px -10px #000; }
.combo-list li { padding: 9px 10px; border-radius: 3px; font-size: 14px; cursor: pointer; }
.combo-list li[aria-selected='true'], .combo-list li:hover { background: rgba(233, 196, 106, .12); }
.combo-list small { color: var(--faint); }
.combo-list .empty { color: var(--faint); cursor: default; }
.place-chip { display: none; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border: 1px solid rgba(52, 227, 155, .3); border-radius: var(--r-sm); background: rgba(52, 227, 155, .07); font-size: 13px; color: var(--muted); }
.place-chip.show { display: flex; }
.place-chip b { color: var(--text); }
.place-chip > span:first-child { color: var(--mint); }
.form-error { min-height: 1.2em; margin: 4px 0 12px; font-weight: 600; font-size: 14px; color: var(--bad); }

/* ---- overlays ----------------------------------------------------------- */

#toast { position: fixed; bottom: calc(20px + var(--tabbar-h)); left: 50%; z-index: 100; max-width: min(92vw, 460px); padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 8px; background: #141118; font-weight: 600; font-size: 14px; text-align: center; box-shadow: 0 20px 40px -10px #000; opacity: 0; transform: translate(-50%, 16px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.win { border-color: var(--gold); color: var(--gold-hi); box-shadow: 0 0 30px -6px rgba(233, 196, 106, .5), 0 20px 40px -10px #000; }
#toast.error { border-color: rgba(255, 90, 110, .6); color: #ffc2ca; }

.celebrate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(40, 6, 14, .78), rgba(5, 4, 7, .94) 70%); cursor: pointer; animation: fadeIn .2s ease-out; transition: opacity .25s ease; }
.celebrate.out { opacity: 0; }
.celebrate canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.celebrate .rays { position: absolute; top: 45%; left: 50%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: repeating-conic-gradient(rgba(255, 214, 120, .13) 0 9deg, transparent 9deg 18deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 45%); mask: radial-gradient(circle, #000 0, transparent 45%); animation: spin 18s linear infinite; will-change: transform; }
.celebrate.jackpot .rays { background: repeating-conic-gradient(rgba(255, 45, 143, .16) 0 9deg, rgba(255, 214, 120, .14) 9deg 18deg); }
.celebrate-box { position: relative; padding: 20px; text-align: center; animation: boxIn .5s cubic-bezier(.2, 1.4, .4, 1); }
.cb-kicker { margin: 0; font: 400 clamp(30px, 6vw, 46px)/1 var(--script); color: #ffe3f1; text-shadow: 0 0 2px #fff, 0 0 12px var(--neon), 0 0 28px var(--neon); }
.celebrate h2 { margin: 6px 0 0; font: 400 clamp(64px, 14vw, 130px)/.9 var(--display); letter-spacing: .04em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 #3a0611); }
.cb-amount { margin: 10px 0 0; font: 400 clamp(42px, 8vw, 76px)/1 var(--display); letter-spacing: .04em; color: #fff; text-shadow: 0 0 20px rgba(233, 196, 106, .7); font-variant-numeric: tabular-nums; }
.cb-amount small { margin-left: 8px; font-size: .4em; letter-spacing: .12em; color: var(--gold); }
.cb-sub { margin: 8px 0 0; font-size: 15px; color: #e6d9cf; }
.cb-tap { display: block; margin-top: 18px; font: 700 11px var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.coin-fly { position: fixed; z-index: 95; width: 26px; height: 26px; pointer-events: none; will-change: transform, opacity; }
.float-text { position: fixed; z-index: 95; pointer-events: none; font: 400 46px/1 var(--display); letter-spacing: .04em; color: var(--gold-hi); white-space: nowrap; text-shadow: 0 0 16px rgba(233, 196, 106, .8), 0 3px 0 #3a0611; }
.float-text.big { font-size: 68px; }

.stars-loading { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(5, 4, 7, .95); }
.stars-loading .box { padding: 20px; text-align: center; }
.stars-loading h2 { margin: 0 0 18px; font: 400 42px/1 var(--display); letter-spacing: .06em; color: var(--gold-hi); }
.planet-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.planet-row span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; font: 20px/1 var(--glyph); color: var(--faint); transition: color .2s, background-color .2s, box-shadow .2s; }
.planet-row span.lit { border-color: transparent; background: var(--gold); color: #2a1a03; box-shadow: 0 0 18px rgba(233, 196, 106, .6); }
.dots::after { content: ''; animation: dots 1.2s steps(4, end) infinite; }

/* ---- motion --------------------------------------------------------------- */

@keyframes chase { 0% { opacity: 1; } 50% { opacity: .15; } }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: .2; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes glow { 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes flicker { 0% { opacity: 1; } 88% { opacity: .55; } 89% { opacity: 1; } 92% { opacity: .75; } 93% { opacity: 1; } }
@keyframes hit { 50% { transform: scale(1.12); } }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes boxIn { from { opacity: 0; transform: scale(.6); } }
@keyframes deal { from { opacity: 0; transform: translateY(40px) rotate(-8deg) scale(.9); } }
@keyframes shine { 0%, 55% { transform: translateX(-45%); } 100% { transform: translateX(45%); } }
@keyframes yank { 0% { --pull: 0; } 30% { --pull: 1; } 100% { --pull: 0; } }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* Slow devices: decoration rests until something happens. */
.lite .neon-script, .lite .vip-shine, .lite .live-dot::before { animation: none; }
.lite .marquee::before, .lite .marquee::after, .lite .w-bulbs { animation-play-state: paused; }
.lite .spinning .marquee::before, .lite .spinning .marquee::after, .lite .wheel.spinning .w-bulbs { animation-play-state: running; }

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

/* ---- responsive ----------------------------------------------------------- */

@media (min-width: 1100px) {
  .wheel-stage, .scratch-stage { grid-template-columns: minmax(0, 1fr) 240px; align-items: center; column-gap: 24px; }
  .ticket { width: min(100%, 440px, max(320px, calc(100vh - 520px))); }
  .slot-cabinet { --cell: clamp(60px, calc((100vh - 520px) / 3), 108px); grid-template-columns: minmax(0, 1fr) 188px; grid-template-areas: 'sign sign' 'reels lcds' 'reels controls'; align-items: start; column-gap: 18px; width: min(100%, 760px); }
  .slot-sign { grid-area: sign; }
  .reels-row { grid-area: reels; }
  .lcds { grid-area: lcds; grid-template-columns: 1fr; }
  .slot-controls { grid-area: controls; flex-direction: column; align-items: center; gap: 22px; }
  .wheel-stage .spin-bar { flex-direction: column; }
  .wheel-stage .spin-bar .btn { width: 100%; }
  .scratch-actions { flex-direction: column; width: 100%; }
  .scratch-actions .btn { width: 100%; }
}

@media (max-width: 1080px) {
  .topbar { gap: 12px; }
  .nav { margin-left: 0; }
  .nav a { padding: 8px; font-size: 11.5px; letter-spacing: .06em; }
  .auth-btn { display: none; }
}

@media (max-width: 1180px) {
  .lobby .you, .lobby .boards-tile, .lobby .phal-tile, .lobby .sky, .lobby .wins { grid-column: span 6; }
  .lobby .perks .perk-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-page { grid-template-columns: minmax(0, 1fr) 300px; }
  .card-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .card-page .col:last-child { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .phal-page { grid-template-columns: 1fr; }
  .phal-page .side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
  .rashi-picker { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }
  .rp { flex: none; width: 82px; scroll-snap-align: start; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 34px 26px; }
  .game-page { grid-template-columns: 1fr; }
  .side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .auth-page { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: 'vip' 'form' 'side'; }
  .auth-page.narrow { grid-template-columns: 1fr; grid-template-areas: 'form' 'side'; }
  .cabinets { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 72%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 8px; scroll-padding: 0 20px; }
  .cabinets::-webkit-scrollbar { display: none; }
  .cabinet { scroll-snap-align: start; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 54px; --tabbar-h: calc(62px + env(safe-area-inset-bottom)); }
  .topbar { gap: 10px; padding: 0 12px; }
  .logo-text { font-size: 26px; }
  .logo-mark { width: 16px; height: 16px; }
  .logo-mark::after { inset: 5px; }
  .nav, .auth-btn { display: none; }
  .credits { height: 36px; font-size: 20px; }
  .icon-btn { width: 36px; height: 36px; }
  .tabbar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(10, 9, 13, .97); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 700 10px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); text-decoration: none; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .dot { fill: currentColor; stroke: none; }
  .tabbar a.active { color: var(--gold-hi); }
  .view { padding: 14px 12px; }
  .panel { padding: 14px; }
  .page-head { margin-bottom: 14px; }
  .lobby { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lobby > *, .lobby .you, .lobby .boards-tile, .lobby .phal-tile, .lobby .sky, .lobby .wins { grid-column: auto; }
  .lobby .perks .perk-list { grid-template-columns: 1fr; }
  .cabinets { margin: 0 -12px; padding: 2px 12px 8px; scroll-padding: 0 12px; grid-auto-columns: minmax(240px, 80%); }
  .hero { padding: 30px 18px 22px; gap: 22px; }
  .hero-sub { font-size: 15px; }
  .jackpots { padding: 10px; gap: 8px; }
  .led { font-size: 32px; }
  .you-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .card-page { grid-template-columns: 1fr; }
  .card-page .col:last-child { grid-template-columns: 1fr; }
  .stage { padding: 18px 10px; border-radius: 10px; }
  .slot-cabinet { gap: 10px; padding: 12px; }
  .reels-row { grid-template-columns: minmax(0, 1fr) 34px; gap: 6px; }
  .reels { gap: 5px; padding: 6px; }
  .lever-knob { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
  .chips { gap: 8px; }
  .chip { width: 48px; height: 48px; }
  .chip span { inset: 6px; font-size: 17px; }
  .spin-btn { width: 84px; height: 84px; font-size: 24px; }
  .lcd .v { font-size: 24px; }
  .ticket { padding: 14px; }
  .tara-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .phal-hero { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .phal-glyph { width: 64px; height: 64px; font-size: 32px; }
  .phal-name h2 { font-size: 38px; }
  .big-score { grid-column: 1 / -1; grid-auto-flow: column; justify-content: center; align-items: baseline; gap: 10px; }
  .big-score b { font-size: 40px; }
  .kv > div { grid-template-columns: 96px minmax(0, 1fr); }
  .boards-page { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .rashi-rows { grid-template-columns: 1fr; }
  .page-head > .week-chip { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  .hero-cta .btn { flex: 1; padding: 0 14px; }
}
