/* Omad Dice — night arcade. Deep violet-black ground, neon green (win/under), hot pink (lose/over), gold (coins). */
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #0a0918;
  --bg-2: #110f26;
  --card: #161331;
  --card-2: #1d1940;
  --well: #0d0b20;
  --line: rgba(190, 180, 255, 0.10);
  --line-2: rgba(190, 180, 255, 0.18);
  --ink: #f2f0ff;
  --mute: #a19dc7;
  --dim: #6e6a96;
  --violet: #8b5cff;
  --violet-2: #b18cff;
  --win: #1fe08a;
  --win-deep: #0b9d5e;
  --lose: #ff3d6e;
  --lose-deep: #c2184a;
  --gold: #ffc940;
  --gold-deep: #e09200;
  --accent: var(--violet);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(16px, 3vw, 36px);
  --r-lg: 22px;
  --r: 14px;
  --r-sm: 10px;
  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --fast: 140ms;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  font: 500 var(--step-0)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    url("/img/noise.svg"),
    radial-gradient(900px 520px at 12% -8%, rgba(139, 92, 255, 0.28), transparent 70%),
    radial-gradient(800px 520px at 100% 0%, rgba(255, 61, 110, 0.13), transparent 70%),
    radial-gradient(1000px 700px at 50% 110%, rgba(31, 224, 138, 0.07), transparent 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}
main { flex: 1; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.8125rem; word-break: break-all; }
.muted { color: var(--mute); }
.label, label, .folio {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--mute);
}
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; }

/* ---- icons ---- */
.ico { width: 18px; height: 18px; flex: none; }
.coin { width: 20px; height: 20px; flex: none; filter: drop-shadow(0 0 6px rgba(255, 201, 64, 0.45)); }

/* ---- header ---- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 22px;
  padding: 12px var(--gutter);
  background: rgba(10, 9, 24, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
}
.brand b { font-weight: 800; color: var(--gold); }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 4px 12px rgba(139, 92, 255, 0.55)); transition: transform 300ms var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--mute); padding: 8px 14px; border-radius: 999px; font-weight: 700;
  transition: color var(--fast), background var(--fast);
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(139, 92, 255, 0.18); box-shadow: 0 0 0 1px rgba(139, 92, 255, 0.35) inset; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 10px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 201, 64, 0.14), rgba(255, 201, 64, 0.05));
  box-shadow: 0 0 0 1px rgba(255, 201, 64, 0.35) inset, 0 0 22px -6px rgba(255, 201, 64, 0.45);
}
.balance .label { display: none; }
.balance strong { font-size: 1.05rem; font-weight: 800; color: var(--gold); white-space: nowrap; }
.balance.is-bump strong { animation: bump 520ms var(--ease); }
@keyframes bump { 30% { transform: scale(1.14); text-shadow: 0 0 14px var(--gold); } }
.bonus {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px;
  border: 0; cursor: pointer; font-weight: 800; white-space: nowrap; color: #241500;
  background: linear-gradient(180deg, #ffd866, #ffb300);
  box-shadow: 0 6px 20px -6px rgba(255, 179, 0, 0.7), 0 -2px 0 rgba(0, 0, 0, 0.18) inset;
  transition: transform var(--fast), filter var(--fast);
}
.bonus:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.bonus:disabled { cursor: default; color: var(--mute); background: var(--card-2); box-shadow: 0 0 0 1px var(--line-2) inset; }
.bonus .num { font-variant-numeric: tabular-nums; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--card-2); color: var(--mute); box-shadow: 0 0 0 1px var(--line) inset;
}
.icon-btn:hover { color: var(--ink); }
.icon-btn[aria-pressed="true"] { color: var(--win); box-shadow: 0 0 0 1px rgba(31, 224, 138, 0.4) inset; }
.icon-btn .when-on { display: none; }
.icon-btn[aria-pressed="true"] .when-on { display: block; }
.icon-btn[aria-pressed="true"] .when-off { display: none; }
.langs { display: flex; padding: 3px; border-radius: 999px; background: var(--card-2); box-shadow: 0 0 0 1px var(--line) inset; }
.langs button {
  border: 0; background: none; padding: 0 10px; height: 36px; border-radius: 999px; font-size: 0.75rem; font-weight: 800;
  color: var(--dim); cursor: pointer; letter-spacing: 0.04em;
}
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed="true"] { color: #fff; background: var(--violet); box-shadow: 0 0 14px -2px rgba(139, 92, 255, 0.8); }

/* ---- cards ---- */
.card, .vcard {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(36, 31, 76, 0.92), rgba(22, 19, 49, 0.94));
  box-shadow: var(--shadow), 0 0 0 1px var(--line) inset;
  min-width: 0;
}
.shield {
  width: 22px; height: 22px; flex: none; background: var(--win);
  -webkit-mask: url("/img/shield.svg") center / contain no-repeat; mask: url("/img/shield.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(31, 224, 138, 0.6));
}

/* ---- avatar (colored initial; hue comes from the username) ---- */
.ava {
  --h: 260;
  display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px;
  font: 800 0.8rem/1 var(--display); color: #fff; text-transform: uppercase;
  background: linear-gradient(140deg, hsl(var(--h) 85% 62%), hsl(calc(var(--h) + 40) 80% 45%));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

/* ---- account menu ---- */
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 7px;
  border-radius: 999px; background: var(--card-2); box-shadow: 0 0 0 1px var(--line) inset; font-weight: 800;
}
.menu summary .name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute);
  transform: translateY(-2px) rotate(45deg); }
.menu-body {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 210px; padding: 6px;
  background: var(--card-2); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line-2) inset, 0 20px 40px rgba(0, 0, 0, 0.6); display: grid;
}
.menu-body button, .menu-body a {
  text-align: left; padding: 11px 12px; background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
  text-decoration: none; font-weight: 700;
}
.menu-body button:hover, .menu-body a:hover { background: rgba(255, 255, 255, 0.06); }

/* ---- buttons & inputs ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-sm); background: var(--card-2);
  font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap; color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2) inset;
  transition: background var(--fast), color var(--fast), transform var(--fast), filter var(--fast);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-ink, .btn-accent {
  color: #fff; background: linear-gradient(180deg, #9d74ff, #6d3df0);
  box-shadow: 0 8px 22px -8px rgba(139, 92, 255, 0.9), 0 -2px 0 rgba(0, 0, 0, 0.2) inset;
}
.btn-ink:hover:not(:disabled), .btn-accent:hover:not(:disabled) { filter: brightness(1.1); }
.btn-line { background: transparent; }
.btn-line:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); }

input[type="text"], input[type="password"], input[type="search"], input:not([type]), input[type="number"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: var(--r-sm);
  background: var(--well); box-shadow: 0 0 0 1px var(--line-2) inset; font-size: var(--step-0); font-weight: 600;
  transition: box-shadow var(--fast);
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--violet) inset, 0 0 18px -4px rgba(139, 92, 255, 0.7); }
.hint { font-size: var(--step--1); color: var(--mute); }
.form-msg { min-height: 1.2em; font-size: var(--step--1); font-weight: 700; color: var(--lose); }
.form-msg:empty { min-height: 0; }
.stack { display: grid; gap: 8px; }
.stack label { margin-top: 10px; }
.stack .btn { margin-top: 14px; }
.link { font-weight: 800; color: var(--violet-2); text-underline-offset: 3px; }
.link:hover { color: var(--ink); }

/* ---- tabs (shared) ---- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--well); box-shadow: 0 0 0 1px var(--line) inset;
  overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; }
.tabs button {
  border: 0; background: none; padding: 0 16px; height: 38px; border-radius: 999px; cursor: pointer; font-weight: 800;
  color: var(--mute); white-space: nowrap; transition: color var(--fast), background var(--fast);
}
.tabs button[aria-selected="true"] { color: #fff; background: var(--card-2); box-shadow: 0 0 0 1px var(--line-2) inset, 0 4px 14px -6px rgba(139, 92, 255, 0.8); }
.tabs button:hover { color: var(--ink); }

/* ---- tables (shared) ---- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
table.data th {
  text-align: left; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim);
  padding: 10px 12px; white-space: nowrap;
}
table.data td { padding: 10px 12px; border-top: 1px solid var(--line); white-space: nowrap; font-weight: 600; }
table.data tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, 0.015); }
table.data .r { text-align: right; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: rgba(139, 92, 255, 0.10); }
table.data .user { max-width: 30ch; overflow: hidden; text-overflow: ellipsis; font-weight: 800; }
.who { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; vertical-align: middle; }
.who span:last-child { overflow: hidden; text-overflow: ellipsis; }
.pos { color: var(--win); font-weight: 800; }
.neg { color: var(--lose); font-weight: 700; }
.empty { padding: 28px 12px; color: var(--mute); text-align: center; }

/* ---- dialog ---- */
.dialog {
  position: fixed; border: 0; padding: 28px; width: min(420px, calc(100vw - 32px)); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card-2), var(--card)); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2) inset, 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px -20px rgba(139, 92, 255, 0.6);
}
.dialog-wide { width: min(640px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(5, 4, 14, 0.72); backdrop-filter: blur(4px); }
.dialog h2 { font-size: 1.25rem; margin-bottom: 14px; padding-right: 40px; }
.dialog-close { position: absolute; top: 12px; right: 12px; }
.dialog-close button { width: 38px; height: 38px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.06);
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--mute); }
.dialog-close button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.12); }
.dialog .tabs { margin-bottom: 6px; }

/* ---- footer ---- */
.foot {
  border-top: 1px solid var(--line);
  padding: 22px var(--gutter) 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 32px;
  font-size: var(--step--1);
  color: var(--mute);
  background: rgba(5, 4, 14, 0.5);
}
.foot p { max-width: 48ch; padding-left: 12px; border-left: 2px solid rgba(255, 201, 64, 0.5); }
.foot-meta { grid-column: 1 / -1; color: var(--dim); margin-top: 10px; border-left: 0 !important; padding-left: 0 !important; }

/* ---- toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); opacity: 0;
  background: var(--card-2); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 800; pointer-events: none;
  box-shadow: 0 0 0 1px var(--line-2) inset, 0 16px 40px rgba(0, 0, 0, 0.6);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease); max-width: calc(100vw - 32px);
}
.toast[data-kind="good"] { color: #04170d; background: var(--win); box-shadow: 0 0 30px -6px var(--win); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---- announcement ---- */
.announce {
  margin: 14px var(--gutter) 0; padding: 12px 16px; border-radius: var(--r); font-weight: 700;
  background: linear-gradient(90deg, rgba(139, 92, 255, 0.25), rgba(255, 61, 110, 0.18));
  box-shadow: 0 0 0 1px rgba(139, 92, 255, 0.4) inset;
}

/* ---- 404 ---- */
.page-404 main { padding: 12vh var(--gutter); }
.code404 { font: 900 clamp(120px, 30vw, 320px)/0.85 var(--display); letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--violet-2), var(--lose)); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 900px) {
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .top { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .top-right { display: contents; }
  .brand { order: 1; margin-right: auto; }
  .balance { order: 2; }
  .account { order: 3; }
  .top-tools { order: 4; }
  .nav { order: 5; }
  .brand-mark { width: 30px; height: 30px; }
  .menu summary .name { max-width: 8ch; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; }
}
.bonus::before {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("/img/gift.svg") center / contain no-repeat; mask: url("/img/gift.svg") center / contain no-repeat;
}
.top-tools { display: flex; align-items: center; gap: 10px; }
.bonus .b-short { display: none; }
@media (max-width: 560px) {
  .top { gap: 8px; }
  .brand { margin-right: auto; }
  .brand span { display: none; }
  .top-tools { display: contents; }
  .balance { order: 2; height: 38px; padding: 0 12px 0 8px; }
  .balance strong { font-size: 0.95rem; }
  .bonus { order: 3; height: 38px; padding: 0 12px; }
  .bonus .b-full { display: none; }
  .bonus .b-short { display: inline; }
  .account { order: 4; }
  .menu summary { height: 38px; padding: 0 10px 0 5px; }
  .menu summary .name { display: none; }
  #open-login { min-height: 38px; padding: 0 14px; }
  .top:has(.balance)::before { content: ""; order: 5; flex-basis: 100%; height: 0; margin-top: -8px; }
  .nav { order: 6; margin-right: auto; }
  .nav a { padding: 7px 11px; font-size: 0.875rem; }
  .icon-btn { order: 7; width: 38px; height: 38px; }
  .langs { order: 8; }
  .langs button { height: 32px; padding: 0 8px; }
  .admin-name { height: 38px; }
}

/* ---- shell: game rail (left column on desktop, bottom tab bar on phones) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shell { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 96px minmax(0, 1fr); }
.shell > main { min-width: 0; }
.gi { width: 26px; height: 26px; flex: none; color: var(--violet-2); }
.gi-dice { color: #a77bff; }
.gi-mines { color: #4cfbae; --gi-b: #eafff4; }
.gi-crash { color: #ff6d92; }
.gi-plinko { color: #b18cff; }
.gi-wheel { color: #ffb84d; --gi-a: #ff3d6e; }
.gi-lobby { color: #8b5cff; }
.rail {
  position: sticky; top: 76px; align-self: start; display: grid; gap: 6px; margin: 22px 0 0 14px; padding: 8px;
  border-radius: var(--r-lg); background: rgba(22, 19, 49, 0.82); box-shadow: var(--shadow), 0 0 0 1px var(--line) inset;
}
.rail-item {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: var(--r);
  text-decoration: none; color: var(--mute); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em;
  transition: background var(--fast), color var(--fast), transform var(--fast);
}
.rail-item .gi { width: 30px; height: 30px; transition: transform 240ms var(--ease); }
.rail-item:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.rail-item:hover .gi { transform: translateY(-2px) rotate(-6deg); }
.rail-item[aria-current="page"] { color: #fff; background: linear-gradient(180deg, rgba(139, 92, 255, 0.32), rgba(139, 92, 255, 0.12)); box-shadow: 0 0 0 1px rgba(139, 92, 255, 0.5) inset, 0 8px 20px -10px rgba(139, 92, 255, 0.9); }
.rail-item[aria-current="page"]::before { content: ""; position: absolute; left: -9px; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.rail-item.is-off { opacity: 0.45; }
.rail-item.is-off::after { content: ""; position: absolute; top: 8px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--lose); }

/* ---- small shared bits: segmented choice, game tag, bot badge, switched-off banner ---- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: var(--r); background: var(--well); box-shadow: 0 0 0 1px var(--line-2) inset; }
.seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 6px; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--mute); font-weight: 800; cursor: pointer; white-space: nowrap; transition: background var(--fast), color var(--fast);
}
.seg button:hover:not(:disabled) { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.seg button[aria-checked="true"] { color: #fff; background: linear-gradient(180deg, #9d74ff, #6d3df0); box-shadow: 0 6px 16px -8px rgba(139, 92, 255, 0.9); }
.seg button:disabled { cursor: not-allowed; opacity: 0.6; }

.gtag { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; }
.gtag .gi { width: 20px; height: 20px; }
.bot-badge {
  display: inline-flex; align-items: center; gap: 3px; flex: none; padding: 1px 6px 1px 4px; border-radius: 6px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; color: #0a0918; background: #7ee0ff;
  box-shadow: 0 0 10px -2px rgba(126, 224, 255, 0.8);
}
.bot-badge .gi-bot { width: 13px; height: 13px; color: #0a0918; --gi-b: #7ee0ff; }
tr.is-bot .ava { filter: saturate(0.3); }
.game-off {
  grid-column: 1 / -1; padding: 12px 16px; border-radius: var(--r); font-weight: 800; color: #fff;
  background: linear-gradient(90deg, rgba(255, 61, 110, 0.32), rgba(255, 61, 110, 0.12)); box-shadow: 0 0 0 1px rgba(255, 61, 110, 0.5) inset;
}

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  body:has(.rail) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .rail {
    position: fixed; z-index: 35; top: auto; left: 0; right: 0; bottom: 0; margin: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; border-radius: 18px 18px 0 0;
    background: rgba(13, 11, 32, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -1px 0 var(--line-2), 0 -14px 30px rgba(0, 0, 0, 0.5);
  }
  .rail-item { padding: 6px 2px 5px; font-size: 0.64rem; gap: 2px; min-width: 0; }
  .rail-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rail-item .gi { width: 26px; height: 26px; }
  .rail-item[aria-current="page"]::before { left: 25%; right: 25%; top: -6px; bottom: auto; width: auto; height: 3px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
