/*
 * TrackSpins — стиль «Almanac» (05.10.2026, по макету из Claude Design).
 * Тёплая тёмная тема по умолчанию и светлая ([data-theme="light"]), IBM Plex Sans для текста и Plex Mono для чисел,
 * плоские секции с тонкими линиями вместо карточек. Старые имена переменных (--panel, --line, --text…) оставлены
 * как синонимы новых, чтобы встроенные стили шаблонов не ломались.
 */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/IBMPlexSans-var.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/IBMPlexMono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/IBMPlexMono-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/IBMPlexMono-600.woff2') format('woff2'); }

:root {
  --bg: #13120f; --surface: #1a1814; --raised: #24211c; --rule: #2f2b25; --rule-soft: #24211c;
  --ink: #f4efe6; --ink-2: #d6cfc3; --muted: #aaa397; --faint: #8c8579;
  --accent: #ff5a36; --accent-ink: #ff7d60; --on-accent: #13120f;
  --up: #6cc78f; --down: #ef8190; --warm: #e3a64e; --rare: #ff5a36; --cold: #7fb2f0;
  --s-1: #7fa8f2; --s-2: #e9c95a; --s-5: #ef8a9b; --s-10: #a58cff; --s-cf: #6fd3e4; --s-ch: #86d48f; --s-pa: #e98ad6; --s-ct: #f4efe6;
  --r-red: #c8402f; --r-black: #2a2722; --r-green: #2f8f57;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* синонимы старых имён */
  --panel: var(--surface); --panel-2: var(--raised); --line: var(--rule); --text: var(--ink); --hot: var(--rare);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f1e8; --surface: #fffdf8; --raised: #ece6d9; --rule: #d9d1c0; --rule-soft: #e8e2d5;
  --ink: #1d1b17; --ink-2: #3a362f; --muted: #5f584e; --faint: #746c60;
  --accent: #c4361a; --accent-ink: #b5301a; --on-accent: #fffdf8;
  --up: #1f7a45; --down: #b3283a; --warm: #94590a; --rare: #c4361a; --cold: #2a63b8;
  --s-1: #2f5fc4; --s-2: #8a6a00; --s-5: #b8324d; --s-10: #6a4fd1; --s-cf: #0e7889; --s-ch: #2c7a36; --s-pa: #a8338f; --s-ct: #1d1b17;
  --r-red: #b8321f; --r-black: #2a2722; --r-green: #23784a;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
}
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }
@keyframes ts-in { from { transform: translateX(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

main { max-width: 1200px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 32px) 64px; overflow-x: clip; }
h1 { margin: 8px 0 10px; font: 600 clamp(27px, 5vw, 40px)/1.1 var(--sans); letter-spacing: -.02em; text-wrap: balance; }
h2 { margin: 0 0 6px; font: 600 19px/1.25 var(--sans); }
h3 { margin: 16px 0 8px; font: 600 16px/1.3 var(--sans); }
h4 { margin: 0 0 6px; font: 600 14px/1.3 var(--sans); }
p { margin: 0 0 12px; }
.lede { color: var(--muted); max-width: 70ch; margin-top: 0; font-size: 17px; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 4px 0 14px; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono, .num, td.num, th.num { font-family: var(--mono); }
.up { color: var(--up); }
.down { color: var(--down); }

/* ---------- шапка ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: var(--bg); position: relative; z-index: 6; }
.site-head-in { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); height: 56px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font: 600 18px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); position: relative; flex: none; }
.brand-mark i { position: absolute; left: 50%; top: -2px; width: 2px; height: 9px; margin-left: -1px; background: var(--accent); }
.brand span { color: inherit; }
.site-nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { height: 36px; padding: 0 10px; display: flex; align-items: center; white-space: nowrap; font: 500 14px/1 var(--sans); text-decoration: none; color: var(--muted); border-radius: 4px; }
.site-nav a:hover { background: var(--raised); color: var(--ink); }
.site-nav a.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.live-badge { display: flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); color: var(--muted); padding-right: 6px; white-space: nowrap; border: 0; letter-spacing: 0; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); vertical-align: middle; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 1000px) {
  .site-nav { display: none; }   /* 8 пунктов не влезают — всё в шторке «Menu» */
}
/* узкий компьютер: место под 8 пунктов меню — без значка live и часов */
@media (min-width: 1001px) and (max-width: 1180px) { .site-head .live-badge { display: none; } }

/* нижняя выдвижная панель: меню и выбор периода */
.sheet-back { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .5); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-width: 560px; margin: 0 auto; background: var(--surface); border-top: 1px solid var(--rule); border-radius: 12px 12px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; max-height: 85vh; overflow-y: auto; }
.sheet[hidden], .sheet-back[hidden] { display: none; }
.sheet-grip { align-self: center; width: 36px; height: 4px; border-radius: 2px; background: var(--rule); margin: 4px 0 10px; flex: none; }
.sheet-label { font: 500 12px/1 var(--mono); letter-spacing: .05em; color: var(--muted); padding: 14px 0 6px; text-transform: uppercase; }
.sheet a, .sheet .sheet-item { min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule-soft); font: 500 17px/1.2 var(--sans); text-decoration: none; color: var(--ink); }
.sheet a::after { content: '→'; color: var(--muted); font-family: var(--mono); }
.sheet a.on { color: var(--accent-ink); }

/* ---------- секции (бывшие карточки) ---------- */
.card { padding: 20px 0 24px; margin: 0; border-top: 1px solid var(--rule); background: none; border-radius: 0; }
.card:first-child { border-top: 0; }
.card h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card h2 .small, .card h2 .muted { font: 400 12px/1.2 var(--mono); color: var(--muted); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.block { margin: 0; padding: 20px 0 24px; border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head .hint { flex-basis: 100%; margin: 4px 0 0; }
.more { color: var(--accent-ink); text-decoration: none; font: 500 14px/1 var(--sans); white-space: nowrap; }
.more:hover { text-decoration: underline; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); column-gap: 48px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid.tight { margin-top: 12px; }
.grid-2 > .card { border-top: 1px solid var(--rule); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); column-gap: 48px; }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- плитки и обзор ---------- */
.overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin: 8px 0 14px; }
.ov { padding: 14px 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; min-width: 0; background: none; border-radius: 0; }
.ov b { display: block; font: 600 22px/1.1 var(--mono); letter-spacing: -.02em; overflow-wrap: anywhere; }
.ov span { font: 400 13px/1.35 var(--sans); color: var(--muted); }
.stat { padding: 14px 12px; border: 1px solid var(--rule); }
.stat b { display: block; font: 600 24px/1.1 var(--mono); }
.stat span { color: var(--muted); font-size: 13px; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 18px 0 6px; }
.tile { padding: 12px 12px; border: 1px solid var(--rule); border-left: 3px solid var(--rule); background: none; border-radius: 0; }
.tile.warm { border-left-color: var(--warm); }
.tile.hot { border-left-color: var(--rare); }
.tile-label { font: 500 12px/1.3 var(--mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.tile-value { font: 600 26px/1.15 var(--mono); }
.tile-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tile.small .tile-value { font-size: 20px; }

/* ---------- таблицы ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data, .table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td, .table th, .table td { padding: 0 10px; height: 44px; border-bottom: 1px solid var(--rule-soft); text-align: left; }
table.data th, .table th { height: auto; padding: 8px 10px; font: 500 12px/1.2 var(--sans); color: var(--muted); border-bottom: 1px solid var(--rule); text-transform: none; letter-spacing: 0; white-space: nowrap; }
table.data th:first-child, table.data td:first-child, .table th:first-child, .table td:first-child { padding-left: 0; }
table.data th:last-child, table.data td:last-child, .table th:last-child, .table td:last-child { padding-right: 0; }
table.data td.num, table.data th.num, .table .num { text-align: right; font-family: var(--mono); }
table.data tr.is-bonus td { background: color-mix(in oklab, var(--accent) 5%, transparent); }
td.mono, .table.data td.mono, .data td.mono { font: 400 13px/1.2 var(--mono); color: var(--muted); }
td.big { font: 600 16px/1 var(--mono); color: var(--accent-ink); }
table.data a, .table a { color: var(--ink); text-decoration: none; }
table.data a:hover, .table a:hover { color: var(--accent-ink); }
.table.compact td, .table.compact th { height: 36px; }
td.hot, .num.hot { color: var(--up); font-weight: 600; }
td.cold, .num.cold { color: var(--down); font-weight: 600; }
tr.drought-warm td:first-child { box-shadow: inset 3px 0 0 var(--warm); padding-left: 8px; }
tr.drought-hot td:first-child { box-shadow: inset 3px 0 0 var(--rare); padding-left: 8px; }
tr.drought-hot td b { color: var(--rare); }
@media (max-width: 520px) { table.data, .table { font-size: 13px; } }

/* ---------- метки исходов и иконки из игр ---------- */
.sector { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 4px; font: 600 13px/1.4 var(--sans); background: var(--raised); border: 1px solid var(--rule); color: var(--ink); }
.sector.has-ico { padding: 0; background: none; border: 0; }
.seg-ico { height: 28px; width: auto; vertical-align: middle; display: inline-block; }
.s-1 { color: var(--s-1); } .s-2 { color: var(--s-2); } .s-5 { color: var(--s-5); } .s-10 { color: var(--s-10); }
.s-CoinFlip { color: var(--s-cf); } .s-CashHunt { color: var(--s-ch); } .s-Pachinko { color: var(--s-pa); } .s-CrazyBonus { color: var(--s-ct); }

/* ---------- вкладки страницы, окна, переключатели ---------- */
.page-tabs { display: flex; gap: 24px; margin: 6px 0 4px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.page-tabs::-webkit-scrollbar { display: none; }
.page-tabs a { height: 46px; display: flex; align-items: center; white-space: nowrap; font: 500 15px/1 var(--sans); color: var(--muted); text-decoration: none; padding: 0; border: 0; background: none; border-radius: 0; }
.page-tabs a:hover { color: var(--ink); }
.windows { display: flex; gap: 0; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: 4px; padding: 2px; }
.windows a { height: 36px; min-width: 44px; padding: 0 10px; display: flex; align-items: center; justify-content: center; border-radius: 3px; font: 500 13px/1 var(--mono); color: var(--muted); text-decoration: none; border: 0; }
.windows a:hover { color: var(--ink); }
.windows a.active { background: var(--ink); color: var(--bg); font-weight: 500; }
.win-sep { width: 1px; background: var(--rule); margin: 6px 4px; color: transparent; overflow: hidden; }
.variants { display: flex; gap: 6px; margin: 6px 0 0; }
.variants a { height: 36px; padding: 0 12px; display: flex; align-items: center; border: 1px solid var(--rule); border-radius: 18px; color: var(--muted); text-decoration: none; font: 500 14px/1 var(--sans); }
.variants a.active { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.prov-list, .related { display: flex; flex-wrap: wrap; gap: 8px; }
.prov-chip, .related a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 18px; font: 500 14px/1 var(--sans); background: none; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.prov-chip:hover, .related a:hover { border-color: var(--ink-2); color: var(--ink); }

/* ---------- кнопки и формы ---------- */
.btn, .btn-reset, .filters button, .btn-primary { height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 4px; background: transparent; font: 500 14px/1 var(--sans); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn:hover, .btn-reset:hover, .filters button:hover { border-color: var(--ink-2); }
.btn-primary, .filters button { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { filter: none; opacity: .9; }
.btn-primary:disabled { opacity: .5; cursor: default; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .f-search { flex: 1 1 240px; min-width: 200px; }
.filters input, .filters select, .calc select, .calc input, .sim-controls select {
  height: 44px; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 4px; padding: 0 12px; font: 400 15px/1 var(--sans);
}
.filters select { max-width: 260px; }
.f-check { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.calc { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 8px 0 14px; }
.calc input { width: 110px; font-family: var(--mono); }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 16px 0; color: var(--muted); font: 400 13px/1 var(--mono); }
.pager a { height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); text-decoration: none; padding: 0 12px; }
@media (max-width: 520px) { .filters select { max-width: none; width: 100%; } }

/* ---------- верх страницы игры ---------- */
.game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; }
.game-head h1 { margin: 6px 0 4px; }
.game-prov { color: var(--muted); font: 400 14px/1.45 var(--sans); }
.crumbs { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.crumbs a { color: var(--muted); }
.byline { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.byline a { color: var(--ink-2); }
.lastres { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 20px; align-items: center; }
.lr-value { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0; }
.lr-value b { font: 600 32px/1 var(--mono); letter-spacing: -.02em; }
.lr-value .sector { font-size: 18px; padding: 4px 12px; }
.lr-value .seg-ico { height: 52px; }
.lr-strip { display: flex; flex-wrap: wrap; gap: 4px; }
.lr-strip > :first-child { animation: ts-in .4s ease-out; }
.lr-strip .seg-ico { height: 30px; }
.chip-r { display: inline-flex; align-items: center; min-height: 30px; font: 500 12px/1 var(--mono); padding: 0 8px; border-radius: 4px; white-space: nowrap; }
.chip-r.c-low { color: var(--muted); border: 1px solid var(--rule); }
.chip-r.c-mid { color: var(--up); border: 1px solid color-mix(in oklab, var(--up) 45%, transparent); }
.chip-r.c-big { color: var(--on-accent); background: var(--accent); font-weight: 600; }
.p-label { font: 500 12px/1 var(--mono); letter-spacing: .05em; color: var(--accent-ink); text-transform: uppercase; }
.p-sub { font-size: 14px; color: var(--muted); }
.week-summary { color: var(--ink-2); max-width: 760px; font-size: 17px; line-height: 1.55; margin: 0; padding: 20px 0; border-top: 1px solid var(--rule); text-wrap: pretty; }
.week-summary strong { color: var(--ink); font: 600 16px var(--mono); }

/* «самый просроченный бонус» */
.predictor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 48px; align-items: start; border-top: 2px solid var(--accent); background: none; }
.predictor .p-main { padding: 0; display: flex; flex-direction: column; gap: 8px; }
.predictor .p-value { font: 600 44px/1 var(--mono); letter-spacing: -.03em; }
.predictor .p-value small { font: 400 16px/1.3 var(--sans); color: var(--ink-2); letter-spacing: 0; }
.predictor .p-name { font: 600 22px/1.2 var(--sans); letter-spacing: -.01em; }
.predictor.hot .p-value, .predictor.warm .p-value { color: var(--ink); }
.p-list { display: flex; flex-direction: column; gap: 0; }
.p-list .tile { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border: 0; border-bottom: 1px solid var(--rule-soft); border-left: 3px solid transparent; padding: 0 0 0 10px; }
.p-list .tile span { font: 500 15px/1.2 var(--sans); color: var(--ink); }
.p-list .tile .tile-value { font: 500 16px/1 var(--mono); }
.p-list .tile.warm { border-left-color: var(--warm); }
.p-list .tile.hot { border-left-color: var(--rare); }
.p-list .tile.hot .tile-value { color: var(--rare); }
@media (max-width: 760px) { .predictor, .lastres { grid-template-columns: 1fr; } }

/* ---------- засухи на главной ---------- */
.drought-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); column-gap: 32px; }
.drought { display: block; text-decoration: none; color: var(--ink); padding: 12px 0 14px 12px; border-bottom: 1px solid var(--rule-soft); border-left: 3px solid transparent; background: none; border-radius: 0; }
.drought:hover { background: var(--surface); color: var(--ink); }
.drought.warm { border-left-color: var(--warm); }
.drought.hot { border-left-color: var(--rare); }
.drought-game { font: 500 15px/1.3 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; }
.drought-value { font: 600 24px/1.2 var(--mono); margin-top: 4px; }
.drought-value small { font: 400 13px var(--sans); color: var(--muted); }
.drought-label { font-size: 13px; color: var(--muted); }
.drought-bar { height: 8px; margin-top: 8px; background: repeating-linear-gradient(90deg, var(--rule) 0 2px, transparent 2px 5px); }
.drought-bar span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--ink-2) 0 2px, transparent 2px 5px); }
.drought.warm .drought-bar span { background: repeating-linear-gradient(90deg, var(--warm) 0 2px, transparent 2px 5px); }
.drought.hot .drought-bar span { background: repeating-linear-gradient(90deg, var(--rare) 0 2px, transparent 2px 5px); }

/* ---------- карточки списков (игры, джекпоты, новости, RTP) ---------- */
.game-card, .jp-card, .news-card, .rtp-card, .pred-card {
  display: block; text-decoration: none; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--rule-soft); border-radius: 0; padding: 12px 0;
}
.game-card:hover, .jp-card:hover, .news-card:hover, .rtp-card:hover { background: var(--surface); color: var(--ink); }
.game-card.soon { opacity: .55; }
.game-name, .jp-name, .news-title { font: 600 16px/1.3 var(--sans); margin: 0; }
.game-meta, .jp-prov, .news-date, .rtp-prov { font-size: 13px; color: var(--muted); }
.game-rounds { margin-top: 6px; font: 400 14px/1.3 var(--mono); }
.game-updated { font-size: 12px; }
.badge { display: inline-block; margin-top: 6px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: 3px 6px; }
.jp-card.stale { opacity: .75; }
.jp-amount { font: 600 24px/1.2 var(--mono); color: var(--ink); margin: 6px 0; }
.jp-rows div { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-top: 1px solid var(--rule-soft); }
.jp-rows span { color: var(--muted); }
.news-card p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.rtp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); column-gap: 24px; margin: 16px 0; }
.rtp-card { overflow: hidden; border-top: 0; }
.rtp-card.hot .rtp-main { color: var(--up); }
.rtp-card.cold .rtp-main { color: var(--down); }
.rtp-title { font-weight: 600; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rtp-main { font: 600 24px/1.2 var(--mono); }
.rtp-row { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 4px; }
.rtp-row b { color: var(--ink); font-weight: 600; font-family: var(--mono); }
.rtp-img { width: 100%; margin: 0 0 8px; display: block; height: 110px; object-fit: cover; background: var(--raised); border-radius: 4px; }

/* ---------- графики ---------- */
.chart-wrap { width: 100%; overflow-x: auto; }
canvas { max-width: 100%; }
.heatmap { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; align-items: end; height: 140px; margin-top: 8px; border-bottom: 1px solid var(--rule); }
.heat-cell { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.heat-bar { background: var(--ink-2); opacity: .85; min-height: 2px; border-radius: 0; }
.heat-label { font: 400 10px/1 var(--mono); color: var(--muted); text-align: center; margin-top: 4px; }
.hist { display: grid; gap: 6px; margin: 8px 0; }
.hist-row { display: grid; grid-template-columns: 110px 1fr 140px; gap: 10px; align-items: center; font: 400 13px/1.2 var(--mono); }
.hist-bar { position: relative; height: 14px; background: var(--rule-soft); }
.hist-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-2); }
.hist-bar s { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--accent); }
.hist-val { text-align: right; }
@media (max-width: 620px) { .hist-row { grid-template-columns: 76px 1fr 96px; } }

/* ---------- рулетка ---------- */
.roul-strip { display: flex; flex-wrap: wrap; gap: 4px; }
.roul-num { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 50%; font: 600 14px/1 var(--mono); color: #fff; }
.roul-num small { font: 500 10px/1 var(--mono); opacity: .85; margin-top: 2px; }
.roul-strip .roul-num:has(small) { border-radius: 6px; height: auto; padding: 4px 6px; }
.r-red { background: var(--r-red); } .r-black { background: var(--r-black); border: 1px solid #4a453d; } .r-green { background: var(--r-green); }
.roul-chart { display: flex; gap: 2px; align-items: flex-end; height: 170px; margin-top: 8px; overflow-x: auto; border-bottom: 1px solid var(--rule); }
.roul-bar-wrap { flex: 1 0 18px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.roul-bar { min-height: 2px; }
.roul-bar.r-red { background: var(--r-red); } .roul-bar.r-black { background: var(--faint); border: 0; } .roul-bar.r-green { background: var(--r-green); }
.roul-bar-label { font: 400 9px/1 var(--mono); color: var(--muted); text-align: center; margin-top: 3px; }

/* ---------- семейства игр ---------- */
.dice-strip { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 16px; }
.roll { display: inline-flex; align-items: center; gap: 2px; padding: 3px 7px; border: 1px solid var(--rule); border-radius: 4px; }
.roll b { margin-left: 5px; font: 600 13px/1 var(--mono); color: var(--ink); }
.die { font-size: 22px; line-height: 1; }
.cdie { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(255,255,255,.25); vertical-align: middle; }
.c-yellow { background: #facc15; } .c-white { background: #f1f5f9; } .c-pink { background: #f472b6; }
.c-blue { background: #3b82f6; } .c-red { background: #dc2626; } .c-green { background: #16a34a; } .c-black { background: #111827; }
.roads { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 12px; }
.roads > div { min-width: 0; max-width: 100%; overflow-x: auto; }
.bead, .bigroad { display: grid; grid-template-rows: repeat(6, 22px); grid-auto-flow: column; grid-auto-columns: 22px; gap: 2px; }
.bead span { display: grid; place-items: center; border-radius: 50%; font: 600 11px/1 var(--mono); color: #fff; }
.bigroad span { display: grid; place-items: center; border-radius: 50%; border: 3px solid; background: transparent; position: relative; }
.bigroad i { font-style: normal; font-size: 10px; color: var(--up); font-weight: 700; }
.bead .rd-p { background: #3d6fd1; } .bead .rd-b { background: #d24c4c; } .bead .rd-t { background: #2f8f57; } .bead .rd-a { background: #7c5ad6; }
.bigroad .rd-p { border-color: #4a7fe0; } .bigroad .rd-b { border-color: #e05555; }
.ball-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.ball { display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: 4px; border: 1px solid var(--rule); }
.ball b { font: 600 14px/1.2 var(--mono); } .ball small { font: 400 11px/1.2 var(--mono); color: var(--muted); }
.ball.b-hot { border-color: var(--rare); } .ball.b-hot b { color: var(--rare); }
.ball.b-cold { border-color: var(--cold); } .ball.b-cold b { color: var(--cold); }
.ball.sm { display: inline-flex; width: 26px; padding: 2px 0; margin: 1px; font-size: 12px; font-weight: 600; }
.draw { white-space: normal; }
.kspread span { display: inline-block; margin-right: 12px; white-space: nowrap; }
.marble { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); vertical-align: middle; margin-right: 3px; }
@media (max-width: 620px) { .ball-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* модуль Crazy Time: поле Cash Hunt */
#bonus-inside h3 { font-size: 16px; margin: 18px 0 6px; }
#bonus-inside h4 { font-size: 14px; margin: 0 0 6px; font-weight: 600; }
.chboards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px 48px; margin: 10px 0; }
.chboards > div { min-width: 0; }
.chgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; }
.chgrid i { font-style: normal; display: grid; place-items: center; aspect-ratio: 1; font: 500 10px/1 var(--mono); letter-spacing: -.04em; background: var(--raised); color: var(--muted); overflow: hidden; }
.chgrid .t1 { color: var(--ink-2); }
.chgrid .t2 { background: color-mix(in oklab, var(--s-ch) 30%, var(--surface)); color: var(--ink); }
.chgrid .t3 { background: var(--s-ch); color: var(--bg); }
.chgrid .t4 { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.heatgrid i { background: color-mix(in oklab, var(--accent) calc(8% + var(--h) * 70%), var(--surface)); color: var(--ink); }

/* ---------- видео, FAQ, текст ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.video { position: relative; display: block; border-radius: 4px; overflow: hidden; background: var(--surface); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.video:hover { border-color: var(--ink-2); color: var(--ink); }
.video img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.video .v-title { font: 500 14px/1.35 var(--sans); padding: 10px 12px 4px; max-height: 3.9em; overflow: hidden; }
.video .v-ch { font: 400 12px/1.3 var(--mono); color: var(--muted); padding: 0 12px 10px; }
.video .v-play { position: absolute; top: calc(28% - 22px); left: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.video .v-play::after { content: ''; border-left: 12px solid var(--bg); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.video.live .v-badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: var(--on-accent); font: 600 11px/1 var(--mono); padding: 4px 6px; border-radius: 3px; }
.video iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.faq details { border-bottom: 1px solid var(--rule-soft); border-top: 0; padding: 0; }
.faq summary { cursor: pointer; min-height: 52px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 16px/1.35 var(--sans); padding: 8px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 18px/1 var(--mono); color: var(--muted); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--accent-ink); }
.faq p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.prose { max-width: 76ch; }
.prose h2 { margin-top: 28px; }
.prose p, .prose li { line-height: 1.65; color: var(--ink-2); }
.prose a { color: var(--ink); }
.article h1 { margin-top: 4px; }
.method { margin: 0; padding-left: 18px; }
.method li { margin: 6px 0; color: var(--ink-2); }
.cat-note { color: var(--muted); font-size: 13px; }
.notice, .gap-note { border: 1px solid color-mix(in oklab, var(--warm) 45%, transparent); background: color-mix(in oklab, var(--warm) 8%, transparent); color: var(--ink); border-radius: 4px; padding: 12px 16px; margin: 16px 0; font-size: 14px; }
.author-card { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 600 22px/1 var(--sans); background: var(--raised); color: var(--accent-ink); }
img.author-avatar { display: block; object-fit: cover; }
.tbl-title { font-size: 15px; margin: 0 0 8px; }
.best-win { display: inline-block; margin-right: 10px; white-space: nowrap; font-family: var(--mono); }
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); }

/* ---------- предсказания и симулятор ---------- */
.pred-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); column-gap: 32px; margin: 16px 0; }
.pred-head { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.pred-q { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.35; }
.pred-q:hover { color: var(--accent-ink); }
.pred-prob { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pred-bar { flex: 1; height: 8px; background: var(--rule-soft); overflow: hidden; }
.pred-fill { height: 100%; background: var(--ink-2); }
.pred-val { font: 600 18px/1 var(--mono); min-width: 62px; text-align: right; }
.pred-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.pred-outcomes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pred-out { font-size: 12px; border: 1px solid var(--rule); border-radius: 3px; padding: 3px 8px; }
.pred-out b { color: var(--accent-ink); }
.pred-foot { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 12px; }
.pred-foot b { color: var(--ink); }
.chip { width: 46px; height: 46px; border-radius: 50%; cursor: pointer; background: none; color: var(--ink); border: 2px dashed var(--rule); font: 600 13px/1 var(--mono); }
.chip.active { border-style: solid; border-color: var(--accent); color: var(--accent-ink); }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: 4px; padding: 18px 20px; margin: 20px 0; text-decoration: none; color: var(--ink); background: none; }
.promo:hover { border-color: var(--ink-2); color: var(--ink); }
.promo-body { flex: 1 1 320px; }
.promo-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.promo-text { color: var(--muted); font-size: 14px; margin: 0; max-width: 70ch; }
.promo-cta { background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; padding: 12px 18px; border-radius: 4px; white-space: nowrap; }

/* ---------- подвал ---------- */
.age { display: inline-block; border: 1px solid var(--muted); border-radius: 3px; padding: 0 5px; font: 600 12px/1.5 var(--mono); }

/* иконки исходов в ленте и таблицах */
.sector.has-ico span { font: 500 14px/1.2 var(--sans); color: var(--ink); }
.sector.has-ico.chip-r { padding: 0; min-height: 0; border: 0; }
.lr-value .sector.has-ico .seg-ico { height: 56px; }
td .sector.has-ico { gap: 8px; white-space: nowrap; }
td .seg-ico { height: 26px; }
@media (max-width: 420px) { .head-tools { gap: 0; } .site-head-in { gap: 10px; } }

/* первая колонка широких таблиц не уезжает при прокрутке вбок */
.table-wrap table.data th:first-child, .table-wrap table.data td:first-child, .table-wrap .table th:first-child, .table-wrap .table td:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; }
.seg-ico { width: auto; }
.table-wrap tr.is-bonus td:first-child { background: color-mix(in oklab, var(--accent) 5%, var(--bg)); }

/* ---------- вкладки страницы игры ---------- */
.gtabs { position: sticky; top: 0; z-index: 5; background: var(--bg); display: flex; gap: 28px; border-bottom: 1px solid var(--rule); margin: 10px 0 0; }
.gtabs a { height: 48px; display: flex; align-items: center; font: 500 15px/1 var(--sans); color: var(--muted); text-decoration: none; }
.gtabs a i { display: none; }
.gtabs a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.gpanel { scroll-margin-top: 56px; }
.gpanel > .card:first-child, .gpanel > p.week-summary:first-child { border-top: 0; }
.gpanel[hidden] { display: none; }
[id] { scroll-margin-top: 56px; }
@media (max-width: 900px) {
  .has-gtabs .gtabs { position: fixed; left: 0; right: 0; bottom: 0; top: auto; margin: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding-bottom: env(safe-area-inset-bottom); }
  .has-gtabs .gtabs a { height: 58px; flex-direction: column; justify-content: center; gap: 6px; font-size: 13px; }
  .has-gtabs .gtabs a i { display: block; width: 18px; height: 3px; border-radius: 2px; background: transparent; }
  .has-gtabs .gtabs a[aria-current="page"] { box-shadow: none; }
  .has-gtabs .gtabs a[aria-current="page"] i { background: var(--accent); }
  .has-gtabs body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .gpanel, [id] { scroll-margin-top: 8px; }
}

/* переключатель периода */
.winbar { display: flex; gap: 8px; align-items: center; padding: 4px 0; flex: 1 1 360px; max-width: 560px; }
.seg { flex: 1; display: flex; border: 1px solid var(--rule); border-radius: 4px; padding: 2px; min-width: 0; }
.seg a { flex: 1; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 3px; font: 500 14px/1 var(--mono); color: var(--muted); text-decoration: none; }
.seg a:hover { color: var(--ink); }
.seg a[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.win-more { font-family: var(--mono); white-space: nowrap; }
.win-more.on { border-color: var(--ink); }
#stats .card-head { position: sticky; top: 49px; z-index: 4; background: var(--bg); padding: 8px 0; }
@media (max-width: 900px) { #stats .card-head { top: 0; } }
/* свёрнутое вступление */
.intro.clamp { max-height: 4.65em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.more-btn { border: 0; background: none; padding: 4px 0 10px; color: var(--accent-ink); font: 500 14px/1 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.seg-ico, td .seg-ico, .lr-strip .seg-ico { max-width: none; }

/* --- Рулетка (дизайн «Almanac», 06.10.2026) ------------------------------------------------- */
.rball { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 600 12px/1 var(--mono); color: #fff; background: var(--r-black); border: 1px solid var(--rule); }
.rball.r-red { background: var(--r-red); border-color: var(--r-red); }
.rball.r-green { background: var(--r-green); border-color: var(--r-green); }
.rball.sm { width: 28px; height: 28px; }
.rball.md { width: 52px; height: 52px; font-size: 22px; }
.rball.lg { width: 60px; height: 60px; font-size: 24px; }
.rball.newest { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
.rball.struck::after { content: ''; position: absolute; left: 5px; right: 5px; bottom: -6px; height: 2px; border-radius: 1px; background: var(--accent); }
.ink2 { color: var(--ink-2); }
.small-s { font-size: 13px; line-height: 1.35; }
.sub-h { display: block; font: 500 13px/1.2 var(--sans); color: var(--ink-2); margin-bottom: 8px; }
.tone-warm { color: var(--warm); } .tone-hot { color: var(--rare); }
.dg { font-size: 12px; margin-left: 4px; color: var(--muted); }
.dg-warm { color: var(--warm); } .dg-hot { color: var(--rare); }

.rl-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); column-gap: 48px; }
.rlast { border-top: 0; display: flex; flex-direction: column; gap: 14px; }
.rlast-main { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.rlast-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rlast-txt b { font: 600 19px/1.2 var(--sans); }
.rstrip-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: -6px; }
.rstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 9px 4px; justify-items: center; }
.rstrip .hint { margin: 0; }
.rcold { border-top: 2px solid var(--accent); display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.rcold-main { display: flex; align-items: center; gap: 14px; }
.rcold-val { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rcold-val b { font: 600 48px/1 var(--mono); letter-spacing: -.03em; }
.rcold-val span { font: 400 16px/1.3 var(--sans); color: var(--ink-2); }
.rcold-txt { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; text-wrap: pretty; }
.rcold-more { padding-top: 6px; }
.rcold .hint { margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px 0 3px; border: 1px solid var(--rule); border-radius: 18px; }
.pill b { font: 500 14px/1 var(--mono); }
.pill .dg { margin-left: 0; }

.dbar { position: relative; height: 30px; }
.dbar::before, .dbar-fill { content: ''; position: absolute; left: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--rule) 0 2px, transparent 2px 5px); }
.dbar::before { right: 0; }
.dbar-fill { background: repeating-linear-gradient(90deg, var(--ink-2) 0 2px, transparent 2px 5px); }
.dbar-warm .dbar-fill { background: repeating-linear-gradient(90deg, var(--warm) 0 2px, transparent 2px 5px); }
.dbar-hot .dbar-fill { background: repeating-linear-gradient(90deg, var(--rare) 0 2px, transparent 2px 5px); }
.dbar-tick { position: absolute; bottom: 0; width: 2px; height: 17px; margin-left: -1px; background: var(--ink); }
.dbar-lbl { position: absolute; top: 0; transform: translateX(-50%); font: 400 11px/1 var(--mono); color: var(--muted); white-space: nowrap; }

.card-head.stick { position: sticky; top: 49px; z-index: 4; background: var(--bg); padding: 8px 0; }
@media (max-width: 900px) { .card-head.stick { top: 0; } }
.rfreq-wrap { overflow-x: auto; margin: 4px -16px 0; padding: 0 16px; }
.rfreq { min-width: 560px; display: flex; flex-direction: column; gap: 4px; }
.rfreq-bars { position: relative; height: 140px; display: grid; grid-template-columns: repeat(37, 1fr); gap: 2px; align-items: end; border-bottom: 1px solid var(--rule); }
.rfreq-bars i { display: block; background: var(--faint); border: 0; }
.rfreq-bars i.r-red { background: var(--r-red); } .rfreq-bars i.r-green { background: var(--r-green); }
.rfreq-bars s { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--ink); text-decoration: none; }
.rfreq-nums { display: grid; grid-template-columns: repeat(37, 1fr); gap: 2px; }
.rfreq-nums span { font: 400 10px/1 var(--mono); color: var(--muted); text-align: center; }

.rows { display: flex; flex-direction: column; }
.row { display: grid; gap: 10px 12px; align-items: center; min-height: 46px; border-bottom: 1px solid var(--rule-soft); }
.row-num { grid-template-columns: 34px 1fr auto 64px; }
.row-num > span:last-child { text-align: right; font-size: 13px; }
.row-num .muted { font-size: 13px; }
.row-mult { grid-template-columns: 34px 1fr auto; min-height: 50px; }
.row-mult .muted { font-size: 13px; line-height: 1.3; }
.row-mult b { font-size: 17px; }
.row-bar { grid-template-columns: minmax(0, 96px) 1fr 60px 64px; min-height: 44px; }
.row-bar > span:first-child { font: 500 14px/1.2 var(--sans); }
.row-bar > b, .row-bar > span:last-child { text-align: right; font-size: 14px; }
.row-bar > span:last-child { font-size: 13px; }
.obar { position: relative; height: 6px; background: var(--rule-soft); }
.obar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-2); }
.obar s { position: absolute; top: -4px; width: 2px; height: 14px; margin-left: -1px; background: var(--accent); }

.bgroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px 32px; }
.bgroup h3 { margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font: 500 12px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.bgroup h3 .muted { text-transform: none; letter-spacing: 0; }
.row-bet { grid-template-columns: 1fr auto auto; min-height: 42px; gap: 10px; }
.row-bet > span:first-child { font-size: 14px; line-height: 1.25; }
.row-bet .muted { font-size: 12px; }
.row-bet b { font: 500 15px/1 var(--mono); min-width: 52px; text-align: right; white-space: nowrap; }

.mbars-wrap { margin: 4px 0 12px; }   /* без прокрутки: столбики сжимаются под ширину (28.10.2026) */
.mbars-wrap .sub-h { margin-bottom: 8px; }
.mbars, .mbars-lbl { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
@media (max-width: 520px) { .mbars-lbl span { font-size: 9px; letter-spacing: -.02em; } .mbars-lbl b { font-size: 10px; } }
.mbars { align-items: end; height: 90px; border-bottom: 1px solid var(--rule); }
.mbars i { display: block; background: var(--ink-2); opacity: .85; }
.mbars i.hi { background: var(--accent); opacity: 1; }
.mbars-lbl span { display: flex; flex-direction: column; gap: 3px; align-items: center; font: 400 11px/1 var(--mono); color: var(--muted); padding-top: 5px; }
.mbars-lbl b { font: 500 12px/1 var(--mono); color: var(--ink); }
.more-table summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font: 500 14px/1.3 var(--sans); color: var(--ink-2); }
.more-table summary:hover { color: var(--accent-ink); }

/* --- Главная (дизайн «Almanac», 06.10.2026) ------------------------------------------------- */
.hero2 { padding: 28px 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px 48px; align-items: end; }
.hero2 h1 { margin: 0 0 10px; font: 600 clamp(28px, 5.4vw, 46px)/1.08 var(--sans); letter-spacing: -.025em; }
.hero2 p { margin: 0; color: var(--muted); text-wrap: pretty; }
.finder { display: flex; flex-direction: column; gap: 8px; position: relative; }
.finder label { font: 500 13px/1 var(--sans); color: var(--ink-2); }
.finder-box { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }
.finder-box:focus-within { border-color: var(--ink-2); }
.finder-box input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: 400 16px/1 var(--sans); -webkit-appearance: none; appearance: none; }
.finder-ico { width: 14px; height: 14px; border: 2px solid var(--muted); border-radius: 50%; flex: none; position: relative; }
.finder-ico i { position: absolute; right: -5px; bottom: -4px; width: 6px; height: 2px; background: var(--muted); transform: rotate(45deg); }
.finder-res { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }
.finder-res[hidden] { display: none; }
.finder-res a { min-height: 48px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule-soft); text-decoration: none; font: 500 15px/1.2 var(--sans); }
.finder-res a:hover { background: var(--raised); color: var(--ink); }
.finder-res a span { font: 400 12px/1 var(--sans); color: var(--muted); }
.finder-res p { margin: 0; padding: 14px; font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { height: 40px; padding: 0 12px; display: flex; align-items: center; border: 1px solid var(--rule); border-radius: 18px; text-decoration: none; color: var(--ink-2); font: 500 14px/1 var(--sans); }
.chips a:hover { border-color: var(--ink-2); color: var(--ink); }

.hsec { display: flex; flex-direction: column; }
.hsec h2 { margin-bottom: 8px; }
.hsec-accent { border-top: 2px solid var(--accent); padding-top: 16px; }
.hsec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hsec-head h2 { margin-bottom: 6px; }
.hsec-head .more, .more-row { font: 500 14px/1 var(--sans); color: var(--ink-2); }
.more-row { line-height: 44px; }
.hcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); column-gap: 48px; }
.hcols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); column-gap: 40px; }
.hcols > .card, .hcols3 > .card { border-top: 1px solid var(--rule); }
.hcols > .hsec-accent { border-top: 2px solid var(--accent); }
.hgames { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); column-gap: 32px; }
.hrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 60px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); text-decoration: none; color: var(--ink); }
a.hrow:hover { background: var(--surface); color: var(--ink); }
.hrow-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hrow-l > b { font: 500 15px/1.25 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow-l > span { font: 400 13px/1.3 var(--sans); color: var(--muted); }
.hgames .hrow-l > b { font-size: 16px; }
.hgames .hrow-l > span, .hcols3 .hrow-l > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hrow-r > b { font-size: 16px; font-weight: 500; white-space: nowrap; }
.hrow-r > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.hrow-r > span.up { color: var(--up); }
.lastb { min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid var(--rule); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font: 600 12px/1 var(--mono); white-space: nowrap; }
.lastb.ico { border: 0; padding: 0; }
.lastb .seg-ico { height: 30px; max-width: 64px; object-fit: contain; }
.hnews { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); text-decoration: none; color: var(--ink); }
.hnews:hover { background: var(--surface); color: var(--ink); }
.hnews .mono { font-size: 12px; }
.hnews b { font: 500 16px/1.35 var(--sans); text-wrap: pretty; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px 40px; margin: 6px 0 18px; }
.why div { display: flex; flex-direction: column; gap: 6px; }
.why b { font: 600 28px/1 var(--mono); letter-spacing: -.02em; }
.why span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.why-text { max-width: 760px; }

.seg button { flex: 1; height: 40px; border: 0; border-radius: 3px; background: none; cursor: pointer; font: 500 14px/1 var(--sans); color: var(--muted); white-space: nowrap; padding: 0 6px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Список игр (дизайн «Almanac», 06.10.2026) ---------------------------------------------- */
.games-bar { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
.games-bar .seg { flex: 1 1 260px; }
.sort-btn { height: 44px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.gsec { border-top: 0; padding-bottom: 8px; }
.gsec[hidden] { display: none; }
.gsec h2 a { text-decoration: none; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 8px; }
.gcard { display: flex; flex-direction: column; gap: 12px; padding: 14px; min-height: 132px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); text-decoration: none; color: var(--ink); }
.gcard:hover { border-color: var(--ink-2); color: var(--ink); }
.gcard:active { background: var(--raised); }
.gcard.soon { opacity: .6; }
.gcard-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.gcard-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gcard-name b { font: 600 16px/1.25 var(--sans); text-wrap: balance; }
.gcard-name span { font-size: 13px; line-height: 1.2; color: var(--muted); }
.gcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding-top: 10px; border-top: 1px solid var(--rule-soft); font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.gcard-foot .dg { margin: 0 2px 0 0; }
.gcard-foot .mono { text-align: right; font-size: 12px; line-height: 1.35; white-space: nowrap; }
.tone-stale { color: var(--muted); }

/* --- Нижняя панель на телефоне (кроме страниц игр — там своя панель вкладок) ------------------ */
.bnav { display: none; }
@media (max-width: 900px) {
  :root:not(.has-gtabs) .bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); }
  .bnav a, .bnav button { height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; font: 500 13px/1 var(--sans); color: var(--muted); text-decoration: none; cursor: pointer; }
  .bnav i { display: block; width: 18px; height: 3px; border-radius: 2px; }
  .bnav [aria-current="page"] { color: var(--ink); font-weight: 600; }
  .bnav [aria-current="page"] i { background: var(--accent); }
  :root:not(.has-gtabs) body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* --- Страница игры: доводка по макету (06.10.2026) ------------------------------------------ */
.predictor2 { border-top: 2px solid var(--accent); display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.gpanel > .predictor2:first-child { border-top: 2px solid var(--accent); }
.pv { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pv > b { font: 600 48px/1 var(--mono); letter-spacing: -.03em; }
.pv > span { font-size: 16px; line-height: 1.3; color: var(--ink-2); }
.pv .p-name { font-weight: 600; color: var(--ink); }
.pv-txt { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; max-width: 760px; text-wrap: pretty; }
.pv-txt .ink { color: var(--ink); }
.drows { display: flex; flex-direction: column; margin-top: 4px; max-width: 760px; }
.drow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(72px, auto); gap: 12px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--rule-soft); }
.drow > span:first-child { font: 500 15px/1.2 var(--sans); }
.drow .dbar { height: 8px; }
.drow .dbar-tick { height: 16px; bottom: -4px; }
.drow > b { text-align: right; font: 500 16px/1 var(--mono); white-space: nowrap; }
.predictor2 .hint { margin: 4px 0 0; }
.mrows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 40px; }
.mrow { display: flex; flex-direction: column; gap: 8px; padding: 10px 0 12px; border-bottom: 1px solid var(--rule-soft); }
.mrow-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 500 15px/1.3 var(--sans); }
.mrow-top b { font: 500 18px/1 var(--mono); white-space: nowrap; }
.mrow .dbar { height: 8px; }
.mrow .dbar-tick { height: 16px; bottom: -4px; }
.obs { display: inline-grid; grid-template-columns: 52px 72px; gap: 8px; align-items: center; }
.obs .obar { height: 6px; }
.coinbar { position: relative; display: block; height: 8px; margin-top: 4px; background: #3b6fd8; }
.coinbar i { position: absolute; left: 0; top: 0; bottom: 0; background: #d8463b; }
.coinbar s { position: absolute; left: 50%; top: -3px; width: 2px; height: 14px; margin-left: -1px; background: var(--ink); }
.ov-wide { grid-column: span 2; }
@media (max-width: 400px) { .ov-wide { grid-column: 1 / -1; } }
.flaps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.flap { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; border-top: 3px solid var(--rule); }
.flaps { font-size: inherit; color: inherit; }
.flap b { font: 600 20px/1 var(--mono); color: var(--ink); }
.flap span { font-size: 12px; color: var(--muted); }
.flap-green { border-top-color: #3fae5d; } .flap-blue { border-top-color: #3b6fd8; } .flap-yellow { border-top-color: #e3b33b; }
:root[data-theme="light"] .flap-green { border-top-color: #2e8b47; } :root[data-theme="light"] .flap-yellow { border-top-color: #b8860b; }
.recs { list-style: none; margin: 0; padding: 0; }
.rec { display: grid; grid-template-columns: 22px auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--rule-soft); }
.rec-n { font-size: 12px; }
.rec:not(:has(.rec-ico)) { grid-template-columns: 22px minmax(0, 1fr) auto; }
.rec-ico .seg-ico { height: 30px; max-width: 64px; object-fit: contain; }
.rec-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rec-l b { font: 500 15px/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-l span { font-size: 12px; color: var(--muted); }
.rec-x { font: 600 17px/1 var(--mono); white-space: nowrap; }

/* --- Главная: живые карточки столов (07.10.2026) ------------------------------------------- */
.hero3 { padding: 22px 0 18px; align-items: center; }
.hero3 h1 { font-size: clamp(26px, 4.6vw, 40px); }
.lcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 8px; }
.lcard { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); text-decoration: none; color: var(--ink); min-width: 0; }
.lcard:hover { border-color: var(--ink-2); color: var(--ink); }
.lcard:active { background: var(--raised); }
.lc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lc-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lc-name b { font: 600 16px/1.25 var(--sans); }
.lc-name span { font-size: 13px; color: var(--muted); }
.lc-name .lc-pl { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lc-st { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/1.2 var(--mono); color: var(--muted); white-space: nowrap; }
.lc-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: pulse 2s infinite; }
.lcard.paused .lc-st { color: var(--warm); white-space: normal; text-align: right; }
.lcard.paused .lc-strip { opacity: .55; }
.lc-strip { display: flex; gap: 5px; align-items: center; overflow: hidden; min-height: 38px; }
.lc-r { flex: none; display: inline-flex; }
/* лента карточки: значки крупнее, их меньше (04.11.2026: было 24/30 px и 20 штук) */
.lc-r .lastb { min-width: 32px; height: 32px; padding: 0 5px; font-size: 13px; }
.lc-r .lastb.ico { padding: 0; }
.lc-r .lastb .seg-ico { height: 32px; max-width: 64px; }
.lc-r .rball.sm { width: 32px; height: 32px; font-size: 13px; }
.lc-new .lastb { min-width: 38px; height: 38px; }
.lc-new .lastb .seg-ico { height: 38px; max-width: 76px; }
.lc-new .rball.sm { width: 38px; height: 38px; font-size: 15px; }
.lc-new { margin-right: 4px; }
.lcard.flash .lc-new { animation: lc-in .5s ease-out; }
/* лента-табло (04.11.2026, lcards.js conveyor): лента едет сама, у нового значка — только «вспыхивание» внутри */
.lcard.conv .lc-new { animation: none; }
.lcard.conv .lc-in > :first-child { animation: lc-in .55s .2s cubic-bezier(.2,.8,.2,1) both, lc-glow 2s .3s ease-out; }
/* свечение по контуру самого значка (щит, шар, плашка) — drop-shadow, не прямоугольная рамка; место под него в ленте сверху/снизу */
@keyframes lc-glow { 0%, 20% { filter: drop-shadow(0 0 5px color-mix(in oklab, var(--up) 90%, transparent)); } 100% { filter: drop-shadow(0 0 0 transparent); } }
.lc-n { display: inline-block; font-variant-numeric: tabular-nums; }
.lc-n.lc-tick { animation: lc-tick .45s cubic-bezier(.2,.8,.2,1); }
@keyframes lc-tick { from { transform: translateY(55%); opacity: 0; } to { transform: none; opacity: 1; } }
.lc-swap { animation: lc-swap .6s ease-out; }
@keyframes lc-swap { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }
@keyframes lc-in { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.lc-foot { font-size: 13px; line-height: 1.4; color: var(--ink-2); border-top: 1px solid var(--rule-soft); padding-top: 10px; }
.lc-foot b { font-weight: 600; }
.lc-what { color: var(--muted); }
.lc-foot .dg { margin-left: 3px; }
.more-tables { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.more-tables .chips a { height: 36px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .lcard.flash .lc-new, .lc-st i, .lcard.conv .lc-in > :first-child, .lc-n.lc-tick, .lc-swap { animation: none; } }
.lc-r .lastb.lc-dot { min-width: 16px; border: 0; color: var(--faint); font-size: 22px; padding: 0; }
@media (max-width: 700px) { .more-tables .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; } .more-tables .chips a { flex: none; } }
.lc-strip { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.lc-legend { font: 400 11px/1 var(--mono); color: var(--faint); margin-top: -6px; }


/* --- Страница игры: сегодня/вчера, пауза стола, оценка отклонения (07.10.2026) -------------- */
.lr-paused { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--warm); max-width: 44ch; }
.today .card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.today-t { max-width: 640px; }
.today-t th[scope="row"] { font: 500 14px/1.3 var(--sans); color: var(--ink); text-align: left; white-space: nowrap; }
.today-t td { white-space: nowrap; }
.today-t td b { font: 600 15px/1 var(--mono); }
.today-sub { padding-left: 14px; color: var(--ink-2); font-weight: 400; }
.vz { display: inline-block; margin-left: 6px; font: 500 11px/1 var(--sans); padding: 3px 6px; border-radius: 3px; border: 1px solid var(--rule); color: var(--muted); }
.vz-unusual { color: var(--warm); border-color: color-mix(in oklab, var(--warm) 50%, transparent); }
.vz-rare { color: var(--rare); border-color: color-mix(in oklab, var(--rare) 50%, transparent); }
#watch-perm:empty { display: none; }
.today-t td { white-space: normal; vertical-align: top; padding-top: 10px; padding-bottom: 10px; height: auto; }
.today-at { display: block; font: 400 12px/1.3 var(--sans); color: var(--muted); margin-top: 4px; }

/* --- Вкладка Live в две колонки, история ожиданий (07.10.2026, по образцу gamblingcounting) --- */
.live2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 40px; align-items: start; }
.live2-l, .live2-r { min-width: 0; }
.live2 .lastres { display: block; }
.live2 .lastres .lr-value .seg-ico { height: 56px; }
.live2 .week-summary { font-size: 15px; }
.rgrid-card h2 .small { font: 400 12px/1 var(--mono); color: var(--muted); margin-left: 6px; }
.rgrid { display: flex; flex-wrap: wrap; gap: 6px 4px; padding-top: 6px; }
.rg { position: relative; display: inline-flex; }
.rgrid .chip-r .seg-ico { height: 28px; }
.rgrid .sector.chip-r:not(.has-ico) { min-width: 28px; height: 28px; padding: 0 6px; font-size: 12px; justify-content: center; }
.rg-x { position: absolute; top: -7px; right: -5px; z-index: 1; font: 600 9px/1 var(--mono); padding: 2px 3px; border-radius: 3px; background: var(--ink); color: var(--bg); pointer-events: none; }
.wsum h2 { margin-bottom: 8px; }
.wchips { display: flex; flex-wrap: wrap; gap: 6px; }
.wchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 20px; text-decoration: none; font: 500 14px/1.2 var(--sans); }
.wchip b { font-size: 15px; }
.wchip:hover { border-color: var(--ink-2); }
.wcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 4px 0 8px; }
.wcard { border: 1px solid var(--rule); border-left: 3px solid var(--rule); border-radius: 4px; background: var(--surface); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: 80px; }
.wcard.wc-warm { border-left-color: var(--warm); } .wcard.wc-hot { border-left-color: var(--rare); }
.wc-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wc-head .wc-ico .seg-ico { height: 30px; }
.wc-head .sector.wc-ico:not(.has-ico) { font-size: 12px; }
.wc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wc-t b { font: 600 15px/1.2 var(--sans); }
.wc-t span { font-size: 12px; color: var(--muted); }
.wc-body { display: flex; gap: 12px; align-items: flex-start; }
.wc-now { flex: none; min-width: 64px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--bg); }
.wc-now b { font-size: 24px; line-height: 1; }
.wc-now span { font: 400 10px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.wc-hist, .wc-mults { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wc-cap { font: 400 11px/1.2 var(--sans); color: var(--muted); }
.wc-gaps { display: flex; flex-wrap: wrap; gap: 2px 2px; }
.wc-gaps i, .wc-mults i { font: 400 13px/1 var(--mono); font-style: normal; color: var(--ink-2); min-width: 24px; padding: 4px 2px; text-align: center; border-radius: 3px; }
.wc-gaps i.g-0 { color: var(--faint); }
.wc-gaps i.g-long { color: var(--accent-ink); font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 45%, transparent); }
.wc-mults > span:last-child { display: flex; flex-wrap: wrap; gap: 4px; }
.wc-mults i { border: 1px solid var(--rule); padding: 3px 5px; font-size: 12px; }
.wc-mults i.m-big { color: var(--accent-ink); border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
@media (max-width: 900px) {
  .live2 { display: flex; flex-direction: column; }
  .live2-l { display: contents; }
  .live2 #live-left { order: 1; } .live2-r { order: 2; } .live2 #today { order: 3; } .live2 .week-summary { order: 4; }
  .wc-gaps i:nth-child(n+17) { display: none; }
}
.wc-all { display: none; margin: 4px 0 8px; }
@media (max-width: 900px) {
  .wcards:not(.open) .wcard:nth-child(n+7) { display: none; }
  .wc-all { display: inline-flex; }
}

/* --- Карточки столов: звёздочка «избранное», фильтры /games/ (07.10.2026) -------------------- */
.lcard { position: relative; padding: 0; display: block; }
.lcard[hidden] { display: none; }
.lcard-a { display: flex; flex-direction: column; gap: 12px; padding: 14px; padding-right: 14px; text-decoration: none; color: var(--ink); min-width: 0; height: 100%; }
.lcard-a:hover { color: var(--ink); }
.lcard:hover { border-color: var(--ink-2); }
.lcard .lc-head { padding-right: 34px; }
.lc-star { position: absolute; top: 6px; right: 6px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--faint); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lc-star:hover { color: var(--ink); background: var(--raised); }
.lcard.fav .lc-star { color: var(--warm); }
.lcard.fav .lc-star path { fill: currentColor; }
.lcards-all { margin-top: 14px; }
.lc-sel { display: flex; gap: 8px; flex-wrap: wrap; }
.lc-sel select { height: 40px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); color: var(--ink); padding: 0 10px; font: 500 14px/1 var(--sans); }
.games-bar { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-bottom: 10px; }
@media (max-width: 520px) { .games-bar .seg { overflow-x: auto; scrollbar-width: none; } .games-bar .seg button { flex: none; padding: 0 12px; } }
/* рулетка: сетка 200 спинов в левой колонке Live */
.rgrid-r { grid-template-columns: repeat(auto-fill, minmax(28px, 1fr)); gap: 8px 3px; padding-top: 6px; }
.rgrid-r .rball { width: 28px; height: 28px; font-size: 11px; }
.live2 .rlast { border-top: 0; }
.live2 .rcold { margin-top: 0; }
/* производные дороги баккара */
.droads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 24px; margin: 12px 0 4px; }
.droad { min-width: 0; overflow-x: auto; }
.dgrid { display: grid; grid-template-rows: repeat(6, 14px); grid-auto-flow: column; grid-auto-columns: 14px; gap: 2px; }
.dm { display: block; width: 12px; height: 12px; border-radius: 50%; position: relative; }
.droad-bigeye .dm.dr-r { border: 2px solid #e05555; } .droad-bigeye .dm.dr-u { border: 2px solid #4a7fe0; }
.droad-small .dm.dr-r { background: #e05555; } .droad-small .dm.dr-u { background: #4a7fe0; }
.droad-cockroach .dm { border-radius: 0; }
.droad-cockroach .dm::after { content: ''; position: absolute; left: 5px; top: -1px; width: 2px; height: 14px; transform: rotate(40deg); }
.droad-cockroach .dm.dr-r::after { background: #e05555; } .droad-cockroach .dm.dr-u::after { background: #4a7fe0; }
.dnext { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; }
.dn { display: inline-flex; align-items: center; gap: 4px; }
.dn-side { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 600 11px/1 var(--mono); color: #fff; }
.dn-side.rd-b { background: #d24c4c; } .dn-side.rd-p { background: #3d6fd1; }
@media (max-width: 900px) { .rgrid-r > :nth-child(n+101) { display: none; } }

/* подсказки поиска на /rtp/ (assets/rtp-suggest.js) */
.rs-wrap { position: relative; display: flex; }
.rs-wrap input { flex: 1; width: 100%; min-width: 0; }
.rs-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; max-height: min(420px, 60vh); overflow-y: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.rs-list a { min-height: 52px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 8px 14px; }
.rs-list a span { line-height: 1.3; }
.rs-list a[aria-selected="true"] { background: var(--raised); color: var(--ink); }

/* сортировка по колонкам: ссылки (результаты поиска) и кнопки (assets/tsort.js) в заголовках */
.th-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; }
.th-sort:hover, .th-sort:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
th.num .th-sort { justify-content: flex-end; }
.th-sort i { font-style: normal; font-size: 9px; color: var(--accent); }

/* главная: вкладки разделов над карточками, ссылка «Show all», плитки разделов (08.10.2026) */
.home-tabs { margin: 4px 0 14px; }
.lc-mores { margin-top: 14px; }
.lc-more { display: inline-flex; align-items: center; min-height: 44px; font: 500 15px/1.2 var(--sans); }
.lc-more[hidden] { display: none; }
@media (max-width: 640px) { .lcards .lcard.lc-xm { display: none; } }
.tiles-sec { margin: 0 0 24px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); text-decoration: none; color: var(--ink); min-height: 112px; }
.tile:hover, .tile:focus-visible { border-color: var(--ink-2); }
.tile-k { font: 500 12px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.tile b { font: 600 17px/1.3 var(--sans); }
.tile-d { font-size: 13px; line-height: 1.4; color: var(--muted); }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr 1fr; gap: 8px; } .tile { padding: 12px; min-height: 0; } .tile b { font-size: 15px; } .tile-d { display: none; } }

/* волна 1 (12.10.2026): Mega Ball, Disco Balls, Dragon Tiger, No Commission Baccarat */
/*
 * Волна 1 (12.10.2026): Dragon Tiger, Mega Ball, Disco Balls — правила в конце app.css, после общих.
 * Сетка «Last 100 rounds»: номера шаров кругами с множителем, бонусы Disco Balls акцентом,
 * у Dragon Tiger цвета сторон как в дорожках (Dragon — красный, Tiger — синий, ничья — зелёная).
 */

/* шары Mega Ball и Disco Balls: круг с номером, множитель — бейдж rg-x */
.rg-num .rgrid { gap: 10px 6px; }
.rg-num .rgrid .sector.chip-r { width: 30px; min-width: 30px; height: 30px; padding: 0; border-radius: 50%; font: 600 12px/1 var(--mono); }
.rg-num .rg-x { right: -9px; }
.rg-num .rg-bonus .sector.chip-r { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Dragon Tiger: стороны цветом, как bead plate */
.rg-dragon-tiger .rgrid .sector.chip-r { width: 28px; min-width: 28px; padding: 0; border-radius: 50%; color: #fff; border: 0; font: 600 12px/1 var(--mono); }
.rg-dragon-tiger .s-Dragon { background: #d24c4c; }
.rg-dragon-tiger .s-Tiger { background: #3d6fd1; }
.rg-dragon-tiger .s-Tie { background: #2f8f57; }

/* серии в правой колонке Live: две-три плитки в ряд и в узкой колонке */
.wstreak .overview { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-bottom: 8px; }
.wstreak .ov b { font-size: 20px; }

/* «Ball 13», «Mega Ball 33» в таблицах не переносим (у номеров шаров класс s-n<номер>, см. sector_html) */
.sector[class*=" s-n"] { white-space: nowrap; }

/* джекпоты (12.10.2026): строка на джекпот — имя, сумма, сколько не срывали; подробности раскрываются */
.jp-sum { color: var(--muted); margin: -4px 0 16px; font-size: 15px; }
.jp-sort { max-width: 360px; margin: 0 0 12px; }
.jp-sort[hidden] { display: none; }
.jp-sort button { flex: 1; height: 40px; border: 0; border-radius: 3px; background: none; font: 500 14px/1 var(--mono); color: var(--muted); cursor: pointer; }
.jp-sort button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.jpl { border-top: 1px solid var(--rule); margin: 0 0 32px; }
.jpd { border-bottom: 1px solid var(--rule); scroll-margin-top: 72px; }
.jpd summary { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 12px 24px 12px 0; min-height: 44px; cursor: pointer; list-style: none; position: relative; }
.jpd summary::-webkit-details-marker { display: none; }
.jpd summary::after { content: '›'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; transition: transform .15s; }
.jpd[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.jpd-name { font: 600 16px/1.3 var(--sans); }
.jpd-amt { font: 600 20px/1.2 var(--mono); white-space: nowrap; text-align: right; }
.jpd-meta { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.jpd summary.has-logo { grid-template-columns: 40px 1fr auto; column-gap: 12px; }
.jpd-logo { grid-row: 1 / span 2; align-self: center; width: 40px; height: 40px; border-radius: 6px; object-fit: contain; }
.has-logo .jpd-meta { grid-column: 2 / -1; }
.jpd-meta b { color: var(--ink); font-weight: 600; }
.jpd-body { padding: 0 24px 14px 0; font-size: 14px; }
.jpd-body p { margin: 0 0 6px; }
.jp-h2 { font-size: 18px; margin: 0 0 8px; }
.jpw { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--rule); max-width: 640px; }
.jpw li { display: grid; grid-template-columns: 1fr auto 96px; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; }
.jpw li span { color: var(--muted); font-size: 13px; text-align: right; }
.jpw a { color: var(--ink); display: block; padding: 10px 0; margin: -10px 0; }
@media (min-width: 900px) {
  .jpl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .jpd-amt { font-size: 22px; }
}

/* крупнейшие выигрыши (12.10.2026): окна, строка-рекорд по выплате, топ-20 строками */
.bw-win { max-width: 520px; margin: 0 0 16px; }
.bw-win a { font-size: 13px; }
.bw-win a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.bw-best { max-width: 760px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; padding: 14px 16px; margin: 0 0 16px; border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 4px; background: var(--surface); color: var(--ink); text-decoration: none; }
.bw-best .bw-k { grid-column: 1 / -1; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.bw-best b { font: 600 24px/1.2 var(--mono); }
.bw-best span:last-child { font-size: 13px; color: var(--muted); }
.bwl { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--rule); max-width: 760px; }
.bwl a { display: grid; grid-template-columns: 36px 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 0; min-height: 44px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.bwl a:hover .bwl-game { text-decoration: underline; }
.bwl-res { grid-row: 1 / span 2; display: flex; justify-content: center; }
.glogo { display: block; border-radius: 8px; object-fit: contain; flex: none; background: #1c1626; }   /* одна тёмная плашка у всех: прозрачные надписи и логотипы на плитке выглядят ровно на обеих темах */
.bwl-game { font: 600 15px/1.3 var(--sans); }
.bwl-mult { grid-row: 1 / span 2; grid-column: 3; font: 600 20px/1 var(--mono); color: var(--accent-ink); white-space: nowrap; }
.bwl-meta { grid-column: 2; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .bw-best { grid-template-columns: 1fr; }
  .bwl-mult { font-size: 18px; }
}

/* логотипы игр в строках и в шапке игры (13.10.2026) */
.hrow.has-logo { grid-template-columns: 32px minmax(0, 1fr) auto; }
.game-head > .glogo { margin-top: 14px; }
.game-head > .gh-txt { flex: 1 1 240px; min-width: 0; }   /* основа 240px: на узком экране значок LIVE уходит на новую строку, а не сжимает заголовок */
@media (max-width: 640px) {
  .game-head > .glogo { width: 44px; height: 44px; }
  .game-head > .live-badge { display: none; }   /* на телефоне «live» уже есть в шапке сайта */
}

/* карточки столов с обложкой (13.10.2026): обложка с названием на затемнении и плашкой «играют сейчас»,
   лента результатов под обложкой; при наведении карточка приподнимается, обложка плавно приближается */
.lcard.has-cover { overflow: hidden; border-radius: 8px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.lcard.has-cover:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); border-color: var(--ink-2); }
.has-cover .lcard-a { padding: 0 0 12px; gap: 10px; }
.has-cover .lc-strip, .has-cover .lc-foot, .has-cover .lc-legend { margin: 0 14px; }
.lc-cover { position: relative; display: block; aspect-ratio: 2 / 1; background: #1c1626; overflow: hidden; }
.lc-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.lcard.has-cover:hover .lc-img { transform: scale(1.05); }
.lc-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 6, .35) 0%, transparent 28%, transparent 48%, rgba(10, 8, 6, .88) 100%); pointer-events: none; }
.lc-live { position: absolute; z-index: 1; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(15, 12, 10, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .14); color: #f5f1e8; font: 500 12px/1 var(--sans); }
.lc-live i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); animation: pulse 2s infinite; }
.lc-live .lc-pl { font-weight: 600; font-variant-numeric: tabular-nums; }
.lc-live.is-off { color: rgba(245, 241, 232, .8); }
.lc-title { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 10px; display: flex; flex-direction: column; gap: 2px; color: #fff; }
.lc-title b { font: 600 18px/1.2 var(--sans); letter-spacing: -.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-title span { font-size: 12px; color: rgba(245, 241, 232, .78); }
.has-cover .lc-strip { min-height: 38px; }
/* место под свечение нового значка (lc-glow): поля внутрь, те же поля наружу — раскладка не меняется */
.lcard:not(.has-cover) .lc-strip { padding: 5px 0 5px 5px; margin: -5px 0 -5px -5px; }
.lcard.has-cover .lc-strip { padding: 5px 0 5px 5px; margin: -5px 14px -5px 9px; }
.has-cover .lc-foot { border-top: 1px solid var(--rule-soft); padding-top: 10px; }
.lcard.has-cover .lc-star { top: 8px; right: 8px; width: 36px; height: 36px; background: rgba(15, 12, 10, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .14); color: #f5f1e8; }
.lcard.has-cover .lc-star:hover { background: rgba(15, 12, 10, .8); color: #fff; }
.lcard.has-cover.fav .lc-star { color: var(--warm); }
.lcard.has-cover.paused .lc-img { filter: grayscale(.7) brightness(.8); }
@media (prefers-reduced-motion: reduce) { .lcard.has-cover, .lc-img { transition: none; } .lcard.has-cover:hover { transform: none; } .lcard.has-cover:hover .lc-img { transform: none; } .lc-live i { animation: none; } }

/* главная: плитка «все столы раздела» на месте шестой карточки — только на компьютере (13.10.2026):
   фон — затемнённый коллаж обложек следующих столов, по центру стопка логотипов, заголовок и кнопка */
.lc-allcard { position: relative; display: flex; align-items: center; justify-content: center; min-height: 220px; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: #141018; color: #f5f1e8; text-decoration: none; isolation: isolate; }
.lc-allcard[hidden] { display: none; }
.lc-all-bg { position: absolute; inset: -8px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; z-index: -2; transition: transform .5s ease; }
.lc-all-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px) saturate(1.15) brightness(.55); }
.lc-allcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 50%, rgba(12, 10, 14, .55), rgba(12, 10, 14, .92)); }
.lc-all-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px; }
.lc-all-stack { display: flex; align-items: center; margin-bottom: 10px; }
.lc-all-stack .glogo, .lc-all-n { width: 44px; height: 44px; border-radius: 12px; border: 2px solid #141018; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); margin-left: -8px; object-fit: contain; }
.lc-all-stack > :first-child { margin-left: 0; }
.lc-all-n { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font: 600 13px/1 var(--mono); }
.lc-allcard b { font: 600 21px/1.2 var(--sans); letter-spacing: -.01em; }
.lc-all-sub { font-size: 13px; color: rgba(245, 241, 232, .72); }
.lc-all-btn { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: rgba(245, 241, 232, .12); border: 1px solid rgba(245, 241, 232, .28); font: 600 14px/1 var(--sans); transition: background .2s, border-color .2s; }
.lc-allcard:hover { border-color: var(--accent); color: #fff; }
.lc-all-chev { display: none; }
.lc-all-stack .lc-m, .lc-mt { display: none; }
.lc-allcard:hover .lc-all-bg { transform: scale(1.06); }
.lc-allcard:hover .lc-all-btn, .lc-allcard:focus-visible .lc-all-btn { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-reduced-motion: reduce) { .lc-all-bg { transition: none; } .lc-allcard:hover .lc-all-bg { transform: none; } }
@media (min-width: 641px) {
  .lcards .lcard.lc-xd { display: none; }
  .live-sec .lc-mores { display: none; }
}
@media (max-width: 640px) { .lc-allcard { display: none; } }

/* лента карточки: исходы Dragon Tiger / Andar Bahar буквой в цветном квадратике (13.10.2026) */
.lastb.chip { min-width: 24px; justify-content: center; font: 700 12px/1 var(--mono); color: #fff; border: 0; }
.lastb.chip-r { background: #c8322f; }
.lastb.chip-b { background: #2f62c8; }
.lastb.chip-g { background: #2e9d5b; }
.lc-r .lastb.chip { width: 32px; min-width: 32px; padding: 0; }
.lc-new .lastb.chip { width: 38px; min-width: 38px; font-size: 15px; }

/* главная 2 (13.10.2026): короткая шапка с живой строкой, 4 плитки «Explore» со значками, засухи со шкалой, итог тремя цифрами */
.hero-live { font-size: 15px; color: var(--muted); }
.hero-live i { display: inline-block; vertical-align: middle; margin: -2px 8px 0 0; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); animation: pulse 2s infinite; }
.hero-live b { color: var(--ink); font-variant-numeric: tabular-nums; }
.explore { margin: 0 0 24px; }
.ex-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ex { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.ex:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.ex-ico { grid-row: 1 / span 3; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--accent-ink); }
.ex-k { font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ex b { font: 600 20px/1.25 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex b.up { color: var(--up); font-family: var(--mono); }
.ex-d { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .ex-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ex { grid-template-columns: 1fr; padding: 14px; } .ex-ico { grid-row: auto; width: 32px; height: 32px; margin-bottom: 8px; } .ex b { font-size: 18px; } .ex-d { white-space: normal; } }

/* главная: разделы столов друг под другом (13.10.2026) — у раздела заголовок со ссылкой, 5 столов и плитка «все столы» */
.lcards-stack { display: flex; flex-direction: column; gap: 0; margin: 4px 0 28px; }
.cat-sec { padding: 28px 0 32px; border-top: 1px solid var(--rule); }
.cat-sec:first-child { border-top: 0; padding-top: 8px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cat-img { flex: none; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px var(--rule), 0 4px 12px rgba(0, 0, 0, .25); }
.cat-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cat-ttl h2 { margin: 0; font: 700 28px/1.1 var(--sans); letter-spacing: -.02em; }
.cat-ttl h2 a { color: var(--ink); text-decoration: none; }
.cat-ttl h2 a:hover { color: var(--accent-ink); }
.cat-ttl > span { font-size: 14px; color: var(--muted); }
.cat-ttl > span b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.cat-all { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; font: 600 14px/1 var(--sans); transition: border-color .2s, background .2s; }
.cat-all:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.cat-cards { margin-top: 0; }
.cat-cards .lc-allcard .lc-all-txt { display: flex; flex-direction: column; align-items: center; gap: 6px; }
@media (max-width: 640px) {
  .cat-sec { padding: 22px 0 24px; }
  .cat-head { gap: 12px; margin-bottom: 14px; }
  .cat-img { width: 42px; height: 42px; border-radius: 10px; }
  .cat-ttl h2 { font-size: 22px; }
  .cat-ttl > span { font-size: 13px; white-space: nowrap; }
  .cat-now { display: none; }   /* на телефоне «18 tables · 32,058 playing» — в одну строку */
  .cat-all { height: 34px; padding: 0 12px; font-size: 13px; }
  /* телефон: плитка «все столы» — компактной строкой: стопка логотипов, подпись, стрелка */
  /* телефон: «все столы раздела» — спокойная строка-ссылка: логотипы, текст, шеврон */
  .cat-cards .lc-allcard { display: flex; min-height: 0; background: var(--surface); color: var(--ink); border-radius: 10px; }
  .cat-cards .lc-allcard .lc-all-bg, .cat-cards .lc-allcard::before { display: none; }
  .cat-cards .lc-all-in { flex-direction: row; align-items: center; width: 100%; padding: 12px 14px; gap: 12px; text-align: left; }
  .cat-cards .lc-all-stack { margin: 0; padding-left: 8px; }
  .cat-cards .lc-all-stack .glogo { width: 30px; height: 30px; border-radius: 8px; border: 0; margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
  .cat-cards .lc-all-stack .lc-m { display: block; }
  .cat-cards .lc-mt { display: inline; }
  .cat-cards .lc-d { display: none; }
  .cat-cards .lc-all-stack .glogo:nth-child(n+4), .cat-cards .lc-all-n { display: none; }
  .cat-cards .lc-allcard .lc-all-txt { align-items: flex-start; text-align: left; gap: 2px; flex: 1; min-width: 0; }
  .cat-cards .lc-allcard b { font-size: 17px; }
  .cat-cards .lc-all-sub { color: var(--muted); font-size: 13px; }
  .cat-cards .lc-all-btn { display: none; }
  .cat-cards .lc-all-chev { display: block; flex: none; color: var(--muted); }
  .cat-cards .lc-allcard:active { background: var(--raised); }
}

/* главная: заголовок раздела в редакционном стиле (13.10.2026): заголовок и цифры на одной линии, справа ссылка,
   под ними тонкая линия; без плашек и цветных полос — разделы отделяет воздух */
.cat-sec { border-top: 0; padding: 36px 0 8px; }
.cat-sec:first-child { padding-top: 12px; }
.cat-head { align-items: baseline; gap: 14px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--rule); }
.cat-ttl { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.cat-ttl h2 { font: 600 28px/1.15 var(--sans); letter-spacing: -.02em; }
.cat-ttl > span { font: 400 13px/1.3 var(--mono); color: var(--muted); }
.cat-ttl > span b { font-weight: 500; color: var(--ink-2); }
.cat-all { height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--accent-ink); font: 500 15px/1.3 var(--sans); }
.cat-all { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.cat-all span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; padding-bottom: 1px; }
.cat-all svg { transition: transform .25s ease; }
/* наведение: подчёркивание плавно растёт под текстом (не под стрелкой), стрелка сдвигается вправо */
.cat-all:hover { background: none; color: var(--accent-ink); text-decoration: none; }
.cat-all:hover span { background-size: 100% 1px; }
.cat-all:hover svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .cat-all span, .cat-all svg { transition: none; } }
@media (max-width: 640px) {
  .cat-sec { padding-top: 28px; }
  .cat-ttl { flex-direction: column; gap: 2px; }
  .cat-ttl h2 { font-size: 22px; }
  .cat-ttl > span { font-size: 12px; }
  .cat-all { font-size: 14px; height: auto; padding: 0; }
}

/* главная: в строке заголовка раздела — ряд логотипов столов раздела (не внахлёст), справа перед «All N →» */
.cat-games { display: flex; align-self: center; padding-left: 10px; }
.cat-games a { position: relative; display: block; margin-left: -10px; border-radius: 10px; box-shadow: 0 0 0 2px var(--bg), 0 2px 6px rgba(0, 0, 0, .3); transition: margin .2s ease, transform .2s ease; }
.cat-games:hover a { margin-left: 4px; }            /* при наведении ряд раздвигается */
.cat-games a:hover { z-index: 2; transform: translateY(-3px); }
.cat-games .glogo { width: 34px; height: 34px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .cat-games a { transition: none; } }
/* телефон: без ряда логотипов — те же столы сразу ниже крупными карточками, а высота дорога */
@media (max-width: 640px) { .cat-games { display: none; } }

/* главная: «My tables» — отмеченные звёздочкой столы сверху (появляется, только если они есть) */
.my-sec[hidden] { display: none; }
.my-sec[hidden] + .cat-sec { padding-top: 12px; }
.my-sec:not([hidden]) + .cat-sec { padding-top: 36px; }
.my-hint { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .my-hint { display: none; } }

/* звёздочка: подсказка при наведении (только где есть мышь) и уведомление после нажатия (13.10.2026) */
@media (hover: hover) {
  .lc-star[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; padding: 6px 10px; border-radius: 6px; background: #0f0c0a; color: #f5f1e8; font: 500 12px/1.2 var(--sans); white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s; }
  .lc-star[data-tip]:hover::after, .lc-star[data-tip]:focus-visible::after { opacity: 1; transform: none; transition-delay: .25s; }
}
.lc-toast { white-space: nowrap; position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px; background: #0f0c0a; color: #f5f1e8; font: 500 14px/1.2 var(--sans); box-shadow: 0 8px 28px rgba(0, 0, 0, .4); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.lc-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.lc-toast button { border: 0; background: none; color: var(--accent); font: 600 14px/1 var(--sans); cursor: pointer; padding: 4px 0; }
@media (max-width: 900px) { .lc-toast { bottom: calc(76px + env(safe-area-inset-bottom)); } }   /* над нижней панелью */
@media (prefers-reduced-motion: reduce) { .lc-toast, .lc-star[data-tip]::after { transition: none; } }

/* лента карточки «последние бонусы» (Big Baller, Crazy Balls): значок и «N ago» под ним */
.lc-bonuses { align-items: flex-start; gap: 8px; }
.lc-b { flex-direction: column; align-items: center; gap: 3px; }
.lc-b small { font: 400 11px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.lc-cap { font: 400 11px/1 var(--mono); color: var(--muted); margin-bottom: -4px; }
.lc-r .lastb.lc-mx { min-width: 42px; font-weight: 500; }
.lc-r .lastb.lc-mx.hi { color: #1a1405; background: var(--warm); border-color: var(--warm); }
.lc-r .lastb.lc-mx.top { color: #fff; background: var(--rare); border-color: var(--rare); }
.has-cover .lc-cap { margin-left: 14px; margin-right: 14px; }
.lc-b.lc-new small { color: var(--ink-2); }
.lastb.rolls { height: 30px; padding: 0 9px; border: 0; color: #1a1408; font: 700 13px/1 var(--sans); }
.lastb.rolls-3 { background: linear-gradient(180deg, #e9ecef, #aab2bb); }
.lastb.rolls-5 { background: linear-gradient(180deg, #ffe08a, #d4a017); }
.lc-new .lastb.rolls { height: 34px; }


/* --- Засухи без шкалы: главная и радар (13.10.2026) ------------------------------------------- */
.wr { min-width: 0; }
.wr > b small { font: 400 11px/1 var(--mono); color: var(--muted); }
.wr > span { font-size: 12px; }
.wr > .tone-ok { color: var(--muted); }
.wr > .tone-warm { color: var(--warm); } .wr > .tone-hot { color: var(--rare); }
.rd-f { max-width: 620px; margin: 0 0 8px; overflow-x: auto; scrollbar-width: none; }
.rd-f::-webkit-scrollbar { display: none; }
.rd-f[hidden], .rd-f button[hidden] { display: none; }
.rd-f button { flex: 1 0 auto; padding: 0 12px; }
.rh { margin: 0 0 20px; }
.rh h2 { font-size: 18px; margin: 0 0 2px; }
.rh-quiet { color: var(--muted); margin: 6px 0 0; }
.rbl { display: grid; gap: 12px; margin-bottom: 28px; }
.rb { padding: 14px 16px 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); min-width: 0; }
.rb[hidden] { display: none; }
.rb-head { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 36px; }
.rb-head .glogo { border-radius: 8px; }
.rb-head > b { font: 600 17px/1.25 var(--sans); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-head:hover > b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rb-meta { margin-left: auto; font: 400 12px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.rbt { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; table-layout: fixed; }
.rbt thead th:first-child { width: 36%; } .rbt thead th:nth-child(2) { width: 20%; } .rbt thead th:nth-child(3) { width: 18%; }
.rbt tbody th { color: var(--ink); }
.rbt th, .rbt td { padding: 6px 0 6px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--rule-soft); }
.rbt th:first-child { padding-left: 0; text-align: left; font-weight: 500; white-space: normal; }
.rbt thead th { font: 400 11px/1.25 var(--mono); color: var(--muted); padding-top: 0; padding-bottom: 6px; white-space: normal; vertical-align: bottom; }
.rbt tbody tr:last-child > * { border-bottom: 0; }
.rbt td { color: var(--muted); font-size: 13px; }
.rbt td b { font: 600 17px/1 var(--mono); color: var(--ink); border-radius: 4px; padding: 1px 2px; }
.rc.tone-warm td b { color: var(--warm); } .rc.tone-hot td b { color: var(--rare); }
.rbt .rball { vertical-align: middle; }
.rc-hit td b { animation: rc-hit 2.6s ease-out; }
.rc-up td b { animation: rc-up .7s ease-out; }
@keyframes rc-hit { 0%, 30% { background: color-mix(in oklab, var(--up) 40%, transparent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--up) 40%, transparent); } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }
@keyframes rc-up { from { opacity: .3; } to { opacity: 1; } }
.rb-note { margin: 10px 0 2px; padding-top: 10px; border-top: 1px solid var(--rule-soft); font-size: 13px; line-height: 1.35; }
.rc-x { display: block; font: 500 12px/1.2 var(--mono); color: var(--ink-2); margin-top: 2px; }
.rb-note b { font-weight: 600; }
.rb-just { color: var(--up); }
.rb-stale .rbt, .rb-stale .rb-head > b { opacity: .5; }
@media (min-width: 1000px) {
  .rbl { grid-template-columns: 1fr 1fr; gap: 16px; }
  .rh { max-width: calc(50% - 8px); }
}
@media (max-width: 640px) { .rb { padding: 12px 12px 10px; border-radius: 10px; } }

/* --- Страница Crazy Time (15.10.2026): одна страница, блоки по важности ----------------------- */
.ct-head { padding: 10px 0 0; margin: 0 0 22px; }
.ct-title { display: flex; gap: 14px; align-items: center; }
.ct-head .glogo { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.ct-head h1 { margin: 0 0 4px; font-size: clamp(26px, 6vw, 36px); line-height: 1.1; }
.ct-head p { margin: 0; }
/* выбор стола и статус одной строкой (на телефоне — переносится) */
.ct-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.ct-tables { display: inline-flex; padding: 3px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.ct-tables a { padding: 7px 14px; border-radius: 7px; font-size: 14px; line-height: 1.2; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.ct-tables a:hover { color: var(--ink); }
.ct-tables a[aria-current] { background: var(--raised); color: var(--ink); font-weight: 600; }
.ct-bar .ct-status { margin: 0; }
.ct-status { margin: 6px 0 0; font: 500 13px/1.4 var(--mono); color: var(--ink-2); }
.ct-status i { display: inline-block; position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--up); margin-right: 7px; vertical-align: 1px; }
.ct-status.paused i { background: var(--muted); animation: none; }
/* шапка карточки последнего спина: видно, что обновляется сама */
.ct-last-h { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -2px 0 2px; font: 500 11px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ct-live { display: inline-flex; align-items: center; gap: 7px; text-transform: none; letter-spacing: 0; font: 400 12px/1.3 var(--sans); color: var(--ink-2); text-align: right; }
.ct-live i { flex: none; position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--up); }
/* расходящееся кольцо — transform/opacity (на видеокарте), а не box-shadow: та перерисовывала страницу каждый кадр (Lighthouse, 04.11.2026) */
.ct-status i::after, .ct-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--up); animation: live-ring 2s cubic-bezier(.2, .6, .3, 1) infinite; }
.ct-status.paused i::after, .ct-live.paused i::after { content: none; }
.ct-live.paused i { background: var(--muted); animation: none; }
@media (prefers-reduced-motion: reduce) { .ct-status i::after, .ct-live i::after { animation: none; content: none; } }
.ct-nav { position: sticky; top: 0; z-index: 4; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; margin: 8px 0 4px; background: var(--bg); border-bottom: 1px solid var(--rule); }
.ct-nav::-webkit-scrollbar { display: none; }
.ct-nav a { flex: none; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 16px; font-size: 13px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.ct-nav a:hover { color: var(--ink); border-color: var(--ink-2); }
.ct-sec { padding: 20px 0 8px; scroll-margin-top: 60px; border-top: 1px solid var(--rule-soft); }
.ct-sec:first-of-type, .ct-nav + .ct-sec { border-top: 0; }
.ct-sec h2 { font-size: 20px; margin: 0 0 6px; }
.ct-sec > .hint { margin: 0 0 12px; }
.ct-seg { display: inline-flex; align-items: center; gap: 6px; }
.ct-seg img { height: 28px; width: auto; }
/* последний раунд */
.ct-last { display: grid; grid-template-columns: auto auto 1fr; gap: 10px 14px; align-items: center; padding: 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.ct-cell { display: flex; flex-direction: column; gap: 6px; min-width: 84px; padding-right: 14px; border-right: 1px solid var(--rule-soft); }
.ct-cell .k { font: 400 11px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ct-cell .v { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.ct-cell .v b { font: 600 18px/1 var(--mono); }
.ct-cell .v img { height: 32px; }
.ct-out { min-width: 0; font-size: 14px; }
.ct-out p { margin: 3px 0 0; }
.ct-v { display: inline-block; font: 600 13px/1.3 var(--sans); color: var(--ink-2); }
.ct-v.hit { color: var(--up); }
@media (max-width: 560px) {
  .ct-last { grid-template-columns: 1fr 1fr; }
  .ct-cell + .ct-cell { border-right: 0; }
  .ct-out { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--rule-soft); }
}
/* последний спин плитками (ct_tiles_html) */
.ct-last.ct-tl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 8px; padding: 10px; align-items: stretch; }
.ct-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px; padding: 22px 6px 10px; border-radius: 9px; background: var(--raised); box-sizing: border-box; }
.ct-tile .k { position: absolute; top: 7px; left: 9px; font: 400 10px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ct-tile .ct-seg img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.ct-tx b { font: 700 28px/1 var(--sans); color: var(--warm); text-shadow: 0 0 14px color-mix(in oklab, var(--warm) 55%, transparent); }
.ct-tx.miss b { font-size: 16px; font-weight: 600; color: var(--muted); text-shadow: none; text-transform: uppercase; letter-spacing: .06em; }
.ct-tw .ct-seg img { height: 56px; }
.ct-tw .ct-live { position: absolute; top: 6px; right: 9px; font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); gap: 5px; }
.ct-tw .ct-live i { width: 6px; height: 6px; }
.ct-tl.is-hit .ct-tile:first-child, .ct-tl.is-hit .ct-tw { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--up) 70%, transparent); }
.ct-tw-x { font-size: 15px; font-weight: 700; color: var(--ink); }
.ct-tw-x.hit { font: 600 12px/1.2 var(--sans); color: var(--up); }
/* широкий экран: слева приклеенная колонка последних 100 спинов, справа статистика; лента в #live тогда не нужна */
.ct-side { display: none; }
@media (min-width: 1200px) {
  .ct-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
  .ct-side { display: block; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: thin; margin-top: 14px; padding: 12px 10px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); box-sizing: border-box; }
  .ct-side-h { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 10px; font: 500 11px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .ct-side-h .ct-live { font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); gap: 5px; }
  .ct-side-h .ct-live i { width: 6px; height: 6px; }
  .ct-side .ct-strip { margin: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px 2px; }
  .ct-side .ct-strip li:nth-child(n) { display: flex; }
  .ct-side .ct-strip li .sector img { height: 28px; }
  .ct-side .ct-more { display: none; }
  .ct-layout #live, .ct-nav-live { display: none; }   /* только на новых страницах: у рулеток и карт #live — вкладка */
  .ct-layout #live + .ct-sec { border-top: 0; }
}
/* лента */
.ct-strip { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px 4px; }
.ct-strip li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.ct-strip li .sector { max-width: 100%; justify-content: center; }
.ct-strip li .sector img { height: 26px; width: auto; max-width: 100%; object-fit: contain; }
.ct-strip li b { font: 600 11px/1 var(--mono); color: var(--ink); }
.ct-strip li .bx { position: absolute; bottom: -5px; right: 0; padding: 2px 3px; border-radius: 3px; font: 700 9px/1 var(--mono); color: #1a1405; background: var(--warm); white-space: nowrap; box-shadow: 0 0 0 1px var(--bg); }
.ct-strip li .ts { box-shadow: 0 0 0 1px var(--bg); }
/* нажатие на спин — подсвечены все такие же среди последних 100 */
.ct-strip li { cursor: pointer; transition: opacity .15s; }
.ct-strip.is-filter li:not(.is-on) { opacity: .2; }
.ct-strip.is-filter li.is-on .sector img { filter: drop-shadow(0 0 5px color-mix(in oklab, var(--ink) 45%, transparent)); }
.ct-sel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 10px 2px 0; font-size: 13px; color: var(--ink-2); }
.ct-sel b { color: var(--ink); }
.ct-sel button { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ct-sel button:hover { color: var(--ink); }
.ct-side .ct-sel { margin: 0 4px 10px; }
.ct-strip li .ts { position: absolute; top: -6px; right: 0; font: 600 9px/1 var(--mono); font-style: normal; padding: 2px 3px; border-radius: 3px; background: var(--up); color: var(--bg); }
.ct-more { margin-top: 8px; padding: 6px 0; border: 0; background: none; cursor: pointer; font: 500 13px/1.3 var(--sans); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.ct-more:hover { color: var(--ink); }
@media (min-width: 900px) { .ct-strip { grid-template-columns: repeat(20, minmax(0, 1fr)); } }
/* главное: самая долгая засуха бонуса */
.ct-lead-box { position: relative; margin: 14px 0 8px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); }
.ct-lead-box:has(.tone-warm) { border-color: color-mix(in oklab, var(--warm) 55%, var(--rule)); }
.ct-lead-box:has(.tone-hot) { border-color: color-mix(in oklab, var(--rare) 60%, var(--rule)); }
.ct-lead-h { display: flex; align-items: center; gap: 8px; }
.ct-lead-h h2 { margin: 0; font-size: 18px; line-height: 1.2; }
.ct-tip-b { flex: none; width: 22px; height: 22px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: none; color: var(--muted); font: 600 12px/20px var(--sans); cursor: pointer; position: relative; }
.ct-tip-b::before { content: ''; position: absolute; inset: -11px; }
.ct-tip-b:hover, .ct-tip-b[aria-expanded=true] { color: var(--ink); border-color: var(--ink-2); }
.ct-lead-what { margin: 2px 0 12px; font-size: 13px; color: var(--muted); }
.ct-tip { position: absolute; z-index: 5; left: 12px; right: 12px; top: 44px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--raised); font-size: 13px; line-height: 1.45; color: var(--ink-2); box-shadow: 0 8px 24px rgb(0 0 0 / .35); }
.ct-lead { color: var(--ink); }
.ct-lead-main { display: flex; align-items: center; gap: 12px; }
.ct-lead-main > .ct-seg img { height: 46px; width: auto; }
.ct-lead-main p { margin: 0; font-size: 17px; line-height: 1.25; }
.ct-lead-main p b { display: block; font: 700 40px/1 var(--mono); }
.ct-lead.tone-warm .ct-lead-main p b { color: var(--warm); } .ct-lead.tone-hot .ct-lead-main p b { color: var(--rare); }
.ct-lead.ct-tick .ct-lead-main p b { animation: ct-blink .7s ease-out; }
@media (min-width: 900px) { .ct-tip { right: auto; width: 420px; } }
/* сверху: засуха; на компьютере слева от неё — последний спин (на телефоне он ниже, в #live) */
.ct-only-d { display: none; }
@media (min-width: 900px) {
  .ct-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 14px 0 8px; }
  .ct-top .ct-lead-box { margin: 0; }
  .ct-only-d { display: block; order: -1; } .ct-only-m { display: none; }
  .ct-only-d .ct-last { height: 100%; box-sizing: border-box; grid-template-rows: 1fr; align-items: stretch; }
}
/* spins since */
.ctw-head, .ctw > summary { display: grid; grid-template-columns: minmax(0, 1fr) 70px 64px 104px; gap: 4px 8px; align-items: center; }
.ctw > summary > .ctw-gaps { grid-column: 1 / -1; text-align: left !important; font-size: 12px; color: var(--muted); line-height: 1.5; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.ctw-head { font: 400 11px/1.2 var(--mono); color: var(--muted); padding: 0 22px 6px 0; border-bottom: 1px solid var(--rule-soft); }
.ctw-head span:not(:first-child), .ctw > summary > :not(:first-child) { text-align: right; }
.ctw { border-bottom: 1px solid var(--rule-soft); }
.ctw > summary { list-style: none; cursor: pointer; padding: 8px 22px 8px 0; position: relative; min-height: 44px; }
.ctw > summary::-webkit-details-marker { display: none; }
.ctw > summary::after { content: '›'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--muted); transition: transform .15s; }
.ctw[open] > summary::after { transform: translateY(-50%) rotate(90deg); }
.ctw > summary:hover { background: var(--surface); }
.ctw > summary > b { font: 600 20px/1 var(--mono); }
.ctw.tone-warm > summary > b { color: var(--warm); } .ctw.tone-hot > summary > b { color: var(--rare); }
.ctw-l { min-width: 0; font-weight: 500; }
.ctw-last { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ctw-last i { font: 600 12px/1 var(--mono); font-style: normal; color: var(--ink-2); }
.ct-any { display: inline-flex; align-items: center; min-height: 28px; }
.ctw-body { padding: 2px 22px 12px 0; font-size: 13px; }
.ctw-body p { margin: 4px 0; }
.ctw-gaps { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .75em; }
.ctw-gaps span { display: inline-block; }
.ctw-body .ctw-gaps { font-size: 12px; color: var(--muted); }
.ctw-gaps em { font: 400 11px/1.5 var(--sans); font-style: normal; color: var(--muted); margin-right: .25em; flex: none; }
.ctw-sub > summary > b { font-size: 17px; }
@media (max-width: 899px) { .ct-strip li:nth-child(n+21) { display: none; } }
@media (min-width: 900px) { .ct-strip li:nth-child(n+41) { display: none; } }
#ct-strip.all .ct-strip li { display: flex; }
.ct-h3 { font-size: 15px; margin: 14px 0 6px; }
.ct-tsl { list-style: none; margin: 0 0 6px; padding: 0; max-width: 860px; }
.ct-tsl li { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px 84px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--rule-soft); font-size: 13px; }
.ct-tsl li b { text-align: right; font-size: 15px; } .ct-tsl li .muted { text-align: right; font-size: 12px; }
.ct-tsl .ts { font: 600 10px/1 var(--mono); font-style: normal; padding: 2px 4px; border-radius: 3px; background: color-mix(in oklab, var(--up) 22%, transparent); color: var(--up); }
.ctw-gaps span.long { color: var(--warm); font-weight: 600; }
@media (max-width: 420px) { .ctw-head, .ctw > summary { grid-template-columns: minmax(0, 1fr) 56px 50px 82px; gap: 6px; } }
/* карточки трекера бонусов (ct_cards_html) */
.ctc-grid { display: grid; gap: 14px; }
.ctc-grid + .ctc-grid, .ctc-grid + .ctc { margin-top: 14px; }
@media (min-width: 900px) { .ctc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ctc-small { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ctc { min-width: 0; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); scroll-margin-top: 70px; }
.ctc-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 0 0 12px; }
.ctc-h h3 { margin: 0; font-size: 16px; line-height: 1.2; }
.ctc-h h3 .ct-seg img { height: 30px; }
.ctc-sub { font-size: 12px; color: var(--muted); }
.ctc .k { display: block; margin: 0 0 6px; font: 400 10px/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ctc-wait { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: start; }
.ctc-now { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 66px; padding: 6px 4px; border: 1px dashed var(--rule); border-radius: 8px; box-sizing: border-box; }
.ctc-now b { font: 700 26px/1 var(--mono); }
.ctc-now span { font: 400 10px/1.1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.ctc-wait.tone-warm .ctc-now { border-color: color-mix(in oklab, var(--warm) 60%, var(--rule)); } .ctc-wait.tone-warm .ctc-now b { color: var(--warm); }
.ctc-wait.tone-hot .ctc-now { border-color: color-mix(in oklab, var(--rare) 65%, var(--rule)); } .ctc-wait.tone-hot .ctc-now b { color: var(--rare); }
.ctc-gaps .ctw-gaps { margin: 0; gap: 3px 11px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.ctc-res { margin-top: 14px; }
.ctc-res ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px 6px; }
.ctc-res li { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid var(--rule); border-radius: 6px; font: 600 12px/1.2 var(--mono); color: var(--ink); }
.ctc-res li.low { color: var(--muted); border-style: dashed; }
.ctc-res li.big { color: var(--warm); border-color: color-mix(in oklab, var(--warm) 70%, var(--rule)); background: color-mix(in oklab, var(--warm) 12%, transparent); }
.ctc-res li .ts { position: absolute; top: -7px; right: -6px; padding: 2px 3px; border-radius: 3px; font: 600 9px/1 var(--mono); font-style: normal; background: var(--up); color: var(--bg); box-shadow: 0 0 0 1px var(--surface); }
.ctc-res .ct-dot { margin: 0; }
.ctc-tsl li { padding: 3px 6px; }
.ctc-tsl li .ct-seg img { height: 20px; width: auto; }
.ctc-tsl li b { color: var(--up); }
.ctc-foot { margin: 12px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.ctc-more { margin-top: 8px; }
.ctc-more summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.ctc-more summary:hover { color: var(--ink); }
.ctc-more table { margin-top: 8px; max-width: 320px; }
.ctc-wait.ct-hit .ctc-now b { animation: ct-flash 2.4s ease-out; border-radius: 4px; }
.ctc-wait.ct-tick .ctc-now b { animation: ct-blink .7s ease-out; }
/* Monopoly Big Baller (bbview.php): шары последнего раунда, «нет бонуса» в ленте, три карточки в ряд */
.bb-balls { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 190px; }
.bb-badge { display: inline-flex; align-items: center; justify-content: center; padding: 5px 8px; border-radius: 6px; font: 800 12px/1 var(--sans); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; color: #1a1405; }
.bb-badge.bb-3 { background: linear-gradient(180deg, #e9ecef, #aeb4bb); }
.bb-badge.bb-5 { background: linear-gradient(180deg, #ffe08a, #d9a227); }
.bb-badge.bb-0 { background: none; color: var(--muted); padding: 0; }
.ct-strip .bb-badge { padding: 4px 5px; font-size: 10px; }
.ct-lead-main > .bb-badge { padding: 10px 12px; font-size: 16px; }
.ct-tile .bb-badge { padding: 7px 10px; font-size: 14px; }
.ctc-h h3 .bb-badge { padding: 5px 9px; font-size: 13px; }
.bb-balls li { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; min-width: 0; border-radius: 50%; background: var(--surface); border: 1px solid var(--rule); font: 600 12px/1 var(--mono); color: var(--ink); }
.bb-nums { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 70px; }
.bb-nums li { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px dashed var(--rule); font: 600 12px/1 var(--mono); color: var(--muted); }
.bb-c3 .bb-nums li.hit { border: 0; background: linear-gradient(180deg, #e9ecef, #aeb4bb); color: #1a1405; }
.bb-c5 .bb-nums li.hit { border: 0; background: linear-gradient(180deg, #ffe08a, #d9a227); color: #1a1405; }
.bb-card.is-on { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--warm) 80%, transparent); }
.bb-won { font: 700 22px/1 var(--sans); color: var(--warm); text-shadow: 0 0 14px color-mix(in oklab, var(--warm) 55%, transparent); }
.bb-balls li.bn { border-color: var(--warm); color: var(--warm); }
/* засуха рядом с плитками последнего раунда: блок той же высоты, число — по центру, без пустоты снизу */
@media (min-width: 900px) { .ct-top .ct-lead-box { display: flex; flex-direction: column; } .ct-top .ct-lead-box #ct-lead { margin: auto 0; } }
.bb-tx-sub { font-size: 11px; line-height: 1.3; color: var(--muted); text-align: center; }
.bb-tl .ct-tw { justify-content: flex-end; }
.bb-strip li { min-height: 26px; justify-content: center; }
.bb-no { display: block; width: 9px; height: 9px; border-radius: 50%; background: color-mix(in oklab, var(--ink-2) 35%, transparent); }
@media (min-width: 900px) { .bb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* сегодня */
.ct-sum { font-size: 15px; margin: 0 0 12px; }
.ct-days th[scope=row] { font-weight: 500; text-align: left; }
.ct-week { margin-top: 10px; }
.ct-week summary { cursor: pointer; font-size: 14px; color: var(--ink-2); padding: 6px 0; }
/* последние бонусы */
.ct-bon { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.ct-bon-col { padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.ct-bon-col h3 { margin: 0 0 8px; font-size: 15px; }
.ct-bon-col ol { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.ct-bon-col li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--rule-soft); }
.ct-bon-col li:last-child { border-bottom: 0; }
.ct-bon-col li .mono { flex: 1; min-width: 0; }
.ct-bon-col li .muted { font-size: 12px; white-space: nowrap; }
.ct-bon-col .ts, .ct-wins .ts { font: 600 10px/1 var(--mono); font-style: normal; padding: 2px 4px; border-radius: 3px; background: color-mix(in oklab, var(--up) 22%, transparent); color: var(--up); white-space: nowrap; }
/* выигрыши */
.ct-tabs { max-width: 420px; margin: 0 0 10px; }
.ct-wins { list-style: none; margin: 0; padding: 0; }
.ct-wins li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.ct-wins li > b { font: 600 20px/1 var(--mono); }
.ct-wins-m { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.ct-pay th[scope=row], .ct-tsm th[scope=row] { font-weight: 500; text-align: left; }
.ct-text h2 { font-size: 20px; }
.ct-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: 0; }
.ct-dot.c-red { background: #e5484d; } .ct-dot.c-blue { background: #3e8ef7; } .ct-dot.c-green { background: #3fb950; } .ct-dot.c-yellow { background: #f2c94c; }
.ct-fl { white-space: nowrap; margin-right: 8px; }
.ctw-list, #ct-today, .ct-wins, #payouts .table-wrap, #topslot .table-wrap, #topslot p, .ct-sec > .hint { max-width: 860px; }
/* живое обновление Crazy Time: индикатор проверки, блик нового раунда, «выпрыгивающий» результат, вспышка счётчиков */
.ct-sync { display: none; width: 11px; height: 11px; margin-right: 7px; vertical-align: -1px; border: 2px solid color-mix(in oklab, var(--ink-2) 35%, transparent); border-top-color: var(--ink); border-radius: 50%; animation: ct-spin .7s linear infinite; }
.ct-status.is-loading .ct-sync { display: inline-block; }
.ct-status.is-loading > i { display: none; }
@keyframes ct-spin { to { transform: rotate(360deg); } }
.ct-last { position: relative; overflow: hidden; }
.ct-last.ct-new::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, color-mix(in oklab, var(--up) 28%, transparent) 50%, transparent 70%); transform: translateX(-100%); animation: ct-shine 1.1s ease-out; }
.ct-last.ct-new { animation: ct-glow 1.6s ease-out; }
@keyframes ct-shine { to { transform: translateX(100%); } }
@keyframes ct-glow { 0% { box-shadow: 0 0 0 2px color-mix(in oklab, var(--up) 55%, transparent); } 100% { box-shadow: 0 0 0 2px transparent; } }
.ct-strip li.ct-pop { animation: ct-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.ct-strip li.ct-pop .sector { filter: drop-shadow(0 0 6px color-mix(in oklab, var(--up) 70%, transparent)); }
@keyframes ct-pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.ctw.ct-hit > summary > b { animation: ct-flash 2.4s ease-out; border-radius: 4px; }
.ctw.ct-tick > summary > b { animation: ct-blink .7s ease-out; }
@keyframes ct-flash { 0%, 35% { background: color-mix(in oklab, var(--up) 40%, transparent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--up) 40%, transparent); } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }
@keyframes ct-blink { from { opacity: .25; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ct-sync, .ct-live i { animation: none; } }
/* Monopoly Live (23.10.2026): плитки «Pays» + «Last spin», цепочка Chance → повторный спин, денежный приз Chance зелёным */
.ml-tl.ct-last.ct-tl { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.ml-tl .ct-tx b { font-size: 30px; }
.ml-chain { display: inline-flex; align-items: center; gap: 8px; }
.ml-chain > i { font-style: normal; color: var(--muted); font-size: 18px; }
.ct-tw .ml-chain .ct-seg:first-child img { height: 40px; }
.ctc-res li.cash, .ctc-cash { color: var(--up); }
.ctc-res li.cash { border-color: color-mix(in oklab, var(--up) 60%, var(--rule)); background: color-mix(in oklab, var(--up) 10%, transparent); }
.ct-strip li .ml-ico img { height: 28px; width: 28px; }
.ct-side .ct-strip li .ml-ico img { height: 30px; width: 30px; }
@media (min-width: 1200px) { .ct-side .ct-strip.ml-strip { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 11px 2px; } }
.ct-strip li .bx.bx-cash { background: var(--up); color: var(--bg); }
.ml-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 0; font-size: 11px; line-height: 1.3; color: var(--muted); }
.ml-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ml-legend i { font: 700 9px/1 var(--mono); font-style: normal; padding: 2px 3px; border-radius: 3px; }
.ml-legend .lg-ts, .ml-legend .lg-cash { background: var(--up); color: var(--bg); }
.ml-legend .lg-bx { background: var(--warm); color: #1a1405; }
.ct-side .ml-legend { margin-top: 14px; }
.ct-strip.is-hover li:not(.is-hov) { opacity: .45; }
.ct-strip.is-hover li { transition: opacity .12s; }
/* ярлыки в ленте поверх иконки: подсвеченная иконка получает filter и иначе перекрывает ярлык, стоящий раньше неё (23.10) */
.ct-strip li .ts, .ct-strip li .bx { z-index: 1; }
.ct-strip li.is-b .bx { left: 0; right: auto; }
/* общий шаблон колёс (23.10): цепочка «множитель повторного спина → итог» в плитке последнего спина (Dream Catcher) */
.ws-chain { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; max-width: 100%; }
.ws-chain > i { font-style: normal; color: var(--muted); font-size: 15px; }
.ct-tw .ws-chain .ct-seg img { height: 24px; width: auto; }
.ct-tw .ws-chain .ct-seg:last-child img { height: 40px; }
.ws-sm .ct-tw .ct-seg img { height: 45px; }
.ws-sm .ct-tw .ws-chain .ct-seg img { height: 19px; }
.ws-sm .ct-tw .ws-chain .ct-seg:last-child img { height: 32px; }
/* «засуха» на ws-sm (Dream Catcher): купюра того же размера, что в плитке последнего спина; при ×2/×7 — обе иконки столбиком */
.ws-sm .ct-lead-main > .ct-seg img { height: 45px; max-width: 121px; object-fit: contain; }
.ws-lead-icons { display: flex; flex-direction: column; gap: 4px; flex: none; }
.ws-lead-icons .ct-seg img { height: 22px; width: auto; }
/* заголовок карточки с несколькими родными иконками (Dream Catcher: ×2 ×7 Respin) */
.ctc-h h3:has(.ws-h-icons) { display: inline-flex; align-items: center; gap: 8px; }
.ws-h-icons { display: inline-flex; gap: 4px; }
.ctc-h h3 .ws-h-icons .ct-seg img { height: 24px; width: auto; }
/* «Today so far» с иконками (Mega Wheel, day_icons): иконки в строке текста — по высоте строки */
.ct-sum .ct-seg img { height: 22px; width: auto; vertical-align: -5px; }
.ct-days .ct-seg img, .ct-week th .ct-seg img { height: 24px; width: auto; }
/* игры с шарами (game-bg.php, 23.10): поле шаров, последний раунд, 100 раундов полоской и журнал бонусов, горячие шары, история */
.bg-ico img { height: 28px; width: auto; }
.ctc-h .bg-ico img, .bg-last .bg-ico img { height: 40px; }
.bg-log .bg-ico img, .ct-wins .bg-ico img { height: 34px; }
.bg-nob { font: 600 11px/1.2 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bg-board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; max-width: 380px; }
.bg-board li { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; min-width: 0; border-radius: 50%; font: 600 12px/1 var(--mono); color: color-mix(in oklab, var(--muted) 75%, transparent); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.bg-board li.on { background: var(--ink); color: var(--bg); }
.ct-last.bg-last { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
.bg-last .bg-board { width: 100%; }
.bg-last.is-hit { border-color: color-mix(in oklab, var(--warm) 60%, var(--rule)); }
.bg-last-h { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.bg-last-h .k { font: 400 10px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bg-last-h .ct-live { font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); gap: 5px; }
.bg-last-h .ct-live i { width: 6px; height: 6px; }
.bg-res { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.bg-b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; }
.bg-x { font: 700 22px/1 var(--sans); color: var(--warm); }
.bg-bt { font-size: 12px; color: var(--muted); }
.bg-ts, .bg-pay { margin: 0; font-size: 12px; color: var(--muted); }
.bg-sum { margin: 0 0 8px; font-size: 14px; }
.bg-log-h { margin: 12px 0 4px; font: 500 11px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bg-log { list-style: none; margin: 0; padding: 0; }
.bg-log li { padding: 8px 0; border-top: 1px solid var(--rule-soft); }
.bg-log li.more { display: none; } .all .bg-log li.more { display: block; }
.bg-log .bg-x { font-size: 18px; }
.bg-l-m { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.bg-live-log { margin-top: 18px; }
.ct-side.bg-side { padding: 12px 14px; }
@media (min-width: 900px) { .bg-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bg-board.bg-hot { max-width: 560px; }
.bg-hot li { flex-direction: column; gap: 3px; aspect-ratio: auto; padding: 7px 0 6px; border-radius: 8px; border: 1px solid var(--rule-soft); background: var(--surface); color: var(--ink); }
.bg-hot li b { font: 600 13px/1 var(--mono); }
.bg-hot li span { font: 400 10px/1 var(--mono); color: var(--muted); }
.bg-hot li.hot { background: color-mix(in oklab, var(--rare) 34%, var(--surface)); border-color: color-mix(in oklab, var(--rare) 60%, var(--rule)); }
.bg-hot li.warm { background: color-mix(in oklab, var(--rare) 14%, var(--surface)); }
.bg-hot li.cold { background: color-mix(in oklab, var(--cold) 34%, var(--surface)); border-color: color-mix(in oklab, var(--cold) 60%, var(--rule)); }
.bg-hot li.cool { background: color-mix(in oklab, var(--cold) 14%, var(--surface)); }
.bg-hot li.hot span, .bg-hot li.cold span { color: var(--ink-2); }
.bg-hot-l { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.bg-hot-l .k { display: block; margin-bottom: 2px; font: 400 10px/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bg-hist { list-style: none; margin: 12px 0 0; padding: 0; }
.bg-hist > li { border-top: 1px solid var(--rule-soft); }
.bg-hist summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px 14px; padding: 9px 0; }
.bg-hist summary::-webkit-details-marker { display: none; }
.bg-hist summary:hover .bg-h-t, .bg-hist summary:hover .bg-run-n { color: var(--ink); }
.bg-hist summary:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.bg-h-t { flex: none; min-width: 64px; font-size: 13px; color: var(--ink-2); }
.bg-h-r { flex: 1 1 auto; min-width: 0; }
.bg-h-r .bg-b { margin: 0; }
.bg-h-r .bg-x { font-size: 16px; }
.bg-h-r .bg-ico img { height: 22px; }
.bg-h-p { flex: none; font-size: 12px; color: var(--muted); }
.bg-run > details > summary { justify-content: space-between; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.bg-run-n::before { content: "▸"; display: inline-block; width: 16px; transition: transform .15s; }
.bg-run > details[open] > summary .bg-run-n::before { transform: rotate(90deg); }
.bg-run .bg-hist { margin: 0 0 6px 16px; }
.bg-board.bg-mini { max-width: 300px; gap: 3px; margin: 0 0 12px; }
.bg-board.bg-mini li { font-size: 10px; }
.bg-alert { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; font-size: 14px; background: color-mix(in oklab, var(--rare) 14%, var(--surface)); border: 1px solid color-mix(in oklab, var(--rare) 45%, var(--rule)); }
.bg-hot li.gone { border-style: dashed; background: transparent; color: var(--muted); }
/* Disco Balls / Mega Ball (28.10.2026): итог — шар с номером; Disco Balls — красный нечётный, золотой чётный (как метки Odd/Even в игре) */
.ws-ball { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font: 700 13px/1 var(--mono);
  color: #1a1405; background: radial-gradient(circle at 35% 30%, #fff6c8, #f2c230 55%, #b98a0c); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .25); }
.ws-ball.odd { color: #fff; background: radial-gradient(circle at 35% 30%, #ff9a8e, #d8322a 55%, #8e1510); }
.ws-ball.even { color: #1a1405; background: radial-gradient(circle at 35% 30%, #fff6c8, #f2c230 55%, #b98a0c); }
.ct-tw .ws-ball, .ct-lead-main > .ws-ball { width: 56px; height: 56px; font-size: 24px; }
.ws-day-h .ws-ball, .ctw-l .ws-ball { width: 26px; height: 26px; font-size: 12px; }
.db-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 12px 0 0; }
.db-g { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--rule-soft); border-radius: 10px; background: var(--surface); }
.db-g .ct-seg img { height: 44px; }
.db-g p { margin: 0; }
.db-g-h { font: 500 11px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.db-g-n { font-size: 14px; } .db-g-n b { font-size: 22px; }
.db-g-m { font-size: 12px; color: var(--muted); }
.db-h { margin: 22px 0 4px; font-size: 16px; }
.db-nums { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 560px; }
.db-nums li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; border-radius: 8px; border: 1px solid var(--rule-soft); }
.db-nums li b { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font: 700 12px/1 var(--mono); }
.db-nums li.odd b { color: #fff; background: #c2302a; } .db-nums li.even b { color: #1a1405; background: #e6b52c; }
.db-nums li span { font: 400 11px/1 var(--mono); color: var(--muted); }
.db-nums li.cold { border-color: color-mix(in oklab, var(--cold) 60%, var(--rule)); background: color-mix(in oklab, var(--cold) 16%, var(--surface)); }
.db-nums li.cold span { color: var(--ink); font-weight: 600; }
@media (max-width: 520px) { .db-nums { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ws-mx { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 4px; border-radius: 6px; font: 700 11px/1 var(--mono);
  color: var(--ink-2); background: color-mix(in oklab, var(--ink) 8%, transparent); }
.ws-mx.hi { color: #1a1405; background: var(--warm); }
.ws-mx.top { color: #fff; background: var(--rare); }
.ct-tw .ws-mx { min-width: 64px; height: 44px; font-size: 20px; border-radius: 10px; }
.mb-mults th .ws-mx { min-width: 44px; }
.db-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .db-groups { grid-template-columns: 1fr; } }
.ct-lead-main .ws-lead-icons .ct-seg:only-child img { height: 52px; width: auto; }   /* одна родная иконка (Disco Balls); у Dream Catcher две маленькие */
.ctc-h .ws-h-icons .ct-seg:only-child img { height: 34px; width: auto; }
/* Кубики (Lightning Dice, Super Sic Bo, 28.10.2026): сумма квадратиком, Small — синий, Big — красный, тройка — золотой; кубики — родные картинки */
.ws-dt { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 3px; border-radius: 7px; font: 700 13px/1 var(--mono); font-style: normal;
  color: var(--ink); background: color-mix(in oklab, var(--ink) 10%, transparent); border: 1px solid var(--rule); }
.ws-dt.small { color: #fff; background: #3d63d8; border-color: #3d63d8; }
.ws-dt.big { color: #fff; background: #c8352d; border-color: #c8352d; }
.ws-dt.triple { color: #1a1405; background: var(--warm); border-color: var(--warm); }
.ml-legend .ws-dt { min-width: 18px; height: 16px; font-size: 9px; border-radius: 4px; margin-right: 4px; vertical-align: -3px; }
.ws-roll { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ws-roll > i { font-style: normal; color: var(--muted); font-size: 18px; }
.ws-roll .ws-dt { min-width: 44px; height: 44px; font-size: 20px; border-radius: 10px; }
.ws-faces { display: inline-flex; gap: 4px; }
.ws-faces img { display: block; border-radius: 6px; }
.ws-totals th .ws-dt { min-width: 30px; }
.ws-totals td, .ws-totals th { white-space: nowrap; }
.ws-totals .wt-s { display: none; }
@media (max-width: 600px) { .ws-totals .wt-l { display: none; } .ws-totals .wt-s { display: inline; } .ws-totals th, .ws-totals td { padding-inline: 6px; font-size: 13px; } .ws-totals thead th { white-space: normal; vertical-align: bottom; } }
.ws-totals tr.is-over td, .ws-totals tr.is-over th { background: color-mix(in oklab, var(--cold) 14%, transparent); }
.ws-facec { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ws-facec li { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 52px; padding: 8px 6px; border: 1px solid var(--rule-soft); border-radius: 8px; }
.ws-facec li b { font-size: 15px; }
.ws-facec .ws-dbl span { font: 500 11px/32px var(--mono); color: var(--muted); text-transform: uppercase; }
.ct-tx .ws-tx-w { font-size: 20px; }
/* карты в последней раздаче (28.10.2026) */
.pc { display: inline-block; margin: 0 1px; padding: 1px 4px; border-radius: 4px; font: 600 12px/1.3 var(--mono); color: #1d1b17; background: #f4efe6; }
.pc.red { color: #c8352d; }
.cd-nav { margin-top: 18px; }
.cd-sec { scroll-margin-top: 12px; }
/* рулетка (02.11.2026), как у Crazy Time: слева сетка спинов и «сегодня», справа сверху в одну строку последний спин и самый холодный номер, ниже меню и ставки */
.rl-lay { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 40px; align-items: start; margin-top: 18px; }
.rl-side, .rl-main { min-width: 0; }
/* сетка слева остаётся на экране при прокрутке, как лента 100 спинов у Crazy Time */
@media (min-width: 901px) {
  .rl-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: thin; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); box-sizing: border-box; }
  .rl-side .rgrid-card { padding: 0; }
  .rl-side .rgrid-card h2 { font-size: 16px; }
}
.rl-side .rgrid-card { border-top: 0; padding-top: 0; }
.rl-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.rl-top > div { display: flex; }
.rl-top .card { flex: 1; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.rl-top .rlast-txt b { font-size: 17px; }
.rl-top .nw { white-space: nowrap; }
.rcold-c { gap: 8px; }
.rcold-c:is(.warm) { border-color: color-mix(in oklab, var(--warm) 55%, var(--rule)); }
.rcold-c:is(.hot) { border-color: color-mix(in oklab, var(--rare) 60%, var(--rule)); }
.rcold-c .rcold-main { gap: 12px; }
.rcold-c .rcold-val { flex-direction: column; gap: 4px; }
.rcold-c .rcold-val b { font-size: 36px; }
.rcold-c .rcold-val span { font-size: 14px; }
.rcold-c .rcold-txt { font-size: 13px; line-height: 1.4; }
.rl-also { border-top: 0; padding: 16px 0 4px; }
.rl-lay .cd-nav { margin: 18px 0 0; }
#rl-grid, #rl-last, #rl-cold, .rl-main #waits { scroll-margin-top: 12px; }
.rl-nav-grid { display: none; }
@media (max-width: 900px) {
  .rl-lay { display: flex; flex-direction: column; margin-top: 0; }
  .rl-side, .rl-main { display: contents; }
  .rl-main > * { order: 5; }
  .rl-lay .cd-nav { order: 0; margin: 18px 0 16px; }
  .rl-top { order: 1; grid-template-columns: 1fr; gap: 12px; }
  #rl-grid { order: 2; margin-top: 20px; }
  .rl-main #waits { order: 3; }
  .rl-main #today { order: 4; }
  .rl-top #rl-cold { order: -1; }
  .rl-nav-grid { display: inline-flex; }
  #rl-grid .rgrid-r { grid-template-columns: repeat(10, minmax(0, 1fr)); }   /* 100 номеров — ровно 10 полных рядов */
}
.rg-n-m { display: none; }
@media (max-width: 900px) { .rg-n-d { display: none; } .rg-n-m { display: inline; } }
/* больше 10 множителей (XXXtreme) на телефоне столбики не помещаются — список «×50 36.5%» с переносом */
@media (max-width: 520px) {
  .mbars-wrap.many .mbars { display: none; }
  .mbars-wrap.many .mbars-lbl { display: flex; flex-wrap: wrap; gap: 6px; }
  .mbars-wrap.many .mbars-lbl span { flex-direction: row; gap: 6px; padding: 5px 8px; border: 1px solid var(--rule-soft); border-radius: 6px; font-size: 11px; letter-spacing: 0; }
  .mbars-wrap.many .mbars-lbl b { font-size: 12px; }
}

/* ===== Меню (03.11.2026): шторка «Menu» (.msh) и нижняя панель (.bnav2) — includes/mobilemenu.php, assets/menu.js ===== */
html.msh-lock, html.msh-lock body { overflow: hidden; }
.msh-back { position: fixed; inset: 0; z-index: 30; background: rgb(0 0 0 / .55); opacity: 0; transition: opacity .26s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.msh-back.open { opacity: 1; }
.msh { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-width: 560px; margin: 0 auto; height: calc(100dvh - 48px); max-height: 900px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rule); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -16px 48px rgb(0 0 0 / .35);
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom); }
.msh.open { transform: none; }
.msh.drag { transition: none; }
.msh[hidden], .msh-back[hidden] { display: none; }
.msh-top { flex: none; padding: 6px 16px 14px; border-bottom: 1px solid var(--rule-soft); touch-action: none; }
.msh-grip { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--rule); margin: 4px auto 6px; }
.msh-head { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.msh-head b { font: 600 20px/1 var(--sans); letter-spacing: -.01em; }
.msh-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.msh-x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 50%; background: var(--raised); color: var(--ink); cursor: pointer; padding: 0; }
.msh-x .mi { width: 18px; height: 18px; }
.msh-x:hover { border-color: var(--ink-2); }
.msh-q { display: flex; align-items: center; gap: 10px; height: 48px; margin-top: 10px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg); color: var(--muted); cursor: text; transition: border-color .15s; }
.msh-q:focus-within { border-color: var(--accent); }
.msh-q .mi { width: 20px; height: 20px; flex: none; }
.msh-q input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: 400 16px/1 var(--sans); outline: none; -webkit-appearance: none; appearance: none; }
.msh-q input::placeholder { color: var(--faint); }
.msh-q input::-webkit-search-cancel-button { -webkit-appearance: none; }
.msh-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 16px 22px; -webkit-overflow-scrolling: touch; }
.msh-sec h2 { margin: 20px 0 10px; font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.msh-gs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.msh-g { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 6px 10px; border: 1px solid var(--rule-soft); border-radius: 14px; background: var(--raised);
  color: var(--ink); text-decoration: none; text-align: center; font: 500 12px/1.25 var(--sans); min-width: 0; transition: border-color .15s, transform .1s; }
.msh-g:hover { border-color: var(--rule); color: var(--ink); }
.msh-g:active { transform: scale(.97); }
.msh-g[aria-current] { border-color: color-mix(in oklab, var(--accent) 60%, var(--rule)); }
.msh-g .glogo { width: 44px; height: 44px; border-radius: 11px; display: block; }
.msh-g span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.msh-ss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.msh-s { display: flex; align-items: center; gap: 11px; min-height: 60px; padding: 10px 12px; border: 1px solid var(--rule-soft); border-radius: 14px; color: var(--ink); text-decoration: none; min-width: 0; transition: border-color .15s, background .15s; }
.msh-s:hover { border-color: var(--rule); color: var(--ink); background: var(--raised); }
.msh-s .mi { flex: none; color: var(--muted); }
.msh-s span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.msh-s b { font: 600 14px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msh-s small { font: 400 12px/1.2 var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msh-s.on { border-color: color-mix(in oklab, var(--accent) 55%, var(--rule)); background: color-mix(in oklab, var(--accent) 7%, transparent); }
.msh-s.on .mi { color: var(--accent); }
.msh-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: 16px; }
.msh-theme { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg); }
.msh-theme button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 0; border-radius: 11px; background: none; color: var(--muted); font: 500 14px/1 var(--sans); cursor: pointer; }
.msh-theme button .mi { width: 18px; height: 18px; }
.msh-theme button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.msh-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; font-size: 13px; }
.msh-links a { color: var(--muted); text-decoration: none; }
.msh-links a:hover { color: var(--ink); }
.msh-links .age { font: 600 11px/1 var(--mono); color: var(--muted); border: 1px solid var(--rule); border-radius: 6px; padding: 4px 6px; }
.msh-res ul { list-style: none; margin: 8px 0 0; padding: 0; }
.msh-res li a { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--rule-soft); color: var(--ink); text-decoration: none; }
.msh-res li a:hover, .msh-res li a:focus-visible { background: var(--raised); }
.msh-res .glogo { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.msh-res b { display: block; font: 600 15px/1.25 var(--sans); }
.msh-res small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.msh-nologo { display: inline-block; width: 40px; height: 40px; border-radius: 10px; background: var(--raised); flex: none; }
.msh-none { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
/* компьютер: панель справа во всю высоту */
@media (min-width: 901px) {
  .msh { left: auto; top: 0; bottom: 0; right: 0; width: 420px; max-width: none; height: auto; max-height: none; margin: 0; border: 0; border-left: 1px solid var(--rule); border-radius: 0; box-shadow: -16px 0 48px rgb(0 0 0 / .35); transform: translateX(100%); }
  .msh-grip { display: none; }
  .msh-top { padding-top: 14px; touch-action: auto; }
}
@media (prefers-reduced-motion: reduce) { .msh, .msh-back { transition: none; } }
/* нижняя панель: значок в «капсуле» у текущего раздела, полупрозрачный фон */
@media (max-width: 900px) {
  :root:not(.has-gtabs) body:has(.bnav2) { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  :root:not(.has-gtabs) .bnav2 { background: color-mix(in oklab, var(--surface) 96%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .bnav2 a, .bnav2 button { height: 62px; gap: 4px; font: 500 11px/1 var(--sans); letter-spacing: .01em; -webkit-tap-highlight-color: transparent; }
  .bnav2 .mi { display: block; width: 22px; height: 22px; padding: 4px 16px; border-radius: 14px; box-sizing: content-box; transition: background .15s, color .15s; }
  .bnav2 [aria-current="page"], .bnav2 button[aria-expanded="true"] { color: var(--ink); font-weight: 600; }
  .bnav2 [aria-current="page"] .mi, .bnav2 button[aria-expanded="true"] .mi { color: var(--accent); background: color-mix(in oklab, var(--accent) 15%, transparent); }
  .bnav2 a:active .mi, .bnav2 button:active .mi { background: var(--raised); }
}

/* ---------- десктопная шапка (03.11.2026): липкая, выпадающие списки столов, поиск «/» ---------- */
.dnav, .dfind { display: none; }
@media (min-width: 1001px) {
  .site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s; }
  .site-head.scrolled { box-shadow: 0 6px 24px rgb(0 0 0 / .28); }
  :root[data-theme="light"] .site-head.scrolled { box-shadow: 0 6px 20px rgb(60 40 10 / .10); }
  .site-head-in { gap: 24px; }
  .burger { display: none; }
  .dnav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; height: 100%; }
  .dnav-a { height: 36px; padding: 0 10px; display: flex; align-items: center; white-space: nowrap; font: 500 14px/1 var(--sans); text-decoration: none; color: var(--muted); border-radius: 8px; transition: color .15s, background-color .15s; }
  .dnav-a:hover { color: var(--ink); background: var(--raised); }
  .dnav > .dnav-a.on, .dnav-i.on > .dnav-a { color: var(--ink); }
  /* текущий раздел: короткая полоска прямо под словом, ровно по его ширине (без стрелки) */
  .dnav-a { position: relative; }
  .dnav > .dnav-a.on::after, .dnav-i.on > .dnav-a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); }
  .dnav-i.on > .dnav-a::after { right: 2px; }
  .dnav-i { position: relative; display: flex; align-items: center; height: 100%; }
  .dnav-i > .dnav-a { padding-right: 2px; border-radius: 8px 0 0 8px; }
  .dnav-c { width: 22px; height: 36px; display: flex; align-items: center; justify-content: center; border: 0; padding: 0 4px 0 0; background: transparent; color: var(--faint); border-radius: 0 8px 8px 0; cursor: pointer; transition: color .15s, background-color .15s; }
  .dnav-c .mi { width: 16px; height: 16px; transition: transform .18s; }
  .dnav-i:hover > .dnav-a, .dnav-i:hover > .dnav-c, .dnav-i.open > .dnav-a, .dnav-i.open > .dnav-c { background: var(--raised); color: var(--ink); }
  .dnav-i.open .dnav-c .mi { transform: rotate(180deg); }
  .dnav-a:focus-visible, .dnav-c:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

  .dd { position: absolute; top: calc(100% - 4px); left: -8px; width: 520px; padding: 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 18px 48px rgb(0 0 0 / .4); z-index: 21; animation: dd-in .16s cubic-bezier(.2, .8, .2, 1); }
  :root[data-theme="light"] .dd { box-shadow: 0 18px 44px rgb(60 40 10 / .16); }
  .dd::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }   /* мостик: мышь не теряет список по пути вниз */
  .dd[hidden] { display: none; }
  .dd-w { width: 740px; }
  @keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
  .dd-head { display: flex; align-items: baseline; gap: 10px; padding: 2px 6px 10px; border-bottom: 1px solid var(--rule-soft); margin-bottom: 8px; }
  .dd-head b { font: 600 15px/1.2 var(--sans); color: var(--ink); }
  .dd-head span { font: 500 12px/1 var(--mono); color: var(--faint); }
  .dd-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .dd-w .dd-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dd-list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
  .dd-list a:hover, .dd-list a:focus-visible { background: var(--raised); outline: none; }
  .dd-list a[aria-current] { background: var(--raised); box-shadow: inset 2px 0 0 var(--accent); }
  .dd-list .glogo { width: 36px; height: 36px; }
  .dd-list span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .dd-list b { font: 500 14px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dd-list small { font: 400 12px/1 var(--sans); color: var(--faint); }
  .dd-all { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 10px 8px 2px; border-top: 1px solid var(--rule-soft); font: 500 13px/1 var(--sans); color: var(--accent-ink); text-decoration: none; }
  .dd-all .mi { width: 16px; height: 16px; transition: transform .15s; }
  .dd-all:hover .mi { transform: translateX(3px); }

  .dfind { display: flex; align-items: center; gap: 8px; height: 36px; width: 150px; padding: 0 8px 0 10px; margin-right: 8px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--faint); font: 400 14px/1 var(--sans); cursor: pointer; transition: border-color .15s, color .15s; }
  .dfind:hover { border-color: var(--muted); color: var(--muted); }
  .dfind .mi { width: 17px; height: 17px; flex: none; }
  .dfind span { flex: 1; text-align: left; }
  .dfind kbd, .cmdk kbd { font: 500 11px/1 var(--mono); color: var(--muted); padding: 3px 6px; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; background: var(--bg); }
  /* для пунктов нужно место: на узком экране поиск — одним значком, live без часов */
  /* ширина поля поиска — в блоке «Шапка, правая часть» в конце файла */
  @media (max-width: 1240px) { .site-head .live-badge { display: none; } }
  @media (max-width: 1140px) { .dfind { width: 40px; padding: 0; justify-content: center; margin-right: 0; } .dfind span, .dfind kbd { display: none; } .site-head-in { gap: 14px; } }

  /* главная: поле поиска не нужно — поиск теперь в шапке на всех страницах */
  .hero3 .finder { display: none; }
  .hero3 { grid-template-columns: 1fr; padding-bottom: 16px; }
  /* липкие полосы страниц — под шапкой */
  .ct-nav, .gtabs { top: 56px; }
  #stats .card-head, .card-head.stick { top: 105px; }
  .ct-side, .rl-side { top: 68px; max-height: calc(100vh - 80px); }
  [id], .gpanel { scroll-margin-top: 72px; }
  .ct-sec, .cd-sec, #rl-grid, #rl-last, #rl-cold, .rl-main #waits { scroll-margin-top: 120px; }
}

/* окно поиска */
.cmdk-back { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cmdk { position: fixed; z-index: 41; top: 12vh; left: 50%; width: min(640px, calc(100vw - 32px)); transform: translateX(-50%); max-height: 72vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; box-shadow: 0 30px 80px rgb(0 0 0 / .5); overflow: hidden; animation: cmdk-in .16s cubic-bezier(.2, .8, .2, 1); }
.cmdk[hidden], .cmdk-back[hidden] { display: none; }
@keyframes cmdk-in { from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(.98); } }
.cmdk-lock body { overflow: hidden; }
.cmdk-q { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 16px; border-bottom: 1px solid var(--rule); color: var(--muted); flex: none; }
.cmdk-q .mi { width: 20px; height: 20px; flex: none; }
.cmdk-q input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: 400 17px/1 var(--sans); outline: none; -webkit-appearance: none; appearance: none; }
.cmdk-q input::placeholder { color: var(--faint); }
.cmdk-q input::-webkit-search-cancel-button { -webkit-appearance: none; }
.cmdk-body { overflow-y: auto; padding: 6px 8px 10px; scrollbar-width: thin; }
.cmdk-g { padding: 12px 10px 6px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.cmdk-o { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.cmdk-o[aria-selected="true"] { background: var(--raised); }
.cmdk-o .glogo { width: 32px; height: 32px; }
.cmdk-o > span:not(.glogo):not(.cmdk-ic) { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cmdk-o b { font: 500 14px/1.2 var(--sans); }
.cmdk-o small { font: 400 12px/1 var(--sans); color: var(--faint); }
.cmdk-o i { font: 500 11px/1 var(--mono); font-style: normal; color: var(--faint); opacity: 0; }
.cmdk-o[aria-selected="true"] i { opacity: 1; }
.cmdk-o[aria-selected="true"] i::after { content: " ↵"; }
.cmdk-ic { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--raised); color: var(--muted); }
.cmdk-o[aria-selected="true"] .cmdk-ic { background: var(--bg); color: var(--accent-ink); }
.cmdk-ic .mi { width: 18px; height: 18px; }
.cmdk-none { margin: 0; padding: 24px 10px; color: var(--muted); font-size: 14px; }
.cmdk-foot { flex: none; display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--rule-soft); font: 400 12px/1 var(--sans); color: var(--faint); }
.cmdk-foot kbd { margin-right: 3px; }
.cmdk-foot span:last-child { margin-left: auto; }
.cmdk kbd { font: 500 11px/1 var(--mono); color: var(--muted); padding: 3px 6px; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; background: var(--bg); }
@media (max-width: 1000px) { .cmdk-foot { display: none; } }
@media (prefers-reduced-motion: reduce) { .dd, .cmdk { animation: none; } }

/* верх шторки меню: без заголовка и часов — поиск и кнопка закрытия одной строкой */
.msh-head2 { gap: 10px; }
.msh-head2 .msh-q { flex: 1; min-width: 0; margin-top: 0; }
.msh-head2 .msh-x { flex: none; width: 48px; height: 48px; border: 1px solid var(--rule); border-radius: 14px; background: var(--raised); color: var(--muted); transition: color .15s, background-color .15s; }
.msh-head2 .msh-x:hover { color: var(--ink); }
.msh-head2 .msh-x .mi { width: 20px; height: 20px; }

/* ---------- страница раздела (03.11.2026) ---------- */
.catv-head { display: block; padding: 18px 0 6px; }
.catv-head h1 { margin: 4px 0 8px; font: 600 clamp(28px, 5vw, 40px)/1.1 var(--sans); letter-spacing: -.025em; }
.catv-head .hero-live { margin: 0; }
.cat-crumbs { margin: 0; }
.cat-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 12px; }
.cat-bar[hidden] { display: flex; visibility: hidden; }   /* место держим до скрипта, иначе карточки прыгают вниз (CLS) */
.cseg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.cseg button { height: 34px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: 500 14px/1 var(--sans); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.cseg button:hover { color: var(--ink); }
.cseg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); }
.catv-sec { margin-top: 36px; }
.catv-sec h2 { margin: 0 0 12px; font: 600 22px/1.2 var(--sans); letter-spacing: -.01em; }
.catv-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.catv-sec-h h2 { margin: 0; }
.catv-sec-h span { font-size: 13px; }
.cat-about { padding-top: 28px; border-top: 1px solid var(--rule); }
.cat-about .prose { max-width: 760px; }
.cat-about .prose h2 { font-size: 18px; margin-top: 22px; }
.cat-other { max-width: 760px; }
/* таблица «Last 24 hours» */
.cmp th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.cmp th button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cmp th[aria-sort="ascending"] button::after { content: "↑"; color: var(--accent-ink); }
.cmp th[aria-sort="descending"] button::after { content: "↓"; color: var(--accent-ink); }
.cmp td { vertical-align: middle; }
.cmp-g { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.cmp-g .glogo { width: 32px; height: 32px; }
.cmp-g span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmp-g b { font: 500 14px/1.2 var(--sans); }
.cmp-g small { font-size: 12px; color: var(--faint); }
.cmp-g:hover b { color: var(--accent-ink); }
@media (max-width: 640px) {
  .cat-bar .cseg:first-child button { padding: 0 10px; font-size: 13px; }
  .cmp-d { display: none; }
  .cmp-g small, .cmp-bn { display: none; }
  .cmp .cmp-pc { color: inherit; }
  .catv-sec-h span { display: none; }
  .cat-crumbs { display: none; }
}

/* --- Симулятор стратегий (03.11.2026): поле ставок, фишки, итог; ≥1001 px — две колонки --------------- */
.sx-head .lede { margin-bottom: 4px; }
.sx-app { display: grid; gap: 8px; margin-top: 12px; }
.sx-build, .sx-res { min-width: 0; }
.sx-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sx-top h2 { margin: 0; }
.sx-stake { color: var(--muted); font-size: 14px; }
.sx-stake b { color: var(--ink); font: 600 18px/1 var(--mono); margin-left: 4px; }
.sx-lab { display: block; color: var(--muted); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }

.sx-chips { display: flex; gap: 8px; margin: 0 0 14px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.sx-chips::-webkit-scrollbar { display: none; }
.sx-chip { --c: #6b7280; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; color: #fff; font: 700 13px/1 var(--mono);
  background: radial-gradient(circle, var(--c) 0 52%, transparent 53%), repeating-conic-gradient(var(--c) 0 30deg, #fff 30deg 45deg);
  border: 3px solid var(--c); box-shadow: 0 1px 2px rgba(0,0,0,.35); transition: transform .12s, box-shadow .12s; text-shadow: 0 1px 1px rgba(0,0,0,.4); }
.sx-chip.c0 { --c: #7a8290; } .sx-chip.c1 { --c: #c0892a; } .sx-chip.c2 { --c: #3b6fd1; }
.sx-chip.c3 { --c: #c8402f; } .sx-chip.c4 { --c: #2f8f57; } .sx-chip.c5 { --c: #2a2722; }
.sx-chip[aria-checked="true"] { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent), 0 4px 10px rgba(0,0,0,.35); }

.sx-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sx-board.c3 { grid-template-columns: repeat(3, 1fr); }
.sx-seg { position: relative; }
.sx-add { width: 100%; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 4px 10px;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s, transform .08s; -webkit-tap-highlight-color: transparent; }
.sx-add:hover { border-color: var(--ink-2); }
.sx-add:active { transform: scale(.97); }
.sx-ico { height: 40px; display: flex; align-items: center; justify-content: center; max-width: 100%; }
.sx-ico img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.sx-p { font: 500 11px/1 var(--mono); color: var(--muted); }
.sx-seg.on .sx-add { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 9%, var(--surface)); }
.sx-st { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: none; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent); font: 700 12px/1 var(--mono); pointer-events: none; box-shadow: 0 0 0 2px var(--bg); }
.sx-seg.on .sx-st { display: inline-flex; }
.sx-seg.hit .sx-st { animation: sx-pop .22s ease-out; }
@keyframes sx-pop { 50% { transform: translateX(-50%) scale(1.25); } }
.sx-rm { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); font: 600 16px/1 var(--sans); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.sx-rm[hidden] { display: none; }
.sx-rm:hover { border-color: var(--ink-2); }

.sx-tools, .sx-share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 0; }
.sx-tool { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; }
.sx-tool:hover:not(:disabled) { border-color: var(--ink-2); }
.sx-tool:disabled { opacity: .45; cursor: default; }
.sx-picks { margin-top: 18px; }
.sx-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sx-pill { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--rule); background: none; color: var(--ink); font: 500 13px/1 var(--sans); cursor: pointer; }
.sx-pill:hover { border-color: var(--ink-2); }
.sx-pill.sx-mine { padding: 0; overflow: hidden; }
.sx-mine button { height: 100%; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; padding: 0 4px 0 12px; }
.sx-mine .sx-x { padding: 0 10px 0 6px; color: var(--muted); font-size: 16px; }
.sx-mine .sx-x:hover { color: var(--down); }
.sx-set { display: grid; gap: 12px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--rule); }
.sx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sx-row .sx-lab { margin: 0; }
.sx-seg5 button { min-width: 44px; padding: 0 10px; }
.sx-hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.sx-res { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 10px; scroll-margin-top: 70px; }
.sx-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 16px; border: 1px dashed var(--rule); border-radius: 14px; color: var(--muted); }
.sx-empty p { margin: 0; max-width: 40ch; font-size: 14px; line-height: 1.5; }
.sx-empty b { color: var(--ink); }
#sx-load { display: flex; flex-direction: column; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.sx-prog { display: block; width: 180px; height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.sx-prog i { display: block; height: 100%; background: var(--accent); transition: width .25s linear; }
.sx-empty[hidden] { display: none; }
.sx-sum { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.sx-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sx-kpi { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); min-width: 0; }
.sx-kpi span { color: var(--muted); font-size: 12px; }
.sx-kpi b { font: 600 22px/1.1 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.sx-kpi b.up { color: var(--up); } .sx-kpi b.down { color: var(--down); }
.sx-kpi small { color: var(--faint); font-size: 12px; line-height: 1.3; }
.sx-chart { position: relative; margin: 16px 0 6px; touch-action: pan-y; }
.sx-chart canvas { display: block; width: 100%; cursor: crosshair; }
.sx-tip { position: absolute; top: -6px; display: flex; gap: 8px; align-items: baseline; padding: 6px 9px; border-radius: 8px; background: var(--raised); border: 1px solid var(--rule); font: 500 12px/1 var(--mono); color: var(--muted); pointer-events: none; white-space: nowrap; }
.sx-tip b { font-size: 13px; }
.sx-tip[hidden] { display: none; }
.sx-facts { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.sx-facts b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.sx-luck { margin-top: 18px; padding: 14px; border: 1px solid var(--rule); border-radius: 12px; }
.sx-luck[hidden] { display: none; }
.sx-luck h3 { margin: 0 0 10px; }
.sx-luck p { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.sx-meter { height: 8px; border-radius: 4px; background: color-mix(in oklab, var(--down) 30%, transparent); overflow: hidden; }
.sx-meter i { display: block; height: 100%; background: var(--up); border-radius: 4px; transition: width .25s; }
.sx-table td { vertical-align: middle; }
.sx-res table.data th:last-child, .sx-res table.data td:last-child { padding-right: 6px; }
.sx-tb { display: inline-flex; align-items: center; height: 28px; }
.sx-tb img { height: 28px; width: auto; }
.sx-share { margin-top: 14px; }
.sx-about { margin-top: 28px; }
.sx-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--rule); background: var(--raised); color: var(--ink); font: 500 14px/1.2 var(--sans); box-shadow: 0 6px 20px rgba(0,0,0,.3); cursor: pointer; }
.sx-bar[hidden] { display: none; }
.sx-bar span b { font-family: var(--mono); }
.sx-bar > b { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) { :root:not(.has-gtabs) .sx-bar { bottom: calc(58px + 10px + env(safe-area-inset-bottom)); } }
@media (max-width: 380px) { .sx-add { min-height: 84px; } .sx-ico, .sx-ico img { height: 34px; } .sx-board { gap: 6px; } .sx-chip { width: 42px; height: 42px; } }
@media (min-width: 560px) { .sx-kpis { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1001px) {
  .sx-app { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 40px; align-items: start; }
  .sx-build { position: sticky; top: 72px; }
  .sx-res { border-top: 0; padding-top: 0; margin-top: 0; }
  .sx-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1180px) { .sx-kpis { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 559px) { .sx-d { display: none; } }

/* Telegram-оповещения (03.11.2026): колокольчик стола на радаре, страница /telegram/ */
.rb-bell:hover svg { color: var(--accent-ink); }
.rb-top { display: flex; align-items: center; gap: 4px; }
.rb-top .rb-head { flex: 1; min-width: 0; }
.rb-bell { flex: none; width: 36px; height: 36px; margin-right: -8px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.rb-bell:hover { background: var(--raised); color: var(--ink); }
.tgp-cta { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 16px/1 var(--sans); text-decoration: none; }
.tgp-cta:hover { opacity: .9; }
.tgp-under { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.tgp-sec { border-top: 1px solid var(--rule); padding: 20px 0 26px; }
.tgp-sec h2 { margin-top: 0; }
.tgp-msg { max-width: 100%; padding: 9px 12px 10px; border-radius: 12px 12px 12px 4px; background: var(--surface); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.tgp-kb { display: block; margin: 9px -6px -4px; padding: 8px; border: 1px solid var(--rule); border-radius: 8px; text-align: center; font-weight: 500; font-size: 13px; }
.tgp-ico { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 6px; border: 1px solid var(--rule); border-radius: 999px; font-weight: 500; white-space: nowrap; vertical-align: 1px; }
.tgp-ico svg { color: var(--accent-ink); }
.tgp-note ul { margin: 0; padding-left: 20px; }
.tgp-note li { margin: 0 0 8px; }

/* Предложение подписки на Telegram-оповещения (tg_promo_html, includes/tglink.php): строка-ссылка с колокольчиком */
.tgx { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; color: var(--ink); text-decoration: none; }
.tgx:hover { border-color: var(--ink-2); }
.tgx-i { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--raised); color: var(--accent-ink); }
.tgx-t { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 14px; line-height: 1.35; }
.tgx-t b { font-weight: 600; }
.tgx-t small { color: var(--muted); font-size: 12.5px; }
.tgx-go { flex: none; height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 13px/1 var(--sans); }
.tgx:hover .tgx-go { opacity: .9; }
.tgx.tgx-in { margin: 14px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; }
.tgx.tgx-in .tgx-i { width: 32px; height: 32px; }
@media (max-width: 400px) { .tgx-go { padding: 0 11px; } .tgx { gap: 10px; } }

/* /telegram/ (переделано 03.11.2026): шапка с примером переписки, три пользы, готовые оповещения, виды сообщений, шаги */
.tgh { display: grid; gap: 28px; align-items: center; margin: 8px 0 30px; }
@media (min-width: 900px) { .tgh { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; margin-top: 20px; } }
.tgh-k { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--accent-ink); font: 500 13px/1 var(--mono); letter-spacing: .02em; }
.tgh h1 { margin: 0 0 12px; font-size: clamp(32px, 7vw, 52px); line-height: 1.04; letter-spacing: -.02em; }
.tgh-lede { margin: 0 0 22px; max-width: 46ch; color: var(--ink-2); font-size: 18px; line-height: 1.5; }
.tgphone { max-width: 380px; margin: 0 auto; border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; background: var(--raised); }
.tgphone-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--rule); background: var(--surface); }
.tgphone-top b { display: block; font-size: 14px; }
.tgphone-top small { color: var(--muted); font-size: 12px; }
.tgphone-av { width: 34px; height: 34px; border-radius: 50%; background: #13120f; display: grid; place-items: center; flex: none; }
.tgphone-av i { width: 16px; height: 16px; border: 2px solid #f4efe6; border-radius: 50%; position: relative; }
.tgphone-av i::after { content: ""; position: absolute; left: 50%; top: -3px; width: 2px; height: 8px; margin-left: -1px; background: #ff5a36; }
.tgphone-chat { display: grid; gap: 8px; justify-items: start; padding: 14px 12px 16px; }
.tgp-sub { margin: -4px 0 14px; color: var(--muted); }
.tgw { display: grid; gap: 18px; }
@media (min-width: 760px) { .tgw { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.tgw b { display: block; margin-bottom: 4px; font-size: 17px; }
.tgw p { margin: 0; color: var(--ink-2); }
.tgr { display: grid; gap: 8px; }
@media (min-width: 760px) { .tgr { grid-template-columns: 1fr 1fr; gap: 10px 14px; } }
.tgr-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; color: var(--ink); text-decoration: none; }
.tgr-row:hover { border-color: var(--ink-2); }
.tgr-row .glogo { border-radius: 8px; flex: none; }
.tgr-t { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 14px; line-height: 1.35; }
.tgr-t small { color: var(--muted); font-size: 12.5px; }
.tgk { display: grid; gap: 14px; margin: 0; }
@media (min-width: 760px) { .tgk { grid-template-columns: 1fr 1fr; gap: 18px 36px; } }
.tgk dt { font-weight: 600; margin-bottom: 2px; }
.tgk dd { margin: 0; color: var(--ink-2); }
.tgs { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: tgs; }
@media (min-width: 760px) { .tgs { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.tgs li { counter-increment: tgs; display: grid; gap: 4px; }
.tgs li::before { content: counter(tgs); font: 600 28px/1 var(--mono); color: var(--accent-ink); margin-bottom: 6px; }
.tgs li > span { color: var(--ink-2); }

/* Главная: блок «Telegram alerts» (tg_home_block, includes/tglink.php) */
.hal { display: grid; gap: 22px; margin: 8px 0 28px; padding: 22px 20px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); }
@media (min-width: 900px) { .hal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 30px 32px; align-items: center; } }
.hal h2 { margin: 0 0 10px; font-size: clamp(24px, 4.6vw, 32px); line-height: 1.12; letter-spacing: -.01em; }
.hal-p { margin: 0 0 18px; color: var(--ink-2); max-width: 48ch; }
.hal-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hal-more { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.hal-k { margin: 0 0 10px; color: var(--muted); font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.hal .tgr { grid-template-columns: 1fr; }
.hal .tgr-row { background: var(--bg); }

/* Шапка и меню: Telegram-оповещения */
.msh-tg { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 14px; color: var(--ink); text-decoration: none; background: var(--surface); }
.msh-tg:hover { border-color: var(--ink-2); }
.msh-tg-i { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--raised); color: var(--accent-ink); }
.msh-tg > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; }
.msh-tg b { font-size: 15px; }
.msh-tg small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.msh-tg .mi { flex: none; color: var(--muted); }

.tg-logo { flex: none; }
.tgp-cta .tg-logo { margin-left: -6px; }
/* Главная: «An independent archive» — четыре цифры одной панелью (вместо .why2) */
.arch { margin: 8px 0 32px; }
.arch-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.arch-head h2 { margin: 0; }
.arch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.arch-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 22px; background: var(--surface); min-width: 0; }
.arch-grid b { font: 600 clamp(24px, 3vw, 32px)/1.05 var(--mono); letter-spacing: -.03em; margin-bottom: 6px; }
.arch-grid span { font-weight: 500; font-size: 15px; }
.arch-grid small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.arch-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .arch-grid { grid-template-columns: 1fr 1fr; } .arch-grid > div { padding: 16px; } }

/* логотип Telegram вместо колокольчика в строке-предложении */
.tgx-i { background: none; width: 36px; height: 36px; }
.tgx.tgx-in .tgx-i { width: 34px; height: 34px; }
.tgx.tgx-in .tgx-i svg { width: 34px; height: 34px; }

/* Шапка: статус «Live» — точка с мягко расходящимся кольцом (03.11.2026, вместо часов) */
.site-head .live-badge { gap: 8px; height: 36px; padding: 0 4px 0 2px; border: 0; font: 500 13px/1 var(--sans); color: var(--ink-2); letter-spacing: .01em; }
.site-head .live-dot { position: relative; width: 8px; height: 8px; background: var(--up); animation: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--up) 18%, transparent); }
.site-head .live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--up); animation: live-ring 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
@keyframes live-ring { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.site-head .live-badge.is-off { color: var(--muted); }
.site-head .live-badge.is-off .live-dot { background: var(--faint); box-shadow: none; }
.site-head .live-badge.is-off .live-dot::after { display: none; }
@media (prefers-reduced-motion: reduce) { .site-head .live-dot::after { animation: none; opacity: 0; } }

/* Шапка, правая часть (03.11.2026): единый вид кнопок — 36 px (на телефоне 40), скругление 10 px, тонкая рамка,
   одноцветные значки 18 px. Live — статус, а не кнопка: без рамки. Компьютер: Live · поиск · Alerts · тема.
   Телефон: Live · Alerts · меню (поиск и тема — в шторке меню). На 1250 px меню впритык — ширины не увеличивать. */
.site-head .head-tools { gap: 6px; }
.hbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; min-width: 36px; padding: 0 9px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--ink-2); font: 500 13.5px/1 var(--sans); text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s; }
.hbtn:hover, .hbtn[aria-current], .hbtn[aria-expanded="true"] { border-color: var(--muted); color: var(--ink); }
.hbtn svg, .hbtn .mi { width: 18px; height: 18px; flex: none; color: currentColor; }
.hbtn-theme, .hbtn.burger { width: 36px; padding: 0; }
.hbtn.head-tg { padding: 0 12px 0 10px; }
.site-head .hbtn.dfind { display: none; }
@media (max-width: 1240px) { .hbtn.head-tg { width: 36px; padding: 0; } .hbtn.head-tg span { display: none; } }
@media (max-width: 1000px) {
  .hbtn, .hbtn.head-tg, .hbtn.burger { width: 40px; height: 40px; padding: 0; }
  .hbtn-theme { display: none; }
}
@media (min-width: 1001px) {
  .site-head .hbtn.dfind { display: inline-flex; justify-content: flex-start; width: 128px; padding: 0 8px 0 10px; margin-right: 0; color: var(--faint); font-weight: 400; }
  .site-head .hbtn.dfind:hover { color: var(--muted); }
  .site-head .hbtn.dfind kbd { display: none; }
  .site-head .hbtn.burger { display: none; }
}
@media (min-width: 1001px) and (max-width: 1140px) { .site-head .hbtn.dfind { width: 36px; padding: 0; justify-content: center; } .site-head .hbtn.dfind span { display: none; } }

/* Страница игры, компьютер: предложение подписки — тонкой полосой под «последний спин + засуха», во всю ширину,
   чтобы не растягивать оба блока; на телефоне — внутри блока засухи (tgx-mob) */
.tgx.tgx-strip { display: none; }
@media (min-width: 900px) {
  .tgx.tgx-mob { display: none; }
  .ct-top .tgx.tgx-strip { display: flex; grid-column: 1 / -1; margin: 0; padding: 8px 10px 8px 12px; }
  .tgx-strip .tgx-i, .tgx-strip .tgx-i svg { width: 28px; height: 28px; }
  .tgx-strip .tgx-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
}

/* Подвал (03.11.2026): обещание и живой статус, четыре принципа доверия, колонки ссылок, 18+ и правовая строка.
   Стиль как у шапки: скругление 10 px, тонкие рамки, моноширинные подписи, цвета из палитры. */
.site-foot { margin-top: 48px; padding: 0 clamp(16px, 4vw, 32px) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--surface); color: var(--muted); font-size: 14px; }
.ft { max-width: 1200px; margin: 0 auto; }
.ft-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding: 44px 0 32px; }
.ft-say .brand { display: inline-flex; color: var(--ink); text-decoration: none; }
.ft-big { margin: 18px 0 8px; color: var(--ink); font: 600 clamp(26px, 4vw, 38px)/1.08 var(--sans); letter-spacing: -.02em; }
.ft-sub { margin: 0; max-width: 58ch; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ft-act { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ft-status { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); font-size: 13px; }
.ft-status .live-dot { animation: none; width: 8px; height: 8px; box-shadow: 0 0 0 3px color-mix(in oklab, var(--up) 18%, transparent); }
.ft-status.is-off .live-dot { background: var(--faint); box-shadow: none; }
.ft-tg { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); color: var(--ink); text-decoration: none; font: 500 14.5px/1 var(--sans); transition: border-color .15s; }
.ft-tg:hover { border-color: var(--muted); }
.ft-tg > svg:last-child { color: var(--muted); transition: transform .15s; }
.ft-tg:hover > svg:last-child { transform: translateX(2px); color: var(--ink); }
.ft-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 40px; padding: 0; list-style: none; background: var(--rule); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.ft-trust li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 18px 20px; background: var(--bg); }
.ft-trust li > svg { flex: none; margin-top: 1px; color: var(--accent-ink); }
.ft-trust b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14.5px; }
.ft-trust span { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.ft-trust a { color: var(--ink-2); text-underline-offset: 3px; }
.ft-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ft-h { margin: 0 0 12px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.ft-cols a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.3; }
.ft-cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ft-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 36px; padding: 18px 0; border-top: 1px solid var(--rule); }
.ft-note p { margin: 0; max-width: 110ch; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.ft-note .age { flex: none; margin-top: 1px; }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.ft-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ft-legal a { color: var(--muted); text-decoration: none; }
.ft-legal a:hover { color: var(--ink); }
@media (max-width: 1000px) { .ft-trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .ft-hero { grid-template-columns: 1fr; align-items: start; padding: 36px 0 28px; }
  .ft-act { align-items: flex-start; }
}
@media (max-width: 640px) {
  .ft-trust { grid-template-columns: 1fr; margin-bottom: 32px; }
  .ft-trust li { padding: 14px 16px; }
  .ft-cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .ft-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* Главная, шапка (03.11.2026): надпись-метка, крупный заголовок, строка о сайте; справа три живые цифры */
.hero4 { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px 48px; padding: 34px 0 30px; margin-bottom: 10px; border-bottom: 1px solid var(--rule); }
.hero-k { display: flex; align-items: center; gap: 9px; margin: 0 0 14px !important; color: var(--accent-ink) !important; font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hero-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px color-mix(in oklab, var(--up) 18%, transparent); }
.hero-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--up); animation: live-ring 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
@media (prefers-reduced-motion: reduce) { .hero-dot::after { animation: none; opacity: 0; } }
.hero4 h1 { margin: 0 0 12px; font-size: clamp(32px, 5.6vw, 54px); line-height: 1.02; letter-spacing: -.03em; }
.hero-sub { max-width: 52ch; font-size: 17px; line-height: 1.5; }
.hero-nums { display: flex; margin: 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); overflow: hidden; }
.hero-nums > div { padding: 14px 22px 15px; min-width: 128px; }
.hero-nums > div + div { border-left: 1px solid var(--rule); }
.hero-nums dt { margin-bottom: 8px; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.hero-nums dd { margin: 0; color: var(--ink); font: 600 24px/1 var(--mono); letter-spacing: -.02em; white-space: nowrap; }
@media (max-width: 860px) {
  .hero4 { grid-template-columns: 1fr; padding: 26px 0 18px; gap: 22px; margin-bottom: 0; border-bottom: 0; }
  .hero-k { margin-bottom: 12px !important; font-size: 11px; gap: 8px; }
  .hero4 h1 { font-size: 31px; margin-bottom: 10px; }
  .hero-sub { font-size: 15px; line-height: 1.5; }
  .hero-nums { border-radius: 12px; }
  .hero-nums > div { flex: 1; min-width: 0; padding: 13px 14px 14px; }
  .hero-nums dt { margin-bottom: 7px; font-size: 10px; }
  .hero-nums dd { font-size: 17px; }
}

/* Главная, телефон: «All Live Games / All Roulette …» — явная кнопка «Show all N →» с заливкой (как Set up / Add), а не серая стрелка */
@media (max-width: 640px) {
  .cat-cards .lc-allcard { border-color: color-mix(in oklab, var(--ink) 22%, var(--rule)); }
  .cat-cards .lc-all-in { padding: 12px 12px 12px 14px; gap: 10px; }
  .cat-cards .lc-allcard b { font-size: 16px; }
  .cat-cards .lc-all-sub { display: none; }   /* число столов уже на кнопке */
  .cat-cards .lc-all-btn { display: inline-flex; flex: none; margin: 0; height: 38px; padding: 0 14px; gap: 6px; border: 0; border-radius: 10px; background: var(--ink); color: var(--bg); font: 600 14px/1 var(--sans); }
  .cat-cards .lc-all-chev { display: none; }
  .cat-cards .lc-allcard:active .lc-all-btn { opacity: .85; }
}
@media (max-width: 370px) { .cat-cards .lc-all-stack .glogo:nth-child(n+3) { display: none; } }

/* «Last round»: при новом раунде — блик по ячейке и зелёная вспышка числа (рамку не рисуем: ячейка прямоугольная, а панель скруглена) */
.hero-nums > div { position: relative; overflow: hidden; }
.hero-nums > div.hn-new::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, color-mix(in oklab, var(--up) 28%, transparent) 50%, transparent 70%); transform: translateX(-100%); animation: ct-shine 1.1s ease-out; }
.hero-nums > div.hn-new dd { animation: hn-ink 1.6s ease-out; }
@keyframes hn-ink { 0%, 30% { color: var(--up); } 100% { color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .hero-nums > div.hn-new::after, .hero-nums > div.hn-new dd { animation: none; } }

/* «Rounds recorded» — счётчиком: изменившаяся цифра прокручивается снизу вверх и на миг загорается зелёным */
.hero-nums dd.odo { display: flex; overflow: hidden; padding: 3px 0; margin: -3px 0; }
.odo-d { display: inline-block; }
.odo-d.odo-roll { animation: odo-roll .42s cubic-bezier(.2, .8, .25, 1); }
@keyframes odo-roll { 0% { transform: translateY(70%); opacity: 0; color: var(--up); } 55% { opacity: 1; color: var(--up); } 100% { transform: none; opacity: 1; color: inherit; } }
@media (prefers-reduced-motion: reduce) { .odo-d.odo-roll { animation: none; } }
.hero-nums .ds { display: none; }
@media (max-width: 860px) {
  /* телефон: одна строка из трёх одинаковых ячеек (подпись сверху, число снизу); у архива 10 знаков — колонка шире,
     у столов короткая подпись «Tables» */
  .hero-nums { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); }
  .hero-nums .dl { display: none; } .hero-nums .ds { display: inline; }
  .hero-nums dt { white-space: nowrap; }
}
@media (max-width: 374px) { .hero-nums > div { padding-left: 10px; padding-right: 8px; } .hero-nums dd { font-size: 15px; } .hero-nums dt { font-size: 9.5px; letter-spacing: .04em; } }

.hero-sub a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--accent) 60%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hero-sub a:hover { text-decoration-color: var(--accent); }

/* Плавная смена темы (04.11.2026, includes/layout.php tsSetTheme): перетекание страницы через View Transitions,
   запасной путь — короткий transition цветов на время смены */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: ease; }
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease !important; }

/* Контактная форма /contact/ (05.11.2026, includes/contact.php, assets/contact.js) */
.prose.cf-page { max-width: 1080px; }
.cf-lead { max-width: 62ch; font-size: 17px; }
.cf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; margin-top: 28px; }
.cf-wrap { min-width: 0; }
.cf, .cf-done { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 28px; }
.cf { display: grid; gap: 20px; }
.cf[hidden], .cf-done[hidden], .cf-game[hidden], .cf-alert[hidden] { display: none; }
.cf fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cf legend { padding: 0; }
.cf legend, .cf label { display: block; margin-bottom: 8px; font: 500 13px/1.3 var(--sans); color: var(--ink); letter-spacing: .01em; }
.cf label i { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 4px; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf .cf-chip { margin: 0; position: relative; cursor: pointer; }
.cf-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cf-chip span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 18px; font: 400 14px/1 var(--sans); color: var(--ink-2); transition: border-color .15s, background-color .15s, color .15s; }
.cf-chip:hover span { border-color: var(--ink-2); }
.cf-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cf-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-f { min-width: 0; }
.cf input[type=text], .cf input[type=email], .cf textarea {
  display: block; width: 100%; box-sizing: border-box; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg);
  color: var(--ink); font: 400 16px/1.45 var(--sans); padding: 11px 13px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.cf input[type=text], .cf input[type=email] { height: 46px; }
.cf textarea { min-height: 170px; resize: vertical; }
.cf input::placeholder, .cf textarea::placeholder { color: var(--faint); }
.cf input:hover, .cf textarea:hover { border-color: var(--ink-2); }
.cf input:focus, .cf textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 14%, transparent); }
.cf-f.bad input, .cf-f.bad textarea { border-color: var(--down); }
.cf-f.bad input:focus, .cf-f.bad textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 22%, transparent); }
.cf-e { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--down); }
.cf-e:empty { display: none; }
.cf-sub { display: flex; justify-content: space-between; gap: 12px; }
.cf-cnt { margin-top: 6px; margin-left: auto; font: 400 12px/1.4 var(--mono); color: var(--faint); white-space: nowrap; }
.cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 4px; }
.cf-btn { height: 48px; padding: 0 26px; border-radius: 6px; font-size: 15px; position: relative; }
.cf.busy .cf-btn span { visibility: hidden; }
.cf.busy .cf-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cf-spin .7s linear infinite; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
.prose .cf-fine { margin: 0; font-size: 13px; line-height: 1.5; color: var(--faint); }
.prose .cf-fine a { color: var(--muted); }
.prose .cf-alert { margin: 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--down) 45%, transparent); border-radius: 6px; color: var(--ink); font-size: 14px; }
.cf-done { text-align: left; color: var(--up); outline: none; }
.cf-done.in { animation: cf-in .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cf-in { from { opacity: 0; transform: translateY(8px); } }
.prose .cf-done h2 { margin: 14px 0 6px; color: var(--ink); }
.prose .cf-done p { margin: 0 0 10px; }
.cf-aside { display: grid; gap: 24px; padding-top: 4px; }
.cf-aside section { border-top: 1px solid var(--rule); padding-top: 16px; }
.prose .cf-aside h2 { margin: 0 0 6px; font-size: 15px; }
.prose .cf-aside p { margin: 0; font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) {
  .cf-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 20px; }
}
@media (max-width: 560px) {
  .cf, .cf-done { padding: 20px 16px; border-radius: 8px; }
  .cf-row { grid-template-columns: 1fr; }
  .cf-btn { width: 100%; justify-content: center; }
  .cf-lead { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .cf-done.in { animation: none; } .cf.busy .cf-btn::after { animation-duration: 2s; } }

/* Хлебные крошки (05.11.2026, render_crumbs в includes/seolinks.php): те же пункты, что BreadcrumbList в разметке */
.bc { margin: 14px 0 0; font-size: 13px; line-height: 1.4; color: var(--faint); }
.bc ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.bc li { display: inline-flex; align-items: center; min-width: 0; }
.bc li + li::before { content: "/"; margin: 0 8px; color: var(--rule); }
.bc a { color: var(--muted); text-decoration: none; }
.bc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bc [aria-current] { color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.bc + * { margin-top: 10px; }

/* Внизу страницы стола: столы того же раздела и инструменты по игре (render_game_related) */
.rel { margin: 48px 0 8px; padding-top: 24px; border-top: 1px solid var(--rule); }
.rel-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rel h2 { margin: 0; font-size: 20px; }
.rel-all { font-size: 14px; color: var(--muted); white-space: nowrap; text-decoration: none; }
.rel-all:hover { color: var(--ink); }
.rel-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.rel-g a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.rel-g a:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.rel-g .glogo { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 7px; }
.rel-g span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rel-g b { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-g i { font-style: normal; font-size: 12px; color: var(--faint); }
.rel-t { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; }
.rel-t a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.rel-t a:hover { color: var(--ink); text-decoration-color: currentColor; }
@media (max-width: 900px) { .rel-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .rel { margin-top: 36px; }
  .rel-g { grid-template-columns: 1fr; gap: 8px; }
  .rel-g a { min-height: 52px; }
  .rel-t { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .rel-g a { transition: none; } .rel-g a:hover { transform: none; } }
