/* =========================================================
   NIGHTCOIN — night aubergine (#4B0082), brushed silver (#C0C0C0), touches of gold (#D4AF37)
   Violet is the brand and the action, silver is the metal of the interface, gold is money and victory.
   ========================================================= */
:root {
  --bg: #07050b;
  --bg-2: #0d0a14;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f1f0f5;
  --muted: #9a97a8;
  --dim: #5d5a6b;
  --accent: #8f3dff;
  --accent-2: #c9a6ff;
  --accent-deep: #4b0082;
  --silver: #c0c0c0;
  --gold-deep: #8a6a12;
  --gold: #d4af37;
  --lacquer: linear-gradient(180deg, #c9a6ff 0%, #8f3dff 40%, #6a17d6 70%, #4b0082 100%);
  --chrome: linear-gradient(180deg, #ffffff 0%, #d9d9de 38%, #8e8e99 52%, #c0c0c0 64%, #f4f4f7 100%);
  --goldfoil: linear-gradient(180deg, #fbf0c0 0%, #e7c85a 38%, #d4af37 55%, #8a6a12 100%);
  --heat: linear-gradient(100deg, #d4af37, #8f3dff 45%, #c0c0c0);
  --r: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --display: "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --body: "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--body);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
/* film grain + soft red glow behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120vw 80vh at 50% -30%, rgba(75, 0, 130, 0.35), transparent 70%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.045; mix-blend-mode: overlay;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(143, 61, 255, 0.45); color: #fff; }

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -0.035em; line-height: 1.02; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-fill { fill: currentColor; stroke: none; }

.muted { color: var(--muted); }
.dim { color: var(--dim); }
.gold { color: var(--gold); }
.warn { color: var(--gold); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 14px; }
.wrap { flex-wrap: wrap; }
.center { text-align: center; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(143, 61, 255, 0.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(143, 61, 255, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(143, 61, 255, 0); } }

/* lacquered red text */
.lacquer-text {
  background-image: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, 0.85) 50%, transparent 58%), linear-gradient(180deg, #e4d2ff 0%, #a866ff 40%, #8f3dff 58%, #4b0082 100%);
  background-size: 250% 100%, 100% 100%; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 34px rgba(143, 61, 255, 0.5));
  animation: sheen 5.5s var(--ease) infinite;
}
.chrome-text {
  background-image: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%), var(--chrome);
  background-size: 250% 100%, 100% 100%; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 5.5s var(--ease) infinite; animation-delay: -1.2s;
}
.gold-text { background: var(--goldfoil); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes sheen { 0%, 55% { background-position: 160% 0, 0 0; } 100% { background-position: -60% 0, 0 0; } }

/* ---------- coins & numbers ---------- */
.cr { display: inline-flex; align-items: center; gap: 7px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.coin {
  width: 0.95em; height: 0.95em; border-radius: 50%; display: inline-block; flex: none;
  background: radial-gradient(circle at 32% 28%, #fff8d6 0 12%, #ecd06a 30%, #d4af37 62%, #7a5c10 100%);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.35), 0 0 10px rgba(212, 175, 55, 0.25);
}

/* =========================================================
   App shell
   ========================================================= */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  height: 64px; padding: 0 max(20px, env(safe-area-inset-left));
  background: rgba(6, 6, 7, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 850; font-size: 19px; letter-spacing: -0.04em; margin-right: 18px; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px; position: relative; flex: none;
  background: var(--lacquer);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 18px rgba(143, 61, 255, 0.55);
}
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; background: #fff; border-radius: 2px; }
.logo-mark::before { width: 12px; height: 3px; left: 7px; top: 9px; transform: skewX(-18deg); }
.logo-mark::after { width: 12px; height: 3px; left: 7px; top: 14px; transform: skewX(-18deg); opacity: 0.55; }

.tabs-top { display: flex; gap: 2px; }
.tabs-top a {
  position: relative; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.tabs-top a:hover { color: var(--text); background: var(--surface); }
.tabs-top a.on { color: var(--text); }
.tabs-top a.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -13px; height: 2px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.badge {
  display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 6px;
  border-radius: 9px; background: var(--goldfoil); color: #1a1206; font-size: 10.5px; font-weight: 800; vertical-align: 1px;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.55);
  animation: pop 0.35s var(--spring);
}
.balance {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.balance:hover { border-color: rgba(212, 175, 55, 0.45); }
.balance.bump { animation: bump 0.6s var(--spring); }
@keyframes bump { 30% { transform: scale(1.08); border-color: var(--gold); } }
.me-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px; border-radius: 12px; color: var(--muted); }
.me-btn:hover { color: var(--text); }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: all 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }

/* bottom tab bar (phones) */
.tabbar { display: none; }
@media (max-width: 720px) {
  .tabs-top, .top .who { display: none; }
  .top { height: 58px; padding: 0 16px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
    padding: 6px; border-radius: 22px;
    background: rgba(14, 14, 17, 0.82);
    backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
    border: 1px solid var(--line-2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  }
  .tabbar a {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px;
    border-radius: 16px; color: var(--dim); font-size: 10.5px; font-weight: 650; transition: color 0.2s;
  }
  .tabbar a.on { color: var(--text); background: rgba(255, 255, 255, 0.05); }
  .tabbar a.on .ico { color: var(--accent); filter: drop-shadow(0 0 6px rgba(143, 61, 255, 0.8)); }
  .tabbar .badge { position: absolute; top: 2px; left: 54%; margin: 0; }
  main { padding-bottom: 120px !important; }
}

main { max-width: 1100px; margin: 0 auto; padding: 28px 20px 80px; }
main.enter > * { animation: rise 0.55s var(--ease) both; animation-delay: var(--d, 0ms); }
.stagger > * { animation: rise 0.55s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

/* =========================================================
   Building blocks
   ========================================================= */
.card {
  position: relative; border-radius: var(--r); padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
}
.card.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(143, 61, 255, 0.65), transparent 40%, transparent 60%, rgba(192, 192, 192, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.section { margin-top: 44px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 22px; font-weight: 750; }
.section-head .eyebrow { margin-bottom: 6px; }
.page-title { font-size: clamp(30px, 5vw, 44px); font-weight: 850; }
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 34px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r);
}
.empty .ico { color: var(--dim); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border: 0; border-radius: 14px;
  font-weight: 750; font-size: 15px; letter-spacing: -0.01em; color: #fff; white-space: nowrap;
  background: var(--lacquer);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 10px 30px -8px rgba(143, 61, 255, 0.7);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.15s var(--ease), box-shadow 0.25s, filter 0.2s;
}
/* light sweep across the lacquer */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn:hover::after { transform: translateX(120%); transition: transform 0.75s var(--ease); }
.btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 14px 38px -8px rgba(143, 61, 255, 0.9); }
.btn:active { transform: scale(0.97); }
.btn:disabled { filter: grayscale(0.7) brightness(0.6); cursor: not-allowed; transform: none; }
.btn.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; text-shadow: none; }
.btn.ghost::after { display: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn.quiet { background: none; color: var(--muted); box-shadow: none; text-shadow: none; padding: 0 12px; }
.btn.quiet::after { display: none; }
.btn.quiet:hover { color: var(--text); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
.btn.lg { height: 56px; padding: 0 30px; font-size: 16.5px; border-radius: 16px; }
.btn.block { width: 100%; }
.btn.busy { color: transparent; }
.btn.busy::before {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- inputs ---------- */
.field { position: relative; }
.field input {
  width: 100%; height: 54px; padding: 22px 16px 6px; border-radius: 14px; outline: none;
  font: inherit; font-size: 15.5px; color: var(--text); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field label {
  position: absolute; left: 17px; top: 17px; font-size: 15px; color: var(--muted); pointer-events: none;
  transition: all 0.18s var(--ease);
}
.field input:focus, .field input:not(:placeholder-shown) { border-color: var(--line-2); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(143, 61, 255, 0.14); background: rgba(0, 0, 0, 0.5); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 8px; font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.search {
  display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 16px; border-radius: 16px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); transition: border-color 0.2s, box-shadow 0.2s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(143, 61, 255, 0.14); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: inherit; font-size: 15.5px; color: var(--text); }
.search .ico { color: var(--muted); }
.error { color: var(--accent-2); font-size: 13.5px; min-height: 20px; }
.error:not(:empty) { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible { outline: none; }

/* ---------- segmented control ---------- */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; height: 38px; border: 0; background: none; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--muted); transition: color 0.25s; }
.seg button.on { color: var(--text); }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); transition: transform 0.35s var(--ease), width 0.35s var(--ease); }

/* ---------- avatars ---------- */
.avatar {
  --h: 350;
  width: 40px; height: 40px; border-radius: 13px; flex: none; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 14px; color: #fff; text-transform: uppercase; letter-spacing: -0.02em;
  background: linear-gradient(160deg, hsl(var(--h) 95% 64%), hsl(var(--h) 85% 38%) 70%, hsl(var(--h) 80% 24%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -6px 10px rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.avatar.sm { width: 30px; height: 30px; border-radius: 10px; font-size: 11px; }
.avatar.lg { width: 72px; height: 72px; border-radius: 22px; font-size: 24px; }
.avatar.xl { width: 92px; height: 92px; border-radius: 28px; font-size: 30px; }
.presence { position: relative; }
.presence::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: #3a3a44; border: 2.5px solid var(--bg); }
.presence.on::after { background: #22e07a; box-shadow: 0 0 8px rgba(34, 224, 122, 0.7); }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
a.item:hover { background: var(--surface-2); border-color: var(--line-2); transform: translateX(3px); }
.item.hot { border-color: rgba(143, 61, 255, 0.4); background: linear-gradient(90deg, rgba(143, 61, 255, 0.1), transparent 60%); }
.item .title { font-weight: 650; font-size: 15px; }
.item .sub { color: var(--muted); font-size: 13px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.pill.red { background: rgba(143, 61, 255, 0.14); color: #ff8094; border-color: rgba(143, 61, 255, 0.35); }
.pill.gold { background: rgba(212, 175, 55, 0.12); color: var(--gold); border-color: rgba(212, 175, 55, 0.3); }
.pill.go { background: var(--goldfoil); color: #1a1206; border: 0; box-shadow: 0 0 16px rgba(212, 175, 55, 0.4); }

/* =========================================================
   Landing
   ========================================================= */
.landing { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; min-height: calc(100dvh - 64px - 140px); padding-top: 24px; }
.hero-title { font-size: clamp(54px, 9vw, 112px); font-weight: 900; letter-spacing: -0.06em; line-height: 0.88; }
.hero-title .l2 { display: block; }
.hero-sub { margin-top: 26px; font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 30ch; line-height: 1.45; }
.hero-sub b { color: var(--text); font-weight: 650; }
.stats { display: flex; gap: 34px; margin-top: 38px; }
.stat b { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.auth-card { padding: 26px; border-radius: 24px; background: linear-gradient(180deg, rgba(20, 20, 24, 0.9), rgba(12, 12, 15, 0.9)); backdrop-filter: blur(12px); box-shadow: 0 40px 100px -30px rgba(143, 61, 255, 0.35); }
.auth-card h3 { font-size: 22px; font-weight: 750; }
.fine { font-size: 12.5px; color: var(--dim); text-align: center; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 64px; border-radius: var(--r); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.how > div { background: var(--bg-2); padding: 22px; }
.how b { font-family: var(--display); font-size: 13px; color: var(--gold); letter-spacing: 0.1em; }
.how h4 { font-size: 18px; margin: 8px 0 4px; font-weight: 700; letter-spacing: -0.02em; }
.how p { color: var(--muted); font-size: 14px; }

/* game name marquee */
.marquee { position: relative; overflow: hidden; margin: 54px -20px 0; padding: 18px 0; border-block: 1px solid var(--line); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: slide 38s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: 30px; font-weight: 850; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22); display: inline-flex; align-items: center; gap: 46px; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.marquee-track span:nth-child(3n + 1) { color: rgba(255, 255, 255, 0.92); -webkit-text-stroke: 0; }
@keyframes slide { to { transform: translateX(-50%); } }

/* =========================================================
   Home
   ========================================================= */
.home-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.home-head h1 { font-size: clamp(38px, 6.5vw, 68px); font-weight: 900; letter-spacing: -0.055em; }
.home-head p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.record { display: flex; gap: 8px; }
.record .box { padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 84px; }
.record .box b { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.record .box span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 650; }

/* game cards */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.game {
  position: relative; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: #0d0d10; border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.game:hover { transform: translateY(-4px); border-color: rgba(143, 61, 255, 0.45); box-shadow: 0 30px 60px -24px rgba(143, 61, 255, 0.45); }
.game canvas { display: block; width: 100%; aspect-ratio: 360 / 300; background: #000; }
.game .shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(13, 13, 16, 0.35) 0%, transparent 18%, transparent 42%, rgba(8, 8, 10, 0.7) 62%, #0d0d10 82%); }
.game .meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.game h3 { font-size: 24px; font-weight: 850; letter-spacing: -0.04em; }
.game .line { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.game .tag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.game .best { position: absolute; top: 12px; right: 12px; z-index: 2; }
.game .acts { display: flex; gap: 8px; }
.game .acts .btn { flex: 1; }

/* live ticker */
.ticker { display: flex; align-items: center; gap: 14px; overflow: hidden; height: 46px; padding: 0 0 0 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ticker .eyebrow { flex: none; color: var(--text); }
.ticker-window { flex: 1; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; gap: 34px; width: max-content; animation: slide 45s linear infinite; }
.ticker-track > span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.ticker-track b { color: var(--text); font-weight: 650; }
.ticker-track i { font-style: normal; }

/* =========================================================
   Modal / bottom sheet
   ========================================================= */
.sheet-bg { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(6px); animation: fade 0.25s; }
.sheet { width: min(520px, 100%); max-height: 92dvh; overflow: auto; border-radius: 26px; padding: 24px; background: #0e0e11; border: 1px solid var(--line-2); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); animation: sheet-in 0.45s var(--spring); }
.sheet.closing { animation: sheet-out 0.22s var(--ease) forwards; }
.sheet-bg.closing { animation: fade 0.22s reverse forwards; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(30px) scale(0.96); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(20px) scale(0.97); } }
.sheet h2 { font-size: 26px; font-weight: 850; }
.sheet .label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
@media (max-width: 720px) {
  .sheet-bg { place-items: end stretch; padding: 0; }
  .sheet { width: 100%; border-radius: 26px 26px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); animation: sheet-up 0.45s var(--ease); }
  .sheet.closing { animation: sheet-down 0.25s var(--ease) forwards; }
  .sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: -6px auto 14px; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  @keyframes sheet-down { to { transform: translateY(100%); } }
}
.pick { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.pick::-webkit-scrollbar { display: none; }
.pick-friend { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; padding: 10px 4px; border-radius: 16px; border: 1px solid transparent; background: none; font-size: 12px; color: var(--muted); transition: all 0.2s; }
.pick-friend.on { border-color: rgba(143, 61, 255, 0.55); background: rgba(143, 61, 255, 0.08); color: var(--text); }
.pick-friend.on .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent), 0 0 20px rgba(143, 61, 255, 0.5); }
.pick-games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick-game { height: 62px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 700; font-size: 13.5px; transition: all 0.2s; }
.pick-game small { font-size: 10.5px; color: var(--dim); font-weight: 600; letter-spacing: 0.04em; }
.pick-game.on { border-color: var(--accent); background: rgba(143, 61, 255, 0.1); box-shadow: inset 0 0 0 1px var(--accent), 0 0 22px -6px rgba(143, 61, 255, 0.6); }
.stakes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stake { height: 46px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); font-weight: 750; font-variant-numeric: tabular-nums; transition: all 0.2s; }
.stake.on { background: var(--lacquer); border-color: transparent; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px -8px rgba(143, 61, 255, 0.8); }
.stake:disabled { opacity: 0.3; cursor: not-allowed; }
.summary { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 16px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(100deg, rgba(143, 61, 255, 0.14), rgba(192, 192, 192, 0.08)); border: 1px solid rgba(143, 61, 255, 0.25); }
.summary .big { font-family: var(--display); font-size: 30px; font-weight: 850; letter-spacing: -0.04em; }
.summary .small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 650; }
@media (max-width: 420px) { .pick-games { grid-template-columns: repeat(4, 1fr); } .pick-game { font-size: 12px; } }

/* =========================================================
   Duel page
   ========================================================= */
.duel-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 30px 20px 26px; border: 1px solid var(--line); background: radial-gradient(70% 90% at 50% 0%, rgba(143, 61, 255, 0.2), transparent 70%), #0b0b0e; }
.duel-hero .game-name { text-align: center; }
.vs-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 22px; }
.fighter { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.fighter .name { font-weight: 700; font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.fighter .score { font-family: var(--display); font-size: 30px; font-weight: 850; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.fighter .score.wait { font-size: 14px; color: var(--dim); font-weight: 600; letter-spacing: 0; }
.fighter.win .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold), 0 0 40px rgba(212, 175, 55, 0.5); }
.fighter.win .score { color: var(--gold); }
.fighter.lose { opacity: 0.55; }
.vs-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vs-mid .vs { font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: 0.3em; color: var(--accent); text-shadow: 0 0 18px rgba(143, 61, 255, 0.8); }
.vs-mid .pot { font-family: var(--display); font-size: clamp(30px, 6vw, 44px); font-weight: 900; letter-spacing: -0.04em; }
.vs-mid .pot .coin { width: 0.75em; height: 0.75em; }
.result { margin-top: 16px; padding: 22px; border-radius: 22px; text-align: center; }
.result h2 { font-size: clamp(34px, 7vw, 54px); font-weight: 900; letter-spacing: -0.05em; }
.result p { color: var(--muted); margin-top: 6px; }
.result.win { background: radial-gradient(80% 120% at 50% 0%, rgba(212, 175, 55, 0.2), transparent 70%); border: 1px solid rgba(212, 175, 55, 0.35); }
.result.win h2 { background: var(--goldfoil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result.lose { background: var(--surface); border: 1px solid var(--line); }
.result.draw { background: var(--surface); border: 1px solid var(--line); }
.panel { margin-top: 16px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.panel h3 { font-size: 22px; font-weight: 800; }
.panel p { color: var(--muted); margin: 6px auto 18px; max-width: 40ch; }
.waiting { display: inline-flex; gap: 5px; }
.waiting i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.waiting i:nth-child(2) { animation-delay: 0.15s; }
.waiting i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); } 40% { opacity: 1; transform: none; } }

/* =========================================================
   Wallet, leaderboard
   ========================================================= */
.wallet-hero { padding: 30px; border-radius: 28px; overflow: hidden; position: relative; background: radial-gradient(90% 120% at 100% 0%, rgba(143, 61, 255, 0.28), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(192, 192, 192, 0.16), transparent 70%), #0c0c0f; border: 1px solid var(--line-2); }
.wallet-hero .amount { font-family: var(--display); font-size: clamp(48px, 10vw, 84px); font-weight: 900; letter-spacing: -0.06em; line-height: 1; margin: 10px 0 22px; display: flex; align-items: center; gap: 14px; }
.wallet-hero .amount .coin { width: 0.62em; height: 0.62em; }
.ledger .item { padding: 12px 14px; }
.ledger .amt { font-weight: 750; font-variant-numeric: tabular-nums; }
.ledger .amt.plus { color: var(--gold); }
.ledger .amt.minus { color: var(--muted); }
.lg-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.lg-ico.plus { color: var(--gold); background: rgba(212, 175, 55, 0.1); }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin-bottom: 18px; }
.podium > div { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.podium .p1 { padding-top: 26px; border-color: rgba(212, 175, 55, 0.4); background: radial-gradient(90% 80% at 50% 0%, rgba(212, 175, 55, 0.16), transparent 70%), var(--surface); }
.podium .rank { font-family: var(--display); font-weight: 900; font-size: 13px; color: var(--muted); letter-spacing: 0.1em; }
.podium .p1 .rank { color: var(--gold); }
.podium .name { font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.rank-n { width: 28px; text-align: center; font-family: var(--display); font-weight: 800; color: var(--dim); }
.item.me { border-color: rgba(143, 61, 255, 0.4); }

/* =========================================================
   Toasts & confetti
   ========================================================= */
#toasts { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 420px); pointer-events: none; }
.toast {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px 11px 13px; border-radius: 14px;
  background: rgba(22, 22, 26, 0.92); backdrop-filter: blur(14px); border: 1px solid var(--line-2);
  font-weight: 600; font-size: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  animation: toast-in 0.45s var(--spring);
}
.toast .ico { color: #22e07a; }
.toast.bad .ico { color: var(--accent); }
.toast.out { animation: toast-out 0.35s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(0.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px) scale(0.97); } }
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .landing { grid-template-columns: 1fr; gap: 34px; min-height: 0; padding-top: 8px; }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  main { padding: 18px 16px 120px; }
  .section { margin-top: 34px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .game { border-radius: 18px; }
  .game canvas { aspect-ratio: 360 / 400; }
  .game .meta { padding: 12px; gap: 10px; }
  .game h3 { font-size: 19px; }
  .game .line { display: none; }
  .game .acts .btn.ghost { flex: 0 0 36px; padding: 0; }
  .game .acts .btn.ghost span { display: none; }
  .stats { gap: 22px; }
  .stat b { font-size: 22px; }
  .record .box { min-width: 0; flex: 1; padding: 10px 12px; }
  .home-head { align-items: start; }
  .record { width: 100%; }
  .marquee-track span { font-size: 22px; }
  .podium { gap: 8px; }
  .duel-hero { padding: 24px 12px 20px; }
  .item { padding: 11px 12px; gap: 12px; }
}

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


/* =========================================================
   Aurora: slow drifting light behind every page
   ========================================================= */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; }
.aurora i:nth-child(1) { width: 70vmax; height: 70vmax; right: -25vmax; top: -35vmax; background: radial-gradient(closest-side, rgba(143, 61, 255, 0.3), transparent); animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 60vmax; height: 60vmax; left: -30vmax; top: 20vh; background: radial-gradient(closest-side, rgba(75, 0, 130, 0.45), transparent); animation: drift2 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 50vmax; height: 50vmax; left: 30vw; bottom: -38vmax; background: radial-gradient(closest-side, rgba(212, 175, 55, 0.1), transparent); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-14vw, 12vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(16vw, -10vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-12vw, -12vh) scale(1.2); } }

/* =========================================================
   Full-screen game: header, canvas that always fits, footer. Never scrolls.
   ========================================================= */
body.in-game { overflow: hidden; }
.game-screen {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background: radial-gradient(90vw 70vh at 50% 0%, rgba(75, 0, 130, 0.55), transparent 70%), var(--bg);
  animation: fade 0.3s;
}
.gs-head { flex: none; width: min(620px, 100%); height: 44px; display: flex; align-items: center; gap: 12px; }
.gs-title { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: 10px; white-space: nowrap; overflow: hidden; }
.gs-title b { font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: -0.03em; overflow: hidden; text-overflow: ellipsis; }
.gs-title span { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.gs-area { flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; }
.stage-wrap { position: relative; border-radius: 26px; padding: 1px; background: linear-gradient(160deg, rgba(201, 166, 255, 0.9), rgba(255, 255, 255, 0.08) 40%, rgba(212, 175, 55, 0.6)); box-shadow: 0 30px 90px -20px rgba(143, 61, 255, 0.55); animation: stage-in 0.55s var(--spring); }
@keyframes stage-in { from { opacity: 0; transform: scale(0.94) translateY(16px); } }
.stage-wrap canvas { display: block; width: 100%; height: 100%; border-radius: 25px; touch-action: none; user-select: none; -webkit-user-select: none; background: #000; outline: none; }
.game-screen .hint { flex: none; font-size: 13px; color: var(--dim); text-align: center; min-height: 20px; }
.game-screen .hint kbd { font: inherit; font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.gs-foot { flex: none; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gs-foot:not(:empty) { animation: rise 0.5s var(--ease) both; padding-bottom: 4px; }
.gs-foot .btn { height: 44px; }
.play-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.play-bar h1 { font-size: 26px; font-weight: 850; }

/* =========================================================
   Cinematics
   ========================================================= */
/* VS intro before a duel run */
.vs-intro { position: fixed; inset: 0; z-index: 55; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; overflow: hidden; background: #07050b; animation: fade 0.25s; }
.vs-intro.out { animation: vs-out 0.35s var(--ease) forwards; }
@keyframes vs-out { to { opacity: 0; transform: scale(1.08); } }
.vs-intro .side { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.vs-intro .side.l { background: linear-gradient(120deg, rgba(143, 61, 255, 0.5), transparent 75%); animation: slide-l 0.6s var(--ease) both; }
.vs-intro .side.r { background: linear-gradient(-120deg, rgba(192, 192, 192, 0.3), transparent 75%); animation: slide-r 0.6s var(--ease) both; }
@keyframes slide-l { from { transform: translateX(-100%); } }
@keyframes slide-r { from { transform: translateX(100%); } }
.vs-intro .name { font-family: var(--display); font-weight: 850; font-size: clamp(20px, 5vw, 34px); letter-spacing: -0.03em; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
.vs-intro .avatar { animation: pop 0.5s var(--spring) 0.35s both; }
.vs-intro .mid { display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 1; }
.vs-intro .vs { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 16vw, 150px); letter-spacing: -0.06em; line-height: 0.9; animation: slam 0.5s cubic-bezier(0.2, 1.6, 0.3, 1) 0.55s both; }
@keyframes slam { from { opacity: 0; transform: scale(3.2) rotate(-8deg); } }
.vs-intro .potline { font-family: var(--display); font-weight: 850; font-size: clamp(20px, 4vw, 30px); animation: rise 0.5s var(--ease) 0.9s both; }
.vs-intro .gname { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); animation: rise 0.5s var(--ease) 1s both; }
.vs-intro::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: flashbang 0.5s ease-out 0.55s; }
@keyframes flashbang { 0% { opacity: 0.55; } 100% { opacity: 0; } }

/* score reveal on a freshly settled duel */
.duel-hero.reveal .fighter { opacity: 1; }
.duel-hero.reveal .fighter .avatar { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -6px 10px rgba(0, 0, 0, 0.25); }
.duel-hero.reveal .fighter .score { color: var(--text); }
.result.late { animation: result-in 0.7s var(--spring) both; }
@keyframes result-in { from { opacity: 0; transform: scale(0.8) translateY(20px); } }
.fighter .avatar, .fighter { transition: opacity 0.6s, box-shadow 0.6s; }
.fighter .score { transition: color 0.4s; }

/* game cards: 3D tilt + light that follows the pointer */
.game { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); transition: transform 0.25s var(--ease), border-color 0.3s, box-shadow 0.4s; }
.game:hover { --lift: -4px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); }
.game::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.16), transparent 60%); }
.game:hover::after { opacity: 1; }

/* buttons: silver rim so the violet reads as lacquer on metal */
.btn:not(.ghost):not(.quiet) { border: 1px solid rgba(220, 205, 255, 0.35); }
.btn.gold { background: var(--goldfoil); color: #1a1206; text-shadow: none; border-color: rgba(255, 240, 190, 0.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 30px -8px rgba(212, 175, 55, 0.6); }
.btn.gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 14px 38px -8px rgba(212, 175, 55, 0.85); }

/* streak chip on the home page */
.streak { display: inline-flex; align-items: center; gap: 6px; }
.streak .flame { color: var(--gold); animation: flicker 1.4s ease-in-out infinite; }
@keyframes flicker { 50% { transform: scale(1.18) rotate(-4deg); filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.8)); } }

/* fair-play review */
.panel.review { border-color: rgba(212, 175, 55, 0.4); background: radial-gradient(80% 120% at 50% 0%, rgba(212, 175, 55, 0.1), transparent 70%), var(--surface); }
.sig { display: inline-flex; padding: 2px 8px; margin: 2px 4px 2px 0; border-radius: 999px; font-size: 11.5px; font-weight: 650; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.risk { font-family: var(--display); font-weight: 850; font-size: 20px; }
.risk.hi { color: var(--gold); }

/* =========================================================
   CASINO LAYER — side menu, promos, VIP, daily case, live duels
   Gold is now a real lacquered metal: bright specular band, deep shadow, slow sheen.
   ========================================================= */
:root {
  --goldfoil: linear-gradient(180deg, #fff6cf 0%, #f6dc7c 18%, #e2bd4a 42%, #c99a1e 62%, #8a6a12 84%, #c99a1e 100%);
  --gold-glow: 0 0 0 1px rgba(255, 236, 170, 0.5), 0 10px 34px -8px rgba(226, 189, 74, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -2px 0 rgba(90, 60, 0, 0.45);
  --side-w: 248px;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #4b0082, #2a0b52); border-radius: 10px; border: 2px solid var(--bg); }
* { scrollbar-color: #4b0082 transparent; scrollbar-width: thin; }

/* ---------- gold, glossier and alive ---------- */
.btn.gold { background: var(--goldfoil); color: #241703; text-shadow: 0 1px 0 rgba(255, 245, 210, 0.6); box-shadow: var(--gold-glow); border: 0; font-weight: 800; }
.btn.gold::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%); animation: auto-shine 4.5s ease-in-out infinite; }
.btn.gold:hover { filter: brightness(1.07) saturate(1.1); box-shadow: 0 0 0 1px rgba(255, 236, 170, 0.7), 0 14px 44px -8px rgba(226, 189, 74, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -2px 0 rgba(90, 60, 0, 0.45); }
.btn.gold:disabled { filter: grayscale(0.5) brightness(0.65); }
@keyframes auto-shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.gold-shine {
  background-image: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.95) 50%, transparent 60%), var(--goldfoil);
  background-size: 250% 100%, 100% 100%; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 22px rgba(226, 189, 74, 0.45));
  animation: sheen 4.5s var(--ease) infinite;
}
.gold-text { background: var(--goldfoil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.coin {
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.95) 0 9%, transparent 22%),
    radial-gradient(circle, transparent 54%, rgba(120, 85, 10, 0.55) 56%, transparent 60%),
    conic-gradient(from 200deg, #fff1b8, #d4af37, #8a6a12, #e2bd4a, #fff1b8, #c99a1e, #fff1b8);
  box-shadow: inset 0 -1px 2px rgba(60, 40, 0, 0.55), 0 0 12px rgba(226, 189, 74, 0.45);
}
.pill.gold { background: linear-gradient(180deg, rgba(226, 189, 74, 0.22), rgba(138, 106, 18, 0.18)); color: #f1d77a; border-color: rgba(226, 189, 74, 0.45); }
.badge { background: var(--goldfoil); color: #241703; box-shadow: 0 0 14px rgba(226, 189, 74, 0.6); }

/* ---------- the little bars that used to be plain white ---------- */
.seg .thumb { background: linear-gradient(180deg, rgba(143, 61, 255, 0.55), rgba(75, 0, 130, 0.65)); border: 1px solid rgba(201, 166, 255, 0.45); box-shadow: 0 6px 20px -6px rgba(143, 61, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.seg button.on { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.tabs-top a.on::after { background: var(--goldfoil); box-shadow: 0 0 12px rgba(226, 189, 74, 0.8); }
.fighter .score.wait { min-height: 36px; display: grid; place-items: center; }
.fighter .score.wait .pill { height: 28px; }
@media (max-width: 720px) { .sheet::before { background: var(--goldfoil); box-shadow: 0 0 10px rgba(226, 189, 74, 0.5); } }
.stake.on { background: var(--goldfoil); color: #241703; box-shadow: var(--gold-glow); text-shadow: none; }
.pick-game.on { border-color: #e2bd4a; background: linear-gradient(180deg, rgba(226, 189, 74, 0.18), rgba(75, 0, 130, 0.25)); box-shadow: inset 0 0 0 1px #e2bd4a, 0 0 24px -6px rgba(226, 189, 74, 0.7); }
.pick-friend.on { border-color: rgba(226, 189, 74, 0.6); background: rgba(226, 189, 74, 0.08); }
.pick-friend.on .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #e2bd4a, 0 0 22px rgba(226, 189, 74, 0.55); }
.summary { background: radial-gradient(120% 140% at 0% 0%, rgba(226, 189, 74, 0.2), transparent 55%), linear-gradient(100deg, rgba(75, 0, 130, 0.35), rgba(20, 10, 40, 0.6)); border: 1px solid rgba(226, 189, 74, 0.4); }
.summary .big .num { background: var(--goldfoil); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- shell: side menu on wide screens ---------- */
.side { display: none; }
@media (min-width: 1100px) {
  body.signed-in .side {
    display: flex; flex-direction: column; gap: 6px; position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); z-index: 35;
    padding: 18px 14px; overflow-y: auto;
    background: linear-gradient(180deg, rgba(16, 9, 30, 0.96), rgba(9, 6, 16, 0.98));
    border-right: 1px solid var(--line);
  }
  body.signed-in .shell { margin-left: var(--side-w); }
  body.signed-in .top-logo { display: none; }
}
.side .logo { padding: 4px 8px 16px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-games a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 650; font-size: 14.5px; transition: background 0.2s, color 0.2s; }
.side-nav a:hover, .side-games a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.side-nav a.on { color: #fff; background: linear-gradient(90deg, rgba(143, 61, 255, 0.28), rgba(143, 61, 255, 0.04)); box-shadow: inset 3px 0 0 #e2bd4a; }
.side-nav a.on .ico { color: #f1d77a; filter: drop-shadow(0 0 6px rgba(226, 189, 74, 0.7)); }
.side-label { margin: 18px 12px 6px; font-size: 11px; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.side-games a { padding: 8px 12px; font-size: 14px; }
.gdot { width: 9px; height: 9px; border-radius: 3px; flex: none; display: inline-block; transform: rotate(45deg); }
.g-stack { background: #a866ff; } .g-hop { background: #e2bd4a; } .g-cannon { background: #c0c0c0; } .g-race { background: #8f3dff; }
.g-foot { background: #22c55e; } .g-ricochet { background: #22d3ee; }
.g-snake { background: #c026d3; } .g-glide { background: #f1d77a; } .g-merge { background: #d8b4fe; } .g-blocks { background: #6d28d9; }
.vip-card { display: block; margin-top: 12px; padding: 14px; border-radius: 16px; background: radial-gradient(120% 100% at 100% 0%, rgba(226, 189, 74, 0.16), transparent 60%), rgba(255, 255, 255, 0.03); border: 1px solid rgba(226, 189, 74, 0.25); font-size: 13px; font-weight: 650; color: var(--muted); }
.vip-card:hover { border-color: rgba(226, 189, 74, 0.5); }
.vip-bar { position: relative; height: 7px; margin: 10px 0 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.vip-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--goldfoil); box-shadow: 0 0 12px rgba(226, 189, 74, 0.7); transition: width 1s var(--ease); min-width: 6px; overflow: hidden; }
.vip-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent); animation: bar-run 2.4s linear infinite; }
@keyframes bar-run { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.vip-sub, .k-sub { font-size: 12px; color: var(--dim); font-weight: 600; }
.vip-chip { --tier: #c0c0c0; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tier); background: color-mix(in srgb, var(--tier) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tier) 45%, transparent); }

/* ---------- top bar: balance + wallet joined, like a casino header ---------- */
.balance-box { display: inline-flex; align-items: center; height: 42px; padding: 3px; border-radius: 14px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line-2); }
.balance-box .balance { height: 34px; border: 0; background: none; padding: 0 14px 0 10px; font-size: 15px; }
.balance-box .btn.gold { height: 34px; border-radius: 11px; }
.balance-box.bump { animation: bump 0.6s var(--spring); }
.case-btn { position: relative; }
.case-btn.ready { color: #f1d77a; border-color: rgba(226, 189, 74, 0.5); animation: case-pulse 2.2s ease-in-out infinite; }
.case-btn.ready::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #f1d77a; box-shadow: 0 0 8px #e2bd4a; }
@keyframes case-pulse { 50% { box-shadow: 0 0 0 4px rgba(226, 189, 74, 0.12), 0 0 22px rgba(226, 189, 74, 0.45); } }
.avatar.ringed { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ring, #c0c0c0); }
.avatar.xs { width: 22px; height: 22px; border-radius: 7px; font-size: 9px; }
@media (max-width: 720px) { .hide-sm { display: none !important; } .balance-box .btn.gold { display: none; } }

/* ---------- landing: centred slogan ---------- */
.landing-hero { text-align: center; padding: 34px 0 6px; display: flex; flex-direction: column; align-items: center; }
.slogan { margin-top: 18px; font-size: clamp(56px, 11vw, 132px); font-weight: 900; letter-spacing: -0.065em; line-height: 0.95; padding-bottom: 0.06em; }
.slogan .chrome-text { padding-right: 0.06em; }
.landing-hero .hero-sub { margin: 18px auto 0; max-width: none; }
.landing-hero .stats { justify-content: center; margin-top: 30px; }
.landing-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; margin-top: 46px; }
.mini-games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-game { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.mini-game canvas { display: block; width: 100%; aspect-ratio: 1; }
.mini-game span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-family: var(--display); font-weight: 800; font-size: 14px; background: linear-gradient(transparent, rgba(5, 3, 10, 0.92)); }
@media (max-width: 900px) { .landing-grid { grid-template-columns: 1fr; } .mini-games { order: 2; } }

/* ---------- lobby: promo banners ---------- */
.promos { position: relative; }
.promo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 26px; scrollbar-width: none; }
.promo-track::-webkit-scrollbar { display: none; }
.promo { flex: 0 0 100%; scroll-snap-align: start; position: relative; overflow: hidden; min-height: 248px; padding: 34px 38px; display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 26px; isolation: isolate; }
.promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.06) 45%, transparent 60%); animation: sheen 7s ease-in-out infinite; background-size: 250% 100%; }
.p-case { background: radial-gradient(70% 120% at 85% 50%, rgba(226, 189, 74, 0.35), transparent 60%), linear-gradient(120deg, #1d0b3a, #0c0716); }
.p-race { background: radial-gradient(70% 120% at 85% 40%, rgba(192, 192, 192, 0.22), transparent 60%), linear-gradient(120deg, #2a0b52, #0c0716); }
.p-duel { background: radial-gradient(70% 120% at 85% 50%, rgba(143, 61, 255, 0.5), transparent 60%), linear-gradient(120deg, #120724, #07050b); }
.promo-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 60%; }
.promo h2 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.eyebrow.gold { color: #f1d77a; }
.promo-art { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); }
.coins-art { width: 190px; height: 190px; }
.coins-art .coin { position: absolute; width: 64px; height: 64px; left: calc(50% - 32px); top: calc(50% - 32px); animation: coin-float 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.5s); transform: rotate(calc(var(--i) * 51deg)) translateY(-62px) rotate(calc(var(--i) * -51deg)); }
.coins-art .coin:nth-child(odd) { width: 46px; height: 46px; }
@keyframes coin-float { 50% { translate: 0 -12px; filter: brightness(1.25); } }
.trophy-art { color: #e8e8ee; filter: drop-shadow(0 0 30px rgba(226, 189, 74, 0.45)); animation: coin-float 4s ease-in-out infinite; }
.trophy-art .ico { stroke-width: 1.2; }
.vs-art { font-family: var(--display); font-weight: 900; font-size: 150px; letter-spacing: -0.08em; opacity: 0.9; }
.dots { position: absolute; left: 38px; bottom: 16px; display: flex; gap: 6px; }
.dots .dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.25); transition: width 0.3s var(--ease), background 0.3s; }
.dots .dot.on { width: 26px; background: var(--goldfoil); }
@media (max-width: 720px) {
  .promo { min-height: 220px; padding: 24px 20px 40px; }
  .promo-text { max-width: 75%; }
  .promo-art { right: -20px; opacity: 0.55; transform: translateY(-50%) scale(0.75); }
  .dots { left: 20px; }
}

/* ---------- lobby: key figures ---------- */
.kpis { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 10px; margin-top: 16px; }
.kpi { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.kpi b { font-family: var(--display); font-size: 22px; font-weight: 850; letter-spacing: -0.03em; }
.k-label { font-size: 11px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.kpi.vip { border-color: rgba(226, 189, 74, 0.25); }
.kpi.vip .vip-bar { margin: 8px 0 4px; }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpi.vip { grid-column: 1 / -1; } .kpi { padding: 12px; } .kpi b { font-size: 17px; } .k-label { font-size: 10px; letter-spacing: 0.1em; } }

/* ---------- Originals grid: 4 x 2, always aligned ---------- */
.games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- live duels table ---------- */
.live { border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: rgba(255, 255, 255, 0.02); }
.live-row { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 0.9fr 0.9fr; gap: 10px; align-items: center; padding: 11px 16px; font-size: 14px; border-top: 1px solid var(--line); }
.live-row:nth-child(even) { background: rgba(255, 255, 255, 0.015); }
.live-row.head { border-top: 0; font-size: 11px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); background: rgba(0, 0, 0, 0.25); }
.live-row .row { gap: 8px; min-width: 0; }
.live-row b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num-col { text-align: right; justify-self: end; }
.live-row.fresh { animation: fresh 1.6s var(--ease); }
@keyframes fresh { 0% { background: rgba(226, 189, 74, 0.25); transform: translateY(-8px); opacity: 0; } 30% { opacity: 1; transform: none; } }
@media (max-width: 720px) { .live-row { grid-template-columns: 1fr 1.2fr 0.9fr; padding: 10px 12px; } }

/* ---------- daily case ---------- */
.case-sheet { width: min(620px, 100%); }
.reel { position: relative; height: 128px; overflow: hidden; border-radius: 18px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line-2); }
.reel::before, .reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18%; z-index: 1; pointer-events: none; }
.reel::before { left: 0; background: linear-gradient(90deg, #0e0e11, transparent); }
.reel::after { right: 0; background: linear-gradient(-90deg, #0e0e11, transparent); }
.reel-track { display: flex; gap: 10px; padding: 14px 0 14px 10px; will-change: transform; }
.reel-tile { flex: 0 0 102px; height: 100px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-size: 18px; border: 1px solid var(--line-2); background: #120a22; }
.reel-tile .coin { width: 30px; height: 30px; }
.reel-tile.p-silver { background: linear-gradient(180deg, #2a2a33, #15151b); color: #d9d9de; }
.reel-tile.p-violet { background: linear-gradient(180deg, #3a1470, #1a0a33); color: #d8b4fe; border-color: rgba(143, 61, 255, 0.5); }
.reel-tile.p-lav { background: linear-gradient(180deg, #5a2aa8, #2a0b52); color: #fff; border-color: rgba(216, 180, 254, 0.6); }
.reel-tile.p-gold { background: linear-gradient(180deg, #5a4210, #241703); color: #f6dc7c; border-color: rgba(226, 189, 74, 0.7); box-shadow: inset 0 0 20px rgba(226, 189, 74, 0.25); }
.reel-tile.p-legend { background: var(--goldfoil); color: #241703; border-color: #fff1b8; box-shadow: 0 0 22px rgba(226, 189, 74, 0.6); }
.reel-tile.won { animation: won 0.9s var(--spring) both; position: relative; z-index: 1; }
@keyframes won { 40% { transform: scale(1.18); } 100% { transform: scale(1.08); box-shadow: 0 0 0 3px #fff1b8, 0 0 40px rgba(226, 189, 74, 0.9); } }
.reel-pointer { position: absolute; z-index: 2; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: var(--goldfoil); box-shadow: 0 0 14px #e2bd4a; }
.reel-pointer::before, .reel-pointer::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 9px solid transparent; }
.reel-pointer::before { top: 0; border-top-color: #f1d77a; }
.reel-pointer::after { bottom: 0; border-bottom-color: #f1d77a; }
.odds { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 14px 0 6px; }
.odd { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 750; border: 1px solid var(--line); }
.odd .coin { width: 12px; height: 12px; }
.odd.p-gold, .odd.p-legend { color: #f1d77a; border-color: rgba(226, 189, 74, 0.45); }
.odd.p-lav, .odd.p-violet { color: #d8b4fe; }
.case-result { min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 4px 0 10px; }
.case-amount { font-family: var(--display); font-size: 44px; font-weight: 900; letter-spacing: -0.04em; animation: result-in 0.6s var(--spring) both; }

/* ---------- VIP club ---------- */
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tier { --tier: #c0c0c0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); opacity: 0.55; }
.tier.reached { opacity: 1; border-color: color-mix(in srgb, var(--tier) 35%, transparent); }
.tier.me { background: radial-gradient(100% 90% at 50% 0%, color-mix(in srgb, var(--tier) 22%, transparent), transparent 70%), rgba(255, 255, 255, 0.03); border-color: var(--tier); box-shadow: 0 0 28px -8px var(--tier); }
.tier-gem { color: var(--tier); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--tier) 60%, transparent)); }
@media (max-width: 720px) { .tiers { grid-template-columns: repeat(3, 1fr); } }

/* ---------- race podium ---------- */
.podium .p1 { position: relative; }
.podium .crown { position: absolute; top: -16px; color: #f1d77a; filter: drop-shadow(0 0 10px rgba(226, 189, 74, 0.8)); animation: coin-float 3s ease-in-out infinite; }
.podium .p1 .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #e2bd4a, 0 0 34px rgba(226, 189, 74, 0.55); }
.podium .p2 .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #c0c0c0; }
.podium .p3 .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #cd8a4b; }

/* gold for text: lighter than the button foil so big letters stay bright */
:root { --goldtext: linear-gradient(180deg, #fffbe6 0%, #fbe7a1 30%, #f0cd5e 58%, #d9a92c 82%, #b8891c 100%); }
.gold-shine { background-image: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.95) 50%, transparent 60%), var(--goldtext); filter: drop-shadow(0 2px 0 rgba(90, 60, 0, 0.35)) drop-shadow(0 6px 26px rgba(226, 189, 74, 0.5)); }
.gold-text, .summary .big .num { background: var(--goldtext); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================================
   FLAT PASS — closer to a real betting site, less "generated".
   Matte solid surfaces, tight corners (4-10px), flat buttons, no coloured halos,
   gradients kept only where they mean something (gold money, silver headline).
   ========================================================= */
:root {
  --bg: #0d0a13;
  --bg-2: #120e1a;
  --s1: #16111f; /* panels */
  --s2: #1d1729; /* raised: inputs, rows on hover */
  --s3: #262035; /* chips, hover */
  --line: #262033;
  --line-2: #342b45;
  --r: 10px;
  --r-sm: 6px;
  --gold-flat: linear-gradient(180deg, #f0cd5e, #d4af37);
  --violet-flat: #6d28d9;
}
body { background: var(--bg); }
body::before { background: radial-gradient(100vw 60vh at 50% -25%, rgba(75, 0, 130, 0.22), transparent 70%); }
body::after { opacity: 0.025; }
.aurora i:nth-child(1) { opacity: 0.35; }
.aurora i:nth-child(2) { opacity: 0.3; }
.aurora i:nth-child(3) { display: none; }

/* ---------- surfaces ---------- */
.card, .panel, .item, .kpi, .vip-card, .live, .how > div, .record .box, .tier, .podium > div, .result.lose, .result.draw, .wallet-hero, .duel-hero, .empty {
  border-radius: var(--r);
}
.card, .panel, .item, .kpi, .live, .tier, .podium > div, .result.lose, .result.draw, .record .box { background: var(--s1); }
.card.glow::before { display: none; }
.auth-card { background: var(--s1); backdrop-filter: none; box-shadow: none; border-color: var(--line-2); border-radius: 12px; }
a.item:hover { background: var(--s2); transform: none; }
.item.hot { background: var(--s1); border-color: var(--line-2); box-shadow: inset 3px 0 0 #d4af37; }
.duel-hero { background: var(--s1); border-radius: 12px; }
.wallet-hero { background: var(--s1); border-color: var(--line-2); border-radius: 12px; }
.result.win { background: var(--s1); border: 1px solid rgba(212, 175, 55, 0.45); border-radius: var(--r); box-shadow: inset 0 3px 0 #d4af37; }
.panel.review { background: var(--s1); }
.empty { border-style: solid; border-color: var(--line); background: var(--s1); }

/* ---------- buttons: flat ---------- */
.btn { border-radius: 8px; height: 42px; padding: 0 18px; font-weight: 700; background: var(--violet-flat); box-shadow: none; text-shadow: none; border: 0 !important; }
.btn::after, .btn.gold::after { display: none; }
.btn:hover { background: #7c3aed; box-shadow: none; filter: none; }
.btn:active { transform: translateY(1px); }
.btn.sm { height: 34px; border-radius: 6px; padding: 0 12px; }
.btn.lg { height: 50px; border-radius: 8px; }
.btn.gold { background: var(--gold-flat); color: #1f1503; box-shadow: none; text-shadow: none; }
.btn.gold:hover { background: linear-gradient(180deg, #f6d873, #dcb840); box-shadow: none; filter: none; }
.btn.ghost { background: var(--s2); border: 1px solid var(--line-2) !important; }
.btn.ghost:hover { background: var(--s3); }
.btn.quiet { background: none; }
.icon-btn { border-radius: 8px; background: var(--s2); border-color: var(--line-2); }

/* ---------- inputs & selectors ---------- */
.field input, .search { border-radius: 8px; background: var(--bg-2); border-color: var(--line-2); }
.field input:focus, .search:focus-within { box-shadow: none; border-color: #8b5cf6; }
.seg { border-radius: 8px; background: var(--bg-2); padding: 3px; }
.seg button { border-radius: 6px; height: 36px; }
.seg .thumb { top: 3px; bottom: 3px; left: 3px; border-radius: 6px; background: var(--s3); border: 1px solid var(--line-2); box-shadow: inset 0 -2px 0 #d4af37; }
.stake, .pick-game { border-radius: 8px; background: var(--s2); }
.stake.on { background: var(--gold-flat); box-shadow: none; }
.pick-game.on { background: var(--s3); box-shadow: inset 0 0 0 1px #d4af37; }
.pick-friend { border-radius: 8px; }
.pick-friend.on .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px #d4af37; }
.summary { border-radius: var(--r); background: var(--s2); border: 1px solid var(--line-2); }
.sheet { border-radius: 14px; background: var(--s1); border-color: var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
@media (max-width: 720px) { .sheet { border-radius: 14px 14px 0 0; } }

/* ---------- small things ---------- */
.pill { border-radius: 5px; height: 24px; padding: 0 8px; background: var(--s3); }
.pill.go { background: var(--gold-flat); box-shadow: none; }
.pill.gold { background: rgba(212, 175, 55, 0.14); }
.badge { border-radius: 5px; box-shadow: none; animation: none; }
.vip-chip { border-radius: 5px; }
.avatar { border-radius: 8px; box-shadow: none; text-shadow: none; background: hsl(var(--h) 55% 42%); }
.avatar.sm { border-radius: 6px; }
.avatar.xs { border-radius: 4px; }
.avatar.lg { border-radius: 12px; }
.avatar.xl { border-radius: 14px; }
.avatar.ringed { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ring, #c0c0c0); }
.toast { border-radius: 8px; background: var(--s2); backdrop-filter: none; }
.lg-ico { border-radius: 8px; }
.coin { box-shadow: inset 0 -1px 2px rgba(60, 40, 0, 0.5); }
.logo-mark { border-radius: 6px; box-shadow: none; background: linear-gradient(180deg, #8b5cf6, #5b21b6); }
.balance { border-radius: 8px; }
.balance-box { border-radius: 10px; background: var(--bg-2); }
.balance-box .btn.gold { border-radius: 7px; }
.case-btn.ready { animation: none; box-shadow: inset 0 -2px 0 #d4af37; }

/* ---------- text treatments: fewer halos ---------- */
.lacquer-text, .gold-shine, .chrome-text { filter: none; }
.gold-shine { animation: none; background-image: var(--goldtext); background-size: 100% 100%; }
.hero-title .lacquer-text, .lacquer-text { filter: none; }
.vs-mid .vs { text-shadow: none; }
.logo b { text-shadow: none; }

/* ---------- shell ---------- */
.top { background: rgba(13, 10, 19, 0.96); backdrop-filter: none; }
@media (min-width: 1100px) { body.signed-in .side { background: #110d18; } }
.side-nav a, .side-games a { border-radius: 6px; }
.side-nav a.on { background: var(--s2); box-shadow: inset 3px 0 0 #d4af37; }
.side-nav a.on .ico { filter: none; }
.vip-card { background: var(--s1); border-color: var(--line); }
.vip-bar { border-radius: 3px; height: 6px; }
.vip-bar i { box-shadow: none; }
.tabbar { border-radius: 14px; background: #120e1a; backdrop-filter: none; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5); }
.tabbar a { border-radius: 10px; }
.tabbar a.on .ico { filter: none; color: #d4af37; }
.tabbar a.on { background: var(--s2); }

/* ---------- lobby ---------- */
.promo-track { border-radius: 12px; }
.promo { border-radius: 12px; border-color: var(--line-2); }
.promo::after { display: none; }
.p-case { background: radial-gradient(60% 120% at 88% 50%, rgba(212, 175, 55, 0.22), transparent 60%), #1a1030; }
.p-race { background: radial-gradient(60% 120% at 88% 45%, rgba(192, 192, 192, 0.14), transparent 60%), #1c0f38; }
.p-duel { background: radial-gradient(60% 120% at 88% 50%, rgba(109, 40, 217, 0.4), transparent 60%), #140a26; }
.dots .dot { border-radius: 2px; height: 4px; }
.dots .dot.on { background: #d4af37; }
.coins-art .coin { box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4); }
.trophy-art { filter: none; }
.kpi { border-radius: var(--r); }
.kpi.vip { border-color: var(--line); }
.game { border-radius: 12px; background: var(--s1); transform: none !important; }
.game:hover { transform: translateY(-3px) !important; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8); border-color: var(--line-2); }
.game::after { display: none; }
.game .shade { background: linear-gradient(180deg, rgba(22, 17, 31, 0.3) 0%, transparent 16%, transparent 40%, rgba(22, 17, 31, 0.85) 62%, var(--s1) 80%); }
.game .tag, .game .best { border-radius: 5px; }
.mini-game { border-radius: 10px; }
.live { border-radius: var(--r); background: var(--s1); }
.live-row.head { background: var(--bg-2); }
.live-row:nth-child(even) { background: rgba(255, 255, 255, 0.012); }

/* ---------- daily case ---------- */
.reel { border-radius: 10px; background: var(--bg-2); }
.reel-tile { border-radius: 8px; }
.reel-tile.p-legend { box-shadow: none; }
.reel-pointer { box-shadow: none; width: 2px; }
.odd { border-radius: 5px; }

/* ---------- duel page ---------- */
.fighter.win .avatar { box-shadow: 0 0 0 3px var(--s1), 0 0 0 5px #d4af37; }
.vs-intro .side.l { background: linear-gradient(120deg, rgba(109, 40, 217, 0.4), transparent 75%); }

/* ---------- game screen: keep the arcade, lose the halo ---------- */
.stage-wrap { border-radius: 14px; background: var(--line-2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); }
.stage-wrap canvas { border-radius: 13px; }
.game-screen { background: radial-gradient(90vw 60vh at 50% 0%, rgba(75, 0, 130, 0.3), transparent 70%), var(--bg); }

/* ---------- podium / tiers ---------- */
.podium .p1 { background: var(--s1); border-color: rgba(212, 175, 55, 0.45); box-shadow: inset 0 3px 0 #d4af37; }
.podium .p1 .avatar { box-shadow: 0 0 0 3px var(--s1), 0 0 0 5px #d4af37; }
.podium .crown { filter: none; }
.tier.me { box-shadow: inset 0 3px 0 var(--tier); background: var(--s2); }
.tier-gem { filter: none; }

/* =========================================================
   Clipped letters: text painted with background-clip needs room for
   overhanging glyphs (the "S" of VS, the "f." of yourself.).
   ========================================================= */
.chrome-text, .lacquer-text, .gold-shine, .gold-text { display: inline-block; padding: 0 0.12em 0.08em 0.02em; margin: 0 -0.12em -0.08em -0.02em; }
.vs-art { letter-spacing: -0.03em; padding-right: 0.1em; }
.slogan { letter-spacing: -0.05em; }
.vs-intro .vs { letter-spacing: -0.03em; }
.promo h2 .gold-shine, .promo h2 .chrome-text { display: inline; }

/* =========================================================
   Centering fixes
   ========================================================= */
.promo { align-items: center; }
.promo-art { right: 7%; display: grid; place-items: center; }
.vs-art { line-height: 1; }
.landing-grid { align-items: start; }
.mini-games { align-self: center; }
.kpi { justify-content: space-between; min-height: 86px; }
.live-row > span { min-width: 0; }
.vs-mid { justify-content: center; text-align: center; }
.fighter { justify-content: flex-start; }
.section-head { align-items: center; }
.section-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.game .acts .btn { justify-content: center; }
.gs-title { align-items: center; }
.case-result { text-align: center; }

.vs-art span { padding-bottom: 0.16em; margin-bottom: -0.16em; }

/* =========================================================
   ONLINE MODE — queue screen, live opponent chip, online counter
   ========================================================= */
.online-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--s2); font-size: 13px; font-weight: 650; color: var(--text); }
.online-chip:hover { background: var(--s3); }
.online-chip .live-dot, .online-info .live-dot, .search-screen .live-dot, .live-chip .live-dot { background: #22e07a; animation: ping-green 2s infinite; }
@keyframes ping-green { 0% { box-shadow: 0 0 0 0 rgba(34, 224, 122, 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(34, 224, 122, 0); } }
.online-info { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: var(--s2); border: 1px solid var(--line-2); font-size: 13.5px; }
.online-info .row { gap: 8px; font-weight: 650; flex: 1; }
.online-info b { font-family: var(--display); font-size: 17px; }

.search-screen {
  position: fixed; inset: 0; z-index: 58; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center;
  background: radial-gradient(80vw 60vh at 50% 40%, rgba(75, 0, 130, 0.45), transparent 70%), rgba(13, 10, 19, 0.97);
  animation: fade 0.25s;
}
.search-screen h2 { font-size: clamp(26px, 5vw, 38px); font-weight: 850; }
.search-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.search-meta .pill { height: 28px; font-size: 13px; }
.search-meta .coin { width: 13px; height: 13px; }
.search-screen .btn { margin-top: 10px; min-width: 160px; }
.radar { position: relative; width: 190px; height: 190px; display: grid; place-items: center; margin-bottom: 8px; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(212, 175, 55, 0.7); animation: radar 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; opacity: 0; }
.radar i:nth-child(2) { animation-delay: 0.8s; }
.radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes radar { 0% { transform: scale(0.35); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }
.radar .avatar { position: relative; z-index: 1; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #d4af37; }

.live-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border-radius: 8px; background: var(--s2); border: 1px solid var(--line-2); font-size: 13px; max-width: 46vw; }
.live-chip .lc-name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }
.live-chip b { font-family: var(--display); font-size: 16px; min-width: 18px; text-align: right; }
.live-chip.tick b { animation: chip-tick 0.3s var(--ease); }
@keyframes chip-tick { 40% { transform: scale(1.3); color: #f1d77a; } }
.live-chip.over { opacity: 0.6; }
.live-chip.over .live-dot { background: var(--dim); animation: none; }
.rating-tag { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 1px 7px; border-radius: 4px; background: var(--s3); margin-top: -4px; }
@media (max-width: 720px) { .gs-title span { display: none; } }

/* ---------- online: suggestions on the search screen, open tables in the lobby ---------- */
.alt-box { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 0; }
.alt-box:not(:empty) { margin-top: 6px; animation: rise 0.45s var(--ease) both; }
.alt-none { font-size: 13.5px; }
.alt-list { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.alt { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 12px; border-radius: 8px; background: var(--s2); border: 1px solid var(--line-2); text-align: left; transition: background 0.15s, border-color 0.15s; }
.alt:hover { background: var(--s3); border-color: #d4af37; }
.alt b { flex: 1; font-weight: 700; }
.alt .cr { font-size: 14px; }
.alt .coin { width: 13px; height: 13px; }
.alt-go { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #f1d77a; }
.live-dot.green { background: #22e07a; animation: ping-green 2s infinite; }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.table { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 12px 14px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line-2); box-shadow: inset 3px 0 0 #22e07a; text-align: left; transition: background 0.15s, transform 0.15s; animation: rise 0.4s var(--ease) both; }
.table:hover { background: var(--s2); transform: translateY(-2px); }
.table .row { gap: 8px; }
.table b { font-weight: 700; }
.table .cr { font-family: var(--display); font-size: 18px; justify-self: end; color: #f1d77a; }
.table .coin { width: 15px; height: 15px; }
.table-sub { font-size: 12px; color: var(--muted); }
.table .btn { justify-self: end; pointer-events: none; }

/* =========================================================
   V2 — crypto cashier and email screens
   ========================================================= */
.mono, .addr { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-card { padding: 18px; }
.pay-card h3 { font-size: 18px; font-weight: 750; }
.pay-dep { display: flex; gap: 16px; align-items: flex-start; margin-top: 14px; }
.qr { width: 148px; height: 148px; flex: none; border-radius: 8px; image-rendering: pixelated; }
.addr { display: block; padding: 10px 12px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 12.5px; word-break: break-all; user-select: all; }
@media (max-width: 520px) { .pay-dep { flex-direction: column; align-items: center; } .pay-dep .col { width: 100%; } }
.sim-box { margin-top: 14px; padding: 12px; border-radius: 8px; border: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.pay-lines { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13.5px; color: var(--muted); }
.pay-lines b { color: var(--text); text-align: right; font-weight: 650; }
.notice-gold { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; color: #f1d77a; background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.35); }
.auth-card.center { text-align: center; }
.auth-card .lg-ico { margin: 0 auto; }

.tx-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(212, 175, 55, 0.5); text-underline-offset: 2px; }
.tx-link:hover { color: #f1d77a; }

/* =========================================================
   NIGHTCOIN — brand mark
   ========================================================= */
.logo { gap: 10px; }
.logo-mark {
  position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; box-shadow: none;
  background: radial-gradient(circle at 35% 30%, #f6e3a1 0%, #d4af37 48%, #9c7716 100%);
  -webkit-mask: radial-gradient(circle at 74% 26%, transparent 0 9.5px, #000 10px);
  mask: radial-gradient(circle at 74% 26%, transparent 0 9.5px, #000 10px);
}
.logo-mark::before, .logo-mark::after { content: none; }
.logo-word { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; color: #ecebf2; }
.logo-word b { font-weight: 800; color: #d4af37; }
.logo { position: relative; }
.logo::after {
  content: ""; position: absolute; left: 25px; top: 3px; width: 4px; height: 4px; border-radius: 50%;
  background: #e6e6ee; box-shadow: 0 0 6px rgba(230, 230, 238, 0.9); animation: nc-twinkle 3.2s ease-in-out infinite;
}
@keyframes nc-twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .logo::after { animation: none; opacity: 0.8; } }

/* =========================================================
   NIGHTCOIN — legal pages, footer, 18+ box, breaks
   ========================================================= */
.legal { max-width: 760px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 14px; }
.legal .page-title { margin: 2px 0 0; }
.legal-intro { color: var(--muted); font-size: 16px; margin-bottom: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; width: fit-content; }
.back-link svg { transform: scaleX(-1); }
.back-link:hover { color: var(--text); }
.legal-sec { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.legal-num { font-family: var(--display); font-weight: 800; color: #d4af37; font-size: 14px; padding-top: 3px; letter-spacing: 0.04em; }
.legal-sec h3 { font-size: 17px; font-weight: 750; margin-bottom: 6px; }
.legal-sec p { color: #c9c6d6; line-height: 1.65; font-size: 15px; }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.break-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; border-color: rgba(212, 175, 55, 0.3); }
.break-card h3 { font-size: 17px; font-weight: 750; }
.break-card .btn.armed { border-color: #d4af37; color: #f1d77a; background: rgba(212, 175, 55, 0.1); }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); text-align: left; cursor: pointer; line-height: 1.45; }
.check-row input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.check-row input:checked { background: #d4af37; border-color: #d4af37; }
.check-row input:checked::after { content: ""; width: 5px; height: 9px; border: solid #160d24; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.check-row input:focus-visible { outline: 2px solid #d4af37; outline-offset: 2px; }
.check-row a { color: #f1d77a; text-decoration: underline; text-underline-offset: 2px; }
.site-foot { margin: 56px 0 24px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; align-items: center; color: var(--muted); font-size: 13px; }
.site-foot .foot-brand { display: flex; align-items: center; gap: 9px; color: var(--text); }
.site-foot .foot-brand .logo-mark { width: 20px; height: 20px; -webkit-mask: radial-gradient(circle at 74% 26%, transparent 0 6.3px, #000 6.8px); mask: radial-gradient(circle at 74% 26%, transparent 0 6.3px, #000 6.8px); }
.site-foot nav { display: flex; gap: 18px; justify-content: flex-end; flex-wrap: wrap; }
.site-foot nav a:hover { color: var(--text); }
.site-foot p { grid-column: 1 / -1; max-width: 640px; line-height: 1.5; }
.age-badge { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }
@media (max-width: 640px) { .site-foot { grid-template-columns: 1fr; margin-bottom: 90px; } .site-foot nav { justify-content: flex-start; } }
.site-foot { box-sizing: border-box; width: calc(100% - 40px); max-width: 1060px; margin: 0 auto 28px; }
@media (max-width: 640px) { .site-foot { width: calc(100% - 32px); margin-bottom: 96px; } }

/* =========================================================
   NIGHTCOIN — night sky: a few faint fixed stars behind everything
   ========================================================= */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 1; mix-blend-mode: normal;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 27% 72%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 33%, rgba(241,215,122,0.5), transparent 60%),
    radial-gradient(1px 1px at 58% 12%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 66% 58%, rgba(255,255,255,0.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 79% 27%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1px 1px at 88% 81%, rgba(241,215,122,0.4), transparent 60%),
    radial-gradient(1px 1px at 93% 46%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px 1px at 6% 90%, rgba(255,255,255,0.3), transparent 60%),
    radial-gradient(1px 1px at 49% 88%, rgba(255,255,255,0.25), transparent 60%);
}

/* =========================================================
   NIGHTCOIN — no coin icon: amounts carry their own "$"
   ========================================================= */
i.coin { display: none !important; }
.cr { gap: 0; }

/* the promo art is now the Nightcoin moon, with a soft halo and a few stars */
.coins-art {
  background: radial-gradient(circle at 46% 54%, rgba(212, 175, 55, 0.16), transparent 62%);
}
.coins-art::before {
  content: ""; position: absolute; width: 132px; height: 132px; left: calc(50% - 66px); top: calc(50% - 66px); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6e3a1 0%, #d4af37 48%, #9c7716 100%);
  -webkit-mask: radial-gradient(circle at 74% 26%, transparent 0 41px, #000 42px);
  mask: radial-gradient(circle at 74% 26%, transparent 0 41px, #000 42px);
  animation: nc-float 6s ease-in-out infinite;
}
.coins-art::after {
  content: ""; position: absolute; inset: 0; animation: nc-twinkle 4s ease-in-out infinite;
  background:
    radial-gradient(2px 2px at 78% 22%, #fff, transparent 70%),
    radial-gradient(1.5px 1.5px at 18% 30%, #e6e6ee, transparent 70%),
    radial-gradient(2.5px 2.5px at 86% 70%, #f1d77a, transparent 70%),
    radial-gradient(1.5px 1.5px at 30% 84%, #e6e6ee, transparent 70%),
    radial-gradient(1.5px 1.5px at 62% 10%, #e6e6ee, transparent 70%);
}
@keyframes nc-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .coins-art::before, .coins-art::after { animation: none; } }

/* side menu: the way to take a break is always one click away */
.side-safe { display: flex; align-items: center; gap: 10px; margin: 14px 8px 0; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); border: 1px solid transparent; }
.side-safe:hover { color: var(--text); border-color: var(--line); }
.side-safe.on { color: #f1d77a; border-color: rgba(212, 175, 55, 0.35); }

.stake-custom { margin-top: 10px; }

/* =========================================================
   NIGHTCOIN — rewards
   ========================================================= */
.rewards { display: flex; flex-direction: column; }
.vip-hero { padding: 22px; margin-top: 4px; border-color: color-mix(in srgb, var(--tier) 35%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--tier) 10%, transparent), transparent 60%), var(--card, #15101f); }
.vip-hero-top { display: flex; align-items: center; gap: 16px; }
.vip-hero h2 { font-size: 30px; font-weight: 800; color: var(--tier); }
.vip-gem { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; color: var(--tier); background: color-mix(in srgb, var(--tier) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tier) 40%, transparent); }
.vip-wagered { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.vip-wagered b { font-size: 18px; }
.vip-bar.big { height: 10px; margin: 18px 0 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.vip-bar.big i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--tier) 70%, #fff), var(--tier)); transition: width 0.8s ease; }
.vip-hero-sub { color: var(--muted); font-size: 14px; }
.vip-hero-sub b { color: var(--text); }
.claim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .claim-grid { grid-template-columns: 1fr; } .vip-hero-top { flex-wrap: wrap; } .vip-wagered { text-align: left; } }
.claim-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.claim-card h3 { font-size: 17px; font-weight: 750; }
.claim-card.ready { border-color: rgba(212, 175, 55, 0.45); }
.claim-amount { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.claim-card .fine { text-align: left; margin: 0; min-height: 34px; }
.rank-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .rank-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rank-card { padding: 16px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; opacity: 0.55; }
.rank-card.reached { opacity: 1; }
.rank-card.me { border-color: var(--tier); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tier) 40%, transparent); }
.rank-card .tier-gem { color: var(--tier); }
.rank-card .perks { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 4px; }
.perk { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.rank-card.reached .perk { color: #e9e6f2; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge-card { padding: 14px; border-radius: 12px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; opacity: 0.45; filter: grayscale(1); }
.badge-card.got { opacity: 1; filter: none; border-color: rgba(212, 175, 55, 0.35); }
.badge-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 6px; color: #d4af37; background: rgba(212, 175, 55, 0.1); }
.badge-card b { font-size: 14px; }
.rewards-btn { position: relative; }
.rewards-btn.ready::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #d4af37; box-shadow: 0 0 0 2px var(--bg, #0d0a13); }

.boost-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 12px 16px; border-radius: 12px; color: #f1d77a; background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.35); font-size: 14px; }
.boost-banner span { color: var(--muted); }

/* =========================================================
   NIGHTCOIN — affiliate
   ========================================================= */
.aff-hero { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; background: linear-gradient(135deg, rgba(212, 175, 55, 0.09), transparent 55%), var(--card, #15101f); }
@media (max-width: 760px) { .aff-hero { grid-template-columns: 1fr; } }
.aff-hero h2 { font-size: 26px; font-weight: 800; margin: 8px 0; }
.muted-strong { color: #b9b4c9; font-weight: 700; }
.aff-share { gap: 8px; min-width: 0; }
.copy-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.copy-row .addr { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
.btn.danger-soft { background: rgba(220, 60, 70, 0.14); color: #f19aa1; border: 1px solid rgba(220, 60, 70, 0.4); cursor: not-allowed; }
.aff-teaser { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 14px; }
.aff-teaser .grow { display: flex; flex-direction: column; gap: 2px; }
.aff-teaser:hover { border-color: rgba(212, 175, 55, 0.4); }

.btn.danger-soft, .btn.danger-soft:disabled { opacity: 1; background: rgba(220, 60, 70, 0.16); color: #f4a3a9; border: 1px solid rgba(220, 60, 70, 0.5); box-shadow: none; filter: none; }

/* =========================================================
   NIGHTCOIN — tournaments
   ========================================================= */
.tourney-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .tourney-grid { grid-template-columns: 1fr; } }
.tourney-create { padding: 18px; gap: 10px; }
.tourney-create h3 { font-size: 18px; font-weight: 750; margin-bottom: 4px; }
.tourney-create .stakes { grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); }
.win-box { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; border: 1px solid rgba(212, 175, 55, 0.3); background: rgba(212, 175, 55, 0.06); margin-top: 4px; }
.win-box b { font-family: var(--display); font-size: 28px; font-weight: 800; }
.tourney-row .amt { font-weight: 800; }
.tourney-head { padding: 20px; margin-top: 10px; background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 55%), var(--card, #15101f); }
.tourney-head .vip-gem { color: #d4af37; background: rgba(212, 175, 55, 0.12); border-color: rgba(212, 175, 55, 0.4); }
.tourney-head h2 { font-size: 26px; font-weight: 800; margin-top: 4px; }
.tourney-share { padding: 16px; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); min-height: 46px; }
.slot.on { border-style: solid; border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.split-card { padding: 18px; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; border-color: rgba(212, 175, 55, 0.4); }
.split-card h3 { font-size: 17px; font-weight: 750; }
.bracket { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.b-round { flex: 0 0 190px; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; }
.b-matches { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; flex: 1; }
.b-match { display: flex; flex-direction: column; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); overflow: hidden; }
.b-match.live { border-color: rgba(212, 175, 55, 0.55); box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2); }
.b-match.empty span { padding: 8px 12px; color: var(--muted); font-size: 13px; opacity: 0.6; }
.b-line { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 13.5px; font-weight: 650; }
.b-line + .b-line { border-top: 1px solid var(--line); }
.b-line.won { color: #f1d77a; }
.b-line.lost { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.25); }
.b-line.me { background: rgba(143, 61, 255, 0.12); }
.tourney-tag { display: inline-flex; align-items: center; gap: 6px; color: #f1d77a; font-weight: 750; font-size: 14px; }

.vs-mid .pot.tourney-tag { font-size: 16px; letter-spacing: 0; line-height: 1.2; text-align: center; }

.tourney-timer { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.tourney-timer b { color: var(--text); font-size: 18px; }
.tourney-timer.hot { border-color: rgba(212, 175, 55, 0.5); color: #f1d77a; background: rgba(212, 175, 55, 0.06); }
.slot.ready { border-color: rgba(212, 175, 55, 0.5); }
.slot.ready svg { color: #d4af37; }

/* =========================================================
   NIGHTCOIN — VS intro: full screen, diagonal split, stacked on phones
   ========================================================= */
.vsx-lock, .vsx-lock body { overflow: hidden; }
.vsx {
  position: fixed; inset: 0; z-index: 70; width: 100vw; height: 100vh; height: 100dvh;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 100%;
  background: #07050b; overflow: hidden; isolation: isolate;
}
.vsx-side { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
.vsx-side.a {
  background: radial-gradient(120% 90% at 20% 50%, #4b1f86 0%, #24103f 45%, #0c0716 100%);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); margin-right: -7vw; padding-right: 7vw;
  animation: vsx-in-a 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.vsx-side.b {
  background: radial-gradient(120% 90% at 80% 50%, #6b5414 0%, #2e2409 45%, #0c0716 100%);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); margin-left: -7vw; padding-left: 7vw;
  animation: vsx-in-b 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.vsx-card { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; animation: vsx-pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) 0.3s both; }
.vsx-card .avatar { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.45); }
.vsx-name { font-family: var(--display); font-weight: 850; letter-spacing: -0.03em; font-size: clamp(20px, 3.2vw, 38px); max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f3f1f8; }
.vsx-mid { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; pointer-events: none; }
.vsx-vs {
  font-family: var(--display); font-weight: 900; line-height: 1; padding: 0.04em 0.14em;
  font-size: clamp(76px, 12vw, 176px); letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #d9d9de 45%, #8d8d96 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.65));
  animation: vsx-slam 0.45s cubic-bezier(0.2, 1.6, 0.3, 1) 0.45s both;
}
.vsx-stake {
  display: flex; align-items: center; gap: 8px; padding: 7px 18px; border-radius: 999px;
  font-family: var(--display); font-weight: 850; font-size: clamp(20px, 2.8vw, 32px); color: #f1d77a;
  background: rgba(7, 5, 11, 0.6); border: 1px solid rgba(212, 175, 55, 0.5);
  animation: vsx-rise 0.45s ease 0.85s both;
}
.vsx-stake span { font-size: 0.55em; color: #c9c4d8; text-transform: uppercase; letter-spacing: 0.14em; }
.vsx-game { font-size: 12px; font-weight: 750; letter-spacing: 0.24em; text-transform: uppercase; color: #d8d4e6; animation: vsx-rise 0.45s ease 1s both; }
.vsx-flash { position: absolute; inset: 0; z-index: 3; background: #fff; opacity: 0; pointer-events: none; animation: vsx-flash 0.45s ease-out 0.5s; }
.vsx.out { animation: vsx-bg-out 0.4s ease forwards; }
.vsx.out .vsx-side.a { animation: vsx-out-a 0.4s cubic-bezier(0.6, 0, 0.8, 0.4) forwards; }
.vsx.out .vsx-side.b { animation: vsx-out-b 0.4s cubic-bezier(0.6, 0, 0.8, 0.4) forwards; }
.vsx.out .vsx-mid { animation: vsx-fade 0.25s ease forwards; }
@keyframes vsx-in-a { from { transform: translateX(-105%); } to { transform: none; } }
@keyframes vsx-in-b { from { transform: translateX(105%); } to { transform: none; } }
@keyframes vsx-out-a { to { transform: translateX(-105%); } }
@keyframes vsx-out-b { to { transform: translateX(105%); } }
@keyframes vsx-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes vsx-slam { from { opacity: 0; transform: scale(2.6); } to { opacity: 1; transform: none; } }
@keyframes vsx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes vsx-flash { from { opacity: 0.5; } to { opacity: 0; } }
@keyframes vsx-fade { to { opacity: 0; } }
@keyframes vsx-bg-out { to { background: transparent; } }
/* phones: one player on top, the other below, VS on the seam */
@media (max-width: 700px), (orientation: portrait) and (max-width: 900px) {
  .vsx { grid-template-columns: 100%; grid-template-rows: 1fr 1fr; }
  .vsx-side.a { clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); margin: 0 0 -8vh; padding: 0 0 8vh; animation-name: vsx-in-top; }
  .vsx-side.b { clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%); margin: -8vh 0 0; padding: 8vh 0 0; animation-name: vsx-in-bottom; }
  .vsx.out .vsx-side.a { animation-name: vsx-out-top; }
  .vsx.out .vsx-side.b { animation-name: vsx-out-bottom; }
  .vsx-name { max-width: 80vw; font-size: clamp(22px, 7vw, 32px); }
  .vsx-vs { font-size: clamp(72px, 24vw, 120px); }
  .vsx-mid { gap: 8px; }
}
@keyframes vsx-in-top { from { transform: translateY(-105%); } to { transform: none; } }
@keyframes vsx-in-bottom { from { transform: translateY(105%); } to { transform: none; } }
@keyframes vsx-out-top { to { transform: translateY(-105%); } }
@keyframes vsx-out-bottom { to { transform: translateY(105%); } }

.vsx-card .avatar { transform: scale(1.5); margin: 24px 0 20px; }
@media (max-width: 700px), (orientation: portrait) and (max-width: 900px) { .vsx-card .avatar { transform: scale(1.25); margin: 12px 0 10px; } }

/* NIGHTCOIN — "deposit with Apple Pay" guide */
.buy-guide { padding: 20px; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(135deg, rgba(212, 175, 55, 0.07), transparent 50%), var(--card, #15101f); }
.buy-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.buy-head h3 { font-size: 20px; font-weight: 800; margin: 6px 0 4px; }
.buy-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.buy-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .buy-steps { grid-template-columns: 1fr; } }
.buy-step { display: flex; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); min-width: 0; }
.buy-step .grow { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.buy-step b { font-size: 15px; }
.buy-step p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.buy-step .btn { width: fit-content; }
.buy-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #160d24; background: #d4af37; }

/* NIGHTCOIN — help chat */
#help-chat { position: fixed; right: 20px; bottom: 20px; z-index: 65; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
#help-chat > * { pointer-events: auto; }
body.in-game #help-chat { display: none; }
.hc-fab { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); display: grid; place-items: center; color: #fff; cursor: pointer; background: var(--lacquer); box-shadow: 0 14px 34px -10px rgba(143, 61, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: transform 0.2s var(--spring); }
.hc-fab:hover { transform: translateY(-2px) scale(1.04); }
.hc-fab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#help-chat.open .hc-fab { transform: scale(0.92); }
.hc-panel { width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: rgba(13, 10, 20, 0.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); animation: hc-in 0.22s var(--ease); }
.hc-panel[hidden] { display: none; }
@keyframes hc-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.hc-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(143, 61, 255, 0.16), transparent 70%); }
.hc-head .grow { display: flex; flex-direction: column; min-width: 0; }
.hc-head b { font-size: 15px; }
.hc-head span { font-size: 12px; color: var(--muted); }
.hc-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lacquer); color: #fff; flex: none; }
.hc-icon { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.hc-icon:hover { color: var(--text); background: var(--surface-2); }
.hc-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.hc-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.hc-msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.hc-msg.me { align-self: flex-end; background: linear-gradient(180deg, #8f3dff, #6a17d6); color: #fff; border-bottom-right-radius: 6px; }
.hc-link { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.hc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-chip { font: inherit; font-size: 12.5px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(212, 175, 55, 0.4); background: rgba(212, 175, 55, 0.07); color: var(--text); cursor: pointer; text-align: left; }
.hc-chip:hover { background: rgba(212, 175, 55, 0.16); }
.hc-msg.typing { display: flex; gap: 4px; padding: 13px 14px; }
.hc-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: hc-dot 1s infinite ease-in-out; }
.hc-msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.hc-msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hc-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.hc-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.hc-input { flex: 1; resize: none; font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; max-height: 110px; outline: none; }
.hc-input:focus { border-color: var(--accent); }
.hc-send { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 0; background: var(--lacquer); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hc-send:disabled { opacity: 0.5; cursor: default; }
.hc-foot { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--dim); text-align: center; }
@media (max-width: 720px) {
  #help-chat { right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .hc-fab { width: 50px; height: 50px; }
  .hc-panel { height: min(520px, calc(100vh - 190px)); }
}
@media (prefers-reduced-motion: reduce) { .hc-panel, .hc-msg.typing i { animation: none; } }

/* NIGHTCOIN — cashier emergency stop */
.freeze-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 13px; }
.freeze-banner { margin-bottom: 14px; border-color: #ff5a6e; }
.freeze-banner h3 { display: flex; align-items: center; gap: 6px; }
.freeze-banner .btn { margin-top: 10px; }
.freeze-row .btn.danger-soft { cursor: pointer; }

/* NIGHTCOIN — history and account pages */
.h-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-top: 4px; scrollbar-width: none; }
.h-tabs a { white-space: nowrap; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); font-weight: 650; font-size: 14px; }
.h-tabs a.on { color: var(--text); border-color: var(--accent); background: rgba(143, 61, 255, 0.12); }
.h-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.h-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.h-chip { font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.h-chip.on { color: #160d24; background: var(--gold); border-color: var(--gold); font-weight: 700; }
.h-select, .h-input { font: inherit; font-size: 14px; color: var(--text); background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; }
.h-select option { background: #15101f; }
.h-row { gap: 12px; color: inherit; }
.h-row .sub { overflow-wrap: anywhere; }
.h-badge { flex: none; min-width: 64px; text-align: center; font-size: 12px; font-weight: 750; padding: 5px 8px; border-radius: 8px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.h-badge.win { color: #160d24; background: var(--gold); border-color: var(--gold); }
.h-badge.loss { color: #f4a3a9; border-color: rgba(220, 60, 70, 0.45); background: rgba(220, 60, 70, 0.1); }
.h-pos { color: #7be3a1; white-space: nowrap; }
.h-neg { color: #f4a3a9; white-space: nowrap; }
.h-more { display: block; margin: 14px auto 0; }
.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .acct-grid { grid-template-columns: 1fr; } }
.acct-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.acct-card h3 { font-size: 17px; }
.acct-form { display: flex; flex-direction: column; gap: 10px; }
.acct-form .btn { width: fit-content; }
.acct-links { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-btn { display: none; }
@media (max-width: 720px) { .acct-btn { display: grid; } }
a.who { color: inherit; }

/* NIGHTCOIN — rematch */
.rematch-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; text-align: center; }
.rematch-card { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); }
.rematch-card .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rematch-card.incoming { border-color: rgba(212, 175, 55, 0.55); background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), transparent 70%); animation: rematch-pulse 2.4s ease-in-out infinite; }
@keyframes rematch-pulse { 50% { box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12); } }
@media (prefers-reduced-motion: reduce) { .rematch-card.incoming { animation: none; } }

/* NIGHTCOIN — quick reactions */
.react-wrap { display: flex; justify-content: center; margin-top: 14px; }
.react-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.react-btn { font: inherit; min-width: 40px; height: 38px; padding: 0 10px; border-radius: 12px; border: 1px solid transparent; background: var(--surface-2); color: var(--text); font-size: 18px; cursor: pointer; transition: transform 0.15s var(--spring), background 0.15s; }
.react-btn.word { font-size: 13px; font-weight: 750; letter-spacing: 0.02em; }
.react-btn:hover { background: rgba(143, 61, 255, 0.18); border-color: rgba(143, 61, 255, 0.4); }
.react-btn:active { transform: scale(0.9); }
.fighter { position: relative; }
.react-pop { position: absolute; left: 50%; top: 0; transform: translate(-50%, 0); padding: 6px 12px; border-radius: 999px; background: #fff; color: #160d24; font-weight: 800; font-size: 16px; white-space: nowrap; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); animation: react-up 2.6s var(--ease) forwards; z-index: 3; }
@keyframes react-up { 0% { opacity: 0; transform: translate(-50%, 10px) scale(0.6); } 12% { opacity: 1; transform: translate(-50%, -18px) scale(1.08); } 20% { transform: translate(-50%, -22px) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -64px); } }
@media (prefers-reduced-motion: reduce) { .react-pop { animation: none; transform: translate(-50%, -24px); } }

/* NIGHTCOIN — players and profiles */
.p-search-wrap { display: flex; align-items: center; gap: 10px; padding: 0 14px; margin-bottom: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.4); color: var(--muted); }
.p-search { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.p-head { display: flex; align-items: center; gap: 18px; padding: 20px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(143, 61, 255, 0.14), transparent 60%), var(--card, #15101f); }
.p-head .grow { min-width: 180px; }
.p-name { font-size: 28px; font-weight: 850; margin: 0 0 6px; overflow-wrap: anywhere; }
.p-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.p-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.p-privacy { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; }
.p-privacy input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.p-privacy span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.p-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.p-badge { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid rgba(212, 175, 55, 0.35); background: rgba(212, 175, 55, 0.06); color: var(--gold); }
.p-badge div { display: flex; flex-direction: column; gap: 2px; color: var(--text); font-size: 13px; }
.p-form { display: flex; gap: 6px; flex-wrap: wrap; }
.p-dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 850; font-size: 13px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.p-dot.win { background: var(--gold); color: #160d24; border-color: var(--gold); }
.p-dot.loss { color: #f4a3a9; border-color: rgba(220, 60, 70, 0.45); background: rgba(220, 60, 70, 0.1); }
a.name { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 3px; }

/* NIGHTCOIN — tips */
.tip-sheet { max-width: 440px; }
.tip-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.tip-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 650; color: var(--muted); }
.tip-input { font: inherit; font-size: 16px; color: var(--text); background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.tip-input:focus { outline: none; border-color: var(--accent); }
.tip-dollar { display: flex; align-items: center; gap: 8px; font-size: 18px; color: var(--muted); }
.tip-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.tip-err { margin: 0; min-height: 0; color: #f4a3a9; font-size: 13px; }
.tip-err:empty { display: none; }
.tip-notice { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.tip-notice .ico { flex: none; margin-top: 2px; color: var(--gold); }
.tip-notice b { color: var(--text); }
.tip-done { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 10px 4px; }
.tip-mail { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(212, 175, 55, 0.14); color: var(--gold); }
.tip-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.tip-card h3 { font-size: 17px; }
.tip-card .row { gap: 12px; flex-wrap: wrap; }
.tip-history { text-align: left; color: var(--muted); text-decoration: underline; }
.tip-confirm { max-width: 420px; margin: 40px auto; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }

/* NIGHTCOIN — morning report preview */
.report-box { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.report-box .row { gap: 10px; flex-wrap: wrap; }
.report-text { margin: 0; padding: 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.4); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-x: auto; }

/* NIGHTCOIN — screens before a duel */
.gk-stack { --gk: #a866ff; } .gk-hop { --gk: #e2bd4a; } .gk-cannon { --gk: #c0c0c0; } .gk-race { --gk: #8f3dff; }
.gk-snake { --gk: #c026d3; } .gk-glide { --gk: #f1d77a; } .gk-merge { --gk: #d8b4fe; } .gk-blocks { --gk: #6d28d9; }
.duel-hero.before { padding: 26px 20px 20px; background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--gk, #8f3dff) 28%, transparent), transparent 72%), linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), #0b0b0e; }
.duel-hero .game-name .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.duel-hero .game-name .gdot { width: 10px; height: 10px; }
.game-line { margin-top: 6px; font-size: 14px; color: var(--muted); }
.duel-hero.before .vs-row { margin-top: 18px; }
.duel-hero.before .fighter .avatar.xl { width: 92px; height: 92px; font-size: 32px; }
.fighter .avatar.ringed { box-shadow: 0 0 0 3px #0b0b0e, 0 0 0 5px var(--ring, var(--line-2)), 0 14px 34px rgba(0, 0, 0, 0.5); }
.fighter-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; font-size: 12px; }
.rank-chip { padding: 3px 9px; border-radius: 999px; font-weight: 750; color: var(--ring); border: 1px solid color-mix(in srgb, var(--ring) 55%, transparent); background: color-mix(in srgb, var(--ring) 10%, transparent); }
.fighter-tags .wr { font-size: 12px; }
.pill.turn { color: #160d24; background: var(--gold); border-color: var(--gold); font-weight: 750; }
.pill.turn .waiting i { background: #160d24; }
.win-label { font-size: 11px; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.duel-hero.before .vs-mid .vs { font-size: 22px; margin-bottom: 4px; }
.duel-hero.before .vs-mid .pot { color: var(--gold); text-shadow: 0 0 30px rgba(212, 175, 55, 0.35); }
.h2h { display: flex; justify-content: center; gap: 10px; align-items: baseline; margin-top: 16px; font-size: 13px; }
.rules { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.rules span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.rules .ico { color: var(--gold); }
.rules .deadline { color: var(--text); border-color: rgba(212, 175, 55, 0.4); }
.deal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 6px; }
.deal div { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.deal span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.deal b { font-size: 16px; }
@media (max-width: 560px) { .deal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.run-panel { display: flex; flex-direction: column; align-items: center; gap: 8px; background: linear-gradient(180deg, rgba(212, 175, 55, 0.06), transparent 60%), var(--surface); border-color: rgba(212, 175, 55, 0.25); }
.run-panel h3 { font-size: 22px; margin: 0; }
.run-panel p { margin: 0; }
.run-tips { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.run-tips li { display: flex; gap: 6px; align-items: center; justify-content: center; }
.run-tips .ico { color: var(--gold); }
.vsx-rank { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ring); border: 1px solid color-mix(in srgb, var(--ring) 60%, transparent); background: rgba(0, 0, 0, 0.35); animation: vsx-rise 0.45s ease 0.8s both; }
.vsx-stake span { display: block; text-align: center; margin-bottom: 2px; }
@media (max-width: 720px) {
  .duel-hero.before .fighter .avatar.xl { width: 72px; height: 72px; font-size: 26px; }
  .duel-hero.before .vs-mid .vs { font-size: 18px; }
}

/* NIGHTCOIN — language switch */
.lang-switch { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); width: fit-content; }
.lang-btn { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.lang-btn.on { background: var(--surface-2); color: var(--text); font-weight: 700; }

/* NIGHTCOIN — flames */
.flame-chip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 9px; border-radius: 999px; font-size: 13px; background: rgba(255, 140, 40, 0.12); border: 1px solid rgba(255, 140, 40, 0.4); color: #ffb36b; white-space: nowrap; }
.flame-chip b { color: #ffd2a1; }
.flame-chip.big { font-size: 16px; padding: 5px 12px; }
.flame-chip.danger { animation: flame-pulse 1.6s ease-in-out infinite; border-color: rgba(255, 90, 60, 0.7); }
@keyframes flame-pulse { 50% { box-shadow: 0 0 0 4px rgba(255, 110, 50, 0.15); } }
@media (prefers-reduced-motion: reduce) { .flame-chip.danger { animation: none; } }
.flame-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 13.5px; text-align: center; }
.flame-line.danger { color: #ffb36b; }
.flames-intro { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.flames-intro p { margin: 0; }
.flame-item.danger { border-color: rgba(255, 110, 50, 0.45); }

/* =========================================================
   NIGHTCOIN — clean-up: calmer, flatter, fewer decorations
   ========================================================= */
/* banners: a tinted card, the text, and one faint line icon */
.promo { min-height: 200px; padding: 30px 34px; background: linear-gradient(120deg, rgba(143, 61, 255, 0.16), rgba(255, 255, 255, 0.015) 60%), #0e0b15; }
.promo.p-race { background: linear-gradient(120deg, rgba(212, 175, 55, 0.13), rgba(255, 255, 255, 0.015) 60%), #0e0b15; }
.promo.p-duel { background: linear-gradient(120deg, rgba(192, 192, 192, 0.10), rgba(255, 255, 255, 0.015) 60%), #0e0b15; }
.promo-art { display: none; }
.promo-mark { position: absolute; right: 7%; top: 50%; transform: translateY(-50%); color: var(--gold); opacity: 0.16; pointer-events: none; }
.promo-mark .ico { stroke-width: 1; }
.promo h2 { font-size: clamp(26px, 3.6vw, 40px); }
@media (max-width: 720px) {
  .promo { min-height: 180px; padding: 22px 20px 36px; }
  .promo-mark { right: -6px; opacity: 0.1; transform: translateY(-50%) scale(0.8); }
}
/* no endless shine on gold text and buttons: it stays, it just stops moving */
.gold-shine, .chrome-text, .lacquer-text { animation: none !important; }
.btn.gold::after { animation: none !important; opacity: 0; transition: opacity 0.3s; }
.btn.gold:hover::after { opacity: 1; }
/* no floating or flickering decorations */
.podium .crown, .streak .flame, .trophy-art { animation: none !important; }
.vip-bar i::after { animation: none !important; display: none; }
/* the starry background, fainter */
body::after { opacity: 0.6; }

/* NIGHTCOIN — admin: players */
.mod-row { gap: 12px; flex-wrap: wrap; }
.mod-row .title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mod-row.suspended { opacity: 0.75; border-color: rgba(220, 60, 70, 0.4); }
.mod-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pill.danger { color: #f4a3a9; border-color: rgba(220, 60, 70, 0.5); }
.mod-actions .btn.danger-soft { cursor: pointer; }

/* NIGHTCOIN — admin area */
.admin-tabs a { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.admin-tabs .badge, .admin-btn .badge { position: static; margin-left: 2px; }
.admin-btn { position: relative; }
.admin-btn .badge { position: absolute; top: -4px; right: -4px; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.admin-card { display: flex; gap: 14px; align-items: center; padding: 16px; color: inherit; }
.admin-card .admin-n { font-size: 30px; font-weight: 850; min-width: 36px; text-align: center; color: var(--muted); }
.admin-card.todo { border-color: rgba(212, 175, 55, 0.5); }
.admin-card.todo .admin-n { color: var(--gold); }
.admin-card.warn { border-color: rgba(220, 60, 70, 0.6); }
.admin-card.warn .admin-n { color: #f4a3a9; }
a.freeze-banner { display: block; color: inherit; }

/* NIGHTCOIN — phone header: everything fits, nothing scrolls sideways */
.top > * { flex-shrink: 0; }
.top > .grow { flex-shrink: 1; min-width: 0; }
@media (max-width: 520px) {
  .top { gap: 6px; padding: 0 12px; }
  .top .logo { margin-right: 0; }
  .top .logo-word { display: none; }
  .top .icon-btn { width: 36px; height: 36px; }
  .top .logout-btn { display: none; }
  .top .balance { padding: 0 11px; }
}
@media (max-width: 360px) {
  .top { gap: 4px; padding: 0 8px; }
  .top .icon-btn { width: 33px; height: 33px; }
}

/* NIGHTCOIN — long content on phones */
.section-head { flex-wrap: wrap; }
.item .grow { min-width: 0; }
.mono { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .item > .pill { white-space: normal; text-align: center; max-width: 46%; }
}

/* NIGHTCOIN — steady layout while loading: the footer stays at the bottom instead of jumping up */
main { min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); }

/* NIGHTCOIN — support */
.sup-safety { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(212, 175, 55, 0.28); background: rgba(212, 175, 55, 0.06); color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.sup-safety .ico { color: #d4af37; flex: none; margin-top: 1px; }
.sup-item { width: 100%; text-align: left; font: inherit; color: inherit; }
.sup-item.unread .title { color: var(--text); font-weight: 750; }
.sup-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d4af37; box-shadow: 0 0 10px rgba(212, 175, 55, 0.7); margin-right: 8px; vertical-align: 1px; }
.sup-status { white-space: nowrap; }
.pill.dim { opacity: 0.7; }
.pill.danger { color: #f4a3a9; border-color: rgba(220, 60, 70, 0.5); background: rgba(220, 60, 70, 0.1); }
.pill.link { text-decoration: none; }
.sup-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: 0.8; }
.sup-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sup-form { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.sup-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.sup-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sup-cat { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--s2, rgba(255,255,255,0.03)); color: var(--muted); font: inherit; font-size: 14px; font-weight: 650; text-align: left; cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.sup-cat:hover { color: var(--text); }
.sup-cat.on { color: var(--text); border-color: var(--accent); background: rgba(143, 61, 255, 0.12); }
.sup-cat .ico { flex: none; }
.sup-ref { width: 100%; }
.sup-text { width: 100%; min-height: 90px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); color: var(--text); font: inherit; font-size: 15px; line-height: 1.5; resize: vertical; outline: none; }
.sup-text:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(143, 61, 255, 0.14); }
.sup-hint-box { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(143, 61, 255, 0.35); background: rgba(143, 61, 255, 0.07); font-size: 14px; line-height: 1.5; white-space: pre-line; }
.sup-hint-box p { margin: 6px 0 0; }
.sup-info { gap: 6px; margin: 10px 0 4px; }
.sup-thread { display: flex; flex-direction: column; gap: 10px; }
.sup-msg { max-width: min(640px, 92%); padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface, rgba(255,255,255,0.03)); }
.sup-msg.mine { align-self: flex-end; background: rgba(143, 61, 255, 0.12); border-color: rgba(143, 61, 255, 0.3); }
.sup-msg.theirs { align-self: flex-start; }
.sup-msg.staff.theirs { border-color: rgba(212, 175, 55, 0.4); }
.sup-msg.note { align-self: stretch; max-width: none; border-style: dashed; border-color: rgba(212, 175, 55, 0.45); background: rgba(212, 175, 55, 0.05); }
.sup-msg.system { align-self: center; max-width: 560px; text-align: center; background: none; border-style: dashed; color: var(--muted); font-size: 13.5px; }
.sup-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.sup-msg.system .sup-meta { justify-content: center; margin: 6px 0 0; }
.sup-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: 15px; }
.sup-team { display: inline-flex; align-items: center; gap: 4px; color: #d4af37; font-weight: 750; }
.sup-reply { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.sup-rate { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0; }
.sup-rate .btn.on { border-color: var(--accent); }
.sup-note-l { gap: 8px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.sup-admin { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.sup-main h2 { margin: 0; overflow-wrap: anywhere; }
.sup-aside { display: flex; flex-direction: column; gap: 12px; }
.sup-side { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.sup-side h3 { margin: 0 0 4px; overflow-wrap: anywhere; }
.sup-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.sup-kv b { text-align: right; overflow-wrap: anywhere; }
.sup-recent summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }
.sup-other { display: block; width: 100%; padding: 6px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.sup-other:hover { color: var(--text); }
.sup-appeal { display: flex; flex-direction: column; gap: 12px; }
.toast.clickable { cursor: pointer; }
@media (max-width: 860px) { .sup-admin { grid-template-columns: 1fr; } }

/* NIGHTCOIN — admin charts */
.ch-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.ch-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ch-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ch-title { font-weight: 750; }
.ch-total { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.ch-total b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ch-plot { position: relative; height: 120px; padding-top: 16px; }
.ch-max { position: absolute; top: 0; left: 0; font-variant-numeric: tabular-nums; }
.ch-grid { position: absolute; left: 0; right: 0; top: 16px; border-top: 1px dashed rgba(255, 255, 255, 0.08); }
.ch-bars { position: absolute; inset: 16px 0 0 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: end; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.ch-col { height: 100%; display: flex; align-items: flex-end; cursor: default; outline: none; }
.ch-col i { display: block; width: 100%; border-radius: 4px 4px 0 0; transition: filter 0.15s; }
.ch-bars.gold .ch-col i { background: #d4af37; }
.ch-bars.violet .ch-col i { background: #9b6bff; }
.ch-col:hover i, .ch-col:focus-visible i { filter: brightness(1.25); }
.ch-col:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 4px; }
.ch-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); pointer-events: none; opacity: 0; transition: opacity 0.12s; z-index: 2;
  display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  background: #1b1526; border: 1px solid var(--line-2); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); font-size: 12.5px; }
.ch-tip.on { opacity: 1; }
.ch-tip b { font-size: 14px; font-variant-numeric: tabular-nums; }
.ch-tip span { color: var(--muted); }
.ch-x { display: flex; justify-content: space-between; }
.ch-table summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.ch-table table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; }
.ch-table td { padding: 4px 0; border-bottom: 1px solid var(--line); }
.ch-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* NIGHTCOIN — opening animation (once per visit, about 2.3 s; only the name, no text to translate) */
.splash { display: none; }
.splash.on {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(110% 80% at 50% 45%, #1a1030 0%, #0a0612 55%, #050309 100%);
  transition: opacity 0.42s ease, transform 0.42s ease;
}
.splash.xmas { background: radial-gradient(110% 80% at 50% 45%, #10241c 0%, #0a0e12 55%, #050608 100%); }
.splash.out { opacity: 0; transform: scale(1.03); pointer-events: none; }
.splash-stage { position: relative; animation: spl-in 0.45s ease both; }
.splash-word {
  position: relative; z-index: 1; font-family: var(--display); font-weight: 850; font-size: clamp(36px, 9.5vw, 74px);
  letter-spacing: -0.045em; line-height: 1; color: #ecebf2; white-space: nowrap;
}
.splash-word .l { position: relative; display: inline-block; }
.splash-word .l.g { color: #d4af37; }
.splash-shine {
  position: absolute; inset: 0; color: transparent; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.9) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0; -webkit-background-clip: text; background-clip: text;
  animation: spl-shine 1s 0.9s ease-in-out both;
}
/* the rest of the year: a thin gold line draws under the name */
.splash-line {
  position: absolute; left: 2%; right: 2%; bottom: -16px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #d4af37 20%, #f6e3a1 50%, #d4af37 80%, transparent);
  transform: scaleX(0); animation: spl-line 0.9s 0.35s cubic-bezier(0.3, 0.8, 0.2, 1) both;
}
.splash.xmas .splash-line { display: none; }
/* the Santa hat on the "o" of coin */
.splash.xmas .splash-word .l.hat::before {
  content: ""; position: absolute; left: 50%; top: -0.16em; width: 0.5em; height: 0.44em; margin-left: -0.3em; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 56'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f0525f'/%3E%3Cstop offset='1' stop-color='%23a3121e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M7 45 C11 24 23 7 41 5 C52 4 59 11 58 22 C55 17 50 15 46 17 C40 21 38 33 40 45 Z' fill='url(%23r)'/%3E%3Cpath d='M41 5 C52 4 59 11 58 22 C55 17 50 15 46 17 C44 12 43 8 41 5 Z' fill='%23000' opacity='.18'/%3E%3Ccircle cx='57' cy='25' r='6.5' fill='%23f6f3ec'/%3E%3Crect x='2' y='40' width='44' height='13' rx='6.5' fill='%23f6f3ec'/%3E%3Crect x='2' y='47' width='44' height='6' rx='3' fill='%23000' opacity='.08'/%3E%3C/svg%3E") no-repeat center / contain; transform: rotate(-14deg); transform-origin: 30% 90%;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  animation: spl-hat 0.65s 1s cubic-bezier(0.2, 0.9, 0.25, 1.35) both;
}
/* garlands: drawn behind the name, and in front of every other letter */
.gl-layer { position: absolute; overflow: visible; pointer-events: none; }
.gl-back { z-index: 0; }
.gl-front { z-index: 2; }
.gl-line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: spl-draw 1.05s 0.25s cubic-bezier(0.45, 0.1, 0.25, 1) forwards; }
.gl-g { stroke: #1f9d55; filter: drop-shadow(0 0 4px rgba(31, 157, 85, 0.55)); }
.gl-r { stroke: #d92e3c; filter: drop-shadow(0 0 4px rgba(217, 46, 60, 0.55)); }
.gl-bulb { opacity: 0; transform-box: fill-box; transform-origin: center; animation: spl-bulb 0.35s var(--d) ease-out forwards, spl-twinkle 0.9s calc(var(--d) + 0.35s) ease-in-out infinite alternate; }
.gl-b0 { fill: #ffd76a; filter: drop-shadow(0 0 5px #ffd76a); }
.gl-b1 { fill: #fff6e0; filter: drop-shadow(0 0 5px #fff6e0); }
.gl-b2 { fill: #ff9a5c; filter: drop-shadow(0 0 5px #ff9a5c); }
.splash.calm .splash-stage, .splash.calm .splash-line, .splash.calm .l.hat::before { animation-duration: 0.01s; animation-delay: 0s; }
.splash.calm .splash-shine { display: none; }
@keyframes spl-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes spl-shine { from { background-position: 150% 0; } to { background-position: -60% 0; } }
@keyframes spl-line { to { transform: scaleX(1); } }
@keyframes spl-hat { from { opacity: 0; transform: translateY(-0.6em) rotate(-50deg); } to { opacity: 1; transform: rotate(-14deg); } }
@keyframes spl-draw { to { stroke-dashoffset: 0; } }
@keyframes spl-bulb { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
@keyframes spl-twinkle { from { opacity: 1; } to { opacity: 0.45; } }

.sup-typical { display: flex; align-items: center; gap: 6px; margin: -4px 0 0; font-size: 13.5px; }
.sup-typical:empty { display: none; }
.pill.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* NIGHTCOIN — security check */
.sec-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sec-list { display: flex; flex-direction: column; gap: 8px; }
.sec-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.sec-item .pill { flex: none; min-width: 64px; justify-content: center; text-align: center; }
.pill.ok { color: #7fe0a6; border-color: rgba(80, 200, 130, 0.4); background: rgba(80, 200, 130, 0.08); }

/* NIGHTCOIN — brand mark: the gold coin with the N */
.logo-mark, .site-foot .foot-brand .logo-mark {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3CradialGradient id='face' cx='0.38' cy='0.32' r='0.8'%3E%3Cstop offset='0' stop-color='%23231a33'/%3E%3Cstop offset='1' stop-color='%2309070e'/%3E%3C/radialGradient%3E%3ClinearGradient id='gold' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f7e7ae'/%3E%3Cstop offset='0.45' stop-color='%23d4af37'/%3E%3Cstop offset='1' stop-color='%23a07a1c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='32' cy='32' r='30.5' fill='url(%23face)'/%3E%3Ccircle cx='32' cy='32' r='29.6' fill='none' stroke='url(%23gold)' stroke-width='1.6'/%3E%3Ccircle cx='32' cy='32' r='25.6' fill='none' stroke='%23d4af37' stroke-opacity='0.45' stroke-width='0.7'/%3E%3Cg fill='url(%23gold)'%3E%3Crect x='21' y='19' width='3.2' height='25.6'/%3E%3Crect x='39.8' y='19.4' width='3.2' height='25.6'/%3E%3Cpath d='M21 19 H26.6 L43 45 H37.4 Z'/%3E%3Crect x='18.6' y='43.6' width='8' height='1.4'/%3E%3Crect x='37.4' y='19' width='8' height='1.4'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; border-radius: 50%; box-shadow: none;
  -webkit-mask: none; mask: none; filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.25));
}
.logo-mark { width: 32px; height: 32px; }
.site-foot .foot-brand .logo-mark { width: 22px; height: 22px; }
/* promo art: the coin, large, instead of the old moon */
.coins-art::before { -webkit-mask: none; mask: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3CradialGradient id='face' cx='0.38' cy='0.32' r='0.8'%3E%3Cstop offset='0' stop-color='%23231a33'/%3E%3Cstop offset='1' stop-color='%2309070e'/%3E%3C/radialGradient%3E%3ClinearGradient id='gold' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f7e7ae'/%3E%3Cstop offset='0.45' stop-color='%23d4af37'/%3E%3Cstop offset='1' stop-color='%23a07a1c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='32' cy='32' r='30.5' fill='url(%23face)'/%3E%3Ccircle cx='32' cy='32' r='29.6' fill='none' stroke='url(%23gold)' stroke-width='1.6'/%3E%3Ccircle cx='32' cy='32' r='25.6' fill='none' stroke='%23d4af37' stroke-opacity='0.45' stroke-width='0.7'/%3E%3Cg fill='url(%23gold)'%3E%3Crect x='21' y='19' width='3.2' height='25.6'/%3E%3Crect x='39.8' y='19.4' width='3.2' height='25.6'/%3E%3Cpath d='M21 19 H26.6 L43 45 H37.4 Z'/%3E%3Crect x='18.6' y='43.6' width='8' height='1.4'/%3E%3Crect x='37.4' y='19' width='8' height='1.4'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; border-radius: 50%; filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.25)); }

/* snow behind the name, in season */
.splash-snow { position: absolute; inset: 0; pointer-events: none; }
.splash-snow i { position: absolute; top: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: var(--o); filter: blur(0.3px); animation: spl-snow var(--t) var(--delay) linear infinite; }
@keyframes spl-snow { to { transform: translate(var(--drift), 105vh); } }

.del-card { border-color: rgba(220, 60, 70, 0.25); }
.del-list { margin: 0; padding-left: 18px; color: var(--muted); }
.warn-text { color: #f4a3a9; }

/* NIGHTCOIN — two-step sign-in */
.tf-qr { display: flex; justify-content: center; }
.tf-qr canvas { border-radius: 10px; max-width: 220px; height: auto; }
.tf-key { display: block; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); font-size: 15px; letter-spacing: 0.08em; text-align: center; overflow-wrap: anywhere; user-select: all; }
.tf-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tf-codes code { padding: 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); text-align: center; letter-spacing: 0.06em; user-select: all; }

/* NIGHTCOIN — phone notch and status bar: the app runs full screen on iPhone, so nothing may sit under the clock and battery */
html { background: #07050b; }
.top { padding-top: env(safe-area-inset-top); height: calc(64px + env(safe-area-inset-top)); }
@media (max-width: 720px) { .top { height: calc(58px + env(safe-area-inset-top)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); } }
#toasts { top: calc(76px + env(safe-area-inset-top)); }
.splash.on { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
@media (max-width: 720px) {
  .hc-panel { max-height: calc(100dvh - 190px - env(safe-area-inset-top)); }
  .sheet { max-height: calc(100dvh - env(safe-area-inset-top) - 12px); overflow-y: auto; }
}

/* NIGHTCOIN — home on phones: your turn first, then the games right away; no big banners; figures below */
@media (max-width: 720px) {
  main { padding-top: 16px; }
  main:has(> .home-games) { display: flex; flex-direction: column; }
  main:has(> .home-games) > * { order: 5; }
  main:has(> .home-games) > .promos { display: none; }
  main:has(> .home-games) > .home-todo { order: 1; margin-top: 0; }
  main:has(> .home-games) > .home-games { order: 2; margin-top: 0; }
  main:has(> .home-games) > .home-kpis { order: 3; margin-top: 18px; }
  .home-games .section-head { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 12px; }
  .home-games .section-head > div { display: grid !important; grid-template-columns: 1fr 1fr; }
  .home-games .section-head .btn { justify-content: center; }
  .home-kpis .kpi { min-height: 0; padding: 10px 12px; gap: 2px; }
  .home-kpis .kpi b { font-size: 16px; }
  .home-kpis .kpi.vip .vip-bar { margin: 4px 0; }
}

/* NIGHTCOIN — room for the tab bar (and the iPhone home bar) at the bottom; a smaller help button */
@media (max-width: 720px) {
  main { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .hc-fab { width: 48px; height: 48px; }
  .hc-fab .ico { width: 20px; height: 20px; }
}

/* NIGHTCOIN — My account on phones: shortcuts first, then security, language, password and devices */
@media (max-width: 720px) {
  main:has(> .acct-links) { display: flex; flex-direction: column; }
  main:has(> .acct-links) > * { order: 6; }
  main:has(> .acct-links) > .section-head { order: 0; }
  main:has(> .acct-links) > .acct-links { order: 1; margin-top: 4px; }
  main:has(> .acct-links) > .acct-2fa { order: 2; }
  main:has(> .acct-links) > .acct-lang { order: 3; }
  main:has(> .acct-links) > .acct-grid { order: 4; }
  main:has(> .acct-links) > .acct-del { order: 7; }
  .acct-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .acct-links .btn { justify-content: center; }
  .acct-grid .list { max-height: 330px; overflow-y: auto; }
}

/* NIGHTCOIN — the team's banner */
.announce { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--line); }
.announce[hidden] { display: none; }
.announce.info { background: linear-gradient(90deg, rgba(143, 61, 255, 0.18), rgba(143, 61, 255, 0.06)); color: #e7dcff; }
.announce.maint { background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.06)); color: #f6e3a1; }
.announce-x { border: 0; background: none; color: inherit; opacity: 0.7; cursor: pointer; display: grid; place-items: center; padding: 4px; }
.announce-x:hover { opacity: 1; }

/* NIGHTCOIN — more air on phones: blocks never squeeze their text, more space between and inside them */
.buy-head .grow { min-width: 0; }
@media (max-width: 720px) {
  .buy-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .buy-badges { order: -1; flex-wrap: wrap; }
  .section-head { margin-bottom: 14px; }
  .card, .panel { padding: 18px 16px; }
  .list { gap: 10px; }
  .item { padding: 14px; gap: 12px; }
  .muted, .sub, p { line-height: 1.5; }
  .btn { min-height: 44px; }
  .btn.sm { min-height: 38px; }
  .row.wrap { row-gap: 10px; }
  .page-title { margin-bottom: 4px; }
}

/* NIGHTCOIN — text keeps its room on phones: a button or a form beside it goes below instead of squeezing it */
@media (max-width: 720px) {
  .item:has(> .btn, > button, > form, > .row), .card > .row:has(> .btn, > button, > form), .panel > .row:has(> .btn, > button, > form) { flex-wrap: wrap; }
  .item:has(> .btn, > button, > form, > .row) > .grow, .card > .row:has(> .btn, > button, > form) > .grow, .panel > .row:has(> .btn, > button, > form) > .grow { flex: 1 1 190px; min-width: 0; }
  .item > .grow { min-width: 0; }
}

/* =========================================================
   Live 1v1 games (Kickoff, Ricochet): wide stage + on-screen buttons on phones
   ========================================================= */
.live-screen .gs-head { width: min(900px, 100%); }
.stage-wrap.live { border-radius: 18px; }
.stage-wrap.live canvas { border-radius: 17px; }
.live-ping { flex: none; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; padding: 3px 8px; border-radius: 99px; background: rgba(34, 197, 94, 0.14); color: #4ade80; font-variant-numeric: tabular-nums; }
.live-ping.meh { background: rgba(250, 204, 21, 0.14); color: #facc15; }
.live-ping.bad { background: rgba(239, 68, 68, 0.16); color: #f87171; }
.live-status { flex: none; min-height: 18px; margin: 0; font-size: 13px; font-weight: 600; color: var(--gold); text-align: center; }
.live-status:empty { display: none; }
.live-levels { display: inline-flex; padding: 3px; gap: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); }
.live-levels .lvl { height: 34px; padding: 0 14px; border-radius: 99px; border: 0; background: transparent; color: var(--muted); font: 700 13px inherit; font-family: inherit; cursor: pointer; }
.live-levels .lvl.on { background: linear-gradient(135deg, #8b5cf6, #ff7a1a); color: #fff; }
.live-pad { flex: none; width: min(900px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 4px; touch-action: none; user-select: none; -webkit-user-select: none; }
.lp-group { display: flex; gap: 12px; align-items: center; }
.lp-btn {
  width: 74px; height: 74px; border-radius: 50%; border: 0; color: #fff; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 70%);
  font: 800 15px var(--display, inherit); letter-spacing: -0.01em; touch-action: none; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18), 0 10px 24px -12px rgba(0, 0, 0, 0.9); transition: transform 0.06s, filter 0.06s;
}
.lp-btn span { display: grid; place-items: center; line-height: 1.05; }
.lp-btn small { font-size: 9px; font-weight: 700; opacity: 0.8; letter-spacing: 0.02em; }
.lp-btn.jump { background: radial-gradient(circle at 35% 30%, #34d399, #059669 75%); }
.lp-btn.fire { background: radial-gradient(circle at 35% 30%, #ffa057, #ea580c 55%, #9a3412); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.25) inset, 0 12px 28px -10px rgba(234, 88, 12, 0.8); }
.lp-btn.big { width: 92px; height: 92px; font-size: 18px; }
.lp-btn.on { transform: scale(0.9); filter: brightness(1.25); }
.live-rotate { display: none; flex: none; margin: 0; font-size: 12px; color: var(--dim); text-align: center; }
@media (orientation: portrait) and (pointer: coarse) { .live-rotate { display: block; } }
/* a mouse and keyboard: no on-screen buttons, the keys are shown instead */
@media (hover: hover) and (pointer: fine) { .live-pad { display: none; } }
@media not ((hover: hover) and (pointer: fine)) { .live-keys { display: none; } }
/* phone held sideways: the buttons float over the bottom corners of the pitch */
@media (orientation: landscape) and (max-height: 520px) {
  .live-screen { gap: 4px; padding-top: max(4px, env(safe-area-inset-top)); }
  .live-screen .gs-head { height: 36px; }
  .live-pad { position: fixed; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); width: auto; pointer-events: none; z-index: 2; }
  .live-pad > * { pointer-events: auto; }
  .lp-btn { width: 62px; height: 62px; opacity: 0.88; }
  .lp-btn.big { width: 76px; height: 76px; }
  .live-screen .gs-foot .btn { height: 36px; }
  .live-levels .lvl { height: 28px; }
}

/* =========================================================
   NIGHTCOIN — calmer type: smaller titles, lighter weights, a quieter, more professional look
   ========================================================= */
.page-title { font-size: clamp(24px, 3.4vw, 32px); font-weight: 750; letter-spacing: -0.025em; }
.home-head h1 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; letter-spacing: -0.035em; }
.section-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
.panel h3, .auth-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.sheet h2 { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; }
.game h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.result h2 { font-size: clamp(28px, 5vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.vs-mid .pot { font-size: clamp(24px, 4.4vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.fighter .score { font-size: 26px; font-weight: 800; }
.summary .big { font-size: 26px; font-weight: 800; }
.wallet-hero .amount { font-size: clamp(36px, 7vw, 58px); font-weight: 800; letter-spacing: -0.04em; }
.kpi b { font-size: 19px; font-weight: 800; }
.stat b { font-size: 24px; }
.claim-amount { font-size: 28px; }
.case-amount { font-size: 36px; }
.vip-hero h2 { font-size: 24px; font-weight: 750; }
.search-screen h2 { font-size: clamp(22px, 4vw, 30px); font-weight: 800; }
.promo h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 850; }
.hero-title { font-size: clamp(46px, 7.6vw, 92px); }
.slogan { font-size: clamp(46px, 9vw, 104px); }
.vs-intro .vs { font-size: clamp(56px, 13vw, 120px); }
.vs-intro .potline { font-size: clamp(18px, 3.4vw, 26px); }
.legal-intro { font-size: 15px; }
@media (max-width: 720px) {
  .game h3 { font-size: 17px; }
  .kpi b { font-size: 16px; }
  .stat b { font-size: 20px; }
  .page-title { font-size: 24px; }
  .home-head h1 { font-size: 28px; }
}
/* streaks (flames): a small, quiet badge */
.flame-chip { gap: 4px; padding: 2px 8px; font-size: 12px; font-weight: 600; background: rgba(255, 140, 40, 0.08); border-color: rgba(255, 140, 40, 0.28); color: #f4a35c; }
.flame-chip .ico { width: 12px; height: 12px; }
.flame-chip.big { font-size: 13px; padding: 3px 10px; }
.flame-chip.danger { animation: none; border-color: rgba(255, 140, 40, 0.55); }
.flame-line { font-size: 13px; color: var(--muted); gap: 8px; }
.flame-line.danger { color: #f4a35c; }

/* =========================================================
   NIGHTCOIN — result of a duel: a casino sign (chasing bulbs, gold glow, a shine across the amount)
   ========================================================= */
.result { position: relative; overflow: hidden; padding: 30px 24px 26px; border-radius: 22px; isolation: isolate; }
.result::before {
  content: ''; position: absolute; inset: 7px; border-radius: 16px; padding: 5px; pointer-events: none; z-index: -1;
  background-image: radial-gradient(circle, var(--bulb, #c4b5fd) 0 1.8px, transparent 2.5px);
  background-size: 15px 15px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 3px var(--bulb, #c4b5fd));
  animation: bulb-chase 1.4s linear infinite; opacity: 0.85;
}
@keyframes bulb-chase { to { background-position: 15px 15px; } }
.result.win { --bulb: #ffe066; background: radial-gradient(120% 90% at 50% 0%, rgba(245, 197, 66, 0.24), transparent 62%), linear-gradient(180deg, #22123f, #0d0819); border: 2px solid rgba(245, 197, 66, 0.75); box-shadow: 0 0 46px -8px rgba(245, 197, 66, 0.55), inset 0 0 30px rgba(236, 72, 153, 0.1); }
.result.win h2 { background: linear-gradient(100deg, #b8860b 20%, #ffe27a 40%, #fffaf0 50%, #ffe27a 60%, #b8860b 80%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 2.6s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(245, 197, 66, 0.45)); }
@keyframes shine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -20% 0; } }
.result.lose { --bulb: #c4b5fd; background: linear-gradient(180deg, #1b1233, #0d0819); border: 2px solid rgba(167, 139, 250, 0.35); }
.result.lose::before { animation-duration: 3s; opacity: 0.45; }
.result.draw { --bulb: #f0abfc; background: radial-gradient(120% 90% at 50% 0%, rgba(168, 85, 247, 0.2), transparent 62%), linear-gradient(180deg, #1f1238, #0d0819); border: 2px solid rgba(236, 72, 153, 0.45); }
.result .eyebrow { display: block; margin-bottom: 6px; letter-spacing: 0.16em; }
.result p { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .result::before, .result.win h2 { animation: none; } }

/* =========================================================
   NIGHTCOIN — phone controls for the live games: a joystick zone (left thumb) and big buttons (right thumb)
   ========================================================= */
.game-screen, .game-screen * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.live-pad { flex: 1 1 auto; min-height: 170px; max-height: 300px; width: min(900px, 100%); display: flex; align-items: stretch; gap: 12px; padding: 4px 2px; touch-action: none; }
.lp-zone { position: relative; flex: 1 1 55%; min-height: 150px; border-radius: 22px; background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1), rgba(255, 255, 255, 0.02) 70%); border: 1px dashed rgba(255, 255, 255, 0.12); touch-action: none; overflow: hidden; }
.lp-base { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03) 70%); border: 2px solid rgba(255, 255, 255, 0.16); pointer-events: none; transition: opacity 0.15s; }
.lp-zone.on .lp-base { border-color: rgba(196, 181, 253, 0.55); }
.lp-knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c4b5fd, #7c3aed 70%); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255, 255, 255, 0.2) inset; pointer-events: none; }
.lp-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 11px; color: rgba(255, 255, 255, 0.4); pointer-events: none; }
.lp-zone.on .lp-hint { opacity: 0; }
.lp-buttons { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 12px; }
.live-pad .lp-btn { width: 78px; height: 78px; }
.live-pad .lp-btn.big { width: 104px; height: 104px; font-size: 19px; }
.live-pad.vertical .lp-btn.big { width: 120px; height: 120px; }
@media (orientation: landscape) and (max-height: 520px) {
  .live-pad { position: fixed; left: 0; right: 0; bottom: 0; top: 40%; width: auto; max-height: none; padding: 0 max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); pointer-events: none; z-index: 2; }
  .lp-zone { pointer-events: auto; flex: 0 0 42%; background: transparent; border: 0; }
  .lp-hint { display: none; }
  .lp-buttons { pointer-events: auto; margin-left: auto; align-self: flex-end; padding-bottom: 6px; }
  .live-pad .lp-btn { width: 66px; height: 66px; opacity: 0.9; }
  .live-pad .lp-btn.big { width: 84px; height: 84px; }
  .lp-base { opacity: 0.55; }
  .lp-zone.on .lp-base { opacity: 1; }
}

/* =========================================================
   NIGHTCOIN — phone header: the logo sits exactly in the middle of the bar; help button above the tab bar
   ========================================================= */
.top-logo { display: inline-flex; align-items: center; align-self: center; height: auto; }
.top-logo .logo { display: inline-flex; align-items: center; height: 36px; }
.top-logo .logo-mark { width: 34px; height: 34px; }
@media (max-width: 720px) {
  #help-chat { right: 14px; bottom: calc(124px + env(safe-area-inset-bottom)); }
  .hc-fab { width: 50px; height: 50px; }
  .hc-panel { height: min(560px, calc(100dvh - 200px)); }
}

/* =========================================================
   NIGHTCOIN — phones: games on the whole screen, nothing slides sideways
   ========================================================= */
/* only the page itself scrolls (keyboard arrows, Page Down, Space work); 'clip' cuts the sides without making the body a second scroll area */
html { overflow-x: hidden; overscroll-behavior: none; }
body { overflow-x: clip; overflow-y: visible; overscroll-behavior: none; }
body.in-game { position: fixed; inset: 0; width: 100%; overflow: hidden; touch-action: none; }
.game-screen { width: 100%; max-width: 100vw; overflow: hidden; overscroll-behavior: none; touch-action: none; }
.game-screen .btn, .game-screen button { touch-action: manipulation; }
.full-btn { font-size: 18px; line-height: 1; }

/* live games held upright on a phone: turn the phone */
.live-rotate-full { display: none; }
@media (orientation: portrait) {
  .live-screen.touch .live-rotate-full {
    display: flex; position: fixed; inset: 0; z-index: 20; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px; text-align: center;
    background: radial-gradient(80% 60% at 50% 40%, rgba(139, 92, 246, 0.25), transparent 70%), #08050f;
  }
  .live-rotate-full b { font-size: 20px; font-weight: 800; }
  .live-rotate-full span { color: var(--muted); font-size: 14px; max-width: 28ch; }
  .rot-phone { width: 54px; height: 92px; border: 3px solid #c4b5fd; border-radius: 12px; position: relative; margin-bottom: 8px; animation: rot-turn 2.2s ease-in-out infinite; }
  .rot-phone i { position: absolute; left: 50%; bottom: 6px; width: 14px; height: 3px; margin-left: -7px; border-radius: 2px; background: #c4b5fd; }
  @keyframes rot-turn { 0%, 20% { transform: rotate(0); } 50%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
}

/* live games sideways on a phone: the pitch fills the screen, small buttons float on top */
@media (orientation: landscape) {
  .live-screen.touch { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); gap: 0; justify-content: center; }
  .live-screen.touch .gs-head { position: fixed; top: max(6px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); width: auto; height: 34px; z-index: 6; pointer-events: none; }
  .live-screen.touch .gs-head > * { pointer-events: auto; }
  .live-screen.touch .gs-title { visibility: hidden; }
  .live-screen.touch .gs-head .icon-btn { width: 34px; height: 34px; background: rgba(10, 6, 20, 0.55); }
  .live-screen.touch .gs-area { flex: 1; height: 100%; }
  .live-screen.touch .stage-wrap.live, .live-screen.touch .stage-wrap.live canvas { border-radius: 0; }
  .live-screen.touch .stage-wrap.live { padding: 0; box-shadow: none; background: none; }
  .live-screen.touch .hint, .live-screen.touch .live-status:empty { display: none; }
  .live-screen.touch .live-status { position: fixed; top: max(8px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 6; background: rgba(10, 6, 20, 0.7); padding: 4px 12px; border-radius: 99px; font-size: 12px; }
  .live-screen.touch .live-pad { position: fixed; inset: 18% 0 0 0; width: auto; max-height: none; padding: 0 max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); pointer-events: none; z-index: 4; display: flex; align-items: flex-end; }
  .live-screen.touch .lp-zone { pointer-events: auto; flex: 0 0 46%; height: 100%; background: transparent; border: 0; }
  .live-screen.touch .lp-hint { display: none; }
  .live-screen.touch .lp-base { left: 58%; top: 64%; opacity: 0.5; }
  .live-screen.touch .lp-zone.on .lp-base { opacity: 1; }
  .live-screen.touch .lp-buttons { pointer-events: auto; margin-left: auto; align-self: flex-end; gap: 14px; padding-bottom: 4px; }
  .live-screen.touch .live-pad .lp-btn { width: 64px; height: 64px; opacity: 0.78; }
  .live-screen.touch .live-pad .lp-btn.big { width: 86px; height: 86px; font-size: 16px; }
  /* the match is over: the controls leave, the buttons sit under the result card */
  .live-screen.touch.ended .live-pad { display: none; }
  .live-screen.touch .gs-foot { position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 7; flex-wrap: nowrap; gap: 8px; max-width: calc(100vw - 24px); }
  .live-screen.touch .gs-foot:empty { display: none; }
  .live-screen.touch .gs-foot .btn { height: 38px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
  .live-screen.touch .gs-foot .live-levels .lvl { height: 30px; padding: 0 10px; font-size: 12px; }
  .live-screen.touch:not(.ended) .gs-foot { display: none; }
}
/* phones: the solo games use the whole width of the screen */
@media (max-width: 720px) and (pointer: coarse) {
  .game-screen:not(.live-screen) { padding: max(4px, env(safe-area-inset-top)) 4px max(6px, env(safe-area-inset-bottom)); gap: 6px; }
  .game-screen:not(.live-screen) .gs-head { height: 38px; padding: 0 4px; }
  .game-screen:not(.live-screen) .stage-wrap { border-radius: 16px; }
  .game-screen:not(.live-screen) .stage-wrap canvas { border-radius: 15px; }
}

/* =========================================================
   NIGHTCOIN — phones: nothing in a game can zoom; the bars stay put while scrolling
   ========================================================= */
.game-screen, .game-screen * { touch-action: none; }
.game-screen .gs-foot .btn, .game-screen .gs-head .icon-btn, .live-rotate-full .btn { touch-action: manipulation; }
.top, .tabbar { transform: translateZ(0); will-change: transform; }

/* =========================================================
   NIGHTCOIN — maintenance page, and the gift sheet
   ========================================================= */
.maint-page { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: radial-gradient(80% 60% at 50% 30%, rgba(139, 92, 246, 0.22), transparent 70%), var(--bg); }
.maint-card { max-width: 420px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.maint-card .logo-mark { width: 56px; height: 56px; }
.maint-card h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.maint-card p { color: var(--muted); line-height: 1.55; }
body.maint-admin .top::after { content: 'MAINTENANCE'; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; padding: 2px 10px; border-radius: 99px; background: #d4af37; color: #1a1206; }
.gift-body { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.gift-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); }
.gift-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gift-row .muted { font-size: 12px; }
.gift-amt { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #f1d77a; white-space: nowrap; }
.gift-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px 8px; color: var(--muted); }
.gift-empty .ico { color: #d4af37; }
.gift-empty b { color: var(--text); }

/* show / hide password eye */
.field input.has-eye { padding-right: 48px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer;
}
.pw-eye:hover, .pw-eye:focus-visible { color: var(--text); background: rgba(255, 255, 255, 0.06); outline: none; }

/* deposit guide: smaller amounts through an exchange app */
.buy-alt { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.buy-alt h4 { margin: 4px 0 0; font-size: 16px; font-weight: 800; }
.buy-alt p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.buy-alt-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.buy-alt-steps li::marker { color: #d4af37; font-weight: 800; }

/* admin: limits of the free services */
.lim-list { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.lim-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.lim-top b { font-size: 14px; }
.lim-num { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.lim-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-top: 6px; }
.lim-bar span { display: block; height: 100%; border-radius: 4px; background: #3fb97a; }
.lim-row.warn .lim-bar span { background: #e0a32e; }
.lim-row.bad .lim-bar span { background: #e5484d; }
.lim-row.warn .lim-num { color: #e0a32e; }
.lim-row.bad .lim-num { color: #e5484d; }
.lim-note { margin: 6px 0 0; text-align: left; }

/* admin: partners and their single-use codes */
.partners-card .partners-sub { margin: 18px 0 8px; font-size: 14px; font-weight: 800; }
.partners-card .h-input { flex: 1; min-width: 0; }
.partner-fresh { margin-top: 10px; padding: 10px; border-radius: 10px; border: 1px solid rgba(212, 175, 55, 0.45); background: rgba(212, 175, 55, 0.08); }
.partner-fresh .addr { font-size: 16px; font-weight: 800; letter-spacing: 0.06em; color: #d4af37; }
.partners-old { margin-top: 16px; }
.partners-old summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.partners-old .list { margin-top: 8px; }
.partner-list { display: flex; flex-direction: column; gap: 10px; }
.partner-row { padding: 14px; }
.partner-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.partner-totals { margin: 4px 0 12px; }
.pstat { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); min-width: 0; }
.pstat b { font-size: 15px; font-variant-numeric: tabular-nums; }
.partner-refs .list { margin-top: 10px; }

/* affiliate page: the gold "Senior Partner" card (players who signed up with a partner code) */
.senior-card {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 16px 18px; border-radius: 16px;
  color: #1a1206; border: 1px solid rgba(255, 236, 170, 0.7);
  background: linear-gradient(135deg, #f7e3a1 0%, #d4af37 38%, #b8892a 62%, #f3d88a 100%);
  box-shadow: 0 14px 36px -14px rgba(212, 175, 55, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.senior-card .grow { display: flex; flex-direction: column; min-width: 0; }
.senior-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(26, 18, 6, 0.88); color: #f3d88a; }
.senior-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.senior-title { font-size: 20px; font-weight: 900; letter-spacing: 0.01em; }
.senior-sub { font-size: 13px; opacity: 0.8; }

/* referral welcome boost: little "i" notes */
.boost-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; border: 1px solid rgba(212, 175, 55, 0.4); background: rgba(212, 175, 55, 0.08); }
.boost-note .ico { flex: none; color: #d4af37; margin-top: 1px; }
.boost-note b { color: #f3d88a; }
.aff-perk { display: inline-flex; align-items: center; gap: 6px; margin: -2px 0 6px; text-align: left; color: var(--muted); }
.aff-perk .ico { flex: none; color: #d4af37; }
.btn.danger { background: #c9343d; color: #fff; border: 1px solid #e5484d; }
.btn.danger:hover { background: #d93d46; }

/* double rematch: same duel, twice the stake */
.rematch-cta .rematch-double { background: linear-gradient(135deg, #7a3cff, #c13bd6); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); }
.rematch-cta .rematch-double:hover { filter: brightness(1.08); }

/* phone menu: Affiliate in the bar, "More" opens every other page */
.tabbar .more-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: 1; min-width: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; padding: 7px 2px; border-radius: 10px; cursor: pointer; }
.tabbar .more-tab.on { color: var(--text); background: var(--s2, rgba(255, 255, 255, 0.05)); }
.tabbar .more-tab.on .ico { color: #d4af37; }
.tabbar .more-tab .badge { position: absolute; top: 2px; left: 54%; margin: 0; }
.more-sheet { max-height: min(86vh, 720px); overflow-y: auto; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 6px; }
.more-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 84px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; text-align: center; }
.more-tile .ico { color: #d4af37; }
.more-tile.on { border-color: rgba(212, 175, 55, 0.6); background: rgba(212, 175, 55, 0.08); }
.more-tile.admin .ico { color: var(--accent, #8f3dff); }
.more-tile .badge { position: absolute; top: 6px; right: 8px; margin: 0; }
.more-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 14px; }
.more-games a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.more-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-bottom: 6px; }
/* phones: more room between the game cards */
@media (max-width: 700px) {
  .games { gap: 14px !important; }
  .home-games .section-head { margin-bottom: 14px; }
}
