:root {
  --bg: #07070d; --surface: #111119; --raise: #181824; --line: rgba(255, 255, 255, .09);
  --text: #f4f4fa; --muted: #8d8da8;
  --acid: #c8ff2e; --hot: #ff2e7e; --ice: #3ee6ff; --gold: #ffc93e;
  --display: "Chakra Petch", system-ui, sans-serif;
  --a: var(--acid);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button { font: inherit; color: inherit; }

/* ---------- atmosphere ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}
.bg i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .33; animation: drift 22s ease-in-out infinite alternate; }
.bg i:nth-child(1) { width: 520px; height: 520px; background: var(--hot); top: -220px; left: -120px; }
.bg i:nth-child(2) { width: 460px; height: 460px; background: #5b2eff; top: -160px; right: -140px; animation-delay: -8s; }
.bg i:nth-child(3) { width: 380px; height: 380px; background: var(--ice); opacity: .13; top: 46%; left: 38%; animation-delay: -14s; }
@keyframes drift { to { transform: translate(60px, 50px) scale(1.15); } }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px clamp(14px, 4vw, 32px); background: rgba(7, 7, 13, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.logo { font: 700 22px/1 var(--display); letter-spacing: .14em; }
.logo b { color: var(--acid); margin-left: .28em; text-shadow: 0 0 22px rgba(200, 255, 46, .6); }
.logo.big { font-size: 40px; }
.top-right { display: flex; align-items: center; gap: 8px; }
.chip {
  display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; border-radius: 999px; cursor: pointer;
  background: var(--raise); border: 1px solid var(--line); transition: border-color .2s;
}
.chip:hover { border-color: rgba(200, 255, 46, .6); }
.chip em { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--acid); color: #0c1200; font: 700 18px/1 var(--display); font-style: normal; }
.chip span { color: var(--muted); font-size: 13px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip strong { font: 700 17px var(--display); color: var(--acid); font-variant-numeric: tabular-nums; }
.icon {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--raise);
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.icon svg { width: 17px; height: 17px; }

/* ---------- winners ticker ---------- */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(200, 255, 46, .05); }
.ticker-track { display: inline-flex; gap: 44px; padding: 7px 0; white-space: nowrap; animation: scroll 38s linear infinite; font-size: 13px; color: var(--muted); }
.ticker-track span::before { content: "\25C6"; color: var(--acid); margin-right: 10px; font-size: 9px; vertical-align: 2px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- lobby ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 28px) 24px; }
.hero { text-align: center; padding: clamp(14px, 3vw, 26px) 0 clamp(12px, 2.4vw, 22px); }
.eyebrow { font: 600 12px var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.eyebrow .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); margin-right: 8px; box-shadow: 0 0 0 0 var(--hot); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(255, 46, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 46, 126, 0); } }
.hero-amount {
  font: 700 clamp(46px, 9vw, 88px)/1 var(--display); letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 20%, var(--acid) 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(200, 255, 46, .3));
}

.tiles { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.tile {
  --a: var(--acid); position: relative; display: flex; flex-direction: column; border-radius: 20px; border: 1px solid transparent; overflow: hidden;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(150deg, color-mix(in srgb, var(--a) 80%, transparent), rgba(255, 255, 255, .07) 36%, rgba(255, 255, 255, .05)) border-box;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 22px 60px -30px var(--a); }
.tile.flyer { --a: var(--ice); }
.tile.snake { --a: var(--acid); }
.tile.xo { --a: var(--gold); }
.tile.draw { --a: var(--hot); }
.tile-main[data-act] { cursor: pointer; }
.art {
  position: relative; height: 104px; overflow: hidden; color: var(--a);
  background: radial-gradient(120% 140% at 80% 0%, color-mix(in srgb, var(--a) 26%, transparent), transparent 60%), #0b0b13;
  border-bottom: 1px solid var(--line);
}
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art .float { animation: float 3.2s ease-in-out infinite alternate; }
.art .spin { animation: spin 14s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes float { to { transform: translateY(-7px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(7, 7, 13, .7); border: 1px solid var(--line);
  font: 600 11px var(--display); letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--a);
}
.art .pill { position: absolute; top: 10px; left: 10px; z-index: 1; backdrop-filter: blur(6px); }
.pill.live { color: var(--hot); border-color: rgba(255, 46, 126, .5); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hot); animation: ping 1.4s infinite; }
.tile-info { padding: 12px 14px 0; }
.tile h3, .sheet h3 { margin: 0; font: 700 19px var(--display); letter-spacing: .03em; text-transform: uppercase; }
.tile-info .pill { display: none; }
.prize { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.prize b { font: 700 36px/1.05 var(--display); color: var(--a); font-variant-numeric: tabular-nums; text-shadow: 0 0 26px color-mix(in srgb, var(--a) 45%, transparent); }
.prize span { color: var(--muted); font-size: 12.5px; }
.bump { animation: bump .5s cubic-bezier(.2, 1.6, .4, 1); display: inline-block; }
@keyframes bump { 30% { transform: scale(1.14); } }
.tile-cta { display: flex; gap: 8px; padding: 12px 14px 0; align-items: stretch; }
.tile-foot { padding: 10px 14px 14px; margin-top: auto; }
.status { font-size: 12.5px; color: var(--muted); padding: 8px 14px 0; min-height: 28px; }
.status b { color: var(--a); font-weight: 600; }
.sprint {
  display: flex; align-items: center; gap: 8px; margin: 10px 14px 0; padding: 7px 8px 7px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 12.5px;
}
.sprint .sp { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sprint .lbl { font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.sprint .when { color: var(--muted); min-width: 0; font-variant-numeric: tabular-nums; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sprint .when.live { color: var(--hot); }
.sprint b { font: 700 14px var(--display); font-variant-numeric: tabular-nums; }
.how { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; }
.how li { display: flex; gap: 8px; }
.how li::before { content: "\25C6"; color: var(--a); font-size: 8px; line-height: 19px; }
.how b { color: var(--text); font-weight: 600; }
.meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 0 0 8px; }
.meter i { display: block; height: 100%; min-width: 2px; border-radius: 4px; background: var(--a); box-shadow: 0 0 14px var(--a); transition: width .6s; }

.btn {
  position: relative; overflow: hidden; cursor: pointer; border: 0; border-radius: 12px; padding: 12px 18px; white-space: nowrap;
  background: var(--acid); color: #0c1200; font: 700 15px var(--display); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 8px 26px -10px rgba(200, 255, 46, .75); transition: transform .12s, box-shadow .2s, filter .2s;
}
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transition: left .5s;
}
.btn:hover::after { left: 130%; }
.btn:hover { box-shadow: 0 10px 34px -8px rgba(200, 255, 46, .9); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn:disabled::after { display: none; }
.btn.ghost { background: rgba(255, 255, 255, .05); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.sm { padding: 7px 11px; font-size: 12px; border-radius: 10px; }
.btn.wide { width: 100%; padding: 15px; font-size: 16px; }
.btn.grow { flex: 1; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }

/* leaderboard rows */
ol.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
ol.board li { display: grid; grid-template-columns: 22px 26px 1fr auto; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; border-radius: 10px; font-size: 13.5px; background: rgba(255, 255, 255, .035); }
ol.board .rk { font: 700 12px var(--display); color: var(--muted); text-align: center; }
ol.board li:nth-child(1) .rk { color: var(--gold); }
ol.board li:nth-child(2) .rk { color: #cfd3e6; }
ol.board li:nth-child(3) .rk { color: #e39a5c; }
.av {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--display); font-style: normal; color: #0a0a12;
  background: linear-gradient(135deg, hsl(var(--h) 95% 68%), hsl(calc(var(--h) + 50) 95% 55%));
}
ol.board .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.board b { font: 700 15px var(--display); font-variant-numeric: tabular-nums; }
ol.board li.me { background: color-mix(in srgb, var(--a) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 45%, transparent); }
ol.board li.me .nm, ol.board li.me b { color: var(--a); }
ol.board li.gap { background: none; padding: 0; height: 6px; }
.empty { margin: 0; padding: 10px; border-radius: 10px; border: 1px dashed var(--line); color: var(--muted); font-size: 12.5px; text-align: center; }
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font: 600 11px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.devbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 12.5px; }
footer { text-align: center; color: #5d5d75; font-size: 12px; padding: 0 16px 18px; }

main.boot .hero, main.boot .tile { animation: rise .6s cubic-bezier(.2, .8, .2, 1) backwards; }
main.boot .tile:nth-child(2) { animation-delay: .06s; }
main.boot .tile:nth-child(3) { animation-delay: .12s; }
main.boot .tile:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

@media (max-width: 1020px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
/* phones: each game is one compact row, so the whole lobby fits a single screen */
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; column-gap: 12px; padding: 10px; border-radius: 16px; }
  .tile:hover { transform: none; }
  .tile-main { display: contents; }
  .tile .art { height: 76px; border-radius: 12px; border: 1px solid var(--line); }
  .tile .art .pill { display: none; }
  .tile .art svg { width: 184px; height: 76px; inset: 0 0 auto auto; }
  .tile.flyer .art svg { right: -46px; }
  .tile-info { padding: 0; min-width: 0; }
  .tile-info .pill { display: inline-flex; border: 0; padding: 0; background: none; font-size: 10px; }
  .tile h3 { font-size: 15px; }
  .prize { margin-top: 0; }
  .prize b { font-size: 26px; }
  .tile .prize span { display: none; }
  .tile-cta { padding: 0; flex-direction: column; }
  .tile-cta .btn { padding: 12px 14px; font-size: 14px; }
  .tile-cta .try, .tile-foot { display: none; }
  .status { grid-column: 2 / -1; padding: 0; min-height: 0; margin-top: -2px; }
  .status:empty { display: none; }
  .sprint { grid-column: 1 / -1; margin: 8px 0 0; }
  .sprint:not(.on) { display: none; } /* phones only show a sprint while it is live */
  .hero { padding: 10px 0 12px; }
  .hero-amount { font-size: 44px; }
}

/* ---------- sheets (game details, wallet) ---------- */
.overlay.sheet-wrap { align-items: center; }
.panel.sheet { max-width: 440px; text-align: left; padding: 0; overflow: hidden; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; --a: var(--acid); }
.sheet.flyer { --a: var(--ice); }
.sheet .art { height: 96px; flex: none; }
.sheet-scroll { overflow: auto; padding: 16px 18px 18px; }
.sheet .x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(7, 7, 13, .7); cursor: pointer; font-size: 18px; line-height: 1; }
.panel.sheet { position: relative; }
.sheet .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.sheet .stats div { background: rgba(255, 255, 255, .04); border-radius: 12px; padding: 8px 10px; }
.sheet .stats b { display: block; font: 700 18px var(--display); font-variant-numeric: tabular-nums; }
.sheet .stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.sheet .actions { display: flex; gap: 8px; margin-bottom: 8px; }
.sheet .note { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.sheet hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.tabs { display: flex; gap: 6px; padding: 14px 18px 0; }
.tabs button { flex: 1; padding: 9px; border-radius: 10px; border: 1px solid var(--line); background: none; cursor: pointer; font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tabs button.on { background: rgba(200, 255, 46, .1); border-color: rgba(200, 255, 46, .5); color: var(--acid); }
.w-title { font: 700 20px var(--display); letter-spacing: .04em; text-transform: uppercase; padding: 18px 18px 0; }
.w-bal { padding: 2px 18px 0; color: var(--muted); font-size: 13px; }
.w-bal b { color: var(--acid); font: 700 15px var(--display); }
.w-label { font: 600 11px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 14px 0 7px; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.chips.m { grid-template-columns: repeat(3, 1fr); }
.chips button {
  padding: 10px 6px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer;
  font: 700 14px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chips.m button { font: 600 13px Inter, system-ui, sans-serif; }
.chips button.on { border-color: var(--acid); background: rgba(200, 255, 46, .12); color: var(--acid); }
.sheet input {
  width: 100%; padding: 12px; border-radius: 11px; border: 1px solid var(--line); outline: 0; background: var(--bg); color: var(--text);
  font: 600 15px Inter, system-ui, sans-serif; margin: 0; text-align: left; letter-spacing: 0;
}
.sheet input:focus { border-color: var(--acid); box-shadow: 0 0 0 4px rgba(200, 255, 46, .14); }
.sheet .btn.wide { margin-top: 16px; }
.paybox { margin-top: 14px; padding: 12px; border-radius: 12px; border: 1px dashed rgba(200, 255, 46, .45); background: rgba(200, 255, 46, .05); font-size: 13px; }
.paybox code { display: block; margin: 6px 0 10px; padding: 9px; border-radius: 8px; background: var(--bg); font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.hist { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.hist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hist li:last-child { border: 0; }
.hist small { color: var(--muted); }
.hist b { font: 700 14px var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.hist .in { color: var(--acid); }
.hist .st { text-align: right; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hist .st.pending, .hist .st.review { color: var(--gold); }
.hist .st.rejected, .hist .st.failed { color: var(--hot); }
.sandbox-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; text-align: center; }
@media (max-width: 640px) {
  .overlay.sheet-wrap { align-items: end; padding: 0; }
  .panel.sheet { max-width: none; border-radius: 22px 22px 0 0; max-height: 88dvh; animation: slide .35s cubic-bezier(.2, .9, .3, 1); padding-bottom: env(safe-area-inset-bottom); }
}
@keyframes slide { from { transform: translateY(100%); } }

/* ---------- overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; overflow: auto;
  background: rgba(4, 4, 9, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.panel {
  width: 100%; max-width: 400px; padding: 28px 24px; border-radius: 24px; text-align: center; border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, var(--acid), rgba(255, 255, 255, .08) 40%, var(--hot)) border-box;
  box-shadow: 0 40px 120px -30px rgba(200, 255, 46, .35); animation: pop .45s cubic-bezier(.2, 1.3, .3, 1);
}
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(14px); } }
.pitch { color: var(--muted); margin: 10px 0 22px; }
.fine { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }
.panel input {
  width: 100%; padding: 15px; margin-bottom: 12px; border-radius: 12px; border: 1px solid var(--line); outline: 0;
  background: var(--bg); color: var(--text); font: 600 18px var(--display); text-align: center; letter-spacing: .04em;
}
.panel input:focus { border-color: var(--acid); box-shadow: 0 0 0 4px rgba(200, 255, 46, .14); }
.win-amount {
  font: 700 clamp(54px, 15vw, 84px)/1.05 var(--display); color: var(--acid); margin: 8px 0 4px; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 44px rgba(200, 255, 46, .55);
}
.win-title { color: var(--muted); margin-bottom: 22px; }

/* ---------- game stage ---------- */
.stage {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 10px;
  background: radial-gradient(70% 50% at 50% 0%, color-mix(in srgb, var(--a) 16%, transparent), transparent 70%), #050509;
  animation: fade .25s;
}
@keyframes fade { from { opacity: 0; } }
.stage-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 560px; }
.hud { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.hud-game { font: 700 15px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.hud-mode { font-size: 12px; color: var(--a); text-transform: uppercase; letter-spacing: .1em; }
.hud-score { font: 700 46px/1 var(--display); color: #fff; text-shadow: 0 0 26px var(--a); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: center; }
.hud-score.bump { animation: bump .25s cubic-bezier(.2, 1.6, .4, 1); }
.hud-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.hud-clock { font: 700 15px var(--display); color: var(--hot); font-variant-numeric: tabular-nums; }
.canvas-wrap { position: relative; line-height: 0; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 90px -18px var(--a); }
canvas#canvas { display: block; border-radius: 20px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.stage-help { margin: 0; color: var(--muted); font-size: 13px; }
.over {
  position: absolute; inset: 0; display: grid; place-items: center; line-height: 1.5; border-radius: 20px;
  background: rgba(5, 5, 10, .74); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); animation: fade .3s;
}
.over-card { text-align: center; padding: 16px; animation: pop .5s cubic-bezier(.2, 1.3, .3, 1); }
.over-label { font: 600 12px var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.over-score { font: 700 92px/1 var(--display); color: #fff; text-shadow: 0 0 44px var(--a); font-variant-numeric: tabular-nums; }
.over-sub { color: var(--muted); margin: 6px auto 20px; max-width: 250px; font-size: 14px; }
.over-sub b { color: var(--a); }
.over-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-block; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px; background: var(--acid); color: #0c1200;
  font: 700 12px var(--display); letter-spacing: .16em; text-transform: uppercase; animation: bump .6s cubic-bezier(.2, 1.6, .4, 1);
}

/* ---------- noughts & crosses ---------- */
.xo-vs { font: 700 20px var(--display); margin: 8px 0 2px; text-transform: uppercase; letter-spacing: .04em; }
.xo-status { color: var(--muted); min-height: 1.5em; }
.xo-status.mine { color: var(--acid); }
/* The board is a fixed square cut into nine equal cells. Cell size never depends on what is inside it,
   so placing a mark cannot push the grid out of line on any browser. */
.xo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px auto 18px; width: min(100%, 290px); aspect-ratio: 1; }
.xo-grid button {
  position: relative; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0; font-size: 0; line-height: 0;
  -webkit-appearance: none; appearance: none; box-sizing: border-box; touch-action: manipulation;
  border-radius: 16px; border: 1px solid var(--line); background: var(--bg); cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.xo-grid button:not(:disabled):hover { background: var(--raise); border-color: rgba(200, 255, 46, .5); }
.xo-grid button:not(:disabled):active { transform: scale(.94); }
.xo-grid button:disabled { cursor: default; }
.xo-grid button.won { border-color: var(--acid); background: rgba(200, 255, 46, .1); box-shadow: 0 0 26px -6px var(--acid); }
.xo-grid svg { position: absolute; left: 18%; top: 18%; width: 64%; height: 64%; display: block; overflow: visible; pointer-events: none; }
.xo-grid svg * { fill: none; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 300; animation: draw .35s ease-out backwards; }
.xo-grid .mx { stroke: var(--gold); filter: drop-shadow(0 0 7px var(--gold)); }
.xo-grid .mo { stroke: var(--ice); filter: drop-shadow(0 0 7px var(--ice)); }
@keyframes draw { from { stroke-dashoffset: 300; } }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
#toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 70; max-width: calc(100vw - 32px);
  background: var(--hot); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 14px 40px -10px var(--hot);
  animation: pop .3s;
}

@media (max-width: 560px) {
  .chip > span { display: none; }
  .logo { font-size: 18px; }
  .hud-score { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- tokens, nav, progression ---------- */
.coin { display: inline-block; width: .95em; height: .95em; vertical-align: -.12em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold) 55%, #b97a00); box-shadow: inset 0 0 0 1.5px rgba(120, 70, 0, .55); }
.cost { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 7px 2px 5px; border-radius: 999px; background: rgba(12, 18, 0, .16); font-size: .86em; }
.btn.ghost .cost { background: rgba(255, 255, 255, .08); }
.chip strong { display: inline-flex; align-items: center; gap: 6px; }
.chip span b { color: var(--acid); font: 700 11px var(--display); margin-left: 6px; letter-spacing: .06em; }
.flame { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 120, 30, .12); border: 1px solid rgba(255, 140, 40, .45); color: #ffb469; font: 700 13px var(--display); }
.flame svg { width: 13px; height: 13px; fill: #ff8a2a; }
.xpbar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ice), var(--acid)); box-shadow: 0 0 10px var(--acid); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.spend { position: fixed; z-index: 80; font: 700 18px var(--display); color: var(--gold); pointer-events: none; animation: spend 1s ease-out forwards; text-shadow: 0 0 12px rgba(255, 201, 62, .7); }
@keyframes spend { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(44px); } }

.nav { position: fixed; z-index: 29; display: flex; gap: 4px; top: 9px; left: 50%; transform: translateX(-50%); padding: 4px; border-radius: 999px; background: rgba(24, 24, 36, .8); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav button { position: relative; display: flex; align-items: center; gap: 7px; padding: 7px 14px; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--muted); font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; transition: color .2s, background .2s; }
.nav button:hover { color: var(--text); }
.nav button.on { background: var(--acid); color: #0c1200; }
.nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav em { position: absolute; top: -3px; right: -1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--hot); color: #fff; font: 700 11px/17px var(--display); font-style: normal; text-align: center; animation: bump .6s cubic-bezier(.2, 1.6, .4, 1); }

.tile.lead { box-shadow: 0 0 0 1px var(--a), 0 18px 60px -24px var(--a); }
.leadtag { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 4px 9px; border-radius: 999px; background: var(--a); color: #07070d; font: 700 10px var(--display); letter-spacing: .14em; text-transform: uppercase; animation: glow 1.6s ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: 0 0 0 0 var(--a); } to { box-shadow: 0 0 18px 2px var(--a); } }
.tile-cta.col { flex-direction: column; }
.goes { font: 700 11px var(--display); opacity: .7; margin-left: 6px; }

.over-xp { font: 700 13px var(--display); letter-spacing: .12em; color: var(--ice); margin: -8px 0 16px; min-height: 18px; }
.over-xp span { display: inline-block; animation: bump .7s cubic-bezier(.2, 1.6, .4, 1) .25s backwards; }
.over-tok { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.badge.big { font-size: 15px; padding: 7px 16px; background: linear-gradient(90deg, var(--acid), var(--ice)); box-shadow: 0 0 34px rgba(200, 255, 46, .55); }
.badge.bad { background: var(--hot); color: #fff; }
#toast.good { background: var(--acid); color: #0c1200; box-shadow: 0 14px 40px -10px var(--acid); }

/* friends / challenges */
.f-code { text-align: center; padding: 14px; border-radius: 14px; border: 1px dashed rgba(200, 255, 46, .5); background: rgba(200, 255, 46, .06); margin-bottom: 14px; }
.f-code b { display: block; font: 700 34px var(--display); letter-spacing: .22em; color: var(--acid); margin: 4px 0 10px; text-shadow: 0 0 24px rgba(200, 255, 46, .5); }
.f-code .actions { justify-content: center; margin: 0; flex-wrap: wrap; }
.f-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.f-row .btn { padding: 0 20px; }
.chl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chl li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 13.5px; }
.chl li.hot { box-shadow: inset 0 0 0 1px rgba(200, 255, 46, .5); background: rgba(200, 255, 46, .07); }
.chl .av { width: 30px; height: 30px; font-size: 13px; }
.chl small { display: block; color: var(--muted); font-size: 12px; }
.chl code { font: 700 12px var(--display); letter-spacing: .14em; color: var(--acid); }
.chl .res { font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.chl .res.won { color: var(--acid); }
.chl .res.lost { color: var(--hot); }
.chl .acts { display: flex; gap: 6px; }

@media (max-width: 1020px) {
  .nav { top: auto; bottom: 0; left: 0; right: 0; transform: none; border-radius: 0; border-width: 1px 0 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; background: rgba(10, 10, 18, .92); }
  .nav button { flex-direction: column; gap: 2px; padding: 5px 14px; font-size: 10px; border-radius: 12px; }
  .nav button.on { background: none; color: var(--acid); }
  .nav svg { width: 20px; height: 20px; }
  .nav em { right: 6px; top: -1px; }
  main { padding-bottom: 86px; }
  footer { padding-bottom: 92px; }
}

/* pages sit under the site header on desktop so the nav and wallet stay in reach */
@media (min-width: 1021px) { #page { top: 61px !important; } }
@media (max-width: 1020px) { #toast { bottom: 88px; } }
@media (max-width: 640px) { .top-right > .btn.ghost { display: none; } }
footer .link { margin-left: 8px; }

/* stake tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 760px; margin: 0 auto 16px; }
.tiers button { position: relative; display: grid; gap: 1px; padding: 9px 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); cursor: pointer; text-align: center; transition: border-color .2s, background .2s, transform .12s; }
.tiers button:hover { border-color: rgba(200, 255, 46, .45); }
.tiers button:active { transform: scale(.97); }
.tiers b { font: 700 14px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.tiers span { font-size: 12px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.tiers em { font: 600 11px var(--display); font-style: normal; color: var(--muted); letter-spacing: .04em; }
.tiers button.on { background: rgba(200, 255, 46, .1); border-color: var(--acid); box-shadow: 0 0 26px -8px var(--acid); }
.tiers button.on b, .tiers button.on em { color: var(--acid); }
/* token packs */
.packs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.packs button { position: relative; display: grid; gap: 2px; padding: 16px 2px 9px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer; text-align: center; }
.packs b { font: 700 13px var(--display); display: inline-flex; gap: 3px; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.packs span { font-size: 12px; color: var(--muted); }
.packs em { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 1px 6px; border-radius: 999px; background: var(--hot); color: #fff; font: 700 9.5px var(--display); font-style: normal; letter-spacing: .04em; }
.packs button.on { border-color: var(--acid); background: rgba(200, 255, 46, .12); }
.packs button.on b { color: var(--acid); }
.packs button:last-child em { background: var(--acid); color: #0c1200; }
@media (max-width: 640px) {
  .tiers { gap: 6px; margin-bottom: 10px; }
  .tiers button { padding: 7px 2px; border-radius: 12px; }
  .tiers b { font-size: 11.5px; }
  .tiers span { font-size: 11px; }
  .tiers em { display: none; }
}

/* personal dashboard */
.hero { padding: clamp(10px, 2vw, 18px) 0 clamp(10px, 2vw, 16px); }
.eyebrow.win { color: var(--acid); }
.eyebrow.win .dot { background: var(--acid); animation: none; box-shadow: 0 0 12px var(--acid); }
.hero-sub { margin: 6px auto 0; color: var(--muted); font-size: 14px; max-width: 640px; }
.hero-sub b { color: var(--text); }
.hero-sub .btn { margin-left: 8px; vertical-align: 1px; }
.hero-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.hero-chips span { padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.hero-chips b { color: var(--acid); font: 700 12px var(--display); letter-spacing: .04em; }
.hud-mode.front { color: var(--acid); animation: bump .5s cubic-bezier(.2, 1.6, .4, 1); text-shadow: 0 0 14px var(--acid); }
footer a.link { margin-left: 8px; }
.invite p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.invite p b { color: var(--acid); }
.invite .stats { margin-bottom: 0; }
@media (max-width: 640px) { .hero-chips span:nth-child(n+3) { display: none; } .hero-sub { font-size: 13px; } }

/* keep the whole lobby on one screen */
.hero-amount { font-size: clamp(44px, 6.5vw, 66px); }
.tiers { margin-bottom: 14px; }
.tiers button { display: flex; align-items: baseline; justify-content: center; gap: 9px; padding: 9px 8px; }
@media (min-width: 641px) { .tile .art { height: 84px; } }
@media (max-width: 640px) {
  .hero-chips, .status.idle { display: none; }
  .tiers button { flex-direction: column; align-items: center; gap: 0; padding: 6px 2px; }
  .hero-sub .btn { margin: 6px 0 0; }
  .tiles { gap: 8px; }
}

.tiers { max-width: 900px; }
.tiers span, .tiers em { white-space: nowrap; }
@media (max-width: 640px) { .tile > .sprint { display: none !important; } } /* on phones the sprint lives in the game's detail sheet */

.cashbox { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0; }
.cashbox div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.cashbox div:first-child { border-color: rgba(200, 255, 46, .45); }
.cashbox b { display: block; font: 700 20px var(--display); font-variant-numeric: tabular-nums; }
.cashbox div:first-child b { color: var(--acid); }
.cashbox span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.prize .lock { color: var(--gold); font-size: 12px; font-weight: 600; }
@media (max-width: 640px) { .tile .prize .lock { display: inline; font-size: 11px; } }

.tile h3 .div, .sheet h3 .div { font: 700 10px var(--display); font-style: normal; letter-spacing: .14em; margin-left: 8px; padding: 2px 7px; border-radius: 999px; vertical-align: 3px; color: var(--a); border: 1px solid color-mix(in srgb, var(--a) 55%, transparent); }
.sprint.week .lbl { color: var(--ice); }
.sprint + .sprint { margin-top: 6px; }

/* ---------- head to head: game switch + chess board ---------- */
.h2h { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.h2h button { border: 0; background: none; padding: 4px 11px; border-radius: 7px; cursor: pointer; font: 700 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: background .15s, color .15s; }
.h2h button.on { background: var(--a); color: #07070d; }
.h2h button:disabled { cursor: default; }
.h2h .narrow { display: none; }
@media (max-width: 640px) { .h2h .narrow { display: inline; } }
.panel.xo.chess { max-width: 560px; padding: 14px; }
.panel.xo.chess .eyebrow { margin-bottom: 8px; }
.ch-bar { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; text-align: left; border: 1px solid transparent; }
.ch-bar.on { background: rgba(200, 255, 46, .07); border-color: rgba(200, 255, 46, .4); }
.ch-bar .av { width: 30px; height: 30px; font-size: 13px; flex: none; }
.ch-name { font: 700 14px var(--display); letter-spacing: .04em; line-height: 1.15; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-name small { display: block; font: 500 11px Inter, system-ui, sans-serif; color: var(--muted); letter-spacing: 0; }
.ch-name em { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.ch-name em.w { background: #f6f7ff; }
.ch-name em.b { background: var(--hot); }
.ck { margin-left: auto; font: 700 22px var(--display); font-variant-numeric: tabular-nums; padding: 2px 10px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); min-width: 74px; text-align: center; }
.ch-bar.on .ck { color: var(--acid); border-color: rgba(200, 255, 46, .5); }
.ch-bar.on .ck.low { color: var(--hot); border-color: var(--hot); animation: ping 1s infinite; }
.ch-board {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); width: min(100%, calc(100dvh - 290px)); aspect-ratio: 1; margin: 8px auto;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 60px -22px var(--ice); user-select: none; -webkit-user-select: none;
}
@supports not (height: 100dvh) { .ch-board { width: min(100%, calc(100vh - 290px)); } }
.ch-board.mine { box-shadow: 0 0 60px -18px var(--acid); }
.ch-board button { position: relative; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; border: 0; padding: 0; margin: 0; font-size: 0; line-height: 0; cursor: default; -webkit-appearance: none; appearance: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* Pieces are drawn shapes, not font characters, so they look the same on every phone and computer. */
.pc { position: absolute; left: 9%; top: 9%; width: 82%; height: 82%; display: block; pointer-events: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.pc.w { fill: #f6f7ff; stroke: #0b0c18; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .45)); }
.pc.b { fill: var(--hot); stroke: #2a0616; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5)); }
.pc .cut { fill: none; stroke-width: 2; }
.pc.w .cut { stroke: #0b0c18; }
.pc.b .cut { stroke: #2a0616; }
.pc .dot { stroke: none; }
.pc.w .dot { fill: #0b0c18; }
.pc.b .dot { fill: #2a0616; }
.pc.disc { left: 6%; top: 6%; width: 88%; height: 88%; }
.pc.disc .rim { filter: brightness(.55); }
.pc.disc .cut { stroke-opacity: .35; }
.pc.disc .crown { fill: var(--gold); stroke: #5a4300; stroke-width: 1.2; }
.ch-promo button { position: relative; }
.ch-board.mine button { cursor: pointer; }
.ch-board .lt { background: #3a4069; }
.ch-board .dk { background: #1f2340; }
.ch-board .last { box-shadow: inset 0 0 0 100px rgba(255, 201, 62, .2); }
.ch-board .sel { box-shadow: inset 0 0 0 3px var(--acid), inset 0 0 0 100px rgba(200, 255, 46, .16); }
.ch-board .hint::after { content: ""; position: absolute; left: 36%; top: 36%; width: 28%; height: 28%; border-radius: 50%; background: rgba(200, 255, 46, .75); box-shadow: 0 0 12px var(--acid); }
.ch-board .cap::after { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 3px solid var(--acid); box-shadow: 0 0 12px var(--acid); }
.ch-board .chk { background: radial-gradient(circle, rgba(255, 46, 126, .95) 10%, rgba(255, 46, 126, .25) 62%, transparent 75%), #1f2340; }
.ch-promo { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 1.5em; color: var(--muted); }
.ch-promo button { width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(200, 255, 46, .5); background: var(--bg); cursor: pointer; font: 400 30px/1 "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", serif; }
.ch-promo button:hover { background: rgba(200, 255, 46, .12); }
.panel.xo.chess .xo-status { margin: 2px 0 10px; }
.panel.xo.chess .xo-status b { color: var(--hot); }
@media (max-width: 640px) {
  .overlay:has(.panel.chess) { padding: 8px; }
  .panel.xo.chess { padding: 10px; border-radius: 18px; }
  .tile .h2h button { padding: 3px 7px; font-size: 10.5px; letter-spacing: .05em; }
  .h2h .wide { display: none; }
}

/* ---------- accounts: log in / sign up, account sheet ---------- */
.auth-seg { display: flex; gap: 6px; margin: 0 0 14px; padding: 4px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line); }
.auth-seg button { flex: 1; padding: 9px; border: 0; border-radius: 9px; background: none; cursor: pointer; color: var(--muted); font: 700 12.5px var(--display); letter-spacing: .12em; text-transform: uppercase; }
.auth-seg button.on { background: rgba(200, 255, 46, .12); color: var(--acid); box-shadow: inset 0 0 0 1px rgba(200, 255, 46, .5); }
.login input[type=password] { letter-spacing: .08em; }
.login .check { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; text-align: left; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.login .check input { width: 20px; height: 20px; margin: 0; padding: 0; flex: none; accent-color: var(--acid); }
.login .check a { color: var(--text); }
.login .btn.wide { margin-top: 4px; }
.fine .link, .acc-link { font-size: 12.5px; }
.w-title .acc-link { float: right; margin: 4px 34px 0 0; font: 600 12.5px Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
#account .w-label small { text-transform: none; letter-spacing: 0; font: 500 12px Inter, system-ui, sans-serif; }
.sheet select {
  width: 100%; padding: 12px; border-radius: 11px; border: 1px solid var(--line); outline: 0; background: var(--bg); color: var(--text);
  font: 600 15px Inter, system-ui, sans-serif; appearance: none; -webkit-appearance: none;
}
.sheet select:focus { border-color: var(--acid); }
.sheet input[type=date] { color-scheme: dark; min-height: 45px; }
.sheet .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet .two > div { min-width: 0; }
.kyc-status, .verify-box { margin-top: 14px; padding: 13px 14px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); text-align: left; }
.kyc-status b, .verify-box b { display: block; font: 700 15px var(--display); letter-spacing: .04em; text-transform: uppercase; }
.kyc-status span, .verify-box p { display: block; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.kyc-status.ok { border-color: rgba(200, 255, 46, .5); background: rgba(200, 255, 46, .07); } .kyc-status.ok b { color: var(--acid); }
.kyc-status.wait { border-color: rgba(255, 201, 62, .5); background: rgba(255, 201, 62, .06); } .kyc-status.wait b { color: var(--gold); }
.kyc-status.bad { border-color: rgba(255, 46, 126, .5); background: rgba(255, 46, 126, .06); } .kyc-status.bad b { color: var(--hot); }
.verify-box { border-style: dashed; border-color: rgba(200, 255, 46, .45); background: rgba(200, 255, 46, .05); }
.lim-row { display: grid; grid-template-columns: 1fr 84px auto auto; gap: 7px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; }
.lim-row b { display: block; font: 700 14px var(--display); letter-spacing: .04em; }
.lim-row small { color: var(--muted); font-size: 12px; }
.lim-row input { padding: 9px 10px; }
.lim-row .btn.sm { padding-left: 12px; padding-right: 12px; }
.sandbox-note.left { text-align: left; margin-top: 8px; }
.btn.danger { border-color: rgba(255, 46, 126, .5); color: var(--hot); }
#account .sheet input, #account .sheet select { padding: 11px 12px; margin: 0; font: 600 15px Inter, system-ui, sans-serif; text-align: left; letter-spacing: 0; }
#account .sheet .btn.wide { margin-top: 10px; }
#account .w-label { margin-top: 12px; }
@media (max-width: 640px) {
  .lim-row { grid-template-columns: 1fr auto auto; }
  .lim-row > div { grid-column: 1 / -1; }
}

/* ---------- head to head: someone is waiting ---------- */
.status.ready { color: var(--acid); font-weight: 600; }
.status.ready::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); animation: blink 1s infinite; vertical-align: 1px; }
@keyframes blink { 50% { opacity: .25; } }
.h2h button { position: relative; }
.h2h button.has::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px var(--acid); animation: blink 1s infinite; }
.tile.xo.ready { box-shadow: 0 0 0 1px rgba(200, 255, 46, .55), 0 0 40px -12px var(--acid); }

/* =====================================================================================================
   CALM RESTYLE (home screen fork). A mainstream consumer-app look: solid dark surfaces, generous rounded
   cards, big clear type, avatars up front, and ONE accent colour (acid) used sparingly. No neon borders,
   grid backgrounds or heavy glows. Everything below overrides the older rules above through shared tokens.
   ===================================================================================================== */
:root { --bg: #0c0c11; --surface: #16161d; --raise: #1e1e27; --line: rgba(255, 255, 255, .08); --muted: #9696ab; --violet: #a98bff; }
.bg { display: none; }
.top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.logo { letter-spacing: .06em; }
.logo b { text-shadow: none; }
.logo.big { text-shadow: none; }
.chip { background: var(--surface); }
.chip strong { color: var(--text); }
.icon { background: var(--surface); }
.btn { box-shadow: none; text-transform: none; letter-spacing: .01em; border-radius: 14px; }
.btn::after { display: none; }
.btn:hover { box-shadow: none; filter: brightness(1.07); }
.btn.ghost { background: var(--raise); border-color: transparent; }
.btn.ghost:hover { background: #262631; filter: none; }
.panel { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.overlay { background: rgba(6, 6, 10, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.panel input:focus { box-shadow: none; }
.eyebrow { letter-spacing: .08em; }
.tile h3, .sheet h3 { text-transform: none; letter-spacing: 0; font-size: 22px; }
.prize b { text-shadow: none; color: var(--text); }
.meter i, .xpbar i { box-shadow: none; }
.xpbar i { background: var(--acid); }
.hud-score, .over-score, .hud-mode.front, .f-code b, .spend { text-shadow: none; }
.badge.big { box-shadow: none; background: var(--acid); }
#toast.good { box-shadow: 0 14px 40px -16px rgba(0, 0, 0, .8); }
.ch-board, .ch-board.mine { box-shadow: none; }
.xo-grid .mx, .xo-grid .mo { filter: none; }
.xo-grid button.won { box-shadow: none; }
.nav { background: rgba(22, 22, 29, .94); }
.sheet .art { height: 120px; border-bottom: 0; background: color-mix(in srgb, var(--a) 20%, var(--surface)); color: var(--a); }
.sheet .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet.flyer { --a: var(--ice); }
.sheet.snake { --a: var(--acid); }
.sheet.draw { --a: var(--hot); }
.sheet.g-xo { --a: var(--gold); }
.sheet.g-chess { --a: var(--violet); }
.sheet.g-checkers { --a: #ff5a4d; }
.sheet.g-lolly { --a: #ff6fa8; }
.sheet.g-hangman { --a: #5dffa0; }
.sheet.g-blocks { --a: #7f8cff; }
.sheet .x { background: rgba(12, 12, 17, .7); border-color: transparent; color: var(--text); }
.sheet .stats div { background: var(--raise); }
.status.ready { color: var(--text); }
.status.ready::before { box-shadow: none; }
footer { color: #6c6c82; }

/* ---------- activity strip: who just did what ---------- */
.ticker { border: 0; background: none; overflow: visible; }
.act { display: flex; gap: 8px; overflow-x: auto; max-width: 1180px; margin: 0 auto; padding: 6px clamp(12px, 3vw, 28px) 4px; scrollbar-width: none; animation: none; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.act::-webkit-scrollbar { display: none; }
.act-i { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 7px; border-radius: 999px; border: 1px solid transparent; background: var(--surface); color: var(--muted); font: 400 13px/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.act-i.plain { padding-left: 14px; cursor: default; }
.act-i b { color: var(--text); font-weight: 600; }
.act-i em { color: var(--acid); font-style: normal; font-weight: 600; }
.act-i .av { width: 30px; height: 30px; font-size: 13px; flex: none; }
.act-i.fol { border-color: rgba(200, 255, 46, .4); }
.act-i.inv { background: var(--acid); color: #0c1200; }
.act-i.inv b { color: #0c1200; }
.act-i .av.plus { background: rgba(12, 18, 0, .16); color: #0c1200; font-size: 18px; }
.ticker-track.act span::before { content: none; }

/* ---------- home: the one number, then one card per game ---------- */
.hm-hero { padding: 12px 2px 14px; }
.hm-k { color: var(--muted); font-size: 14px; }
.hm-amt { font: 700 clamp(42px, 12vw, 64px)/1.05 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hm-amt.win { color: var(--acid); }
.hm-amt.sm { font-size: clamp(26px, 7.4vw, 40px); margin: 2px 0; }
.hm-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.hm-sub b { color: var(--text); font-weight: 600; }
.hm-sub .btn { margin-left: 8px; vertical-align: 1px; }

.gcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gc { --a: var(--acid); display: flex; flex-direction: column; min-width: 0; border-radius: 22px; overflow: hidden; background: var(--surface); }
.gc.flyer { --a: var(--ice); }
.gc.snake { --a: var(--acid); }
.gc.orbit { --a: #ff9a3d; }
.gc.lolly { --a: #ff6fa8; }
.gc.hangman { --a: #5dffa0; }
.gc.blocks { --a: #7f8cff; }
.gc.checkers { --a: #ff5a4d; }
.gc.xo { --a: var(--gold); }
.gc.chess { --a: var(--violet); }
.gc.cup { --a: var(--hot); }
.gc-top { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0; padding: 0; border: 0; cursor: pointer; overflow: hidden; color: var(--a); background: color-mix(in srgb, var(--a) 22%, var(--surface)); -webkit-tap-highlight-color: transparent; }
.gc-top svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gc-top .float { animation: float 3.2s ease-in-out infinite alternate; }
.gc-badge { position: absolute; top: 8px; left: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(12, 12, 17, .78); color: var(--text); font: 600 11.5px/1.2 Inter, system-ui, sans-serif; }
.gc-badge.ok, .gc-badge.live { background: var(--acid); color: #0c1200; }
.gc-badge.live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #0c1200; animation: blink 1s infinite; }
.gc-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 10px 12px 12px; }
.gc h3 { margin: 0; font: 700 17px/1.2 var(--display); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-win { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.gc-win b { font: 700 24px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.gc-win span { color: var(--muted); font-size: 12.5px; }
.gc-cta { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
.gc-cta .btn { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 0 10px; font-size: 14px; border-radius: 13px; }
.gc-cta .btn:first-child { flex: 1; }
.gc-cta .cost { margin-left: 6px; padding: 2px 6px 2px 4px; }
.gc.ready { box-shadow: inset 0 0 0 2px var(--acid); }
@media (max-width: 759px) {
  .gc.wide { grid-column: span 2; flex-direction: row; }
  .gc.wide .gc-top { width: 40%; aspect-ratio: auto; flex: none; }
  .gc.wide .gc-cta .btn { flex: 1; }
}
@media (min-width: 760px) { .gcs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } .gc-body { padding: 14px 16px 16px; } .gc h3 { font-size: 19px; } .gc-win b { font-size: 28px; } }
@media (min-width: 1020px) { .gcs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } .hm-hero { padding: 26px 2px 22px; } }
main.boot .hm-hero, main.boot .gc { animation: rise .5s cubic-bezier(.2, .8, .2, 1) backwards; }
main.boot .gc:nth-child(2) { animation-delay: .04s; }
main.boot .gc:nth-child(3) { animation-delay: .08s; }
main.boot .gc:nth-child(4) { animation-delay: .12s; }
main.boot .gc:nth-child(5) { animation-delay: .16s; }

.hm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; margin-top: 10px; padding: 10px 16px; border: 0; border-radius: 18px; background: var(--surface); cursor: pointer; text-align: left; }
.hm-row b { display: block; font: 700 15px/1.3 var(--display); }
.hm-row small { color: var(--muted); font-size: 12.5px; }
.hm-row i { font-style: normal; font-size: 22px; color: var(--muted); }
details.demo { margin-top: 18px; color: var(--muted); font-size: 12.5px; }
details.demo summary { cursor: pointer; padding: 6px 2px; }
details.demo div { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }

/* ---------- sheets: stake choice and the free-play box ---------- */
.seg { display: flex; gap: 6px; margin-top: 12px; padding: 4px; border-radius: 14px; background: var(--raise); }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: none; cursor: pointer; color: var(--muted); font: 700 14px/1.2 var(--display); }
.seg button span { display: block; font: 400 11.5px Inter, system-ui, sans-serif; margin-top: 1px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.free-box { margin: 4px 0 14px; padding: 12px; border-radius: 16px; background: var(--raise); }
.free-box > b { display: block; font: 700 15px var(--display); }
.free-box > span { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.free-box .actions { margin: 0; }
.free-box .btn.ghost { background: var(--surface); padding: 12px 8px; font-size: 13.5px; white-space: normal; }
.sheet .actions .btn { min-height: 46px; }

/* Home polish: the accent is kept for live moments; everyday Play buttons are plain white. */
.gc-top { aspect-ratio: 2 / 1; }
.gc-top .float { animation-name: floatS; }
@keyframes floatS { to { transform: translateY(-3px); } }
.gc-win { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.gc-win b { font-size: 22px; }
.gc-win span { overflow: hidden; text-overflow: ellipsis; }
.gc-cta .btn:not(.ghost) { background: #f4f4fa; color: #0c0c11; }
.gc-cta .btn:not(.ghost) .cost { background: rgba(12, 12, 17, .1); }
.gc.ready .gc-cta .btn:not(.ghost) { background: var(--acid); color: #0c1200; }
.act-i.inv { background: var(--surface); color: var(--text); }
.act-i.inv b { color: var(--text); }
.act-i .av.plus { background: var(--acid); color: #0c1200; }
.hm-sub .btn, details.demo .btn { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; font-size: 13.5px; }
.hm-sub .btn { margin: 8px 0 0; }
@media (min-width: 760px) { .hm-sub .btn { margin: 0 0 0 10px; } .gc-win b { font-size: 26px; } }
.xpbar { opacity: .5; }

/* ---------- home cards: cover art tiles (fork F block) ----------
   The cover picture is the card. The game's name and what you can win are lettered over the bottom of the
   picture; the buttons sit underneath. */
.gc { border-radius: 20px; background: var(--surface); }
.gc-top { aspect-ratio: 1 / 1; background: #15151c; color: #fff; text-align: left; font: inherit; }
.gc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.gc-top:hover .gc-img { transform: scale(1.04); }
.gc-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 3px; padding: 46px 12px 10px; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0), rgba(10, 10, 15, .7) 46%, rgba(10, 10, 15, .95)); }
.gc-name { font: 700 20px/1.02 var(--display); letter-spacing: .02em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); overflow-wrap: anywhere; }
.gc-top .gc-win { align-items: baseline; gap: 6px; color: #fff; }
.gc-top .gc-win b { font-size: 21px; color: #fff; }
.gc-top .gc-win span { color: rgba(255, 255, 255, .72); font-size: 12px; }
.gc-badge { top: 9px; left: 9px; z-index: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.gc-mode { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 5px 8px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(9, 9, 14, .5); backdrop-filter: blur(8px); color: rgba(255, 255, 255, .92); font: 700 9px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.gc-body { padding: 8px 8px 9px; gap: 0; }
.gc-meta { display: flex; align-items: center; gap: 10px; min-height: 26px; margin: 0 2px 7px; overflow: hidden; color: var(--muted); font: 600 10.5px/1.2 Inter, system-ui, sans-serif; white-space: nowrap; }
.gc-meta span { overflow: hidden; text-overflow: ellipsis; }
.gc-meta i { margin-right: 4px; color: var(--a); font-style: normal; font-size: 11px; }
.gc-cta { padding-top: 0; }
.gc-cta .btn { border-radius: 12px; }
.gc { box-shadow: 0 12px 28px -22px #000; transition: transform .2s ease, box-shadow .2s ease; }
.gc:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -22px #000; }
.gc:has(.gc-badge.live) { box-shadow: 0 0 0 1px rgba(200, 255, 46, .32), 0 16px 32px -22px #000; }
@media (max-width: 759px) {
  .gc.wide { flex-direction: column; }
  .gc.wide .gc-top { width: 100%; aspect-ratio: 2.5 / 1; }
  .gc.wide .gc-img { object-position: 50% 38%; }
}
/* On a phone card there is room for one label over the picture: a status badge wins over the game-type pill. */
@media (max-width: 759px) { .gc-top:has(.gc-badge) .gc-mode { display: none; } }
/* The sheet that opens from a card carries the same cover as a banner. */
.sheet .art.cover { height: 132px; background: #15151c; }
.sheet .art.cover .gc-img { object-position: 50% 36%; }
/* "Play now" + stake + "Free" must all fit on a phone card: tighten that one row, never clip it. */
.gc-cta .btn { white-space: nowrap; }
@media (max-width: 759px) {
  .gc.ready .gc-cta .btn { font-size: 13px; padding: 0 8px; }
  .gc.ready .gc-cta .cost { margin-left: 5px; padding: 2px 6px; }
  .gc.ready .gc-cta .cost .coin { display: none; }
}
@media (max-width: 374px) { .gc-cta .btn { font-size: 13px; padding: 0 7px; } .gc-cta .cost { margin-left: 4px; padding: 2px 5px 2px 3px; } }
@media (max-width: 374px) { .gc.ready .gc-cta .btn { font-size: 12.5px; padding: 0 6px; } .gc.ready .gc-cta .cost { margin-left: 4px; padding: 2px 5px; } }
@media (max-width: 374px) { .gc-name { font-size: 17.5px; } .gc-top .gc-win b { font-size: 19px; } .gc-cap { padding: 40px 10px 9px; } }
@media (max-width: 374px) { .gc-mode { font-size: 8px; padding: 4px 6px; } .gc-meta { gap: 6px; font-size: 9.5px; } }
@media (min-width: 760px) { .gc-name { font-size: 22px; } .gc-top .gc-win b { font-size: 24px; } .gc-body { padding: 10px 10px 11px; } .gc-cap { padding: 60px 14px 12px; } }
@media (prefers-reduced-motion: reduce) { .gc-img { transition: none; } .gc-top:hover .gc-img { transform: none; } }

/* ---------- match panel: practice vs the computer, chat, add friend (fork A block) ---------- */
.panel.xo { position: relative; }
.xo-vs small { display: block; margin-top: 2px; font: 500 12px Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--muted); }
.bot-levels { display: grid; gap: 6px; margin: 14px 0 10px; }
.bot-levels button { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: center; text-align: left; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.bot-levels i { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--display); font-style: normal; background: rgba(255, 255, 255, .06); color: var(--muted); }
.bot-levels b { font: 700 14px var(--display); letter-spacing: .05em; text-transform: uppercase; }
.bot-levels span { grid-column: 2; font-size: 12px; color: var(--muted); }
.bot-levels button.on { border-color: var(--acid); background: rgba(200, 255, 46, .08); }
.bot-levels button.on i { background: var(--acid); color: #07070d; }
.bot-sides { display: flex; gap: 6px; margin-bottom: 14px; }
.bot-sides button { flex: 1; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; font: 700 11.5px var(--display); letter-spacing: .05em; text-transform: uppercase; }
.bot-sides button.on { border-color: var(--acid); color: var(--acid); }
.bot-end { display: flex; gap: 8px; }
.bot-end .btn { flex: 1; padding: 12px 6px; font-size: 13px; white-space: nowrap; }
.ck.lvl { min-width: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 5px 9px; }
.mf { flex: none; margin-left: 8px; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(200, 255, 46, .5); background: none; color: var(--acid); cursor: pointer; font: 700 10.5px var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.mf.on { border-color: var(--line); color: var(--muted); cursor: default; display: inline-block; }
.ch-bar .mf + .ck { margin-left: 8px; }
.ch-bar .mf { margin-left: auto; }
.panel.xo.chess.has-chat .ch-board { width: min(100%, calc(100dvh - 338px)); }
@supports not (height: 100dvh) { .panel.xo.chess.has-chat .ch-board { width: min(100%, calc(100vh - 338px)); } }
#xoChat { margin-top: 8px; }
.mc-bar { position: relative; width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; font: 500 13px Inter, system-ui, sans-serif; text-align: left; }
.mc-bar svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
/* width: 0 + grow: a long one-line preview must never widen the panel beyond the screen */
.mc-last { flex: 1 1 0; width: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#xoChat, .mc, .mc-pop, .mc-log, .mc-chips, .mc-row { min-width: 0; max-width: 100%; }
.mc-pop { box-sizing: border-box; max-width: calc(100% - 20px); }
.mc-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 8px var(--hot); }
.mc-dot[hidden] { display: none; }
.mc-pop { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; border: 1px solid rgba(200, 255, 46, .45); background: #10111c; box-shadow: 0 -12px 40px -8px #000; text-align: left; overflow: hidden; }
.mc-pop[hidden] { display: none; }
.mc-head { flex: none; display: flex; align-items: center; gap: 10px; }
.mc-head b { font: 700 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mc-mute { margin-left: auto; border: 0; background: none; padding: 2px 4px; color: var(--muted); cursor: pointer; font: 600 12px Inter, system-ui, sans-serif; text-decoration: underline; }
.mc-x { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: inherit; cursor: pointer; font-size: 16px; line-height: 1; }
.mc-log { flex: 1 1 auto; min-height: 18px; max-height: 96px; overflow-y: auto; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.mc-log p { margin: 0 0 3px; }
.mc-log b { font-weight: 700; color: var(--ice); margin-right: 4px; }
.mc-log p.me b { color: var(--acid); }
.mc-log p.none { color: var(--muted); }
.mc-chips { flex: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.mc-chips::-webkit-scrollbar { display: none; }
.mc-chips button { flex: none; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: inherit; cursor: pointer; font: 600 12px Inter, system-ui, sans-serif; white-space: nowrap; }
.mc-row { flex: none; display: flex; gap: 6px; }
.panel .mc-row input { flex: 1; min-width: 0; width: auto; margin: 0; padding: 9px 11px; border-radius: 10px; font-size: 16px; text-align: left; }
.mc-row .btn { flex: none; padding: 9px 14px; }
.mc-pop.tight .mc-log { max-height: 38px; }
.mc-pop.tiny .mc-head b { display: none; }
.mc-pop.tiny .mc-log { max-height: 19px; }

/* ---------- wallet: cash-out breakdown (tokens, rate, fee, what you receive) ---------- */
.wquote { margin: 8px 0 4px; text-align: left; }
.wq { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 14px; }
.wq dt { color: var(--muted); }
.wq dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.wq .wq-net { padding-top: 7px; border-top: 1px solid var(--line); color: var(--ink, #fff); font: 700 16px var(--display); }
.wq-note { margin: 7px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.wq-note.bad { color: var(--hot); }

/* ---------- human check (Cloudflare Turnstile): hidden unless Cloudflare needs a click ---------- */
#humanCheck { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 10, .72); visibility: hidden; pointer-events: none; }
#humanCheck.show { visibility: visible; pointer-events: auto; }
#humanCheck .hc-card { width: min(100%, 340px); padding: 18px; border-radius: 18px; background: var(--panel, #12131c); border: 1px solid var(--line, #2a2c3c); text-align: center; display: grid; gap: 12px; }
#humanCheck .hc-card b { font: 700 16px var(--display, inherit); }
#humanCheck .hc-card small { color: var(--muted, #8b8fa8); font-size: 12px; }
#humanWidget { min-height: 65px; display: grid; place-items: center; }

/* ---------- tokens everywhere: a coin in front of every prize amount ---------- */
[data-money]::before, .win-amount::before {
  content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .18em; vertical-align: -.03em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold) 55%, #b97a00); box-shadow: inset 0 0 0 .05em rgba(120, 70, 0, .55);
}

/* ---------- token shop ---------- */
.chip { position: relative; }
.deal-tag { position: absolute; top: -7px; right: -4px; padding: 1px 6px; border-radius: 999px; background: var(--hot); color: #fff; font: 700 10px var(--display); font-style: normal; letter-spacing: .02em; pointer-events: none; }
.deal-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 46, 126, .1); border: 1px solid rgba(255, 46, 126, .45); text-align: left; }
.deal-banner b { display: block; font: 700 15px var(--display); letter-spacing: .02em; }
.deal-banner span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.deal-clock { flex: none; text-align: right; }
.deal-clock small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.deal-clock b { font: 700 18px var(--display); font-variant-numeric: tabular-nums; color: var(--hot); }
.shop-need, .shop-limit, .shop-first { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; font-size: 13px; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted); }
.shop-need b, .shop-limit b { color: var(--text, #fff); }
.shop-need b { display: inline-flex; gap: 4px; align-items: center; }
.shop-first { border-color: rgba(200, 255, 46, .4); color: var(--acid); }
.packs.shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; margin-top: 12px; }
.packs.shop .pack { position: relative; display: grid; gap: 4px; align-content: start; justify-items: start; min-width: 0; min-height: 124px; padding: 16px 13px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); text-align: left; cursor: pointer; }
.packs.shop .pack.on { border-color: var(--acid); background: rgba(200, 255, 46, .09); }
.packs.shop .pack .pack-tok { font: 700 23px/1.1 var(--display); display: inline-flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; color: var(--text, #fff); }
.packs.shop .pack.on .pack-tok { color: var(--acid); }
.packs.shop .pack .pack-was { font-size: 12px; color: var(--muted); }
.packs.shop .pack .pack-bonus { position: static; transform: none; padding: 2px 8px; border-radius: 999px; background: rgba(200, 255, 46, .14); color: var(--acid); font: 700 11px var(--display); font-style: normal; white-space: nowrap; }
.packs.shop .pack.deal .pack-bonus { background: rgba(255, 46, 126, .16); color: #ff7aa9; }
.packs.shop .pack .pack-bonus.none { visibility: hidden; }
.packs.shop .pack .pack-buys { font-size: 12px; color: var(--muted); }
.packs.shop .pack .pack-price { margin-top: 4px; font: 700 15px var(--display); color: var(--text, #fff); }
.packs.shop .pack .pack-tag { position: absolute; top: -9px; left: 11px; padding: 2px 8px; border-radius: 999px; font: 700 10px var(--display); font-style: normal; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.packs.shop .pack.popular .pack-tag { background: var(--acid); color: #0c1200; }
.packs.shop .pack.popular { border-color: rgba(200, 255, 46, .55); }
.packs.shop .pack.best .pack-tag { background: var(--gold); color: #201400; }
.packs.shop .pack[disabled] { opacity: .5; cursor: not-allowed; }
.packs.shop .pack[disabled] .pack-price { font: 600 11px Inter, system-ui, sans-serif; color: #ff7aa9; }
.cashbox b { display: flex; align-items: center; gap: 6px; }
.cashbox span { text-transform: none; letter-spacing: 0; font-size: 12px; }
/* An odd pack out (the biggest) takes the full width, laid out as one row. */
.packs.shop .pack:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; grid-template-columns: auto 1fr auto; column-gap: 12px; align-items: center; }
.packs.shop .pack:last-child:nth-child(odd) .pack-tok { grid-row: 1 / span 2; }
.packs.shop .pack:last-child:nth-child(odd) .pack-was, .packs.shop .pack:last-child:nth-child(odd) .pack-bonus, .packs.shop .pack:last-child:nth-child(odd) .pack-buys { grid-column: 2; justify-self: start; }
.packs.shop .pack:last-child:nth-child(odd) .pack-price { grid-column: 3; grid-row: 1 / span 3; margin: 0; font-size: 18px; align-self: center; }
/* The buy button stays in reach while the packs scroll. */
#walletBody .sheet-scroll #wGo { position: sticky; bottom: 6px; z-index: 2; box-shadow: 0 0 0 10px var(--surface), 0 18px 0 10px var(--surface), 0 -12px 16px 4px var(--surface); }
.packs.shop .pack:last-child:nth-child(odd)[disabled] .pack-price { font-size: 11px; max-width: 110px; text-align: right; }

/* ---------- streaks (public/streak.js): header chip, streak sheet, club badge. No tokens or prices appear here. ---------- */
.flame.st-chip { cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; min-height: 34px; background: var(--raise); border-color: var(--line); color: var(--text); }
.flame.st-chip b { font: 700 13px var(--display); }
.flame.st-chip.zero { color: var(--muted); }
.flame.st-chip.zero svg { fill: var(--muted); }
.flame.st-chip.done { border-color: rgba(255, 140, 40, .55); background: rgba(255, 120, 30, .12); color: #ffb469; }
.flame.st-chip.rec { border-color: rgba(255, 201, 62, .6); }
.fl-classic svg { fill: #ff8a2a; } .fl-ice svg { fill: var(--ice); } .fl-gold svg { fill: var(--gold); } .fl-violet svg { fill: var(--violet, #a98bff); }
.st-sheet { padding-top: 18px; }
.st-head { display: flex; align-items: center; gap: 14px; }
.st-big { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 20px; background: var(--raise); }
.st-big svg { width: 34px; height: 34px; }
.st-big.zero svg { fill: var(--muted); }
.st-num { font: 700 44px/1 var(--display); }
.st-lab { color: var(--muted); font-size: 13px; }
.st-best { margin-left: auto; text-align: right; color: var(--muted); font-size: 12px; }
.st-best b { display: block; font: 700 20px var(--display); color: var(--text); }
.st-sub { margin: 12px 0 14px; color: var(--muted); }
.st-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.st-day { text-align: center; font-size: 11px; color: var(--muted); }
.st-day i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: var(--raise); border: 1px solid var(--line); margin-bottom: 4px; font-style: normal; }
.st-day i svg { width: 46%; height: 46%; fill: #ff8a2a; }
.st-day.played i { background: rgba(255, 120, 30, .14); border-color: rgba(255, 140, 40, .5); }
.st-day.frozen i { background: rgba(62, 230, 255, .1); border-color: rgba(62, 230, 255, .45); }
.st-day.missed i { opacity: .45; }
.st-day.none i { opacity: .2; }
.st-day.now i { box-shadow: 0 0 0 2px var(--text); }
.st-day.now span { color: var(--text); font-weight: 700; }
.st-snow { fill: none !important; stroke: var(--ice); stroke-width: 2; stroke-linecap: round; }
.st-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.st-box { margin: 14px 0 0; padding: 14px; border-radius: 14px; background: var(--raise); border: 1px solid var(--line); display: grid; gap: 6px; }
.st-box.rec { border-color: rgba(255, 201, 62, .55); }
.st-box b { font: 700 15px var(--display); }
.st-box span, .st-box em { color: var(--muted); font-size: 13px; font-style: normal; }
.st-bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.st-bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.st-row { display: flex; gap: 12px; align-items: center; margin: 16px 0 0; }
.st-row small { display: block; color: var(--muted); font-size: 12.5px; }
.st-fz { display: flex; gap: 6px; }
.st-fz i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--raise); border: 1px solid var(--line); opacity: .4; }
.st-fz i.on { opacity: 1; border-color: rgba(62, 230, 255, .5); background: rgba(62, 230, 255, .1); }
.st-fz svg { width: 18px; height: 18px; }
.st-club { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-club div { text-align: center; padding: 10px 6px; border-radius: 14px; background: var(--raise); border: 1px solid var(--line); opacity: .5; }
.st-club div.on { opacity: 1; border-color: rgba(255, 140, 40, .55); }
.st-club i svg { width: 20px; height: 20px; fill: #ff8a2a; }
.st-club b { display: block; font: 700 18px var(--display); }
.st-club span { font-size: 11px; color: var(--muted); }
.st-flames { display: flex; gap: 8px; margin-top: 10px; }
.st-flames button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); cursor: pointer; display: grid; place-items: center; }
.st-flames button.on { border-color: var(--text); }
.st-flames svg { width: 22px; height: 22px; }
.st-friends { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-friends li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--raise); }
.st-friends li div { flex: 1; min-width: 0; }
.st-friends small { display: block; color: var(--muted); font-size: 12px; }
.st-friends em { font-style: normal; color: #ffb469; margin-left: 6px; }
.st-friends em svg { width: 12px; height: 12px; fill: #ff8a2a; vertical-align: -1px; }
.st-invite { display: flex; gap: 8px; margin-top: 8px; }
.st-invite select { flex: 1; min-width: 0; }
.st-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin-top: 8px; border-radius: 12px; background: var(--raise); cursor: pointer; font-size: 14px; }
.st-toggle input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--acid); }
.st-toggle small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.st-card-wrap { z-index: 55; }
.st-card { max-width: 360px; width: calc(100% - 32px); padding: 24px 20px 20px; text-align: center; }
.st-card .st-big { margin: 0 auto 12px; }
.st-card h3 { margin: 0 0 8px; font: 700 22px var(--display); }
.st-card p { margin: 0 0 16px; color: var(--muted); }
.st-card .btn + .btn { margin-top: 8px; }
.st-badge { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 1px 6px 1px 4px; border-radius: 99px; background: rgba(255, 120, 30, .14); color: #ffb469; font: 700 10.5px var(--display); vertical-align: 1px; }
.st-badge svg { width: 10px; height: 10px; }
.pg-best { font-size: 12.5px; color: var(--muted); margin: 2px 0 4px; }
#account .tabs button { padding: 9px 4px; letter-spacing: .04em; font-size: 11px; }
.st-head { padding-right: 46px; } /* keep "Best" clear of the close button */

/* Show / Hide button inside password boxes (added by passwordEyes in app.js) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 64px !important; }
.pw-eye { position: absolute; top: 0; right: 0; height: 100%; padding: 0 14px; border: 0; background: none; cursor: pointer; color: var(--muted); font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--acid); outline: 0; }

/* With an even number of game cards the Weekly Cup takes an ordinary slot on phones, so no row is left half empty. */
@media (max-width: 759px) {
  .gcs > .gc.wide:nth-child(even) { grid-column: auto; }
  .gcs > .gc.wide:nth-child(even) .gc-top { aspect-ratio: 1 / 1; }
  .gcs > .gc.wide:nth-child(even) .gc-img { object-position: 50% 50%; }
}
/* Six cards across on a desktop are narrow: the corner badge and the mode pill cannot both fit on the Cup card. */
@media (min-width: 1020px) { .gcs > .gc:nth-child(n+6).cup .gc-mode, .gcs:has(> .gc:nth-child(6)) .gc.cup .gc-mode { display: none; } .gcs:has(> .gc:nth-child(6)) .gc-cta .btn { padding: 0 8px; font-size: 13.5px; } }

/* iPhone zooms the whole page in when you tap a field whose text is under 16px, and leaves it zoomed. Keep every field at 16px on phones and touch screens. */
@media (max-width: 820px), (pointer: coarse) { input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; } }

/* ---------- lobby shelves: rows of small cover tiles, one row per kind of game ---------- */
.shelf { margin: 0 0 14px; }
.shelf h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 8px; font: 700 15px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.shelf h2 small { color: var(--muted); font: 500 12px/1.2 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.shelf-row { display: flex; gap: 8px; margin: 0 -16px; padding: 2px 16px 6px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shelf-row::-webkit-scrollbar { display: none; }
.gt { --a: var(--acid); position: relative; flex: 0 0 calc((100% - 32px) / 3.25); max-width: 168px; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #15151c; color: #fff; text-align: left; font: inherit; scroll-snap-align: start; box-shadow: 0 10px 22px -18px #000; transition: transform .18s ease, box-shadow .18s ease; }
.gt:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--a), 0 18px 30px -20px var(--a); }
.gt:active { transform: scale(.97); }
.gt .gc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gt:hover .gc-img { transform: scale(1.05); }
.gt-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 30px 8px 8px; background: linear-gradient(180deg, transparent, rgba(8, 8, 12, .82) 48%, rgba(8, 8, 12, .96)); pointer-events: none; }
.gt-name { font: 700 13px/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; overflow-wrap: anywhere; }
.gt-line { display: flex; align-items: baseline; gap: 5px; min-height: 16px; white-space: nowrap; overflow: hidden; color: var(--a); }
.gt-line b { font: 700 13px/1.2 var(--display); font-variant-numeric: tabular-nums; color: var(--a); }
.gt-line i { color: rgba(255, 255, 255, .6); font: 500 10.5px/1.2 Inter, system-ui, sans-serif; font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.gt-badge { position: absolute; top: 6px; left: 6px; z-index: 1; padding: 3px 7px; border-radius: 999px; background: rgba(12, 12, 17, .8); color: var(--text); font: 600 10px/1.2 Inter, system-ui, sans-serif; }
.gt-badge.ok, .gt-badge.live { background: var(--acid); color: #0c1200; }
.gt-badge.live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #0c1200; animation: blink 1s infinite; }
.gt.ready { box-shadow: 0 0 0 2px var(--acid); }
.gt.flyer { --a: var(--ice); } .gt.snake { --a: var(--acid); } .gt.orbit { --a: #ff9a3d; } .gt.lolly { --a: #ff6fa8; } .gt.hangman { --a: #5dffa0; }
.gt.blocks { --a: #7f8cff; } .gt.checkers { --a: #ff5a4d; } .gt.xo { --a: var(--gold); } .gt.chess { --a: var(--violet); } .gt.cup { --a: var(--hot); }
@media (min-width: 760px) { .shelf-row { margin: 0; padding: 4px 2px 8px; gap: 12px; flex-wrap: wrap; overflow: visible; } .gt { flex: 0 0 150px; } .gt-name { font-size: 14px; } .shelf { margin-bottom: 16px; } }
@media (min-width: 1020px) { .hm-hero { padding: 14px 2px 12px; } }
@media (prefers-reduced-motion: reduce) { .gt, .gt .gc-img { transition: none; } .gt:hover { transform: none; } }
@media (min-width: 1020px) { .shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } .shelves .shelf:last-child { grid-column: 1 / -1; } }
.stats.places { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 10px; }
.stats.places b { font-size: 15px; }

/* ---------- call-outs: open challenges on the lobby board ---------- */
.shelf.wide { grid-column: 1 / -1; }
.gt.co .gt-name { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.gt.co.mine { box-shadow: 0 0 0 2px var(--a); }
.gt.tap { --a: var(--hot); }
.gt.co-new { --a: var(--acid); display: grid; place-items: center; background: linear-gradient(160deg, rgba(200, 255, 46, .16), rgba(200, 255, 46, .03) 60%), #15151c; box-shadow: inset 0 0 0 1.5px rgba(200, 255, 46, .45); }
.gt.co-new .co-plus { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 44px; border-radius: 50%; background: var(--acid); color: #0c1200; font: 700 30px/1 var(--display); }
.gt.co-new .gt-cap { background: none; }
.gt.co-new .gt-line i { color: rgba(255, 255, 255, .7); }
.chips.co-stakes { grid-template-columns: repeat(4, 1fr); }
.sheet .stats b span { font: inherit; color: inherit; letter-spacing: 0; text-transform: none; }

/* ================= the wide lobby (desktop): chat docked left, games in the middle, live rail right ================= */
.promo { display: block; }
.promo .pr-card, .sp { display: none; }
#liveWins, #rail { display: none; }
/* tiles feel alive under a mouse */
@media (hover: hover) {
  .gt::after { content: "Play"; position: absolute; top: 50%; left: 50%; z-index: 2; padding: 7px 16px; border-radius: 999px; background: var(--a); color: #0b0b10; font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translate(-50%, -30%) scale(.9); transition: opacity .16s ease, transform .16s ease; pointer-events: none; }
  .gt:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .gt.co-new::after { content: none; }
  .gt.co:not(.mine)::after { content: "Accept"; }
  .gt.co.mine::after { content: "Open"; }
  .gt:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--a), 0 18px 34px -16px var(--a); }
  .gt:hover .gc-img { transform: scale(1.07); filter: brightness(.72); }
  .gt .gc-img { transition: transform .3s ease, filter .2s ease; }
}
.gt.co:not(.mine) { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--a) 60%, transparent); animation: copulse 2.4s ease-in-out infinite; }
@keyframes copulse { 50% { box-shadow: 0 0 0 1.5px var(--a), 0 0 22px -4px var(--a); } }
@media (prefers-reduced-motion: reduce) { .gt.co:not(.mine), .pr-call::before, .lw-row.new { animation: none !important; } }

@media (min-width: 760px) {
  .promo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 10px 0 16px; }
  .promo .hm-hero { padding: 16px 18px; border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, rgba(200, 255, 46, .16), transparent 60%), var(--surface); box-shadow: inset 0 0 0 1px rgba(200, 255, 46, .18); min-height: 138px; }
  .promo .hm-amt { font-size: 44px; }
  .promo .hm-sub { font-size: 13px; }
  .promo .pr-card, .sp.pr-card { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 138px; padding: 16px 18px; border: 0; border-radius: 18px; overflow: hidden; text-align: left; text-decoration: none; color: var(--text); cursor: pointer; font: inherit; transition: transform .18s ease, box-shadow .18s ease; }
  .pr-card:hover { transform: translateY(-3px); }
  .pr-card small, .sp small { font: 700 10.5px var(--display); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
  .pr-card b, .sp b { font: 700 22px/1.1 var(--display); overflow-wrap: anywhere; }
  .pr-card span, .sp span { font-size: 13px; color: rgba(255, 255, 255, .78); }
  .pr-call { background: linear-gradient(135deg, #6a2cff, #ff2d78 120%); box-shadow: 0 16px 34px -22px #ff2d78; }
  .pr-call.hot { background: linear-gradient(135deg, #ff2d78, #ff8a1f 120%); }
  .pr-call::before { content: ""; position: absolute; top: -40%; bottom: -40%; left: -30%; width: 34%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); transform: rotate(18deg); animation: prshine 3.6s ease-in-out infinite; }
  @keyframes prshine { 0%, 55% { left: -40%; } 100% { left: 130%; } }
  .pr-go { align-self: flex-start; margin-top: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; color: #14060f; font: 700 12px var(--display); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
  .sp.pr-card { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .sp.open { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 12px, transparent 12px 24px), var(--surface); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16); }
  .sp.open b { color: var(--muted); }
  .sp:hover { box-shadow: inset 0 0 0 1.5px var(--acid); }

  #liveWins { display: block; max-width: 1180px; margin: 0 auto 22px; padding: 0 clamp(12px, 3vw, 28px); }
  #liveWins[hidden] { display: none; }
  #liveWins h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 8px; font: 700 15px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
  #liveWins h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acid); align-self: center; animation: blink 1s infinite; }
  #liveWins h2 small { color: var(--muted); font: 500 12px/1.2 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
  .lw { border-radius: 16px; overflow: hidden; background: var(--surface); }
  .lw-row { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(90px, .8fr) minmax(0, 2.6fr) minmax(80px, auto) 38px; gap: 12px; align-items: center; width: 100%; padding: 8px 14px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .05); background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
  .lw-row:last-child { border-bottom: 0; }
  .lw-row:hover { background: rgba(255, 255, 255, .05); }
  .lw-row.new { animation: lwin .9s ease-out; }
  @keyframes lwin { from { background: rgba(200, 255, 46, .28); transform: translateY(-6px); opacity: 0; } }
  .lw-who { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lw-who .av { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--h) 55% 32%); color: #fff; font: 700 11px var(--display); font-style: normal; }
  .lw-game, .lw-at { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lw-text { color: rgba(255, 255, 255, .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lw-amt { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--acid); font: 700 13.5px var(--display); font-variant-numeric: tabular-nums; }
  .lw-at { text-align: right; }
}

@media (min-width: 1200px) {
  #talk.dock { left: 0; right: auto; top: 61px; bottom: 0; width: 300px; height: auto; z-index: 27; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; background: #0d0d13; }
  #talk.dock .tk-x { display: none; }
  #talk.dock header { padding: 10px; }
  #talk.dock .tk-b { font-size: 13.5px; }
  body.has-dock main, body.has-dock .ticker, body.has-dock #foot, body.has-dock #liveWins { margin-left: 300px; }
  body.has-dock main, body.has-dock #liveWins { max-width: none; padding-left: 22px; padding-right: 22px; }
  body.has-dock .act { max-width: none; padding-left: 22px; padding-right: 22px; }
  body.has-dock #page { left: 300px; }
  body.has-dock .shelf-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
  body.has-dock .gt { max-width: none; }
  body.has-dock .shelves { column-gap: 22px; }
  body.has-dock .shelves .shelf.wide .shelf-row { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
  body.has-dock .hm-row { display: none; }
}
@media (min-width: 1440px) {
  body.has-rail main, body.has-rail .ticker, body.has-rail #foot, body.has-rail #liveWins { margin-right: 300px; }
  body.has-rail #rail { display: block; position: fixed; right: 0; top: 61px; bottom: 0; z-index: 27; width: 300px; overflow-y: auto; padding: 14px 14px 20px; border-left: 1px solid var(--line); background: #0d0d13; scrollbar-width: none; }
  body.has-rail #rail[hidden] { display: none; }
  body.has-rail #page { right: 300px; }
  .rl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
  .rl-stats div { padding: 9px 6px; border-radius: 12px; background: var(--surface); text-align: center; }
  .rl-stats b { display: block; font: 700 19px var(--display); font-variant-numeric: tabular-nums; }
  .rl-stats div:first-child b { color: var(--acid); }
  .rl-stats span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
  .rl-box { margin-bottom: 12px; padding: 12px 8px 8px; border-radius: 16px; background: var(--surface); }
  .rl-box h3 { margin: 0 6px 6px; font: 700 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .rl-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .rl-row:hover { background: rgba(255, 255, 255, .06); }
  .rl-art { position: relative; flex: none; width: 38px; height: 38px; border-radius: 9px; overflow: hidden; }
  .rl-art .gc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .rl-rank { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--raise); font: 700 12px var(--display); }
  .rl-rank.r1 { background: var(--gold); color: #1a1200; } .rl-rank.r2 { background: #c9ced8; color: #14161a; } .rl-rank.r3 { background: #c98a55; color: #1a0e04; }
  .rl-name { flex: 1; min-width: 0; font: 600 13.5px/1.25 Inter, system-ui, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rl-name small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
  .rl-row em { display: inline-flex; align-items: center; gap: 4px; font: 700 13.5px var(--display); font-style: normal; color: var(--acid); font-variant-numeric: tabular-nums; }
  .rl-empty { margin: 4px 6px 8px; color: var(--muted); font-size: 12.5px; }
  .rl-more { display: block; width: 100%; margin-top: 4px; padding: 8px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
  .rl-more:hover { color: var(--acid); }
  .sp.rl-sp { display: flex; flex-direction: column; gap: 4px; min-height: 150px; justify-content: center; padding: 16px; border-radius: 16px; text-decoration: none; color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .sp.rl-sp.open { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 12px, transparent 12px 24px), var(--surface); }
}

/* sheets open small: everything past the Play button sits behind this */
.more-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 40px; margin: 2px 0 4px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; }
.more-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; }
.more-btn.on::after { transform: translateY(2px) rotate(-135deg); }
.more-btn:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.more { padding-top: 6px; animation: rise .25s ease-out; }
.sheet .prize { margin-top: 6px; }
