@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg-0: #0b1a24;
  --bg-1: #0f212e;
  --bg-2: #1a2c38;
  --bg-3: #213743;
  --bg-4: #2f4553;
  --bg-5: #557086;
  --text: #fff;
  --text-2: #b1bad3;
  --text-3: #7d8ea6;
  --green: #00e701;
  --green-hover: #1fff20;
  --green-ink: #05080a;
  --blue: #1475e1;
  --blue-hover: #105eb4;
  --red: #ed4163;
  --amber: #ffb02e;
  --sq-light: #dfe4e8;
  --sq-dark: #7f97a8;
  --hl-move: rgba(255, 214, 79, 0.42);
  --hl-select: rgba(20, 117, 225, 0.45);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 2px 0 rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 4px 10px -6px rgba(0, 0, 0, 0.25);
  --header-h: 60px;
  --side-w: 240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-2);
  color: var(--text);
  font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
svg { flex-shrink: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.green { color: var(--green); }
.red { color: var(--red); }
.hide { display: none !important; }
::selection { background: rgba(20, 117, 225, 0.5); }

/* ---------- scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w);
  background: var(--bg-1);
  display: flex; flex-direction: column;
  z-index: 30;
  transition: width 0.2s var(--ease), transform 0.25s var(--ease);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}
.sidebar-top {
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius);
  display: inline-grid; place-items: center;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { color: var(--text); background: var(--bg-3); }
.icon-btn svg { width: 18px; height: 18px; }
.side-tabs { display: flex; gap: 6px; flex: 1; }
.side-tab {
  flex: 1; height: 36px; border-radius: var(--radius);
  font-weight: 700; font-size: 14px;
  background: var(--bg-3); color: var(--text);
  display: grid; place-items: center;
  transition: background 0.15s;
}
.side-tab:hover { background: var(--bg-4); }
.side-tab.on { background: var(--bg-4); }
.side-scroll { overflow-y: auto; padding: 14px 12px 24px; flex: 1; }
.side-group { background: var(--bg-2); border-radius: var(--radius); padding: 4px 0; margin-bottom: 12px; }
.side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px; height: 44px;
  font-weight: 600; color: var(--text);
  transition: background 0.15s;
  position: relative;
}
.side-link svg { width: 18px; height: 18px; color: var(--text-2); }
.side-link:hover { background: var(--bg-3); }
.side-link.on { background: var(--bg-3); }
.side-link.on svg { color: var(--text); }
.side-link .count {
  margin-left: auto; font-size: 12px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.side-sep { height: 1px; background: var(--bg-3); margin: 4px 14px; }
.side-note { font-size: 12px; color: var(--text-3); padding: 4px 6px; line-height: 1.5; }

.collapsed .sidebar { width: 64px; }
.collapsed .sidebar .side-tabs,
.collapsed .sidebar .side-link span,
.collapsed .sidebar .side-link .count,
.collapsed .sidebar .side-note { display: none; }
.collapsed .sidebar .side-link { justify-content: center; padding: 0; }
.collapsed .sidebar .side-scroll { padding: 14px 8px; }
.collapsed .sidebar .sidebar-top { padding: 0 14px; }

.main { flex: 1; margin-left: var(--side-w); min-width: 0; transition: margin-left 0.2s var(--ease); display: flex; flex-direction: column; min-height: 100vh; }
.collapsed .main { margin-left: 64px; }

.header {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h);
  background: var(--bg-2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.12);
}
.header-in {
  max-width: 1200px; margin: 0 auto; height: 100%;
  padding: 0 3vw;
  display: flex; align-items: center; gap: 12px;
}
.logo {
  font-weight: 800; font-style: italic; font-size: 23px; letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 7px; color: #fff;
}
.logo svg { width: 22px; height: 22px; }
.header-mid { flex: 1; display: flex; justify-content: center; }
.header-right { display: flex; align-items: center; gap: 8px; }

.wallet-box { display: flex; align-items: stretch; height: 44px; border-radius: var(--radius); box-shadow: var(--shadow); }
.balance {
  background: var(--bg-1);
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  border-radius: var(--radius) 0 0 var(--radius);
  font-weight: 700; font-size: 15px;
  min-width: 120px;
  transition: background 0.15s;
}
.balance:hover { background: #0c1c27; }
.balance .coin { width: 16px; height: 16px; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: var(--green-ink); font-size: 11px; font-weight: 800; font-style: normal; }
.balance .held { font-size: 11px; color: var(--text-3); font-weight: 600; margin-left: 2px; }
.balance.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 30% { color: var(--green); } }
.wallet-box .btn { border-radius: 0 var(--radius) var(--radius) 0; height: 44px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow);
  transition: background 0.15s, transform 0.1s, opacity 0.15s, color 0.15s;
  white-space: nowrap;
  user-select: none;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn-green { background: var(--green); color: var(--green-ink); }
.btn-green:hover:not(:disabled) { background: var(--green-hover); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover:not(:disabled) { background: var(--blue-hover); }
.btn-gray { background: var(--bg-4); color: #fff; }
.btn-gray:hover:not(:disabled) { background: var(--bg-5); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-3); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover:not(:disabled) { background: #d92f52; }
.btn-lg { height: 52px; font-size: 15px; width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
/* .input grows along a row; in a column it would collapse to nothing. */
.field > .input, .field > textarea.input { flex: none; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; color: var(--text-2); font-weight: 600; font-size: 14px; }
.field-label .aside { font-size: 13px; color: var(--text-3); font-weight: 600; }
.input-wrap {
  display: flex; align-items: center;
  background: var(--bg-4);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2px;
  transition: background 0.15s;
}
.input-wrap:hover { background: var(--bg-5); }
.input {
  flex: 1; min-width: 0;
  height: 38px;
  background: var(--bg-1);
  border: 2px solid var(--bg-4);
  border-radius: var(--radius);
  padding: 0 10px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s;
}
.input-wrap .input { border: 0; height: 36px; border-radius: 3px; }
.input:hover { border-color: var(--bg-5); }
.input:focus { border-color: var(--bg-5); }
.input-wrap:focus-within { background: var(--bg-5); }
textarea.input { height: auto; min-height: 110px; padding: 10px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b1bad3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input-suffix { padding: 0 10px; color: var(--text-2); font-weight: 600; }
.input-btn { height: 36px; min-width: 44px; padding: 0 12px; font-weight: 700; color: #fff; border-radius: 3px; transition: background 0.15s; }
.input-btn:hover { background: var(--bg-5); }
.input-sep { width: 2px; height: 22px; background: var(--bg-2); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-weight: 600; cursor: pointer; margin-bottom: 10px; font-size: 13px; }
.check input { appearance: none; width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; border-radius: 3px; background: var(--bg-1); border: 2px solid var(--bg-4); display: grid; place-items: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.check input:checked { background: var(--green); border-color: var(--green); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: solid var(--green-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.form-error { color: var(--red); font-weight: 600; font-size: 13px; min-height: 18px; margin: -4px 0 10px; }

/* Sign in / register */
.auth-modal .modal-head { padding: 20px 18px 6px 28px; }
.auth-modal .modal-head h3 { font-size: 18px; }
.auth-modal .modal-body { padding: 14px 28px 28px; }
.auth-modal .modal-foot { padding: 16px 28px; font-size: 13.5px; }
.auth-form .field { gap: 8px; margin-bottom: 18px; }
.auth-form .input { height: 46px; padding: 0 14px; font-size: 15px; }
.auth-form .pw-wrap .input { height: 44px; }
.pw-wrap { padding-right: 4px; }
.pw-toggle { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; color: var(--text-2); border-radius: 3px; transition: color 0.15s, background 0.15s; }
.pw-toggle:hover { color: var(--text); background: var(--bg-5); }
.pw-toggle:focus-visible { outline: 2px solid var(--text-3); outline-offset: -2px; }
.pw-toggle svg { width: 19px; height: 19px; }
.auth-checks { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 6px; padding-top: 20px; border-top: 1px solid var(--bg-4); }
.auth-checks .check { margin: 0; font-size: 13.5px; line-height: 1.5; }
.auth-form .form-error { min-height: 0; margin: 0 0 14px; }
.auth-form .form-error:empty { display: none; }
.auth-form .btn-lg { margin-top: 4px; }
.auth-form .btn-lg { height: 50px; }
@media (max-width: 520px) {
  .auth-modal .modal-head { padding-left: 20px; }
  .auth-modal .modal-body { padding: 12px 20px 22px; }
  .auth-modal .modal-foot { padding: 14px 20px; }
}

/* segmented control (Manual / Auto style) */
.seg { display: flex; background: var(--bg-1); border-radius: 999px; padding: 5px; gap: 4px; margin-bottom: 14px; }
.seg button { flex: 1; height: 40px; border-radius: 999px; font-weight: 700; color: var(--text); transition: background 0.15s; }
.seg button:hover { background: var(--bg-3); }
.seg button.on { background: var(--bg-4); }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.chip {
  height: 40px; border-radius: var(--radius);
  background: var(--bg-4); font-weight: 700;
  box-shadow: var(--shadow);
  transition: background 0.15s, box-shadow 0.15s;
  position: relative;
}
.chip:hover { background: var(--bg-5); }
.chip.on { background: var(--bg-1); box-shadow: inset 0 0 0 2px var(--green); }
.chip small { position: absolute; top: 3px; right: 6px; font-size: 10px; color: var(--text-3); font-weight: 700; }

/* ---------- layout ---------- */
.page { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px 3vw 48px; }
.page-title { font-size: 20px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.page-title svg { width: 20px; height: 20px; color: var(--text-2); }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.section-head h2 svg { width: 18px; height: 18px; color: var(--text-2); }
.card { background: var(--bg-3); border-radius: var(--radius-lg); }
.card-pad { padding: 20px; }

/* ---------- home ---------- */
.banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.banner {
  position: relative; overflow: hidden;
  background: var(--bg-3); border-radius: var(--radius-lg);
  min-height: 190px; padding: 22px 20px;
  display: flex; flex-direction: column; align-items: flex-start;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease);
}
.banner:hover { transform: translateY(-2px); }
.banner h3 { font-size: 19px; margin-bottom: 6px; position: relative; z-index: 1; }
.banner p { color: var(--text-2); max-width: 58%; font-size: 13.5px; position: relative; z-index: 1; }
.banner .btn { margin-top: auto; position: relative; z-index: 1; }
.banner-art { position: absolute; right: -14px; bottom: -14px; width: 46%; max-width: 190px; pointer-events: none; }
.banner-art.mini-board { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 6px; overflow: hidden; transform: rotate(-8deg); right: -10px; bottom: -34px; width: 38%; max-width: 150px; box-shadow: var(--shadow-lg); }
.mini-board span { aspect-ratio: 1; background-size: 86%; background-position: center; background-repeat: no-repeat; }
.mini-board span.l { background-color: var(--sq-light); }
.mini-board span.d { background-color: var(--sq-dark); }
.banner-art.faces { display: flex; right: 10px; bottom: 14px; width: auto; }
.banner-art.faces .av { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--bg-3); margin-left: -16px; overflow: hidden; }
.banner-art.shield { right: 18px; bottom: 18px; width: 78px; color: var(--bg-5); }

.stats-strip { display: flex; gap: 28px; margin: 22px 2px 0; color: var(--text-2); font-weight: 600; flex-wrap: wrap; }
.stats-strip b { color: var(--text); font-weight: 700; margin-right: 6px; }
.stats-strip[hidden], .stats-strip [hidden] { display: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 8px; vertical-align: 1px; }

.queue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qtile {
  background: var(--bg-3); border-radius: var(--radius-lg);
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow);
  transition: background 0.15s, transform 0.2s var(--ease);
  text-align: left;
}
.qtile:hover { background: #26404d; transform: translateY(-2px); }
.qtile-top { display: flex; justify-content: space-between; align-items: center; }
.qtile-stake { font-size: 22px; font-weight: 800; }
.qtile-tc { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 700; }
.qtile-tc svg { width: 15px; height: 15px; }
.qtile-foot { display: flex; justify-content: space-between; color: var(--text-2); font-size: 13px; font-weight: 600; }
.qtile-foot .win { color: var(--green); }
.waiting { display: inline-flex; align-items: center; gap: 6px; }
.waiting i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.waiting.some i { background: var(--green); }

.bot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bot-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3.2;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease);
  display: block;
}
.bot-card:hover { transform: translateY(-3px); }
.bot-card .art { position: absolute; inset: 0; }
.bot-card .art svg { width: 100%; height: 100%; display: block; }
.bot-card .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(8, 18, 26, 0.88));
}
.bot-card .label b { font-size: 18px; display: block; }
.bot-card .label span { color: var(--text-2); font-size: 13px; font-weight: 600; }

/* bets table */
.tabs { display: inline-flex; background: var(--bg-1); border-radius: 999px; padding: 5px; gap: 4px; }
.tabs button { padding: 0 16px; height: 36px; border-radius: 999px; font-weight: 700; transition: background 0.15s; }
.tabs button:hover { background: var(--bg-3); }
.tabs button.on { background: var(--bg-4); }
.table { width: 100%; border-collapse: collapse; font-weight: 600; }
.table th { text-align: left; color: var(--text-2); font-weight: 600; padding: 10px 14px; font-size: 13px; }
.table td { padding: 12px 14px; color: var(--text-2); white-space: nowrap; }
.table tbody tr:nth-child(odd) td { background: var(--bg-3); }
.table tbody tr td:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.table tbody tr td:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.table .r { text-align: right; }
.table td.strong, .table td .strong { color: var(--text); }
.table tr.new td { animation: rowIn 0.5s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } }
.table a.rowlink:hover { color: var(--text); text-decoration: underline; }
.gamecell { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.gamecell svg { width: 15px; height: 15px; color: var(--text-2); }
.table-wrap { overflow-x: auto; }
.empty { padding: 34px 16px; text-align: center; color: var(--text-3); font-weight: 600; }

/* ---------- game stage (Stake-style panel + arena) ---------- */
.stage {
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 640px;
}
.panel { background: var(--bg-3); padding: 14px; display: flex; flex-direction: column; min-width: 0; }
.arena { background: var(--bg-1); display: flex; flex-direction: column; min-width: 0; position: relative; }
.arena-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 22px; min-height: 0; }
.stage-foot {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-top: 2px solid var(--bg-2);
  background: var(--bg-1); color: var(--text-2);
}
.stage-foot .spacer { flex: 1; }
.stage-foot .gid { font-size: 12px; color: var(--text-3); font-weight: 600; }
.stage-foot a { font-weight: 600; font-size: 13px; padding: 6px 8px; border-radius: var(--radius); }
.stage-foot a:hover { color: var(--text); background: var(--bg-3); }

.readout {
  display: flex; align-items: center; justify-content: space-between;
  height: 40px; padding: 0 12px;
  background: var(--bg-2); border: 2px solid var(--bg-4); border-radius: var(--radius);
  font-weight: 700;
}
.readout .unit { color: var(--text-3); font-weight: 600; }
.panel .btn-lg { margin-top: 4px; }
.panel-note { color: var(--text-3); font-size: 12.5px; font-weight: 600; margin-top: 12px; line-height: 1.5; }
.panel-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

.board-wrap { width: min(100%, calc(100vh - 320px), 640px); min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.pbar { display: flex; align-items: center; gap: 10px; height: 44px; }
.pbar .who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.pbar .av { width: 34px; height: 34px; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); display: grid; place-items: center; font-weight: 800; color: var(--text-2); flex-shrink: 0; }
.pbar .av svg { width: 100%; height: 100%; display: block; }
.pbar .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar .sub { font-size: 12px; color: var(--text-3); font-weight: 600; }
.pbar .material { font-size: 12px; color: var(--text-3); font-weight: 700; display: flex; align-items: center; gap: 1px; }
.pbar .material img { width: 15px; height: 15px; opacity: 0.85; margin-right: -4px; }
.pbar .material em { font-style: normal; margin-left: 7px; }
.clock {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 22px;
  min-width: 112px; height: 44px; padding: 0 14px;
  border-radius: var(--radius);
  background: var(--bg-3); color: var(--text-2);
  display: flex; align-items: center; justify-content: flex-end;
  transition: background 0.2s, color 0.2s;
}
.clock.on { background: #e8edf1; color: var(--green-ink); }
.clock.low { color: var(--red); }
.clock.on.low { background: #fde3e8; }
.gone-note { font-size: 12px; color: var(--amber); font-weight: 700; }

/* the board */
.board {
  position: relative; width: 100%; aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background-image: conic-gradient(var(--sq-dark) 0 90deg, var(--sq-light) 0 180deg, var(--sq-dark) 0 270deg, var(--sq-light) 0);
  background-size: 25% 25%;
  touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: var(--shadow-lg);
  cursor: default;
}
.board .layer { position: absolute; inset: 0; pointer-events: none; }
.board .sq { position: absolute; width: 12.5%; height: 12.5%; }
.board .sq.last { background: var(--hl-move); }
.board .sq.sel { background: var(--hl-select); }
.board .sq.pre { background: rgba(237, 65, 99, 0.35); }
.board .sq.check { background: radial-gradient(circle, rgba(237, 65, 99, 0.95) 0%, rgba(237, 65, 99, 0.55) 35%, rgba(237, 65, 99, 0) 72%); }
.board .sq.hover { box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.65); }
.board .sq.dest::after { content: ''; position: absolute; left: 50%; top: 50%; width: 28%; height: 28%; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(15, 33, 46, 0.32); }
.board .sq.dest.cap::after { width: 86%; height: 86%; background: none; border: 6px solid rgba(15, 33, 46, 0.3); box-sizing: border-box; }
.board .sq.dest:hover::after { background: rgba(15, 33, 46, 0.45); }
.board .pc {
  position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%;
  background-size: 100%; background-repeat: no-repeat;
  will-change: transform;
  transition: transform 0.18s var(--ease);
  pointer-events: none;
}
.board .pc.drag { transition: none; z-index: 10; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35)); }
.board .pc.fade { transition: opacity 0.15s; opacity: 0; }
.board .pc.grab { cursor: grab; }
.board.can-move { cursor: pointer; }
.board .coord { position: absolute; font-size: clamp(8px, 1.5vw, 11px); font-weight: 700; pointer-events: none; }
.board .coord.file { bottom: 1px; right: 3px; }
.board .coord.rank { top: 2px; left: 3px; }
.board .coord.on-light { color: var(--sq-dark); }
.board .coord.on-dark { color: var(--sq-light); }
.board svg.arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.promo {
  position: absolute; z-index: 20; width: 12.5%;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  animation: pop 0.15s var(--ease);
}
.promo button { aspect-ratio: 1; background-size: 86%; background-position: center; background-repeat: no-repeat; transition: background-color 0.1s; }
.promo button:hover { background-color: #dfe7ed; }
.board-dim { position: absolute; inset: 0; background: rgba(15, 33, 46, 0.45); z-index: 15; }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } }

/* result overlay */
.result {
  position: absolute; left: 50%; top: 50%; z-index: 25;
  transform: translate(-50%, -50%);
  width: min(300px, 86%);
  background: var(--bg-2); border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 22px 20px 18px; text-align: center;
  border: 2px solid var(--bg-4);
  animation: pop 0.22s var(--ease);
}
.result.win { border-color: var(--green); }
.result h3 { font-size: 22px; }
.result .why { color: var(--text-2); font-weight: 600; margin-top: 4px; }
.result .amount { font-size: 26px; font-weight: 800; margin: 14px 0 4px; font-variant-numeric: tabular-nums; }
.result .amount-sub { color: var(--text-3); font-size: 12px; font-weight: 600; }
.result .actions { display: grid; gap: 8px; margin-top: 16px; }
.result .x { position: absolute; top: 6px; right: 6px; }

/* side panel during a game */
.gp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.gp-head .t { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.gp-head .t svg { width: 16px; height: 16px; color: var(--text-2); }
.gp-pot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.gp-pot .box { background: var(--bg-2); border-radius: var(--radius); padding: 10px 12px; }
.gp-pot .box span { display: block; font-size: 12px; color: var(--text-3); font-weight: 600; }
.gp-pot .box b { font-size: 16px; font-variant-numeric: tabular-nums; }
.moves {
  flex: 1; min-height: 160px; max-height: 360px; overflow-y: auto;
  background: var(--bg-2); border-radius: var(--radius);
  font-variant-numeric: tabular-nums; font-weight: 600;
  margin-bottom: 10px;
}
.moves .row { display: grid; grid-template-columns: 44px 1fr 1fr; }
.moves .row:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.moves .n { color: var(--text-3); padding: 6px 0 6px 12px; }
.moves button { text-align: left; padding: 6px 10px; border-radius: 3px; color: var(--text); }
.moves button:hover { background: var(--bg-3); }
.moves button.cur { background: var(--bg-4); }
.moves .empty { padding: 22px 12px; }
.nav-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.nav-row .btn { height: 34px; padding: 0; }
.act-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.offer { background: var(--bg-2); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; font-weight: 600; animation: pop 0.2s var(--ease); }
.offer span { flex: 1; }
.chat { margin-top: 12px; border-top: 2px solid var(--bg-2); padding-top: 10px; }
.chat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 700; }
.chat-mute { font-size: 12px; font-weight: 700; color: var(--text-3); padding: 3px 6px; border-radius: var(--radius); }
.chat-mute:hover { color: var(--text); background: var(--bg-2); }
.chat-log { background: var(--bg-2); border-radius: var(--radius); padding: 8px; height: 150px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; margin-bottom: 8px; }
.cm { max-width: 86%; padding: 6px 10px 7px; border-radius: 10px; line-height: 1.35; word-wrap: break-word; overflow-wrap: anywhere; color: var(--text); font-weight: 500; }
.cm .who { display: block; font-size: 11px; font-weight: 800; margin-bottom: 1px; }
.cm.me { align-self: flex-end; background: rgba(0, 231, 1, 0.13); border-bottom-right-radius: 3px; }
.cm.me .who { color: var(--green); }
.cm.opp { align-self: flex-start; background: rgba(20, 117, 225, 0.22); border-bottom-left-radius: 3px; }
.cm.opp .who { color: #7db8ff; }
.cm-note { align-self: center; font-size: 12px; font-weight: 600; margin: auto 0; }
.chat-form { display: flex; gap: 6px; margin-bottom: 8px; }
.chat-form .input { height: 34px; font-size: 13.5px; }
.chat-form .btn { height: 34px; }
.chat-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.chat-presets button { font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: var(--bg-4); transition: background 0.15s; }
.chat-presets button:hover { background: var(--bg-5); }

/* queue search state */
.search-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 16; background: var(--bg-2); border-radius: var(--radius-lg); padding: 22px 26px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); min-width: 250px; animation: pop 0.2s var(--ease); }
.search-card h3 { font-size: 18px; margin: 12px 0 2px; }
.search-card .muted { font-weight: 600; }
.search-card .t { font-size: 13px; color: var(--text-3); font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pulse { width: 46px; height: 46px; margin: 0 auto; position: relative; }
.pulse::before, .pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--green); animation: ripple 1.6s var(--ease) infinite; opacity: 0; }
.pulse::after { animation-delay: 0.8s; }
@keyframes ripple { 0% { transform: scale(0.3); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

.qlist { margin-top: 16px; border-top: 2px solid var(--bg-2); padding-top: 14px; }
.qlist h4 { font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 8px; }
.qrow { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 10px; border-radius: var(--radius); font-weight: 600; color: var(--text-2); transition: background 0.15s; }
.qrow:hover { background: var(--bg-2); color: var(--text); }
.qrow.on { background: var(--bg-2); color: var(--text); }
.qrow .waiting { font-size: 12px; }

/* bot picker */
.bot-pick { display: grid; gap: 6px; margin-bottom: 14px; }
.bot-opt { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius); background: var(--bg-2); text-align: left; transition: background 0.15s, box-shadow 0.15s; }
.bot-opt:hover { background: #1e3340; }
.bot-opt.on { box-shadow: inset 0 0 0 2px var(--green); background: var(--bg-1); }
.bot-opt .av { width: 42px; height: 42px; border-radius: var(--radius); overflow: hidden; }
.bot-opt .av svg { width: 100%; height: 100%; display: block; }
.bot-opt b { display: block; }
.bot-opt span { color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.color-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.color-pick button { height: 40px; border-radius: var(--radius); background: var(--bg-4); display: grid; place-items: center; box-shadow: var(--shadow); transition: background 0.15s; }
.color-pick button:hover { background: var(--bg-5); }
.color-pick button.on { background: var(--bg-1); box-shadow: inset 0 0 0 2px var(--green); }
.color-pick img { width: 32px; height: 32px; }
.color-pick .half { width: 32px; height: 32px; position: relative; }
.color-pick .half img { position: absolute; inset: 0; }
.color-pick .half img:last-child { clip-path: inset(0 0 0 50%); }

.bot-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 440px; }
.bot-hero .portrait { width: 168px; height: 168px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); }
.bot-hero .portrait svg { width: 100%; height: 100%; display: block; }
.bot-hero h2 { font-size: 26px; }
.bot-hero .style { color: var(--green); font-weight: 700; font-size: 13px; }
.bot-hero p { color: var(--text-2); font-weight: 500; }
.bot-hero .facts { display: flex; gap: 24px; margin-top: 4px; }
.bot-hero .facts div { display: flex; flex-direction: column; }
.bot-hero .facts b { font-size: 17px; }
.bot-hero .facts span { color: var(--text-3); font-size: 12px; font-weight: 600; }
.fine { color: var(--text-3); font-size: 12px; font-weight: 600; }

/* ---------- modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-back { position: absolute; inset: 0; background: rgba(5, 12, 18, 0.72); animation: fadeIn 0.15s; }
.modal {
  position: relative; width: min(500px, 100%); max-height: calc(100vh - 32px); overflow: hidden;
  background: var(--bg-2); border-radius: var(--radius-lg); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  display: flex; flex-direction: column;
  animation: modalIn 0.2s var(--ease);
}
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px 20px; }
.modal-head h3 { font-size: 16px; flex: 1; display: flex; align-items: center; gap: 10px; }
.modal-head h3 svg { width: 18px; height: 18px; color: var(--text-2); }
.modal-body { padding: 4px 20px 22px; overflow-y: auto; }
.modal-foot { background: var(--bg-1); padding: 14px 20px; color: var(--text-3); font-size: 12.5px; font-weight: 600; text-align: center; }
.modal-foot a, .modal-foot button { color: var(--text); font-weight: 700; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } }

/* wallet */
.coin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.coin-opt { height: 56px; border-radius: var(--radius); background: var(--bg-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 700; font-size: 13px; transition: background 0.15s, box-shadow 0.15s; }
.coin-opt:hover { background: var(--bg-4); }
.coin-opt.on { box-shadow: inset 0 0 0 2px var(--green); background: var(--bg-1); }
.coin-opt span { text-align: center; line-height: 1.15; }
.coin-opt small { display: block; font-size: 10px; color: var(--text-3); font-weight: 700; }
.pay-amt { display: flex; align-items: center; gap: 10px; background: var(--bg-1); border-radius: var(--radius); padding: 10px 12px; }
.pay-amt .ci { width: 26px; height: 26px; }
.pay-amt b { font-size: 20px; font-weight: 800; color: var(--text); word-break: break-all; }
.pay-amt > span { color: var(--text-2); font-weight: 700; margin-right: auto; }
.tx-btn { width: 100%; text-align: left; border-radius: 0; transition: background 0.15s; }
.tx-btn:hover { background: var(--bg-3); }
.tx .k .txid { display: block; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11px; }
.ci { width: 20px; height: 20px; }
.tx .ci { width: 26px; height: 26px; }
.addr-box { display: flex; gap: 14px; align-items: center; background: var(--bg-3); border-radius: var(--radius); padding: 12px; }
.addr-box .qr { width: 110px; height: 110px; background: #fff; border-radius: var(--radius); padding: 4px; flex-shrink: 0; }
.addr-box .qr svg { width: 100%; height: 100%; display: block; }
.addr-box .addr { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; word-break: break-all; color: var(--text); font-weight: 500; }
.addr-box .row { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.callout { background: rgba(255, 176, 46, 0.1); color: #ffd28a; border-radius: var(--radius); padding: 10px 12px; font-size: 12.5px; font-weight: 600; margin: 12px 0; line-height: 1.5; }
.callout.red { background: rgba(237, 65, 99, 0.12); color: #ff9db1; }
.callout.blue { background: rgba(20, 117, 225, 0.14); color: #a9cdf7; }
.sum { background: var(--bg-1); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 14px; font-weight: 600; }
.sum div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--text-2); }
.sum div b { color: var(--text); font-variant-numeric: tabular-nums; }
.sum div.total { border-top: 1px solid var(--bg-3); margin-top: 4px; padding-top: 7px; }
.tx { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--bg-3); font-weight: 600; }
.tx:last-child { border-bottom: 0; }
.tx .k { flex: 1; min-width: 0; }
.tx .k div { color: var(--text); }
.tx .k span { color: var(--text-3); font-size: 12px; }
.tx .amt { font-variant-numeric: tabular-nums; text-align: right; }
.tx .amt span { display: block; font-size: 12px; color: var(--text-3); }
.status { font-size: 12px; font-weight: 700; color: var(--text-2); }
.status.ok { color: var(--green); }
.status.wait { color: var(--amber); }
.status.bad { color: var(--red); }
.bar { height: 4px; border-radius: 2px; background: var(--bg-4); overflow: hidden; margin-top: 5px; width: 90px; margin-left: auto; }
.bar i { display: block; height: 100%; background: var(--amber); transition: width 0.4s var(--ease); }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: 72px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto;
  background: var(--bg-3); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start;
  font-weight: 600; border-left: 4px solid var(--bg-5);
  animation: toastIn 0.25s var(--ease);
}
.toast.ok { border-left-color: var(--green); }
.toast.bad { border-left-color: var(--red); }
.toast.info { border-left-color: var(--blue); }
.toast .tt { flex: 1; }
.toast .tt span { display: block; color: var(--text-2); font-size: 13px; font-weight: 500; margin-top: 2px; }
.toast.out { animation: toastOut 0.2s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ---------- account menu ---------- */
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: #fff; color: #2f4553; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px 0; animation: pop 0.15s var(--ease); z-index: 40;
}
.menu::before { content: ''; position: absolute; top: -6px; right: 14px; border: 6px solid transparent; border-top: 0; border-bottom-color: #fff; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px; font-weight: 700; color: #2f4553; text-align: left; }
.menu a:hover, .menu button:hover { background: #eef1f5; }
.menu svg { width: 16px; height: 16px; }
.menu .who { padding: 6px 14px 8px; font-size: 12px; color: #7d8ea6; font-weight: 600; border-bottom: 1px solid #e6eaef; margin-bottom: 4px; }

/* ---------- suspended banner ---------- */
.susp {
  background: #3a1a24; border-bottom: 2px solid var(--red);
  padding: 12px 3vw; font-weight: 600;
}
.susp-in { max-width: 1200px; margin: 0 auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.susp-in svg { width: 20px; height: 20px; color: var(--red); }
.susp-in div { flex: 1; min-width: 240px; }
.susp-in b { display: block; color: #fff; }
.susp-in span { color: #ffb8c6; font-size: 13px; }

/* ---------- prose pages ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: 24px; margin-bottom: 8px; }
.prose .lede { color: var(--text-2); font-size: 15px; margin-bottom: 26px; }
.prose h2 { font-size: 17px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--text-2); font-weight: 500; line-height: 1.65; }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 20px; margin: 8px 0; }
.prose li { margin: 4px 0; }
.prose b { color: var(--text); font-weight: 700; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.prose.legal h2 { font-size: 16px; margin-top: 28px; }
.prose.legal .caps { color: var(--text); font-weight: 600; }
.fp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.fp-grid .card { padding: 16px; }
.fp-grid h3 { font-size: 15px; margin-bottom: 6px; }
.fp-grid p { font-size: 13.5px; }

/* support */
.ticket { background: var(--bg-3); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 10px; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ticket-head b { font-size: 15px; }
.msg { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-2); white-space: pre-wrap; color: var(--text-2); font-weight: 500; }
.msg.staff { background: #18344a; color: #d5e6f7; }
.msg .meta { font-size: 11.5px; color: var(--text-3); font-weight: 700; margin-bottom: 4px; }

/* admin */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--bg-3); border-radius: var(--radius-lg); padding: 14px 16px; }
.kpi span { color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.kpi b { display: block; font-size: 20px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.verdict { font-weight: 700; font-size: 12.5px; }
.verdict.clean { color: var(--green); }
.verdict.suspicious { color: var(--amber); }
.verdict.engine-like { color: var(--red); }
.verdict.insufficient { color: var(--text-3); }

/* footer */
.footer { background: var(--bg-1); margin-top: auto; }
.footer-in { max-width: 1200px; margin: 0 auto; padding: 32px 3vw 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer h4 { font-size: 14px; margin-bottom: 10px; }
.footer a { display: block; color: var(--text-2); font-weight: 600; padding: 4px 0; }
.footer a:hover { color: var(--text); }
.footer p { color: var(--text-3); font-weight: 500; font-size: 13px; line-height: 1.6; max-width: 380px; }
.footer-coins { grid-column: 1 / -1; display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--bg-3); padding-top: 18px; color: var(--text-3); font-weight: 700; font-size: 13px; align-items: center; }
.footer-coins span { display: inline-flex; align-items: center; gap: 6px; }
.footer-coins svg { width: 18px; height: 18px; }
.footer-coins .copy { margin-left: auto; font-weight: 600; }

/* mobile nav */
.mnav { display: none; }
.scrim { display: none; }

/* skeleton */
.skel { background: linear-gradient(90deg, var(--bg-3) 0%, var(--bg-4) 50%, var(--bg-3) 100%); background-size: 200% 100%; animation: skel 1.2s linear infinite; border-radius: var(--radius); }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.view-enter { animation: viewIn 0.22s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .stage { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .sidebar { transform: translateX(-100%); width: 280px !important; }
  .side-open .sidebar { transform: none; }
  .side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(5, 12, 18, 0.6); z-index: 25; }
  .main, .collapsed .main { margin-left: 0; }
  .collapsed .sidebar .side-link span, .collapsed .sidebar .side-tabs, .collapsed .sidebar .side-note, .collapsed .sidebar .side-link .count { display: revert; }
  .collapsed .sidebar .side-link { justify-content: flex-start; padding: 0 14px; }
  .banners { grid-template-columns: 1fr 1fr; }
  .banners .banner:last-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .stage { grid-template-columns: 1fr; }
  .arena { order: -1; }
  .arena-main { padding: 10px; }
  .board-wrap { width: min(100%, 560px); }
  .moves { max-height: 200px; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  :root { --header-h: 56px; }
  body { padding-bottom: 64px; }
  .page { padding: 16px 12px 32px; }
  .header-in { padding: 0 12px; gap: 8px; }
  .logo span.word { display: none; }
  .balance { min-width: 0; padding: 0 10px; font-size: 14px; }
  .wallet-box .btn { padding: 0 12px; }
  .wallet-box .btn .lbl { display: none; }
  .header-mid { justify-content: flex-end; }
  .banners, .queue-grid, .bot-row, .fp-grid { grid-template-columns: 1fr; }
  .banners .banner:last-child { grid-column: auto; }
  .queue-grid { grid-template-columns: 1fr 1fr; }
  .bot-card { aspect-ratio: 16 / 9; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-coins .copy { margin-left: 0; width: 100%; }
  .coin-grid { grid-template-columns: repeat(4, 1fr); }
  .clock { min-width: 92px; font-size: 19px; height: 38px; }
  .pbar { height: 38px; }
  .mnav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; height: 64px; z-index: 35;
    background: var(--bg-1); box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.25);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mnav a, .mnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--text-2); }
  .mnav svg { width: 20px; height: 20px; }
  .mnav .on { color: var(--text); }
  .table th:nth-child(3), .table td:nth-child(3), .table th:nth-child(4), .table td:nth-child(4) { display: none; }
  .toasts { top: auto; bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
