/* Built by build.mjs from public/css/*.css. Edit those files, not this one. */
/* ---- style.css ---- */
/* Orbit Casino (OXID remaster): launcher-style dark UI. Pure black, hot pink accent, soft glows, glassy panels. */
:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #070407;
  --surface: #0f0a0e;
  --surface-2: #141414;
  --surface-3: #1d1d1d;
  --field: #070407;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --line-3: rgba(255, 255, 255, .22);
  --text: #f5eef3;
  --muted: #ab9aa7;
  --dim: #6b5b67;
  --on: #0a0508;
  --accent: #ff2e93;
  --accent-hi: #ff6fb5;
  --accent-lo: #c0136a;
  --accent-glow: rgba(var(--accent-rgb), .45);
  --accent-rgb: 255, 46, 147;
  --accent-hi-rgb: 255, 111, 181;
  --grad: linear-gradient(135deg, #ff8cc6 0%, #ff2e93 50%, #a3004f 100%);
  --p1: #ff5b3a;
  --p2: #4d8dff;
  --yellow: #facc15;
  --pink: #f472b6;
  --green: #22c55e;
  --danger: #f43f5e;
  --ok: #22c55e;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, .9);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* legacy names still used by a few game styles */
  --ink: var(--line-2);
  --border: var(--line);
  --border-strong: var(--line-2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
::selection { background: var(--accent); color: var(--on-accent, #fff); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: #000; border: 1.5px solid var(--accent);
  box-shadow: inset 0 0 10px -2px var(--accent-glow), 0 6px 20px -6px var(--accent-glow);
}
.brand-mark::after { content: ""; width: 10px; height: 10px; border: 3px solid var(--accent-hi); border-radius: 50%; box-shadow: 0 0 8px var(--accent-glow); }
.brand b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hub: nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 12px; color: var(--muted);
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }

/* ---------- Hub: hero ---------- */
.hub { position: relative; overflow: hidden; isolation: isolate; }
.hub::before {
  content: ""; position: absolute; inset: -200px 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 320px at 22% 38%, rgba(var(--accent-rgb), .22), transparent 70%),
    radial-gradient(520px 300px at 78% 30%, rgba(var(--accent-hi-rgb), .10), transparent 70%);
}
.hub::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 720px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 88px 0 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(14, 14, 14,.7); font-size: 13px; color: var(--muted); margin-bottom: 22px;
}
.eyebrow b { font-weight: 600; font-size: 11px; color: var(--on-accent, #fff); background: var(--grad); border-radius: 999px; padding: 2px 8px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.grad-text { background: linear-gradient(100deg, #ffc2e0, var(--accent) 50%, #ff8cc6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--muted); font-size: 17px; max-width: 480px; margin: 20px 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.hero-meta span { font-size: 13px; color: var(--dim); }

/* mock lobby window in the hero */
.mock {
  position: relative; border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(22, 22, 22,.9), rgba(10,6,9,.95));
  box-shadow: var(--shadow-lg), 0 0 120px -40px var(--accent-glow);
  overflow: hidden; transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.mock-bar span { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.mock-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.mock-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.mock-code { display: flex; gap: 8px; }
.mock-code span {
  flex: 1; height: 54px; display: grid; place-items: center; border-radius: 10px;
  font-family: var(--mono); font-size: 24px; font-weight: 600;
  background: var(--field); border: 1px solid var(--line-2);
}
.mock-code span:nth-child(2) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2); }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.mock-row .avatar { width: 26px; height: 26px; font-size: 12px; }
.mock-row em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.mock-row em.on { color: var(--green); }
.mock-chat { display: flex; flex-direction: column; gap: 6px; font-size: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.mock-chat p { color: var(--muted); }
.mock-chat b { color: var(--accent-hi); font-weight: 600; margin-right: 6px; }

/* ---------- Hub: games ---------- */
.section { padding: 32px 0 24px; scroll-margin-top: 72px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.filters { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.filter { font-size: 13px; font-weight: 500; color: var(--muted); height: 32px; padding: 0 14px; border-radius: 8px; transition: background .15s, color .15s; }
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.game-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s;
}
.game-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(380px 220px at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-hi-rgb),.13), transparent 60%);
  opacity: 0; transition: opacity .25s;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-hi-rgb),.35); box-shadow: 0 24px 60px -28px var(--accent-glow); }
.game-card:hover::before { opacity: 1; }
.card-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.card-art svg { width: 100%; height: 100%; display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.game-card:hover .card-art svg { transform: scale(1.04); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.game-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.game-card p { color: var(--muted); font-size: 14px; }
.badge-new {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-accent, #fff);
  background: var(--grad); border-radius: 999px; padding: 2px 8px;
}
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tag { font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.card-cta { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.card-cta .arrow {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-2); transition: background .2s, transform .2s, border-color .2s;
}
.game-card:hover .card-cta .arrow { background: var(--accent); border-color: var(--accent); transform: translateX(3px); }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step .n {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px;
  font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--accent-hi);
  background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-rgb),.3);
}
.step h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14px; }

.hub-foot {
  margin-top: 64px; padding: 24px 0 40px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--dim);
}

/* ---------- Buttons ---------- */
.btn {
  height: 44px; padding: 0 18px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-weight: 600; font-size: 14px;
  transition: background .15s, border-color .15s, box-shadow .2s, transform .1s, filter .15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { background: var(--surface-3); border-color: var(--line-3); }
.btn:active { transform: scale(.98); }
.btn.primary {
  background: var(--grad); border-color: transparent; color: var(--on-accent, #fff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 24px -10px var(--accent-glow);
}
.btn.primary:hover { filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 30px -8px var(--accent-glow); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn:disabled { opacity: .45; cursor: default; filter: none; transform: none; }

/* ---------- Game page ---------- */
.game-page {
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(900px 500px at 50% -10%, rgba(var(--accent-rgb),.1), transparent 70%), var(--bg);
}
.topbar {
  flex: none; height: 60px; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--line); background: rgba(6,3,5,.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.topbar .back {
  font-size: 14px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center;
  height: 34px; padding: 0 12px 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface);
}
.topbar .back:hover { color: var(--text); border-color: var(--line-2); }
.tb-title { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.scoreboard { display: flex; align-items: center; gap: 14px; padding: 5px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.scoreboard .side { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.scoreboard .name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scoreboard .num { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--text); min-width: 1.2ch; text-align: center; }
.scoreboard .sw { width: 10px; height: 10px; border-radius: 3px; }
.scoreboard .sep { color: var(--dim); }
.net { font-family: var(--mono); font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; min-width: 90px; justify-content: flex-end; }
.net .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.net.good .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.net.mid .dot { background: var(--yellow); }
.net.bad .dot { background: var(--danger); }

.stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 16px; position: relative; }
.stage canvas {
  display: block; border-radius: 14px; border: 1px solid var(--line-2);
  background: #0a0a0f; touch-action: none;
  box-shadow: var(--shadow-lg), 0 0 100px -50px var(--accent-glow);
}
.hint { flex: none; text-align: center; padding: 0 16px 16px; font-size: 12px; color: var(--dim); }
.hint kbd {
  font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; margin: 0 2px;
}

/* ---------- Overlays (lobby + result) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 20;
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; overflow-y: auto;
  background: rgba(5, 5, 8, .7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.panel {
  position: relative; width: 100%; max-width: 420px;
  background: linear-gradient(180deg, rgba(20, 20, 20,.96), rgba(8,4,7,.98));
  border: 1px solid var(--line-2); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow-lg), 0 0 120px -50px var(--accent-glow);
  animation: rise .28s cubic-bezier(.2,.8,.2,1);
}
.panel::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-hi-rgb),.7), transparent);
}
@keyframes rise { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.panel .back { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.panel .back:hover { color: var(--text); }
.panel h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px; }
.panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.panel .full { width: 100%; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; margin: 18px 0; text-transform: uppercase; letter-spacing: .12em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.join { display: flex; gap: 8px; }
.join input {
  flex: 1; min-width: 0; height: 44px; border-radius: 10px;
  background: var(--field); border: 1px solid var(--line-2); color: var(--text);
  font-family: var(--mono); font-size: 18px; font-weight: 500; letter-spacing: .3em; text-align: center; text-transform: uppercase;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.join input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.22); }
.join input::placeholder { color: var(--dim); letter-spacing: .3em; }

.invited {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 12px; border-radius: 10px;
  background: rgba(var(--accent-rgb),.1); border: 1px solid rgba(var(--accent-rgb),.35); font-size: 14px;
}
.invited b { font-family: var(--mono); letter-spacing: .12em; color: var(--accent-hi); }
.invited-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 10px var(--accent); animation: pulse 1.2s ease-in-out infinite; flex: none; }

.wait { text-align: center; }
.wait .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.code {
  display: block; width: 100%; margin: 10px 0 12px; padding: 16px 0;
  font-family: var(--mono); font-size: 36px; font-weight: 600; letter-spacing: .3em; text-indent: .3em;
  border-radius: 12px; background: var(--field); border: 1px solid var(--line-2);
  transition: border-color .15s, box-shadow .15s;
}
.code:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.18); }
.hint-sm { font-size: 13px; margin-top: 10px; }
.wait .btn.ghost { margin-top: 16px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px;
  background: var(--field); border: 1px solid var(--line-2); color: var(--text);
  font: inherit; font-weight: 500; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.22); }

.plist-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin: 20px 0 8px; }
.plist { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; text-align: left; }
.plist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); animation: rise .2s ease; }
.plist .pname { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptag { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; }
.ptag.you { color: var(--accent-hi); border-color: rgba(var(--accent-rgb),.45); background: rgba(var(--accent-rgb),.1); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #db2777, #4d8dff); box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

.status { min-height: 22px; margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.status.error { color: var(--danger); }
.status.ok { color: var(--green); }
.status.pulse::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-hi); margin-right: 8px; vertical-align: 1px;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

.result { text-align: center; }
.result .big { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; }
.result .final { font-family: var(--mono); color: var(--muted); margin: 6px 0 24px; font-size: 18px; }
.result .row { display: flex; gap: 8px; }
.result .row > * { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: rgba(22, 22, 22,.95); border: 1px solid var(--line-2); border-radius: 12px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 10px 16px; font-size: 13px; font-weight: 500; z-index: 30; animation: rise .2s ease;
  box-shadow: var(--shadow); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Chat ---------- */
.dock { position: fixed; right: 16px; bottom: 16px; z-index: 25; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.dock-row { display: flex; gap: 8px; align-items: center; }
.dock-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 12px; border-radius: 999px;
  background: rgba(22, 22, 22,.92); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; color: var(--muted); box-shadow: var(--shadow); transition: border-color .15s, color .15s;
}
.dock-btn:hover { color: var(--text); border-color: var(--line-3); }
.dock-btn svg { width: 18px; height: 18px; }
.react-btn { font-size: 18px; padding: 0; }
.dock-pop {
  background: rgba(14, 14, 14,.97); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: rise .18s ease;
}
.react-pop { display: flex; gap: 2px; padding: 6px; }
.react-pop button { font-size: 24px; width: 44px; height: 44px; border-radius: 10px; transition: transform .1s, background .1s; }
.react-pop button:hover { background: var(--surface-3); transform: scale(1.15); }
.switch-pop { width: min(320px, calc(100vw - 32px)); max-height: min(460px, calc(100vh - 120px)); display: flex; flex-direction: column; overflow: hidden; }
.switch-list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.switch-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; }
.switch-item b { font-weight: 600; font-size: 14px; }
.switch-item span { font-size: 12px; color: var(--muted); }
.switch-item:not(:disabled):hover { background: var(--surface-2); border-color: var(--line-2); }
.switch-item:disabled { opacity: .35; cursor: default; }
.react-float {
  position: fixed; bottom: 90px; z-index: 26; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  animation: floatUp 2.6s cubic-bezier(.2,.7,.3,1) forwards;
}
.react-float span { font-size: 44px; line-height: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.react-float small { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: rgba(14, 14, 14,.9); border: 1px solid var(--line-2); }
@keyframes floatUp { 0% { transform: translateY(20px) scale(.5); opacity: 0; } 12% { transform: translateY(0) scale(1.1); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-220px) scale(1); opacity: 0; } }
.conn-banner {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 40;
  display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: rgba(250,204,21,.12); border: 1px solid rgba(250,204,21,.45); color: #fde68a;
  font-size: 13px; font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow); max-width: calc(100vw - 32px); animation: rise .2s ease;
}
.conn-banner::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: pulse 1s ease-in-out infinite; flex: none; }
.spectating .topbar::after {
  content: "Spectating"; position: absolute; right: 120px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-hi);
  padding: 2px 10px; border-radius: 999px; background: rgba(var(--accent-rgb),.14); border: 1px solid rgba(var(--accent-rgb),.4);
}
.spectating .topbar { position: relative; }
.profile { display: flex; gap: 8px; }
.profile .name { flex: 1; min-width: 0; }
.av-btn {
  flex: none; width: 44px; height: 44px; border-radius: 12px; font-size: 22px; display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25); transition: transform .1s;
}
.av-btn:hover { transform: scale(1.05); }
.av-picker { margin: -4px 0 14px; padding: 10px; border-radius: 12px; background: var(--field); border: 1px solid var(--line-2); animation: rise .15s ease; }
.av-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.av-grid button { font-size: 18px; aspect-ratio: 1; border-radius: 8px; }
.av-grid button:hover { background: var(--surface-3); }
.av-grid button.on { background: rgba(var(--accent-rgb),.25); box-shadow: inset 0 0 0 1px var(--accent); }
.av-colors { display: flex; gap: 6px; margin-top: 8px; justify-content: center; }
.av-colors button { width: 22px; height: 22px; border-radius: 50%; }
.av-colors button.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.avatar.emoji { font-size: 15px; }
.avatar.xs { width: 20px; height: 20px; font-size: 11px; display: inline-grid; vertical-align: -5px; margin-right: 6px; }
.lobby-extra:empty { display: none; }
.lobby-extra { text-align: left; margin-bottom: 14px; }
.wait-msg { font-size: 13px; margin-top: 14px; }
.chat-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px;
  background: rgba(22, 22, 22,.92); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
  transition: border-color .15s, background .15s;
}
.chat-toggle:hover { border-color: var(--line-3); }
.chat-toggle[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.chat-toggle svg { width: 17px; height: 17px; }
.chat-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
  animation: pop .3s cubic-bezier(.2,1.6,.4,1);
}
.chat-peek {
  max-width: min(300px, calc(100vw - 32px)); padding: 9px 14px; cursor: pointer; border-radius: 12px 12px 4px 12px;
  background: rgba(22, 22, 22,.95); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  animation: rise .2s ease;
}
.chat-panel {
  width: min(350px, calc(100vw - 32px)); height: min(420px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(14, 14, 14,.97); border: 1px solid var(--line-2); border-radius: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  animation: rise .2s ease;
}
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.chat-close { font-size: 22px; line-height: 1; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); }
.chat-close:hover { background: var(--surface-2); color: var(--text); }
.chat-log { list-style: none; flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; overscroll-behavior: contain; }
.chat-log li { line-height: 1.4; overflow-wrap: anywhere; }
.chat-log li b { font-weight: 600; margin-right: 6px; color: var(--accent-hi); }
.chat-log li .avatar.xs { margin-right: 6px; }
.chat-log li.me b { color: var(--p2); }
.chat-log li.sys { font-size: 12px; color: var(--dim); text-align: center; }
.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }
.chat-quick button { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); }
.chat-quick button:hover { color: var(--text); border-color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px;
  background: var(--field); border: 1px solid var(--line-2); color: var(--text); font: inherit; outline: none;
}
.chat-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2); }
.chat-form .btn { height: 40px; padding: 0 14px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 40px; gap: 40px; }
  .mock { transform: none; max-width: 460px; }
  .steps3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { overflow-x: auto; scrollbar-width: none; gap: 16px; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .topbar { padding: 0 10px; height: 54px; gap: 8px; }
  .topbar .back span, .scoreboard .name { display: none; }
  .scoreboard { padding: 4px 10px; gap: 10px; }
  .net { min-width: 0; }
  .stage { padding: 8px; }
  .dock { right: 10px; bottom: 10px; }
  .chat-toggle span, .switch-btn span { display: none; }
  .chat-toggle { padding: 0 13px; }
  .conn-banner { top: 62px; }
  .spectating .topbar::after { display: none; }
  .status-pill { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Hub: join by code, stats, features ---------- */
.code-join { display: flex; align-items: center; gap: 8px; margin-top: 22px; max-width: 420px; }
.code-join label { font-size: 14px; color: var(--muted); white-space: nowrap; }
.code-join input {
  flex: 1; min-width: 0; height: 44px; border-radius: 10px; padding: 0 12px;
  background: var(--field); border: 1px solid var(--line-2); color: var(--text);
  font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; outline: none;
}
.code-join input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.22); }
.code-join input::placeholder { color: var(--dim); }
.code-err { min-height: 20px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.card-record { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.stat { padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.stat b { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.stat span { font-size: 13px; color: var(--muted); }
.stat-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.stat-game { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.stat-game:hover { border-color: var(--line-3); }
.stat-game span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.stat-game i { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p); background: var(--grad); }
.features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.features span { font-size: 13px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 12px; }
  .stat b { font-size: 22px; }
}
.pub-toggle { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); text-align: left; cursor: pointer; }
.pub-toggle input { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.pub-toggle a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Rooms + leaderboard pages ---------- */
.nav-links a[aria-current="page"] { color: var(--text); }
.page { padding-top: 48px; padding-bottom: 60px; min-height: 70vh; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; letter-spacing: -0.04em; }
.page-head p { max-width: 560px; margin-top: 6px; }
.page-head select {
  height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font: inherit;
}
.room-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.room-card { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; animation: rise .2s ease; }
.room-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.room-top b { font-size: 16px; }
.room-status { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.room-status.open { color: #86efac; border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.1); }
.room-status.watch { color: var(--accent-hi); border-color: rgba(var(--accent-rgb),.5); background: rgba(var(--accent-rgb),.1); }
.room-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.room-card .btn.disabled { opacity: .4; pointer-events: none; }
.empty { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-ico { font-size: 48px; }
.empty h2 { font-size: 22px; }
.refresh { font-size: 12px; margin-top: 18px; }
.lb { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.lb-row { display: grid; grid-template-columns: 48px 1fr 56px 56px 56px 72px; gap: 8px; align-items: center; padding: 10px 16px; font-size: 14px; }
.lb-row + .lb-row, #rows .lb-row { border-top: 1px solid var(--line); }
.lb-row span:nth-child(n+3) { font-family: var(--mono); text-align: right; color: var(--muted); }
.lb-row span:nth-child(2) { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-head { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); background: var(--bg-2); }
.lb-head span { font-weight: 500 !important; color: var(--dim) !important; }
.lb-row.top span:nth-child(1) { font-size: 18px; }
.lb-row.t0 { background: rgba(250,204,21,.07); }
.lb-row.me { box-shadow: inset 3px 0 0 var(--accent); }
@media (max-width: 520px) { .lb-row { grid-template-columns: 34px 1fr 40px 40px 0 56px; } .lb-row span:nth-child(5) { display: none; } }
.open-rooms a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #86efac; }
.open-rooms i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.4s ease-in-out infinite; }

/* Sam corner: a tiny dot in the bottom-left of the home page. */
.sam-corner { position: fixed; left: 10px; bottom: 10px; z-index: 50; display: flex; align-items: center; gap: 8px; }
.sam-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--line-3); cursor: pointer; opacity: .6; transition: opacity .2s, transform .2s; }
.sam-dot:hover, .sam-dot:focus-visible { opacity: 1; transform: scale(1.4); background: var(--accent); }
.sam-dot::before { content: ""; position: absolute; inset: -6px; } /* easier to tap */
.sam-dot { position: relative; }
.sam-msg { font: 500 12px/1 var(--mono); color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 10px; opacity: 0; transform: translateX(-4px); pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; }
.sam-msg.on { opacity: 1; transform: none; }

/* ---------- Touch controls ---------- */
body { touch-action: manipulation; }
.touch-ui { display: none; }
body.touching .touch-ui { display: block; }
.touch-ui .tz { position: fixed; bottom: 24px; z-index: 15; display: flex; align-items: flex-end; gap: 14px; }
.touch-ui .tz-left { left: 24px; }
.touch-ui .tz-right { right: 24px; bottom: 88px; flex-direction: row-reverse; }
.t-btn { -webkit-tap-highlight-color: transparent; touch-action: none; user-select: none; border: 1px solid var(--line-3); background: rgba(22, 22, 22,.72); backdrop-filter: blur(6px); color: var(--text); border-radius: 18px; }
.t-btn.on { background: var(--accent); border-color: var(--accent); }
.t-action { width: 76px; height: 76px; border-radius: 50%; font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.t-dpad { display: grid; grid-template: repeat(3, 58px) / repeat(3, 58px); gap: 4px; }
.t-dpad .t-btn { position: relative; }
.t-dpad .t-btn::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border: 9px solid transparent; }
.t-up { grid-area: 1 / 2; } .t-up::after { border-bottom-color: var(--text) !important; border-top-width: 0 !important; }
.t-down { grid-area: 3 / 2; } .t-down::after { border-top-color: var(--text) !important; border-bottom-width: 0 !important; }
.t-left { grid-area: 2 / 1; } .t-left::after { border-right-color: var(--text) !important; border-left-width: 0 !important; }
.t-right { grid-area: 2 / 3; } .t-right::after { border-left-color: var(--text) !important; border-right-width: 0 !important; }
.t-stick { position: relative; width: 132px; height: 132px; border-radius: 50%; border: 1px solid var(--line-3); background: rgba(22, 22, 22,.5); backdrop-filter: blur(6px); touch-action: none; display: grid; place-items: center; }
.t-stick i { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.22); border: 1px solid var(--line-3); pointer-events: none; }
.t-stick.on i { background: var(--accent); transition: none; }
.t-stick span { position: absolute; bottom: -20px; font: 600 10px/1 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Themes: accent presets (html[data-accent]) and light mode (html[data-theme=light]) ---------- */
:root[data-accent="blue"] { --accent: #3b82f6; --accent-hi: #60a5fa; --accent-lo: #1d4ed8; --accent-rgb: 59, 130, 246; --accent-hi-rgb: 96, 165, 250; --grad: linear-gradient(135deg, #93c5fd 0%, #2563eb 55%, #1e3a8a 100%); }
:root[data-accent="green"] { --accent: #22c55e; --accent-hi: #4ade80; --accent-lo: #15803d; --accent-rgb: 34, 197, 94; --accent-hi-rgb: 74, 222, 128; --grad: linear-gradient(135deg, #86efac 0%, #16a34a 55%, #14532d 100%); }
:root[data-accent="violet"] { --accent: #8b5cf6; --accent-hi: #a78bfa; --accent-lo: #6d28d9; --accent-rgb: 139, 92, 246; --accent-hi-rgb: 167, 139, 250; --grad: linear-gradient(135deg, #a78bfa 0%, #7c3aed 55%, #5b21b6 100%); }
:root[data-accent="pink"] { --accent: #ec4899; --accent-hi: #f472b6; --accent-lo: #be185d; --accent-rgb: 236, 72, 153; --accent-hi-rgb: 244, 114, 182; --grad: linear-gradient(135deg, #f9a8d4 0%, #db2777 55%, #831843 100%); }
:root[data-accent="orange"] { --accent: #f97316; --accent-hi: #fb923c; --accent-lo: #c2410c; --accent-rgb: 249, 115, 22; --accent-hi-rgb: 251, 146, 60; --grad: linear-gradient(135deg, #fdba74 0%, #ea580c 55%, #7c2d12 100%); }
:root[data-accent="red"] { --accent: #ef4444; --accent-hi: #f87171; --accent-lo: #b91c1c; --accent-rgb: 239, 68, 68; --accent-hi-rgb: 248, 113, 113; --grad: linear-gradient(135deg, #fca5a5 0%, #dc2626 55%, #7f1d1d 100%); }
:root[data-accent="teal"] { --accent: #14b8a6; --accent-hi: #2dd4bf; --accent-lo: #0f766e; --accent-rgb: 20, 184, 166; --accent-hi-rgb: 45, 212, 191; --grad: linear-gradient(135deg, #99f6e4 0%, #0d9488 55%, #134e4a 100%); }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff5fa; --bg-2: #fce7f2; --surface: #ffffff; --surface-2: #fdf0f7; --surface-3: #f9e1ee; --field: #ffffff;
  --line: rgba(20, 20, 20, .08); --line-2: rgba(20, 20, 20, .14); --line-3: rgba(20, 20, 20, .24);
  --text: #181818; --muted: #55556a; --dim: #8a8a9c; --on: #ffffff;
  --shadow: 0 10px 30px -14px rgba(27, 27, 27, .25); --shadow-lg: 0 30px 80px -30px rgba(27, 27, 27, .35);
}
:root[data-theme="light"] .nav { background: rgba(255, 245, 250, .82); }
:root[data-theme="light"] .topbar { background: rgba(255, 255, 255, .75); }
:root[data-theme="light"] .eyebrow { background: rgba(255, 255, 255, .8); }
:root[data-theme="light"] .mock { background: linear-gradient(180deg, #ffffff, #f3f3f7); }
:root[data-theme="light"] .overlay { background: rgba(230, 230, 240, .7); }
:root[data-theme="light"] .panel { background: linear-gradient(180deg, #ffffff, #f7f7fb); }
:root[data-theme="light"] .grad-text { background: linear-gradient(100deg, var(--accent-lo), var(--accent) 50%, var(--accent-lo)); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] .game-page { background: radial-gradient(900px 500px at 50% -10%, rgba(var(--accent-rgb), .1), transparent 70%), var(--bg); }
:root[data-theme="light"] .t-btn, :root[data-theme="light"] .t-stick { background: rgba(255, 255, 255, .8); }
/* Konami code party mode */
:root.party body { animation: party-hue 4s linear infinite; }
@keyframes party-hue { to { filter: hue-rotate(360deg); } }

/* ---------- Settings panel ---------- */
.settings-overlay { z-index: 60; }
.panel.settings { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; text-align: left; }
.set-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.set-top h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.settings section { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.settings h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.set-profile { display: flex; align-items: center; gap: 12px; }
.avatar.lg { width: 48px; height: 48px; font-size: 24px; flex: none; }
.set-name { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--line-2); color: var(--text); font: 600 16px var(--sans); outline: none; }
.set-name:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.set-emojis { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.set-emojis button { aspect-ratio: 1; border-radius: 8px; font-size: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.set-emojis button.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .18); }
.set-colors, .set-accents { display: flex; gap: 8px; flex-wrap: wrap; }
.set-colors button, .set-accents button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); }
.set-colors button.on, .set-accents button.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.set-note { font-size: 12px; color: var(--dim); }
.settings .seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; }
.settings .seg button { padding: 6px 16px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.settings .seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.set-row input[type=range] { width: 180px; accent-color: var(--accent); }
.set-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
.dock-btn.gear svg { width: 18px; height: 18px; }

/* ---------- Achievements ---------- */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); opacity: .55; filter: grayscale(1); }
.ach.got { opacity: 1; filter: none; border-color: rgba(var(--accent-rgb), .45); background: linear-gradient(135deg, rgba(var(--accent-rgb), .12), var(--surface)); }
.ach-i { font-size: 26px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); flex: none; }
.ach b { display: block; font-size: 14px; font-weight: 600; }
.ach small { font-size: 12px; color: var(--muted); }

/* ---------- Daily Word ---------- */
.dw { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px 12px 24px; }
.dw-num { font-family: var(--mono); color: var(--muted); font-weight: 500; margin-left: 6px; }
.dw-grid { display: grid; gap: 6px; }
.dw-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.dw-row.shake { animation: dw-shake .35s; }
.dw-tile { width: clamp(46px, 11vw, 60px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; border: 2px solid var(--line-2); font: 800 clamp(22px, 5vw, 30px)/1 var(--sans); text-transform: uppercase; }
.dw-tile.typed { border-color: var(--line-3); animation: pop .12s; }
.dw-tile.g { background: #16a34a; border-color: #16a34a; color: #fff; }
.dw-tile.y { background: #ca8a04; border-color: #ca8a04; color: #fff; }
.dw-tile.x { background: var(--surface-3); border-color: var(--surface-3); color: var(--muted); }
.dw-tile.flip { animation: dw-flip .5s ease both; }
@keyframes dw-flip { 0% { transform: rotateX(90deg); } 100% { transform: none; } }
@keyframes dw-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.dw-keys { display: flex; flex-direction: column; gap: 6px; width: min(520px, 100%); margin-top: auto; }
.dw-krow { display: flex; gap: 5px; justify-content: center; }
.dw-key, .dw-krow button { flex: 1; max-width: 46px; height: 54px; border-radius: 8px; background: var(--surface-3); color: var(--text); font: 700 15px var(--sans); touch-action: manipulation; }
.dw-key.wide { max-width: 72px; flex: 1.5; font-size: 12px; }
.dw-key.g { background: #16a34a; color: #fff; } .dw-key.y { background: #ca8a04; color: #fff; } .dw-key.x { background: var(--surface); color: var(--dim); }
.dw-done { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.dw-done strong { font-size: 24px; font-weight: 800; }
.dw-done span { color: var(--muted); font-size: 14px; }
.dw-done small { font: 500 12px var(--mono); color: var(--dim); }
.dw-stats { display: flex; gap: 18px; margin: 6px 0; }
.dw-stats div { display: flex; flex-direction: column; align-items: center; }
.dw-stats b { font: 700 22px var(--mono); }
.dw-stats span { font-size: 11px; }
:root[data-theme="light"] .toast, :root[data-theme="light"] .dock-btn, :root[data-theme="light"] .chat-toggle, :root[data-theme="light"] .chat-peek { background: rgba(255, 255, 255, .94); }
:root[data-theme="light"] .dock-pop, :root[data-theme="light"] .chat-panel { background: rgba(255, 255, 255, .98); }

/* ---------- Friends ---------- */
.fr-me { display: flex; align-items: center; gap: 10px; }
.fr-code { font: 700 26px var(--mono); letter-spacing: .18em; padding: 6px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); }
.fr-add { display: flex; gap: 8px; }
.fr-add input { text-transform: uppercase; font-family: var(--mono); letter-spacing: .12em; }
.fr-list { display: flex; flex-direction: column; gap: 6px; }
.fr-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.fr-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; }
.fr-row.on .fr-dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.fr-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fr-who b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-who small { font-size: 12px; color: var(--muted); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12px; }
.invite-card { position: fixed; top: 76px; right: 16px; z-index: 70; width: min(320px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid rgba(var(--accent-rgb), .5); box-shadow: var(--shadow-lg), 0 0 40px -12px var(--accent-glow); display: flex; flex-direction: column; gap: 4px; animation: rise .25s ease; }
.invite-card b { font-size: 15px; }
.invite-card span { font-size: 13px; color: var(--muted); }
.invite-card .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

/* Faster first paint: skip rendering off-screen game cards until they scroll into view. */
.cards .game-card { content-visibility: auto; contain-intrinsic-size: auto 400px; }

/* ---------- Suggestions + changelog ---------- */
.sg-sort { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.sg-sort button { padding: 6px 16px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.sg-sort button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.sg-form { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); margin-bottom: 18px; }
.sg-form textarea, .sg-form input { width: 100%; border-radius: 10px; background: var(--field); border: 1px solid var(--line-2); color: var(--text); font: 500 15px var(--sans); padding: 10px 12px; outline: none; resize: vertical; }
.sg-form textarea:focus, .sg-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.sg-row { display: flex; gap: 10px; align-items: center; }
.sg-row input { flex: 1; max-width: 240px; }
.sg-count { margin-left: auto; font: 500 12px var(--mono); color: var(--dim); }
.sg-err { color: var(--danger); font-size: 13px; min-height: 18px; }
.sg-total { margin-bottom: 10px; font-size: 13px; }
.sg-list { display: flex; flex-direction: column; gap: 8px; }
.sg-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.sg-vote { display: flex; flex-direction: column; align-items: center; min-width: 48px; padding: 6px 0; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); }
.sg-vote span { font-size: 12px; } .sg-vote b { font: 700 16px var(--mono); color: var(--text); }
.sg-vote.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .16); color: var(--accent-hi); }
.sg-body p { font-size: 15px; line-height: 1.45; word-break: break-word; }
.sg-body small { font-size: 12px; color: var(--dim); }
.cl-list { display: flex; flex-direction: column; gap: 14px; }
.cl-item { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cl-item:first-child { border-color: rgba(var(--accent-rgb), .45); }
.cl-meta { display: flex; flex-direction: column; gap: 4px; }
.cl-v { font: 700 15px var(--mono); color: var(--accent-hi); }
.cl-meta time { font-size: 12px; color: var(--dim); }
.cl-item h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.cl-item ul { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 14px; }
.nav-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); margin-left: 5px; vertical-align: 2px; }
@media (max-width: 640px) { .cl-item { grid-template-columns: 1fr; gap: 8px; } .sg-row { flex-wrap: wrap; } .sg-row input { max-width: none; } }

.nav-links a { white-space: nowrap; }
.nav-icon { width: 38px; padding: 0; display: inline-grid; place-items: center; }
.nav-icon svg { width: 18px; height: 18px; }
@media (max-width: 1340px) { .nav .status-pill { display: none; } .nav-links { gap: 18px; } }
@media (max-width: 1100px) { .nav-in { gap: 18px; } .nav-links { gap: 14px; font-size: 13px; } }
.nav .btn { white-space: nowrap; }
@media (max-width: 480px) { .nav .btn.primary { padding: 0 12px; } .nav-right { gap: 6px; } }
.bot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bot-row .btn { justify-content: center; }

/* ---------- Daily hub tabs, sudoku, chess puzzle ---------- */
.dtabs { flex: none; display: flex; justify-content: center; gap: 6px; padding: 10px 12px 0; }
.dtabs a { padding: 7px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid transparent; }
.dtabs a[aria-current="page"] { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }
.sd-top { display: flex; justify-content: space-between; width: min(470px, 100%); font-size: 14px; color: var(--muted); }
.sd-time { font-family: var(--mono); color: var(--text); }
.sd-grid { display: grid; grid-template-columns: repeat(9, 1fr); width: min(470px, 94vw); aspect-ratio: 1; border: 3px solid var(--text); border-radius: 10px; overflow: hidden; background: var(--surface); }
.sd-cell { border: 1px solid var(--line-2); font: 600 clamp(18px, 4.6vw, 26px) var(--sans); color: var(--accent-hi); background: var(--surface); display: grid; place-items: center; padding: 0; }
.sd-cell.given { color: var(--text); font-weight: 800; }
.sd-cell.br { border-right: 2px solid var(--text); } .sd-cell.bb { border-bottom: 2px solid var(--text); }
.sd-cell.peer { background: var(--surface-2); }
.sd-cell.same { background: rgba(var(--accent-rgb), .22); }
.sd-cell.sel { background: rgba(var(--accent-rgb), .45); color: #fff; }
.sd-cell.wrong { color: var(--danger) !important; }
.sd-pad { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; width: min(470px, 94vw); }
.sd-pad button { height: 50px; border-radius: 10px; background: var(--surface-3); color: var(--text); font: 700 20px var(--sans); touch-action: manipulation; }
.sd-pad button.full { opacity: .3; }
.sd-streak { font-size: 13px; color: var(--dim); }
.dc-who { font-size: 18px; font-weight: 700; }
.dc-tries { font-size: 14px; color: var(--muted); min-height: 20px; }
.sq-c.bad { box-shadow: inset 0 0 0 4px var(--danger); }
@media (max-width: 480px) { .sd-pad { grid-template-columns: repeat(5, 1fr); } }
.avatar { flex: none; }

/* ---------- Levels + cosmetics ---------- */
.avatar { position: relative; }
.av-lvl { position: absolute; right: -5px; bottom: -5px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-3); color: var(--text); font: 800 9px/14px var(--mono); font-style: normal; text-align: center; }
.avatar.fr-1 { box-shadow: 0 0 0 2px #b45309; }
.avatar.fr-2 { box-shadow: 0 0 0 2px #d4d4d8, 0 0 8px rgba(255,255,255,.35); }
.avatar.fr-3 { box-shadow: 0 0 0 2px #facc15, 0 0 12px rgba(250,204,21,.55); }
.avatar.fr-4 { box-shadow: 0 0 0 2px #22d3ee, 0 0 14px #22d3ee; }
.avatar.fr-5 { box-shadow: 0 0 0 2px transparent; background-clip: padding-box; outline: 2px solid transparent; animation: fr-rainbow 3s linear infinite; }
@keyframes fr-rainbow { 0% { box-shadow: 0 0 0 2px #ef4444, 0 0 12px #ef4444; } 33% { box-shadow: 0 0 0 2px #22c55e, 0 0 12px #22c55e; } 66% { box-shadow: 0 0 0 2px #3b82f6, 0 0 12px #3b82f6; } 100% { box-shadow: 0 0 0 2px #ef4444, 0 0 12px #ef4444; } }
.avatar.fr-6 { box-shadow: 0 0 0 2px #ec4899, 0 0 0 4px #f9a8d4; }
.avatar.fr-7 { box-shadow: 0 0 0 2px #0ea5e9, 0 0 0 4px #fde047; }
.avatar.sm { width: 24px; height: 24px; font-size: 13px; display: inline-grid; place-items: center; }
.set-level { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.set-level small { color: var(--dim); font-family: var(--mono); }
.lvl-track { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.lvl-track i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.set-frames { display: flex; flex-wrap: wrap; gap: 6px; }
.set-frames button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--text); }
.set-frames button.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .16); }
.locked { opacity: .35; filter: grayscale(1); cursor: not-allowed !important; }
.lvl-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 700 12px var(--mono); }
.lvl-pill i { width: 34px; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--p), var(--surface-3) var(--p)); }
.lvl-card { min-width: 240px; display: grid; gap: 6px; font-size: 13px; }
.lvl-card small { color: var(--dim); font-family: var(--mono); }
.wk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.wk { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.wk > div { flex: 1; display: grid; gap: 6px; }
.wk b { font-size: 14px; } .wk small { font: 500 12px var(--mono); color: var(--dim); }
.wk.done { border-color: rgba(34,197,94,.5); } .wk.done .lvl-track i { background: var(--green); }
.wk-i { font-size: 24px; }
@media (max-width: 640px) { .lvl-pill i { display: none; } }

/* ---------- Seasonal themes ---------- */
:root[data-season="halloween"]:not([data-accent]) { --accent: #f97316; --accent-hi: #fb923c; --accent-lo: #c2410c; --accent-rgb: 249, 115, 22; --accent-hi-rgb: 251, 146, 60; --grad: linear-gradient(135deg, #fdba74 0%, #ea580c 55%, #7c2d12 100%); }
:root[data-season="winter"]:not([data-accent]) { --accent: #38bdf8; --accent-hi: #7dd3fc; --accent-lo: #0369a1; --accent-rgb: 56, 189, 248; --accent-hi-rgb: 125, 211, 252; --grad: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 55%, #0c4a6e 100%); }
.season-layer { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.season-layer i { position: absolute; top: -40px; font-style: normal; opacity: .55; animation: season-fall linear infinite; }
.season-layer.halloween i { animation-name: season-float; top: auto; bottom: -40px; opacity: .4; }
@keyframes season-fall { to { transform: translateY(110vh) rotate(360deg); } }
@keyframes season-float { 0% { transform: translate(0, 0); } 50% { transform: translate(30px, -55vh); } 100% { transform: translate(-20px, -115vh); } }
@media (prefers-reduced-motion: reduce) { .season-layer { display: none; } }
.pw-set { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; font-size: 13px; color: var(--muted); }
.pw-set input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border-radius: 9px; background: var(--field); border: 1px solid var(--line-2); color: var(--text); font: 500 14px var(--sans); outline: none; }
.pw-ask { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .08); font-size: 13px; }
.react-pop:not([hidden]) { display: grid; }
.react-pop { grid-template-columns: repeat(8, auto); max-width: min(420px, calc(100vw - 32px)); }
.react-pop button.txt { grid-column: span 2; font: 700 13px var(--sans); width: auto; padding: 0 10px; color: var(--text); }
.react-float.txt span { font: 800 22px var(--sans); color: #fff; padding: 6px 12px; border-radius: 12px; background: rgba(var(--accent-rgb), .85); }
.plist li.has-prof { cursor: pointer; } .plist li.has-prof:hover { background: var(--surface-2); }
.prof-pop { z-index: 70; }
.panel.prof { width: min(380px, 100%); text-align: center; }
.prof-top { display: flex; justify-content: center; margin-bottom: 10px; }
.avatar.xl { width: 84px; height: 84px; font-size: 44px; }
.avatar.xl .av-lvl { min-width: 26px; height: 26px; font-size: 12px; line-height: 24px; }
.prof-lvl { color: var(--muted); font-size: 13px; margin: 2px 0 14px; }
.prof-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.prof-stats div { padding: 10px 6px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.prof-stats b { font: 700 16px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .prof-stats span { font-size: 11px; color: var(--dim); }
.nf { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 60px; }
.nf h1 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.03em; }
.nf canvas { width: min(900px, 100%); height: auto; border-radius: 16px; border: 1px solid var(--line-2); touch-action: manipulation; cursor: pointer; }
.nf-score { font: 700 16px var(--mono); }
.nf .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Boss key cover ---------- */
.boss-cover { position: fixed; inset: 0; z-index: 9999; background: #f1f3f4; overflow: auto; color: #202124; font: 15px/1.6 Arial, Helvetica, sans-serif; }
.boss-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 8px 16px 4px; background: #f9fbfd; }
.boss-doc { width: 26px; height: 34px; border-radius: 3px; background: #4285f4; position: relative; flex-shrink: 0; }
.boss-doc::after { content: ""; position: absolute; left: 6px; right: 6px; top: 12px; height: 12px; background: repeating-linear-gradient(#fff 0 2px, transparent 2px 5px); }
.boss-bar > div { flex: 1; min-width: 0; }
.boss-name { font-size: 18px; color: #1f1f1f; }
.boss-menu { display: flex; gap: 2px; font-size: 14px; color: #444746; }
.boss-menu span { padding: 2px 7px; border-radius: 4px; }
.boss-saved { font-size: 12px; color: #5f6368; }
.boss-share { padding: 8px 20px; border-radius: 18px; background: #c2e7ff; color: #001d35; font-size: 14px; font-weight: 500; }
.boss-tools { position: sticky; top: 54px; z-index: 1; display: flex; align-items: center; gap: 10px; margin: 2px 12px 0; padding: 5px 14px; border-radius: 22px; background: #edf2fa; font-size: 13px; color: #444746; }
.boss-tools i { width: 1px; height: 18px; background: #c7c7c7; }
.boss-page { max-width: 816px; min-height: 100%; margin: 24px auto; padding: 72px 90px; background: #fff; box-shadow: 0 1px 3px rgba(60,64,67,.3); }
.boss-cover .boss-page h1, .boss-cover .boss-page h2 { color: #1f1f1f !important; background: none !important; -webkit-text-fill-color: #1f1f1f !important; text-shadow: none !important; letter-spacing: 0 !important; text-transform: none !important; }
.boss-page h1 { font: 400 26px Arial, sans-serif; margin-bottom: 4px; }
.boss-page h2 { font: 700 17px Arial, sans-serif; margin: 22px 0 6px; }
.boss-page ul { padding-left: 22px; } .boss-page li { margin: 4px 0; }
.boss-meta { color: #5f6368; font-size: 13px; margin-bottom: 18px; }

/* ---------- Low-data mode ---------- */
.lowfx *, .lowfx *::before, .lowfx *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.lowfx .season-layer, .lowfx .hub::before, .lowfx .hub::after { display: none !important; }
.lowfx .btn.primary, .lowfx .game-card, .lowfx .panel { box-shadow: none !important; }

/* ---------- Crate / pass frames ---------- */
.avatar.fr-8 { box-shadow: 0 0 0 2px #fbcfe8, 0 0 0 4px #ec4899, 0 0 12px rgba(236,72,153,.6); }
.avatar.fr-9 { box-shadow: 0 0 0 2px #e0f2fe, 0 0 0 4px #7dd3fc, 0 0 16px #bae6fd; }
.avatar.fr-10 { animation: fr-fire 1.2s ease-in-out infinite alternate; }
@keyframes fr-fire { from { box-shadow: 0 0 0 2px #f97316, 0 0 10px #ef4444; } to { box-shadow: 0 0 0 2px #facc15, 0 0 18px #f97316; } }
.avatar.fr-11 { box-shadow: 0 0 0 2px #6366f1, 0 0 0 4px #2c2c2c, 0 0 16px #a855f7; }
.avatar.fr-12 { box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px #000, 0 0 0 5px var(--accent), 0 0 18px rgba(var(--accent-rgb), .7); }

/* ---------- Titles ---------- */
.plist .pname .ptitle { display: block; font-size: 11px; font-weight: 600; color: var(--accent-hi); letter-spacing: .02em; line-height: 1.2; }
.prof-title { color: var(--accent-hi); font-weight: 600; font-size: 13px; margin-top: 2px; }
.prof-title:empty { display: none; }
.set-title { width: 100%; height: 40px; border-radius: 10px; padding: 0 12px; background: var(--field); color: var(--text); border: 1px solid var(--line-2); font: inherit; }
.set-custom { width: 44px; height: 30px; border: 0; background: none; padding: 0; cursor: pointer; }
.set-row.on .set-custom { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
.settings .seg.set-bg { flex-wrap: wrap; }

/* ---------- Backgrounds (Settings → Look) ---------- */
:root[data-bg="glow"] { --bg-img: radial-gradient(1100px 620px at 50% -12%, rgba(var(--accent-rgb), .22), transparent 70%), radial-gradient(800px 500px at 100% 110%, rgba(var(--accent-rgb), .12), transparent 70%); }
:root[data-bg="grid"] { --bg-img: linear-gradient(rgba(var(--accent-rgb), .07) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--accent-rgb), .07) 1px, transparent 1px); --bg-size: 40px 40px; }
:root[data-bg="hearts"] { --bg-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 38s-10-6.5-10-13a5.5 5.5 0 0 1 10-3 5.5 5.5 0 0 1 10 3c0 6.5-10 13-10 13z' fill='%23ff2e93' fill-opacity='.09'/%3E%3C/svg%3E"); --bg-size: 56px 56px; }
:root[data-bg="stars"] { --bg-img: radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,.4), transparent), radial-gradient(1.5px 1.5px at 45% 85%, rgba(var(--accent-hi-rgb),.6), transparent), radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,.45), transparent); --bg-size: 180px 180px; }
:root[data-bg] body, :root[data-bg] .game-page { background: var(--bg-img), var(--bg); background-size: var(--bg-size, auto); background-attachment: fixed; }

/* ---------- Home: search, favorites, Game of the Day ---------- */
.game-tools { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: -6px 0 20px; }
.game-search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.game-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.game-search svg { width: 18px; height: 18px; flex: none; }
.game-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 15px; }
.gotd { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 46px; border-radius: 12px; border: 1px solid rgba(var(--accent-rgb), .55); background: linear-gradient(90deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .06)); box-shadow: 0 0 30px -12px var(--accent-glow); transition: transform .15s; }
.gotd:hover { transform: translateY(-1px); }
.gotd-i { font-size: 20px; }
.gotd small { display: block; font-size: 11px; color: var(--accent-hi); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; line-height: 1.1; }
.gotd b { font-size: 15px; line-height: 1.2; }
.gotd-x { margin-left: 6px; font: 700 12px var(--mono); padding: 4px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); }
.badge-gotd { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(var(--accent-rgb), .18); color: var(--accent-hi); border: 1px solid rgba(var(--accent-rgb), .45); white-space: nowrap; }
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: rgba(255,255,255,.8); background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); opacity: 0; transition: opacity .15s, transform .15s; }
.game-card:hover .fav-btn, .fav-btn.on, .fav-btn:focus-visible, .touching .fav-btn { opacity: 1; }
@media (hover: none) { .fav-btn { opacity: 1; } }
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.on { color: #ffd23f; border-color: rgba(255,210,63,.5); }
.no-games { color: var(--muted); padding: 30px 0; text-align: center; }
.no-games button { color: var(--accent-hi); text-decoration: underline; }

/* ---------- Profile page ---------- */
.pf-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 28px; border-radius: 22px; margin-bottom: 18px;
  background: radial-gradient(600px 240px at 0% 0%, rgba(var(--accent-rgb), .25), transparent 70%), var(--surface); border: 1px solid rgba(var(--accent-rgb), .35); }
.pf-av .avatar.xl { width: 104px; height: 104px; font-size: 54px; }
.pf-id { flex: 1 1 260px; min-width: 0; }
.pf-id h1 { font-size: clamp(26px, 5vw, 38px); letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.pf-title { color: var(--accent-hi); font-weight: 600; margin: 4px 0 12px; }
.pf-lvl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; max-width: 420px; }
.pf-lvl small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.pf-code { margin-top: 10px; font-size: 13px; }
.pf-code b { font-family: var(--mono); color: var(--text); letter-spacing: .08em; }
.pf-actions { display: flex; flex-direction: column; gap: 8px; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.pf-stats .stat b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
.pf-card { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; }
.pf-grid .pf-card { margin-bottom: 0; }
.pf-card h2 { font-size: 18px; margin-bottom: 12px; display: flex; gap: 10px; align-items: baseline; }
.pf-card h2 small { font-size: 13px; font-weight: 500; }
.pf-card > p.muted { margin: -6px 0 14px; font-size: 14px; }
.pf-chart { display: flex; gap: 6px; height: 150px; align-items: flex-end; padding-bottom: 20px; }
.pf-col { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column-reverse; gap: 2px; border-radius: 6px; background: rgba(var(--accent-rgb), .05); }
.pf-col i { display: block; border-radius: 4px; min-height: 4px; }
.pf-col i.w, .pf-legend i.w { background: var(--accent); }
.pf-col i.l, .pf-legend i.l { background: #444444; }
.pf-col i.d, .pf-legend i.d { background: #a78b9f; }
.pf-col span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--dim); }
.pf-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.pf-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pf-hist { list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.pf-hist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.pf-hist li b { flex: 1; font-weight: 500; }
.pf-hist time { color: var(--dim); font-size: 12px; }
.pf-r { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font: 700 12px var(--mono); flex: none; }
.pf-r.win { background: var(--accent); color: var(--on-accent, #fff); }
.pf-r.loss { background: #333333; color: var(--muted); }
.pf-r.draw { background: #5c4a58; color: #fff; }
.pf-titles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pf-t { text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; transition: border-color .15s; }
.pf-t:hover:not(:disabled) { border-color: var(--accent); }
.pf-t b { font-size: 14px; }
.pf-t small { font-size: 12px; color: var(--muted); }
.pf-t.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .15); box-shadow: 0 0 20px -8px var(--accent-glow); }
.pf-t.locked { opacity: .5; cursor: default; }
.pf-note { text-align: center; font-size: 13px; margin: 8px 0 40px; }

/* ---------- Admin ---------- */
.op-login { max-width: 440px; display: flex; flex-direction: column; gap: 10px; }
.op-in { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--field); border: 1px solid var(--line-2); color: var(--text); font: inherit; outline: none; }
.op-in:focus { border-color: var(--accent); }
.op-err { color: var(--danger); font-size: 14px; min-height: 1.2em; }
.op-row { display: flex; gap: 8px; }
.op-filter { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 12px; }
.op-filter button { padding: 6px 14px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.op-filter button.on { background: var(--surface); color: var(--text); }
.op-list { display: flex; flex-direction: column; gap: 8px; }
.op-sg { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.op-votes { font: 700 13px var(--mono); color: var(--accent-hi); min-width: 48px; }
.op-sg-body { flex: 1 1 240px; min-width: 0; }
.op-sg-body p { overflow-wrap: anywhere; }
.op-sg-body small { color: var(--dim); font-size: 12px; }
.op-sg select { height: 34px; border-radius: 8px; background: var(--field); color: var(--text); border: 1px solid var(--line-2); padding: 0 8px; font: inherit; font-size: 13px; }
.op-del { height: 34px; font-size: 13px; }
.op-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.op-chip { padding: 4px 10px; border-radius: 999px; background: rgba(var(--accent-rgb), .15); border: 1px solid rgba(var(--accent-rgb), .4); font: 600 12px var(--mono); }
.op-sub { margin-top: 18px; font-size: 15px !important; }
.op-top { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.op-top li { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.op-top b { font-family: var(--mono); color: var(--accent-hi); }

/* ---------- Announcement bar + suggestion status ---------- */
.announce { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 44px 10px 16px; position: relative; text-align: center; font-size: 14px; font-weight: 500;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .28), rgba(var(--accent-rgb), .12)); border-bottom: 1px solid rgba(var(--accent-rgb), .45); }
.announce button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px; font-size: 18px; color: var(--muted); }
.announce button:hover { color: var(--text); background: rgba(255,255,255,.08); }
.sg-status { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 1px; text-transform: uppercase; letter-spacing: .04em; }
.sg-status.planned { background: rgba(250, 204, 21, .15); color: #facc15; border: 1px solid rgba(250, 204, 21, .4); }
.sg-status.done { background: rgba(34, 197, 94, .15); color: #4ade80; border: 1px solid rgba(34, 197, 94, .4); }

/* ---------- Season pass ---------- */
.ps-hero { display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-bottom: 24px; }
.ps-hero > div:first-child { flex: 1 1 360px; }
.ps-hero h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ps-hero p.muted { max-width: 560px; margin-top: 6px; }
.ps-kicker { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-hi); }
.ps-now { flex: 0 1 320px; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid rgba(var(--accent-rgb), .4); }
.ps-now b { font-size: 20px; }
.ps-now small { color: var(--muted); font-size: 13px; }
.ps-now .btn { margin-top: 6px; }
.ps-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ps-tier { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; opacity: .6; }
.ps-tier.open, .ps-tier.got { opacity: 1; }
.ps-tier.open { border-color: var(--accent); box-shadow: 0 0 24px -10px var(--accent-glow); }
.ps-tier.big { background: radial-gradient(circle at 50% 0%, rgba(var(--accent-rgb), .2), transparent 70%), var(--surface); }
.ps-n { position: absolute; top: 8px; left: 10px; font: 700 12px var(--mono); color: var(--dim); }
.ps-i { font-size: 36px; line-height: 1.1; }
.ps-tier small { font-size: 12px; color: var(--muted); min-height: 2.6em; }
.ps-tier .btn { width: 100%; height: 34px; font-size: 13px; }
.ps-tier.got .ps-i { filter: grayscale(.2); }
.lb-row.lb-3 { grid-template-columns: 48px 1fr 160px; }
.lb-row.lb-4 { grid-template-columns: 48px 1fr 90px 90px; }
.lb-row.lb-5 { grid-template-columns: 48px 1fr 80px 56px 56px; }
@media (max-width: 520px) { .lb-row.lb-3 { grid-template-columns: 34px 1fr 110px; } .lb-row.lb-5 { grid-template-columns: 34px 1fr 64px 40px 40px; } .lb-row.lb-5 span:nth-child(5) { display: block; } }

/* ---------- Stickers ---------- */
.react-stickers { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px; align-items: center; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
.react-stickers button { font-size: 28px; width: 48px; height: 48px; border-radius: 12px; transition: transform .1s, background .1s; }
.react-stickers button:hover { background: rgba(var(--accent-rgb), .15); transform: scale(1.15) rotate(-6deg); }
.react-more { margin-left: auto; font-size: 12px; color: var(--accent-hi); padding: 0 8px; }
.react-float.sticker span { font-size: 96px; animation: sticker-in .6s cubic-bezier(.2,1.6,.4,1), sticker-wobble 1.2s ease-in-out .6s infinite; filter: drop-shadow(0 10px 24px rgba(var(--accent-rgb), .55)); display: inline-block; }
@keyframes sticker-in { from { transform: scale(0) rotate(-40deg); } }
@keyframes sticker-wobble { 50% { transform: rotate(8deg) scale(1.06); } }

/* ---------- Vote for the next game ---------- */
.poll-card { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); z-index: 60; width: min(420px, calc(100vw - 24px)); padding: 14px; border-radius: 18px;
  background: rgba(14, 14, 14,.97); border: 1px solid rgba(var(--accent-rgb), .55); box-shadow: var(--shadow-lg), 0 0 60px -20px var(--accent-glow); animation: pop .25s cubic-bezier(.2,1.4,.4,1); }
:root[data-theme="light"] .poll-card { background: rgba(255,255,255,.98); }
.poll-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.poll-time { font: 700 13px var(--mono); color: var(--accent-hi); }
.poll-opts { display: flex; flex-direction: column; gap: 6px; }
.poll-opt { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); text-align: left; font-size: 14px; }
.poll-opt i { position: absolute; inset: 0 auto 0 0; background: rgba(var(--accent-rgb), .22); transition: width .3s; z-index: 0; }
.poll-opt b, .poll-opt span { position: relative; z-index: 1; }
.poll-opt span { font: 700 13px var(--mono); }
.poll-opt:hover:not(:disabled) { border-color: var(--accent); }
.poll-opt.mine { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.poll-opt.won { border-color: #4ade80; box-shadow: 0 0 20px -6px rgba(74,222,128,.7); }
.poll-opt:disabled { cursor: default; }
.poll-foot { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.switch-item.vote { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .12); }

/* ---------- DMs ---------- */
.dm-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); font: 700 11px/18px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.friends-btn, #navFriends, .fr-chat { position: relative; }
.fr-chat { width: 36px; padding: 0; }
.dm-view { display: flex; flex-direction: column; gap: 10px; }
.dm-top { display: flex; align-items: center; gap: 10px; }
.dm-top small { color: var(--dim); font-size: 12px; margin-left: auto; text-align: right; }
.dm-log { list-style: none; display: flex; flex-direction: column; gap: 6px; height: min(50vh, 380px); overflow: auto; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.dm-log li { max-width: 80%; align-self: flex-start; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface-3); font-size: 14px; overflow-wrap: anywhere; }
.dm-log li.me { align-self: flex-end; background: var(--accent); color: var(--on-accent, #fff); border-radius: 14px 14px 4px 14px; }
.dm-log li.sys { align-self: center; background: none; color: var(--dim); font-size: 12px; }
.dm-form { display: flex; gap: 8px; }
.dm-form input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--line-2); color: var(--text); font: inherit; outline: none; }
.dm-form input:focus { border-color: var(--accent); }

/* ---------- Clans ---------- */
.cl-mine { border-color: rgba(var(--accent-rgb), .45); background: radial-gradient(500px 200px at 0% 0%, rgba(var(--accent-rgb), .18), transparent 70%), var(--surface); }
.cl-mine-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cl-mine-top > div { flex: 1; min-width: 200px; }
.cl-mine-top h2 { margin: 0; font-size: 24px; }
.cl-tag { display: inline-grid; place-items: center; min-width: 76px; height: 60px; padding: 0 12px; border-radius: 14px; background: #000; border: 2px solid var(--accent); color: var(--accent-hi); font: 800 22px var(--mono); letter-spacing: .06em; box-shadow: 0 0 24px -6px var(--accent-glow); }
.cl-invite { margin: 12px 0; font-size: 14px; }
.cl-invite b { font-family: var(--mono); color: var(--accent-hi); }
.cl-members { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.cl-members li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.cl-members li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-members li small { color: var(--dim); font-size: 11px; }
.cl-form { display: flex; flex-direction: column; gap: 10px; }
.cl-form h2 { margin-bottom: 2px; }
.cl-form .muted { font-size: 13px; }
.cl-row { cursor: pointer; }
.cl-row:hover { background: var(--surface-2); }
.pf-link:hover { border-color: rgba(var(--accent-rgb), .6); }

/* ---- games.css ---- */
/* Shared bits for the DOM-based games (Connect 4, Battleship, Quiz Battle). */
.play { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px 16px 84px; }
.turn-banner {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--muted);
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.turn-banner.mine { color: #fff; border-color: rgba(var(--accent-hi-rgb),.6); background: rgba(var(--accent-rgb),.18); box-shadow: 0 0 30px -8px var(--accent-glow); }
.turn-banner .chip { width: 12px; height: 12px; border-radius: 50%; }

/* ---------- Connect 4 ---------- */
.c4 {
  --cell: min(74px, calc((100vw - 64px) / 7), calc((100vh - 260px) / 6));
  position: relative; display: grid; grid-template-columns: repeat(7, var(--cell));
  padding: 10px; border-radius: 20px; touch-action: manipulation;
  background: linear-gradient(180deg, #2b4fd8, #1d3aa8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -3px 0 rgba(0,0,0,.25), var(--shadow-lg), 0 0 80px -30px rgba(77,141,255,.5);
}
.c4 .col { display: grid; grid-template-rows: repeat(6, var(--cell)); position: relative; border-radius: 12px; }
.c4.live .col { cursor: pointer; }
.c4.live .col:hover { background: rgba(255,255,255,.08); }
.c4 .slot { position: relative; display: grid; place-items: center; }
.c4 .slot::before {
  content: ""; width: 78%; height: 78%; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 4px 8px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.15);
}
.c4 .disc { position: absolute; width: 78%; height: 78%; border-radius: 50%; }
.c4 .disc::after { content: ""; position: absolute; inset: 20%; border-radius: 50%; border: 2px solid rgba(0,0,0,.18); }
.c4 .disc.d1 { background: radial-gradient(circle at 35% 30%, #ff9a7e, var(--p1) 55%, #d4381a); box-shadow: inset 0 -3px 6px rgba(0,0,0,.25); }
.c4 .disc.d2 { background: radial-gradient(circle at 35% 30%, #fff1a6, var(--yellow) 55%, #d19e05); box-shadow: inset 0 -3px 6px rgba(0,0,0,.2); }
.c4 .disc.drop { animation: drop .42s cubic-bezier(.45,0,.6,1.35); }
.c4 .disc.win { animation: winpulse .9s ease-in-out infinite; }
.c4 .disc.win::after { border-color: rgba(255,255,255,.9); }
@keyframes drop { from { transform: translateY(calc(var(--fall) * -1)); } }
@keyframes winpulse { 50% { transform: scale(.86); box-shadow: 0 0 24px 4px rgba(255,255,255,.35); } }

/* ---------- Battleship ---------- */
.bs-wrap { display: flex; gap: 32px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.bs-side { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.bs-label { font-size: 13px; font-weight: 500; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.bs-label .left { color: var(--text); font-weight: 600; }
.grid10 {
  --cell: min(36px, calc((100vw - 60px) / 10.6));
  display: grid; grid-template-columns: calc(var(--cell) * .6) repeat(10, var(--cell));
  grid-template-rows: calc(var(--cell) * .6) repeat(10, var(--cell));
  user-select: none; touch-action: none;
}
.grid10.small { --cell: min(26px, calc((100vw - 60px) / 10.6)); }
.grid10 .hd { display: grid; place-items: center; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.grid10 .hd.top { align-self: end; }
.sq { position: relative; background: #0d1a2e; border-right: 1px solid rgba(120,160,220,.12); border-bottom: 1px solid rgba(120,160,220,.12); }
.sq.c0 { border-left: 1px solid rgba(120,160,220,.25); }
.sq.r0 { border-top: 1px solid rgba(120,160,220,.25); }
.sq.c9 { border-right: 1px solid rgba(120,160,220,.25); }
.sq.r9 { border-bottom: 1px solid rgba(120,160,220,.25); }
.sq.ship { background: #3a4659; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.sq.ship.sel { background: var(--accent); }
.sq.ghost-ok { background: rgba(34,197,94,.45); }
.sq.ghost-bad { background: rgba(244,63,94,.45); }
.sq.sunk { background: #1f1f1f; }
.sq.miss::after { content: ""; position: absolute; inset: 40%; border-radius: 50%; background: rgba(160,190,240,.45); }
.sq.hit::after {
  content: ""; position: absolute; inset: 24%; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, var(--p1) 45%, rgba(255,91,58,0) 72%);
  box-shadow: 0 0 12px var(--p1);
}
.sq.hit.sunk::after { background: radial-gradient(circle, #ffd0d8 0 15%, var(--danger) 50%, rgba(244,63,94,0) 75%); box-shadow: none; }
.sq.last { box-shadow: inset 0 0 0 2px var(--yellow); z-index: 1; }
.target .sq { cursor: default; }
.target.live .sq:not(.hit):not(.miss) { cursor: crosshair; }
.target.live .sq:not(.hit):not(.miss):hover { background: rgba(var(--accent-rgb),.35); box-shadow: inset 0 0 0 1px var(--accent-hi); }
.target.live { filter: drop-shadow(0 0 24px rgba(var(--accent-rgb),.25)); }
.fleet-left { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fleet-left i { height: 8px; border-radius: 4px; background: var(--muted); display: block; }
.fleet-left i.gone { background: var(--surface-3); }
.bs-tools { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bs-tip { font-size: 13px; color: var(--muted); text-align: center; max-width: 440px; }
.anim-pop { animation: pop .3s cubic-bezier(.2,1.6,.4,1); }

/* ---------- Quiz Battle ---------- */
.tv { width: min(760px, 100%); display: flex; flex-direction: column; gap: 16px; }
.tv-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; color: var(--muted); }
.tv-cat { font-size: 12px; font-weight: 600; color: var(--accent-hi); padding: 3px 10px; border-radius: 999px; background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-rgb),.35); }
.tv-clock { width: 100%; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.tv-clock i { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--grad); box-shadow: 0 0 12px var(--accent-glow); }
.tv-clock.urgent i { background: var(--danger); box-shadow: 0 0 12px var(--danger); }
.tv-q {
  font-size: clamp(22px, 3.6vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em;
  padding: 26px; min-height: 120px; display: flex; align-items: center; border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2);
}
.tv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tv-opt {
  --c: var(--accent);
  display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 62px; padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-weight: 500; font-size: 16px; line-height: 1.25;
  transition: border-color .15s, background .15s, transform .1s, opacity .2s, box-shadow .2s;
}
.tv-opt b {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 13px; color: #fff; background: var(--c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.tv-opt:nth-child(1) { --c: #ec4899; }
.tv-opt:nth-child(2) { --c: #ec4899; }
.tv-opt:nth-child(3) { --c: #3b82f6; }
.tv-opt:nth-child(4) { --c: #f59e0b; }
.tv-opt:not(:disabled):hover { border-color: var(--c); background: var(--surface-2); }
.tv-opt:not(:disabled):active { transform: scale(.985); }
.tv-opt:disabled { cursor: default; }
.tv-opt.picked { border-color: var(--c); box-shadow: 0 0 0 2px var(--c); }
.tv-opt.dim { opacity: .4; }
.tv-opt.right { opacity: 1; border-color: var(--green); background: rgba(34,197,94,.12); box-shadow: 0 0 0 2px var(--green), 0 0 30px -10px var(--green); }
.tv-opt .who { margin-left: auto; display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.tv-opt .who .avatar { width: 24px; height: 24px; font-size: 12px; }
.tv-msg { font-size: 14px; font-weight: 600; text-align: center; min-height: 22px; }
.tv-msg.good { color: var(--green); }
.tv-msg.bad { color: var(--danger); }
.tv-board { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tv-board .pl {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500;
}
.tv-board .pl.me { border-color: rgba(var(--accent-rgb),.5); background: rgba(var(--accent-rgb),.1); }
.tv-board .pl .avatar { width: 24px; height: 24px; font-size: 10px; }
.tv-board .pl .pts { font-family: var(--mono); color: var(--muted); }
.tv-board .pl .gain { font-family: var(--mono); font-size: 11px; color: var(--green); }
.tv-board .pl.done { border-color: rgba(34,197,94,.45); }
.tv-board .pl .tick { font-size: 12px; color: var(--green); }

.standings { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 16px 0 22px; text-align: left; }
.standings li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.standings li.win { border-color: rgba(250,204,21,.5); background: rgba(250,204,21,.08); }
.standings .pos { font-family: var(--mono); color: var(--dim); width: 20px; }
.standings li.win .pos { color: var(--yellow); }
.standings .pname { flex: 1; font-weight: 500; }
.standings .n { font-family: var(--mono); font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  .tv-opts { grid-template-columns: 1fr; gap: 8px; }
  .tv-opt { min-height: 54px; font-size: 15px; }
  .tv-q { padding: 18px; min-height: 90px; }
  .bs-wrap { gap: 18px; }
}

/* ---------- Lobby settings (host) ---------- */
.set-head { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin: 4px 0 8px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--field); border: 1px solid var(--line-2); margin-bottom: 14px; }
.seg button { flex: 1; height: 32px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; transition: opacity .2s; }
.chips.off { opacity: .35; pointer-events: none; }
.chip { font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: var(--surface-2); }
.chip.on { color: #fff; border-color: rgba(var(--accent-rgb),.6); background: rgba(var(--accent-rgb),.22); }
.custom-q { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: var(--field); }
.custom-q summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.custom-q summary span { color: var(--accent-hi); }
.custom-q textarea {
  width: 100%; margin-top: 10px; padding: 10px; border-radius: 8px; resize: vertical;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font: 13px/1.4 var(--mono); outline: none;
}
.custom-q textarea:focus { border-color: var(--accent); }
.check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---- party.css ---- */
/* Styles for the newer games (Draw & Guess, Liar's Dice, Word Bomb, Spyfall, Codewords,
   Type Race, RPS Tournament, Chess, Snake). */
.avatar.lg { width: 56px; height: 56px; font-size: 28px; }
.standings .avatar { width: 26px; height: 26px; font-size: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--muted);
}
.pill.hot { color: #fff; border-color: rgba(var(--accent-hi-rgb),.6); background: rgba(var(--accent-rgb),.2); }

/* ---------- Draw & Guess ---------- */
.dg { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; padding: 16px; overflow: hidden; }
.dg-main { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }
.dg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dg-round, .dg-time { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 90px; }
.dg-time { text-align: right; font-family: var(--mono); font-size: 20px; color: var(--text); }
.dg-word { display: flex; gap: 6px; align-items: flex-end; font-family: var(--mono); font-size: 22px; font-weight: 600; min-height: 34px; flex-wrap: wrap; justify-content: center; }
.dg-word .ch { width: 18px; text-align: center; border-bottom: 2px solid var(--line-3); line-height: 1.2; min-height: 28px; }
.dg-word .gap { width: 10px; }
.dg-word small { font-size: 11px; color: var(--dim); margin-left: 4px; }
.dg-secret { color: var(--accent-hi); letter-spacing: .06em; }
.dg-canvas { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-start; container-type: size; }
.dg-frame { position: relative; width: min(100cqw, 133.33cqh); aspect-ratio: 4 / 3; }
.dg-canvas canvas {
  display: block; width: 100%; height: 100%;
  background: #fff; border-radius: 14px; touch-action: none; box-shadow: var(--shadow-lg);
}
.dg-canvas canvas.can-draw { cursor: crosshair; }
.dg-cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 14px; text-align: center; padding: 20px;
}
.dg-cover-title { font-size: 20px; font-weight: 600; }
.dg-cover-sub { color: var(--muted); font-size: 14px; }
.dg-cover-word { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-hi); }
.dg-choices { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.dg-choices .btn { height: 50px; font-size: 17px; text-transform: capitalize; }
.dg-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.dg-colors { display: grid; grid-template-columns: repeat(12, 26px); gap: 4px; }
.dg-color { width: 26px; height: 26px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.dg-color.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-hi); }
.dg-sizes { display: flex; gap: 4px; }
.dg-size { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.dg-size i { display: block; border-radius: 50%; background: var(--text); }
.dg-size.on { border-color: var(--accent); background: rgba(var(--accent-rgb),.2); }
.dg-tools .btn { height: 34px; padding: 0 12px; }
.dg-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding-bottom: 56px; }
.dg-players { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.dg-players li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.dg-players li .avatar { width: 26px; height: 26px; font-size: 14px; }
.dg-players .pname { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-players .pts { font-family: var(--mono); color: var(--muted); }
.dg-players .gain { font-family: var(--mono); font-size: 12px; color: var(--green); }
.dg-players li.me { border-color: rgba(var(--accent-rgb),.45); }
.dg-players li.guessed { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.4); }
.dg-players li.drawing { background: rgba(var(--accent-rgb),.12); }
.dg-feed { flex: 1; min-height: 120px; overflow-y: auto; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.dg-msg { line-height: 1.35; overflow-wrap: anywhere; }
.dg-msg b { font-weight: 600; margin-right: 4px; }
.dg-msg.right { color: var(--green); font-weight: 600; }
.dg-msg.close { color: var(--yellow); }
.dg-msg.sys { color: var(--dim); font-size: 12px; text-align: center; }
.dg-guess { display: flex; gap: 8px; }
.dg-guess input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px;
  background: var(--field); border: 1px solid var(--line-2); color: var(--text); font: inherit; outline: none;
}
.dg-guess input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2); }
.dg-guess input:disabled { opacity: .6; }
@media (max-width: 860px) {
  .dg { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; padding: 10px; }
  .dg-canvas { flex: none; container-type: normal; }
  .dg-frame { width: 100%; }
  .dg-side { padding-bottom: 60px; }
  .dg-colors { grid-template-columns: repeat(6, 28px); }
  .dg-players { flex-direction: row; flex-wrap: wrap; }
  .dg-players li { padding: 4px 8px; }
  .dg-feed { min-height: 110px; max-height: 160px; }
}

/* ---------- Liar's Dice ---------- */
.die {
  --s: 46px;
  width: var(--s); height: var(--s); border-radius: calc(var(--s) * .2); flex: none;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: calc(var(--s) * .14);
  background: linear-gradient(160deg, #fff, #dcdce6); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 6px 14px -6px rgba(0,0,0,.7);
}
.die i { border-radius: 50%; margin: calc(var(--s) * .05); }
.die i.on { background: #1a1a1a; }
.die[data-v="1"] i.on { background: var(--accent); }
.die.sm { --s: 26px; }
.die.xs { --s: 20px; }
.die.roll { animation: roll .5s cubic-bezier(.2,.8,.3,1.2); }
.die.hit { box-shadow: 0 0 0 2px var(--green), 0 0 14px -2px var(--green); }
.die.miss { opacity: .4; }
@keyframes roll { from { transform: rotate(-200deg) scale(.4); opacity: 0; } }
.ld { gap: 20px; }
.ld-table { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: min(900px, 100%); }
.seat { position: relative; min-width: 150px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, box-shadow .2s; }
.seat.turn { border-color: rgba(var(--accent-hi-rgb),.7); box-shadow: 0 0 30px -10px var(--accent-glow); }
.seat.me { background: var(--surface-2); }
.seat.out { opacity: .4; }
.seat-top { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.seat-top .avatar { width: 26px; height: 26px; font-size: 14px; }
.cups { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; min-height: 26px; }
.cup { width: 20px; height: 24px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #6d4c9f, #3b2566); box-shadow: inset 0 2px 0 rgba(255,255,255,.2); }
.bid-bubble { position: absolute; top: -12px; right: -8px; display: flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: var(--grad); color: var(--on-accent, #fff); font-size: 13px; box-shadow: 0 6px 16px -6px var(--accent-glow); }
.lose-tag { position: absolute; top: -10px; left: 10px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--danger); color: #fff; }
.ld-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ld-current { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 90px; justify-content: center; }
.ld-current .muted { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.bid-big { display: flex; align-items: center; gap: 12px; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.bid-big .die { --s: 56px; }
.ld-log { font-size: 15px; max-width: 560px; }
.ld-total { font-size: 12px; }
.ld-me { width: min(560px, 100%); padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.ld-label { width: 100%; display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ld-timer { font-family: var(--mono); letter-spacing: 0; font-size: 14px; color: var(--text); }
.ld-mine { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; min-height: 56px; }
.ld-mine .die { --s: 56px; }
.ld-controls { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.ld-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ld-row > .btn { flex: 1; min-width: 140px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper .btn { width: 40px; padding: 0; font-size: 20px; }
.stepper span { font-family: var(--mono); font-size: 24px; font-weight: 600; min-width: 34px; text-align: center; }
.ld-faces { display: flex; gap: 4px; }
.face-btn { padding: 5px; border-radius: 10px; border: 1px solid transparent; }
.face-btn.on { border-color: var(--accent); background: rgba(var(--accent-rgb),.2); }
.face-btn .die { --s: 32px; }
.btn.liar { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.liar:hover { filter: brightness(1.1); background: var(--danger); }
.ld-waiting { font-size: 14px; }

/* ---------- Word Bomb ---------- */
.wb { gap: 12px; }
.wb-ring { position: relative; width: min(760px, 100%); height: min(440px, 58vh); min-height: 300px; }
.wb-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }
.wb-bomb { font-size: 84px; line-height: 1; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.wb-bomb.ticking { animation: wobble .6s ease-in-out infinite; }
.wb-bomb.exploded { animation: blast .5s ease-out forwards; }
@keyframes wobble { 50% { transform: rotate(-8deg) scale(1.06); } }
@keyframes blast { to { transform: scale(1.8); opacity: 0; } }
.wb-chunk {
  margin-top: 6px; padding: 6px 16px; border-radius: 12px; font-family: var(--mono); font-weight: 600; font-size: 30px; letter-spacing: .1em;
  background: var(--grad); color: var(--on-accent, #fff); box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.wb-arrow {
  position: absolute; left: 50%; top: 50%; width: 4px; height: 150px; margin-left: -2px; transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(var(--accent-hi-rgb),0), rgba(var(--accent-hi-rgb),.8)); border-radius: 4px; z-index: -1;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.wb-seat {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 130px; text-align: center; transition: opacity .2s;
}
.wb-seat .avatar.lg { width: 50px; height: 50px; font-size: 26px; transition: box-shadow .2s, transform .2s; }
.wb-seat.turn .avatar.lg { box-shadow: 0 0 0 3px var(--accent-hi), 0 0 30px var(--accent-glow); transform: scale(1.1); }
.wb-seat.out { opacity: .3; }
.wb-seat .pname { font-size: 13px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-seat.me .pname { color: var(--accent-hi); }
.hearts { font-size: 12px; letter-spacing: 1px; }
.hearts i { font-style: normal; color: var(--surface-3); }
.hearts i.on { color: var(--danger); }
.typed { font-family: var(--mono); font-size: 15px; font-weight: 600; min-height: 20px; color: var(--yellow); text-transform: uppercase; }
.said { font-family: var(--mono); font-size: 12px; color: var(--green); text-transform: uppercase; }
.boom-tag { font-size: 26px; animation: pop .3s ease; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translate(-50%, -50%) translateX(-6px); } 40%, 80% { transform: translate(-50%, -50%) translateX(6px); } }
input.shake { animation: shakeIn .35s; }
@keyframes shakeIn { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.wb-status { font-size: 16px; font-weight: 600; min-height: 24px; text-align: center; }
.wb-me { width: min(420px, 100%); }
.wb-me > div { display: flex; gap: 8px; }
.wb-me input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px; text-transform: uppercase;
  background: var(--field); border: 1px solid var(--accent); color: var(--text); font: 600 22px/1 var(--mono); letter-spacing: .08em; outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2);
}
.wb-me .btn { height: 52px; }
.wb-letters { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; max-width: 480px; }
.wb-letters span { width: 20px; height: 22px; display: grid; place-items: center; border-radius: 5px; font: 600 11px var(--mono); color: var(--dim); background: var(--surface); border: 1px solid var(--line); }
.wb-letters span.on { color: #fff; background: rgba(var(--accent-rgb),.35); border-color: rgba(var(--accent-rgb),.6); }
@media (max-width: 640px) {
  .wb-seat { width: 90px; }
  .wb-seat .avatar.lg { width: 40px; height: 40px; font-size: 20px; }
  .wb-bomb { font-size: 60px; }
  .wb-chunk { font-size: 24px; }
  .wb-arrow { height: 110px; }
}

/* ---------- Spyfall ---------- */
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.sp-grid { width: min(1080px, 100%); display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.sp-left, .sp-right { display: flex; flex-direction: column; gap: 12px; }
.sp-card {
  position: relative; height: 170px; border-radius: 18px; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, #272727, #181818); border: 1px solid rgba(var(--accent-hi-rgb),.35);
  box-shadow: var(--shadow-lg), 0 0 60px -30px var(--accent-glow);
}
.sp-card.spy { background: linear-gradient(160deg, #47151f, #1c0f12); border-color: rgba(244,63,94,.45); }
.sp-back, .sp-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; transition: opacity .25s, transform .25s; }
.sp-back { color: var(--muted); font-weight: 600; }
.sp-card:not(.shown) .sp-face { opacity: 0; transform: scale(.95); }
.sp-card.shown .sp-back { opacity: 0; }
.sp-big { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.sp-small { font-size: 13px; color: var(--muted); }
.sp-timer { text-align: center; font-family: var(--mono); font-size: 34px; font-weight: 600; }
.sp-hint { font-size: 14px; text-align: center; color: var(--muted); }
.sp-vote { padding: 16px; border-radius: 16px; background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-hi-rgb),.45); text-align: center; display: flex; flex-direction: column; gap: 10px; }
.sp-vote-q { font-size: 20px; font-weight: 700; }
.sp-vote-btns { display: flex; gap: 8px; }
.sp-vote-btns .btn { flex: 1; }
.sp-players { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sp-players li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.sp-players li.me { border-color: rgba(var(--accent-rgb),.45); }
.sp-players .pname { flex: 1; font-weight: 500; }
.sp-players .pts { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.tag.ok { font-size: 11px; color: var(--green); }
.sp-note { font-size: 12px; }
.sp-right-head { display: flex; align-items: center; justify-content: space-between; }
.sp-right-head h2 { font-size: 18px; font-weight: 600; }
.sp-locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.loc { padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; text-align: left; transition: opacity .15s, border-color .15s; }
.loc:hover { border-color: var(--line-3); }
.loc.crossed { opacity: .3; text-decoration: line-through; }
.guessing .loc { border-color: rgba(244,63,94,.35); }
.guessing .loc:hover { background: rgba(244,63,94,.12); }
.loc.armed { background: rgba(244,63,94,.25); border-color: var(--danger); opacity: 1; text-decoration: none; }
.loc.answer { background: rgba(34,197,94,.2); border-color: var(--green); opacity: 1; text-decoration: none; }
@media (max-width: 860px) { .sp-grid { grid-template-columns: 1fr; } }

/* ---------- Codewords ---------- */
.cw { --red: #ef4444; --blue: #3b82f6; }
.cw-setup { width: min(720px, 100%); text-align: center; display: flex; flex-direction: column; gap: 14px; }
.cw-setup h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.cw-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.cw-team { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cw-team.t0 { border-color: rgba(239,68,68,.45); background: linear-gradient(180deg, rgba(239,68,68,.1), var(--surface)); }
.cw-team.t1 { border-color: rgba(59,130,246,.45); background: linear-gradient(180deg, rgba(59,130,246,.1), var(--surface)); }
.cw-team h3 { font-size: 18px; }
.cw-team.t0 h3 { color: var(--red); }
.cw-team.t1 h3 { color: var(--blue); }
.cw-team ul { list-style: none; display: flex; flex-direction: column; gap: 6px; min-height: 80px; }
.cw-team li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.cw-team li .avatar { width: 26px; height: 26px; font-size: 14px; }
.cw-team li .role { margin-left: auto; font-size: 11px; color: var(--muted); }
.cw-team li.me .pname { color: var(--accent-hi); }
.cw-join { display: flex; gap: 6px; flex-wrap: wrap; }
.cw-join .btn.on { border-color: var(--accent); background: rgba(var(--accent-rgb),.22); color: #fff; }
.cw-setup-btns { display: flex; gap: 10px; justify-content: center; }
.cw-game { width: min(1000px, 100%); display: grid; grid-template-columns: 1fr 220px; gap: 12px 16px; }
.cw-score, .cw-clue, .cw-clueform, .cw-board, .cw-foot { grid-column: 1; }
.cw-side { grid-column: 2; grid-row: 1 / span 5; display: flex; flex-direction: column; gap: 10px; }
.cw-score { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cw-count { font-size: 14px; color: var(--muted); }
.cw-count b { font-size: 26px; font-weight: 800; margin-right: 4px; }
.cw-count.t0 b { color: var(--red); }
.cw-count.t1 b { color: var(--blue); }
.cw-turn { font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); }
.cw-turn.t0 { color: #fecaca; background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.5); }
.cw-turn.t1 { color: #bfdbfe; background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.5); }
.cw-clue { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; }
.cw-clue-word { font-size: 26px; font-weight: 800; letter-spacing: .04em; }
.cw-clue-n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: var(--grad); color: var(--on-accent, #fff); }
.cw-clueform { display: flex; gap: 8px; justify-content: center; }
.cw-clueform input, .cw-clueform select {
  height: 44px; padding: 0 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--line-2); color: var(--text); font: inherit; outline: none;
}
.cw-clueform input { width: 220px; text-transform: uppercase; }
.cw-clueform input:focus { border-color: var(--accent); }
.cw-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cw-card {
  height: clamp(54px, 9vw, 78px); border-radius: 12px; padding: 4px; font-weight: 700; font-size: clamp(11px, 1.6vw, 15px); text-transform: uppercase; letter-spacing: .03em;
  background: linear-gradient(180deg, #2e2e2e, #202020); border: 1px solid var(--line-2); overflow-wrap: anywhere; line-height: 1.1;
  transition: transform .12s, background .2s, border-color .2s, opacity .2s;
}
.cw-card:disabled { cursor: default; }
.cw-board.live .cw-card:not(:disabled):hover { transform: translateY(-2px); border-color: var(--accent-hi); }
.cw-board.spyview .cw-card.k0 { box-shadow: inset 0 -5px 0 var(--red); color: #fecaca; }
.cw-board.spyview .cw-card.k1 { box-shadow: inset 0 -5px 0 var(--blue); color: #bfdbfe; }
.cw-board.spyview .cw-card.k3 { box-shadow: inset 0 -5px 0 #000, inset 0 0 0 2px #f43f5e; color: #fda4af; }
.cw-card.open { color: #fff; animation: flip .35s ease; }
.cw-card.open.k0 { background: linear-gradient(180deg, #ef4444, #b91c1c); border-color: #ef4444; }
.cw-card.open.k1 { background: linear-gradient(180deg, #3b82f6, #1d4ed8); border-color: #3b82f6; }
.cw-card.open.k2 { background: linear-gradient(180deg, #a8a29e, #78716c); border-color: #a8a29e; color: #1c1917; }
.cw-card.open.k3 { background: #000; border-color: #f43f5e; color: #f43f5e; }
.cw-board.spyview .cw-card.open { opacity: .45; }
@keyframes flip { from { transform: rotateX(90deg); } }
.cw-foot { display: flex; align-items: center; justify-content: space-between; }
.cw-list { list-style: none; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.cw-list.t0 { border-color: rgba(239,68,68,.4); }
.cw-list.t1 { border-color: rgba(59,130,246,.4); }
.cw-list li.me { color: var(--accent-hi); }
.cw-log { list-style: none; flex: 1; min-height: 120px; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; }
.cw-log li.t0 { color: #fca5a5; }
.cw-log li.t1 { color: #93c5fd; }
.cw-log li.k3 { color: var(--danger); font-weight: 700; }
@media (max-width: 760px) {
  .cw-game { grid-template-columns: 1fr; }
  .cw-side { grid-column: 1; grid-row: auto; }
  .cw-board { gap: 5px; }
  .cw-clueform input { width: 150px; }
}
@media (max-width: 520px) { .cw-teams { grid-template-columns: 1fr; } }

/* ---------- Chess ---------- */
.ch-wrap { display: flex; gap: 20px; align-items: flex-start; justify-content: center; width: 100%; flex-wrap: wrap; }
.ch-left { display: flex; flex-direction: column; gap: 8px; --b: min(560px, calc(100vw - 32px), calc(100vh - 220px)); width: var(--b); }
.ch-player { display: flex; align-items: center; gap: 10px; }
.ch-name { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-mat { font-family: var(--mono); font-size: 13px; color: var(--green); }
.ch-clock { padding: 4px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 20px; transition: background .2s, border-color .2s; }
.ch-clock.running { background: rgba(var(--accent-rgb),.2); border-color: var(--accent); }
.ch-clock.running.low { background: rgba(244,63,94,.2); border-color: var(--danger); }
.ch-board-wrap { position: relative; }
.ch-board {
  width: var(--b); height: var(--b); display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 80px -40px var(--accent-glow); user-select: none;
}
.sq-c { position: relative; display: grid; place-items: center; padding: 0; cursor: default; }
.sq-c.light { background: #f3dbe7; }
.sq-c.dark { background: #b0527f; }
.ch-board.live .sq-c { cursor: pointer; }
.sq-c.last.light { background: #e6dc8a; }
.sq-c.last.dark { background: #b4a55c; }
.sq-c.sel { box-shadow: inset 0 0 0 4px rgba(255,255,255,.85); }
.sq-c.check { background: radial-gradient(circle, #ff5b5b 0%, #c02b2b 60%, transparent 90%) !important; }
.sq-c.dot::after { content: ""; position: absolute; width: 28%; height: 28%; border-radius: 50%; background: rgba(25, 25, 25,.35); }
.sq-c.cap::after { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 5px solid rgba(25, 25, 25,.35); }
.pc { font-size: calc(var(--b) / 8 * .78); line-height: 1; position: relative; z-index: 1; font-family: "Segoe UI Symbol", "Noto Sans Symbols2", "DejaVu Sans", sans-serif; }
.pc.w { color: #fff; text-shadow: 0 0 1px #000, 0 0 2px #000, 0 2px 3px rgba(0,0,0,.5); }
.pc.b { color: #171717; text-shadow: 0 0 1px #fff, 0 1px 0 rgba(255,255,255,.35), 0 2px 3px rgba(0,0,0,.4); }
.coord { position: absolute; font-size: 10px; font-weight: 700; color: rgba(25, 25, 25,.55); }
.coord.rank { top: 3px; left: 4px; }
.coord.file { bottom: 2px; right: 4px; }
.ch-promo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(0,0,0,.7); border-radius: 12px; z-index: 3; }
.ch-promo button { width: 70px; height: 70px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 48px; }
.ch-promo button:hover { border-color: var(--accent); }
.ch-side { width: 260px; display: flex; flex-direction: column; gap: 10px; }
.ch-status { font-weight: 600; min-height: 22px; }
.ch-draw { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--accent-rgb),.14); border: 1px solid rgba(var(--accent-hi-rgb),.45); font-size: 14px; }
.ch-moves { list-style: none; height: 300px; overflow-y: auto; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.ch-moves li { display: grid; grid-template-columns: 36px 1fr 1fr; padding: 2px 4px; border-radius: 6px; }
.ch-moves li:nth-child(odd) { background: rgba(255,255,255,.03); }
.ch-moves .mn { color: var(--dim); }
.ch-actions { display: flex; gap: 8px; }
.ch-actions .btn { flex: 1; }
@media (max-width: 900px) { .ch-side { width: var(--b, 100%); max-width: 560px; } .ch-moves { height: 120px; } }

/* ---------- Type Race ---------- */
.tr { gap: 16px; }
.tr-banner { font-size: 18px; font-weight: 600; min-height: 26px; }
.tr-lanes { width: min(860px, 100%); display: flex; flex-direction: column; gap: 8px; }
.tr-lane { display: grid; grid-template-columns: 130px 1fr 110px; gap: 12px; align-items: center; }
.tr-who { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tr-lane.me .tr-who { color: var(--accent-hi); }
.tr-track { position: relative; height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.tr-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(var(--accent-rgb),.05), rgba(var(--accent-rgb),.3)); transition: width .25s linear; }
.tr-lane.done .tr-fill { background: linear-gradient(90deg, rgba(34,197,94,.05), rgba(34,197,94,.3)); }
.tr-car { position: absolute; top: 3px; transition: left .25s linear; }
.tr-car .avatar { width: 28px; height: 28px; font-size: 15px; }
.tr-stat { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; }
.tr-box { width: min(860px, 100%); padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; transition: opacity .2s; }
.tr-box.locked { opacity: .6; }
.tr-passage { font-size: 22px; line-height: 1.6; font-family: var(--mono); color: var(--dim); cursor: text; user-select: none; }
.tr-passage .done { color: var(--green); }
.tr-passage .cur { color: var(--text); background: rgba(var(--accent-rgb),.35); border-radius: 3px; box-shadow: 0 2px 0 var(--accent-hi); }
.tr-passage .cur.wrong { background: rgba(244,63,94,.5); box-shadow: 0 2px 0 var(--danger); }
.tr-input {
  height: 44px; padding: 0 14px; border-radius: 10px; background: var(--field); border: 1px solid var(--line-2); color: var(--text);
  font: 16px var(--mono); outline: none;
}
.tr-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2); }
.tr-mystats { font-size: 13px; font-family: var(--mono); }
@media (max-width: 640px) {
  .tr-lane { grid-template-columns: 1fr 70px; }
  .tr-who { grid-column: 1 / -1; }
  .tr-passage { font-size: 17px; }
}

/* ---------- RPS Tournament ---------- */
.rps { gap: 18px; }
.rps-round { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); }
.rps-arena { width: min(620px, 100%); padding: 22px; border-radius: 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 16px; align-items: center; box-shadow: var(--shadow-lg); }
.rps-vs { display: flex; align-items: center; justify-content: space-around; width: 100%; }
.rps-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 140px; }
.rps-side b { font-size: 15px; }
.rps-x { font-weight: 800; font-size: 20px; color: var(--dim); }
.rps-dots { display: flex; gap: 5px; }
.rps-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); }
.rps-dots i.on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.rps-timer { width: 100%; height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.rps-timer i { display: block; height: 100%; background: var(--grad); }
.rps-reveal { min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.rps-throws { display: flex; align-items: center; gap: 24px; animation: pop .3s ease; }
.big-ico { font-size: 64px; line-height: 1; }
.rps-throws .vs { color: var(--dim); font-weight: 700; }
.rps-msg { font-size: 17px; font-weight: 600; text-align: center; }
.rps-msg.good { color: var(--green); }
.rps-msg.bad { color: var(--danger); }
.rps-buttons { display: flex; gap: 12px; }
.rps-btn { width: 116px; height: 116px; border-radius: 22px; background: var(--surface-3); border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: transform .1s, border-color .15s, background .15s; }
.rps-btn:hover { transform: translateY(-3px); border-color: var(--accent-hi); }
.rps-btn.on { background: rgba(var(--accent-rgb),.3); border-color: var(--accent); }
.rps-ico { font-size: 48px; line-height: 1; }
.rps-lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.rps-spec { font-size: 14px; }
.rps-bracket { display: flex; gap: 16px; overflow-x: auto; max-width: 100%; padding-bottom: 60px; }
.br-col { display: flex; flex-direction: column; gap: 10px; justify-content: space-around; min-width: 170px; }
.br-title { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); text-align: center; }
.br-col.cur .br-title { color: var(--accent-hi); }
.br-match { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.br-match.mine { border-color: rgba(var(--accent-rgb),.55); }
.br-row { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 13px; }
.br-row + .br-row { border-top: 1px solid var(--line); }
.br-row .avatar.xs { margin: 0; }
.br-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-w { font-family: var(--mono); color: var(--muted); }
.br-row.won { background: rgba(34,197,94,.1); font-weight: 600; }
.br-row.lost { opacity: .45; }
@media (max-width: 520px) {
  .rps-btn { width: 92px; height: 92px; }
  .rps-ico { font-size: 38px; }
  .big-ico { font-size: 48px; }
  .rps-side { min-width: 100px; }
}

/* ---------- Snake Battle ---------- */
.sn-scores { flex: none; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 12px 16px 0; }
.sn-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.sn-chip .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.sn-chip b { font-family: var(--mono); margin-left: 2px; }
.sn-chip.me { border-color: var(--c); }
.sn-chip.gone { opacity: .35; }

/* ---------- Most Likely To ---------- */
.ml-top { width: min(820px, 100%); }
.ml-timer { font-family: var(--mono); font-size: 18px; color: var(--text); min-width: 40px; text-align: right; }
.ml-prompt { width: min(820px, 100%); text-align: center; font-size: clamp(24px, 4vw, 36px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.ml-choices { width: min(820px, 100%); }
.ml-choices.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ml-choices.wyr { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.ml-or { align-self: center; font-weight: 800; color: var(--dim); text-transform: uppercase; }
.ml-opt {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; text-align: left; transition: border-color .15s, transform .1s, background .15s;
}
.ml-choices.wyr .ml-opt { min-height: 150px; justify-content: center; text-align: center; font-size: 20px; flex-direction: column; }
.ml-opt:not(:disabled):hover { border-color: var(--accent-hi); transform: translateY(-2px); }
.ml-opt:disabled { cursor: default; }
.ml-opt.picked { border-color: var(--accent); background: rgba(var(--accent-rgb),.18); }
.ml-opt.top { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.ml-label { position: relative; z-index: 1; }
.ml-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(var(--accent-rgb),.22); z-index: 0; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.ml-opt.top .ml-bar { background: rgba(34,197,94,.22); }
.ml-who { position: relative; z-index: 1; display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.ml-choices.wyr .ml-who { margin: 0; justify-content: center; }
.ml-n { position: relative; z-index: 1; font-family: var(--mono); }
.ml-opt .avatar { position: relative; z-index: 1; }
@media (max-width: 640px) { .ml-choices.wyr { grid-template-columns: 1fr; } .ml-or { text-align: center; } .ml-choices.wyr .ml-opt { min-height: 90px; } }

/* ---------- Bluff ---------- */
.bl-q { width: min(820px, 100%); }
.bl-write { width: min(820px, 100%); display: flex; gap: 8px; }
.bl-write input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px; background: var(--field); border: 1px solid var(--line-2);
  color: var(--text); font: 600 18px var(--sans); outline: none;
}
.bl-write input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2); }
.bl-write input:disabled { opacity: .6; }
.bl-write .btn { height: 52px; }
.bl-options { width: min(820px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bl-opt {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 58px; padding: 12px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; font-size: 17px; text-align: left; text-transform: capitalize;
  transition: border-color .15s, transform .1s;
}
button.bl-opt:not(:disabled):hover { border-color: var(--accent-hi); transform: translateY(-2px); }
button.bl-opt:disabled { opacity: .55; cursor: default; }
.bl-opt.revealed { animation: rise .25s ease; }
.bl-opt.truth { border-color: var(--green); background: rgba(34,197,94,.12); box-shadow: 0 0 0 2px var(--green); }
.bl-text { flex: 1 1 100%; }
.bl-by { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: none; }
.bl-opt.truth .bl-by { color: #86efac; }
.bl-who { display: flex; gap: 2px; margin-left: auto; }
@media (max-width: 640px) { .bl-options { grid-template-columns: 1fr; } }

/* ---------- Hangman ---------- */
.hm-stage { width: min(820px, 100%); display: flex; gap: 24px; align-items: center; }
.hm-gallows { width: 170px; flex: none; }
.hm-gallows path, .hm-gallows circle { stroke: var(--surface-3); stroke-width: 6; transition: stroke .3s; }
.hm-gallows .on { stroke: var(--text); }
.hm-gallows #hm-head.on, .hm-gallows #hm-body.on, .hm-gallows #hm-arms.on, .hm-gallows #hm-legs.on { stroke: var(--danger); }
.hm-right { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.hm-puzzle { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hm-word { display: flex; gap: 5px; }
.hm-tile {
  width: clamp(26px, 5vw, 42px); height: clamp(34px, 6vw, 52px); display: grid; place-items: center; border-radius: 8px;
  background: var(--surface); border-bottom: 3px solid var(--line-3); font: 700 clamp(18px, 3.4vw, 28px) var(--mono);
}
.hm-tile.open { background: var(--surface-2); border-color: var(--accent); animation: pop .3s ease; }
.hm-keys { width: min(640px, 100%); display: grid; grid-template-columns: repeat(13, 1fr); gap: 5px; }
.hm-key { height: 42px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); font: 700 15px var(--mono); transition: background .1s, border-color .1s; }
.hm-key:not(:disabled):hover { border-color: var(--accent-hi); background: var(--surface-3); }
.hm-key:disabled { cursor: default; opacity: .5; }
.hm-key.hit { background: rgba(34,197,94,.25); border-color: var(--green); opacity: 1; }
.hm-key.miss { background: rgba(244,63,94,.15); border-color: transparent; opacity: .45; text-decoration: line-through; }
.hm-solve { width: min(640px, 100%); }
@media (max-width: 640px) {
  .hm-stage { flex-direction: column; }
  .hm-gallows { width: 110px; }
  .hm-keys { grid-template-columns: repeat(9, 1fr); }
}

/* ---------- Bingo ---------- */
.bg-wrap { width: min(900px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.bg-caller, .bg-me { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bg-ball {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; font: 800 44px var(--sans); letter-spacing: -0.03em;
  background: radial-gradient(circle at 35% 30%, #fff, #d4d4de 55%, #9a9aa8); color: #171717;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.9), inset 0 -8px 16px rgba(0,0,0,.15), 0 0 0 10px var(--c, #ec4899);
}
.bg-ball[data-l="B"] { --c: #3b82f6; } .bg-ball[data-l="I"] { --c: #ef4444; } .bg-ball[data-l="N"] { --c: #e5e7eb; } .bg-ball[data-l="G"] { --c: #22c55e; } .bg-ball[data-l="O"] { --c: #f59e0b; }
.bg-ball.pop { animation: pop .4s cubic-bezier(.2,1.6,.4,1); }
.bg-recent { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; min-height: 28px; }
.bg-mini { font: 600 12px var(--mono); padding: 4px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); }
.bg-all { display: flex; flex-direction: column; gap: 3px; }
.bg-row { display: grid; grid-template-columns: 20px repeat(15, 20px); gap: 2px; font: 600 9px var(--mono); }
.bg-row b { color: var(--accent-hi); }
.bg-row span { height: 18px; display: grid; place-items: center; border-radius: 4px; color: var(--dim); background: var(--surface); }
.bg-row span.on { color: #fff; background: rgba(var(--accent-rgb),.45); }
.bg-card { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: min(380px, 100%); padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.bg-head { text-align: center; font: 800 22px var(--sans); color: var(--accent-hi); }
.bg-cell { aspect-ratio: 1; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font: 700 20px var(--mono); position: relative; transition: background .15s, transform .1s; }
.bg-cell:not(:disabled):hover { border-color: var(--accent-hi); }
.bg-cell.marked::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: rgba(244,63,94,.55); box-shadow: 0 0 12px rgba(244,63,94,.5); }
.bg-cell.free { color: var(--yellow); }
.bg-cell.free::after { background: rgba(250,204,21,.25); box-shadow: none; }
.bg-cell.line { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.bg-cell:disabled { cursor: default; }
.bg-btn { width: min(380px, 100%); height: 56px; font-size: 22px; letter-spacing: .06em; }
.bg-btn.ready { animation: nudgeBtn 1s ease-in-out infinite; box-shadow: 0 0 40px var(--accent-glow); }
@keyframes nudgeBtn { 50% { transform: scale(1.04); } }
@media (max-width: 760px) { .bg-wrap { grid-template-columns: 1fr; } .bg-caller { order: 1; } .bg-ball { width: 110px; height: 110px; font-size: 34px; } .bg-all { display: none; } }

/* ---------- Checkers ---------- */
.ck-board {
  --b: min(560px, calc(100vw - 32px), calc(100vh - 250px));
  width: var(--b); height: var(--b); display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px -40px var(--accent-glow);
}
.ck-sq { position: relative; display: grid; place-items: center; padding: 0; cursor: default; min-height: 0; overflow: hidden; }
.ck-sq.light { background: #e8dcc4; }
.ck-sq.dark { background: #5b4636; }
.ck-sq.last { box-shadow: inset 0 0 0 3px rgba(250,204,21,.6); }
.ck-sq.target { cursor: pointer; }
.ck-sq.target::after { content: ""; width: 30%; height: 30%; border-radius: 50%; background: rgba(var(--accent-rgb),.75); box-shadow: 0 0 14px var(--accent); }
.ck-pc {
  width: 78%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: calc(var(--b) / 8 * .36); line-height: 1; transition: transform .15s;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.25), inset 0 0 0 5px rgba(255,255,255,.12), 0 4px 8px rgba(0,0,0,.5);
}
.ck-pc.s0 { background: radial-gradient(circle at 35% 30%, #f87171, #b91c1c); color: #fecaca; }
.ck-pc.s1 { background: radial-gradient(circle at 35% 30%, #f4f4f5, #a1a1aa); color: #414141; }
.ck-board.live .ck-pc.can { cursor: pointer; }
.ck-board.live .ck-pc.can:hover { transform: scale(1.06); }
.ck-pc.sel { box-shadow: 0 0 0 3px var(--accent-hi), 0 0 20px var(--accent-glow); transform: scale(1.08); }

/* ---------- Ultimate Tic-Tac-Toe ---------- */
.ut-board { --b: min(560px, calc(100vw - 32px), calc(100vh - 250px)); width: var(--b); height: var(--b); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ut-small { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 5px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s, opacity .2s; }
.ut-small.active { border-color: var(--accent-hi); box-shadow: 0 0 0 2px rgba(var(--accent-hi-rgb),.5), 0 0 30px -8px var(--accent-glow); }
.ut-small.done .ut-cell { opacity: .25; }
.ut-small.big-line { box-shadow: 0 0 0 3px var(--green); }
.ut-cell { border-radius: 6px; background: var(--surface-2); font: 800 calc(var(--b) / 20) var(--sans); display: grid; place-items: center; padding: 0; }
.ut-cell:not(:disabled):hover { background: var(--surface-3); }
.ut-cell:disabled { cursor: default; }
.ut-cell.m1 { color: #ff5b3a; }
.ut-cell.m2 { color: #4d8dff; }
.ut-cell.last { box-shadow: inset 0 0 0 2px var(--yellow); }
.ut-big { position: absolute; inset: 0; display: grid; place-items: center; font: 800 calc(var(--b) / 5) var(--sans); pointer-events: none; animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.ut-small.w1 .ut-big { color: #ff5b3a; text-shadow: 0 0 30px rgba(255,91,58,.6); }
.ut-small.w2 .ut-big { color: #4d8dff; text-shadow: 0 0 30px rgba(77,141,255,.6); }

/* ---------- Dots & Boxes ---------- */
.db-board {
  --b: min(520px, calc(100vw - 40px), calc(100vh - 260px));
  width: var(--b); height: var(--b); display: grid;
}
.db-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--text); box-shadow: 0 0 8px rgba(255,255,255,.3); z-index: 1; }
.db-line { padding: 0; border-radius: 6px; background: transparent; position: relative; }
.db-line::before { content: ""; position: absolute; border-radius: 4px; background: var(--surface-3); transition: background .15s; }
.db-line.h::before { left: -2px; right: -2px; top: 4px; bottom: 4px; }
.db-line.v::before { top: -2px; bottom: -2px; left: 4px; right: 4px; }
.db-board.live .db-line:not(:disabled):hover::before { background: var(--accent-hi); }
.db-line:disabled { cursor: default; }
.db-line.s0::before { background: #ff5b3a; box-shadow: 0 0 10px rgba(255,91,58,.6); }
.db-line.s1::before { background: #4d8dff; box-shadow: 0 0 10px rgba(77,141,255,.6); }
.db-line.last::before { outline: 2px solid var(--yellow); }
.db-box { display: grid; place-items: center; font-weight: 700; font-size: 13px; border-radius: 4px; margin: 3px; }
.db-box.s0 { background: rgba(255,91,58,.25); color: #fecaca; animation: pop .3s ease; }
.db-box.s1 { background: rgba(77,141,255,.25); color: #bfdbfe; animation: pop .3s ease; }

/* ---------- Mini Golf ---------- */
.gf-top { flex: none; text-align: center; padding: 10px 16px 0; font: 500 13px/1.4 "Geist Mono", monospace; color: var(--dim); }
.gf-wrap { flex: none; display: flex; justify-content: center; padding: 0 16px 10px; overflow-x: auto; }
.gf-card { border-collapse: collapse; font: 500 12px/1 "Geist Mono", monospace; }
.gf-card th, .gf-card td { padding: 6px 9px; text-align: center; border: 1px solid var(--line); }
.gf-card th { text-align: left; color: var(--dim); font-weight: 500; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-card tr.head td, .gf-card tr.par td { color: var(--dim); }
.gf-card tr.p0 td:last-child, .gf-card tr.p1 td:last-child { font-weight: 700; color: var(--text); }
.gf-card tr.p0 th { box-shadow: inset 3px 0 #ff5b3a; }
.gf-card tr.p1 th { box-shadow: inset 3px 0 #4d8dff; }
.game-page #c { touch-action: none; }

/* ---------- Wavelength ---------- */
.wl-clue.wait { color: var(--muted); font-size: clamp(18px, 3vw, 24px); font-weight: 600; }
.wl-dial { width: min(820px, 100%); }
.wl-ends { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.wl-ends span:first-child { color: #60a5fa; } .wl-ends span:last-child { color: #f472b6; }
.wl-track { position: relative; height: 84px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(90deg, rgba(96,165,250,.28), rgba(var(--accent-rgb),.18) 50%, rgba(244,114,182,.28)); }
.wl-track input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; touch-action: none; }
.wl-track input:disabled { cursor: default; pointer-events: none; }
.wl-thumb { position: absolute; top: -6px; bottom: -6px; width: 6px; margin-left: -3px; border-radius: 3px; background: #fff; box-shadow: 0 0 16px rgba(255,255,255,.7); pointer-events: none; }
.wl-target { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.wl-target i { position: absolute; top: 0; bottom: 0; left: var(--x); transform: translateX(-50%); }
.wl-target .z3 { width: 40%; background: rgba(250,204,21,.14); }
.wl-target .z2 { width: 24%; background: rgba(250,204,21,.22); }
.wl-target .z1 { width: 10%; background: rgba(250,204,21,.55); }
.wl-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.wl-mark .avatar { box-shadow: 0 0 0 2px #0a0a0f; }
.wl-mark.me .avatar { box-shadow: 0 0 0 2px var(--accent); }
.wl-form { display: flex; gap: 8px; width: min(560px, 100%); }
.wl-form input { flex: 1; }
/* shared text field for newer party games */
.wl-form input, .p-input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--field); border: 1px solid var(--line-2);
  color: var(--text); font: 600 16px var(--sans); outline: none;
}
.wl-form input:focus, .p-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2); }

/* ---------- Imposter ---------- */
.im-card { width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(var(--accent-rgb),.14), rgba(var(--accent-rgb),.04)); text-align: center; }
.im-card.imp { background: linear-gradient(180deg, rgba(244,63,94,.2), rgba(244,63,94,.05)); border-color: rgba(244,63,94,.5); }
.im-cat { font-size: 13px; color: var(--muted); } .im-cat b { color: var(--text); }
.im-hint { order: 3; font-size: 13px; color: var(--muted); }
.im-word { font-size: clamp(26px, 5vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.im-card.imp .im-word { color: #fda4af; }
.im-list { width: min(720px, 100%); display: flex; flex-direction: column; gap: 8px; }
.im-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; text-align: left; }
button.im-row { cursor: pointer; } button.im-row:hover { border-color: var(--accent-hi); }
.im-row.turn { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.im-row.picked { border-color: var(--accent); background: rgba(var(--accent-rgb),.18); }
.im-row.imp { border-color: #f43f5e; background: rgba(244,63,94,.14); }
.im-name { font-weight: 600; min-width: 90px; }
.im-words { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.im-words b { font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.im-typing { color: var(--dim); animation: pulse 1s infinite; }
.im-votes { font: 600 12px var(--mono); color: #fda4af; }
.im-voted { font: 500 12px var(--mono); color: var(--dim); }
.im-opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: min(720px, 100%); }

/* ---------- Telephone ---------- */
.tp-play, .tp-show { width: min(760px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tp-task { font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: -0.02em; text-align: center; }
.tp-prompt { font-size: clamp(22px, 4vw, 32px); font-weight: 800; text-align: center; padding: 12px 22px; border-radius: 14px; background: rgba(var(--accent-rgb),.14); border: 1px solid rgba(var(--accent-rgb),.4); }
.tp-padwrap { width: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; }
#pad, #see, .tp-item canvas { width: min(100%, 640px); aspect-ratio: 4 / 3; height: auto; border-radius: 14px; background: #fff; display: block; }
#pad { touch-action: none; cursor: crosshair; box-shadow: 0 0 0 1px var(--line-2); }
.tp-see { width: 100%; display: flex; justify-content: center; }
.tp-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.tp-colors, .tp-sizes { display: flex; gap: 6px; }
.tp-color { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-3); cursor: pointer; }
.tp-color.on { box-shadow: 0 0 0 3px var(--accent); }
.tp-size { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.tp-size i { display: block; border-radius: 50%; background: var(--text); }
.tp-size.on { border-color: var(--accent); background: rgba(var(--accent-rgb),.18); }
.tp-chain { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.tp-item { width: min(100%, 640px); display: flex; flex-direction: column; gap: 8px; animation: rise .3s ease; }
.tp-item.text p { font-size: clamp(20px, 3vw, 26px); font-weight: 700; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); text-align: center; }
.tp-who { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.tp-item canvas { width: min(100%, 460px); align-self: center; }

/* ---------- Poker ---------- */
.pk-seats { width: min(980px, 100%); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pk-seat { position: relative; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, box-shadow .2s, opacity .2s; }
.pk-seat.me { border-color: rgba(var(--accent-rgb),.5); }
.pk-seat.turn { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 30px -8px var(--accent-glow); }
.pk-seat.folded { opacity: .45; }
.pk-seat.out { opacity: .3; }
.pk-seat.won { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.pk-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pk-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-dealer { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #111; font: 800 11px/20px var(--sans); text-align: center; flex: none; }
.pk-chips { font: 600 15px var(--mono); color: #fcd34d; }
.pk-last { font-size: 12px; color: var(--muted); }
.pk-last.hand { color: var(--green); font-weight: 600; }
.pk-hole { display: flex; gap: 4px; min-height: 0; }
.pk-table { width: min(700px, 100%); padding: 22px 16px; border-radius: 120px; background: radial-gradient(ellipse at center, #17613a 0%, #0f4a2b 70%, #0b3620 100%); border: 8px solid #3a2616; box-shadow: inset 0 0 40px rgba(0,0,0,.5), 0 20px 40px -20px rgba(0,0,0,.8); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pk-board { display: flex; gap: 8px; }
.pk-pot { font: 700 15px var(--mono); color: #fde68a; min-height: 20px; }
.pk-log { font-size: 13px; color: #d1fae5; min-height: 18px; text-align: center; }
.pk-card { width: 34px; height: 48px; border-radius: 6px; background: #fafafa; color: #111; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.35); font-family: var(--sans); }
.pk-card b { font-size: 15px; font-weight: 800; }
.pk-card i { font-style: normal; font-size: 15px; }
.pk-card.red { color: #dc2626; }
.pk-card.big { width: 54px; height: 76px; border-radius: 8px; }
.pk-card.big b, .pk-card.big i { font-size: 22px; }
.pk-card.back { background: repeating-linear-gradient(45deg, #be185d 0 6px, #db2777 6px 12px); border: 2px solid #fff; }
.pk-card.slot { background: rgba(0,0,0,.2); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.pk-me { width: min(980px, 100%); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.pk-mine { display: flex; align-items: center; gap: 12px; }
.pk-mychips { font: 700 16px var(--mono); color: #fcd34d; }
.pk-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.pk-raise { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); }
.pk-raise input { width: 140px; accent-color: var(--accent); }
@media (max-width: 640px) { .pk-table { border-radius: 40px; } .pk-card.big { width: 44px; height: 62px; } }
.btn.sm { height: 32px; padding: 0 10px; font-size: 12px; }
.btn.danger { background: rgba(244,63,94,.16); border-color: rgba(244,63,94,.5); color: #fda4af; }
.btn.danger:hover { background: rgba(244,63,94,.28); }

/* ---------- Reaction Duel ---------- */
.rx { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 16px 76px; gap: 10px; }
.rx-pad { flex: 1; min-height: 240px; width: 100%; border-radius: 24px; border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; color: #fff; font: inherit; touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; transition: background .08s; }
.rx-pad strong { font-size: clamp(34px, 7vw, 72px); font-weight: 800; letter-spacing: -0.04em; }
.rx-pad span { font-size: 16px; opacity: .85; font-weight: 500; }
.rx-pad.wait { background: #7f1d1d; }
.rx-pad.fake { background: #1e3a8a; }
.rx-pad.go { background: #16a34a; transition: none; }
.rx-pad.early { background: #9a3412; }
.rx-pad.done { background: #1f2937; }
.rx-pad.win { background: linear-gradient(135deg, #15803d, #0f766e); }
.rx-pad.lose { background: #27272a; }

/* ---------- Tournament ---------- */
.cup-mine { width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border-radius: 18px; border: 1px solid rgba(var(--accent-rgb), .5); background: linear-gradient(180deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .04)); text-align: center; }
.cup-mine strong { font-size: 20px; }
.cup-mine .row { display: flex; gap: 8px; }
.cup-bracket { width: 100%; max-width: 1000px; display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 12px; justify-content: center; }
.cup-col { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; min-width: 190px; }
.cup-round { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); text-align: center; }
.cup-match { border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; }
.cup-match.live { border-color: rgba(var(--accent-rgb), .6); }
.cup-match.mine { box-shadow: 0 0 0 2px var(--accent); }
.cup-p { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 14px; font-weight: 500; }
.cup-p + .cup-p { border-top: 1px solid var(--line); }
.cup-p > span:not(.avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cup-p.won { background: rgba(34,197,94,.14); font-weight: 700; }
.cup-p.lost { opacity: .45; }
.cup-set { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.cup-set:hover { color: var(--text); border-color: var(--accent); }
.cup-games { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cup-games button { padding: 6px 10px; border-radius: 8px; font-size: 13px; background: var(--field); border: 1px solid var(--line-2); color: var(--muted); }
.cup-games button.on { border-color: var(--accent); color: var(--text); background: rgba(var(--accent-rgb), .16); }

/* ---------- Casino ---------- */
:root { --felt: #0f5132; }
.cs { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: 1fr 260px; gap: 16px; padding: 16px 16px 84px; max-width: 1200px; width: 100%; margin: 0 auto; }
.cs-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cs-wallet { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(250,204,21,.4); }
.cs-wallet b { font: 800 22px var(--mono); color: #fde047; }
.cs-wallet small { font-size: 11px; color: var(--dim); }
.cs-coin { font-size: 20px; }
.cs-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-chip { width: 44px; height: 44px; border-radius: 50%; font: 800 12px var(--mono); color: #fff; border: 3px dashed rgba(255,255,255,.55); box-shadow: 0 3px 8px rgba(0,0,0,.4); transition: transform .12s; }
.cs-chip.on { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--text), 0 6px 14px rgba(0,0,0,.4); }
.cs-chip.c5 { background: #e11d48; } .cs-chip.c25 { background: #16a34a; } .cs-chip.c100 { background: #111827; } .cs-chip.c500 { background: #db2777; }
.cs-chip.c2500 { background: #ea580c; } .cs-chip.c10000 { background: #0891b2; } .cs-chip.c50000 { background: linear-gradient(135deg, #facc15, #b45309); color: #1a1204; }
.cs-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.cs-tab { flex: 1; min-width: 110px; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.cs-tab.on { background: var(--surface-3); color: var(--text); }
.cs-pane { border-radius: 20px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 380px; }
.cs-pane.felt { background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--felt) 85%, white), var(--felt) 60%, color-mix(in srgb, var(--felt) 70%, black)); border: 6px solid #3a2616; box-shadow: inset 0 0 50px rgba(0,0,0,.45); color: #fff; }
.cs-pane[hidden] { display: none; }
.cs-msg { font-weight: 600; text-align: center; min-height: 22px; }
.cs-msg.good { color: #86efac; }
.cs-timer { font-family: var(--mono); color: #fde68a; margin-left: 6px; }
.cs-note { font-size: 12px; color: rgba(255,255,255,.6); text-align: center; }
.cs-pane:not(.felt) .cs-note, .cs-side .cs-note { color: var(--dim); text-align: left; }
.cs-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cs-controls { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bj-dealer { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bj-label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); }
.bj-cards { display: flex; gap: 6px; min-height: 76px; }
.bj-seats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bj-seat { min-width: 150px; padding: 10px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.bj-seat.turn { box-shadow: 0 0 0 2px #fde047; }
.bj-seat.me { border-color: rgba(255,255,255,.5); }
.bj-seat.r-win, .bj-seat.r-blackjack { background: rgba(34,197,94,.25); }
.bj-seat.r-bust, .bj-seat.r-lose { background: rgba(0,0,0,.45); opacity: .8; }
.bj-who { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.bj-who b { font: 700 12px var(--mono); color: #fde047; margin-left: 4px; }
.bj-total { font: 700 13px var(--mono); }
.gold { color: #fde047 !important; text-shadow: 0 0 10px rgba(250,204,21,.6); }
.rl-top { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: center; }
.rl-wheel-wrap { position: relative; width: 220px; height: 220px; flex: none; }
.rl-wheel { position: absolute; inset: 0; border-radius: 50%; border: 8px solid #7c5a2b; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.rl-wheel i { position: absolute; left: 50%; top: 50%; width: 20px; margin-left: -10px; margin-top: -7px; text-align: center; font: 700 9px var(--mono); color: #fff; font-style: normal; transform-origin: 50% 50%; }
.rl-wheel::after { content: ""; position: absolute; inset: 42px; border-radius: 50%; background: radial-gradient(circle, #5b3f1e, #3a2616); }
.rl-ball { position: absolute; top: -6px; left: 50%; width: 0; height: 0; margin-left: -9px; border: 9px solid transparent; border-top: 14px solid #fff; z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.rl-result { position: absolute; inset: 0; display: grid; place-items: center; font: 800 34px var(--sans); z-index: 1; pointer-events: none; }
.rl-result.red { color: #fca5a5; } .rl-result.black { color: #fff; } .rl-result.green { color: #86efac; }
.rl-board { display: flex; flex-direction: column; gap: 6px; max-width: 480px; }
.rl-nums { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.rl-nums .rl-n:first-child { grid-column: 1 / -1; }
.rl-n, .rl-o { position: relative; min-height: 32px; border-radius: 6px; font: 700 12px var(--mono); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.rl-n.red { background: #b91c1c; } .rl-n.black { background: #18181b; } .rl-n.green { background: #15803d; }
.rl-outs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.rl-o { background: rgba(0,0,0,.3); font-family: var(--sans); font-size: 13px; }
.rl-o.red { background: #b91c1c; } .rl-o.black { background: #18181b; }
.rl-n.bet::after, .rl-o.bet::after { content: attr(data-amt); position: absolute; top: -8px; right: -6px; min-width: 20px; padding: 1px 4px; border-radius: 999px; background: #fde047; color: #1a1204; font: 800 9px var(--mono); border: 2px dashed #fff; }
.rl-n.hit, .rl-o.hit { box-shadow: 0 0 0 3px #fde047, 0 0 16px #fde047; }
.slot-machine { display: flex; gap: 10px; padding: 18px; border-radius: 22px; background: linear-gradient(180deg, #414141, #18181b); border: 4px solid #eab308; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.reel { width: 96px; height: 110px; display: grid; place-items: center; font-size: 56px; border-radius: 12px; background: linear-gradient(180deg, #d4d4d8, #fff 40%, #fff 60%, #d4d4d8); box-shadow: inset 0 0 12px rgba(0,0,0,.35); }
.reel.stop { animation: pop .25s; }
.coin { position: relative; width: 150px; height: 150px; transform-style: preserve-3d; margin: 10px 0; }
.coin span { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font: 800 16px var(--sans); color: #1a1204; background: radial-gradient(circle at 35% 30%, #fef08a, #eab308 55%, #a16207); border: 6px solid #ca8a04; backface-visibility: hidden; padding: 12px; text-align: center; }
.coin .cb { transform: rotateY(180deg); background: radial-gradient(circle at 35% 30%, #e5e7eb, #9ca3af 55%, #4b5563); border-color: #6b7280; }
.coin.flip-a { animation: flip-a 1.8s cubic-bezier(.2,.8,.3,1) forwards; }
.coin.flip-b { animation: flip-b 1.8s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes flip-a { from { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(1080deg) translateY(-40px); } to { transform: rotateY(2160deg); } }
@keyframes flip-b { from { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(1170deg) translateY(-40px); } to { transform: rotateY(2340deg); } }
.cf-list, .cf-in { width: min(520px, 100%); display: flex; flex-direction: column; gap: 6px; }
.cf-row, .cf-offer { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.28); }
.cf-row > span:not(.avatar) { flex: 1; font-weight: 600; } .cf-row small { color: #fde68a; font-family: var(--mono); }
.cf-offer { background: rgba(250,204,21,.18); border: 1px solid rgba(250,204,21,.5); } .cf-offer span { flex: 1; }
.shop { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.shop-item.maxed { opacity: .6; }
.shop-i { font-size: 26px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); }
.shop-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shop-body b { font-size: 14px; } .shop-body small { font-size: 12px; color: var(--muted); }
.shop-extra { width: 100%; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.shop-extra h3, .cs-side h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.shop-extra .cs-row { justify-content: flex-start; width: 100%; }
.shop-extra .p-input { max-width: 360px; }
.felts { display: flex; gap: 8px; }
.felt-opt { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line-2); }
.felt-opt.on { box-shadow: 0 0 0 3px var(--text); } .felt-opt:disabled { opacity: .3; cursor: not-allowed; }
.cs-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cs-people { display: flex; flex-direction: column; gap: 4px; }
.cs-person { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface); font-size: 14px; }
.cs-person > span:not(.avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-person b { font: 700 13px var(--mono); color: #fde047; }
.cs-person.me { border: 1px solid rgba(var(--accent-rgb), .5); }
.cs-log { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .cs { grid-template-columns: 1fr; } .reel { width: 76px; height: 90px; font-size: 44px; } }

/* ---------- Word Hunt ---------- */
.wh-main { width: min(980px, 100%); display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.wh-left { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wh-current { height: 34px; font: 800 26px var(--mono); letter-spacing: .08em; color: var(--accent-hi); }
.wh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(360px, 88vw); aspect-ratio: 1; touch-action: none; user-select: none; }
.wh-tile { display: grid; place-items: center; border-radius: 16px; background: linear-gradient(180deg, #f5f0e6, #e3d8c3); color: #1c1917; font: 800 clamp(26px, 7vw, 38px) var(--sans); box-shadow: 0 5px 0 #b7a98c, 0 8px 18px rgba(0,0,0,.35); transition: transform .08s, background .08s; }
.wh-tile.on { background: linear-gradient(180deg, #f9a8d4, #ec4899); color: #fff; box-shadow: 0 5px 0 #9d174d, 0 8px 18px rgba(0,0,0,.35); transform: translateY(2px); }
.wh-tile.head { transform: translateY(2px) scale(1.04); }
.wh-flash { height: 22px; font: 700 15px var(--mono); }
.wh-flash.good { color: var(--green); } .wh-flash.bad { color: var(--danger); }
.wh-right { flex: 1; min-width: 260px; max-width: 520px; }
.wh-count { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.wh-words { display: flex; flex-wrap: wrap; gap: 6px; }
.wh-word { font: 700 13px var(--mono); padding: 4px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); }
.wh-word.dup { text-decoration: line-through; opacity: .45; }
.wh-reveal { display: flex; flex-direction: column; gap: 12px; }
.wh-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wh-head span { margin-left: auto; font: 700 14px var(--mono); color: var(--green); }
.wh-best { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- Categories ---------- */
.ct-letter { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 22px; font: 800 52px var(--sans); color: var(--on-accent, #fff); background: var(--grad); box-shadow: 0 12px 30px -10px var(--accent-glow); }
.ct-form { width: min(620px, 100%); display: flex; flex-direction: column; gap: 8px; }
.ct-row { display: grid; grid-template-columns: 220px 1fr; gap: 10px; align-items: center; }
.ct-cat { font-weight: 600; font-size: 14px; color: var(--muted); }
.ct-review { width: min(820px, 100%); display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ct-block { padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ct-answers { display: flex; flex-direction: column; gap: 5px; }
.ct-ans { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font: 500 14px var(--sans); text-align: left; }
button.ct-ans { cursor: pointer; } button.ct-ans:hover { border-color: var(--danger); }
.ct-ans > span:not(.avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ct-ans small { font-size: 11px; color: var(--dim); }
.ct-ans.rejected { border-color: var(--danger); background: rgba(244,63,94,.12); }
.ct-ans.ok { border-color: rgba(34,197,94,.5); } .ct-ans.ok small { color: var(--green); font-weight: 700; }
.ct-ans.dup span, .ct-ans.voted span, .ct-ans.letter span { text-decoration: line-through; opacity: .6; }
@media (max-width: 560px) { .ct-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Emoji Guess ---------- */
.em-clue { font-size: clamp(56px, 12vw, 96px); letter-spacing: .08em; line-height: 1.1; text-align: center; animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.em-hint { font: 700 clamp(18px, 3.4vw, 26px) var(--mono); letter-spacing: .18em; color: var(--muted); text-align: center; word-break: break-word; max-width: 100%; }
.em-hint.solved { color: var(--green); letter-spacing: .04em; font-family: var(--sans); }
.em-feed { list-style: none; width: min(520px, 100%); display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.em-feed li.ok { color: var(--green); font-weight: 700; }
.wl-form.shake { animation: dw-shake .35s; }

/* ---------- Mafia ---------- */
body[data-phase="night"] { background: radial-gradient(900px 500px at 50% -10%, rgba(30,58,138,.35), transparent 70%), #060606; }
.mf-role { width: min(560px, 100%); display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); }
.mf-role.mafia { border-color: rgba(244,63,94,.6); background: linear-gradient(135deg, rgba(244,63,94,.18), var(--surface)); }
.mf-role.doctor { border-color: rgba(34,197,94,.5); } .mf-role.detective { border-color: rgba(59,130,246,.5); }
.mf-icon { font-size: 40px; }
.mf-role p { font-size: 13px; color: var(--muted); } .mf-allies { color: #fda4af !important; }
.mf-news { font-size: 17px; font-weight: 600; text-align: center; min-height: 24px; }
.mf-people { width: min(720px, 100%); display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.mf-p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font: 500 14px var(--sans); text-align: left; }
button.mf-p { cursor: pointer; } button.mf-p:hover { border-color: var(--accent-hi); }
.mf-p.picked { border-color: var(--accent); background: rgba(var(--accent-rgb), .18); }
.mf-p.dead { opacity: .45; } .mf-p.dead .mf-name { text-decoration: line-through; }
.mf-p.ally { border-color: rgba(244,63,94,.45); }
.mf-name { font-weight: 600; flex: 1; min-width: 0; }
.mf-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); }
.mf-tag.mafia { color: #fda4af; } .mf-tag.doctor { color: #86efac; } .mf-tag.detective { color: #93c5fd; } .mf-tag.town { color: var(--muted); }
.mf-count { font: 700 12px var(--mono); color: #fde68a; }
#skip.picked { border-color: var(--accent); color: var(--text); }

/* ---------- Minesweeper Race ---------- */
.ms { gap: 12px; }
.ms-banner { font-size: 16px; }
.ms-bars { width: min(620px, 100%); display: flex; flex-direction: column; gap: 6px; }
.ms-bar { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; }
.ms-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ms-track i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .25s; }
.ms-tools { display: flex; gap: 12px; align-items: center; }
.ms-tools .btn.on { border-color: #f43f5e; color: #fda4af; }
.ms-left { font: 700 14px var(--mono); }
.ms-grid { display: grid; gap: 2px; width: min(620px, 94vw); padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); user-select: none; touch-action: manipulation; }
.ms-c { aspect-ratio: 1; border-radius: 4px; background: #3f7d3a; font: 800 clamp(11px, 2.4vw, 17px) var(--sans); display: grid; place-items: center; padding: 0; color: #fff; -webkit-tap-highlight-color: transparent; }
.ms-c.alt { background: #468c40; }
.ms-c:not(.o):hover { filter: brightness(1.15); }
.ms-c.o { background: #262116; } .ms-c.o.alt { background: #2d271a; }
.ms-c.boom { background: #b91c1c !important; }
.ms-c.f { font-size: clamp(10px, 2vw, 15px); }
.ms-c.mine { background: #414141 !important; }

/* ---------- Crewmates ---------- */
.cm-hud { flex: none; display: flex; gap: 16px; align-items: center; justify-content: center; padding: 10px 16px 0; flex-wrap: wrap; }
.cm-role { font: 800 13px var(--mono); letter-spacing: .1em; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); }
.cm-role.imp { color: #fda4af; background: rgba(244,63,94,.18); } .cm-role.crew { color: #93c5fd; background: rgba(59,130,246,.16); }
.cm-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.cm-track { width: 260px; height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line-2); }
.cm-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #4ade80); transition: width .4s; }
.cm-stage { position: relative; }
.cm-tasks { position: absolute; left: 24px; top: 24px; list-style: none; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.55); font-size: 12px; max-width: 250px; pointer-events: none; }
.cm-tasks li.done { color: #4ade80; text-decoration: line-through; }
.cm-tasks li.imp { color: #fda4af; }
.cm-actions { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 8px; }
.cm-actions .btn { height: 52px; padding: 0 18px; font-size: 15px; }
body.touching .cm-actions { bottom: 160px; }
.cm-meet .panel { width: min(560px, 100%); }
.cm-timer { font: 700 18px var(--mono); margin: 8px 0; }
.cm-votes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.cm-vote { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font: 600 14px var(--sans); text-align: left; }
button.cm-vote:hover { border-color: var(--accent); }
.cm-vote.dead { opacity: .4; text-decoration: line-through; }
.cm-vote span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cm-vote small { color: #fda4af; font-size: 11px; } .cm-vote b { font: 700 11px var(--mono); color: #fde68a; }
.cm-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.team-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.custom-q input.p-input { height: 38px; font-size: 14px; margin: 8px 0 6px; width: 100%; }

/* ---------- Casino: Crash, Plinko, Mines, Crates ---------- */
.cs-pane.cs-dark { background: radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), .16), transparent 70%), #070707; border: 1px solid rgba(var(--accent-rgb), .3); color: #fff; }
.cr-hist { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 26px; }
.cr-hist span { font: 600 12px var(--mono); padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: #cbd5e1; }
.cr-hist span.hi { background: rgba(var(--accent-rgb), .25); color: #fff; }
.cr-hist span.lo { background: rgba(239,68,68,.18); color: #fca5a5; }
.cr-stage { position: relative; width: 100%; max-width: 720px; }
.cr-stage canvas { width: 100%; height: auto; display: block; border-radius: 14px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); }
.cr-mult { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font: 800 clamp(36px, 8vw, 64px) var(--mono); letter-spacing: -0.04em; color: rgba(255,255,255,.35); pointer-events: none; }
.cr-mult.live { color: #fff; text-shadow: 0 0 30px var(--accent-glow); }
.cr-mult.crashed { color: #ef4444; text-shadow: 0 0 30px rgba(239,68,68,.6); }
.cr-controls { align-items: center; }
.cr-auto { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.75); }
.cr-auto input, .cr-auto select { width: 84px; height: 40px; border-radius: 10px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.18); color: #fff; font: 600 15px var(--mono); padding: 0 10px; }
.btn.cash { background: linear-gradient(135deg, #4ade80, #16a34a); color: #04210f; border-color: transparent; box-shadow: 0 8px 26px -8px rgba(34,197,94,.7); }
.cr-players { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 4px; }
.cr-p { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 13px; }
.cr-p > span:not(.avatar) { flex: 1; }
.cr-p small { font-family: var(--mono); color: rgba(255,255,255,.55); }
.cr-p b { font-family: var(--mono); min-width: 110px; text-align: right; }
.cr-p.out b { color: #4ade80; }
.cr-p.bust b { color: #f87171; }
.plk-risk { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.06); }
.plk-risk button { white-space: nowrap; padding: 6px 14px; border-radius: 8px; font-size: 14px; color: rgba(255,255,255,.7); }
.plk-risk button.on { background: var(--accent); color: var(--on-accent, #fff); }
#plkCanvas { width: 100%; max-width: 560px; height: auto; }
.mn-top { align-items: center; gap: 16px; }
.mn-info { font: 600 13px var(--mono); color: rgba(255,255,255,.7); }
.mn-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: min(100%, 380px); }
.mn-c { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(180deg, #232323, #161616); border: 1px solid rgba(255,255,255,.1); font-size: 28px; box-shadow: 0 4px 0 #0b060a; transition: transform .1s, background .15s; }
.mn-c:not(:disabled):hover { transform: translateY(-2px); background: linear-gradient(180deg, #303030, #1c1c1c); border-color: rgba(var(--accent-rgb), .6); }
.mn-c:disabled { cursor: default; }
.mn-c.gem { background: linear-gradient(180deg, rgba(var(--accent-rgb), .35), rgba(var(--accent-rgb), .15)); border-color: var(--accent); animation: pop .25s cubic-bezier(.2,1.6,.4,1); }
.mn-c.mine { background: #1c0b0b; }
.mn-c.boom { background: #7f1d1d; border-color: #ef4444; animation: pop .25s; }
.mn-c.dim { opacity: .45; }
.crate-pane { background: var(--surface); border: 1px solid var(--line); }
.crates { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; width: 100%; }
.crate { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); text-align: center; }
.crate-i { font-size: 48px; line-height: 1.1; filter: drop-shadow(0 6px 16px rgba(var(--accent-rgb), .4)); }
.crate small { font-size: 11px; color: var(--muted); min-height: 2.6em; }
.crate .btn { width: 100%; }
.crate-premium { border-color: rgba(var(--accent-rgb), .5); }
.crate-legend { background: radial-gradient(circle at 50% 0%, rgba(var(--accent-rgb), .25), transparent 70%), #000; border-color: var(--accent); }
.crate-reel { position: relative; width: 100%; overflow: hidden; border-radius: 14px; background: #000; border: 1px solid rgba(var(--accent-rgb), .45); padding: 10px 0; }
.crate-strip { display: flex; gap: 0; will-change: transform; }
.crate-tile { flex: none; width: 110px; height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-right: 1px solid rgba(255,255,255,.06); background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--rc) 35%, transparent)); border-bottom: 3px solid var(--rc); }
.crate-tile span { font-size: 38px; }
.crate-tile small { font-size: 10px; color: rgba(255,255,255,.7); max-width: 100px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crate-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.crate-owned-wrap { width: 100%; }
.crate-owned-wrap h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 8px; }
.crate-owned { display: flex; flex-wrap: wrap; gap: 6px; }
.crate-own { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: var(--surface-2); border: 1px solid var(--line); opacity: .45; }
.crate-own.has { opacity: 1; border-color: rgba(var(--accent-rgb), .5); }
.cs-top { list-style: none; counter-reset: rk; display: flex; flex-direction: column; gap: 4px; }
.cs-top li { counter-increment: rk; display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 5px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.cs-top li::before { content: counter(rk); font: 700 11px var(--mono); color: var(--dim); width: 16px; }
.cs-top li.cs-note::before { content: none; }
.cs-top li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-top li b { font-family: var(--mono); color: var(--accent-hi); font-size: 12px; }
.cs-top li.me { border-color: rgba(var(--accent-rgb), .6); }

/* ---------- Would You Rather ---------- */
.wy-opts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; width: min(860px, 100%); }
.wy-or { align-self: center; font: 800 18px var(--mono); color: var(--dim); text-transform: uppercase; }
.wy-opt { position: relative; overflow: hidden; min-height: 190px; padding: 22px 18px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  border: 2px solid var(--line-2); transition: transform .15s, border-color .15s, box-shadow .15s; }
.wy-opt.a { background: linear-gradient(160deg, rgba(var(--accent-rgb), .25), rgba(var(--accent-rgb), .06)); }
.wy-opt.b { background: linear-gradient(160deg, rgba(56, 189, 248, .22), rgba(56, 189, 248, .05)); }
.wy-opt b { position: relative; z-index: 1; font-size: clamp(18px, 3vw, 26px); line-height: 1.2; }
.wy-opt:not(:disabled):hover { transform: translateY(-3px); border-color: var(--line-3); }
.wy-opt.picked { border-color: var(--accent); box-shadow: 0 0 30px -8px var(--accent-glow); }
.wy-opt.b.picked { border-color: #38bdf8; box-shadow: 0 0 30px -8px rgba(56,189,248,.6); }
.wy-opt:disabled { cursor: default; }
.wy-fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--p, 0); background: rgba(255,255,255,.08); transition: height .6s cubic-bezier(.2,.8,.2,1); }
.wy-pct { position: relative; z-index: 1; font: 800 34px var(--mono); }
.wy-pct:empty { display: none; }
.wy-who { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
@media (max-width: 620px) { .wy-opts { grid-template-columns: 1fr; } .wy-opt { min-height: 130px; } }

/* =====================================================================
   Orbit Casino: full-page online casino layout
   ===================================================================== */
.casino-page { --gold: #ffd23f; --cs-bg: #080808; --cs-panel: #111111; --cs-panel2: #191919; background: radial-gradient(1200px 600px at 60% -10%, rgba(var(--accent-rgb), .14), transparent 70%), var(--cs-bg); }
.casino-page .cs-head { gap: 14px; height: 64px; padding: 0 16px; background: rgba(10, 10, 10, .92); border-bottom: 1px solid rgba(var(--accent-rgb), .25); }
.cs-logo { display: inline-flex; align-items: center; gap: 8px; font: 800 20px var(--sans); letter-spacing: .04em; color: #fff; white-space: nowrap; }
.cs-logo i { font-style: normal; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #000; border: 2px solid var(--accent); color: var(--accent-hi); box-shadow: 0 0 18px -4px var(--accent-glow); }
.cs-logo b { background: linear-gradient(90deg, var(--accent-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-head-mid { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.cs-head-right { display: flex; align-items: center; gap: 8px; }
.casino-page .cs-wallet { padding: 7px 14px; border-radius: 12px; background: #000; border: 1px solid rgba(255, 210, 63, .45); box-shadow: inset 0 0 16px rgba(255, 210, 63, .08); }
.casino-page .cs-wallet b { color: var(--gold); font-size: 20px; }
.cs-vip-badge { padding: 7px 12px; border-radius: 999px; font: 700 13px var(--sans); background: linear-gradient(135deg, rgba(255, 210, 63, .18), rgba(var(--accent-rgb), .18)); border: 1px solid rgba(255, 210, 63, .4); color: var(--on-accent, #fff); white-space: nowrap; }
.cs-app { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr) 270px; }
.cs-nav { overflow: auto; padding: 14px 10px 90px; border-right: 1px solid rgba(255,255,255,.06); background: rgba(12, 12, 12, .7); display: flex; flex-direction: column; gap: 14px; }
.cs-nav-group { display: flex; flex-direction: column; gap: 2px; }
.cs-nav-group h4 { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 0 10px 6px; }
.casino-page .cs-tab { flex: none; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); text-align: left; position: relative; }
.casino-page .cs-tab:hover { background: rgba(255,255,255,.04); color: var(--text); }
.casino-page .cs-tab.on { background: linear-gradient(90deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .04)); color: var(--on-accent, #fff); }
.casino-page .cs-tab.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
.cs-tab .ni { width: 22px; text-align: center; font-size: 16px; }
.cs-nav-note { font-size: 11px; color: var(--dim); padding: 6px 10px; line-height: 1.4; }
.casino-page .cs-main { display: flex; flex-direction: column; gap: 14px; overflow: auto; padding: 16px 20px 96px; max-width: none; margin: 0; grid-template-columns: none; }
.casino-page .cs-side { overflow: auto; padding: 16px 14px 96px; border-left: 1px solid rgba(255,255,255,.06); background: rgba(12, 12, 12, .7); }
.cs-side-card { padding: 12px; border-radius: 14px; background: var(--cs-panel); border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 8px; }
.cs-side-card .btn { margin-top: 4px; }
.casino-page .cs-bar { padding: 8px 12px; border-radius: 14px; background: var(--cs-panel); border: 1px solid rgba(255,255,255,.06); }
.cs-bar-label { font: 700 11px var(--mono); letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.casino-page .cs-pane { border-radius: 22px; min-height: 420px; }
.casino-page .cs-pane.cs-dark, .casino-page .pd-pane, .casino-page .vip-pane { background: radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), .14), transparent 70%), var(--cs-panel); border: 1px solid rgba(var(--accent-rgb), .22); color: #fff; }
/* ticker */
.cs-ticker { display: flex; align-items: center; gap: 10px; overflow: hidden; height: 36px; border-radius: 12px; background: #000; border: 1px solid rgba(255, 210, 63, .25); padding-left: 10px; }
.cs-tk-label { flex: none; font: 800 11px var(--mono); letter-spacing: .12em; color: #fff; background: #ef4444; padding: 3px 7px; border-radius: 6px; animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: .55; } }
.cs-tk-track { display: flex; gap: 40px; white-space: nowrap; animation: cs-tick 30s linear infinite; font-size: 13px; color: #fde68a; }
.cs-tk-track span::before { content: "✦ "; color: var(--accent-hi); }
@keyframes cs-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* lobby */
.casino-page .cs-lobby { background: none; border: 0; padding: 0; align-items: stretch; min-height: 0; }
.cs-hero { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 30px; border-radius: 22px; overflow: hidden; position: relative;
  background: radial-gradient(500px 260px at 90% 20%, rgba(255, 210, 63, .22), transparent 70%), radial-gradient(600px 300px at 0% 100%, rgba(var(--accent-rgb), .4), transparent 70%), linear-gradient(135deg, #131313, #070707); border: 1px solid rgba(var(--accent-rgb), .35); }
.cs-hero > div:first-child { flex: 1 1 340px; }
.cs-hero-kicker { font: 700 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cs-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -0.04em; margin: 6px 0 10px; }
.cs-hero h1 b { background: linear-gradient(90deg, var(--accent-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-hero p { color: rgba(255,255,255,.75); max-width: 460px; }
.cs-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cs-jackpot { flex: 0 0 auto; text-align: center; padding: 18px 26px; border-radius: 18px; background: #000; border: 2px solid var(--gold); box-shadow: 0 0 40px -10px rgba(255, 210, 63, .6), inset 0 0 30px rgba(255, 210, 63, .1); }
.cs-jackpot small { display: block; font: 800 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); }
.cs-jackpot b { display: block; font: 800 clamp(30px, 4vw, 42px) var(--mono); color: var(--gold); text-shadow: 0 0 20px rgba(255, 210, 63, .5); }
.cs-jackpot span { font-size: 12px; color: rgba(255,255,255,.6); }
.cs-cat { font-size: 18px; margin: 18px 0 10px; }
.cs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cs-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 12px; text-align: center;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 60%), linear-gradient(180deg, var(--c2), #050307); border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent); transition: transform .18s, box-shadow .18s; }
.cs-tile:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--c1) 80%, transparent); }
.cs-tile-i { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); font-size: 58px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); transition: transform .2s; }
.cs-tile:hover .cs-tile-i { transform: translateX(-50%) scale(1.12) rotate(-4deg); }
.cs-tile b { position: relative; font-size: 15px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.cs-tile em { position: absolute; top: 8px; left: 8px; font: 800 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; font-style: normal; background: var(--accent); color: var(--on-accent, #fff); }
.cs-tile em.tag-hot { background: #ef4444; } .cs-tile em.tag-jackpot, .cs-tile em.tag-free { background: var(--gold); color: #1a1000; } .cs-tile em.tag-new { background: #22c55e; }
.cs-tile-play { position: absolute; inset: auto 0 0 0; padding: 8px; font-weight: 700; font-size: 13px; background: var(--accent); color: var(--on-accent, #fff); transform: translateY(100%); transition: transform .18s; }
.cs-tile:hover .cs-tile-play, .cs-tile:focus-visible .cs-tile-play { transform: none; }
/* dice */
.dc-roll { font: 800 clamp(56px, 10vw, 88px) var(--mono); letter-spacing: -0.04em; color: #fff; }
.dc-roll.win { color: #4ade80; text-shadow: 0 0 30px rgba(74,222,128,.5); } .dc-roll.lose { color: #f87171; }
.dc-track { position: relative; width: min(560px, 100%); height: 22px; border-radius: 999px; background: linear-gradient(90deg, #22c55e 0 var(--t), #ef4444 var(--t) 100%); }
.dc-track.over { background: linear-gradient(90deg, #ef4444 0 var(--t), #22c55e var(--t) 100%); }
.dc-track input { position: absolute; inset: -6px 0; width: 100%; opacity: 0; cursor: pointer; }
.dc-track::after { content: ""; position: absolute; top: -8px; left: calc(var(--t) - 14px); width: 28px; height: 38px; border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.5); pointer-events: none; }
.dc-pin { position: absolute; top: -34px; width: 0; height: 0; opacity: 0; transition: left .4s, opacity .2s; border: 8px solid transparent; border-top-color: #fff; transform: translateX(-8px); }
.dc-pin.on { opacity: 1; }
.dc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(560px, 100%); }
.dc-stats > div { padding: 10px; border-radius: 12px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dc-stats small { font-size: 11px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }
.dc-stats b { font: 800 18px var(--mono); }
.dc-hist { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dc-hist span { font: 700 12px var(--mono); padding: 3px 8px; border-radius: 999px; background: rgba(239,68,68,.2); color: #fca5a5; }
.dc-hist span.win { background: rgba(34,197,94,.2); color: #86efac; }
/* keno */
.kn-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; width: min(560px, 100%); }
.kn-n { aspect-ratio: 1; border-radius: 10px; font: 800 15px var(--mono); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: transform .1s, background .15s; }
.kn-n:hover { transform: translateY(-2px); }
.kn-n.pick { background: rgba(var(--accent-rgb), .35); border-color: var(--accent); }
.kn-n.drawn { background: rgba(255,255,255,.18); color: #fff; animation: pop .25s; }
.kn-n.hit { background: linear-gradient(135deg, #facc15, #f59e0b); color: #1a1000; border-color: #fde047; animation: pop .25s; box-shadow: 0 0 16px rgba(250,204,21,.6); }
.kn-pays { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 24px; }
.kn-pays span { font: 600 12px var(--mono); padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.4); color: rgba(255,255,255,.7); }
.kn-pays span.on { background: var(--gold); color: #1a1000; }
/* hi-lo */
.hl-mult { text-align: center; }
.hl-mult small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hl-mult b { font: 800 40px var(--mono); color: var(--gold); }
.hl-cards { display: flex; gap: 8px; min-height: 120px; align-items: center; justify-content: center; flex-wrap: wrap; }
.hl-cards .pk-card:last-child { transform: scale(1.18); box-shadow: 0 0 0 3px var(--accent), 0 10px 30px rgba(0,0,0,.5); margin: 0 10px; }
.hl-cards .pk-card:not(:last-child) { opacity: .5; }
/* wheel + daily spin */
.wh-wrap { position: relative; width: min(420px, 90vw); }
.wh-wrap canvas { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.wh-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); border: 16px solid transparent; border-top: 28px solid #fff; filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); }
.wh-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 26%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #000; border: 3px solid var(--gold); font: 800 16px var(--mono); color: var(--gold); text-align: center; }
.wh-legend { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.wh-legend span { font: 600 12px var(--mono); padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.4); border-left: 4px solid var(--c); }
.sp-title { font-size: 24px; }
/* scratch */
.sc-tiers { display: flex; gap: 10px; }
.sc-tier { padding: 10px 18px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; background: linear-gradient(135deg, rgba(var(--accent-rgb), .3), rgba(var(--accent-rgb), .08)); border: 1px solid rgba(var(--accent-rgb), .5); color: var(--on-accent, #fff); }
.sc-tier:nth-child(2) { background: linear-gradient(135deg, rgba(255, 210, 63, .35), rgba(255, 210, 63, .08)); border-color: rgba(255, 210, 63, .6); }
.sc-tier:nth-child(3) { background: #000; border-color: #fff; }
.sc-tier b { font: 800 18px var(--mono); } .sc-tier small { font-size: 11px; opacity: .8; }
.sc-tier:disabled { opacity: .4; }
.sc-card { position: relative; width: min(360px, 86vw); aspect-ratio: 1; border-radius: 18px; padding: 14px; background: linear-gradient(135deg, var(--accent), #7a0a45); box-shadow: 0 20px 50px -16px rgba(0,0,0,.8); }
.sc-card.t1 { background: linear-gradient(135deg, #ffd23f, #8a5a00); } .sc-card.t2 { background: linear-gradient(135deg, #2d2d2d, #000); border: 2px solid #fff; }
.sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 100%; }
.sc-cell { display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.92); font-size: clamp(34px, 8vw, 50px); }
.sc-cell.hit { background: #fff7c2; box-shadow: 0 0 0 3px #facc15, 0 0 20px rgba(250,204,21,.8); animation: pop .3s; }
#scCover { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); border-radius: 12px; cursor: grab; touch-action: none; transition: opacity .5s; }
/* pink diamonds */
.casino-page .pd-pane { gap: 12px; }
.pd-top { width: min(640px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-title { font: 800 22px var(--sans); letter-spacing: .08em; background: linear-gradient(90deg, #ffc2e0, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-jp { text-align: right; padding: 6px 14px; border-radius: 12px; background: #000; border: 1px solid var(--gold); }
.pd-jp small { display: block; font: 800 10px var(--mono); letter-spacing: .14em; color: var(--accent-hi); }
.pd-jp b { font: 800 20px var(--mono); color: var(--gold); }
.pd-machine { position: relative; width: min(640px, 100%); padding: 14px; border-radius: 22px; background: linear-gradient(180deg, #1c1c1c, #070707); border: 3px solid var(--accent); box-shadow: 0 0 50px -12px var(--accent-glow), inset 0 0 30px rgba(0,0,0,.6); }
.pd-reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pd-reel { display: grid; grid-template-rows: repeat(3, 1fr); gap: 8px; border-radius: 12px; padding: 6px; background: linear-gradient(180deg, #fff, #f3e6ee); }
.pd-reel.spinning .pd-sym { filter: blur(2px); transform: translateY(4px); }
.pd-sym { aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(28px, 6vw, 46px); border-radius: 8px; transition: transform .1s; }
.pd-sym.win { background: rgba(var(--accent-rgb), .22); box-shadow: inset 0 0 0 2px var(--accent); animation: pd-pulse .8s ease-in-out infinite alternate; }
@keyframes pd-pulse { to { transform: scale(1.08); } }
.pd-lines { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); pointer-events: none; }
.pd-lines polyline { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; filter: drop-shadow(0 0 4px rgba(255,210,63,.8)); }
.pd-bar { width: min(640px, 100%); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.pd-bar > div { padding: 8px 12px; border-radius: 12px; background: #000; border: 1px solid rgba(255,255,255,.1); text-align: center; }
.pd-bar small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.pd-bar b { font: 800 18px var(--mono); color: var(--gold); }
.pd-spin { width: 130px; height: 64px; border-radius: 999px; font-size: 20px; letter-spacing: .1em; }
.pd-paytable { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; width: min(640px, 100%); }
.pd-pt { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.4); }
.pd-pt span { font-size: 22px; } .pd-pt small { font: 600 11px var(--mono); color: rgba(255,255,255,.7); }
/* baccarat */
.bac-hands { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: min(640px, 100%); }
.bac-side { padding: 12px; border-radius: 16px; background: rgba(0,0,0,.25); border: 2px solid rgba(255,255,255,.15); min-height: 150px; }
.bac-side.p { border-color: rgba(56,189,248,.6); } .bac-side.b { border-color: rgba(239,68,68,.6); }
.bac-side h3 { font-size: 14px; letter-spacing: .12em; display: flex; justify-content: space-between; margin-bottom: 8px; }
.bac-side h3 b { font: 800 22px var(--mono); }
.bac-bets { display: grid; grid-template-columns: 1fr 0.8fr 1fr; gap: 10px; width: min(640px, 100%); }
.bac-bet { position: relative; padding: 16px 10px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; border: 2px solid rgba(255,255,255,.3); background: rgba(0,0,0,.25); }
.bac-bet.p { border-color: #38bdf8; } .bac-bet.b { border-color: #ef4444; } .bac-bet.t { border-color: #4ade80; }
.bac-bet small { font-size: 11px; opacity: .7; }
.bac-bet span { font: 800 13px var(--mono); color: var(--gold); min-height: 16px; }
.bac-bet.on { background: rgba(255,255,255,.12); }
.bac-bet.won { box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(255,210,63,.6); }
.bac-road { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.bac-road i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 11px var(--mono); font-style: normal; color: #fff; }
.bac-road .rP { background: #0284c7; } .bac-road .rB { background: #dc2626; } .bac-road .rT { background: #16a34a; }
/* video poker */
.vp-table { width: min(520px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 12px 16px; border-radius: 14px; background: #0c0c0c; border: 2px solid #facc15; }
.vp-row { display: flex; justify-content: space-between; font: 700 13px var(--mono); color: #fde68a; }
.vp-row.hit { color: #fff; background: #b91c1c; border-radius: 6px; padding: 0 6px; }
.vp-hand { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.vp-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; }
.vp-card small { font: 800 12px var(--mono); color: var(--gold); min-height: 16px; letter-spacing: .1em; }
.vp-card.held .pk-card { transform: translateY(-8px); box-shadow: 0 0 0 3px var(--gold); }
/* horse racing */
.hr-track { width: min(720px, 100%); display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 16px; background: linear-gradient(90deg, #14532d, #166534 90%, #fff 90%, #fff 91%, #166534 91%); }
.hr-lane { position: relative; height: 42px; border-bottom: 1px dashed rgba(255,255,255,.2); }
.hr-num { position: absolute; left: -2px; top: 8px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 800 12px var(--mono); background: rgba(0,0,0,.4); }
.hr-horse { position: absolute; left: 0; top: 0; font-size: 32px; font-style: normal; transform: scaleX(-1); margin-left: 24px; filter: drop-shadow(0 0 6px var(--c)) drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.hr-board { width: min(720px, 100%); display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.hr-pick { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); color: #fff; text-align: left; }
.hr-pick:hover:not(:disabled) { border-color: var(--c); }
.hr-pick.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.hr-pick.won { box-shadow: 0 0 0 3px var(--gold); }
.hr-dot { grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font: 800 14px var(--mono); background: var(--c); color: #000; }
.hr-pick small { font: 800 16px var(--mono); color: var(--gold); }
.hr-pick em { grid-column: 2 / 4; font: 600 12px var(--mono); font-style: normal; color: rgba(255,255,255,.65); }
/* VIP */
.casino-page .vip-pane { align-items: stretch; }
.vip-hero { display: flex; gap: 20px; align-items: center; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,210,63,.18), rgba(var(--accent-rgb), .12)); border: 1px solid rgba(255,210,63,.4); }
.vip-hero > div:last-child { flex: 1; }
.vip-hero small { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.vip-hero h2 { font-size: 30px; margin: 2px 0 8px; }
.vip-badge-big { font-size: 64px; filter: drop-shadow(0 8px 20px rgba(255,210,63,.5)); }
.vip-claim { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 14px; background: #000; border: 1px solid rgba(255,255,255,.1); }
.vip-claim small { display: block; font-size: 11px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }
.vip-claim b { font: 800 24px var(--mono); color: var(--gold); }
.vip-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.vip-tier { padding: 12px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 2px; opacity: .6; }
.vip-tier.done { opacity: .85; } .vip-tier.on { opacity: 1; border-color: var(--gold); box-shadow: 0 0 24px -8px rgba(255,210,63,.6); }
.vip-i { font-size: 28px; } .vip-tier small { font-size: 12px; color: rgba(255,255,255,.6); } .vip-tier em { font-style: normal; font-size: 12px; color: var(--accent-hi); }
/* responsive */
@media (max-width: 1180px) { .cs-app { grid-template-columns: 200px minmax(0, 1fr); } .casino-page .cs-side { display: none; } }
@media (max-width: 820px) {
  .cs-app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .cs-nav { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 8px 10px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); gap: 4px; scrollbar-width: none; }
  .cs-nav-group { flex-direction: row; gap: 4px; }
  .cs-nav-group h4, .cs-nav-note { display: none; }
  .casino-page .cs-tab { white-space: nowrap; padding: 7px 10px; font-size: 13px; }
  .casino-page .cs-tab.on::before { display: none; }
  .casino-page .cs-main { padding: 12px 12px 96px; }
  .cs-logo { font-size: 16px; } .cs-logo i { width: 28px; height: 28px; }
  .casino-page .cs-head .back span, .cs-vip-badge, .pg-lvl-badge, .cs-admin, #inviteBtn { display: none; }
  .kn-grid { grid-template-columns: repeat(5, 1fr); }
  .bac-bets { grid-template-columns: 1fr 1fr 1fr; }
}
.casino-page .cs-main > *, .casino-page .cs-side > * { flex-shrink: 0; }
.casino-page .cs-side { display: flex; flex-direction: column; gap: 12px; }
.cs-ticker { position: relative; padding-left: 0 !important; }
.cs-tk-label { margin-left: 0; border-radius: 0 6px 6px 0; }
.cs-tk-label { position: relative; z-index: 2; box-shadow: 10px 0 12px 6px #000; }
@media (max-width: 1180px) { .casino-page .cs-side { display: none; } }
@media (max-width: 820px) {
  .casino-page .cs-wallet small, .casino-page .cs-logo b { display: none; }
  .casino-page .cs-head { gap: 8px; padding: 0 10px; }
  .casino-page .cs-wallet { padding: 6px 10px; }
  .casino-page .cs-wallet b { font-size: 16px; }
  .casino-page #daily { padding: 0 10px; font-size: 12px; white-space: nowrap; }
  .cs-hero { padding: 20px; }
  .cs-jackpot { width: 100%; }
  .cs-tiles { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
  .cs-tile-i { font-size: 44px; }
}

/* =====================================================================
   Cases, inventory, upgrader, case battles
   ===================================================================== */
.sk-art { display: block; width: 100%; }
.sk-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.sk-gold { display: grid; place-items: center; font-size: 40px; color: #e4ae39; text-shadow: 0 0 20px rgba(228,174,57,.8); height: 56px; }
.sk-gold.big { font-size: 52px; height: 70px; }
.sk-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: linear-gradient(180deg, #151515, #0c0c0c); border: 1px solid rgba(255,255,255,.08); border-bottom: 3px solid var(--rc); cursor: pointer; transition: transform .12s, box-shadow .12s; overflow: hidden; }
.sk-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 28%, transparent), transparent 65%); pointer-events: none; }
.sk-card:hover { transform: translateY(-2px); }
.sk-card.sel { box-shadow: 0 0 0 2px var(--gold, #ffd23f); }
.sk-card.sold { opacity: .35; }
.sk-card.tr::after { content: "TRACKER™"; position: absolute; top: 6px; right: 6px; font: 800 9px var(--mono); padding: 2px 5px; border-radius: 4px; background: #f97316; color: #000; }
.sk-card.fresh { animation: pop .35s cubic-bezier(.2,1.5,.4,1); }
.sk-info { position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sk-w { font-size: 11px; color: rgba(255,255,255,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-n { font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-wear { font: 500 11px var(--mono); color: rgba(255,255,255,.5); }
.sk-v { font: 800 13px var(--mono); font-style: normal; color: #ffd23f; }
.sk-card .btn { position: relative; margin-top: 4px; }
.sk-tile { flex: none; width: 128px; height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; border-right: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--rc) 30%, transparent)); border-bottom: 4px solid var(--rc); }
.sk-tile .sk-art { width: 100px; }
.sk-tile small { font-size: 11px; color: rgba(255,255,255,.75); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-tile.land { background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 20%, transparent), color-mix(in srgb, var(--rc) 55%, transparent)); box-shadow: inset 0 0 30px color-mix(in srgb, var(--rc) 60%, transparent); }
.casino-page .cases-pane, .casino-page .inv-pane, .casino-page .up-pane, .casino-page .bt-pane { align-items: stretch; }
.ca-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ca-case { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; border-radius: 16px; text-align: center; color: #fff;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c1) 40%, transparent), transparent 65%), linear-gradient(180deg, var(--c2), #050307); border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent); transition: transform .15s, box-shadow .15s; }
.ca-case:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -14px var(--c1); }
.ca-box { font-size: 64px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)) hue-rotate(0deg); }
.ca-case em { font: 800 15px var(--mono); font-style: normal; color: #ffd23f; }
.ca-case small { font-size: 11px; color: rgba(255,255,255,.6); }
.ca-open { display: flex; flex-direction: column; gap: 14px; }
.ca-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ca-head h2 { font-size: 22px; flex: 1; }
.ca-price { font: 800 16px var(--mono); color: #ffd23f; }
.ca-reels { display: flex; flex-direction: column; gap: 8px; }
.ca-reel { position: relative; overflow: hidden; border-radius: 14px; background: #000; border: 1px solid rgba(255,255,255,.1); padding: 6px 0; }
.ca-strip { display: flex; will-change: transform; }
.ca-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #ffd23f; box-shadow: 0 0 14px #ffd23f; z-index: 2; }
.ca-marker::before, .ca-marker::after { content: ""; position: absolute; left: -7px; border: 8px solid transparent; }
.ca-marker::before { top: 0; border-top-color: #ffd23f; } .ca-marker::after { bottom: 0; border-bottom-color: #ffd23f; }
.ca-actions { justify-content: flex-start; align-items: center; }
.ca-n, .up-mults { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.06); }
.ca-n button, .up-mults button { min-width: 38px; padding: 6px 12px; border-radius: 8px; color: rgba(255,255,255,.75); font-weight: 700; }
.ca-n button.on, .up-mults button.on { background: var(--accent); color: var(--on-accent, #fff); }
.ca-won { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; align-items: start; }
.ca-won .sk-card { animation: pop .4s cubic-bezier(.2,1.5,.4,1); }
.ca-won-bar { grid-column: 1 / -1; height: 0; }
.ca-sub { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); }
.ca-contents { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ca-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border-radius: 10px; background: rgba(0,0,0,.35); border-bottom: 3px solid var(--rc); text-align: center; }
.ca-item .sk-art { width: 96px; }
.ca-item small { font-size: 10px; color: rgba(255,255,255,.55); } .ca-item b { font-size: 12px; } .ca-item em { font: 700 11px var(--mono); font-style: normal; color: #ffd23f; }
.inv-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inv-top > div { padding: 8px 14px; border-radius: 12px; background: #000; border: 1px solid rgba(255,255,255,.1); }
.inv-top small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); }
.inv-top b { font: 800 18px var(--mono); color: #ffd23f; }
.inv-top select, .bt-form select { height: 40px; border-radius: 10px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.18); padding: 0 10px; font: inherit; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.inv-grid.small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-height: 420px; overflow: auto; padding: 4px; }
.up-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.up-slot { min-height: 200px; display: grid; place-items: center; padding: 10px; border-radius: 16px; border: 2px dashed rgba(255,255,255,.15); }
.up-slot .sk-card { width: 100%; max-width: 220px; cursor: default; }
.up-ring-wrap { position: relative; width: 200px; height: 200px; }
.up-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.up-ring circle { fill: none; stroke-width: 14; }
.up-bg { stroke: rgba(239,68,68,.35); }
.up-win { stroke: #22c55e; stroke-linecap: butt; filter: drop-shadow(0 0 6px rgba(34,197,94,.7)); transition: stroke-dasharray .3s; }
.up-needle { position: absolute; left: 50%; top: 50%; width: 4px; height: 92px; margin-left: -2px; margin-top: -92px; background: linear-gradient(#fff, #ffd23f); border-radius: 2px; transform-origin: 50% 100%; box-shadow: 0 0 10px #ffd23f; }
.up-pct { position: absolute; inset: 0; display: grid; place-items: center; font: 800 26px var(--mono); color: #fff; }
.up-mults { align-self: center; }
.casino-page .up-pane #upBtn { align-self: center; }
.bt-create { padding: 14px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.bt-create h3 { font-size: 16px; margin-bottom: 8px; }
.bt-form { display: flex; gap: 8px; flex-wrap: wrap; }
.bt-list { display: flex; flex-direction: column; gap: 12px; }
.bt-card { padding: 14px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 10px; }
.bt-card.run { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 30px -12px var(--accent-glow); }
.bt-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bt-head span { font-size: 13px; color: rgba(255,255,255,.6); }
.bt-cols { display: grid; gap: 8px; }
.bt-col { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bt-col.me { border-color: rgba(var(--accent-rgb), .5); }
.bt-col.win { border-color: #ffd23f; box-shadow: 0 0 24px -8px rgba(255,210,63,.7); }
.bt-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bt-who b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-total { font: 800 16px var(--mono); font-style: normal; color: #ffd23f; }
.bt-empty { color: rgba(255,255,255,.4); font-size: 13px; }
.bt-items { display: flex; flex-direction: column; gap: 6px; }
.bt-items .sk-card { padding: 6px; cursor: default; }
.bt-items .sk-art { width: 80px; }
.bt-result { font-weight: 700; color: #ffd23f; text-align: center; }

/* =====================================================================
   Global chat
   ===================================================================== */
.gc { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.gc-head { display: flex; align-items: center; justify-content: space-between; }
.gc-online { font: 600 11px var(--mono); color: rgba(255,255,255,.55); display: inline-flex; align-items: center; gap: 6px; }
.gc-online i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.gc-log { list-style: none; display: flex; flex-direction: column; gap: 6px; height: 300px; overflow: auto; padding-right: 4px; }
.gc-pane .gc-log { height: min(60vh, 560px); }
.gc-log li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.35; }
.gc-av { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.gc-body { min-width: 0; overflow-wrap: anywhere; color: rgba(255,255,255,.85); }
.gc-body b { color: #fff; margin-right: 2px; }
.gc-log li.me .gc-body b { color: var(--accent-hi); }
.gc-win .gc-body { padding: 4px 8px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,210,63,.18), transparent); border-left: 3px solid #ffd23f; }
.gc-win em { font-style: normal; font-weight: 800; color: #ffd23f; }
.gc-sys { color: rgba(255,255,255,.45); justify-content: center; }
.gc-form { display: flex; gap: 6px; }
.gc-form input { flex: 1; min-width: 0; height: 36px; border-radius: 10px; background: #000; border: 1px solid rgba(255,255,255,.15); color: #fff; padding: 0 10px; font: inherit; font-size: 13px; outline: none; }
.gc-form input:focus { border-color: var(--accent); }
.casino-page .gc-pane { align-items: stretch; }
.gc-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); font: 700 11px/18px var(--sans); text-align: center; }
.casino-page .switch-btn { display: none !important; }
.cs-help { width: 34px; padding: 0; font-weight: 800; }

/* =====================================================================
   Welcome + tour
   ===================================================================== */
.tr-welcome { z-index: 300; }
.tr-card { max-width: 440px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; background: radial-gradient(400px 200px at 50% 0%, rgba(var(--accent-rgb), .3), transparent 70%), #0d0d0d; border: 1px solid rgba(var(--accent-rgb), .5); }
.tr-logo { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; background: #000; border: 2px solid var(--accent); color: var(--accent-hi); box-shadow: 0 0 30px -4px var(--accent-glow); }
.tr-card h2 { font-size: 26px; }
.tr-card h2 b { background: linear-gradient(90deg, var(--accent-hi), #ffd23f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tr-card p { color: rgba(255,255,255,.75); font-size: 14px; }
.tr-card small { color: rgba(255,255,255,.45); font-size: 12px; }
.tr-name { width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 12px; color: rgba(255,255,255,.6); }
.tr-name input { height: 46px; border-radius: 12px; background: #000; border: 1px solid rgba(255,255,255,.2); color: #fff; font: 600 16px var(--sans); padding: 0 14px; outline: none; }
.tr-name input:focus { border-color: var(--accent); }
.tr-name input.shake { animation: shake .35s; border-color: #ef4444; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.tour { position: fixed; inset: 0; z-index: 300; }
.tr-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0,0,0,.72), 0 0 0 3px var(--accent), 0 0 30px var(--accent-glow); transition: all .3s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tr-tip { position: fixed; padding: 16px; border-radius: 16px; background: #111111; border: 1px solid rgba(var(--accent-rgb), .6); box-shadow: 0 20px 50px rgba(0,0,0,.7); display: flex; flex-direction: column; gap: 6px; transition: left .3s, top .3s; }
.tr-tip b { font-size: 17px; }
.tr-tip p { font-size: 14px; color: rgba(255,255,255,.8); }
.tr-n { font: 700 11px var(--mono); color: var(--accent-hi); letter-spacing: .08em; }
.tr-row { display: flex; justify-content: space-between; margin-top: 6px; }
@media (max-width: 820px) { .up-stage { grid-template-columns: 1fr; justify-items: center; } .up-slot { width: 100%; min-height: 150px; } }

/* =====================================================================
   Casino: servers (no launcher dock here)
   ===================================================================== */
.casino-page .dock, .casino-page .overlay.lobby, .casino-page .chat-peek { display: none !important; }
.cs-leave { background: rgba(239, 68, 68, .15); border-color: rgba(239, 68, 68, .45); color: #fca5a5; white-space: nowrap; }
.cs-leave:hover { background: rgba(239, 68, 68, .28); color: #fff; }
.cs-icon { width: 34px; padding: 0; }
.sv-overlay { position: fixed; inset: 0; z-index: 200; overflow: auto; background: radial-gradient(1000px 500px at 50% -10%, rgba(var(--accent-rgb), .22), transparent 70%), #080808; }
.sv-wrap { max-width: 1100px; margin: 0 auto; padding: 20px 20px 40px; display: flex; flex-direction: column; gap: 20px; }
.sv-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sv-head .cs-logo { margin-right: auto; }
.sv-me { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: #000; border: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.6); }
.sv-me input { width: 150px; height: 32px; border-radius: 8px; background: #151515; border: 1px solid rgba(255,255,255,.12); color: #fff; font: 600 14px var(--sans); padding: 0 10px; outline: none; }
.sv-me input:focus { border-color: var(--accent); }
.sv-me input.shake { animation: shake .35s; border-color: #ef4444; }
.sv-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.sv-list-card, .sv-create { padding: 20px; border-radius: 20px; background: #111111; border: 1px solid rgba(var(--accent-rgb), .25); display: flex; flex-direction: column; gap: 12px; }
.sv-list-head { display: flex; align-items: center; gap: 10px; }
.sv-list-head h2 { font-size: 22px; }
.sv-count { font: 700 12px var(--mono); color: #4ade80; margin-right: auto; }
.sv-status { padding: 10px 12px; border-radius: 10px; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .35); font-size: 14px; }
.sv-status.bad { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.45); color: #fecaca; }
.sv-list { display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.sv-empty { padding: 30px; text-align: center; color: rgba(255,255,255,.5); border: 2px dashed rgba(255,255,255,.1); border-radius: 14px; }
.sv-row { display: grid; grid-template-columns: auto 1fr 110px auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); transition: border-color .15s; }
.sv-row:hover { border-color: rgba(var(--accent-rgb), .5); }
.sv-row.full { opacity: .6; }
.sv-ic { font-size: 26px; }
.sv-info { min-width: 0; display: flex; flex-direction: column; }
.sv-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-info small { color: rgba(255,255,255,.5); font-size: 12px; }
.sv-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.sv-bar::after { content: ""; display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, #22c55e, #facc15); }
.sv-n { font: 700 13px var(--mono); color: rgba(255,255,255,.75); }
.sv-pw { grid-column: 1 / -1; display: flex; gap: 8px; }
.sv-pw input, .sv-code input, .sv-create input:not([type=checkbox]) { flex: 1; min-width: 0; height: 40px; border-radius: 10px; background: #000; border: 1px solid rgba(255,255,255,.15); color: #fff; padding: 0 12px; font: inherit; outline: none; }
.sv-pw input:focus, .sv-code input:focus, .sv-create input:focus { border-color: var(--accent); }
.sv-code { display: flex; gap: 8px; }
.sv-code input { font-family: var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.sv-create h2 { font-size: 20px; }
.sv-create label:not(.check) { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: rgba(255,255,255,.65); }
.sv-create label small { color: rgba(255,255,255,.4); }
.sv-online { font-size: 13px; color: rgba(255,255,255,.6); padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.sv-online b { color: #4ade80; font-family: var(--mono); }
.sv-foot { text-align: center; font-size: 12px; color: rgba(255,255,255,.4); }
.sv-leave { z-index: 250; }
.sv-leave-card { max-width: 380px; text-align: center; display: flex; flex-direction: column; gap: 10px; background: #111111; border: 1px solid rgba(var(--accent-rgb), .45); }
.sv-leave-card h2 { font-size: 22px; }
.gc-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.06); }
.gc-tabs button { position: relative; padding: 5px 12px; border-radius: 8px; font: 700 12px var(--sans); color: rgba(255,255,255,.6); }
.gc-tabs button.on { background: var(--accent); color: var(--on-accent, #fff); }
.gc-dot { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: #facc15; }
.gc-view { display: flex; flex-direction: column; gap: 8px; }
.gc-view[hidden] { display: none; }
@media (max-width: 860px) { .sv-grid { grid-template-columns: 1fr; } .sv-row { grid-template-columns: auto 1fr auto auto; } .sv-bar { display: none; } }
@media (max-width: 820px) { .casino-page #muteBtn, .casino-page #helpBtn { display: none; } }
.sv-create label input { flex: none !important; height: 42px; }

/* ---------- Latest big wins (under every game) ---------- */
.bw-feed { width: 100%; align-self: stretch; margin-top: 10px; padding: 14px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 10px; color: #fff; }
.cs-lobby .bw-feed { margin-top: 18px; }
.bw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bw-head h3 { font-size: 15px; }
.bw-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.06); }
.bw-seg[hidden] { display: none; }
.bw-seg button { white-space: nowrap; padding: 5px 12px; border-radius: 8px; font: 700 12px var(--sans); color: rgba(255,255,255,.6); }
.bw-seg button.on { background: var(--accent); color: var(--on-accent, #fff); }
.bw-table { display: flex; flex-direction: column; }
.bw-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) 80px 90px 110px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.bw-row:nth-child(even) { background: rgba(255,255,255,.025); }
.bw-row.fresh { animation: bw-in .6s ease-out; }
@keyframes bw-in { from { background: rgba(255, 210, 63, .25); transform: translateY(-4px); } }
.bw-row.me { box-shadow: inset 3px 0 0 var(--accent); }
.bw-th { font: 700 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); background: none !important; }
.bw-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bw-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-game { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.bw-game small { font-size: 11px; color: rgba(255,255,255,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-bet { font-family: var(--mono); color: rgba(255,255,255,.6); text-align: right; }
.bw-mult { font: 700 13px var(--mono); text-align: right; color: #4ade80; }
.bw-mult.hot { color: #ffd23f; text-shadow: 0 0 10px rgba(255,210,63,.6); }
.bw-pay { font: 800 13px var(--mono); text-align: right; color: #ffd23f; }
.bw-body { display: flex; flex-direction: column; }
.bw-empty { padding: 18px; text-align: center; color: rgba(255,255,255,.45); font-size: 13px; }
@media (max-width: 700px) { .bw-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px 90px; } .bw-bet, .bw-th span:nth-child(3) { display: none; } }

/* ---------- What's new ---------- */
.casino-page .news-pane { align-items: stretch; gap: 12px; }
.news-title { font-size: 26px; }
.news-item { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.news-item:first-of-type { border-color: rgba(var(--accent-rgb), .5); box-shadow: 0 0 30px -14px var(--accent-glow); }
.news-meta { display: flex; flex-direction: column; gap: 4px; }
.news-v { align-self: flex-start; font: 800 13px var(--mono); padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); }
.news-meta time { font-size: 12px; color: rgba(255,255,255,.5); }
.news-item h3 { font-size: 17px; margin-bottom: 6px; }
.news-item ul { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: rgba(255,255,255,.8); font-size: 14px; }
.news-dot { font-size: 9px !important; letter-spacing: .06em; }
@media (max-width: 620px) { .news-item { grid-template-columns: 1fr; gap: 8px; } .news-meta { flex-direction: row; align-items: center; } }

/* ---- Owner tools as the player sees them (staff.js) ---- */
.gc-role { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; padding: 1px 5px; border-radius: 5px; margin-right: 5px; vertical-align: 1px; background: rgba(var(--accent-rgb), .2); color: var(--accent-hi); }
.gc-role.r-owner { background: linear-gradient(135deg, #facc15, #f59e0b); color: #1a1000; }
.gc-role.r-mod { background: rgba(59, 130, 246, .25); color: #93c5fd; }
.gc-sys { font-style: normal; }
li.gc-sys .gc-body { color: #fde68a; }
.gc-say, .gc-win, .gc-sys { position: relative; }
.st-mod { all: unset; cursor: pointer; position: absolute; right: 4px; top: 4px; padding: 0 6px; border-radius: 6px; color: var(--muted); background: var(--surface-3); font-weight: 800; opacity: 0; }
li:hover > .st-mod, .st-mod:focus { opacity: 1; }
.st-menu { position: fixed; z-index: 400; background: var(--surface-2); border: 1px solid var(--line-3); border-radius: 12px; padding: 6px; min-width: 190px; box-shadow: 0 20px 50px -10px #000; }
.st-menu-h { font-size: 12px; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.st-menu button { all: unset; cursor: pointer; display: block; width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.st-menu button:hover { background: var(--surface-3); }
.cs-admin { color: var(--yellow) !important; }
.st-card { text-align: center; max-width: 380px; }
.st-card p { overflow-wrap: anywhere; }
.st-big { font-size: 54px; line-height: 1; margin-bottom: 6px; }
.st-gift h2 { font-size: 30px; margin: 4px 0; }
.st-ban { position: fixed; inset: 0; z-index: 1000; background: radial-gradient(circle at 50% 30%, #161616, #000 70%); display: grid; place-items: center; padding: 20px; }
.st-ban-card { text-align: center; max-width: 460px; }
.st-ban-card h1 { font-size: 28px; margin: 8px 0; }
.st-reason { font-weight: 600; color: #fda4af; }
body.st-banned { overflow: hidden; }
.st-bc-wrap { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 900; width: min(560px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.st-bc { pointer-events: auto; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .95), #a3004f); color: var(--on-accent, #fff); box-shadow: 0 20px 60px -12px rgba(var(--accent-rgb), .7); animation: stDrop .45s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .5s, transform .5s; }
.st-bc.warn { background: linear-gradient(135deg, #f59e0b, #b45309); box-shadow: 0 20px 60px -12px rgba(245, 158, 11, .6); }
.st-bc.party { background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b); background-size: 200% 200%; animation: stDrop .45s cubic-bezier(.2, 1.4, .4, 1), stShift 3s linear infinite; }
.st-bc.gone { opacity: 0; transform: translateY(-10px); }
.st-bc-ic { font-size: 28px; }
.st-bc div { flex: 1; min-width: 0; }
.st-bc small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; font-weight: 700; }
.st-bc p { margin: 2px 0 0; font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.st-bc button { all: unset; cursor: pointer; font-size: 22px; padding: 0 6px; opacity: .8; }
@keyframes stDrop { from { opacity: 0; transform: translateY(-30px) scale(.95); } }
@keyframes stShift { to { background-position: 200% 0; } }
.st-ann { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .45); font-weight: 600; flex-shrink: 0; }
.st-ann span { flex: 1; overflow-wrap: anywhere; }
.st-ann button { all: unset; cursor: pointer; font-size: 20px; color: var(--muted); padding: 0 4px; }
.promo-pane { display: grid; place-items: start center; }
.promo-card { text-align: center; max-width: 440px; width: 100%; margin: 30px auto; padding: 28px; border-radius: 20px; background: linear-gradient(160deg, rgba(var(--accent-rgb), .16), rgba(255, 255, 255, .02)); border: 1px solid rgba(var(--accent-rgb), .35); }
.promo-card h2 { margin: 4px 0; }
.promo-form { display: flex; gap: 8px; margin-top: 16px; }
.promo-form input { flex: 1; min-width: 0; text-align: center; font-family: "Geist Mono", monospace; font-size: 18px; letter-spacing: .15em; background: var(--field); border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; padding: 12px; }
.promo-form input:focus { outline: none; border-color: var(--accent); }
.promo-msg { min-height: 1.3em; margin-top: 12px; font-weight: 600; }
.promo-msg.ok { color: var(--green); }
.promo-msg.bad { color: var(--danger); }
/* limbo */
.lb-out { font: 800 clamp(56px, 10vw, 96px) var(--mono); letter-spacing: -0.04em; color: #fff; }
.lb-out.win { color: #4ade80; text-shadow: 0 0 30px rgba(74,222,128,.5); } .lb-out.lose { color: #f87171; }
.lb-in { width: 100%; max-width: 140px; text-align: center; font: 800 18px var(--mono); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 8px; padding: 4px; }
.lb-quick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
/* tower */
.tw-diff.locked { opacity: .5; pointer-events: none; }
.tw-board { display: flex; flex-direction: column; gap: 6px; width: min(460px, 100%); }
.tw-row { display: grid; grid-template-columns: 64px repeat(var(--cols), 1fr); gap: 6px; align-items: center; opacity: .55; transition: opacity .2s; }
.tw-row.active, .tw-row.done { opacity: 1; }
.tw-row.active .tw-t:not(:disabled) { border-color: rgba(96,165,250,.7); box-shadow: 0 0 18px -6px #60a5fa; }
.tw-m { font: 700 12px var(--mono); color: rgba(255,255,255,.6); text-align: right; padding-right: 4px; }
.tw-row.active .tw-m { color: #93c5fd; }
.tw-t { height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; transition: transform .1s, background .15s; }
.tw-t:not(:disabled):hover { transform: translateY(-2px); background: rgba(96,165,250,.2); }
.tw-t:disabled { cursor: default; }
.tw-t.safe { background: rgba(34,197,94,.25); border-color: #22c55e; }
.tw-t.boom { background: rgba(239,68,68,.35); border-color: #ef4444; animation: twShake .3s; }
.tw-t.trap { background: rgba(239,68,68,.12); }
.tw-t.dim { opacity: .5; }
.tw-actions { display: flex; gap: 10px; }
@keyframes twShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.tw-diff { display: inline-flex; gap: 4px; padding: 4px; } .tw-diff button { padding: 7px 14px; border-radius: 8px; }
/* ---- progress.js: levels, missions, achievements, stats ---- */
.pg-lvl-badge { all: unset; cursor: pointer; display: inline-flex; flex-direction: column; gap: 3px; padding: 5px 10px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); font: 800 12px var(--mono); color: #fff; min-width: 54px; position: relative; }
.pg-lvl-badge i { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.pg-lvl-badge i::after { content: ""; display: block; height: 100%; width: var(--p); background: var(--grad); }
.pg-lvl-badge.ready::before { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.pg-lvlup { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 950; text-align: center; pointer-events: none; animation: pgPop 3.2s ease forwards; }
.pg-lvlup b { display: block; font: 900 clamp(40px, 8vw, 72px) var(--sans, inherit); background: linear-gradient(135deg, #fde68a, #f59e0b, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(245,158,11,.5)); }
.pg-lvlup span { display: block; font-size: 24px; font-weight: 800; }
.pg-lvlup small { display: block; font-size: 20px; color: #facc15; font-weight: 800; }
@keyframes pgPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
.pg-ach { position: fixed; right: 20px; bottom: 20px; z-index: 950; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; background: linear-gradient(135deg, #1f1508, #3a2606); border: 1px solid #f59e0b; box-shadow: 0 20px 50px -10px rgba(245,158,11,.4); animation: stDrop .4s ease; }
.pg-ach-ic { font-size: 32px; }
.pg-ach small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #fbbf24; font-weight: 800; }
.pg-ach b { display: block; }
.pg-ach em { font-style: normal; color: #facc15; font-weight: 700; font-size: 13px; }
.pg-pane { align-items: stretch !important; }
.pg-h { margin: 14px 0 0; font-size: 18px; }
.pg-level { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .22), rgba(255,255,255,.03)); border: 1px solid rgba(var(--accent-rgb), .4); }
.pg-lv-num { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--grad); font: 900 28px var(--mono); color: var(--on-accent, #fff); box-shadow: 0 10px 30px -8px var(--accent-glow); }
.pg-lv-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pg-lv-body small { color: rgba(255,255,255,.6); }
.pg-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.pg-bar i { display: block; height: 100%; background: var(--grad); border-radius: 8px; transition: width .4s; }
.pg-free { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(var(--accent-rgb), .12)); border: 1px solid rgba(34,211,238,.35); }
.pg-free-ic { font-size: 34px; }
.pg-free div { flex: 1; display: flex; flex-direction: column; }
.pg-free small { color: rgba(255,255,255,.6); }
.pg-mis-list { display: flex; flex-direction: column; gap: 8px; }
.pg-mis { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.pg-mis.ready { border-color: #22c55e; background: rgba(34,197,94,.08); }
.pg-mis.claimed { opacity: .55; }
.pg-mis-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pg-mis-body small { color: rgba(255,255,255,.55); font-size: 12px; }
.pg-ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pg-ach-c { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 12px 8px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); opacity: .6; }
.pg-ach-c.on { opacity: 1; border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.08); }
.pg-ach-c span { font-size: 28px; }
.pg-ach-c small { color: rgba(255,255,255,.55); font-size: 11.5px; }
.pg-ach-c em { font-style: normal; font-size: 11px; font-weight: 800; color: #facc15; }
.pg-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pg-stat { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 3px; }
.pg-stat small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); }
.pg-stat b { font: 800 17px var(--mono); overflow-wrap: anywhere; }
.pg-graph { position: relative; height: 170px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.pg-graph svg { width: 100%; height: 100%; display: block; }
.pg-graph-l { position: absolute; inset: 6px 10px; display: flex; flex-direction: column; justify-content: space-between; font: 700 11px var(--mono); color: rgba(255,255,255,.5); pointer-events: none; }
.pg-games { display: flex; flex-direction: column; gap: 6px; }
.pg-game { display: grid; grid-template-columns: 130px 1fr 50px; gap: 10px; align-items: center; font-size: 13px; }
.pg-game b { text-align: right; font-family: var(--mono); }
.pg-hist { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.pg-hr { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 8px; padding: 8px 12px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.05); }
.pg-hr.pg-th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); background: rgba(255,255,255,.03); }
.pg-hr.win .pg-pay { color: #4ade80; font-weight: 700; }
.pg-when { color: rgba(255,255,255,.45); }
.pg-sel { align-self: flex-start; background: var(--field); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 8px 10px; }
@media (max-width: 600px) { .pg-hr { grid-template-columns: 1.3fr 1fr 1fr; } .pg-hr > :nth-child(3), .pg-hr > :nth-child(5) { display: none; } .pg-game { grid-template-columns: 100px 1fr 40px; } }
/* ---- cases extras: tags, 2v2, gifts, showcase, trade-up ---- */
.ca-case { position: relative; }
.ca-tag { position: absolute; top: 8px; left: 8px; font: 800 10px var(--mono); padding: 2px 7px; border-radius: 6px; background: #22c55e; color: #03140a; }
.bt-col.team-a { box-shadow: inset 0 3px 0 #3b82f6; }
.bt-col.team-b { box-shadow: inset 0 3px 0 #f97316; }
.bt-form select { max-width: 100%; }
.inv-gift-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.inv-shows { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.inv-show-row { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.03); }
.inv-show-row > b { min-width: 80px; }
.inv-show-items { display: flex; gap: 8px; overflow-x: auto; }
.inv-show-items .sk-card { width: 130px; flex: none; }
.tu-head { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tu-head h2 { margin: 0; }
.tu-slots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; width: min(640px, 100%); }
.tu-slot { aspect-ratio: 1; border-radius: 10px; border: 1px dashed rgba(255,255,255,.2); background: rgba(255,255,255,.03); display: grid; place-items: center; overflow: hidden; }
.tu-slot.on { border: 1px solid var(--rc); background: color-mix(in srgb, var(--rc) 15%, transparent); }
.tu-slot svg { width: 90%; height: auto; }
.sk-card.off { opacity: .3; pointer-events: none; }
@media (max-width: 600px) { .tu-slots { grid-template-columns: repeat(5, 1fr); } }
/* ---- social.js ---- */
.gc-lvl { display: inline-block; font: 800 9.5px var(--mono); padding: 1px 5px; border-radius: 5px; margin-right: 5px; vertical-align: 1px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
.gc-lvl.mid { background: rgba(59,130,246,.25); color: #93c5fd; }
.gc-lvl.hi { background: rgba(245,158,11,.25); color: #fcd34d; }
.cs-person:not(.me) { cursor: pointer; }
.cs-person:not(.me):hover { background: rgba(255,255,255,.06); }
.so-set { margin-top: 6px; }
.so-quick { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }
.so-in { width: 100%; box-sizing: border-box; background: var(--field); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 10px; padding: 10px 12px; font: inherit; margin-bottom: 10px; }
.so-l { display: flex; flex-direction: column; gap: 6px; text-align: left; margin: 12px 0 6px; }
.so-l.check { flex-direction: row; align-items: center; }
.so-people { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.so-p { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.ra-pane { align-items: stretch !important; }
.ra-hero { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(var(--accent-rgb), .14)); border: 1px solid rgba(34,197,94,.35); flex-wrap: wrap; }
.ra-hero small { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: #86efac; font-weight: 800; }
.ra-hero h2 { margin: 2px 0 4px; font-size: 26px; }
.ra-clock { text-align: center; padding: 10px 16px; border-radius: 14px; background: rgba(0,0,0,.35); }
.ra-clock b { display: block; font: 800 22px var(--mono); }
.ra-prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ra-prize { display: flex; flex-direction: column; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.ra-prize span { font-size: 28px; } .ra-prize b { font: 800 16px var(--mono); } .ra-prize small { color: rgba(255,255,255,.5); }
.ra-prize.p1 { border-color: rgba(250,204,21,.5); background: rgba(250,204,21,.08); }
.ra-seg { align-self: center; }
.ra-list, .ra-last { display: flex; flex-direction: column; gap: 6px; }
.ra-last h3 { margin: 10px 0 2px; font-size: 15px; }
.ra-row { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.ra-row b { flex: 1; } .ra-row em { font: 800 14px var(--mono); font-style: normal; color: #86efac; }
.ra-row.me { border-color: var(--accent); }
.ra-rank { width: 28px; text-align: center; font-weight: 800; color: rgba(255,255,255,.5); }
/* ---- games2.js: jackpot, CS roulette, bingo, 5-reel slots ---- */
.jp-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(620px, 100%); }
.jp-top > div { padding: 12px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); text-align: center; }
.jp-top small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); }
.jp-top b { font: 800 22px var(--mono); }
.jp-bar { position: relative; display: flex; width: min(620px, 100%); height: 34px; border-radius: 12px; overflow: visible; background: rgba(255,255,255,.06); }
.jp-seg { height: 100%; min-width: 3px; border-right: 2px solid rgba(0,0,0,.4); }
.jp-seg:first-child { border-radius: 12px 0 0 12px; } .jp-seg:nth-last-child(2) { border-radius: 0 12px 12px 0; }
.jp-ptr { position: absolute; top: -12px; bottom: -12px; width: 4px; margin-left: -2px; background: #fff; border-radius: 4px; box-shadow: 0 0 12px #fff; left: 0; }
.jp-entries { display: flex; flex-direction: column; gap: 6px; width: min(620px, 100%); }
.jp-e { display: grid; grid-template-columns: 14px 1fr auto 60px; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); }
.jp-e i { width: 12px; height: 12px; border-radius: 50%; }
.jp-e.me { outline: 1px solid var(--accent); }
.jp-e span { font-family: var(--mono); } .jp-e em { font-style: normal; text-align: right; color: rgba(255,255,255,.6); font-family: var(--mono); }
.csr-wrap { position: relative; width: min(760px, 100%); height: 84px; overflow: hidden; border-radius: 14px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.1); }
.csr-strip { display: flex; gap: 0; position: absolute; top: 6px; left: 0; will-change: transform; }
.csr-t { width: 68px; height: 70px; margin: 0 2px; flex: none; display: grid; place-items: center; border-radius: 10px; font: 800 20px var(--mono); color: #fff; }
.csr-t.r, .csr-h.r { background: #dc2626; } .csr-t.b, .csr-h.b { background: #1f2937; } .csr-t.g, .csr-h.g { background: #16a34a; }
.csr-mark { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #facc15; box-shadow: 0 0 12px #facc15; }
.csr-status { font-weight: 700; margin: 0; }
.csr-h { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 11px var(--mono); padding: 0 !important; color: #fff !important; }
.csr-bets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(760px, 100%); }
.csr-col { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.csr-col .btn { width: 100%; color: #fff; border: 0; }
.csr-col.r .btn { background: #dc2626; } .csr-col.b .btn { background: #374151; } .csr-col.g .btn { background: #16a34a; }
.csr-col.won { border-color: #facc15; box-shadow: 0 0 20px -6px #facc15; }
.csr-col > b { text-align: center; font-family: var(--mono); }
.csr-b { font-size: 12.5px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.05); }
.csr-b.me { color: var(--accent-hi); }
.bg-top { display: flex; gap: 12px; align-items: center; width: min(760px, 100%); }
.bg-ball { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 900 24px var(--mono); background: radial-gradient(circle at 35% 30%, #fff, #cbd5e1); color: #111; box-shadow: inset -4px -6px 10px rgba(0,0,0,.25); }
.bg-ball.c0 { background: radial-gradient(circle at 35% 30%, #93c5fd, #2563eb); color: #fff; } .bg-ball.c1 { background: radial-gradient(circle at 35% 30%, #fca5a5, #dc2626); color: #fff; } .bg-ball.c2 { background: radial-gradient(circle at 35% 30%, #fff, #cbd5e1); } .bg-ball.c3 { background: radial-gradient(circle at 35% 30%, #86efac, #16a34a); color: #fff; } .bg-ball.c4 { background: radial-gradient(circle at 35% 30%, #fde68a, #d97706); }
.bg-drawn { display: flex; gap: 4px; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, #000 70%, transparent); }
.bg-drawn span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--mono); background: rgba(255,255,255,.1); }
.bg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; width: min(760px, 100%); }
.bg-card { border-radius: 14px; padding: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.bg-card.won { border-color: #22c55e; box-shadow: 0 0 24px -8px #22c55e; }
.bg-head, .bg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; text-align: center; }
.bg-head span { font-weight: 900; color: var(--accent-hi); }
.bg-c { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.06); font: 700 13px var(--mono); transition: background .2s; }
.bg-c.hit { background: var(--accent); color: var(--on-accent, #fff); }
.bg-c.free { background: #facc15; color: #111; }
.bg-res { text-align: center; font-size: 12px; font-weight: 700; margin-top: 6px; min-height: 1.2em; }
.bg-pay, .s5-pay { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 12px; color: rgba(255,255,255,.6); }
.bg-pay span, .s5-pay span { padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.05); }
.s5-title { font: 900 30px var(--sans, inherit); letter-spacing: .02em; background: linear-gradient(135deg, #fff, var(--accent-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s5-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px; border-radius: 18px; width: min(520px, 100%); background: linear-gradient(180deg, #1d1d1d, #0c0c0c); border: 3px solid #f472b6; box-shadow: 0 0 40px -10px #f472b6; }
.s5-grid.hslot { background: linear-gradient(180deg, #1f0d02, #0a0400); border-color: #fb923c; box-shadow: 0 0 40px -10px #fb923c; }
.s5-c { aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(26px, 6vw, 44px); border-radius: 12px; background: rgba(255,255,255,.06); transition: transform .15s; }
.s5-c.spin { filter: blur(1.5px); transform: translateY(3px); }
.s5-c.win { background: rgba(250,204,21,.25); box-shadow: inset 0 0 0 2px #facc15; animation: s5Pop .5s ease; }
@keyframes s5Pop { 50% { transform: scale(1.12); } }
.s5-lines { font-size: 12.5px; color: rgba(255,255,255,.55); }
@media (max-width: 600px) { .csr-bets { grid-template-columns: 1fr; } .jp-top b { font-size: 16px; } }
/* ---- fair.js ---- */
.fair-pane { align-items: stretch !important; }
.fair-pane h2, .fair-pane h3 { margin: 6px 0 0; }
.fair-grid { display: grid; gap: 10px; }
.fair-grid label { display: flex; flex-direction: column; gap: 4px; }
.fair-grid span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); }
.fair-pane code { font: 600 12.5px var(--mono); padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.4); overflow-wrap: anywhere; }
.fair-row { display: flex; gap: 6px; }
.fair-pane input, .fair-pane select { background: var(--field); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 8px 10px; font: 13px var(--mono); min-width: 0; flex: 1; }
.fair-pane > .btn { align-self: flex-start; }
.fair-verify { display: flex; flex-wrap: wrap; gap: 6px; }
.fair-out { white-space: pre-wrap; font: 12.5px var(--mono); padding: 10px; border-radius: 10px; background: rgba(0,0,0,.4); min-height: 2em; margin: 0; overflow-wrap: anywhere; }
.fair-log { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.03); margin-bottom: 6px; }
.fair-log small { grid-column: 1; color: rgba(255,255,255,.5); }
.fair-log .btn { grid-row: 1 / 3; grid-column: 2; }
.em-btn { padding: 0 8px !important; font-size: 16px; }
.em-pop { position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 30; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-3); box-shadow: 0 12px 30px -8px #000; }
.em-pop[hidden] { display: none; }
.em-pop button { all: unset; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; font-size: 18px; font-weight: 800; }
.em-pop button:hover { background: var(--surface-3); }

/* =====================================================================
   UI revamp (v2.0). Everything below overrides the older casino styles.
   ===================================================================== */
.casino-page { --cs-bg: #070409; --cs-panel: #101010; --cs-panel2: #181818; --cs-line: rgba(255,255,255,.07); --cs-r: 16px; }
.casino-page { background: radial-gradient(900px 500px at 50% -200px, rgba(var(--accent-rgb), .16), transparent 70%), var(--cs-bg); }

/* Header */
.casino-page .cs-head { height: 60px; gap: 12px; padding: 0 18px; background: rgba(8, 5, 10, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--cs-line); }
.casino-page .cs-head .back { padding: 7px 10px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 13px; border: 1px solid var(--cs-line); }
.casino-page .cs-head .back:hover { color: #fff; background: rgba(255,255,255,.05); }
.cs-head-mid { gap: 0; }
.casino-page .cs-wallet { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 14px; border-radius: 12px 0 0 12px; background: #000; border: 1px solid rgba(255, 210, 63, .35); border-right: 0; box-shadow: none; }
.casino-page .cs-wallet b { font-size: 18px; letter-spacing: -.01em; }
.casino-page .cs-wallet small { font-size: 11px; color: var(--dim); }
.casino-page #daily, .casino-page #bail { height: 40px; border-radius: 0 12px 12px 0; padding: 0 14px; font-size: 13px; box-shadow: none; }
.casino-page #daily:disabled { background: #1b1b1b; color: var(--muted); border: 1px solid rgba(255,210,63,.35); border-left: 0; opacity: 1; }
.cs-head-right { gap: 6px; }
.cs-head-right .btn.sm, .cs-vip-badge, .pg-lvl-badge { height: 36px; border-radius: 10px; }
.cs-head-right .btn.ghost { border-color: var(--cs-line); color: var(--muted); background: transparent; }
.cs-head-right .btn.ghost:hover { color: #fff; background: rgba(255,255,255,.05); }
.cs-vip-badge { padding: 0 12px; font-size: 12.5px; }
.pg-lvl-badge { justify-content: center; padding: 0 10px; }
.casino-page .cs-leave { background: transparent; border: 1px solid rgba(244,63,94,.35); color: #fda4af; }
.casino-page .cs-leave:hover { background: rgba(244,63,94,.12); color: #fff; }

/* Left menu */
.cs-app { grid-template-columns: 232px minmax(0, 1fr) 300px; }
.cs-nav { gap: 6px; padding: 12px 10px 90px; background: rgba(9, 9, 9, .6); border-right: 1px solid var(--cs-line); scrollbar-width: thin; }
.nav-search { width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px; border-radius: 10px; background: #000; border: 1px solid var(--cs-line); color: #fff; font: inherit; font-size: 13.5px; margin-bottom: 4px; }
.nav-search:focus { outline: none; border-color: var(--accent); }
.nav-all { display: none !important; }
.cs-nav-group { gap: 1px; }
.cs-nav-group[hidden] { display: none; }
.cs-nav-group h4 { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 10px 6px; border-radius: 8px; user-select: none; }
.cs-nav-group h4:hover { color: var(--muted); }
.cs-nav-group h4 span { flex: 1; }
.cs-nav-group h4 small { font: 700 10px var(--mono); padding: 1px 6px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--dim); letter-spacing: 0; }
.nav-chev { font-style: normal; transition: transform .2s; font-size: 11px; }
.cs-nav-group.closed .nav-chev { transform: rotate(-90deg); }
.cs-nav-group.closed .cs-tab { display: none; }
.cs-nav.searching .cs-nav-group.closed .cs-tab:not([hidden]) { display: flex; }
.casino-page .cs-tab { padding: 8px 10px; font-size: 13.5px; border-radius: 9px; }
.casino-page .cs-tab[hidden] { display: none; }
.casino-page .cs-tab .ni { font-size: 15px; }
.casino-page .cs-tab.on { background: linear-gradient(90deg, rgba(var(--accent-rgb), .2), rgba(var(--accent-rgb), .03)); }

/* Main column */
.casino-page .cs-main { padding: 18px 24px 96px; gap: 16px; }
.casino-page .cs-main > * { width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
body:not([data-tab="lobby"]) .cs-ticker { display: none; }
.cs-ticker { height: 38px; border-radius: 12px; border-color: rgba(255,210,63,.18); }
.cs-tk-label { animation: none; background: #ef4444; padding: 0 10px; height: 100%; display: flex; align-items: center; border-radius: 0; box-shadow: 14px 0 14px 4px #000; }
.cs-tk-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 6px; animation: pulse-dot 1.4s ease-in-out infinite; }
.st-ann { margin-bottom: 0; padding: 9px 14px; font-size: 14px; }
/* Bet chips stay in view at the top while you play */
.casino-page .cs-bar { position: sticky; top: -18px; z-index: 6; padding: 8px 14px; border-radius: 14px; background: rgba(16, 16, 16, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--cs-line); }

/* Game pages */
.casino-page .cs-pane { border-radius: 20px; padding: 20px 22px 24px; }
.casino-page .cs-pane.cs-dark, .casino-page .pd-pane, .casino-page .vip-pane { background: linear-gradient(180deg, rgba(var(--accent-rgb), .07), transparent 240px), var(--cs-panel); border: 1px solid var(--cs-line); }
.pane-title { align-self: stretch; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px solid var(--cs-line); }
.cs-pane.felt .pane-title { border-bottom-color: rgba(255,255,255,.15); }
.pane-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 19px; }
.pane-title h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; flex: 1; }
.pane-title small { font: 700 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); }

/* Lobby */
.cs-hero { padding: 34px 36px; border-radius: 24px; border: 1px solid rgba(var(--accent-rgb), .25); }
.cs-tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cs-tile { aspect-ratio: 4 / 5; border-radius: 16px; }
.cs-lobby h2, .cs-lobby h3 { letter-spacing: -.01em; }

/* Right column */
.casino-page .cs-side { padding: 14px 14px 40px; gap: 12px; background: rgba(9, 9, 9, .6); border-left: 1px solid var(--cs-line); }
.cs-side-card { border-radius: 14px; background: var(--cs-panel); border: 1px solid var(--cs-line); }
.cs-side-card h3 { display: flex; align-items: center; justify-content: space-between; margin: 0; }
.cs-see { font: 600 11.5px var(--sans, inherit); letter-spacing: 0; text-transform: none; color: var(--accent-hi); }
#richest li:nth-child(n + 6) { display: none; }
.gc-home .gc-log { height: 340px; }
.cs-person { border-radius: 10px; }

/* Buttons and inputs feel the same everywhere */
.casino-page .btn { border-radius: 11px; }
.casino-page .btn.lg { border-radius: 14px; }

/* Phones: All games sheet */
.nav-sheet { align-items: flex-end; padding: 0; }
.nav-sheet-in { width: 100%; max-height: 86vh; overflow: auto; background: var(--cs-panel); border-radius: 22px 22px 0 0; border-top: 1px solid var(--cs-line); padding: 14px 16px 30px; box-sizing: border-box; animation: sheetUp .25s ease; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.nav-sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: -14px; background: var(--cs-panel); padding: 4px 0 8px; z-index: 1; }
.nav-sheet-head h2 { margin: 0; font-size: 20px; }
.nav-sheet h3 { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 14px 0 8px; }
.nav-sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nav-sheet-item { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--cs-line); text-align: center; }
.nav-sheet-item span { font-size: 24px; }
.nav-sheet-item b { font-size: 12px; font-weight: 600; line-height: 1.2; }
.nav-sheet-item.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }

@media (max-width: 1180px) { .cs-app { grid-template-columns: 210px minmax(0, 1fr); } }
@media (max-width: 820px) {
  .cs-app { grid-template-columns: 1fr; }
  .casino-page .cs-head { height: 56px; gap: 6px; padding: 0 10px; }
  .casino-page .cs-head .back { padding: 6px 9px; }
  .casino-page .cs-logo span, .casino-page .cs-logo b { display: none; }
  .casino-page .pg-lvl-badge, .casino-page .cs-vip-badge, .casino-page .cs-admin, .casino-page #inviteBtn { display: none !important; }
  .casino-page .cs-wallet { height: 36px; padding: 0 4px 0 10px; }
  .casino-page .cs-wallet b { font-size: 15px; }
  .casino-page #daily, .casino-page #bail { height: 36px; padding: 0 10px; font-size: 12px; }
  .casino-page .cs-leave { padding: 0 10px; font-size: 0; }
  .casino-page .cs-leave::before { content: "🚪"; font-size: 16px; }
  .nav-search { display: none; }
  .nav-all { display: flex !important; background: rgba(var(--accent-rgb), .18); color: #fff !important; }
  .cs-nav { padding: 8px 10px; gap: 4px; }
  .cs-nav-group.closed .cs-tab { display: flex; }
  .cs-nav-group h4 { display: none; }
  .casino-page .cs-main { padding: 12px 12px 90px; gap: 12px; }
  .casino-page .cs-bar { top: -12px; }
  .casino-page .cs-pane { padding: 14px 12px 18px; border-radius: 18px; }
  .cs-hero { padding: 22px 20px; }
  .cs-hero-cta .btn { flex: 1 1 auto; }
  .cs-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cs-tile { border-radius: 14px; }
  .cs-tile-i { font-size: 40px; }
}
@media (max-width: 380px) { .cs-tiles { grid-template-columns: repeat(2, 1fr); } }
/* ---- bank.js ---- */
.bank-chip { all: unset; cursor: pointer; margin-left: 8px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 10px; font: 800 13px var(--mono); background: rgba(250,204,21,.12); border: 1px solid rgba(250,204,21,.4); color: #fde68a; }
.bank-chip.late { background: rgba(244,63,94,.15); border-color: rgba(244,63,94,.5); color: #fda4af; }
.bank-chip[hidden] { display: none; }
.bank-pane { align-items: stretch !important; }
.bank-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bank-stat { padding: 14px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 4px; }
.bank-stat small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); }
.bank-stat b { font: 800 18px var(--mono); color: #fde68a; }
.bank-stat.owe b { color: #fda4af; } .bank-stat.ok b { color: #86efac; }
.bank-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, rgba(250,204,21,.1), rgba(var(--accent-rgb), .08)); border: 1px solid rgba(250,204,21,.28); }
.bank-card h3 { margin: 0; font-size: 18px; }
.bank-amt { font: 900 clamp(34px, 6vw, 48px) var(--mono); color: #fde68a; text-align: center; }
.bank-range { width: 100%; accent-color: var(--gold, #facc15); }
.bank-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.bank-sub { text-align: center; color: rgba(255,255,255,.6); }
.bank-card > .btn.lg { align-self: center; min-width: 220px; }
.bank-auto { color: rgba(255,255,255,.75); font-size: 13.5px; }
.bank-h { margin: 6px 0 0; font-size: 15px; }
.bank-hist { padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.035); font-size: 13.5px; }
@media (max-width: 820px) { .bank-top { grid-template-columns: 1fr 1fr; } .bank-top .bank-stat:last-child { grid-column: span 2; } .bank-chip { margin-left: 4px; padding: 0 8px; font-size: 11px; } }
/* nav search box: beat the global input styles */
.casino-page .nav-search { height: 38px !important; padding: 0 12px !important; font-size: 13.5px !important; border-radius: 10px !important; flex: none; }
/* ---- Server list revamp ---- */
.sv-overlay { background: radial-gradient(900px 500px at 50% -150px, rgba(var(--accent-rgb), .22), transparent 70%), #070409 !important; }
.sv-hero { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; padding: 26px 28px; margin-bottom: 16px; border-radius: 22px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .22), rgba(255,210,63,.06)); border: 1px solid rgba(var(--accent-rgb), .3); }
.sv-hero h1 { margin: 0 0 6px; font-size: clamp(28px, 4.5vw, 44px); letter-spacing: -.03em; line-height: 1.05; }
.sv-hero h1 b { background: linear-gradient(90deg, var(--accent-hi), #ffd23f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv-hero p { margin: 0; color: rgba(255,255,255,.7); max-width: 520px; }
.sv-feats { display: flex; flex-wrap: wrap; gap: 6px; max-width: 360px; }
.sv-feats span { padding: 6px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); }
.sv-empty { display: flex !important; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px !important; text-align: center; }
.sv-empty-ic { font-size: 40px; }
.sv-empty b { font-size: 17px; }
.sv-empty > span:not(.sv-empty-ic) { color: var(--muted); font-size: 14px; }
.sv-empty .btn { margin-top: 8px; }
.sv-row { transition: border-color .15s, transform .15s; }
.sv-row:hover { border-color: rgba(var(--accent-rgb), .5); transform: translateY(-1px); }
@media (max-width: 860px) { .sv-hero { padding: 20px; } .sv-feats { max-width: none; } }
/* ---- autobet.js ---- */
.ab-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); width: min(560px, 100%); box-sizing: border-box; }
.ab-bar.running { border-color: var(--accent); box-shadow: 0 0 24px -10px var(--accent); }
.ab-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ab-l { font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ab-n button { min-width: 34px; }
.ab-lim label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.6); }
.ab-lim input { width: 76px; background: var(--field); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 8px; padding: 5px 8px; font: 12.5px var(--mono); }
.ab-go { min-width: 190px; }
.ab-go.stop { background: #dc2626; border-color: #dc2626; color: #fff; }
/* ---- account.js ---- */
.acct-btn.in { color: #fff !important; border-color: rgba(var(--accent-rgb), .45) !important; }
.acct-sv { white-space: nowrap; }
.acct-card { max-width: 400px; width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.acct-card h2 { margin: 4px 0 0; }
.acct-tabs { align-self: center; }
.acct-tabs button { padding: 7px 16px; }
.acct-card label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.acct-card label[hidden] { display: none; }
.acct-card input { background: var(--field); border: 1px solid var(--line-2); color: #fff; border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 15px; }
.acct-card input:focus { outline: none; border-color: var(--accent); }
.acct-err { color: #fda4af; min-height: 1.1em; margin: 0; font-size: 13.5px; }
.acct-av { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--grad); align-self: center; }
.acct-card > h2:nth-child(2) { text-align: center; }
.acct-status { text-align: center; margin: 0; }
.acct-pw summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
.acct-pw form { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
@media (max-width: 820px) { .casino-page .acct-btn { font-size: 0; padding: 0 10px; } .casino-page .acct-btn::before { content: "👤"; font-size: 16px; } }
.acct-dlg { z-index: 1200 !important; }
.acct-tabs button { white-space: nowrap; }
/* ---- qol.js ---- */
.casino-page .cs-bar { flex-wrap: wrap; }
.bb { display: flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px; border-radius: 11px; background: #000; border: 1px solid rgba(255,255,255,.1); }
.bb-in { width: 96px; height: 32px; border: 0; background: transparent; color: #fde68a; font: 800 15px var(--mono); padding: 0 8px; }
.bb-in:focus { outline: none; }
.bb button { all: unset; cursor: pointer; height: 32px; min-width: 34px; padding: 0 8px; box-sizing: border-box; display: grid; place-items: center; border-radius: 8px; font: 700 12.5px var(--mono); color: #fff; background: rgba(255,255,255,.07); }
.bb button:hover { background: rgba(var(--accent-rgb), .3); }
.sess { all: unset; cursor: pointer; margin-left: 8px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 10px; font: 800 12.5px var(--mono); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--muted); white-space: nowrap; }
.sess.up { color: #86efac; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.sess.down { color: #fda4af; border-color: rgba(244,63,94,.35); background: rgba(244,63,94,.08); }
.sess[hidden] { display: none; }
.fav-star { margin-left: auto; font-size: 14px; color: var(--dim); opacity: 0; padding: 0 2px; transition: opacity .15s; }
.cs-tab:hover .fav-star, .fav-star.on { opacity: 1; }
.fav-star.on { color: #facc15; }
.fav-group[hidden] { display: none; }
.recent { display: flex; flex-direction: column; gap: 8px; }
.recent[hidden] { display: none; }
.recent h3 { margin: 0; font-size: 16px; }
.recent-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.recent-item { all: unset; cursor: pointer; flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--cs-panel, #101010); border: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.recent-item:hover { border-color: var(--accent); }
.recent-item span { font-size: 20px; }
.recent-item.fav { border-color: rgba(250,204,21,.35); }
.set-card { max-width: 440px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.set-card h2 { margin: 0 0 4px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); cursor: pointer; }
.set-row div { display: flex; flex-direction: column; }
.set-row small { color: var(--muted); font-size: 12.5px; }
.set-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.set-row input[type="range"] { width: 130px; accent-color: var(--accent); }
.kb-card { max-width: 460px; }
.kb-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; text-align: left; margin: 12px 0; }
.kb-grid kbd { font: 700 12px var(--mono); padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-bottom-width: 3px; white-space: nowrap; text-align: center; }
@media (max-width: 820px) { .bb { margin-left: 0; width: 100%; } .bb-in { flex: 1; } .sess { display: none; } }
.bigwin { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 960; pointer-events: none; display: flex; flex-direction: column; align-items: center; animation: pgPop 2.6s ease forwards; }
.bigwin small { font: 900 18px var(--mono); letter-spacing: .3em; color: #fde68a; }
.bigwin b { font: 900 clamp(56px, 11vw, 110px) var(--sans, inherit); line-height: 1; background: linear-gradient(135deg, #fff, #facc15, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 40px rgba(250,204,21,.45)); }
.bigwin span { font: 800 24px var(--mono); color: #86efac; }
.bigwin.mega b { background: linear-gradient(135deg, #22d3ee, #a78bfa, var(--accent), #facc15); -webkit-background-clip: text; background-clip: text; }
.bw-conf { position: absolute; left: 50%; top: 50%; width: 9px; height: 14px; border-radius: 2px; animation: bwConf 1.6s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes bwConf { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
/* Header fit: nothing wraps, less-important bits hide on smaller screens */
.cs-head-mid { flex-wrap: nowrap; min-width: 0; }
.casino-page .cs-wallet, .casino-page #daily, .casino-page .cs-head .btn { white-space: nowrap; flex: none; }
.casino-page .cs-wallet small { white-space: nowrap; }
@media (max-width: 1500px) { .casino-page .cs-wallet small, #inviteBtn { display: none !important; } }
@media (max-width: 1250px) { .pg-lvl-badge, .casino-page .cs-help { display: none !important; } .casino-page .acct-btn { font-size: 0; padding: 0 10px; } .casino-page .acct-btn::before { content: "👤"; font-size: 15px; } }
@media (max-width: 820px) {
  .casino-page #daily { font-size: 0; padding: 0 10px; }
  .casino-page #daily::before { content: "🎁"; font-size: 16px; }
  .casino-page .cs-head-right { gap: 4px; }
  .casino-page .cs-head-right .cs-icon:not([title="Settings"]) { display: none; }
}
/* ---- qol2.js ---- */
.rl-tools { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rl-tools .btn { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.2); color: #fff; }
.gc-name { cursor: pointer; }
.gc-name:hover { text-decoration: underline; }
.gc-log li.mention { background: rgba(250,204,21,.1); box-shadow: inset 3px 0 0 #facc15; border-radius: 6px; padding: 3px 4px; }
.gc-view, .gc-pane .gc { position: relative; }
.gc-jump { all: unset; cursor: pointer; align-self: center; margin-top: -40px; margin-bottom: 8px; z-index: 2; padding: 5px 12px; border-radius: 99px; background: var(--accent); color: var(--on-accent, #fff); font-size: 12px; font-weight: 700; box-shadow: 0 6px 16px -4px rgba(0,0,0,.6); }
.gc-jump[hidden] { display: none; }
.bell { position: relative; }
.bell-n { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 99px; background: #ef4444; color: #fff; font: 800 10px/16px var(--mono); text-align: center; }
.bell-n[hidden] { display: none; }
.bell.ring { animation: bellRing .6s ease; }
@keyframes bellRing { 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.bell-pop { position: fixed; z-index: 500; width: min(360px, calc(100vw - 16px)); max-height: 70vh; overflow: auto; background: var(--surface-2); border: 1px solid var(--line-3); border-radius: 14px; box-shadow: 0 20px 50px -10px #000; padding: 6px; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; }
.bell-head button { all: unset; cursor: pointer; font-size: 12px; color: var(--accent-hi); }
.bell-empty { color: var(--muted); font-size: 13.5px; padding: 6px 10px 12px; margin: 0; }
.bell-row { all: unset; cursor: pointer; display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; width: 100%; box-sizing: border-box; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; }
.bell-row:hover { background: rgba(255,255,255,.05); }
.bell-row.new { background: rgba(var(--accent-rgb), .1); }
.bell-ic { font-size: 17px; }
.bell-row small { color: var(--dim); font-size: 11.5px; }
.bottom-bar { display: none; }
@media (max-width: 820px) {
  .bottom-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: rgba(8,5,10,.96); border-top: 1px solid rgba(255,255,255,.08); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-bar button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border-radius: 10px; color: var(--muted); }
  .bottom-bar button span { font-size: 20px; }
  .bottom-bar button small { font-size: 10.5px; font-weight: 600; }
  .bottom-bar button.on { color: #fff; background: rgba(var(--accent-rgb), .16); }
  body.sv-open .bottom-bar { display: none; }
  .casino-page .cs-main { padding-bottom: 90px; }
  .casino-page .cs-head-right .bell { display: inline-flex !important; }
}
/* ---- profile.js ---- */
.rainbow-name { background: linear-gradient(90deg, #f87171, #fb923c, #facc15, #4ade80, #22d3ee, #a78bfa, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.rainbow-bg { background: linear-gradient(90deg, #f87171, #fb923c, #facc15, #4ade80, #22d3ee, #a78bfa, #f472b6) !important; }
.gc-title { display: inline-block; margin: 0 5px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); vertical-align: 1px; }
.pf-dlg { z-index: 1100 !important; }
.pf-card { max-width: 480px; width: 100%; text-align: left; display: flex; flex-direction: column; gap: 10px; max-height: 88vh; overflow: auto; }
.pf-top { display: flex; gap: 14px; align-items: center; }
.pf-av { width: 64px; height: 64px; flex: none; border-radius: 18px; display: grid; place-items: center; font-size: 32px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); }
.pf-who h2 { margin: 0; font-size: 22px; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; align-items: center; }
.pf-title, .pf-acct, .pf-on { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.75); }
.pf-title { background: rgba(var(--accent-rgb), .18); color: var(--accent-hi); }
.pf-on.on { color: #86efac; background: rgba(34,197,94,.12); }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pf-stats > div { padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.04); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-stats small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.pf-stats b { font: 800 14px var(--mono); overflow-wrap: anywhere; }
.pf-fav { margin: 0; font-size: 13.5px; color: var(--muted); }
.pf-h { margin: 6px 0 0; font-size: 14px; }
.pf-show { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-show .sk-card { width: auto; }
.pf-since { margin: 0; }
.pf-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pf-acts .btn { flex: 1 1 auto; }
.pf-prev { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(0,0,0,.35); font-size: 18px; }
.pf-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pf-color { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.pf-color i { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.pf-color.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.pf-color:disabled { opacity: .45; cursor: default; }
.pf-sel { background: var(--field); color: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; font: inherit; }
.pf-av-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.pf-avb { all: unset; cursor: pointer; aspect-ratio: 1; display: grid; place-items: center; font-size: 20px; border-radius: 8px; background: rgba(255,255,255,.04); }
.pf-avb.on { background: rgba(var(--accent-rgb), .25); box-shadow: inset 0 0 0 2px var(--accent); }
.pf-open { font-weight: 700; }
@media (max-width: 520px) { .pf-stats { grid-template-columns: repeat(2, 1fr); } .pf-av-row { grid-template-columns: repeat(5, 1fr); } .pf-colors { grid-template-columns: repeat(2, 1fr); } }
/* ---- rewards.js ---- */
.rw-pane { align-items: stretch !important; }
.rw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rw-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.rw-card.streak { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(251,146,60,.14), rgba(var(--accent-rgb), .08)); border-color: rgba(251,146,60,.35); }
.rw-card > .btn { align-self: flex-start; }
.rw-head { display: flex; gap: 12px; align-items: center; }
.rw-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: rgba(255,255,255,.07); }
.rw-head div { display: flex; flex-direction: column; }
.rw-head small { color: rgba(255,255,255,.6); font-size: 12.5px; }
.rw-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.rw-day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); }
.rw-day small { font-size: 10.5px; color: rgba(255,255,255,.5); }
.rw-day b { font: 800 13px var(--mono); }
.rw-day.done { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.4); }
.rw-day.done b::after { content: " ✔"; color: #86efac; }
.rw-day.today { border-color: #fb923c; box-shadow: 0 0 18px -6px #fb923c; }
.rw-big { font: 900 26px var(--mono); color: #fde68a; }
.rw-sub { color: rgba(255,255,255,.55); font-size: 12.5px; }
.rw-code { display: flex; align-items: baseline; gap: 8px; }
.rw-code b { font: 900 24px var(--mono); letter-spacing: .12em; color: #fff; }
.rw-code span { color: var(--dim); font-size: 12px; }
.rw-ref { display: flex; gap: 6px; }
.rw-ref input { flex: 1; min-width: 0; background: var(--field); border: 1px solid var(--line-2); color: #fff; border-radius: 10px; padding: 8px 10px; font: 700 14px var(--mono); letter-spacing: .1em; }
.rw-box-card { text-align: center; }
.rw-box-anim { font-size: 64px; animation: rwShake .6s ease; }
@keyframes rwShake { 20% { transform: rotate(-12deg) scale(1.1); } 40% { transform: rotate(10deg) scale(1.15); } 60% { transform: rotate(-6deg) scale(1.2); } 100% { transform: scale(1); } }
@media (max-width: 700px) { .rw-grid { grid-template-columns: 1fr; } .rw-days { grid-template-columns: repeat(4, 1fr); } }
/* ---- games3.js ---- */
.bj-side { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; align-items: center; font-size: 13.5px; color: rgba(255,255,255,.85); }
.bj-side[hidden] { display: none; }
.bj-side > span { font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.bj-side label { display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; background: rgba(0,0,0,.25); cursor: pointer; }
.bj-side small { color: #fde68a; font-size: 11px; }
.bj-side input { accent-color: #facc15; }
.bj-hint { margin: 0; padding: 6px 12px; border-radius: 10px; background: rgba(250,204,21,.15); color: #fde68a; font-weight: 700; font-size: 14px; }
.bj-hint[hidden] { display: none; }
.bj-side-res { margin: 0; font-size: 13px; color: rgba(255,255,255,.75); min-height: 1.2em; }
.bj-side-res.win { color: #86efac; font-weight: 700; }
.cr-pre { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.cr-every { display: flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 13.5px; color: rgba(255,255,255,.8); cursor: pointer; }
.rl-favs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rl-favs .btn { background: rgba(0,0,0,.3); color: #fff; border-color: rgba(255,255,255,.18); }
.sl-wrap { position: relative; width: min(760px, 100%); height: 90px; overflow: hidden; border-radius: 14px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.1); }
.sl-strip { position: absolute; top: 9px; left: 0; display: flex; will-change: transform; }
.sl-t { flex: none; width: 88px; height: 70px; margin: 0 2px; display: grid; place-items: center; border-radius: 10px; font: 800 16px var(--mono); color: #fff; background: #334155; border-bottom: 4px solid rgba(0,0,0,.3); }
.sl-t.green { background: #15803d; } .sl-t.blue { background: #1d4ed8; } .sl-t.pink { background: #be185d; } .sl-t.gold { background: linear-gradient(135deg, #f59e0b, #b45309); }
.sl-t.land { outline: 3px solid #fff; transform: scale(1.06); }
.sl-mark { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #facc15; box-shadow: 0 0 12px #facc15; z-index: 1; }
/* ---- tourney.js ---- */
.tr-banner { all: unset; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(250,204,21,.18), rgba(var(--accent-rgb), .14)); border: 1px solid rgba(250,204,21,.45); box-sizing: border-box; }
.tr-banner[hidden] { display: none; }
.tr-banner:hover { border-color: #facc15; }
.tr-b-ic { font-size: 30px; }
.tr-b-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tr-b-t small { font: 700 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fde68a; }
.tr-b-clock { font: 900 20px var(--mono); color: #fde68a; }
.tr-b-go { font-weight: 800; color: var(--on-accent, #fff); padding: 8px 14px; border-radius: 10px; background: var(--grad); }
.tr-pane { align-items: stretch !important; }
.tr-hero { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(250,204,21,.16), rgba(var(--accent-rgb), .1)); border: 1px solid rgba(250,204,21,.35); }
.tr-hero small { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fde68a; }
.tr-hero h2 { margin: 2px 0 4px; font-size: 30px; }
.tr-clock { text-align: center; padding: 10px 18px; border-radius: 14px; background: rgba(0,0,0,.35); }
.tr-clock b { display: block; font: 900 28px var(--mono); color: #fde68a; }
.tr-go { align-self: center; }
.tr-h { margin: 6px 0 0; font-size: 15px; }
.tr-bet { color: var(--dim); font-family: var(--mono); }
.tr-chip { all: unset; cursor: pointer; margin-left: auto; font: 700 11.5px var(--mono); padding: 5px 10px; border-radius: 99px; background: rgba(250,204,21,.15); color: #fde68a; border: 1px solid rgba(250,204,21,.4); }
@media (max-width: 600px) { .tr-b-go { display: none; } .tr-banner { padding: 12px; } }
/* ---- poker.js ---- */
.pk-pane { gap: 12px; }
.pk-table { position: relative; width: min(820px, 100%); aspect-ratio: 2 / 1.05; border-radius: 999px; background: radial-gradient(ellipse at 50% 40%, #1d7a4a, #0f5132 60%, #0a3d25); border: 12px solid #3a2616; box-shadow: inset 0 0 60px rgba(0,0,0,.5), 0 20px 50px -20px #000; margin: 40px auto 30px; }
.pk-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: 60%; }
.pk-board { display: flex; gap: 6px; }
.pk-board .pk-card.big, .pk-cards .pk-card.big { width: 44px; height: 62px; font-size: 15px; }
.pk-slot { width: 44px; height: 62px; border-radius: 7px; border: 2px dashed rgba(255,255,255,.18); }
.pk-pot { font: 800 16px var(--mono); color: #fde68a; text-align: center; }
.pk-log { font-size: 12px; color: rgba(255,255,255,.7); text-align: center; min-height: 1.2em; }
.pk-seat { position: absolute; width: 124px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 6px; border-radius: 14px; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.12); color: #fff; font-size: 12.5px; text-align: center; }
.pk-seat.empty { background: rgba(0,0,0,.25); border-style: dashed; }
.pk-seat.turn { border-color: #facc15; box-shadow: 0 0 22px -4px #facc15; }
.pk-seat.me { border-color: var(--accent); }
.pk-seat.folded { opacity: .45; }
.pk-seat.won { border-color: #22c55e; box-shadow: 0 0 26px -4px #22c55e; }
.pk-seat b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-stack { font: 700 11.5px var(--mono); color: #fde68a; }
.pk-cards { display: flex; gap: 3px; }
.pk-cards .pk-card.big { width: 34px; height: 48px; font-size: 12px; }
.pk-hand { color: #86efac; font-weight: 700; }
.pk-bet { position: absolute; bottom: -22px; font: 800 11px var(--mono); padding: 2px 8px; border-radius: 99px; background: #facc15; color: #1a1000; }
.pk-last { font-size: 11px; color: rgba(255,255,255,.7); }
.pk-btn { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #111; font: 800 11px/20px var(--mono); font-style: normal; }
.pk-empty { color: rgba(255,255,255,.4); }
.pk-seat.s0 { left: 50%; top: 100%; } .pk-seat.s1 { left: 16%; top: 90%; } .pk-seat.s2 { left: 0%; top: 50%; } .pk-seat.s3 { left: 16%; top: 8%; }
.pk-seat.s4 { left: 50%; top: 0%; } .pk-seat.s5 { left: 84%; top: 8%; } .pk-seat.s6 { left: 100%; top: 50%; } .pk-seat.s7 { left: 84%; top: 90%; }
.pk-me { min-height: 1.3em; }
.pk-mine { font-weight: 800; color: #fde68a; }
.pk-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.pk-raise { display: flex; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 12px; background: rgba(0,0,0,.3); }
.pk-raise input { width: 150px; accent-color: #facc15; }
.pk-timer { font: 800 14px var(--mono); color: #fde68a; }
.pk-wait { color: rgba(255,255,255,.7); }
@media (max-width: 700px) {
  .pk-table { aspect-ratio: 1 / 1.25; border-radius: 120px; margin: 50px 30px 30px; width: calc(100% - 60px); }
  .pk-seat { width: 92px; font-size: 11px; padding: 5px 4px; }
  .pk-cards .pk-card.big { width: 26px; height: 38px; font-size: 10px; }
  .pk-board .pk-card.big, .pk-slot { width: 32px; height: 46px; font-size: 12px; }
  .pk-seat.s1 { left: 5%; top: 78%; } .pk-seat.s2 { left: 0%; top: 50%; } .pk-seat.s3 { left: 5%; top: 20%; } .pk-seat.s5 { left: 95%; top: 20%; } .pk-seat.s6 { left: 100%; top: 50%; } .pk-seat.s7 { left: 95%; top: 78%; }
}
body[data-tab="poker"] #bail { display: none !important; }
/* ---- cases extras: odds, inspect, collection, market ---- */
.ca-odds { font: 700 11px var(--mono); color: var(--rc); }
.sk-card { position: relative; }
.sk-insp { all: unset; cursor: pointer; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: rgba(0,0,0,.45); font-size: 12px; opacity: 0; transition: opacity .15s; }
.sk-card:hover .sk-insp { opacity: 1; }
@media (hover: none) { .sk-insp { opacity: .8; } }
.sk-inspect { z-index: 1100 !important; }
.sk-insp-card { max-width: 460px; width: 100%; text-align: center; display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--rc); }
.sk-insp-art { border-radius: 14px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--rc) 30%, transparent), rgba(0,0,0,.4) 70%); padding: 16px; }
.sk-insp-art svg { width: 100%; height: auto; max-height: 200px; }
.sk-insp-r { color: var(--rc); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.sk-insp-card h2 { margin: 0; font-size: 20px; }
.sk-float { position: relative; display: flex; height: 22px; border-radius: 6px; overflow: visible; margin: 10px 0 6px; font: 700 10px/22px var(--mono); }
.sk-float span { text-align: center; background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); border-right: 1px solid rgba(0,0,0,.4); }
.sk-float span:nth-child(1) { background: rgba(34,197,94,.3); } .sk-float span:nth-child(2) { background: rgba(132,204,22,.3); } .sk-float span:nth-child(3) { background: rgba(250,204,21,.25); } .sk-float span:nth-child(4) { background: rgba(249,115,22,.25); } .sk-float span:nth-child(5) { background: rgba(239,68,68,.25); }
.sk-float span.on { color: #fff; }
.sk-float-pin { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px #fff; border-radius: 2px; }
.sk-insp-kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; text-align: left; font-size: 14px; }
.sk-insp-kv span { color: var(--muted); }
.bk-pane, .mk-pane { align-items: stretch !important; }
.bk-top { display: flex; flex-direction: column; gap: 6px; }
.bk-top small { color: var(--muted); }
.bk-case { padding: 12px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.bk-case.done { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.06); }
.bk-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.bk-head span { color: var(--muted); font-size: 13px; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.bk-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; border-radius: 10px; background: rgba(0,0,0,.3); border-bottom: 3px solid var(--rc); filter: grayscale(1) brightness(.35); }
.bk-item.got { filter: none; }
.bk-item svg { width: 100%; height: 44px; }
.bk-item small { font-size: 10px; text-align: center; color: rgba(255,255,255,.75); line-height: 1.2; }
.mk-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-q { flex: 1; min-width: 160px; background: var(--field); border: 1px solid var(--line-2); color: #fff; border-radius: 10px; padding: 9px 12px; font: inherit; }
.mk-sel { background: var(--field); border: 1px solid var(--line-2); color: #fff; border-radius: 10px; padding: 9px; font: inherit; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.mk-card { width: auto !important; }
.mk-card .btn { margin: 0 8px 8px; }
.mk-seller { font-size: 11px; color: var(--muted); padding: 6px 8px 0; }
.mk-sell { max-width: 720px; width: 100%; display: flex; flex-direction: column; gap: 10px; max-height: 88vh; }
.mk-sell h2 { margin: 0; }
.mk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; overflow: auto; max-height: 48vh; }
.mk-pick .sk-card { width: auto; cursor: pointer; }
.mk-pick .sk-card.sel { outline: 3px solid var(--accent); }
.mk-sell-row { display: flex; gap: 8px; }
.mk-price { flex: 1; background: var(--field); border: 1px solid var(--line-2); color: #fde68a; border-radius: 10px; padding: 10px 12px; font: 800 16px var(--mono); }
.sk-insp { z-index: 5; }
/* ---- limits.js ---- */
.set-lim { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(244,63,94,.06); border: 1px solid rgba(244,63,94,.25); }
.set-lim > small { color: var(--muted); font-size: 12.5px; }
.set-num { background: var(--field); color: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; font: 700 14px var(--mono); }
.set-pend { color: #fde68a !important; }
.lim-dlg { z-index: 1150 !important; }

/* ---- theme.css ---- */
/* =====================================================================
   Orbit Casino design system v3 ("ds2"). Loaded last; overrides the older layers.
   Principles: neutral surfaces, one accent used sparingly, 1px borders instead of glows,
   tight radii, mono figures for every number, line icons instead of emoji.
   ===================================================================== */
:root, .casino-page {
  --bg: #0a0c10; --bg-2: #0d1015; --surface: #11141a; --surface-2: #161a22; --surface-3: #1d222c; --surface-4: #252b37;
  --field: #0c0f14; --line: rgba(255, 255, 255, .06); --line-2: rgba(255, 255, 255, .1); --line-3: rgba(255, 255, 255, .16);
  --text: #e9ebf0; --muted: #8b93a4; --dim: #5d6576;
  --accent: #ff3d8b; --accent-hi: #ff6aa6; --accent-lo: #d61f6a; --accent-rgb: 255, 61, 139; --accent-glow: rgba(255, 61, 139, 0);
  --grad: linear-gradient(var(--accent), var(--accent));
  --win: #2fd27c; --loss: #ff5d6c; --gold: #f2c14e; --green: #2fd27c; --yellow: #f2c14e; --danger: #ff5d6c;
  --cs-bg: var(--bg); --cs-panel: var(--surface); --cs-panel2: var(--surface-2); --cs-line: var(--line);
  --r-xs: 6px; --r-sm: 8px; --r: 10px; --r-lg: 14px;
  --felt: #0e3b2c;
}
.ds2 body.casino-page { background: var(--bg) !important; color: var(--text); font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
.ds2 .casino-page ::selection { background: rgba(var(--accent-rgb), .35); }
/* No glows, no glass, no gradient text anywhere by default. */
.ds2 .casino-page .btn, .ds2 .casino-page .cs-pane, .ds2 .casino-page .cs-tile, .ds2 .casino-page .cs-side-card, .ds2 .casino-page .panel,
.ds2 .casino-page .cs-hero, .ds2 .casino-page .cs-jackpot, .ds2 .casino-page .cs-wallet, .ds2 .casino-page .cs-bar, .ds2 .casino-page .st-bc { box-shadow: none !important; text-shadow: none !important; }
.ds2 .casino-page h1, .ds2 .casino-page h2, .ds2 .casino-page h3 { letter-spacing: -0.02em; color: var(--text); }
.ds2 .ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ---- Buttons ---- */
.ds2 .casino-page .btn { height: 38px; padding: 0 14px; border-radius: var(--r-sm); background: var(--surface-3); border: 1px solid transparent; color: var(--text); font-weight: 600; font-size: 13.5px; gap: 8px; transition: background .12s, border-color .12s, color .12s; filter: none; }
.ds2 .casino-page .btn:hover { background: var(--surface-4); border-color: transparent; }
.ds2 .casino-page .btn:active { transform: translateY(1px); }
.ds2 .casino-page .btn.primary { background: var(--accent); color: var(--on-accent, #fff); border-color: transparent; }
.ds2 .casino-page .btn.primary:hover { background: var(--accent-hi); filter: none; }
.ds2 .casino-page .btn.ghost { background: transparent; border-color: var(--line-2); color: var(--muted); }
.ds2 .casino-page .btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.ds2 .casino-page .btn.danger { background: transparent; border-color: rgba(255, 93, 108, .35); color: #ff8d98; }
.ds2 .casino-page .btn.lg { height: 46px; padding: 0 20px; font-size: 14.5px; border-radius: var(--r); }
.ds2 .casino-page .btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; }
.ds2 .casino-page .btn:disabled { opacity: .4; }
.ds2 .casino-page .seg { background: var(--field); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.ds2 .casino-page .seg button { border-radius: 6px; color: var(--muted); font-weight: 600; font-size: 12.5px; background: transparent; }
.ds2 .casino-page .seg button.on { background: var(--surface-3); color: var(--text); box-shadow: none; }
.ds2 .casino-page input:not([type="checkbox"]):not([type="range"]):not([type="radio"]), .ds2 .casino-page select { border-radius: var(--r-sm); }
.ds2 .casino-page input[type="checkbox"], .ds2 .casino-page input[type="range"] { accent-color: var(--accent); }

/* ---- Header ---- */
.ds2 .casino-page .cs-head { height: 56px; background: var(--bg); border-bottom: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 16px; gap: 10px; }
.ds2 .casino-page .cs-logo { gap: 10px; }
.ds2 .casino-page .cs-logo i { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--on-accent, #fff); border: 0; box-shadow: none; font-size: 15px; display: grid; place-items: center; font-style: normal; }
.ds2 .casino-page .cs-logo span { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--text); }
.ds2 .casino-page .cs-logo b { font-weight: 500; font-size: 16px; color: var(--muted); background: none; -webkit-text-fill-color: currentColor; letter-spacing: -0.01em; }
.ds2 .casino-page .cs-head .back { border: 0; color: var(--muted); padding: 6px 8px; font-size: 13px; }
.ds2 .casino-page .cs-wallet { height: 38px; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); border-right: 0; padding: 0 12px; }
.ds2 .casino-page .cs-wallet .cs-coin { font-size: 14px; filter: saturate(.8); }
.ds2 .casino-page .cs-wallet b { color: var(--text); font: 600 15px "Geist Mono", ui-monospace, monospace; letter-spacing: -0.02em; }
.ds2 .casino-page #daily, .ds2 .casino-page #bail { height: 38px; border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--accent); font-size: 12.5px; padding: 0 12px; }
.ds2 .casino-page #daily:disabled { background: var(--surface-2); color: var(--dim); border: 1px solid var(--line-2); border-left: 0; }
.ds2 .casino-page .sess, .ds2 .casino-page .bank-chip { height: 32px; border-radius: var(--r-sm); font: 600 12px "Geist Mono", monospace; background: var(--surface-2); border: 1px solid var(--line-2); }
.ds2 .casino-page .sess.up { color: var(--win); background: var(--surface-2); border-color: rgba(47, 210, 124, .3); }
.ds2 .casino-page .sess.down { color: var(--loss); background: var(--surface-2); border-color: rgba(255, 93, 108, .3); }
.ds2 .casino-page .cs-head-right { gap: 4px; }
.ds2 .casino-page .cs-head-right .btn { height: 34px; background: transparent; border: 1px solid transparent; color: var(--muted); }
.ds2 .casino-page .cs-head-right .btn:hover { background: var(--surface-2); color: var(--text); }
.ds2 .casino-page .cs-head-right .btn.ic-only { width: 34px; padding: 0; }
.ds2 .casino-page .cs-head-right .cs-leave { color: var(--muted); border-color: var(--line-2); }
.ds2 .casino-page .cs-head-right .cs-leave:hover { color: var(--loss); border-color: rgba(255, 93, 108, .4); background: transparent; }
.ds2 .casino-page .cs-vip-badge { height: 32px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--gold); }
.ds2 .casino-page .pg-lvl-badge { height: 32px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); font: 600 11.5px "Geist Mono", monospace; }
.ds2 .casino-page .pg-lvl-badge i::after { background: var(--accent); }
.ds2 .casino-page .acct-btn.in { border-color: transparent !important; color: var(--text) !important; }
.ds2 .bell-n { background: var(--accent); }

/* ---- Left menu ---- */
.ds2 .cs-app { grid-template-columns: 236px minmax(0, 1fr) 300px; }
.ds2 .casino-page .cs-nav { background: var(--bg); border-right: 1px solid var(--line); padding: 12px 10px 90px; gap: 2px; }
.ds2 .casino-page .nav-search { height: 36px !important; background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-sm) !important; color: var(--text); margin-bottom: 8px; font-size: 13px !important; }
.ds2 .casino-page .cs-nav-group { margin-bottom: 6px; }
.ds2 .casino-page .cs-nav-group h4 { font: 600 11px "Geist", sans-serif; letter-spacing: .06em; color: var(--dim); padding: 10px 10px 4px; }
.ds2 .casino-page .cs-nav-group h4 small { background: transparent; color: var(--dim); font-weight: 500; }
.ds2 .casino-page .cs-tab { height: 34px; padding: 0 10px; gap: 11px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; color: var(--muted); }
.ds2 .casino-page .cs-tab .ni { width: 18px; height: 18px; display: grid; place-items: center; opacity: .85; }
.ds2 .casino-page .cs-tab:hover { background: var(--surface); color: var(--text); }
.ds2 .casino-page .cs-tab.on { background: var(--surface-2); color: var(--text); }
.ds2 .casino-page .cs-tab.on .ni { color: var(--accent); opacity: 1; }
.ds2 .casino-page .cs-tab.on::before { left: -10px; top: 9px; bottom: 9px; width: 2px; border-radius: 0 2px 2px 0; background: var(--accent); }
.ds2 .casino-page .fav-star { color: var(--dim); }
.ds2 .casino-page .fav-star.on { color: var(--gold); }
.ds2 .casino-page .cs-tab .gc-badge { background: var(--accent); font-size: 10px; }
.ds2 .casino-page .cs-nav-note { color: var(--dim); font-size: 11.5px; }

/* ---- Main column + pages ---- */
.ds2 .casino-page .cs-main { padding: 20px 28px 96px; gap: 16px; background: var(--bg-2); }
.ds2 .casino-page .cs-main > * { max-width: 1160px; }
.ds2 .casino-page .cs-pane { border-radius: var(--r-lg); padding: 20px 22px 24px; }
.ds2 .casino-page .cs-pane.cs-dark, .ds2 .casino-page .pd-pane, .ds2 .casino-page .vip-pane { background: var(--surface) !important; border: 1px solid var(--line) !important; }
.ds2 .casino-page .cs-pane.felt { background: radial-gradient(ellipse at 50% 20%, #134a37, var(--felt) 70%) !important; border: 1px solid rgba(255, 255, 255, .08) !important; box-shadow: none !important; }
.ds2 .casino-page .pane-title { border-bottom: 1px solid var(--line); padding-bottom: 14px; gap: 12px; }
.ds2 .casino-page .pane-ic { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--surface-3); color: var(--accent); }
.ds2 .casino-page .pane-ic .ic { width: 18px; height: 18px; }
.ds2 .casino-page .pane-title h2 { font-size: 18px; font-weight: 650; }
.ds2 .casino-page .pane-title small { font: 500 11px "Geist", sans-serif; letter-spacing: .04em; text-transform: none; color: var(--dim); }
.ds2 .casino-page .cs-pane.felt .pane-ic { background: rgba(0, 0, 0, .25); color: #fff; }
.ds2 .casino-page .cs-msg { color: var(--muted); font-weight: 500; }
.ds2 .casino-page .cs-msg.good { color: var(--win); }
.ds2 .casino-page .cs-note { color: var(--dim); }

/* Numbers line up */
.ds2 .casino-page b, .ds2 .casino-page em, .ds2 .casino-page .mono { font-variant-numeric: tabular-nums; }

/* ---- Bet bar ---- */
.ds2 .casino-page .cs-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 10px; top: -20px; backdrop-filter: none; }
.ds2 .casino-page .cs-bar-label { font: 600 11px "Geist", sans-serif; letter-spacing: .06em; color: var(--dim); }
.ds2 .casino-page .cs-chip { box-shadow: none !important; transform: none; width: 38px; height: 38px; font: 700 11px "Geist Mono", monospace; border-width: 2px; }
.ds2 .casino-page .cs-chip.on { outline: 2px solid var(--text); outline-offset: 2px; transform: none; }
.ds2 .casino-page .bb { background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.ds2 .casino-page .bb-in { color: var(--text); font: 600 14px "Geist Mono", monospace; }
.ds2 .casino-page .bb button { background: var(--surface-3); border-radius: 6px; font: 600 12px "Geist Mono", monospace; color: var(--muted); }
.ds2 .casino-page .bb button:hover { background: var(--surface-4); color: var(--text); }

/* ---- Lobby ---- */
.ds2 .casino-page .cs-hero { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg); padding: 32px 34px; gap: 28px; align-items: stretch; }
.ds2 .casino-page .cs-hero::before, .ds2 .casino-page .cs-hero::after { display: none !important; }
.ds2 .casino-page .cs-hero-copy { flex: 1 1 380px; display: flex; flex-direction: column; justify-content: center; }
.ds2 .casino-page .cs-hero-kicker { font: 600 12px "Geist", sans-serif; letter-spacing: .04em; text-transform: none; color: var(--accent); margin: 0; }
.ds2 .casino-page .cs-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.035em; margin: 8px 0 10px; color: var(--text); }
.ds2 .casino-page .cs-hero p { color: var(--muted); max-width: 470px; font-size: 15px; line-height: 1.55; }
.ds2 .casino-page .cs-hero-cta { margin-top: 20px; gap: 8px; }
.ds2 .casino-page .cs-jackpot { flex: 0 0 250px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 22px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line-2); animation: none; }
.ds2 .casino-page .cs-jackpot small { font: 600 11px "Geist", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.ds2 .casino-page .cs-jackpot b { font: 600 34px "Geist Mono", monospace; letter-spacing: -0.04em; color: var(--gold); text-shadow: none; }
.ds2 .casino-page .cs-jackpot span { color: var(--muted); font-size: 12.5px; }
.ds2 .casino-page .cs-cat { font-size: 15px; font-weight: 650; margin: 10px 0 0; color: var(--text); }
.ds2 .casino-page .cs-tiles { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.ds2 .casino-page .cs-tile { aspect-ratio: auto; height: 118px; border-radius: var(--r); align-items: flex-start; justify-content: flex-end; padding: 14px; text-align: left; background: var(--surface) !important; border: 1px solid var(--line) !important; overflow: hidden; transition: border-color .15s, background .15s, transform .15s; }
.ds2 .casino-page .cs-tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 60%); opacity: .9; }
.ds2 .casino-page .cs-tile::after { display: none; }
.ds2 .casino-page .cs-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c1) 55%, transparent) !important; background: var(--surface-2) !important; box-shadow: none; }
.ds2 .casino-page .cs-tile .cs-tile-i { position: absolute; top: 14px; left: 14px; transform: none !important; width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 18px; filter: none; background: color-mix(in srgb, var(--c1) 16%, var(--surface-3)); color: var(--c1); }
.ds2 .casino-page .cs-tile .cs-tile-i .ic { width: 19px; height: 19px; }
.ds2 .casino-page .cs-tile b { position: relative; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); text-shadow: none; }
.ds2 .casino-page .cs-tile em { position: absolute; top: 14px; right: 12px; left: auto; font: 600 10.5px "Geist", sans-serif; letter-spacing: .02em; text-transform: none; padding: 2px 7px; border-radius: 5px; background: var(--surface-3); color: var(--muted); border: 1px solid var(--line-2); box-shadow: none; }
.ds2 .casino-page .cs-tile em.tag-new { color: var(--win); border-color: rgba(47, 210, 124, .3); background: rgba(47, 210, 124, .08); }
.ds2 .casino-page .cs-tile em.tag-hot { color: #ff8d98; border-color: rgba(255, 93, 108, .3); background: rgba(255, 93, 108, .08); }
.ds2 .casino-page .cs-tile-play { display: none !important; }
.ds2 .casino-page .recent h3 { font-size: 15px; font-weight: 650; }
.ds2 .casino-page .recent-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 14px; font-size: 13.5px; font-weight: 500; }
.ds2 .casino-page .recent-item span { color: var(--accent); display: grid; }
.ds2 .casino-page .recent-item:hover { border-color: var(--line-3); }
.ds2 .casino-page .recent-item.fav { border-color: var(--line); }
.ds2 .casino-page .tr-banner { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg); padding: 14px 16px; }
.ds2 .casino-page .tr-banner:hover { border-color: var(--line-3) !important; }
.ds2 .casino-page .tr-b-ic { width: 38px; height: 38px; border-radius: var(--r-sm); background: rgba(242, 193, 78, .1); display: grid; place-items: center; font-size: 18px; }
.ds2 .casino-page .tr-b-t small { font: 600 11px "Geist", sans-serif; letter-spacing: .04em; text-transform: none; color: var(--gold); }
.ds2 .casino-page .tr-b-t b { font-weight: 600; }
.ds2 .casino-page .tr-b-clock { font: 600 16px "Geist Mono", monospace; color: var(--text); }
.ds2 .casino-page .tr-b-go { background: var(--surface-3); color: var(--text); font-weight: 600; font-size: 13px; }
.ds2 .casino-page .cs-ticker { height: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ds2 .casino-page .cs-tk-label { background: transparent; color: var(--win); font: 600 11px "Geist", sans-serif; letter-spacing: .06em; box-shadow: 14px 0 12px 4px var(--surface); padding: 0 12px; }
.ds2 .casino-page .cs-tk-label::before { background: var(--win); }
.ds2 .casino-page .cs-tk-track { color: var(--muted); font-size: 12.5px; }
.ds2 .casino-page .cs-tk-track span::before { content: "·  "; color: var(--dim); }
.ds2 .casino-page .st-ann { background: var(--surface); border: 1px solid var(--line-2); border-left: 2px solid var(--accent); border-radius: var(--r); font-weight: 500; font-size: 13.5px; }

/* ---- Right column ---- */
.ds2 .casino-page .cs-side { background: var(--bg); border-left: 1px solid var(--line); padding: 14px 12px 40px; }
.ds2 .casino-page .cs-side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.ds2 .casino-page .cs-side h3 { font: 600 11.5px "Geist", sans-serif; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.ds2 .casino-page .cs-person { border-radius: var(--r-sm); border: 1px solid transparent; padding: 6px 8px; }
.ds2 .casino-page .cs-person.me { background: var(--surface-2); border-color: var(--line-2); box-shadow: none; }
.ds2 .casino-page .cs-person b { font: 600 12.5px "Geist Mono", monospace; color: var(--text); }
.ds2 .casino-page .cs-top li { border-radius: var(--r-sm); border: 0; background: transparent; padding: 6px 8px; }
.ds2 .casino-page .cs-top li:nth-child(odd) { background: var(--surface-2); }
.ds2 .casino-page .cs-top li.me { outline: 1px solid var(--line-3); }
.ds2 .casino-page .cs-top li b { font: 600 12px "Geist Mono", monospace; color: var(--text); }
.ds2 .casino-page .cs-see { color: var(--muted); font-weight: 500; }
.ds2 .casino-page .gc-tabs { background: var(--field); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; }
.ds2 .casino-page .gc-tabs button { border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: transparent; }
.ds2 .casino-page .gc-tabs button.on { background: var(--surface-3); color: var(--text); }
.ds2 .casino-page .gc-online { color: var(--muted); font: 500 11.5px "Geist Mono", monospace; }
.ds2 .casino-page .gc-log li { font-size: 13px; }
.ds2 .casino-page .gc-av { border-radius: 7px; }
.ds2 .casino-page .gc-form input { background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.ds2 .casino-page .gc-role { border-radius: 4px; font-weight: 700; }
.ds2 .casino-page .gc-role.r-owner { background: rgba(242, 193, 78, .14); color: var(--gold); }
.ds2 .casino-page .gc-lvl { background: var(--surface-3); color: var(--muted); border-radius: 4px; }
.ds2 .casino-page .gc-log li.gc-win .gc-body em { color: var(--win); }

/* ---- Latest big wins table ---- */
.ds2 .casino-page .bw-feed { background: transparent; border: 0; padding: 0; }
.ds2 .casino-page .bw-head h3 { font-size: 15px; font-weight: 650; }
.ds2 .casino-page .bw-table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.ds2 .casino-page .bw-row { border-bottom: 1px solid var(--line); font-size: 13px; }
.ds2 .casino-page .bw-row.bw-th { background: var(--surface); font: 600 11px "Geist", sans-serif; letter-spacing: .04em; color: var(--dim); text-transform: none; }
.ds2 .casino-page .bw-pay { color: var(--win); font-family: "Geist Mono", monospace; }
.ds2 .casino-page .bw-mult.hot { color: var(--gold); }
.ds2 .casino-page .bw-row.fresh { animation: none; background: rgba(47, 210, 124, .05); }

/* ---- Pop-ups ---- */
.ds2 .casino-page .overlay { background: rgba(4, 5, 8, .72) !important; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ds2 .casino-page .panel { background: var(--surface) !important; border: 1px solid var(--line-2) !important; border-radius: var(--r-lg) !important; }
.ds2 .casino-page .st-big { font-size: 40px; }
.ds2 .toast { background: var(--surface-3); border: 1px solid var(--line-3); border-radius: var(--r); color: var(--text); font-weight: 500; font-size: 13.5px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6); }
.ds2 .casino-page .st-menu, .ds2 .casino-page .bell-pop, .ds2 .casino-page .em-pop { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); }
.ds2 .casino-page .st-bc { background: var(--surface-2) !important; color: var(--text); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--r); animation: stDrop .3s ease; }
.ds2 .casino-page .st-bc.warn { border-left-color: var(--gold); }
.ds2 .casino-page .st-bc.party { border-left-color: var(--win); }
.ds2 .casino-page .bigwin b { background: none; -webkit-text-fill-color: var(--gold); color: var(--gold); filter: none; font-weight: 700; letter-spacing: -0.04em; }
.ds2 .casino-page .bigwin small { color: var(--text); letter-spacing: .24em; font-size: 14px; }
.ds2 .casino-page .bigwin span { color: var(--win); }
.ds2 .casino-page .pg-lvlup b { background: none; -webkit-text-fill-color: var(--text); filter: none; }
.ds2 .casino-page .pg-ach { background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--gold); border-radius: var(--r); }
.ds2 .casino-page .pg-ach small { color: var(--gold); letter-spacing: .04em; }

/* ---- Pages built from cards (rewards, missions, bank, races, tournament, stats) ---- */
.ds2 .casino-page .rw-card, .ds2 .casino-page .pg-mis, .ds2 .casino-page .pg-stat, .ds2 .casino-page .bank-stat, .ds2 .casino-page .ra-prize, .ds2 .casino-page .ra-row, .ds2 .casino-page .pg-ach-c, .ds2 .casino-page .bk-case, .ds2 .casino-page .inv-show-row, .ds2 .casino-page .pf-stats > div, .ds2 .casino-page .jp-e, .ds2 .casino-page .csr-col {
  background: var(--surface-2) !important; border: 1px solid var(--line) !important; border-radius: var(--r) !important; box-shadow: none !important; }
.ds2 .casino-page .rw-card.streak, .ds2 .casino-page .bank-card, .ds2 .casino-page .ra-hero, .ds2 .casino-page .tr-hero, .ds2 .casino-page .pg-level, .ds2 .casino-page .pg-free, .ds2 .casino-page .promo-card, .ds2 .casino-page .sv-hero {
  background: var(--surface-2) !important; border: 1px solid var(--line-2) !important; border-radius: var(--r-lg) !important; }
.ds2 .casino-page .rw-ic, .ds2 .casino-page .pg-lv-num { background: var(--surface-3) !important; box-shadow: none; border-radius: var(--r-sm); }
.ds2 .casino-page .pg-lv-num { color: var(--text); font-weight: 600; }
.ds2 .casino-page .pg-bar { background: var(--surface-4); height: 6px; }
.ds2 .casino-page .pg-bar i { background: var(--accent); }
.ds2 .casino-page .pg-mis.ready { border-color: rgba(47, 210, 124, .45) !important; }
.ds2 .casino-page .pg-ach-c.on { border-color: rgba(242, 193, 78, .4) !important; }
.ds2 .casino-page .rw-day { background: var(--bg-2); border-color: var(--line); border-radius: var(--r-sm); }
.ds2 .casino-page .rw-day.done { background: rgba(47, 210, 124, .08); border-color: rgba(47, 210, 124, .35); }
.ds2 .casino-page .rw-day.today { border-color: var(--accent); box-shadow: none; }
.ds2 .casino-page .rw-big, .ds2 .casino-page .bank-amt, .ds2 .casino-page .tr-clock b, .ds2 .casino-page .ra-clock b { color: var(--text); font-family: "Geist Mono", monospace; font-weight: 600; }
.ds2 .casino-page .ra-row em, .ds2 .casino-page .pg-hr.win .pg-pay { color: var(--win); }
.ds2 .casino-page .ra-row.me { border-color: var(--accent) !important; }
.ds2 .casino-page .ra-hero small, .ds2 .casino-page .tr-hero small { color: var(--gold); letter-spacing: .04em; text-transform: none; font-family: "Geist", sans-serif; font-weight: 600; }
.ds2 .casino-page .pg-hist { border-color: var(--line); background: var(--bg-2); }
.ds2 .casino-page .pg-graph { background: var(--bg-2); border-color: var(--line); }

/* ---- Cases / skins ---- */
.ds2 .casino-page .ca-case { background: var(--surface-2) !important; border: 1px solid var(--line) !important; box-shadow: none !important; border-radius: var(--r-lg); }
.ds2 .casino-page .ca-case:hover { border-color: color-mix(in srgb, var(--c1) 50%, transparent) !important; }
.ds2 .casino-page .ca-tag { background: var(--surface-4); color: var(--win); border-radius: 5px; font-family: "Geist", sans-serif; }
.ds2 .casino-page .sk-card { border-radius: var(--r); box-shadow: none !important; }

/* ---- Game widgets: calmer accents ---- */
.ds2 .casino-page .dc-roll.win, .ds2 .casino-page .lb-out.win { color: var(--win); text-shadow: none; }
.ds2 .casino-page .dc-roll.lose, .ds2 .casino-page .lb-out.lose { color: var(--loss); }
.ds2 .casino-page .dc-stats > div { background: var(--bg-2); border-color: var(--line); border-radius: var(--r); }
.ds2 .casino-page .dc-hist span { font-family: "Geist Mono", monospace; border-radius: 5px; }
.ds2 .casino-page .dc-hist span.win { background: rgba(47, 210, 124, .12); color: var(--win); }
.ds2 .casino-page .dc-hist span:not(.win) { background: var(--surface-3); color: var(--muted); }
.ds2 .casino-page .tw-t, .ds2 .casino-page .mn-cell, .ds2 .casino-page .kn-n { border-radius: var(--r-sm); }
.ds2 .casino-page .ab-bar { background: var(--bg-2); border-color: var(--line); border-radius: var(--r); }
.ds2 .casino-page .ab-bar.running { box-shadow: none; }
.ds2 .casino-page .s5-grid { background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: none; }
.ds2 .casino-page .s5-grid.hslot { background: var(--bg-2); border-color: var(--line-2); box-shadow: none; }
.ds2 .casino-page .s5-title { background: none; -webkit-text-fill-color: var(--text); font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.ds2 .casino-page .sl-mark, .ds2 .casino-page .csr-mark { box-shadow: none; }
.ds2 .casino-page .pk-table { border: 10px solid #2b1d12; box-shadow: none; background: radial-gradient(ellipse at 50% 35%, #145a41, var(--felt) 70%); }
.ds2 .casino-page .pk-seat { background: rgba(10, 12, 16, .82); border: 1px solid var(--line-2); border-radius: var(--r); }
.ds2 .casino-page .pk-seat.turn { border-color: var(--gold); box-shadow: none; }
.ds2 .casino-page .pk-seat.won { border-color: var(--win); box-shadow: none; }
.ds2 .casino-page .bj-hint { background: rgba(0, 0, 0, .3); color: var(--gold); font-weight: 600; }

/* ---- Phones ---- */
@media (max-width: 1180px) { .ds2 .cs-app { grid-template-columns: 212px minmax(0, 1fr); } }
@media (max-width: 820px) {
  .ds2 .cs-app { grid-template-columns: 1fr; }
  .ds2 .casino-page .cs-head { height: 52px; padding: 0 10px; }
  .ds2 .casino-page .cs-nav { padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ds2 .casino-page .cs-tab { height: 34px; }
  .ds2 .casino-page .cs-tab.on::before { display: none; }
  .ds2 .casino-page .cs-main { padding: 12px 12px 90px; }
  .ds2 .casino-page .cs-hero { padding: 22px 18px; }
  .ds2 .casino-page .cs-jackpot { flex-basis: auto; }
  .ds2 .casino-page .cs-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ds2 .casino-page .cs-tile { height: 100px; }
  .ds2 .casino-page .bottom-bar { background: var(--bg); border-top: 1px solid var(--line); }
  .ds2 .casino-page .bottom-bar button span { display: grid; place-items: center; }
  .ds2 .casino-page .bottom-bar button span .ic { width: 20px; height: 20px; }
  .ds2 .casino-page .bottom-bar button.on { background: transparent; color: var(--accent); }
  .ds2 .casino-page .cs-head-right .ic-btn { font-size: 0; width: 34px; padding: 0; }
}
/* Old emoji fallbacks in the header are replaced by line icons */
.ds2 .casino-page .acct-btn::before, .ds2 .casino-page .cs-leave::before { content: none !important; }
@media (max-width: 1250px) { .ds2 .casino-page .acct-btn { font-size: 0; width: 34px; padding: 0; } }
@media (max-width: 820px) { .ds2 .casino-page .cs-leave { font-size: 0; width: 34px; padding: 0; } .ds2 .casino-page #daily::before { content: "+"; font-size: 16px; font-weight: 600; } }

/* ---- Fixes after first review ---- */
.ds2 .casino-page .cs-ticker { position: relative; }
.ds2 .casino-page .cs-tk-label { position: relative; z-index: 2; background: var(--surface); height: 100%; }
.ds2 .casino-page .cs-coin { font-size: 0 !important; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe7a3, #e2a92e 60%, #b9801a); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .22); display: inline-block; flex: none; }
.ds2 .casino-page .cs-vip-badge[data-tier="silver"] { color: #c9d1dc; } .ds2 .casino-page .cs-vip-badge[data-tier="bronze"] { color: #d59a6a; }
.ds2 .casino-page .cs-vip-badge[data-tier="platinum"] { color: #9fe6f0; } .ds2 .casino-page .cs-vip-badge[data-tier="diamond"], .ds2 .casino-page .cs-vip-badge[data-tier="pink-diamond"] { color: var(--accent-hi); }
@media (max-width: 820px) {
  .ds2 .casino-page #daily { font-size: 0 !important; padding: 0 12px; }
  .ds2 .casino-page #daily::before { content: "Daily" !important; font-size: 12px; font-weight: 600; }
  .ds2 .casino-page #daily:disabled::before { content: "Done" !important; }
}
/* Server list */
.ds2 .sv-overlay { background: var(--bg) !important; }
.ds2 .sv-wrap .cs-logo i { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--on-accent, #fff); border: 0; box-shadow: none; display: grid; place-items: center; font-style: normal; }
.ds2 .sv-wrap .cs-logo span { font-weight: 700; color: var(--text); }
.ds2 .sv-wrap .cs-logo b { font-weight: 500; color: var(--muted); background: none; -webkit-text-fill-color: currentColor; }
.ds2 .sv-hero { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; padding: 28px 30px; }
.ds2 .sv-hero h1 { font-weight: 700; letter-spacing: -0.035em; font-size: clamp(28px, 4vw, 40px); }
.ds2 .sv-hero h1 b { background: none; -webkit-text-fill-color: var(--accent); color: var(--accent); }
.ds2 .sv-hero p { color: var(--muted); }
.ds2 .sv-feats span { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); font-weight: 500; border-radius: 6px; padding: 5px 10px; }
.ds2 .sv-list-card, .ds2 .sv-create { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; box-shadow: none !important; }
.ds2 .sv-wrap input { background: var(--field) !important; border: 1px solid var(--line-2) !important; border-radius: var(--r-sm) !important; }
.ds2 .sv-wrap .btn { border-radius: var(--r-sm); box-shadow: none; }
.ds2 .sv-wrap .btn.primary { background: var(--accent); }
.ds2 .sv-row { background: var(--surface-2) !important; border: 1px solid var(--line) !important; border-radius: var(--r) !important; }
.ds2 .sv-row:hover { border-color: var(--line-3) !important; }
.ds2 .sv-empty { border: 1px dashed var(--line-2) !important; border-radius: var(--r) !important; }
.ds2 .sv-empty-ic { font-size: 0; width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--surface-3); }
.ds2 .sv-me { background: var(--surface) !important; border: 1px solid var(--line) !important; }
.ds2 .acct-sv.primary { background: var(--accent) !important; }
/* Drawn coin used in place of the coin emoji */
.ds2 i.cn { display: inline-block; width: .82em; height: .82em; margin: 0 .22em -.06em 0; border-radius: 50%; vertical-align: baseline; background: radial-gradient(circle at 35% 30%, #ffe7a3, #e2a92e 60%, #b9801a); box-shadow: inset 0 0 0 .09em rgba(0, 0, 0, .22); font-style: normal; }
.ds2 .casino-page .rw-ic, .ds2 .casino-page .tr-b-ic { color: var(--accent); }
.ds2 .casino-page .rw-ic .ic { width: 20px; height: 20px; }
.ds2 .casino-page .ca-box { width: 76px; height: 76px; border-radius: var(--r); display: grid; place-items: center; background: color-mix(in srgb, var(--c1) 14%, var(--surface-3)); color: var(--c1); font-size: 0; filter: none; margin: 6px auto 4px; }
.ds2 .casino-page .ca-box .ic { width: 40px; height: 40px; stroke-width: 1.4; }
.ds2 .casino-page .ca-case b { font-weight: 600; }
.ds2 .casino-page .ca-case em { color: var(--gold); font-family: "Geist Mono", monospace; font-style: normal; }

/* ---- Money Wheel ---- */
.ds2 .mw-pane { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mw-stage { position: relative; width: min(400px, 86vw); }
.mw-stage canvas { width: 100%; height: auto; display: block; }
.mw-pointer { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); border: 12px solid transparent; border-top: 22px solid var(--text); }
.mw-center { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; font: 700 22px "Geist Mono", monospace; color: var(--text); }
.mw-hist { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; min-height: 22px; }
.mw-hist i { font: 600 11px "Geist Mono", monospace; font-style: normal; padding: 3px 7px; border-radius: 5px; background: var(--surface-3); border-left: 3px solid var(--c); color: var(--text); }
.mw-bets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 640px; }
.mw-bet { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); border-top: 3px solid var(--c); color: var(--text); cursor: pointer; }
.mw-bet b { font: 700 18px "Geist Mono", monospace; }
.mw-bet small { color: var(--muted); font-size: 11.5px; }
.mw-bet em { font: 600 12px "Geist Mono", monospace; font-style: normal; color: var(--gold); min-height: 15px; }
.mw-bet:hover:not(:disabled) { background: var(--surface-3); }
.mw-bet.on { border-color: var(--c); border-top-width: 3px; }
.mw-bet.won { background: color-mix(in srgb, var(--c) 22%, var(--surface-2)); }
.mw-bet:disabled { cursor: default; opacity: .7; }
@media (max-width: 560px) { .mw-bets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- Chicken Cross ---- */
.ds2 .ck-pane { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ck-road-wrap { width: 100%; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #15171c; scrollbar-width: thin; }
.ck-road { display: flex; min-width: max-content; }
.ck-lane { position: relative; width: 78px; height: 220px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 0 12px; border-right: 2px dashed rgba(255, 255, 255, .14); background: #1b1e25; }
.ck-lane:nth-child(even) { background: #1e2129; }
.ck-lane.ck-curb { background: #23262f; border-right: 3px solid rgba(255, 255, 255, .3); }
.ck-lane small { font: 600 12px "Geist Mono", monospace; color: var(--muted); padding: 3px 7px; border-radius: 5px; background: rgba(0, 0, 0, .35); }
.ck-lane.done { background: #1a2a22; }
.ck-lane.done small { color: var(--win); }
.ck-lane.next small { color: var(--text); background: var(--surface-4); }
.ck-lane.hit { background: #2c1519; }
.ck-lane.hit small { color: var(--loss); }
.ck-chick { font-size: 34px; line-height: 1; margin-top: 64px; min-height: 34px; }
.ck-lane.here .ck-chick { animation: ck-hop .35s ease-out; }
.ck-car { position: absolute; top: 10px; font-size: 30px; font-style: normal; animation: ck-car .45s ease-out; }
@keyframes ck-hop { 0% { transform: translate(-40px, 0); } 50% { transform: translate(-20px, -14px); } 100% { transform: none; } }
@keyframes ck-car { from { transform: translateY(-80px); } to { transform: none; } }
.ck-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ck-diff.locked { opacity: .5; pointer-events: none; }

/* ---- Coinflip lobby ---- */
.fl-create { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.fl-create > div:first-child { flex: 1 1 220px; }
.fl-create h3 { margin: 0 0 2px; font-size: 15px; }
.fl-create .cs-note { margin: 0; }
.fl-list, .fl-recent { display: flex; flex-direction: column; gap: 6px; }
.fl-row, .fl-res { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.fl-row.mine { border-color: rgba(var(--accent-rgb), .35); }
.fl-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-pick { color: var(--muted); font-size: 12.5px; }
.fl-row em, .fl-res b { font: 600 13px "Geist Mono", monospace; font-style: normal; color: var(--gold); }
.fl-res { grid-template-columns: 1fr auto auto; font-size: 13px; background: transparent; }
.fl-res.me { border-color: var(--line-3); }
.fl-res small { color: var(--muted); }
.fl-coin-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; }
.fl-coin { position: relative; width: 96px; height: 96px; transform-style: preserve-3d; }
.fl-coin span { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font: 700 34px "Geist Mono", monospace; backface-visibility: hidden; background: var(--gold); color: #3a2a00; border: 4px solid #c99a2e; }
.fl-coin .t { transform: rotateY(180deg); background: #d9dde6; color: #2a2f3a; border-color: #aab0bd; }
.fl-coin.to-h { animation: fl-h 1.8s cubic-bezier(.2, .7, .2, 1) forwards; }
.fl-coin.to-t { animation: fl-t 1.8s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes fl-h { from { transform: rotateY(0); } to { transform: rotateY(1800deg); } }
@keyframes fl-t { from { transform: rotateY(0); } to { transform: rotateY(1980deg); } }
@media (max-width: 560px) { .fl-row { grid-template-columns: 1fr auto; } .fl-pick { display: none; } }

/* Horse racing live odds */
.hr-pick small.hr-in { color: var(--win); }
.hr-pick small.hr-out { color: var(--loss); }
.ck-diff button, .fl-side button { padding: 6px 12px; }
.fl-pane { text-align: left; }
.fl-pane .fl-create, .fl-pane .fl-list, .fl-pane .fl-recent, .fl-pane .ca-sub { width: 100%; align-self: stretch; text-align: left; }
.fl-pane .fl-coin-wrap { align-self: center; }

/* ---- Upgrader slider, trade-up preview, Tracker count ---- */
.up-slide { display: flex; align-items: center; gap: 12px; width: min(460px, 100%); color: var(--muted); font-size: 13px; }
.up-slide input { flex: 1; }
.up-slide b { font: 600 14px "Geist Mono", monospace; color: var(--text); min-width: 68px; text-align: right; }
.tu-odds { padding: 12px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); margin: 10px 0; }
.tu-odds-head { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.tu-odds-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.tu-odds-grid .sk-tile em, .pc-pick-grid .sk-tile em { display: block; font: 600 11px "Geist Mono", monospace; font-style: normal; color: var(--text); }
.tu-odds-grid .sk-tile b { display: block; font: 600 11px "Geist Mono", monospace; color: var(--gold); }
.sk-tk { display: block; font: 600 10.5px "Geist Mono", monospace; color: #f59e0b; margin-top: 2px; }

/* ---- Community cases ---- */
.pc-pane { text-align: left; }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pc-sort button, #pcSort button { padding: 6px 12px; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pc-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); border-top: 3px solid var(--rc); color: var(--text); text-align: left; cursor: pointer; }
.pc-card:hover { background: var(--surface-3); }
.pc-card .sk-tile { width: 100%; }
.pc-card b { font-size: 14px; }
.pc-card small { color: var(--muted); font-size: 12px; }
.pc-card em { font: 600 13px "Geist Mono", monospace; font-style: normal; color: var(--gold); }
.pc-make { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 16px; align-items: start; }
.pc-make-side { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.pc-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pc-chosen { display: flex; flex-direction: column; gap: 6px; }
.pc-row { display: grid; grid-template-columns: 1fr auto 76px auto auto; gap: 6px; align-items: center; padding: 6px 8px; border-radius: var(--r-sm); background: var(--field); border-left: 3px solid var(--rc); font-size: 12.5px; }
.pc-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pc-row small { color: var(--gold); font-family: "Geist Mono", monospace; }
.pc-row input { height: 30px; padding: 0 6px; font-family: "Geist Mono", monospace; }
.pc-row .btn.sm { height: 28px; padding: 0 8px; }
.pc-sum { font: 600 12.5px "Geist Mono", monospace; color: var(--text); }
.pc-sum.bad { color: var(--loss); }
.pc-make-pick { display: flex; flex-direction: column; gap: 10px; }
.pc-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; }
.pc-pickable { cursor: pointer; }
.pc-pickable.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.pc-del { margin: 6px 0 10px; }
@media (max-width: 760px) { .pc-make { grid-template-columns: 1fr; } }
.ds2 .casino-page .pc-pane { align-items: stretch; }
.pc-pane > div { width: 100%; min-width: 0; }
.pc-pane .ca-reels, .pc-pane .ca-reel { width: 100%; min-width: 0; }

/* ---- Win card / replay / share ---- */
.wc-card { width: min(420px, 92vw); text-align: center; display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.wc-game { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.wc-mult { font: 700 54px "Geist Mono", monospace; letter-spacing: -0.04em; color: var(--text); }
.wc-mult.done { color: var(--win); }
.wc-pay { font: 600 20px "Geist Mono", monospace; color: var(--gold); min-height: 26px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.wc-pay.in { opacity: 1; transform: none; }
.wc-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; text-align: left; font-size: 13px; padding: 10px 12px; border-radius: var(--r); background: var(--field); border: 1px solid var(--line); }
.wc-kv span { color: var(--muted); } .wc-kv b { font-weight: 600; }
.wc-fair { display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 12px; padding: 10px 12px; border-radius: var(--r); border: 1px solid rgba(47, 210, 124, .25); }
.wc-fair code { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--muted); word-break: break-all; }
.wc-fair small { color: var(--dim); }
.wc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.share-chip { position: fixed; right: 18px; bottom: 84px; z-index: 900; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-3); color: var(--text); font-size: 13px; cursor: pointer; animation: pop .3s ease-out; }
.share-chip b { padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); font-size: 12.5px; }

/* ---- Hall of Fame ---- */
.hof-pane { text-align: left; }
.hof-top { margin-bottom: 12px; }
.hof-top .seg button, .gf-send .seg button { padding: 6px 12px; }
.hof-list { display: flex; flex-direction: column; gap: 6px; }
.hof-row { display: grid; grid-template-columns: 40px minmax(90px, 1fr) minmax(0, 1.4fr) 90px 120px 70px; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-align: left; cursor: pointer; }
.hof-row:hover { background: var(--surface-3); }
.hof-row.top1 { border-color: rgba(242, 193, 78, .5); } .hof-row.top2 { border-color: rgba(200, 205, 215, .35); } .hof-row.top3 { border-color: rgba(205, 127, 50, .4); }
.hof-rank { font: 600 12px "Geist Mono", monospace; color: var(--muted); }
.hof-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hof-game { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hof-mult { font: 600 13px "Geist Mono", monospace; }
.hof-row em { font: 600 13px "Geist Mono", monospace; font-style: normal; color: var(--gold); text-align: right; }
.hof-row small { color: var(--dim); font-size: 11.5px; text-align: right; }
@media (max-width: 700px) { .hof-row { grid-template-columns: 34px 1fr auto; } .hof-game, .hof-row small, .hof-mult { display: none; } }

/* ---- Group bets ---- */
.gb-pane { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gb-idle, .gb-live { width: 100%; max-width: 620px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.gb-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.gb-form label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.gb-form input { width: 110px; font-family: "Geist Mono", monospace; }
.gb-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.gb-head div { padding: 10px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.gb-head small { display: block; color: var(--muted); font-size: 11.5px; }
.gb-head b { font: 600 16px "Geist Mono", monospace; }
.gb-members { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.gb-m { display: grid; grid-template-columns: 1fr auto 60px 130px; gap: 10px; align-items: center; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; text-align: left; }
.gb-m.me { border-color: rgba(var(--accent-rgb), .4); }
.gb-m span, .gb-m small, .gb-m em { font-family: "Geist Mono", monospace; font-style: normal; }
.gb-m small { color: var(--muted); } .gb-m em { color: var(--gold); text-align: right; }

/* ---- Gifts ---- */
.gf-pane { text-align: left; }
.gf-send { display: flex; flex-direction: column; gap: 10px; max-width: 460px; padding: 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.gf-send h3 { margin: 0; }
.gf-send label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.gf-log { display: flex; flex-direction: column; gap: 6px; }
.gf-row { display: grid; grid-template-columns: auto auto auto 1fr; gap: 10px; align-items: center; padding: 9px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.gf-row small { color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-card { width: min(360px, 92vw); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 22px; text-align: center; }
.gf-box { position: relative; width: 130px; height: 120px; cursor: pointer; margin: 6px 0 4px; animation: gf-wiggle 1.4s ease-in-out infinite; }
.gf-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 8px; }
.gf-body { position: absolute; left: 8px; right: 8px; bottom: 0; height: 80px; border-radius: 6px; background: var(--accent); }
.gf-lid { position: absolute; left: 0; right: 0; top: 18px; height: 26px; border-radius: 6px; background: var(--accent-hi); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); z-index: 2; }
.gf-ribbon { position: absolute; left: 50%; top: 18px; bottom: 0; width: 16px; transform: translateX(-50%); background: var(--gold); z-index: 3; transition: opacity .3s; }
.gf-box.open { animation: none; }
.gf-box.open .gf-lid { transform: translateY(-46px) rotate(-18deg); }
.gf-box.open .gf-ribbon { opacity: 0; }
@keyframes gf-wiggle { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-5deg); } 86% { transform: rotate(5deg); } 94% { transform: rotate(-2deg); } }
.gf-from { color: var(--muted); font-size: 13px; }
.gf-hint { color: var(--dim); font-size: 12.5px; margin: 0; }
.gf-reveal { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; animation: pop .35s ease-out; }
.gf-what { font: 700 24px "Geist Mono", monospace; color: var(--gold); }
.gf-note { color: var(--text); font-style: italic; margin: 0; }
@media (prefers-reduced-motion: reduce) { .gf-box { animation: none; } }
.gf-card, .wc-card { font-family: "Geist", system-ui, sans-serif; }

/* ---- Monthly calendar, daily puzzle ---- */
.rw-card.wide { grid-column: 1 / -1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin: 6px 0; }
.cal-d { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 44px; border-radius: var(--r-sm); background: var(--field); border: 1px solid var(--line); }
.cal-d small { font: 500 11px "Geist Mono", monospace; color: var(--muted); }
.cal-d b { font-size: 13px; color: var(--win); min-height: 15px; }
.cal-d.got { background: rgba(47, 210, 124, .08); border-color: rgba(47, 210, 124, .3); }
.cal-d.today { border-color: var(--accent); }
.cal-d.miss { opacity: .45; }
.cal-miles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cal-miles span { font-size: 11.5px; padding: 4px 8px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); color: var(--muted); }
.cal-miles span.got { color: var(--win); border-color: rgba(47, 210, 124, .35); }
.pz-q { font-size: 14.5px; font-weight: 600; margin: 4px 0 8px; line-height: 1.4; }
.pz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.ds2 .casino-page .pz-opts .btn { height: auto; min-height: 38px; padding: 8px 10px; white-space: normal; line-height: 1.25; }
.ds2 .casino-page .pz-opts .btn.right { background: rgba(47, 210, 124, .15); color: var(--win); opacity: 1; }
.ds2 .casino-page .pz-opts .btn.wrong { background: rgba(255, 93, 108, .12); color: var(--loss); opacity: 1; }

/* ---- Quest chains, achievement rarity ---- */
.qc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 8px; }
.qc { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.qc.ready { border-color: rgba(47, 210, 124, .45); }
.qc.claimed { opacity: .6; }
.qc-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.qc-head span { font: 600 12px "Geist Mono", monospace; color: var(--gold); white-space: nowrap; }
.qc-steps { margin: 0; padding: 0; list-style: none; counter-reset: qc; display: flex; flex-direction: column; gap: 6px; }
.qc-steps li { counter-increment: qc; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.qc-steps li::before { content: counter(qc); flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 11px "Geist Mono", monospace; background: var(--field); border: 1px solid var(--line-2); }
.qc-steps li.done { color: var(--muted); text-decoration: line-through; }
.qc-steps li.done::before { content: "✓"; color: var(--win); border-color: rgba(47, 210, 124, .4); }
.qc-steps li.now { color: var(--text); }
.qc-steps li.now::before { border-color: var(--accent); color: var(--text); }
.qc-steps li small { margin-left: auto; font: 500 11.5px "Geist Mono", monospace; color: var(--muted); }
.pg-ach-r { display: block; font: 500 10.5px "Geist Mono", monospace; font-style: normal; color: var(--dim); margin-top: 2px; }
.pg-ach-r.rare { color: var(--gold); }

/* ---- First-time tips ---- */
.tip-card { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); text-align: left; width: 100%; }
.tip-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tip-head b { font-size: 13.5px; }
.tip-card ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }

/* ---- Bet history ---- */
.hi-pane { text-align: left; }
.hi-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.hi-filters .seg button { padding: 6px 12px; }
.hi-filters select { height: 36px; }
.hi-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.hi-sum div { padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.hi-sum small { display: block; font-size: 11.5px; color: var(--muted); }
.hi-sum b { font: 600 15px "Geist Mono", monospace; }
.hi-sum .up b { color: var(--win); } .hi-sum .down b { color: var(--loss); }
.hi-chart { position: relative; height: 150px; margin-bottom: 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); padding: 8px; }
.hi-chart svg { width: 100%; height: 100%; display: block; }
.hi-chart-l { position: absolute; top: 8px; bottom: 8px; left: 12px; display: flex; flex-direction: column; justify-content: space-between; font: 500 11px "Geist Mono", monospace; color: var(--dim); pointer-events: none; }
@media (max-width: 640px) { .hi-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Reduced motion ---- */
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html.reduce-motion .cs-tk-track { animation: none !important; }
html.reduce-motion .bw-conf { display: none !important; }

/* ---- Streamer mode: hide your balance, name and codes ---- */
html.streamer #coins, html.streamer .cs-person.me b, html.streamer .cs-person.me span, html.streamer .sess, html.streamer .rw-code b, html.streamer #gfMine, html.streamer .cs-top li.me, html.streamer .bank-chip, html.streamer .pg-stat b, html.streamer .acct-btn { filter: blur(7px); user-select: none; }
html.streamer .cs-wallet::after { content: "streamer mode"; font-size: 10.5px; color: var(--dim); margin-left: 6px; }
.ds2 .casino-page .hi-pane, .ds2 .casino-page .hof-pane, .ds2 .casino-page .gf-pane { align-items: stretch; }
.hi-pane > *, .hof-pane > *, .gf-pane > * { width: 100%; }
.hi-filters .seg button, .hof-top .seg button { white-space: nowrap; }

/* ---- Owner switches: games off, maintenance ---- */
.cs-tab.g-off, .cs-tile.g-off { opacity: .4; }
.cs-tab.g-off::after { content: "off"; margin-left: auto; font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.cs-pane.g-off > *:not(.pane-title):not(.g-off-note) { pointer-events: none; opacity: .3; filter: grayscale(1); }
.g-off-note { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px; margin-bottom: 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-2); width: 100%; }
.g-off-note span { color: var(--muted); font-size: 13px; }
.maint { position: fixed; inset: 0; z-index: 3000; background: rgba(10, 12, 16, .96); display: grid; place-items: center; padding: 16px; }
.maint-card { max-width: 440px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.maint-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); }
.maint-ic .ic { width: 28px; height: 28px; }
.maint-card h1 { margin: 6px 0 0; font-size: 26px; }
.maint-t { color: var(--muted); margin: 0; line-height: 1.5; }
.maint-u { color: var(--text); font: 600 14px "Geist Mono", monospace; margin: 0; }
body.in-maint { overflow: hidden; }

/* ---- The rush (thrill.js) ---- */
@keyframes th-shake { 0%, 100% { transform: none; } 15% { transform: translate(calc(var(--shake) * -1), 2px); } 30% { transform: translate(var(--shake), -2px); } 45% { transform: translate(calc(var(--shake) * -.6), 1px); } 60% { transform: translate(calc(var(--shake) * .6), -1px); } 80% { transform: translate(calc(var(--shake) * -.3), 0); } }
.cs-main.th-shake { animation: th-shake .45s ease-out; }
.th-flash { position: fixed; inset: 0; z-index: 1400; pointer-events: none; animation: th-flash .7s ease-out forwards; }
@keyframes th-flash { from { opacity: 1; } to { opacity: 0; } }
.th-near { position: fixed; z-index: 1450; transform: translate(-50%, -110%); padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); font: 800 15px "Geist", sans-serif; letter-spacing: .02em; pointer-events: none; white-space: nowrap; animation: th-near 1.8s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes th-near { 0% { transform: translate(-50%, -60%) scale(.4); opacity: 0; } 15% { transform: translate(-50%, -110%) scale(1.15); opacity: 1; } 25% { transform: translate(-50%, -110%) scale(1); } 80% { opacity: 1; } 100% { transform: translate(-50%, -160%); opacity: 0; } }
/* Crash heat: the screen edges glow red the higher the rocket climbs while you're in */
.cs-pane[data-pane="cr"] { position: relative; --heat: 0; }
.cs-pane[data-pane="cr"] .cr-stage { box-shadow: inset 0 0 calc(var(--heat) * 120px) rgba(255, 61, 90, calc(var(--heat) * .55)); transition: box-shadow .2s; }
.cs-pane[data-pane="cr"] .cr-mult.live { transform: scale(calc(1 + var(--heat) * .25)); transition: transform .2s; }
/* Classic 7s: the last reel keeps spinning when two match */
.reel.tease { animation: th-tease .35s ease-in-out infinite; box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(242, 193, 78, .5) !important; }
@keyframes th-tease { 50% { transform: scale(1.06); } }
/* Big win celebration */
.th-win { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(8, 9, 12, .82), rgba(8, 9, 12, .94)); cursor: pointer; overflow: hidden; animation: th-in .25s ease-out; }
.th-win.out { animation: th-fade .4s ease-in forwards; }
@keyframes th-in { from { opacity: 0; } } @keyframes th-fade { to { opacity: 0; } }
.th-win-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.th-win small { font: 900 clamp(28px, 7vw, 64px) "Geist", sans-serif; letter-spacing: .04em; color: var(--gold); animation: th-pulse .5s ease-in-out infinite alternate; }
.th-win.t0 small, .th-win.t1 small { background: linear-gradient(90deg, var(--accent), #f2c14e, #2fd27c, #3fa7ff, var(--accent)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: th-pulse .5s ease-in-out infinite alternate, th-rain 2s linear infinite; }
@keyframes th-pulse { to { transform: scale(1.06); } } @keyframes th-rain { to { background-position: 300% 0; } }
.th-win-amt { font: 800 clamp(34px, 9vw, 88px) "Geist Mono", monospace; color: #fff; letter-spacing: -.03em; }
.th-win.landed .th-win-amt { animation: th-land .5s cubic-bezier(.2, 1.6, .4, 1); color: var(--win); }
@keyframes th-land { from { transform: scale(1.35); } }
.th-win-x { font: 600 16px "Geist Mono", monospace; color: var(--muted); }
.th-win em { margin-top: 18px; font-size: 12px; color: var(--dim); font-style: normal; }
.th-coin { position: absolute; top: -40px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c4, #f2c14e 45%, #b8860b); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); animation: th-fall linear forwards; z-index: 1; }
@keyframes th-fall { to { transform: translateY(115vh) rotate(720deg); } }
/* Win streak */
.th-streak { height: 32px; padding: 0 10px; margin-left: 6px; border-radius: var(--r-sm); display: flex; align-items: center; font: 700 12.5px "Geist Mono", monospace; color: #ffb35c; background: rgba(255, 140, 40, .1); border: 1px solid rgba(255, 140, 40, .35); white-space: nowrap; }
.th-streak.hot { color: var(--on-accent, #fff); background: linear-gradient(90deg, #ff5a1f, var(--accent)); border-color: transparent; }
.th-streak.pop { animation: th-land .45s cubic-bezier(.2, 1.6, .4, 1); }
@media (max-width: 700px) { .th-streak { display: none; } }
html.reduce-motion .th-coin, html.reduce-motion .th-near { display: none; }

/* ---- Showdown ---- */
.sd-pane { text-align: left; }
.ds2 .casino-page .sd-pane { align-items: stretch; }
.sd-pane > div { width: 100%; }
.sd-lead { font-size: 15px; margin: 0 0 12px; }
.sd-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sd-modes.small { grid-template-columns: 1fr; margin: 10px 0; }
.sd-mode { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); text-align: left; cursor: pointer; }
.sd-mode small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.sd-mode.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.sd-go { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: 14px 0 6px; flex-wrap: wrap; }
.sd-go span { color: var(--muted); font: 600 13px "Geist Mono", monospace; }
.sd-stake { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; color: var(--muted); font-size: 13px; }
.sd-stake input { flex: 1; font-family: "Geist Mono", monospace; }
.sd-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.sd-head div { padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.sd-head small { display: block; color: var(--muted); font-size: 11.5px; }
.sd-head b { font: 600 16px "Geist Mono", monospace; }
.sd-stage { min-height: 120px; display: grid; place-items: center; margin-bottom: 12px; border-radius: var(--r-lg); background: #0d0f14; border: 1px solid var(--line); padding: 16px; }
.sd-drum { font: 700 22px "Geist", sans-serif; }
.sd-ck { text-align: center; }
.sd-ck-m { --heat: 0; display: block; font: 800 clamp(48px, 10vw, 88px) "Geist Mono", monospace; letter-spacing: -.04em; color: hsl(calc(140 - var(--heat) * 140), 80%, 60%); transform: scale(calc(1 + var(--heat) * .15)); transition: transform .15s; }
.sd-ck-m.crashed { color: var(--loss); }
.sd-ck small { color: var(--muted); }
.sd-seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.sd-seat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); text-align: center; }
.sd-seat.me { border-color: rgba(var(--accent-rgb), .45); }
.sd-seat .sd-val { font: 700 20px "Geist Mono", monospace; min-height: 26px; color: var(--text); }
.sd-seat.shown .sd-val { animation: th-land .45s cubic-bezier(.2, 1.6, .4, 1); }
.sd-seat.out { opacity: .75; }
.sd-seat.won { border-color: var(--gold); background: rgba(242, 193, 78, .1); }
.sd-seat em { font: 600 13px "Geist Mono", monospace; font-style: normal; color: var(--gold); min-height: 16px; }
.sd-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ds2 .casino-page .sd-bail { background: var(--loss); color: #fff; min-width: 220px; font-size: 18px; font-weight: 800; letter-spacing: .04em; animation: th-pulse .45s ease-in-out infinite alternate; }
.sd-slots { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.sd-slot-row { display: grid; grid-template-columns: 120px 1fr 90px; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.sd-reels { font-size: 26px; letter-spacing: 6px; text-align: center; min-height: 32px; }
.sd-tot { font: 700 15px "Geist Mono", monospace; text-align: right; }
.sd-inv { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 1300; display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface-3); border: 1px solid var(--accent); text-align: center; min-width: min(360px, 92vw); animation: th-land .4s cubic-bezier(.2, 1.6, .4, 1); }
.sd-inv b { font-size: 17px; } .sd-inv span { color: var(--muted); font-size: 13px; }
.sd-inv div { display: flex; gap: 8px; }
@media (max-width: 640px) { .sd-modes { grid-template-columns: 1fr; } .sd-slot-row { grid-template-columns: 80px 1fr 70px; } }

/* ---- Hype: friends' wins, reactions ---- */
.hy-stack { position: fixed; left: 16px; bottom: 84px; z-index: 950; display: flex; flex-direction: column; gap: 8px; width: min(320px, calc(100vw - 32px)); pointer-events: none; }
.hy-card { pointer-events: auto; padding: 10px 12px; border-radius: var(--r-lg); background: var(--surface-3); border: 1px solid var(--line-3); font-size: 13px; animation: hy-in .35s cubic-bezier(.2, 1.4, .4, 1); }
.hy-card.big { border-color: var(--gold); }
.hy-card.out { animation: hy-out .4s ease-in forwards; }
.hy-card em { display: block; font: 700 15px "Geist Mono", monospace; font-style: normal; color: var(--gold); margin-top: 2px; }
.hy-rx { display: flex; gap: 4px; margin-top: 6px; }
.hy-rx button { width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 16px; cursor: pointer; }
.hy-rx button:hover:not(:disabled) { background: var(--surface-4); transform: scale(1.1); }
.hy-rx button.sent { border-color: var(--accent); background: rgba(var(--accent-rgb), .15); }
@keyframes hy-in { from { transform: translateX(-120%); } } @keyframes hy-out { to { transform: translateX(-120%); opacity: 0; } }
.hy-float { position: fixed; bottom: 80px; z-index: 1600; font-size: 44px; font-style: normal; pointer-events: none; animation: hy-float 2.4s ease-out forwards; }
@keyframes hy-float { 0% { transform: translateY(0) scale(.5); opacity: 0; } 15% { opacity: 1; transform: translateY(-40px) scale(1.2); } 100% { transform: translateY(-60vh) scale(1); opacity: 0; } }
@media (max-width: 820px) { .hy-stack { bottom: 76px; } }
.bj-seat.split { min-width: 240px; }
.bj-seat .bj-hand { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border-radius: 10px; }
.bj-seat.split .bj-hand { border: 1px dashed rgba(255, 255, 255, .15); }
.bj-seat .bj-hand.active { border: 1px solid var(--gold); background: rgba(242, 193, 78, .06); }

/* ---- Cases: under construction ---- */
.soon-tag { margin-left: auto; font-size: 10px; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 999px; background: rgba(242, 193, 78, .14); color: var(--gold); }
.soon { max-width: 520px; margin: 30px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.soon-ic { font-size: 56px; line-height: 1; }
.soon h2 { margin: 6px 0 0; font-size: 26px; }
.soon p { color: var(--muted); margin: 0; line-height: 1.55; }
.soon .soon-safe { color: var(--text); padding: 10px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.soon-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
/* Win pop-ups: small, top right */
.hy-stack { left: auto; right: 16px; top: 66px; bottom: auto; width: min(250px, calc(100vw - 32px)); gap: 6px; }
.hy-card { padding: 6px 8px; font-size: 12px; border-radius: var(--r); background: rgba(22, 26, 34, .96); }
.hy-line { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; }
.hy-line b { max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
.hy-line span { font: 700 12px "Geist Mono", monospace; color: var(--text); }
.hy-line small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.hy-line em { display: inline; margin: 0; font: 700 12px "Geist Mono", monospace; color: var(--gold); }
.hy-n { font-style: normal; font-size: 11px; color: var(--muted); }
.hy-rx { margin-top: 4px; gap: 3px; }
.hy-rx button { width: 26px; height: 22px; font-size: 12px; border-radius: 6px; }
@keyframes hy-in { from { transform: translateX(120%); } } @keyframes hy-out { to { transform: translateX(120%); opacity: 0; } }
@media (max-width: 820px) { .hy-stack { top: 60px; bottom: auto; } }

/* ---- Season 2 teaser (s2.js) ---- */
.s2-clock { position: relative; display: inline-block; font: 700 22px "Geist Mono", monospace; letter-spacing: .04em; color: #fff; text-shadow: 0 0 12px rgba(var(--accent-rgb), .6); white-space: nowrap; }
.s2-clock.s2-glitch::before, .s2-clock.s2-glitch::after, .s2-big::before, .s2-big::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.s2-clock.s2-glitch::before, .s2-big::before { color: #0ff; transform: translate(-2px, 0); clip-path: inset(10% 0 55% 0); animation: s2-slice .3s steps(2) infinite; mix-blend-mode: screen; }
.s2-clock.s2-glitch::after, .s2-big::after { color: #ff2d6f; transform: translate(2px, 0); clip-path: inset(55% 0 8% 0); animation: s2-slice .25s steps(2) infinite reverse; mix-blend-mode: screen; }
.s2-clock.s2-glitch { animation: s2-jitter .2s steps(2) 2; }

.s2-intro { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; background: #000; color: #fff; overflow: hidden; animation: s2-fade .4s ease-out; }
.s2-intro.s2-out { animation: s2-zoomout .9s cubic-bezier(.7, 0, .3, 1) forwards; }
.s2-intro.s2-hit { animation: s2-shake .35s linear; }
.s2-intro.s2-hit::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(var(--accent-rgb), .55), transparent 60%); animation: s2-flash .5s ease-out forwards; }
.s2-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px); pointer-events: none; }
.s2-grain { position: absolute; inset: -50%; opacity: .08; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: s2-grain .5s steps(4) infinite; }
.s2-stage { position: relative; text-align: center; padding: 0 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.s2-line { margin: 0; font: 600 clamp(14px, 3.4vw, 22px) "Geist Mono", monospace; letter-spacing: .12em; color: #cfd3dc; min-height: 1.4em; }
.s2-big { position: relative; margin: 0; font: 800 clamp(52px, 14vw, 150px)/1 "Geist", system-ui, sans-serif; letter-spacing: -.04em; background: linear-gradient(180deg, #fff 30%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 28px rgba(var(--accent-rgb), .55)); min-height: 1em; }
.s2-big::before, .s2-big::after { -webkit-text-fill-color: currentColor; }
.s2-cd { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.s2-cd[hidden], .s2-save[hidden] { display: none; }
.s2-cd small { font: 600 11px "Geist Mono", monospace; letter-spacing: .3em; text-transform: uppercase; color: #8b90a0; }
.s2-clock-lg { font-size: clamp(26px, 7vw, 54px); }
.s2-save { margin: 6px 0 0; font: 700 clamp(13px, 3vw, 17px) "Geist Mono", monospace; color: var(--gold, #f2c14e); letter-spacing: .04em; }
.s2-hint { margin: 18px 0 0; font-size: 12px; color: #6b7080; letter-spacing: .2em; text-transform: uppercase; animation: s2-flicker 2s linear infinite; }
.s2-skip { position: absolute; right: 16px; bottom: 16px; background: none; border: 1px solid rgba(255, 255, 255, .15); color: #aab; border-radius: 999px; padding: 6px 14px; font: 600 12px "Geist Mono", monospace; cursor: pointer; }
.s2-skip:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
body.s2-lock { overflow: hidden; }
body.s2-reveal .cs-main, body.s2-reveal .cs-head { animation: s2-reveal .9s cubic-bezier(.2, .7, .2, 1); }

/* Cinematic polish on the lobby */
.ds2 .casino-page .cs-tile.s2-in { animation: s2-up .55s cubic-bezier(.2, .7, .2, 1) backwards; }
.ds2 .casino-page .cs-tile:hover { background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c1, var(--accent)) 20%, transparent), transparent 70%), var(--surface-2) !important; box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--c1, var(--accent)) 60%, transparent); }
.ds2 .casino-page .cs-hero { position: relative; overflow: hidden; }
.ds2 .casino-page .cs-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 80%) var(--my, 20%), rgba(var(--accent-rgb), .12), transparent 70%); }
.reduce-motion .s2-warn, .reduce-motion .s2-grain { animation: none; }
.reduce-motion .ds2 .casino-page .cs-tile.s2-in, .reduce-motion .cs-tile.s2-in { animation: none; }
@media (prefers-reduced-motion: reduce) { .s2-warn, .s2-grain, .cs-tile.s2-in { animation: none !important; } }

@keyframes s2-sweep { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes s2-slice { 0% { clip-path: inset(10% 0 60% 0); } 50% { clip-path: inset(40% 0 20% 0); } 100% { clip-path: inset(70% 0 5% 0); } }
@keyframes s2-jitter { 50% { transform: translate(1px, -1px) skewX(-6deg); } }
@keyframes s2-flicker { 0%, 92%, 100% { opacity: .9; } 93% { opacity: .2; } 95% { opacity: .9; } 96% { opacity: .35; } }
@keyframes s2-fade { from { opacity: 0; } }
@keyframes s2-zoomout { to { opacity: 0; transform: scale(1.15); filter: blur(8px); } }
@keyframes s2-shake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-3px, -2px); } 80% { transform: translate(2px, 3px); } }
@keyframes s2-flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes s2-grain { 25% { transform: translate(-5%, 3%); } 50% { transform: translate(4%, -6%); } 75% { transform: translate(-3%, 5%); } }
@keyframes s2-reveal { from { opacity: 0; transform: scale(.97); filter: blur(10px); } }
@keyframes s2-up { from { opacity: 0; transform: translateY(14px); } }

/* ---- s2.css ---- */
/* Season 2 look (s2.js adds html.s2-look). Deep violet background, pink/violet gradients, gold coins,
   heavy display type, illustrated game tiles. Selectors start with html.s2-look so they win over theme.css. */
html.s2-look {
  --s2-v: #8b5cf6; --s2-v-rgb: 139, 92, 246; --s2-display: "Unbounded", "Geist", system-ui, sans-serif;
}
html.s2-look .casino-page {
  --bg: #0b0b0b; --bg-2: #0e0e0e; --surface: #131313; --surface-2: #191919; --surface-3: #212121; --surface-4: #2b2b2b;
  --field: #0e0e0e; --line: rgba(196, 160, 255, .07); --line-2: rgba(196, 160, 255, .12); --line-3: rgba(196, 160, 255, .2);
  --muted: #a49bb5; --dim: #6f6582;
}
html.s2-look body.casino-page {
  background: radial-gradient(900px 600px at 70% -10%, rgba(var(--s2-v-rgb), .16), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(var(--accent-rgb), .08), transparent 60%), var(--bg) !important;
  background-attachment: fixed !important;
}

/* ---- Header ---- */
html.s2-look .casino-page .cs-head { background: rgba(11, 11, 11, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line-2); }
html.s2-look .casino-page .cs-logo span { font: 800 17px var(--s2-display); letter-spacing: -.02em; color: #fff; }
html.s2-look .casino-page .cs-logo b { font: 700 9.5px var(--s2-display); letter-spacing: .28em; color: var(--accent); align-self: flex-end; margin-bottom: 3px; }
html.s2-look .casino-page .cs-logo i { background: linear-gradient(135deg, var(--accent), var(--s2-v)); border-radius: 8px; }
.s2-topnav { display: flex; gap: 2px; margin-left: 10px; }
.s2-topnav button { background: none; border: 0; color: var(--muted); font: 600 13px "Geist", sans-serif; padding: 8px 11px; border-radius: 8px; cursor: pointer; }
.s2-topnav button:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.s2-topnav button.on { color: #fff; }
@media (max-width: 1320px) { .s2-topnav { display: none; } }
html.s2-look .casino-page .cs-wallet { border-radius: 999px 0 0 999px; background: var(--surface-2); border-color: var(--line-2); }
html.s2-look .casino-page #daily, html.s2-look .casino-page #bail { border-radius: 0 999px 999px 0; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); font: 800 11px var(--s2-display); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 20px -6px rgba(var(--accent-rgb), .7) !important; }
html.s2-look .casino-page #daily:disabled { background: var(--surface-3); box-shadow: none !important; }

/* ---- Hero ---- */
.s2-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 30px 34px; margin-bottom: 18px; border-radius: 20px;
  background: radial-gradient(420px circle at var(--mx, 85%) var(--my, 30%), rgba(255, 255, 255, .06), transparent 70%), linear-gradient(115deg, #2c2c2c 0%, #343434 45%, #6a1650 80%, #8a1a55 100%);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -30px rgba(var(--s2-v-rgb), .55); }
.s2-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 60px, rgba(255, 255, 255, .018) 60px 61px); pointer-events: none; }
.s2h-copy { position: relative; z-index: 1; min-width: 0; }
.s2h-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1); }
.s2h-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.s2-hero.is-live .s2h-pill i { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: s2-pulse 1.4s ease-in-out infinite; }
.s2h-pill-t { font: 700 10.5px var(--s2-display); letter-spacing: .22em; color: #fff; }
.s2h-title { margin: 14px 0 8px; font: 800 clamp(40px, 6vw, 72px)/.95 var(--s2-display); letter-spacing: -.03em; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .3); }
.s2h-sub { margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; }
.s2h-ends { display: inline-block; margin: 10px 0 0; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 216, 74, .3); color: #ffe08a; font: 600 12px "Geist Mono", monospace; }
.s2h-ends[hidden] { display: none; }
.s2h-tease { display: inline-flex; flex-direction: column; margin-top: 14px; padding: 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08); cursor: pointer; }
.s2h-tease small { font: 600 10px "Geist Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.s2h-warn { display: block; margin: 10px 0 0; }
.s2-hero.is-live .s2h-tease, .s2-hero.is-live .s2h-warn { display: none; }
.s2h-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.s2h-cta .btn { border-radius: 999px !important; }
.s2h-cta .btn:not(.primary) { background: rgba(0, 0, 0, .3) !important; border-color: rgba(255, 255, 255, .14) !important; color: #fff; }
.s2h-art { position: relative; z-index: 1; width: 220px; height: 170px; cursor: pointer; }
.s2h-jp { position: absolute; z-index: 1; right: 20px; bottom: 16px; text-align: right; }
.s2h-jp small { display: block; font: 600 9.5px "Geist Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.s2h-jp b { font: 700 18px "Geist Mono", monospace; color: var(--gold); }

/* Gold coin with an O stamped on it */
.s2-coin { position: absolute; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3b0 0%, #ffd84a 22%, #f2b01e 55%, #b87708 100%);
  box-shadow: inset 0 0 0 5px rgba(255, 236, 150, .55), inset 0 -6px 12px rgba(120, 60, 0, .45), 0 10px 30px rgba(242, 176, 30, .35); }
.s2-coin::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 2px solid rgba(140, 80, 0, .35); }
.s2-coin span { font: 800 1em var(--s2-display); color: #9a5c00; text-shadow: 0 1px 0 rgba(255, 240, 180, .7); }
.s2h-art .c1 { width: 110px; height: 110px; font-size: 46px; left: 55px; top: 18px; z-index: 2; animation: s2-float 5s ease-in-out infinite; }
.s2h-art .c2 { width: 62px; height: 62px; font-size: 26px; left: 10px; top: 90px; animation: s2-float 6s ease-in-out -2s infinite; }
.s2h-art .c3 { width: 62px; height: 62px; font-size: 26px; left: 150px; top: 95px; animation: s2-float 5.5s ease-in-out -1s infinite; }
@media (max-width: 760px) {
  .s2-hero { grid-template-columns: 1fr; padding: 22px 18px 60px; }
  .s2h-art { position: absolute; right: 16px; top: 14px; width: 60px; height: 60px; }
  .s2h-art .c1 { width: 56px; height: 56px; font-size: 22px; left: 0; top: 0; }
  .s2h-art .c2, .s2h-art .c3 { display: none; }
  .s2h-jp { left: 18px; right: auto; text-align: left; }
}

/* ---- Tiles ---- */
html.s2-look .casino-page .cs-cat { font: 600 11px "Geist Mono", monospace; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin: 18px 0 2px; }
html.s2-look .casino-page .cs-tiles { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
html.s2-look .casino-page .cs-tile.s2-t { height: 190px; border-radius: 16px; padding: 14px 15px; justify-content: flex-end; gap: 3px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 16%, #161616) 0%, #121212 70%) !important; border: 1px solid rgba(255, 255, 255, .06) !important; }
html.s2-look .casino-page .cs-tile.s2-t::before { background: radial-gradient(90% 70% at 50% 30%, color-mix(in srgb, var(--c1) 28%, transparent), transparent 70%); opacity: .7; }
html.s2-look .casino-page .cs-tile.s2-t:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c1) 55%, transparent) !important;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--c1) 20%, #161616) 0%, #131313 70%) !important;
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--c1) 70%, transparent) !important; }
html.s2-look .casino-page .cs-tile.s2-t > .cs-tile-i { display: none; }
html.s2-look .casino-page .cs-tile.s2-t b { font: 700 15px "Geist", sans-serif; letter-spacing: -.01em; }
.s2-sub { position: relative; display: flex; align-items: center; gap: 6px; font: 500 11px "Geist Mono", monospace; color: var(--muted); }
.s2-sub::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--win); box-shadow: 0 0 6px var(--win); }
.s2-art { position: absolute; left: 0; right: 0; top: 14px; height: 108px; display: grid; place-items: center; pointer-events: none; color: var(--c1); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.cs-tile:hover .s2-art { transform: translateY(-3px) scale(1.05); }
.s2-art-ic .cs-tile-i { position: static !important; width: 68px !important; height: 68px !important; border-radius: 18px !important; background: color-mix(in srgb, var(--c1) 16%, transparent) !important; border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent) !important; display: grid; place-items: center; font-size: 34px; color: var(--c1); box-shadow: 0 0 40px -6px color-mix(in srgb, var(--c1) 60%, transparent); }
.s2-art-ic .cs-tile-i .ic { width: 34px !important; height: 34px !important; }
.s2a-crash { width: 120px; color: var(--accent); filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .7)); }
.s2a-crash circle { filter: drop-shadow(0 0 6px #fff); }
.s2a-gem { width: 62px; height: 62px; transform: rotate(45deg); border-radius: 12px; background: linear-gradient(135deg, #ff7ac0, var(--accent) 45%, #a855f7); box-shadow: 0 0 40px rgba(var(--accent-rgb), .6), inset 6px 6px 10px rgba(255, 255, 255, .35); }
.s2a-plk { width: 96px; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .4)); }
.s2a-777 { font: 900 50px/1 var(--s2-display) !important; letter-spacing: -.02em; background: linear-gradient(180deg, #fff3a8, #f2c14e 50%, #c78200); -webkit-background-clip: text; background-clip: text; color: transparent !important; filter: drop-shadow(0 4px 14px rgba(242, 193, 78, .45)); }
.s2a-cards { position: relative; width: 100px; height: 80px; }
.s2a-cards i { position: absolute; top: 4px; width: 50px; height: 70px; border-radius: 8px; background: #fff; color: #111; font: 800 24px/70px var(--s2-display); font-style: normal; text-align: center; box-shadow: 0 10px 20px rgba(0, 0, 0, .45); left: 10px; transform: rotate(-10deg); }
.s2a-cards i.k { left: 42px; transform: rotate(8deg); color: var(--accent); }
.s2a-wheel { width: 82px; height: 82px; border-radius: 50%; background: radial-gradient(circle, #1a1a1a 0 30%, transparent 31%), repeating-conic-gradient(var(--accent) 0 20deg, #1a1a1a 20deg 40deg); border: 5px solid var(--gold); box-shadow: 0 0 30px rgba(var(--accent-rgb), .45); }
.cs-tile:hover .s2a-wheel { animation: s2-spin 2.5s linear infinite; }
.s2a-coin { position: relative !important; width: 70px; height: 70px; font-size: 30px; }
.s2a-lanes { position: relative; width: 110px; height: 90px; }
.s2a-lanes i { position: absolute; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .35) 0 8px, transparent 8px 16px); }
.s2a-lanes i:nth-child(1) { left: 22px; } .s2a-lanes i:nth-child(2) { left: 54px; } .s2a-lanes i:nth-child(3) { left: 86px; }
.s2a-lanes .s2a-ball { position: absolute; left: 26px; top: 26px; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8c4, #ffd84a 60%, #d99a00); box-shadow: 0 0 20px rgba(242, 193, 78, .6); }
.s2a-soon { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .2); font: 600 11px "Geist Mono", monospace; letter-spacing: .3em; color: var(--dim); }
@media (max-width: 640px) {
  html.s2-look .casino-page .cs-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  html.s2-look .casino-page .cs-tile.s2-t { height: 150px; padding: 12px; }
  html.s2-look .casino-page .cs-tile.s2-t b { font-size: 13.5px; }
  html.s2-look .casino-page #daily { font-size: 10px; letter-spacing: .02em; padding: 0 10px; }
  .s2-art { height: 84px; top: 8px; transform: scale(.78); }
  .cs-tile:hover .s2-art { transform: scale(.8); }
}

/* ---- Recent wins strip ---- */
html.s2-look .casino-page .cs-ticker { height: 40px; background: transparent; border: 0; }
html.s2-look .casino-page .cs-tk-label { font: 600 10.5px "Geist Mono", monospace; letter-spacing: .2em; color: var(--dim); background: var(--bg); box-shadow: 14px 0 12px 4px var(--bg); }
html.s2-look .casino-page .cs-tk-label::before { display: none; }
html.s2-look .casino-page .cs-tk-track span { display: inline-flex; align-items: center; margin-right: 8px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: #ddd6ea; font-size: 12px; }
html.s2-look .casino-page .cs-tk-track span::before { content: none; }

/* ---- Right column: cards, chat, leaderboard ---- */
html.s2-look .casino-page .cs-side-card { border-radius: 16px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-color: var(--line-2); }
html.s2-look .casino-page .cs-side-card h3 { font: 700 11px var(--s2-display); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
html.s2-look .casino-page .gc-av { border-radius: 50%; }
html.s2-look .casino-page .gc-online { font-family: "Geist Mono", monospace; }
html.s2-look .casino-page #richest { counter-reset: rk; }
html.s2-look .casino-page #richest li:not(.cs-note) { counter-increment: rk; display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 5px; border-radius: 10px; background: rgba(255, 255, 255, .025) !important; border: 1px solid var(--line); }
html.s2-look .casino-page #richest li:not(.cs-note)::before { content: counter(rk); width: 14px; font: 700 12px "Geist Mono", monospace; color: var(--gold); }
html.s2-look .casino-page #richest li:not(.cs-note) span { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-weight: 600; }
html.s2-look .casino-page #richest li:not(.cs-note) span::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--s2-dot, var(--s2-v)); }
html.s2-look .casino-page #richest li:nth-child(5n+1) { --s2-dot: #a855f7; } html.s2-look .casino-page #richest li:nth-child(5n+2) { --s2-dot: var(--accent); }
html.s2-look .casino-page #richest li:nth-child(5n+3) { --s2-dot: #f2c14e; } html.s2-look .casino-page #richest li:nth-child(5n+4) { --s2-dot: #7dd3fc; }
html.s2-look .casino-page #richest li:nth-child(5n+5) { --s2-dot: #f472b6; }
html.s2-look .casino-page #richest li:nth-child(n+4)::before { color: var(--muted); }
html.s2-look .casino-page #richest li b { font: 600 12.5px "Geist Mono", monospace; }

/* ---- Intro (live variant) ---- */
.s2-livetag { font: 800 clamp(16px, 3.4vw, 22px) var(--s2-display, sans-serif); letter-spacing: .24em; color: var(--accent); text-shadow: 0 0 18px rgba(var(--accent-rgb), .7); }
.s2-save-live { color: #fff !important; }
.s2-big { font-family: var(--s2-display, "Geist"), system-ui, sans-serif !important; }

@keyframes s2-float { 50% { transform: translateY(-8px) rotate(-4deg); } }
@keyframes s2-pulse { 50% { opacity: .35; } }
@keyframes s2-spin { to { transform: rotate(360deg); } }
html.reduce-motion .s2-coin, html.reduce-motion .s2-hero .s2h-pill i, html.reduce-motion .s2a-wheel { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .s2-coin, .s2h-pill i, .s2a-wheel { animation: none !important; } }
.s2-warn { font: 600 12px "Geist Mono", monospace; color: var(--gold, #f2c14e); opacity: .9; animation: s2-flicker 4s linear infinite; }

/* Season 1 champions (shown under the hero once Season 2 is live) */
.s2-champs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 18px; padding: 12px 16px; border-radius: 16px; background: linear-gradient(90deg, rgba(242, 193, 78, .1), rgba(var(--s2-v-rgb), .06)); border: 1px solid rgba(242, 193, 78, .22); }
.s2-champs[hidden] { display: none; }
.s2-champs h3 { margin: 0 8px 0 0; font: 700 10.5px var(--s2-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.s2-champ { display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 8px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2); }
.s2-champ b { font-weight: 700; font-size: 13px; }
.s2-champ small { font: 500 11.5px "Geist Mono", monospace; color: var(--muted); }

/* Launch confetti */
.s2-confetti { position: fixed; inset: 0; z-index: 99998; pointer-events: none; overflow: hidden; }
.s2-confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: s2-fall 3s cubic-bezier(.25, .6, .4, 1) forwards; }
@keyframes s2-fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .2; } }

/* Season 2 trailer player */
.s2-trailer { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; background: #000; animation: s2-fade .3s ease-out; }
.s2-trailer.s2-out { animation: s2-zoomout .5s ease-in forwards; }
.s2-trailer video { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .4s; }
.s2-trailer.is-playing video { opacity: 1; }
.s2-tr-load { position: absolute; font: 600 12px "Geist Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: #8b90a0; animation: s2-flicker 2s linear infinite; }
.s2-trailer.is-playing .s2-tr-load { display: none; }
.s2-tr-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.s2-tr-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent, var(--accent)), #8b5cf6); }

/* ---- s2core.css ---- */
/* Season 2 game screens (js/s2core.js adds .s2-game to each game pane and .s2-gh to its header).
   Everything is scoped to html.s2-look so it wins over theme.css without !important wars. */

/* ---- Game pane ---- */
html.s2-look .casino-page .cs-pane.s2-game {
  --g1: var(--accent); --g2: #1a1a1a;
  padding: 0 22px 24px; overflow: hidden; border-radius: 20px;
  background: radial-gradient(900px 380px at 50% 0%, color-mix(in srgb, var(--g1) 10%, transparent), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface)) !important;
  border: 1px solid var(--line-2) !important;
}

/* Header banner */
html.s2-look .casino-page .pane-title.s2-gh {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 104px; margin: 0 -22px 18px; padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .06); overflow: hidden;
  background: radial-gradient(420px 200px at 8% 50%, color-mix(in srgb, var(--g1) 30%, transparent), transparent 70%), linear-gradient(115deg, color-mix(in srgb, var(--g1) 22%, #161616) 0%, #131313 60%, color-mix(in srgb, var(--s2-v, #8b5cf6) 14%, #121212) 100%);
}
html.s2-look .casino-page .pane-title.s2-gh::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, transparent 0 48px, rgba(255, 255, 255, .02) 48px 49px); }
.s2-gh-art { position: relative; z-index: 1; flex: none; overflow: hidden; width: 96px; height: 72px; display: grid; place-items: center; color: var(--g1); }
.s2-gh-art > * { transform: scale(.72); }
.s2-gh-art.is-ic { width: 60px; height: 60px; border-radius: 16px; background: color-mix(in srgb, var(--g1) 18%, transparent); border: 1px solid color-mix(in srgb, var(--g1) 40%, transparent); box-shadow: 0 0 36px -8px color-mix(in srgb, var(--g1) 70%, transparent); }
.s2-gh-art.is-ic > * { transform: none; }
.s2-gh-art.is-ic .ic { width: 28px; height: 28px; }
.s2-gh-txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html.s2-look .casino-page .s2-gh-txt small { font: 600 10.5px "Geist Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--g1) 70%, #fff); }
html.s2-look .casino-page .s2-gh-txt h2 { margin: 0; font: 800 clamp(20px, 2.6vw, 28px)/1.05 var(--s2-display); letter-spacing: -.02em; color: #fff; }
.s2-gh-acts { position: relative; z-index: 1; margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.s2-gh-btn { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .3); color: #fff; font: 600 12px "Geist", sans-serif; cursor: pointer; }
.s2-gh-btn:hover { border-color: rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .45); }
.s2-gh-btn.ghost { background: transparent; color: var(--muted); }

/* How-to card: a compact strip of numbered steps */
html.s2-look .casino-page .s2-game > .tip-card { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); border-left: 0; background: rgba(255, 255, 255, .025); }
html.s2-look .casino-page .s2-game > .tip-card ol { counter-reset: st; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-top: 10px; }
html.s2-look .casino-page .s2-game > .tip-card li { counter-increment: st; display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; }
html.s2-look .casino-page .s2-game > .tip-card li::before { content: counter(st); flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 11px "Geist Mono", monospace; color: #fff; background: color-mix(in srgb, var(--g1) 55%, #2a2a2a); }

/* ---- Bet dock ---- */
html.s2-look .casino-page .cs-bar.s2-dock { position: relative; top: 0; width: 100%; max-width: none; justify-content: space-between; margin: 0 0 18px; padding: 10px 12px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line-2); gap: 12px; }
html.s2-look .casino-page .cs-bar.s2-dock .cs-bar-label { font: 600 10.5px "Geist Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
html.s2-look .casino-page .cs-bar.s2-dock .bb { border-radius: 12px; background: var(--bg); border-color: var(--line-3); }
html.s2-look .casino-page .cs-bar.s2-dock .bb-in { font-size: 15px; }
html.s2-look .casino-page .cs-bar.s2-dock .bb button { border-radius: 8px; }

/* ---- Controls inside games ---- */
html.s2-look .casino-page .s2-game .btn.primary { border-radius: 999px !important; background: linear-gradient(90deg, var(--accent), var(--accent-hi)) !important; box-shadow: 0 10px 26px -10px rgba(var(--accent-rgb), .8) !important; border: 0 !important; }
html.s2-look .casino-page .s2-game .btn.primary:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
html.s2-look .casino-page .s2-game .btn.primary.lg { min-width: 160px; font: 800 13px var(--s2-display); letter-spacing: .06em; text-transform: uppercase; padding: 0 26px; }
html.s2-look .casino-page .s2-game .btn.primary:disabled { background: var(--surface-4) !important; box-shadow: none !important; }
html.s2-look .casino-page .s2-game .btn:not(.primary):not(.sm) { border-radius: 999px; }
html.s2-look .casino-page .s2-game select, html.s2-look .casino-page .s2-game input[type="number"], html.s2-look .casino-page .s2-game input[type="text"] { border-radius: 10px; background: var(--bg); border: 1px solid var(--line-3); color: var(--text); }
html.s2-look .casino-page .s2-game .seg { border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2); padding: 3px; }
html.s2-look .casino-page .s2-game .seg button { border-radius: 999px; }
html.s2-look .casino-page .s2-game .seg button.on { background: linear-gradient(90deg, color-mix(in srgb, var(--g1) 70%, #fff 0%), color-mix(in srgb, var(--g1) 80%, #000)); color: #fff; }
html.s2-look .casino-page .s2-game .cs-msg { font-size: 14px; }
html.s2-look .casino-page .s2-game .cs-msg.good { color: var(--win); }

/* Table games: violet felt with a gold rim instead of green baize */
html.s2-look .casino-page .cs-pane.felt.s2-game {
  background: radial-gradient(ellipse 80% 60% at 50% 35%, #3b1766 0%, #262626 45%, #171717 100%) !important;
  border: 1px solid rgba(242, 193, 78, .28) !important; box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .18), inset 0 0 80px rgba(0, 0, 0, .45) !important;
}
html.s2-look .casino-page .cs-pane.felt.s2-game .cs-note, html.s2-look .casino-page .cs-pane.felt.s2-game .bj-label { color: rgba(255, 255, 255, .6); }

/* Big wins table under games */
html.s2-look .casino-page .s2-game table { border-collapse: separate; border-spacing: 0 4px; }
html.s2-look .casino-page .s2-game thead th { font: 600 10.5px "Geist Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); background: transparent; border: 0; }
html.s2-look .casino-page .s2-game tbody td { background: rgba(255, 255, 255, .025); border: 0; }
html.s2-look .casino-page .s2-game tbody td:first-child { border-radius: 10px 0 0 10px; }
html.s2-look .casino-page .s2-game tbody td:last-child { border-radius: 0 10px 10px 0; }

/* ---- Sidebar ---- */
html.s2-look .casino-page .cs-nav h4 { font: 600 10px "Geist Mono", monospace; letter-spacing: .2em; color: var(--dim); }
html.s2-look .casino-page .cs-nav .cs-tab { border-radius: 10px; }
html.s2-look .casino-page .cs-nav .cs-tab.on { background: linear-gradient(90deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .04)) !important; color: var(--on-accent, #fff); box-shadow: inset 2px 0 0 var(--accent); }
html.s2-look .casino-page .cs-nav .cs-tab.on .ni { color: var(--accent); }

/* ---- Phones ---- */
@media (max-width: 640px) {
  html.s2-look .casino-page .cs-pane.s2-game { padding: 0 12px 18px; border-radius: 16px; }
  html.s2-look .casino-page .pane-title.s2-gh { margin: 0 -12px 14px; padding: 12px; min-height: 76px; gap: 10px; flex-wrap: wrap; }
  .s2-gh-art { width: 72px; height: 52px; }
  .s2-gh-art > * { transform: scale(.5); }
  .s2-gh-art.is-ic { width: 44px; height: 44px; border-radius: 12px; }
  .s2-gh-acts { margin-left: 0; width: 100%; justify-content: flex-start; }
  .s2-gh-btn { height: 28px; padding: 0 11px; font-size: 11.5px; }
  html.s2-look .casino-page .cs-bar.s2-dock { padding: 8px; border-radius: 12px; }
  html.s2-look .casino-page .s2-game .btn.primary.lg { min-width: 0; width: 100%; }
}

/* ---- Per-game touches ---- */
/* Mines: violet tiles that light up pink, gems glow, mines flash red */
html.s2-look .casino-page .mn-c { border-radius: 14px; background: linear-gradient(180deg, #2e2e2e, #1e1e1e); border: 1px solid rgba(196, 160, 255, .14); box-shadow: 0 5px 0 #0e0e0e, inset 0 1px 0 rgba(255, 255, 255, .06); }
html.s2-look .casino-page .mn-c:not(:disabled):hover { background: linear-gradient(180deg, #3a2160, #262626); border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 5px 0 #0e0e0e, 0 0 22px -4px rgba(var(--accent-rgb), .6); }
html.s2-look .casino-page .mn-c.gem { background: radial-gradient(circle at 50% 40%, rgba(255, 122, 192, .55), rgba(139, 92, 246, .25) 70%); border-color: #ff7ac0; box-shadow: 0 5px 0 #0e0e0e, 0 0 26px -2px rgba(var(--accent-rgb), .7); }
html.s2-look .casino-page .mn-c.boom { background: radial-gradient(circle, #ef4444, #7f1d1d); border-color: #fca5a5; box-shadow: 0 0 30px rgba(239, 68, 68, .7); }

/* Crash: chart on a dark violet stage, big multiplier in the display face */
html.s2-look .casino-page .cr-stage canvas { border-radius: 18px; background: radial-gradient(600px 260px at 20% 100%, rgba(var(--accent-rgb), .12), transparent 70%), linear-gradient(180deg, #171717, #0f0f0f); border-color: rgba(196, 160, 255, .12); }
html.s2-look .casino-page #crMult { font-family: var(--s2-display); letter-spacing: -.03em; }

/* Slots: violet cabinet with a gold rim */
html.s2-look .casino-page .slot-machine { background: linear-gradient(180deg, #323232, #171717); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(0, 0, 0, .3), 0 20px 50px -20px rgba(242, 193, 78, .45); }

/* Plinko board */
html.s2-look .casino-page #plkCanvas { border-radius: 18px; background: radial-gradient(500px 300px at 50% 0%, rgba(var(--s2-v-rgb), .18), transparent 70%), #101010; }

/* Keno, Tower and other number grids */
html.s2-look .casino-page .kn-n, html.s2-look .casino-page .tw-t { background: linear-gradient(180deg, #2c2c2c, #1e1e1e); border-color: rgba(196, 160, 255, .14); }

/* ---- Pop-up windows ---- */
html.s2-look .casino-page .overlay .panel { border-radius: 22px; background: linear-gradient(180deg, #1c1c1c, #131313); border: 1px solid rgba(196, 160, 255, .16); box-shadow: 0 40px 100px -30px rgba(var(--s2-v-rgb), .5); }
html.s2-look .casino-page .overlay .panel h1, html.s2-look .casino-page .overlay .panel h2 { font-family: var(--s2-display); letter-spacing: -.02em; }
html.s2-look .casino-page .overlay .btn.primary { border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); }

/* ---- Server picker ---- */
html.s2-look .sv-overlay { background: radial-gradient(900px 600px at 80% -10%, rgba(var(--s2-v-rgb), .2), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(var(--accent-rgb), .1), transparent 60%), #0b0b0b; }
html.s2-look .sv-hero.s2-svh { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 30px 34px; border-radius: 22px;
  background: linear-gradient(115deg, #2c2c2c 0%, #343434 45%, #6a1650 80%, #8a1a55 100%) !important; border: 1px solid rgba(255, 255, 255, .08) !important; border-radius: 22px !important; box-shadow: 0 30px 60px -30px rgba(var(--s2-v-rgb), .55) !important; }
html.s2-look .sv-hero.s2-svh::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 60px, rgba(255, 255, 255, .018) 60px 61px); pointer-events: none; }
.s2-svh-copy { position: relative; z-index: 1; }
html.s2-look .sv-hero.s2-svh h1 { margin: 14px 0 8px; font: 800 clamp(34px, 5vw, 58px)/.98 var(--s2-display); letter-spacing: -.03em; color: #fff; }
html.s2-look .sv-hero.s2-svh h1 b { color: #ffd84a; -webkit-text-fill-color: #ffd84a; }
html.s2-look .sv-hero.s2-svh p { color: rgba(255, 255, 255, .82); max-width: 520px; }
html.s2-look .sv-hero.s2-svh .sv-feats { margin-top: 16px; }
html.s2-look .sv-hero.s2-svh .sv-feats span { border-radius: 999px; background: rgba(0, 0, 0, .3); border-color: rgba(255, 255, 255, .14); color: #fff; }
html.s2-look .sv-list-card, html.s2-look .sv-create { border-radius: 20px; background: linear-gradient(180deg, #1b1b1b, #121212); border: 1px solid rgba(196, 160, 255, .14); }
html.s2-look .sv-list-card h2, html.s2-look .sv-create h2 { font-family: var(--s2-display); font-size: 18px; letter-spacing: -.01em; }
html.s2-look .sv-row { border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(196, 160, 255, .1); }
html.s2-look .sv-row:hover { border-color: rgba(var(--accent-rgb), .5); }
html.s2-look .sv-create .btn.primary, html.s2-look .sv-list-card .btn.primary { border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); box-shadow: 0 10px 26px -10px rgba(var(--accent-rgb), .8); font: 800 13px var(--s2-display); letter-spacing: .06em; text-transform: uppercase; }
html.s2-look .sv-head .cs-logo span { font: 800 17px var(--s2-display); }
html.s2-look .sv-head .cs-logo b { font: 700 9.5px var(--s2-display); letter-spacing: .28em; color: var(--accent); }
@media (max-width: 760px) {
  html.s2-look .sv-hero.s2-svh { grid-template-columns: 1fr; padding: 22px 18px; }
  html.s2-look .sv-hero.s2-svh .s2h-art { position: absolute; right: 12px; top: 10px; width: 60px; height: 60px; }
  html.s2-look .sv-hero.s2-svh .s2h-art .c1 { width: 52px; height: 52px; font-size: 20px; left: 0; top: 0; }
  html.s2-look .sv-hero.s2-svh .s2h-art .c2, html.s2-look .sv-hero.s2-svh .s2h-art .c3 { display: none; }
}

/* Upgrades: two roomy columns */
html.s2-look .casino-page #shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
html.s2-look .casino-page #shop .shop-item { border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015)); border: 1px solid var(--line-2); }
html.s2-look .casino-page #shop .shop-item b { font-family: var(--s2-display); font-size: 13px; letter-spacing: -.01em; }
html.s2-look .casino-page #shop .shop-item .btn { flex: none; white-space: nowrap; }
html.s2-look .sv-hero.s2-svh .s2-svh-trailer { margin-top: 16px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-weight: 700; }
html.s2-look .sv-hero.s2-svh .s2-svh-trailer:hover { background: rgba(0, 0, 0, .5); border-color: rgba(255, 255, 255, .45); }

/* Real CS2 skin and case images (cases.js). The drawn art stays as the fallback. */
.sk-art.has-img { display: grid; place-items: center; aspect-ratio: 4 / 3; }
.sk-art.has-img img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); pointer-events: none; user-select: none; }
.sk-card .sk-art.has-img { background: radial-gradient(closest-side, color-mix(in srgb, var(--rc, #888) 32%, transparent), transparent); }
.ca-box.has-img { background: none !important; border: 0 !important; box-shadow: none !important; }
.ca-box.has-img .ca-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
/* The single Rare Special Item card and its list of knives or gloves */
button.ca-item.ca-rare { font: inherit; color: inherit; cursor: pointer; text-align: center; }
button.ca-item.ca-rare:hover { filter: brightness(1.12); }
.ca-rare-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; padding: 12px; border-radius: 14px; background: rgba(228, 174, 57, .06); border: 1px solid rgba(228, 174, 57, .25); }
.ca-rare-list[hidden] { display: none; }
.ca-rare-it { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ca-rare-it .sk-art { width: 100%; max-width: 120px; }
.ca-rare-it small { font-size: 11px; color: var(--muted); }
/* Skin wear on real images: Factory New is clean, Battle-Scarred faded and scratched */
.sk-art.has-img { position: relative; }
.sk-art.wear-2 img { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)) saturate(.92); }
.sk-art.wear-3 img { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)) saturate(.8) brightness(.94); }
.sk-art.wear-4 img { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)) saturate(.62) brightness(.88) contrast(.95); }
.sk-art.wear-3::after, .sk-art.wear-4::after { content: ""; position: absolute; inset: 18% 10%; pointer-events: none; mix-blend-mode: overlay; opacity: .35;
  background: repeating-linear-gradient(115deg, transparent 0 7px, rgba(255, 255, 255, .5) 7px 8px, transparent 8px 19px), repeating-linear-gradient(35deg, transparent 0 11px, rgba(0, 0, 0, .5) 11px 12px, transparent 12px 23px);
  -webkit-mask: radial-gradient(closest-side, #000 40%, transparent); mask: radial-gradient(closest-side, #000 40%, transparent); }
.sk-art.wear-4::after { opacity: .6; }

/* ---- Cleaner header (s2core.js adds html.s2-clean) ---- */
/* Sound and help live in Settings now; the session tracker only shows once you've won or lost. */
html.s2-clean .casino-page .cs-head #muteBtn, html.s2-clean .casino-page .cs-head #helpBtn { display: none !important; }
html.s2-clean .casino-page .cs-head .sess:not(.up):not(.down) { display: none !important; }
html.s2-clean .casino-page .cs-head #backLink span { display: none; }
html.s2-clean .casino-page .cs-head #backLink { padding: 0 10px; }
.s2-set-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- Season Pass (s2pass.js) ---- */
.sp-head { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.sp-head small { font: 600 10.5px "Geist Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.sp-title { margin: 4px 0 6px; font: 800 28px var(--s2-display, sans-serif); letter-spacing: -.02em; }
.sp-now { min-width: 260px; flex: 0 1 340px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.sp-now b { font: 800 18px var(--s2-display, sans-serif); }
.sp-now small { color: var(--muted); font: 500 12px "Geist Mono", monospace; }
.sp-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 4px; }
.sp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #8b5cf6); border-radius: 999px; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.sp-t { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); opacity: .6; }
.sp-t.open, .sp-t.got { opacity: 1; }
.sp-t.open { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 22px -8px rgba(var(--accent-rgb), .7); }
.sp-t.got { border-color: rgba(47, 210, 124, .35); }
.sp-t.big { background: linear-gradient(160deg, rgba(242, 193, 78, .1), rgba(255, 255, 255, .02)); }
.sp-t .sp-n { font: 800 20px var(--s2-display, sans-serif); color: var(--gold); }
.sp-t b { font-size: 12.5px; line-height: 1.35; }
.sp-t small { color: var(--muted); font-size: 11px; }
.sp-t .btn { margin-top: 4px; align-self: flex-start; }
.sp-dot { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); font: 700 10px/18px "Geist Mono", monospace; font-style: normal; text-align: center; }

/* ---- Friends, chat reactions, crew tags, playing now (social4.js) ---- */
.fr-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fr-top h3 { margin: 0; }
.fr-code { font: 800 22px "Geist Mono", monospace; letter-spacing: .15em; padding: 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2); user-select: all; }
.fr-add { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fr-add .in { flex: 1 1 160px; }
.fr-list { display: flex; flex-direction: column; gap: 6px; }
.fr-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.fr-row b { font-weight: 700; }
.fr-row small { color: var(--muted); flex: 1; min-width: 120px; }
.fr-dot { width: 9px; height: 9px; border-radius: 50%; background: #555; flex: none; }
.fr-row.on .fr-dot { background: var(--win); box-shadow: 0 0 8px var(--win); }
.fr-badge { margin-left: auto; font: 700 10px "Geist Mono", monospace; font-style: normal; color: var(--win); }
.gc-crew { margin-right: 4px; font: 700 10.5px "Geist Mono", monospace; color: #7dd3fc; }
#gcLog li { position: relative; }
.gc-rx { display: flex; gap: 4px; flex-wrap: wrap; margin: 3px 0 0 30px; }
.gc-rx:empty { display: none; }
.gc-rx-b { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); border-radius: 999px; padding: 1px 7px; font-size: 11px; cursor: pointer; }
.gc-rx-add { position: absolute; right: 4px; top: 2px; opacity: 0; border: 0; background: rgba(255, 255, 255, .08); color: var(--muted); border-radius: 6px; width: 22px; height: 20px; cursor: pointer; font-size: 12px; }
#gcLog li:hover .gc-rx-add, .gc-rx-add:focus { opacity: 1; }
.gc-rx-pick { position: absolute; right: 4px; top: 22px; z-index: 5; display: flex; gap: 2px; padding: 4px; border-radius: 10px; background: #1c1c1c; border: 1px solid var(--line-3); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.gc-rx-pick button { border: 0; background: none; font-size: 17px; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.gc-rx-pick button:hover { background: rgba(255, 255, 255, .08); }
.s2-sub.live { color: var(--win); }
/* Mines Battle (Showdown) */
.sd-mb { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sd-mb-grid { display: grid; grid-template-columns: repeat(5, 56px); gap: 6px; }
.sd-mb-c { width: 56px; height: 56px; border-radius: 12px; border: 1px solid rgba(196, 160, 255, .16); background: linear-gradient(180deg, #2e2e2e, #1e1e1e); font-size: 24px; cursor: pointer; }
.sd-mb-c:not(:disabled):hover { border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 16px -4px rgba(var(--accent-rgb), .6); }
.sd-mb-c.gem { background: radial-gradient(circle, rgba(255, 122, 192, .45), rgba(139, 92, 246, .2)); border-color: #ff7ac0; }
.sd-mb-c.boom { background: radial-gradient(circle, #ef4444, #7f1d1d); }
.sd-mb-c.mine { opacity: .6; }
.sd-mb-t { color: var(--muted); font: 600 12px "Geist Mono", monospace; }
@media (max-width: 480px) { .sd-mb-grid { grid-template-columns: repeat(5, 48px); } .sd-mb-c { width: 48px; height: 48px; } }
/* Skin flips + Trivia Rush (games5.js) */
.sf-box { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.sf-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sf-head h3 { margin: 0; }
.sf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 12px 0; }
.sf-row { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-2); }
.sf-side { display: flex; flex-direction: column; gap: 4px; }
.sf-side small { color: var(--muted); font-size: 11.5px; }
.sf-pick-card { max-width: 820px; width: calc(100vw - 32px); max-height: 86vh; overflow: auto; }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.sf-it { cursor: pointer; }
.sf-it:hover { outline: 2px solid var(--accent); }
.tv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tv-head h3 { margin: 0; }
.tv-score { font: 700 16px "Geist Mono", monospace; color: var(--gold); }
.tv-q { font: 700 20px var(--s2-display, sans-serif); letter-spacing: -.01em; margin: 6px 0 12px; }
.tv-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-bottom: 14px; }
.tv-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #8b5cf6); }
.tv-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.tv-o { justify-content: flex-start; text-align: left; min-height: 48px; border-radius: 12px !important; }
.tv-o.right { background: rgba(47, 210, 124, .2) !important; border-color: var(--win) !important; }
.tv-o.wrong { background: rgba(239, 68, 68, .2) !important; border-color: #ef4444 !important; }

/* ---- Scheduled events strip + play-time chip ---- */
.ev-strip { display: flex; align-items: center; gap: 10px; padding: 9px 14px; margin-bottom: 12px; border-radius: 12px; font-size: 14px; background: rgba(255, 196, 64, .08); border: 1px dashed rgba(255, 196, 64, .45); color: var(--text, #fff); flex-shrink: 0; }
.ev-strip.on { border-style: solid; background: linear-gradient(90deg, rgba(255, 196, 64, .18), rgba(var(--accent-rgb, 255, 45, 135), .14)); box-shadow: 0 0 18px rgba(255, 196, 64, .15); }
.ev-strip .ev-ic { font-size: 18px; }
.ev-strip .ev-when { color: var(--muted, #aaa); font-size: 13px; }
.ev-strip.on .ev-when { color: #ffd76a; }
.casino-page .pt-chip { height: 32px; padding: 0 10px; border-radius: var(--r-sm, 8px); font: 600 12px "Geist Mono", monospace; background: var(--surface-2, #1c1c1c); border: 1px solid var(--line-2, #2b2b2b); color: var(--muted, #aaa); cursor: pointer; white-space: nowrap; }
.casino-page .pt-chip:hover { color: var(--text, #fff); }
.casino-page .pt-chip.warn { color: #ffd76a; border-color: rgba(255, 196, 64, .45); }
.pt-modal .pt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 14px; text-align: left; font-size: 14px; }
.pt-modal .st-card > .btn { margin-top: 8px; }
@media (max-width: 700px) { .casino-page .pt-chip { display: none; } }
.ev-strip.quiet { border-style: solid; background: rgba(110, 140, 255, .1); border-color: rgba(110, 140, 255, .45); }
.ev-strip.quiet .ev-when { color: #aab9ff; }

/* ---- Case of the day, stickers, price history, trades ---- */
.ca-case.cotd { box-shadow: 0 0 0 2px #ffb020, 0 0 26px rgba(255, 176, 32, .35); animation: cotdGlow 2.4s ease-in-out infinite; }
@keyframes cotdGlow { 50% { box-shadow: 0 0 0 2px #ffcf5a, 0 0 38px rgba(255, 176, 32, .55); } }
html.lowfx .ca-case.cotd, html.reduce-motion .ca-case.cotd { animation: none; }
.ca-tag.ca-cotd { background: linear-gradient(90deg, #ff8a00, var(--accent)); color: var(--on-accent, #fff); white-space: nowrap; }
.sk-card { position: relative; }
.sk-st { position: absolute; top: 6px; left: 6px; display: flex; gap: 2px; font-size: 14px; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); z-index: 2; }
.sk-st i { font-style: normal; }
.sk-st.big { position: static; font-size: 26px; gap: 6px; margin: 2px 0 8px; justify-content: center; }
.stk-mine, .stk-cur { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.stk-b { all: unset; cursor: pointer; padding: 5px 10px; border-radius: 999px; background: var(--surface-2, #1c1c1c); border: 1px solid var(--line-2, #2b2b2b); font-size: 13px; }
.stk-b.on { border-color: var(--accent, var(--accent)); background: rgba(var(--accent-rgb, 255, 46, 147), .18); }
.ph-box { margin: 6px 0 10px; }
.ph-chart { height: 60px; color: var(--accent, var(--accent)); background: var(--surface-2, #1c1c1c); border-radius: 10px; overflow: hidden; }
.ph-chart svg { width: 100%; height: 100%; display: block; }
.trd-row { border: 1px solid var(--line-2, #2b2b2b); background: var(--surface-1, #141414); border-radius: 14px; padding: 14px; margin-top: 12px; }
.trd-status { display: block; margin-bottom: 10px; }
.trd-sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; }
.trd-arrow { font-size: 22px; align-self: center; color: var(--muted, #aaa); }
.trd-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 6px; }
.trd-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.trd-to { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.cs-tab.has-dot { position: relative; }
.cs-tab.has-dot::after { content: ""; position: absolute; top: 8px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--accent)); }
@media (max-width: 700px) { .trd-sides { grid-template-columns: 1fr; } .trd-arrow { justify-self: center; transform: rotate(90deg); } }

/* ---- Crew page, crew battles, big-win 🔥 ---- */
.crw-pane > *, .trd-row, .tr-pane > * { flex-shrink: 0; }
.crw-pane, .tr-pane { align-items: stretch !important; }
.crw-form input { flex: 1; min-width: 110px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface-2, #1c1c1c); border: 1px solid var(--line-2, #2b2b2b); color: var(--text, #fff); font: inherit; font-size: 14px; }
.crw-form input:focus { outline: none; border-color: var(--accent, var(--accent)); }
.crw-form input[type="number"] { flex: 0 0 110px; }
.crw-join, .crw-card { border: 1px solid var(--line-2, #2b2b2b); background: var(--surface-1, #141414); border-radius: 14px; padding: 16px; margin-top: 12px; }
.crw-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.crw-form .in { flex: 1; min-width: 120px; }
.crw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crw-head > div { display: flex; flex-direction: column; gap: 2px; }
.crw-tag { font: 800 30px var(--display, inherit); letter-spacing: .02em; color: var(--accent, var(--accent)); }
.crw-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.crw-grid > .crw-card { margin-top: 12px; }
.crw-mrow { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line, #222222); font-size: 14px; }
.crw-mrow span { color: var(--muted, #aaa); font: 500 12px "Geist Mono", monospace; }
.crw-log { list-style: none; margin: 8px 0 0; padding: 0; max-height: 240px; overflow-y: auto; font-size: 14px; }
.crw-log li { padding: 4px 0; overflow-wrap: anywhere; }
.crw-log small { color: var(--muted, #aaa); }
.crw-battle { display: grid; grid-template-columns: 1fr auto 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line, #222222); margin-top: 8px; }
.crw-side { display: flex; flex-direction: column; min-width: 0; }
.crw-vs { font-weight: 800; color: var(--muted, #aaa); }
.crw-meta { grid-column: 1 / -1; color: var(--muted, #aaa); order: 10; }
.crw-res { font-size: 13px; color: var(--muted, #aaa); padding: 3px 0; }
.bw-fire { all: unset; cursor: pointer; margin-left: 6px; font-size: 13px; opacity: .35; filter: grayscale(1); transition: opacity .15s, transform .15s; }
.bw-fire:hover { opacity: 1; filter: none; transform: scale(1.2); }
.bw-fire.on { opacity: 1; filter: none; cursor: default; }
@media (max-width: 800px) { .crw-grid { grid-template-columns: 1fr; } .crw-battle { grid-template-columns: 1fr auto 1fr; } }

/* ---- Blackjack Tournament, Player Race, Jackpot Wheel, Tower Battle ---- */
.bjt-pane, .prace-pane, .jw-pane { align-items: stretch !important; }
.bjt-pane > *, .prace-pane > *, .jw-pane > * { flex-shrink: 0; }
.g10-card { border: 1px solid var(--line-2, #2b2b2b); background: var(--surface-1, #141414); border-radius: 14px; padding: 16px; margin-top: 12px; }
.g10-head { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.g10-head > div { border: 1px solid var(--line-2, #2b2b2b); background: var(--surface-1, #141414); border-radius: 12px; padding: 10px 12px; font: 600 14px "Geist Mono", monospace; }
.g10-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.g10-row { display: grid; grid-template-columns: 1.2fr 1.4fr .8fr 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line, #222222); align-items: center; font-size: 14px; }
.g10-row.me { color: var(--accent, var(--accent)); }
.g10-row.won b::after { content: " 🏆"; }
.g10-row em { font: 600 13px "Geist Mono", monospace; text-align: right; font-style: normal; }
.g10-res.up { color: var(--win, #2fd27c); } .g10-res.down { color: var(--loss, #ff5d6c); }
.g10-win { font-weight: 800; font-size: 18px; margin-top: 10px; }
.bjt-table { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: radial-gradient(ellipse at top, #0f3b27, #08180f) !important; }
.bjt-cards { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.bjt-me b { font-size: 20px; }
.rn-track { display: flex; flex-direction: column; gap: 10px; }
.rn-lane { display: grid; grid-template-columns: 110px 1fr 170px; gap: 10px; align-items: center; }
.rn-lane.me .rn-name { color: var(--accent, var(--accent)); }
.rn-lane.won .rn-name::after { content: " 🏆"; }
.rn-run { position: relative; height: 38px; border-radius: 10px; background: repeating-linear-gradient(90deg, #1c1c1c 0 38px, #171717 38px 76px); border: 1px solid var(--line-2, #2b2b2b); }
.rn-runner { position: absolute; top: 2px; left: 0; width: 34px; height: 34px; display: grid; place-items: center; font-size: 22px; transition: none; }
.rn-flag { position: absolute; right: 4px; top: 7px; font-style: normal; }
.rn-odds { color: var(--muted, #aaa); font-size: 12px; }
.jw-box { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 24px; align-items: center; }
.jw-wheel { position: relative; }
.jw-svg { width: 100%; display: block; filter: drop-shadow(0 8px 30px rgba(var(--accent-rgb),  .25)); }
.jw-rot { transform-origin: 100px 100px; }
.jw-ptr { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); border: 12px solid transparent; border-top: 22px solid #fff; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.jw-odds { margin-top: 12px; border-collapse: collapse; font-size: 13px; width: 100%; max-width: 320px; }
.jw-odds th, .jw-odds td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line, #222222); }
.sd-tw { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sd-tw-grid { display: flex; flex-direction: column; gap: 6px; }
.sd-tw-row { display: grid; grid-template-columns: 24px repeat(3, 64px); gap: 6px; align-items: center; opacity: .55; }
.sd-tw-row.cur { opacity: 1; }
.sd-tw-row small { color: var(--muted, #aaa); text-align: right; font: 600 12px "Geist Mono", monospace; }
.sd-tw-d { height: 40px; border-radius: 10px; border: 1px solid var(--line-2, #2b2b2b); background: linear-gradient(#2a2a2a, #1c1c1c); color: #fff; font-size: 18px; cursor: pointer; }
.sd-tw-row.cur .sd-tw-d:not(:disabled) { border-color: var(--accent, var(--accent)); box-shadow: 0 0 12px rgba(var(--accent-rgb),  .25); }
.sd-tw-d.ok { background: rgba(47, 210, 124, .2); border-color: rgba(47, 210, 124, .5); }
.sd-tw-d.boom, .sd-tw-d.trap { background: rgba(255, 93, 108, .2); border-color: rgba(255, 93, 108, .5); }
@media (max-width: 700px) { .g10-head { grid-template-columns: 1fr 1fr; } .bjt-table, .jw-box { grid-template-columns: 1fr; } .rn-lane { grid-template-columns: 70px 1fr; } .rn-odds { grid-column: 1 / -1; } .g10-row { grid-template-columns: 1fr 1fr; } }

/* ---- Prestige, pinned achievements ---- */
.pg-star { font-style: normal; color: #ffcf3f; text-shadow: 0 0 8px rgba(255, 207, 63, .6); }
.pg-prestige { border-color: rgba(255, 207, 63, .45) !important; background: linear-gradient(90deg, rgba(255, 207, 63, .12), transparent) !important; }
.pg-prestige .pg-free-ic { color: #ffcf3f; }
.pg-ach-c { position: relative; }
.pg-pin { all: unset; cursor: pointer; position: absolute; top: 6px; right: 8px; font-size: 13px; opacity: .25; filter: grayscale(1); }
.pg-pin:hover { opacity: .8; filter: none; }
.pg-ach-c.pinned { box-shadow: inset 0 0 0 1px rgba(255, 207, 63, .6); }
.pg-ach-c.pinned .pg-pin { opacity: 1; filter: none; }
.pf-pins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-pin { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; background: var(--surface-2, #1c1c1c); border: 1px solid rgba(255, 207, 63, .35); text-align: center; font-size: 12px; }
.pf-pin span { font-size: 24px; }

/* ---- Beta pages, maintenance countdown, ban appeal ---- */
.beta-hidden { display: none !important; }
.cs-tab.beta-on::after { content: "BETA"; margin-left: auto; font: 700 9px "Geist Mono", monospace; padding: 2px 5px; border-radius: 4px; background: rgba(34, 211, 238, .18); color: #67e8f9; }
.ev-strip.maint { border-style: solid; background: rgba(251, 146, 60, .12); border-color: rgba(251, 146, 60, .5); }
.ev-strip.maint .ev-when { color: #fdba74; }
.st-appeal { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; width: 100%; }
.st-appeal textarea { width: 100%; min-height: 70px; padding: 10px; border-radius: 10px; background: var(--surface-2, #1c1c1c); border: 1px solid var(--line-2, #2b2b2b); color: var(--text, #fff); font: inherit; resize: vertical; }

/* ---- Play it smart: homework mode, math mode, insights, practice, calm mode ---- */
.hw-cover { z-index: 9000 !important; background: rgba(6, 6, 6, .92) !important; backdrop-filter: blur(6px); }
.hw-card .hw-time { display: block; font: 800 56px "Geist Mono", monospace; margin: 8px 0; color: var(--accent, var(--accent)); }
.hw-tip { font-size: 14px; }
.mm-line { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .35); flex-shrink: 0; }
.mm-line b { color: #67e8f9; }
.mm-line .mm-you { color: var(--muted, #aaa); width: 100%; }
.ins-tbl { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 6px 10px; font-size: 13px; margin: 8px 0; }
.ins-tbl b { color: var(--muted, #aaa); font-weight: 600; }
.ins-tbl .up { color: var(--win, #2fd27c); } .ins-tbl .down { color: var(--loss, #ff5d6c); }
.practice-pane { align-items: stretch !important; } .practice-pane > * { flex-shrink: 0; }
.pr-top { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.pr-top > div { flex: 1; min-width: 220px; }
.pr-chips { font: 700 18px "Geist Mono", monospace; color: #67e8f9; }
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pr-grid .g10-card { display: flex; flex-direction: column; gap: 8px; }
.pr-bet, .pr-grid input { height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface-2, #1c1c1c); border: 1px solid var(--line-2, #2b2b2b); color: var(--text, #fff); font: inherit; max-width: 160px; }
.pr-grid input { max-width: none; }
.sm-ctrls { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
html.calm .pg-lvlup, html.calm .pg-ach, html.calm .confetti, html.calm .th-flash, html.calm .s2-confetti { display: none !important; }
html.calm * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
@media (max-width: 700px) { .pr-grid { grid-template-columns: 1fr; } .ins-tbl { grid-template-columns: 1.4fr repeat(4, 1fr); font-size: 12px; } }

/* ---- DMs, group chat, emote wheel, crew registry, walls, wishlist, follow, share bet ---- */
.dm-box { position: fixed; right: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px)); height: 440px; z-index: 900; display: flex; flex-direction: column; border-radius: 16px; background: var(--surface-1, #141414); border: 1px solid var(--line-2, #2b2b2b); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.dm-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line, #222222); }
.dm-log { list-style: none; margin: 0; padding: 10px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.dm-log li { max-width: 80%; padding: 7px 10px; border-radius: 12px; background: var(--surface-2, #1c1c1c); font-size: 14px; overflow-wrap: anywhere; display: flex; flex-direction: column; }
.dm-log li.mine { align-self: flex-end; background: rgba(var(--accent-rgb, 255, 46, 147), .22); }
.dm-log li small { color: var(--muted, #aaa); font-size: 10px; }
.dm-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line, #222222); }
.dm-form input { flex: 1; height: 38px; padding: 0 10px; border-radius: 10px; background: var(--surface-2, #1c1c1c); border: 1px solid var(--line-2, #2b2b2b); color: var(--text, #fff); font: inherit; }
.fr-extra { display: flex; flex-direction: column; flex-shrink: 0; }
.fr-xhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fr-xhead h3 { margin: 0; flex: 1; }
.emo-fab { position: fixed; left: 16px; bottom: 16px; z-index: 800; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2, #2b2b2b); background: var(--surface-1, #141414); font-size: 22px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.emo-wheel { position: fixed; left: 39px; bottom: 39px; width: 0; height: 0; z-index: 801; }
.emo-wheel button { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2, #2b2b2b); background: var(--surface-2, #1c1c1c); font-size: 22px; cursor: pointer; transform: rotate(calc(var(--a) - 90deg)) translate(0, -78px) rotate(calc(90deg - var(--a))); }
.emo-wheel button:hover { background: rgba(var(--accent-rgb, 255, 46, 147), .3); }
.emo-float { position: fixed; bottom: 80px; z-index: 850; display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: emoUp 2.6s ease-out forwards; }
.emo-float span { font-size: 42px; }
.emo-float small { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.6); }
@keyframes emoUp { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-260px); opacity: 0; } }
@media (max-width: 700px) { .emo-fab { bottom: 76px; } .emo-wheel { bottom: 99px; } }
.crw-reg .crw-badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2, #1c1c1c); }
.crw-bank { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; padding: 10px; border-radius: 12px; background: var(--surface-2, #1c1c1c); }
.crw-mrow .sm-ctrls { margin-left: auto; }
.pf-wish { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.pf-wish-it { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; text-align: center; }
.pf-wall { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow-y: auto; }
.pf-wall-l { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.pf-wall-l span { flex: 1; overflow-wrap: anywhere; }
.pf-wall-l small { color: var(--muted, #aaa); }
.bk-item.got { cursor: pointer; }
.bk-item.wished { box-shadow: inset 0 0 0 2px var(--accent-hi); }
.bk-item.wished::after { content: "🎁"; position: absolute; top: 4px; right: 4px; font-size: 12px; }
.bk-item { position: relative; }
.ev-strip.follow { border-style: solid; background: rgba(168, 85, 247, .12); border-color: rgba(168, 85, 247, .45); }
.share-bet { margin-top: 8px; }
.slip-copy { margin-left: 8px; padding: 2px 8px !important; font-size: 12px !important; }
.ref-top { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; font-size: 13px; }

/* ---- Progression 4: frames, name effects, boosters, level-up tiers, mastery, boss, prestige shop ---- */
.pg-boost { margin-left: 6px; font: 700 11px "Geist Mono", monospace; padding: 4px 8px; border-radius: 8px; background: rgba(250, 204, 21, .15); color: #fde047; border: 1px solid rgba(250, 204, 21, .4); white-space: nowrap; align-self: center; }
.fr-silver { box-shadow: 0 0 0 2px #cbd5e1; }
.fr-gold { box-shadow: 0 0 0 2px #facc15, 0 0 8px rgba(250, 204, 21, .5); }
.fr-neon { box-shadow: 0 0 0 2px #22d3ee, 0 0 10px #22d3ee; }
.fr-fire { box-shadow: 0 0 0 2px #fb923c, 0 0 12px #ef4444; animation: frFire 1.4s ease-in-out infinite; }
@keyframes frFire { 50% { box-shadow: 0 0 0 2px #facc15, 0 0 16px #fb923c; } }
.fr-prestige { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ffcf3f, 0 0 14px rgba(255, 207, 63, .6); }
.fx-glow { text-shadow: 0 0 8px currentColor; }
.fx-sparkle { text-shadow: 0 0 6px #fff, 0 0 12px #f0abfc; }
.fx-sparkle::after { content: " ✨"; }
.fx-stardust { background: linear-gradient(90deg, #fde68a, #fff, #c4b5fd, #fde68a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: stardust 3s linear infinite; }
.starlight-name { background: linear-gradient(90deg, #a5b4fc, #f0abfc, #fde68a, #a5b4fc); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: stardust 4s linear infinite; }
.starlight-bg { background: linear-gradient(135deg, #a5b4fc, #f0abfc, #fde68a) !important; }
@keyframes stardust { to { background-position: -200% 0; } }
.pg-lvlup.t2 { box-shadow: 0 0 40px rgba(var(--accent-rgb),  .5); }
.pg-lvlup.t3 { box-shadow: 0 0 60px rgba(250, 204, 21, .6); border-color: #facc15 !important; }
.pg-lvlup.t3 b { color: #facc15; }
.pg-lvlup.t4 { box-shadow: 0 0 80px rgba(167, 139, 250, .8); border-color: #c4b5fd !important; animation: lvlT4 1s ease-in-out 3; }
.pg-lvlup.t4 b { background: linear-gradient(90deg, #f0abfc, #fde68a, #a5b4fc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes lvlT4 { 50% { transform: translate(-50%, -50%) scale(1.08); } }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ms-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: var(--surface-2, #1c1c1c); border: 1px solid var(--line-2, #2b2b2b); }
.ms-lv { font-size: 12px; color: #fde68a; }
.boss-card { display: flex; flex-direction: column; gap: 6px; }
.boss-bar { height: 14px; border-radius: 999px; background: var(--surface-2, #1c1c1c); overflow: hidden; border: 1px solid var(--line-2, #2b2b2b); }
.boss-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ef4444, #fb923c); transition: width .5s; }
.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 16px; }
.ps-item { display: flex; flex-direction: column; gap: 8px; margin-top: 0 !important; }
.pp-card { flex-shrink: 0; }

/* ---- B16 cases: souvenir, name tags, keys, showroom, orders, auctions ---- */
.sk-card.sv { box-shadow: inset 0 0 0 1px rgba(250, 204, 21, .45); }
.sk-card.sv .sk-w { color: #facc15; }
.sk-nt { display: block; font-size: 11px; color: #fde68a; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c16-insp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.c16-insp > span { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.c16-sd.rare { background: linear-gradient(90deg, #1e3a8a, #0ea5e9); color: #fff; font-weight: 700; }
.c16-sv { color: #facc15; }
.ca-key { background: linear-gradient(90deg, #e4ae39, #facc15); color: #1c1400; font-weight: 700; }
.ca-keyn { font-size: 12px; }
.gc-lo { font-size: 11px; margin: 0 4px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); white-space: nowrap; }
.sr-pane { padding-bottom: 24px; }
.sr-grid { width: 100%; align-self: stretch; box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.sr-item { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; background: radial-gradient(circle at 50% 30%, rgba(228, 174, 57, .18), rgba(255, 255, 255, .03) 70%); border: 1px solid rgba(228, 174, 57, .25); }
.sr-item small, .sr-item em { font-size: 12px; opacity: .8; }
.sr-art { height: 90px; display: grid; place-items: center; perspective: 400px; }
.sr-art .sk-art { max-height: 90px; transition: transform .6s ease; }
.sr-item:hover .sr-art .sk-art { transform: rotateY(18deg) scale(1.08); }
@media (prefers-reduced-motion: reduce) { .sr-item:hover .sr-art .sk-art { transform: none; } }
.sr-acts { display: flex; gap: 6px; margin-top: auto; }
.sr-acts .primary { flex: 1; }
.c16-rent { align-self: stretch; text-align: left; margin: 8px 0 0; color: #fde68a; }
.c16-chart { align-self: stretch; margin: 8px 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); color: #4ade80; }
.c16-chart small { color: inherit; opacity: .9; }
.c16-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin: 8px 0; max-height: 240px; overflow: auto; }
.c16-opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid var(--rc); background: rgba(255, 255, 255, .03); color: inherit; text-align: left; cursor: pointer; font-size: 12px; }
.c16-opt.on { background: rgba(var(--accent-rgb),  .18); border-color: var(--accent); }
.c16-opt .sk-art { width: 48px; flex-shrink: 0; }
.c16-orow { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 13px; }
.c16-top { color: #4ade80; }
.c16-replay .ca-reel { margin: 8px 0; }
.c16-share { margin-top: 8px; }

/* ---- B17 Party Arena + Lottery ---- */
.ar-pane, .lot-pane { padding-bottom: 24px; }
.ar-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; width: 100%; align-self: stretch; margin-bottom: 12px; }
.ar-g { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); color: inherit; cursor: pointer; text-align: left; font: inherit; }
.ar-g:hover { border-color: rgba(var(--accent-rgb),  .5); }
.ar-g.on { border-color: var(--accent); background: rgba(var(--accent-rgb),  .12); }
.ar-g b { font-size: 13px; }
.ar-g small { font-size: 11px; min-height: 14px; opacity: .8; }
.ar-ic { font-size: 20px; }
.ar-main { width: 100%; align-self: stretch; box-sizing: border-box; }
.ar-body { display: flex; flex-direction: column; gap: 6px; }
.ar-body .g10-row.lost { opacity: .7; }
.g17-cd { font-variant-numeric: tabular-nums; color: #facc15; }
.ar-balls, .ar-dice { display: flex; gap: 4px; flex-wrap: wrap; }
.ar-ball { font-style: normal; min-width: 34px; text-align: center; padding: 2px 6px; border-radius: 8px; background: rgba(255, 255, 255, .06); font-size: 12px; }
.ar-ball.ok { background: rgba(74, 222, 128, .18); color: #4ade80; }
.ar-ball.hot { background: rgba(var(--accent-rgb),  .25); color: var(--accent-hi); font-weight: 700; }
.ar-dice i { font-style: normal; font-size: 22px; letter-spacing: 2px; }
.ar-keno { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 8px 0; max-width: 520px; }
.ar-keno .btn { padding: 8px 0; min-width: 0; }
.ar-keno .btn.on { background: var(--accent); color: var(--on-accent, #fff); }
.lot-grid { grid-template-columns: repeat(5, 1fr); max-width: 300px; }
.ar-drawn { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.ar-drawn i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #facc15; color: #1c1400; font-weight: 800; font-size: 12px; }
.ar-hilo { display: flex; align-items: center; gap: 14px; margin: 8px 0; }
.ar-card { display: grid; place-items: center; width: 64px; height: 90px; border-radius: 10px; background: #fff; color: #111; font-size: 30px; font-weight: 800; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.ar-hilo .up { color: #4ade80; } .ar-hilo .down { color: #f87171; }
.ar-wheel-wrap { position: relative; width: 220px; height: 220px; margin: 8px auto; }
.ar-wheel { width: 100%; height: 100%; border-radius: 50%; position: relative; border: 4px solid rgba(255, 255, 255, .15); box-sizing: border-box; }
.ar-wl { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: 11px; font-weight: 700; color: #111; white-space: nowrap; max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
.ar-pin { position: absolute; top: -14px; left: 50%; translate: -50% 0; font-style: normal; color: #fff; font-size: 22px; text-shadow: 0 2px 6px #000; }
.ar-crash { font-size: 48px; font-weight: 900; text-align: center; padding: 18px 0; color: #4ade80; font-variant-numeric: tabular-nums; }
.ar-crash.over { color: #f87171; }
.ar-scratch { display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; margin: 8px 0; }
.ar-scratch .btn { height: 64px; font-size: 26px; padding: 0; background: linear-gradient(135deg, #9ca3af, #4b5563); }
.ar-scratch .btn.on { background: rgba(255, 255, 255, .08); opacity: 1; }
.ar-board { margin: 6px 0; min-height: 60px; }
.ar-hole { transform: scale(.8); transform-origin: left center; }
.ar-rnum { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 900; margin: 6px 0; color: #fff; }
.ar-rnum.c-r { background: #dc2626; } .ar-rnum.c-b { background: #111827; border: 2px solid #374151; } .ar-rnum.c-g { background: #16a34a; }
.ar-red { background: #dc2626; color: #fff; } .ar-black { background: #111827; color: #fff; border: 1px solid #374151; }
.ar-tower { letter-spacing: -6px; }
.ar-box { font-size: 40px; font-weight: 900; margin: 8px 0; }
.ar-bingo { display: grid; grid-template-columns: repeat(5, 44px); gap: 4px; margin: 8px 0; }
.ar-bingo b { text-align: center; color: var(--accent); }
.ar-bingo i { font-style: normal; height: 40px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); font-size: 13px; }
.ar-bingo i.on { background: var(--accent); color: var(--on-accent, #fff); font-weight: 700; }
.ar-snl { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; max-width: 420px; margin: 8px 0; }
.ar-snl i { font-style: normal; aspect-ratio: 1; display: grid; place-items: center; font-size: 10px; border-radius: 4px; background: rgba(255, 255, 255, .04); opacity: .7; }
.ar-snl i.lad { background: rgba(74, 222, 128, .2); } .ar-snl i.snk { background: rgba(248, 113, 113, .2); }
.ar-snl i.who { background: var(--accent); color: var(--on-accent, #fff); font-weight: 800; opacity: 1; font-size: 12px; }
.ar-rps { font-size: 44px; text-align: center; margin: 8px 0; }
.ar-rpsb { font-size: 30px; min-width: 70px; }
@media (max-width: 600px) {
  .ar-pick { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ar-g { padding: 7px 8px; }
  .ar-g b { font-size: 11px; line-height: 1.2; }
  .ar-g small { font-size: 10px; min-height: 0; }
  .ar-ic { font-size: 16px; }
  .ar-keno { grid-template-columns: repeat(8, 1fr); }
  .ar-crash { font-size: 38px; }
}

/* ---- B18 polish: color-blind colors, focus rings, settings bits ---- */
html.cb { --win: #3b9eff; --green: #3b9eff; --ok: #3b9eff; --loss: #ff9f1c; --danger: #ff9f1c; }
html.cb .up, html.cb .g10-res.up, html.cb .ar-ball.ok, html.cb .c16-top, html.cb .ar-hilo .up { color: #3b9eff !important; }
html.cb .down, html.cb .g10-res.down, html.cb .ar-crash.over, html.cb .ar-hilo .down { color: #ff9f1c !important; }
html.cb .ar-crash { color: #3b9eff; }
html.cb .ar-red, html.cb .ar-rnum.c-r { background: #ff9f1c; }
:focus-visible { outline: 2px solid var(--accent, var(--accent)); outline-offset: 2px; }
.p18-row { display: inline-flex; gap: 6px; align-items: center; }
.p18-color { width: 44px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.p18-rep { margin-left: 6px; }

/* ---- mono.css ---- */
/* =====================================================================
   Orbit Casino: black and white theme. Loaded last, so it sets the look for every older layer.
   Pure black surfaces, white as the one accent, black text on white buttons.
   Colors that carry game meaning stay: win green, loss red, card suits, rarity tiers, multiplier
   tiers. A player who picks an accent color in Settings still gets it (html[data-accent]).
   The #\# part only raises specificity, so seasonal accents (html[data-season]) don't win.
   ===================================================================== */
:root:not([data-accent]):not(#\#), :root:not([data-accent]) .casino-page {
  --accent: #ffffff;
  --accent-hi: #ffffff;
  --accent-lo: #d4d4d4;
  --accent-rgb: 255, 255, 255;
  --accent-hi-rgb: 255, 255, 255;
  --accent-glow: rgba(255, 255, 255, 0);
  --on-accent: #000000;
  --grad: linear-gradient(#ffffff, #ffffff);
  --pink: #e5e5e5;
}
:root:not([data-theme="light"]):not(#\#), :root:not([data-theme="light"]) .casino-page {
  --bg: #000000;
  --bg-2: #050505;
  --surface: #0b0b0b;
  --surface-2: #121212;
  --surface-3: #1a1a1a;
  --surface-4: #232323;
  --field: #070707;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .13);
  --line-3: rgba(255, 255, 255, .22);
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --dim: #616161;
  --on: #000000;
  --gold: #e8e8e8;
  --yellow: #e8e8e8;
  --cs-bg: #000000;
  --cs-panel: #0b0b0b;
  --cs-panel2: #121212;
  --felt: #141414;
}
/* A player-picked accent is a real color, so its buttons keep white text. */
:root[data-accent] { --on-accent: #ffffff; }

:root:not([data-theme="light"]), :root:not([data-theme="light"]) body, :root:not([data-theme="light"]) body.casino-page { background: #000 !important; }
::selection { background: #fff; color: #000; }

/* ---- Logo: white mark, no pink ---- */
.cs-logo i { background: #fff !important; color: #000 !important; box-shadow: none !important; }
.cs-logo b { color: var(--muted) !important; }

/* ---- Big hero cards: black with a fine grid instead of pink and purple glows ---- */
.casino-page .s2-hero, .casino-page .cs-hero, .sv-hero, .s2-svh {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .07), transparent 55%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
    #070707 !important;
  border: 1px solid var(--line-2) !important;
}
.s2h-pill, .s2h-pill-t { color: #fff !important; }
.s2h-pill i { background: #fff !important; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15) !important; }


/* ---- Lobby tiles: neutral cards; game art keeps its own colors, at lower strength ---- */
.casino-page .cs-tile { background: var(--surface) !important; border: 1px solid var(--line) !important; }
.casino-page .cs-tile:hover { border-color: var(--line-3) !important; background: var(--surface-2) !important; }
.casino-page .cs-tile .s2-art, .casino-page .cs-tile .cs-tile-i { filter: grayscale(1); opacity: .9; }
.casino-page .cs-tile:hover .s2-art, .casino-page .cs-tile:hover .cs-tile-i { filter: none; opacity: 1; }

/* ---- Sidebar and header: white for the current page ---- */
.casino-page .cs-side .on, .casino-page .cs-nav .on, .s2-topnav button.on { color: #fff !important; }
.casino-page .cs-side .on::before, .casino-page .cs-nav .on::before { background: #fff !important; }

/* ---- Focus rings and inputs ---- */
:focus-visible { outline-color: #fff !important; }
.casino-page input:focus, .casino-page select:focus, .casino-page textarea:focus { border-color: rgba(255, 255, 255, .45) !important; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08) !important; }
input[type="range"] { accent-color: #fff; }
input[type="checkbox"], input[type="radio"] { accent-color: #fff; }

/* ---- Tooltips, toasts and the welcome tour ---- */
.toast { background: #fff !important; color: #000 !important; border: 0 !important; }
.tr-tip { border-color: rgba(255, 255, 255, .5) !important; }

/* ---- Scrollbars ---- */
* { scrollbar-color: #2a2a2a transparent; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ---- Light mode (Settings → light): the same idea inverted ---- */
:root[data-theme="light"]:not([data-accent]):not(#\#) {
  --accent: #000000; --accent-hi: #1a1a1a; --accent-lo: #333333; --accent-rgb: 0, 0, 0; --accent-hi-rgb: 0, 0, 0;
  --on-accent: #ffffff; --grad: linear-gradient(#000, #000);
}

/* ---- Game colors (--c1 on lobby tiles, --g1 on game screens, --s2-v for violet) go grey ---- */
.casino-page .cs-tile, .casino-page .s2-game, .casino-page .pane-title { --c1: #d4d4d4 !important; --c2: #0b0b0b !important; --g1: #d4d4d4 !important; --s2-v: #8a8a8a !important; }
:root:not(#\#) { --s2-v: #8a8a8a; --s2-v-rgb: 138, 138, 138; }
html.s2-look .casino-page .cs-tile.s2-t::before { opacity: .35; }
html.s2-look .casino-page .cs-tile.s2-t { background: linear-gradient(180deg, #101010, #070707) !important; }

/* Game screen header banner */
html.s2-look .casino-page .pane-title.s2-gh {
  background:
    radial-gradient(420px 200px at 8% 50%, rgba(255, 255, 255, .08), transparent 70%),
    linear-gradient(115deg, #121212 0%, #0a0a0a 60%, #0d0d0d 100%) !important;
}
html.s2-look .casino-page .s2-game > .tip-card li::before { background: #fff !important; color: #000 !important; }

/* Header bar */
.casino-page .cs-head, html.s2-look .casino-page .cs-head { background: rgba(0, 0, 0, .85) !important; border-bottom: 1px solid var(--line) !important; }

/* Lobby hero: no violet glow under it */
.casino-page .s2-hero, .casino-page .s2-hero.is-live { box-shadow: none !important; }

/* ---- Coins: silver ---- */
.cs-coin, .cn, .s2-coin {
  background-image: radial-gradient(circle at 35% 30%, #ffffff 0%, #e6e6e6 25%, #b5b5b5 60%, #7a7a7a 100%) !important;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .45), inset 0 -6px 12px rgba(0, 0, 0, .35), 0 10px 30px -10px rgba(0, 0, 0, .8) !important;
  color: #4a4a4a !important;
}
.s2-coin::before { border-color: rgba(0, 0, 0, .22) !important; }
.s2-coin span, .cs-coin span, .cn span { color: #5a5a5a !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .6) !important; background: none !important; box-shadow: none !important; }
.cs-tile-i, .s2-art.s2-art-ic, .s2-gh-art { color: var(--text) !important; }

/* ---- Bet chips: shades of grey with white edges ---- */
.cs-chip { filter: grayscale(1) contrast(1.1); }
.cs-chip.on { filter: grayscale(1) contrast(1.1) brightness(1.25); }

/* ---- Hot / New / Free tags: outlined white ---- */
.tag-hot, .tag-new, .s2-tag, .soon-tag { background: transparent !important; border-color: rgba(255, 255, 255, .25) !important; color: #e5e5e5 !important; }

/* ---- Welcome tour and pop-ups: black cards with a white edge ---- */
.tr-tip, .overlay .panel { background: #0b0b0b !important; }
.tr-tip { border: 1px solid rgba(255, 255, 255, .35) !important; }
.overlay { background: rgba(0, 0, 0, .72) !important; }

/* ---- Orbit mark (planet with a ring) in the logo, server picker and welcome card ---- */
.orbit-mark { width: 72%; height: 72%; display: block; }
.tr-logo { background: #fff !important; color: #000 !important; border: 0 !important; box-shadow: none !important; }
.tr-logo .orbit-mark { width: 58%; height: 58%; }

/* ---- Server picker banner (first screen) ---- */
html.s2-look .sv-hero.s2-svh:not(#\#) {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .08), transparent 55%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
    #070707 !important;
  border: 1px solid var(--line-2) !important;
  box-shadow: none !important;
}
html.s2-look .sv-hero.s2-svh h1 b:not(#\#), .sv-hero h1 b:not(#\#) { color: #8f8f8f !important; -webkit-text-fill-color: #8f8f8f !important; background: none !important; }

/* ---- 🦃 Thanksgiving banner (js/thanksgiving.js). The one place warm color is allowed. ---- */
.tg-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 0 0 16px; padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(245, 158, 66, .35);
  background: radial-gradient(120% 160% at 0% 0%, rgba(245, 158, 66, .18), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(180, 83, 9, .16), transparent 60%), #0a0806;
}
.tg-banner[hidden] { display: none; }
.tg-copy, .tg-side { position: relative; z-index: 1; }
.tg-kicker { font: 700 11px "Geist Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: #f5a14a; }
.tg-banner h2 { margin: 6px 0 4px; font: 800 clamp(22px, 3vw, 30px)/1.05 "Unbounded", "Geist", sans-serif; letter-spacing: -.02em; color: #fff; }
.tg-sub { margin: 0 0 10px; color: #c9b8a6; max-width: 560px; font-size: 13.5px; }
.tg-plates { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tg-plate { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .05); border: 1px dashed rgba(255, 255, 255, .18); font-size: 16px; filter: grayscale(1); opacity: .6; }
.tg-plate.got { filter: none; opacity: 1; border: 1px solid rgba(245, 158, 66, .6); background: rgba(245, 158, 66, .12); }
.tg-plates small { margin-left: 6px; color: #a8998a; font-size: 12px; }
.tg-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.casino-page .tg-banner .btn.primary { background: #f5a14a !important; color: #1a0f04 !important; }
.casino-page .tg-banner .btn.primary:disabled { background: rgba(255, 255, 255, .08) !important; color: #a8998a !important; opacity: 1; }
.tg-when { color: #a8998a; font: 500 11.5px "Geist Mono", ui-monospace, monospace; }
.tg-leaves { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tg-leaves i { position: absolute; top: -24px; font-style: normal; opacity: .55; animation: tg-fall linear infinite; }
@keyframes tg-fall { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(40px, 260px, 0) rotate(300deg); } }
@media (prefers-reduced-motion: reduce) { .tg-leaves { display: none; } }
html.reduce-motion .tg-leaves { display: none; }
@media (max-width: 700px) { .tg-banner { flex-direction: column; align-items: stretch; } .tg-side { align-items: stretch; } }

/* ---- remaster.css ---- */
/* =====================================================================
   Orbit remaster look (menu option D) + remaster cues. Loaded last; js/remaster.js adds the
   .rm-* elements. Space theme in black and white: star dust, orbit lines, white as the accent.
   ===================================================================== */

/* ---- Space backdrop: star dust and a faint orbit behind the main column ---- */
.casino-page .cs-main { position: relative; isolation: isolate; }
.casino-page .cs-main::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 8%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1px 1px at 68% 4%, rgba(255, 255, 255, .4), transparent 60%),
    radial-gradient(1px 1px at 38% 22%, rgba(255, 255, 255, .3), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 18%, rgba(255, 255, 255, .45), transparent 60%),
    radial-gradient(1px 1px at 22% 40%, rgba(255, 255, 255, .25), transparent 60%),
    radial-gradient(1px 1px at 78% 46%, rgba(255, 255, 255, .3), transparent 60%),
    radial-gradient(1px 1px at 52% 70%, rgba(255, 255, 255, .25), transparent 60%),
    radial-gradient(1px 1px at 8% 84%, rgba(255, 255, 255, .3), transparent 60%);
  background-size: 100% 900px;
}
.casino-page .cs-main::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 1100px; height: 1100px; right: -520px; top: -560px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .05); box-shadow: 0 0 0 90px rgba(255, 255, 255, .012), 0 0 0 91px rgba(255, 255, 255, .04);
}
:root:not([data-theme="light"]) .casino-page .cs-main { background: transparent !important; }

/* ---- Logo version mark ---- */
.cs-logo { position: relative; }
.rm-ver {
  font: 600 9px "Geist Mono", ui-monospace, monospace; letter-spacing: .14em; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 7px; margin-left: 6px; white-space: nowrap; align-self: center;
}
@media (max-width: 1100px) { .cs-head .rm-ver { display: none; } }

/* ---- Menu, option D: each section is its own card ---- */
.casino-page .cs-nav.rm-nav { padding: 12px 12px 90px !important; gap: 10px !important; background: rgba(0, 0, 0, .6) !important; }
.casino-page .cs-nav.rm-nav .cs-nav-group { margin: 0 !important; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; gap: 1px; }
.casino-page .cs-nav.rm-nav .cs-nav-group:first-of-type { padding: 4px; }
.casino-page .cs-nav.rm-nav .cs-nav-group h4 { font: 600 10px "Geist Mono", ui-monospace, monospace !important; letter-spacing: .16em !important; color: var(--muted) !important; padding: 6px 8px 6px !important; text-transform: uppercase; }
.casino-page .cs-nav.rm-nav .cs-tab { height: 34px; border-radius: 8px !important; color: var(--muted); font-size: 13px; }
.casino-page .cs-nav.rm-nav .cs-tab:hover { background: var(--surface-3) !important; color: var(--text) !important; }
.casino-page .cs-nav.rm-nav .cs-tab.on:not(#\#) { background: #fff !important; color: #000 !important; font-weight: 600; }
.casino-page .cs-nav.rm-nav .cs-tab.on:not(#\#) .ni, .casino-page .cs-nav.rm-nav .cs-tab.on:not(#\#) .ni * { color: #000 !important; }
.casino-page .cs-nav.rm-nav .cs-tab.on::before { display: none !important; }
:root[data-theme="light"] .casino-page .cs-nav.rm-nav .cs-tab.on:not(#\#) { background: #000 !important; color: #fff !important; }
.rm-tag {
  margin-left: auto; font: 700 8px "Geist Mono", ui-monospace, monospace; font-style: normal; letter-spacing: .1em;
  border: 1px solid currentColor; border-radius: 3px; padding: 1px 4px; opacity: .55; flex: none;
}
.rm-tag.rm-new { opacity: 1; background: #fff; color: #000; border-color: #fff; }
.cs-tab.on .rm-tag.rm-new { background: #000; color: #fff; border-color: #000; }
.casino-page .cs-nav.rm-nav .nav-search { margin-bottom: 0 !important; border-radius: 10px !important; }

/* ---- Lobby tiles: REMASTERED stamp and an orbit line behind the art ---- */
.casino-page #lobbyTiles .cs-tile { position: relative; overflow: hidden; }
.casino-page #lobbyTiles .cs-tile > em[class^="tag-"] { display: none !important; }
.rm-stamp {
  position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none;
  font: 700 8.5px "Geist Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; border: 1px solid #fff; border-radius: 4px; padding: 2px 6px; background: rgba(0, 0, 0, .6); transform: rotate(-4deg);
}
.rm-stamp.rm-new { transform: none; background: #fff; color: #000; }
.rm-orbitline { position: absolute; z-index: 0; width: 190%; aspect-ratio: 1; left: -45%; top: -105%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07); pointer-events: none; transition: border-color .25s; }
.casino-page #lobbyTiles .cs-tile:hover .rm-orbitline { border-color: rgba(255, 255, 255, .18); }

/* ---- Remaster notes page ---- */
.rm-pane { display: grid; gap: 18px; align-content: start; }
.rm-head { display: grid; gap: 8px; padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 16px;
  background: radial-gradient(120% 160% at 100% 0%, rgba(255, 255, 255, .08), transparent 55%), var(--surface); }
.rm-kicker { font: 600 10.5px "Geist Mono", ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rm-head h2 { margin: 0; font: 800 clamp(26px, 4vw, 38px)/1.05 "Unbounded", "Geist", sans-serif; letter-spacing: -.02em; }
.rm-head p { margin: 0; color: var(--muted); max-width: 62ch; }
.rm-head .rm-replay { justify-self: start; margin-top: 4px; }
.rm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.rm-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.rm-label { justify-self: start; font: 700 9.5px "Geist Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 8px; }
.rm-label.rm-fixed { color: #000; background: #fff; border-color: #fff; }
.rm-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text); font-size: 13.5px; }
.rm-card li::marker { color: var(--dim); }

/* ---- Then vs now splash ---- */
.rm-splash { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(0, 0, 0, .82) !important; backdrop-filter: blur(6px); }
.rm-sp-card { width: min(720px, 100%); max-height: 100%; overflow: auto; border: 1px solid var(--line-2); border-radius: 20px; padding: 26px; display: grid; gap: 18px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .08), transparent 55%), #070707; }
.rm-sp-card h2 { margin: 0; font: 800 clamp(24px, 4vw, 36px)/1.05 "Unbounded", "Geist", sans-serif; letter-spacing: -.02em; color: #fff; }
.rm-sp-card h2 span { color: #8f8f8f; }
.rm-tvn { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.rm-arrow { align-self: center; font: 700 20px "Geist Mono", monospace; color: var(--muted); }
.rm-half { border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.rm-then { background: #0a0508; border: 1px solid rgba(255, 46, 147, .35); }
.rm-now { background: #050505; border: 1px solid rgba(255, 255, 255, .25); }
.rm-tag2 { font: 700 9px "Geist Mono", monospace; letter-spacing: .16em; }
.rm-then .rm-tag2 { color: #ff2e93; }
.rm-now .rm-tag2 { color: #fff; }
.rm-mini-logo { font: 800 13px "Unbounded", "Geist", sans-serif; display: flex; gap: 8px; align-items: center; color: #fff; }
.rm-mini-logo i { font-style: normal; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; flex: none; }
.rm-then .rm-mini-logo i { border: 2px solid #ff2e93; color: #ff2e93; }
.rm-now .rm-mini-logo i { background: #fff; color: #000; }
.rm-now .rm-mini-logo i svg { width: 15px; height: 15px; }
.rm-mini-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rm-mini-tiles i { height: 34px; border-radius: 8px; }
.rm-then .rm-mini-tiles i { background: linear-gradient(135deg, #3a0620, #12020a); border: 1px solid rgba(255, 46, 147, .3); }
.rm-then .rm-mini-tiles i:nth-child(2) { background: linear-gradient(135deg, #2a0a3a, #10041a); }
.rm-now .rm-mini-tiles i { background: linear-gradient(180deg, #181818, #0b0b0b); border: 1px solid rgba(255, 255, 255, .12); }
.rm-half ul { margin: 0; padding-left: 16px; display: grid; gap: 4px; font-size: 12.5px; }
.rm-then ul { color: #b49aa8; }
.rm-now ul { color: #e5e5e5; }
.rm-sp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .rm-tvn { grid-template-columns: 1fr; }
  .rm-arrow { transform: rotate(90deg); justify-self: center; }
  .rm-sp-card { padding: 20px; }
}
