/* ACE CLUB — «Посадочная карта».
   Графитовый стол, билеты из графитового картона с перфорацией,
   золото — только главное действие и места финала, лёд — только живой турнир. */

:root {
  /* стол и картон */
  --table: #1c1e21;
  --table-2: #232629;
  --table-3: #2b2e32;
  --stock: #45494e;          /* графит логотипа — картон билета */
  --stock-2: #4e5359;
  --stock-3: #585d64;
  --line: #3a3e43;
  --line-2: #5f646b;
  /* чернила */
  --ink: #f4efe6;
  --ink-2: #cdd0d4;          /* вторичный на картоне ≥ 5:1 */
  --ink-3: #a2a7ad;          /* вторичный на столе ≥ 6:1 */
  /* краски */
  --gold: #ffcb63;
  --gold-2: #f2b949;
  --gold-deep: #c98f1f;
  --on-gold: #1c1e21;
  --gold-ink: var(--gold);    /* золото как цвет текста и иконок (в светлой теме — тёмное золото) */
  --ice: #94dde2;            /* цвет запущенного таймера */
  --ice-2: #6fc6cc;
  --on-ice: #0d2a2c;
  --ice-ink: var(--ice);      /* лёд как цвет текста (в светлой теме — тёмная бирюза) */
  --rose: #ff7da1;           /* ошибки, «выбыл» — текст */
  --rose-2: #f43f7a;
  --violet: #b9a5fb;         /* перерыв */
  --ok: #9ee0a8;
  /* форма */
  --r: 14px;
  --r-sm: 9px;
  --notch: 11px;
  --display: 'Fira Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html, body { margin: 0; background: var(--table); color: var(--ink); font: 400 16px/1.5 var(--text); }
body { min-height: 100vh; display: flex; flex-direction: column; }
::selection { background: var(--gold); color: var(--on-gold); }
input, textarea { caret-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid var(--table); }
::-webkit-scrollbar-track { background: transparent; }

a { color: var(--gold-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--gold-ink) 45%, transparent); }
a:hover { text-decoration-color: var(--gold-ink); }
img { max-width: 100%; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.ico.fill { fill: currentColor; stroke: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 76px); text-transform: uppercase; }
h2 { font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; }
h3 { font-size: 22px; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-3); }
.gold { color: var(--gold-ink); }
.ice { color: var(--ice-ink); }
.small { font-size: 14px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
@media (max-width: 520px) { .hide-sm { display: none !important; } }
.sr:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 300; background: var(--gold); color: var(--on-gold); padding: 10px 14px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } }

/* ── Полоса «18+ · без денежных призов» ── */
.legal { background: #141618; color: var(--ink-2); font: 700 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.legal .wrap { display: flex; align-items: center; gap: 12px; min-height: 32px; padding-top: 7px; padding-bottom: 7px; }
.stamp18 { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 5px; border: 1.5px solid var(--gold); color: var(--gold-ink); border-radius: 4px; font: 800 13px/1 var(--display); letter-spacing: .02em; }
.legal .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.legal a { color: var(--ink-2); text-decoration: none; margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.legal a:hover { color: var(--gold-ink); }
@media (max-width: 720px) { .legal .wrap { gap: 8px; font-size: 12px; letter-spacing: .05em; } .legal .hide-m { display: none; } }

/* ── Шапка ── */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(28, 30, 33, .9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 50px; width: auto; display: block; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { position: relative; color: var(--ink-2); text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; padding: 10px 12px; border-radius: 8px; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--gold-ink); }
.nav a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); }
.user-slot { display: flex; align-items: center; gap: 10px; }
.me-chip { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); background: var(--table-3); border: 1px solid var(--line); padding: 5px 14px 5px 5px; border-radius: 40px; max-width: 240px; }
.me-chip:hover { border-color: var(--line-2); }
.me-chip .av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--stock); color: var(--gold-ink); font: 800 15px/1 var(--display); flex: none; }
.me-chip .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .nav { display: none; }
  .topbar .wrap { height: 60px; justify-content: space-between; }
  .brand img { height: 40px; }
  .me-chip .nm { max-width: 120px; }
}

/* ── Нижняя панель на телефоне ── */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(20, 22, 24, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; color: var(--ink-3); text-decoration: none; font: 600 12px/1 var(--text); min-height: 56px; justify-content: center; }
  .tabbar a .ico { width: 23px; height: 23px; }
  .tabbar a.active { color: var(--gold-ink); }
  body.site { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ── Загрузка между страницами ── */
body.is-loading::before { content: ''; position: fixed; top: 0; left: 0; height: 3px; z-index: 100; background: var(--gold); animation: loadbar 1.2s var(--ease) infinite; }
@keyframes loadbar { 0% { width: 0; left: 0; } 60% { width: 70%; left: 10%; } 100% { width: 10%; left: 100%; } }
[aria-busy='true'] { opacity: .55; transition: opacity .2s .15s; }
.page-loading { min-height: 60vh; }

/* ── Кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; background: var(--table-3); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; font: 600 15px/1 var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--stock); border-color: var(--stock-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ico { width: 18px; height: 18px; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 10px -4px rgba(0, 0, 0, .5); }
.btn.primary:hover { background: #ffd57e; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--table-3); color: var(--ink); }
.btn.danger { color: var(--rose); }
.btn.danger:hover { border-color: var(--rose-2); background: rgba(244, 63, 122, .1); }
.btn.danger-solid { background: var(--rose-2); border-color: var(--rose-2); color: #fff; font-weight: 700; }
.btn.ice { background: var(--ice); border-color: var(--ice); color: var(--on-ice); font-weight: 700; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn.xs { min-height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; gap: 5px; }
.btn.big { min-height: 56px; padding: 0 26px; font-size: 17px; border-radius: 12px; }
.btn.icon-only { padding: 0; width: 44px; }
.btn.sm.icon-only { width: 36px; }
@media (pointer: coarse) {
  .btn.sm { min-height: 44px; }
  .btn.sm.icon-only { width: 44px; }
  .btn.xs { min-height: 44px; min-width: 44px; }
  .period a, .period button { min-height: 44px; }
}
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ── Метки ── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 30px; font: 700 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; background: var(--table-3); color: var(--ink-2); border: 1px solid var(--line-2); white-space: nowrap; }
.badge.published { color: var(--ok); border-color: rgba(158, 224, 168, .45); background: rgba(158, 224, 168, .08); }
.badge.registered, .badge.ok { color: var(--ok); border-color: rgba(158, 224, 168, .45); background: rgba(158, 224, 168, .08); }
.badge.running { color: var(--on-ice); background: var(--ice); border-color: var(--ice); }
.badge.draft { color: var(--ink-2); border-style: dashed; }
.badge.waitlist { color: var(--violet); border-color: rgba(185, 165, 251, .5); background: rgba(185, 165, 251, .08); }
.badge.finished { color: var(--ink-3); }
.badge.bad { color: var(--rose); border-color: rgba(255, 125, 161, .45); }
.badge.final { color: var(--on-gold); background: var(--gold); border-color: var(--gold); }

/* ── БИЛЕТ ── */
.ticket {
  --stub: 148px;
  position: relative; display: grid; grid-template-columns: var(--stub) minmax(0, 1fr);
  background: var(--stock) var(--grain); background-blend-mode: soft-light;
  border-radius: var(--r); color: var(--ink);
  -webkit-mask: radial-gradient(circle var(--notch) at var(--stub) 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at var(--stub) 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  text-decoration: none; transition: transform .35s var(--ease), background-color .2s;
}
a.ticket:hover, .ticket.linked:hover { background-color: var(--stock-2); transform: translateY(-2px); }
/* билет списка: название — ссылка на всю карточку, кнопки записи лежат поверх */
.ticket.linked .t-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.ticket.linked .t-link:focus-visible { outline: none; }
.ticket.linked:has(.t-link:focus-visible) { box-shadow: inset 0 0 0 2px var(--gold); }
.t-act { position: relative; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.t-act .btn.primary { min-height: 48px; padding: 0 22px; font-size: 16px; }
.t-act .btn.ghost { color: var(--ink-2); }
.t-act .btn.ghost:hover { color: var(--ink); }
.act-ok { display: inline-flex; align-items: center; gap: 8px; font: 800 17px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--gold-ink); }
.act-ok .ico { width: 20px; height: 20px; stroke-width: 2.4; }
.act-ok.wait { color: var(--violet); }
.feat-cta .t-act { flex: 0 1 auto; }
.perks-all { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.perks-all .perks { margin: 0; }
.t-desc { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.t-desc .t-sub, .t-desc-p { white-space: pre-line; max-width: 70ch; margin: 0; }
.t-sub.clamp { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--gold-ink); font: 600 15px/1 var(--text); cursor: pointer; }
.link-btn .ico { width: 16px; height: 16px; }
.ls-foot { margin: 18px 0 0; line-height: 1.5; }
.final-caption .k.cut { color: var(--ink); font-weight: 600; }
/* вторичный текст на картоне билета и карточках — светлее, чтобы читался (≥ 4,5 : 1) */
:root:not([data-theme]) :is(.ticket, .cardno, .scoreline, .pass, .kpis, .ns, .pod, .pick.on, .al-cover, .done-card, .fin-card, .voucher, .livebar) { --ink-3: #c6cacf; }
#lp-count { color: var(--ink-2); }
.ticket .stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 20px 12px; text-align: center; }
.ticket .stub::after { content: ''; position: absolute; right: 0; top: 16px; bottom: 16px; width: 2px; background: radial-gradient(circle, var(--table) 1.6px, transparent 2px) 0 0 / 2px 9px repeat-y; }
.ticket .body { padding: 20px 24px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.stub .d { font: 900 58px/.86 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stub .m { font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.stub .w { font: 700 15px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-top: 8px; }
.stub .t { font: 800 22px/1 var(--display); font-variant-numeric: tabular-nums; margin-top: 2px; }
.ticket .t-name { font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.ticket .t-sub { color: var(--ink-2); font-size: 15px; }
.ticket .t-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font-size: 14px; }
.ticket .t-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ticket .t-meta .ico { width: 17px; height: 17px; color: var(--ink-3); }
.ticket .fine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: auto; padding-top: 12px; border-top: 1px dashed rgba(244, 239, 230, .18); font: 700 13px/1.2 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.ticket .fine .stamp18 { height: 18px; min-width: 28px; font-size: 12px; }
.ticket .t-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ticket.live { background-color: #2f4f52; }
.ticket.used { background-color: var(--table-3); }
.ticket.used .stub .m { color: var(--ink-3); }
.ticket.mine { box-shadow: none; }
.ticket.mine .stub { background: linear-gradient(var(--gold), var(--gold)); color: var(--on-gold); }
.ticket.mine .stub .m, .ticket.mine .stub .w { color: var(--on-gold); }

/* места: ряд засечек */
.seatmeter { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.seatmeter .bar { flex: 1; max-width: 240px; height: 8px; border-radius: 8px; background: rgba(20, 22, 24, .55); overflow: hidden; }
.seatmeter .bar i { display: block; height: 100%; background: var(--ink); border-radius: 8px; }
.seatmeter.full .bar i { background: var(--violet); }
.seatmeter b { font: 800 18px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }

/* билет вертикальный (телефон) */
@media (max-width: 640px) {
  .ticket { --stub-h: 86px; grid-template-columns: 1fr; grid-template-rows: auto auto;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--stub-h), #0000 97%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% var(--stub-h), #0000 97%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle var(--notch) at 0 var(--stub-h), #0000 97%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% var(--stub-h), #0000 97%, #000) right / 51% 100% no-repeat; }
  .ticket .stub { height: var(--stub-h); flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; padding: 0 20px; text-align: left; }
  .ticket .stub::after { left: 16px; right: 16px; top: auto; bottom: 0; width: auto; height: 2px; background: radial-gradient(circle, var(--table) 1.6px, transparent 2px) 0 0 / 9px 2px repeat-x; }
  .stub .d { font-size: 42px; }
  .stub .dm { display: flex; flex-direction: column; gap: 4px; }
  .stub .w { margin: 0; }
  .stub .t { margin: 0 0 0 auto; font-size: 26px; }
  .ticket .body { padding: 16px 18px 18px; }
  .ticket .t-name { font-size: 26px; }
}

/* вкладка «Записаться» на билете */
.tab-cta { align-self: flex-start; }

/* ── Разделы ── */
main { flex: 1; }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head p { margin: 8px 0 0; color: var(--ink-3); max-width: 60ch; }
.page-head { padding: 48px 0 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.page-head p { margin: 10px 0 0; color: var(--ink-3); max-width: 62ch; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 600; margin-top: 28px; }
.back:hover { color: var(--gold-ink); }
.back .ico { width: 18px; height: 18px; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.empty { color: var(--ink-3); padding: 20px 0; }
.empty-box { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 28px; color: var(--ink-2); display: flex; gap: 14px; align-items: flex-start; }
.empty-box .ico { color: var(--ink-3); width: 24px; height: 24px; margin-top: 2px; }
.empty-box b { color: var(--ink); display: block; margin-bottom: 4px; }
.empty-box p { margin: 0 0 12px; }

.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--table-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin: 40px 0; }
.notice .ico { width: 24px; height: 24px; color: var(--ink-3); margin-top: 1px; }
.notice p { margin: 4px 0 12px; color: var(--ink-2); }
.notice-err { border-color: rgba(244, 63, 122, .4); }
.notice-err .ico { color: var(--rose); }

.panel { background: var(--table-2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.cols2 > .panel + .panel, .grid > .card + .card { margin-top: 0; } /* в сетке соседние блоки начинаются на одной линии */
.panel h3 { margin-bottom: 14px; }

/* ── LIVE-полоса ── */
.livebar { background: #16292b; border-bottom: 1px solid rgba(148, 221, 226, .25); color: var(--ink); }
.livebar .wrap { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font: 800 16px/1 var(--display); letter-spacing: .14em; color: var(--ice-ink); }
.live-dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--ice); animation: pulse 1.8s ease-in-out infinite; }
.live-dot.paused { color: var(--ink-2); } .live-dot.paused i { background: var(--ink-3); animation: none; }
.live-dot.brk { color: var(--violet); } .live-dot.brk i { background: var(--violet); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.livebar .l-name { font: 800 22px/1.1 var(--display); text-transform: uppercase; }
.livebar .l-meta { color: var(--ink-2); font-size: 14px; }
.livebar .l-clock { font: 800 44px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ice-ink); letter-spacing: -.01em; }
.livebar .l-clock.paused { color: var(--ink-2); }
.livebar .l-blinds { text-align: right; font: 700 20px/1.1 var(--display); color: var(--ink); }
.livebar .l-blinds small { display: block; font: 600 13px/1.3 var(--text); color: var(--ink-2); letter-spacing: 0; }
.livebar .l-msg { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--ink); background: rgba(148, 221, 226, .1); border-radius: 8px; padding: 8px 12px; font-weight: 600; }
@media (max-width: 720px) {
  .livebar .wrap { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .livebar .l-info { grid-column: 1 / -1; order: -1; }
  .livebar .l-clock { font-size: 36px; }
}

/* ── ГЛАВНАЯ: сезон и схема финала ── */

.final-map { position: relative; }
.final-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.final-map .tbl { fill: var(--stock); }
.final-map .tbl-rim { fill: none; stroke: rgba(255, 203, 99, .55); stroke-width: 1.5; }
.final-map .tbl-in { fill: none; stroke: rgba(244, 239, 230, .1); stroke-width: 1; stroke-dasharray: 3 5; }
.final-map .tbl-label { fill: var(--ink-2); font: 800 17px var(--display); letter-spacing: .14em; text-transform: uppercase; }
.final-map .tbl-sub { fill: var(--ink-3); font: 600 12px var(--text); }
.final-map .seat circle { fill: var(--ink); stroke: var(--table); stroke-width: 3; transition: transform .3s var(--ease); transform-box: fill-box; transform-origin: center; }
.final-map .seat text { fill: var(--table); font: 800 15px var(--display); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.final-map .seat.empty circle { fill: var(--table); stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 3 3; }
.final-map .seat.empty text { fill: var(--ink-3); }
.final-map .seat.me circle { fill: var(--gold); }
.final-map .seat.me text { fill: var(--on-gold); }
.final-map a.seat { cursor: pointer; outline: none; }
.final-map a.seat:hover circle, .final-map a.seat:focus-visible circle { transform: scale(1.22); }
.final-map a.seat:focus-visible circle { stroke: var(--gold); }
.final-map .you-tag rect { fill: var(--gold); }
.final-map .you-tag text { fill: var(--on-gold); font: 800 13px var(--display); letter-spacing: .08em; }
.seat-tip { position: absolute; pointer-events: none; z-index: 5; background: var(--ink); color: var(--table); padding: 8px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity .15s; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .6); }
.seat-tip b { font-family: var(--display); font-size: 17px; }
.seat-tip.on { opacity: 1; }
.final-caption { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--ink-2); font-size: 14px; align-items: center; justify-content: center; }
.final-caption .k { display: inline-flex; align-items: center; gap: 8px; }
.final-caption .k i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.final-caption .k i.me { background: var(--gold); }
.final-caption .k i.e { background: transparent; border: 1.5px dashed var(--line-2); }

.my-race { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: var(--table-2); border: 1px solid var(--line); }
.my-race .pos { font: 900 40px/.9 var(--display); font-variant-numeric: tabular-nums; }
.my-race .pos.in { color: var(--gold-ink); }
.my-race p { margin: 0; color: var(--ink-2); font-size: 15px; }
.my-race p b { color: var(--ink); }

/* ── «Впервые у нас» ── */
.firsttime { background: var(--table-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.step { padding: 8px 32px 8px 0; position: relative; }
.step + .step { padding-left: 32px; border-left: 1px dashed var(--line-2); }
.step h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 10px; }
.step p { color: var(--ink-2); margin: 0 0 10px; max-width: 38ch; }
.step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.step li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.step li .ico { width: 18px; height: 18px; color: var(--ink-3); margin-top: 3px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 28px; } .step, .step + .step { padding: 0; border: 0; } .step + .step { padding-top: 28px; border-top: 1px dashed var(--line-2); } }

/* ── Две колонки на главной ── */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.news-list { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; }
.news-item .nd { text-align: center; }
.news-item .nd b { display: block; font: 900 34px/.9 var(--display); }
.news-item .nd span { font: 700 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.news-item h3 { font-size: 22px; margin-bottom: 6px; }
.news-item p { color: var(--ink-2); margin: 0; }
.news-item.clamp p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .tag { margin-left: 8px; vertical-align: 3px; }
.news-full .news-item { padding: 28px 0; }
.news-full .news-item h2 { font-size: 30px; margin-bottom: 10px; }
.news-full .news-item p { max-width: 68ch; white-space: pre-line; font-size: 17px; }

/* ── РЕЙТИНГ: полосы и черта финала ── */
.period { display: inline-flex; gap: 4px; padding: 4px; background: var(--table-2); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.period a, .period button { border: 0; background: none; color: var(--ink-2); font: 700 16px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 11px 16px; border-radius: 9px; cursor: pointer; text-decoration: none; }
.period a:hover, .period button:hover { color: var(--ink); }
.period .active { background: var(--stock); color: var(--ink); }

.race { display: grid; gap: 6px; }
.race-row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(120px, 2fr) 84px; align-items: center; gap: 18px; padding: 12px 18px; border-radius: 12px; background: var(--table-2); transition: background .2s; }
.race-row:hover { background: var(--table-3); }
.race-row .pos { font: 900 30px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.race-row.in .pos { color: var(--ink); }
.race-row .who { min-width: 0; }
.race-row .who a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-row .who a::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.race-row .who a:focus-visible { outline: none; }
.race-row .who a:focus-visible::after { outline: 2px solid var(--gold); outline-offset: 2px; }
.race-row .who small { color: var(--ink-3); font-size: 13px; }
.race-row .barwrap { height: 14px; border-radius: 3px; background: rgba(69, 73, 78, .55); overflow: hidden; }
.race-row .barwrap i { display: block; height: 100%; background: var(--stock-3); border-radius: 3px; transform-origin: left; animation: grow .9s var(--ease) both; }
.race-row.in .barwrap i { background: var(--ink); }
.race-row.me { background: rgba(255, 203, 99, .13); box-shadow: inset 0 0 0 2.5px var(--gold), 0 0 0 4px rgba(255, 203, 99, .18), 0 10px 28px -12px rgba(255, 203, 99, .55); z-index: 1; }
.race-row.me:hover { background: rgba(255, 203, 99, .18); }
.race-row.me.flash, .pod.me.flash { animation: meFlash 1.6s ease-out 1; }
@keyframes meFlash { 0%, 40% { box-shadow: inset 0 0 0 2.5px var(--gold), 0 0 0 10px rgba(255, 203, 99, .35); } 100% { box-shadow: inset 0 0 0 2.5px var(--gold), 0 0 0 4px rgba(255, 203, 99, .18); } }
@media (prefers-reduced-motion: reduce) { .race-row.me.flash, .pod.me.flash { animation: none; } }
.race-row.me .pos, .race-row.me .pts { color: var(--gold-ink); }
.race-row.me .barwrap i { background: var(--gold); }
.race-row .pts { text-align: right; font: 900 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.race-row .pts small { display: block; font: 600 12px/1.2 var(--text); color: var(--ink-3); }
@keyframes grow { from { transform: scaleX(0); } }
.cutline { position: relative; display: flex; align-items: center; gap: 14px; margin: 14px 0; color: var(--gold-ink); font: 800 16px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.cutline::before, .cutline::after { content: ''; flex: 1; height: 2px; background: radial-gradient(circle, var(--gold) 1.4px, transparent 1.8px) 0 0 / 9px 2px repeat-x; }
.race-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-3); font-size: 14px; margin: 16px 0 24px; }
@media (max-width: 720px) {
  .race-row { grid-template-columns: 44px minmax(0, 1fr) 64px; gap: 4px 12px; padding: 12px 14px; }
  .race-row .barwrap { grid-column: 2 / 3; grid-row: 2; height: 8px; }
  .race-row .pts { grid-row: 1 / 3; grid-column: 3; }
  .race-row .pos { grid-row: 1 / 3; font-size: 26px; }
  .race-row .pts { font-size: 26px; }
}
.sticky-me { position: sticky; bottom: 16px; z-index: 20; margin-top: 16px; }
@media (max-width: 900px) { .sticky-me { bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* ── ПРОФИЛЬ ── */
.profile-head { padding: 48px 0 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: end; }
.cardno { width: 118px; height: 150px; border-radius: 12px; background: var(--stock) var(--grain); background-blend-mode: soft-light; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: relative; }
.cardno::before { content: ''; position: absolute; top: 12px; width: 26px; height: 6px; border-radius: 6px; background: var(--table); }
.cardno span { font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.cardno b { font: 900 48px/.9 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.profile-head h1 { font-size: clamp(40px, 6vw, 80px); overflow-wrap: anywhere; }
.profile-head p { color: var(--ink-3); margin: 10px 0 0; }
@media (max-width: 720px) { .profile-head { grid-template-columns: auto 1fr; gap: 18px; padding-top: 32px; } .profile-head > :last-child { grid-column: 1 / -1; } .cardno { width: 84px; height: 108px; } .cardno b { font-size: 36px; } }

/* табло: ряд значений через перфорацию */
.scoreline { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); background: var(--stock) var(--grain); background-blend-mode: soft-light; border-radius: var(--r); }
.scoreline > div { padding: 20px 18px; position: relative; }
.scoreline > div + div::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; background: radial-gradient(circle, var(--table) 1.5px, transparent 1.9px) 0 0 / 2px 8px repeat-y; }
.scoreline b { display: block; font: 900 42px/.95 var(--display); font-variant-numeric: tabular-nums; }
.scoreline span { font-size: 14px; color: var(--ink-2); }
.scoreline .hl b { color: var(--ink); }
@media (max-width: 720px) {
  .scoreline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scoreline > div:nth-child(4)::before { display: none; }
  .scoreline > div:nth-child(n+4) { border-top: 2px dotted rgba(28, 30, 33, .7); }
  .scoreline b { font-size: 34px; }
  .scoreline > div { padding: 16px 14px; }
}

/* медали достижений */
.medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.medal { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--table-2); border: 1px solid var(--line); }
.medal .m-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: radial-gradient(circle at 35% 30%, #5a5f66, var(--stock) 70%); box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 5px var(--stock); }
.medal b { display: block; font-weight: 600; }
.medal small { color: var(--ink-3); font-size: 13px; display: block; margin-top: 2px; }
.medal .m-meta { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.medal.locked { background: transparent; border-style: dashed; }
.medal.locked .m-ico { filter: grayscale(1); opacity: .45; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--table-2); }
.medal.locked b { color: var(--ink-2); }
details.more { margin-top: 14px; }
details.more summary { cursor: pointer; color: var(--ink-2); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .ico { transition: transform .25s var(--ease); }
details.more[open] summary .ico { transform: rotate(180deg); }
details.more[open] summary { margin-bottom: 12px; }

/* история игр: корешки */
.stubs { display: grid; gap: 8px; }
.stubrow { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) 90px 70px; gap: 16px; align-items: center; padding: 12px 18px; background: var(--table-2); border-radius: 10px; }
.stubrow:hover { background: var(--table-3); }
.stubrow .sd { font: 700 15px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.stubrow a { color: var(--ink); text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stubrow a::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
.stubrow a:focus-visible { outline: none; } .stubrow a:focus-visible::after { outline: 2px solid var(--gold); outline-offset: 2px; }
.stubrow .pl { font: 800 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.stubrow .pl small { font: 600 13px var(--text); color: var(--ink-3); }
.stubrow .pp { text-align: right; font: 800 22px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.stubrow .ko { color: var(--ink-3); font-size: 13px; }
@media (max-width: 640px) { .stubrow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; } .stubrow .sd { grid-column: 1; } .stubrow .pl { grid-column: 2; grid-row: 1; text-align: right; } .stubrow .pp { grid-column: 2; grid-row: 2; } }

/* ── КАРТОЧКА ТУРНИРА ── */
.t-hero { padding-top: 12px; }
.ticket.big { --stub: 200px; }
.ticket.big .stub .d { font-size: 88px; }
.ticket.big .t-name { font-size: clamp(36px, 5vw, 64px); line-height: .95; }
.ticket.big .body { padding: 28px 32px; gap: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; margin: 4px 0; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts b { font: 800 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.facts span { font-size: 14px; color: var(--ink-2); }
.cta-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cta-zone .note { color: var(--ink-2); font-size: 14px; max-width: 46ch; }
@media (max-width: 640px) {
  .ticket.big { --stub-h: 104px; }
  .ticket.big .stub .d { font-size: 58px; }
  .ticket.big .body { padding: 20px 18px; }
  .t-cta-sticky { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 35; padding: 12px 16px; background: rgba(20, 22, 24, .96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .t-cta-sticky .btn { width: 100%; }
  .t-cta-sticky .t-act { width: 100%; flex-wrap: nowrap; justify-content: space-between; }
  .t-cta-sticky .t-act.is-in .btn, .t-cta-sticky .t-act.is-wait .btn { width: auto; min-height: 48px; }
  .t-act > .btn.primary { width: 100%; }
  .t-act.is-in, .t-act.is-wait { width: 100%; justify-content: space-between; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sheet-bg .modal-actions { display: flex; }
  .sheet-bg .modal-actions .btn { flex: 1 1 0; min-height: 50px; }
  .t-cta-sticky .note { display: none; }
  body.has-sticky-cta main { padding-bottom: 90px; }
}

/* отрыв корешка при записи — авторский момент */
.ticket.tearing .stub { animation: tear .75s var(--ease) both; }
@keyframes tear { 0% { transform: none; } 35% { transform: translate(-6px, 4px) rotate(-3deg); } 100% { transform: translate(-40px, 30px) rotate(-9deg); opacity: 0; } }
.seatcard { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 12px; background: rgba(255, 203, 99, .1); box-shadow: inset 0 0 0 1.5px var(--gold); animation: issue .6s .1s var(--ease) both; }
.seatcard .sc-ico { width: 52px; height: 52px; border-radius: 10px; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; }
.seatcard .sc-ico .ico { width: 28px; height: 28px; }
.seatcard b { font: 800 22px/1.1 var(--display); text-transform: uppercase; display: block; }
.seatcard p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.seatcard.wait { background: rgba(185, 165, 251, .08); box-shadow: inset 0 0 0 1.5px var(--violet); }
.seatcard.wait .sc-ico { background: var(--violet); }
@keyframes issue { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .cols2 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 30px; background: var(--table-3); color: var(--ink); text-decoration: none; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { background: var(--stock); }
.chip.me { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.chip.wait { background: transparent; border: 1px dashed var(--violet); color: var(--violet); }
.pointsbars { display: grid; gap: 6px; }
.pointsbars div { display: grid; grid-template-columns: 34px 1fr 44px; gap: 12px; align-items: center; font-variant-numeric: tabular-nums; }
.pointsbars span { font: 800 17px/1 var(--display); color: var(--ink-2); }
.pointsbars i { display: block; height: 10px; border-radius: 3px; background: var(--ink); }
.pointsbars div:first-child i { background: var(--ink); }
.pointsbars b { font: 800 19px/1 var(--display); text-align: right; }
.pointsnote { margin-top: 14px; color: var(--ink-2); font-size: 14px; }
details.structure { margin-top: 16px; }
details.structure summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.structure summary::-webkit-details-marker { display: none; }
details.structure summary h3 { margin: 0; }
details.structure summary > .ico { transition: transform .25s var(--ease); color: var(--ink-2); }
details.structure[open] summary > .ico { transform: rotate(180deg); }
details.structure[open] summary { margin-bottom: 14px; }

/* ── Таблицы ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--ink-3); font: 700 13px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; }
tr.brk td { color: var(--violet); }
tbody tr:hover td { background: rgba(255, 255, 255, .02); }
tr.rowlink { cursor: pointer; }
tr.rowlink a.rl { color: var(--ink); text-decoration: none; font-weight: 600; }
tr.rowlink a.rl:focus-visible { outline: none; }
tr.rowlink:focus-within td { background: rgba(255, 203, 99, .06); }

/* ── Формы ── */
label, .label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea { width: 100%; min-height: 46px; background: var(--table); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; font: 400 16px/1.3 var(--text); transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: #8e949a; }
input:hover, select:hover, textarea:hover { border-color: #737980; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 203, 99, .2); }
input[aria-invalid='true'] { border-color: var(--rose-2); }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--gold); flex: none; margin: 0; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cdd0d4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field { margin-bottom: 16px; }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.check { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 15px; font-weight: 400; cursor: pointer; }
.check input { margin-top: 1px; }
.form-error { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); background: rgba(244, 63, 122, .12); border: 1px solid rgba(244, 63, 122, .5); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: 15px; }
.form-error .ico { color: var(--rose); margin-top: 1px; }
.inline-input { width: 90px; min-height: 36px; padding: 6px 10px; font-size: 15px; }

/* вход — карта игрока */
.auth { max-width: 520px; margin: 48px auto; }
.auth .ticket { --stub: 0px; grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
.auth .ticket .body { padding: 28px; gap: 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--table); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.auth-tabs a { text-align: center; text-decoration: none; color: var(--ink-2); font: 800 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 13px; border-radius: 9px; }
.auth-tabs a.active { background: var(--stock-3); color: var(--ink); }
.auth .ticket input { background: #33373b; border-color: #6a7077; }
.auth h1 { font-size: 42px; margin-bottom: 8px; }
.auth .lead { color: var(--ink-2); margin-bottom: 22px; }

/* ── Клуб ── */
.club-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .club-grid { grid-template-columns: 1fr; } }
.about-text { font-size: 19px; line-height: 1.6; color: var(--ink); max-width: 60ch; white-space: pre-line; }
.rules { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; gap: 0; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); color: var(--ink-2); }
.rules li::before { content: counter(r, decimal-leading-zero); font: 800 22px/1.1 var(--display); color: var(--gold-ink); }
.contact-list { display: grid; gap: 10px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.contact-list .ico { color: var(--ink-3); }

/* ── Кабинет: сезонный пропуск ── */
.pass { display: grid; grid-template-columns: minmax(0, 1fr) 260px; background: var(--stock) var(--grain); background-blend-mode: soft-light; border-radius: 18px; overflow: hidden; position: relative; }
.pass .p-main { padding: 28px 30px; }
.pass .p-side { background: var(--gold); color: var(--on-gold); padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; position: relative; }
.pass .p-side::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: radial-gradient(circle, var(--stock) 1.6px, transparent 2px) 0 0 / 2px 9px repeat-y; }
.pass .p-side.out { background: var(--stock-3); color: var(--ink); }
.pass h2 { font-size: clamp(34px, 4vw, 52px); }
.pass .p-sub { color: var(--ink-2); margin: 6px 0 22px; }
.punches { display: flex; flex-wrap: wrap; gap: 10px; }
.punch { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--display); }
.punch.done { background: var(--table); color: var(--ink-2); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .5); }
.punch.next { border: 2px dashed var(--ink-2); color: var(--ink); }
.punch.free { border: 1.5px dashed rgba(244, 239, 230, .25); }
.pass .p-pos { font: 900 76px/.85 var(--display); font-variant-numeric: tabular-nums; }
.pass .p-pos small { font-size: 26px; }
.pass .p-side p { margin: 0; font-weight: 600; font-size: 15px; }
.pass .p-side .pts { font: 800 22px/1 var(--display); }
@media (max-width: 720px) { .pass { grid-template-columns: 1fr; } .pass .p-side::before { left: 14px; right: 14px; top: 0; bottom: auto; width: auto; height: 2px; background: radial-gradient(circle, var(--stock) 1.6px, transparent 2px) 0 0 / 9px 2px repeat-x; } .pass .p-main { padding: 22px 20px; } }

/* ── Подвал ── */
.footer { margin-top: 72px; border-top: 1px solid var(--line); background: #17191b; }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .6fr) minmax(0, 1.35fr); gap: 28px 40px; align-items: start; padding-top: 36px; padding-bottom: 28px; }
.footer img { height: 56px; width: auto; display: block; }
.footer p { margin: 0; color: var(--ink-3); font-size: 14px; max-width: 52ch; }
.footer p b { color: var(--ink-2); }
.footer-brand { display: grid; gap: 14px; justify-items: start; }
.footer-col { display: grid; gap: 2px; align-content: start; justify-items: start; }
.footer-col h2 { margin: 0 0 6px; font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.footer-col a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--gold-ink); }
.footer-docs div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; width: 100%; justify-items: start; }
@media (max-width: 900px) { .footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand, .footer-docs { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer .wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; } .footer-docs div { grid-template-columns: minmax(0, 1fr); } .footer-col a { min-height: 40px; } }

/* ── Уведомления и окна ── */
#toast { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--ink); color: var(--table); padding: 12px 16px; border-radius: 12px; max-width: 380px; font-weight: 600; font-size: 15px; box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .7); animation: tin .35s var(--ease) both; }
.toast .ico { color: #2d7a3a; margin-top: 1px; }
.toast.err { background: #ffe3eb; } .toast.err .ico { color: #c2185b; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 900px) { #toast { left: 16px; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); align-items: stretch; } .toast { max-width: none; } }

.modal-bg { position: fixed; inset: 0; background: rgba(10, 11, 12, .72); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 24px; z-index: 150; overflow: auto; animation: fade .2s both; }
.modal-bg.out { opacity: 0; transition: opacity .16s; }
.modal { background: var(--table-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 26px; width: 100%; max-width: 560px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); animation: pop .3s var(--ease) both; }
.modal h2, .modal .modal-title { font-size: 30px; margin-bottom: 14px; }
.modal-actions { margin-top: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .18s !important; animation-iteration-count: 1 !important; transition-duration: .12s !important; scroll-behavior: auto !important; }
  .live-dot i { animation: none !important; }
  .modal, .toast, .seatcard { animation-name: fade !important; }
}

/* ═════════════════════════ АДМИНКА ═════════════════════════ */
body.admin { background: var(--table); }
.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: #17191b; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; padding: 18px 12px; gap: 2px; }
.side .brand { justify-content: center; padding: 4px 0 20px; }
.side .brand img { height: 64px; }
.side a { display: flex; align-items: center; gap: 12px; color: var(--ink-2); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; min-height: 42px; }
.side a .ico { color: var(--ink-3); }
.side a:hover { background: var(--table-3); color: var(--ink); }
.side a.active { background: var(--stock); color: var(--ink); }
.side a.active .ico { color: var(--gold-ink); }
.side a.live-link.on { color: var(--ice-ink); }
.side a.live-link.on .ico { color: var(--ice-ink); }
.side .sep { border-top: 1px solid var(--line); margin: 12px 4px; }
.side .grow { flex: 1; }
.side .ext { font-size: 14px; }
.admin-main { padding: 0 36px 60px; max-width: 1320px; width: 100%; }
.admin-main .page-head { padding: 32px 0 22px; }
.admin-main .page-head h1 { font-size: clamp(34px, 3.4vw, 48px); }
.admin-top { display: none; }
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform .3s var(--ease); }
  body.nav-open .side { transform: none; box-shadow: 30px 0 60px rgba(0, 0, 0, .6); }
  .admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 50; padding: 8px 14px; background: rgba(23, 25, 27, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
  .admin-top img { height: 38px; display: block; }
  .admin-main { padding: 0 16px 60px; }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 55; display: none; }
  body.nav-open .scrim { display: block; }
}
.card { background: var(--table-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 16px; }
.card > h2, .card-head h2 { font-size: 26px; margin-bottom: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--stock) var(--grain); background-blend-mode: soft-light; border-radius: var(--r); margin-bottom: 16px; }
.kpis > div { padding: 18px 20px; position: relative; }
.kpis > div + div::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: radial-gradient(circle, var(--table) 1.5px, transparent 1.9px) 0 0 / 2px 8px repeat-y; }
.kpis b { display: block; font: 900 40px/.95 var(--display); font-variant-numeric: tabular-nums; }
.kpis span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, 1fr); } .kpis > div:nth-child(3)::before { display: none; } .kpis > div:nth-child(n+3) { border-top: 2px dotted rgba(28, 30, 33, .7); } }
.stat { background: var(--table-3); border-radius: 10px; padding: 12px 14px; }
.stat b { display: block; font: 800 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-size: 13px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a, .tabs button { background: none; border: 0; color: var(--ink-2); padding: 12px 16px; font: 700 17px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; text-decoration: none; }
.tabs .active { color: var(--ink); border-bottom-color: var(--gold); }
.hint-line { color: var(--ink-3); font-size: 14px; margin: -8px 0 18px; max-width: 80ch; }
.livecard { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--r); background: #16292b; border: 1px solid rgba(148, 221, 226, .3); margin-bottom: 16px; }
.livecard .l-name { font: 800 22px/1.1 var(--display); text-transform: uppercase; }
.arrivals { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.arrival { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px; background: var(--table-3); min-width: 0; }
.arrival span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrival.on { background: rgba(158, 224, 168, .1); box-shadow: inset 0 0 0 1px rgba(158, 224, 168, .4); }
.tlist { display: grid; gap: 8px; }
.trow { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) 110px 150px auto; gap: 16px; align-items: center; padding: 12px 16px; background: var(--table-2); border: 1px solid var(--line); border-radius: 12px; }
.trow:hover { border-color: var(--line-2); }
.trow .td { text-align: center; border-right: 2px dotted var(--line-2); padding-right: 12px; }
.trow .td b { display: block; font: 900 30px/.9 var(--display); }
.trow .td span { font: 700 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.trow .tn a { color: var(--ink); text-decoration: none; font: 800 20px/1.1 var(--display); text-transform: uppercase; }
.trow .tn a::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.trow .tn small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 3px; }
.trow .acts { position: relative; z-index: 1; display: flex; gap: 6px; }
@media (max-width: 800px) { .trow { grid-template-columns: 60px minmax(0, 1fr) auto; } .trow .tc, .trow .ts { display: none; } }

/* пульт */
.console { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1100px) { .console { grid-template-columns: 1fr; } }
.clockface { position: relative; border-radius: 18px; background: #101213; border: 1px solid var(--line); padding: 26px 28px 24px; text-align: center; overflow: hidden; }
.clockface.run { border-color: rgba(148, 221, 226, .45); }
.clockface.brk { border-color: rgba(185, 165, 251, .5); }
.clockface .lvl { display: flex; justify-content: center; align-items: center; gap: 12px; font: 800 20px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.clockface .big-clock { font: 800 clamp(84px, 11vw, 150px)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--ink-2); margin: 10px 0 4px; }
.clockface.run .big-clock { color: var(--ice-ink); }
.clockface.brk .big-clock { color: var(--violet); }
.clockface .blinds { font: 800 clamp(30px, 3.4vw, 44px)/1.05 var(--display); font-variant-numeric: tabular-nums; }
.clockface .nextlvl { color: var(--ink-3); margin-top: 6px; font-size: 15px; }
.clockface .paused-stamp { display: inline-block; padding: 4px 10px; border: 2px solid var(--ink-2); border-radius: 6px; font: 800 15px/1 var(--display); letter-spacing: .14em; color: var(--ink-2); }
.clockface .msg { margin-top: 12px; display: inline-flex; gap: 8px; align-items: center; background: rgba(148, 221, 226, .1); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.transport { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 10px; margin-top: 22px; }
.transport .btn { min-height: 64px; font-size: 17px; border-radius: 14px; }
.transport .btn .ico { width: 24px; height: 24px; }
.transport .btn.go { background: var(--ice); border-color: var(--ice); color: var(--on-ice); font-weight: 800; }
.transport .btn.stop { background: var(--ink); border-color: var(--ink); color: var(--table); font-weight: 800; }
.nudges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.nudges .btn { min-height: 44px; }
.set-time { display: flex; gap: 8px; justify-content: center; margin-top: 12px; align-items: center; }
.set-time input { width: 110px; text-align: center; }
.livestats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pause-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.players-live { display: grid; gap: 6px; }
.pl-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 150px 150px 60px auto; gap: 12px; align-items: center; padding: 8px 10px 8px 14px; border-radius: 10px; background: var(--table-3); }
.pl-row .seatno { font: 800 18px/1 var(--display); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pl-row .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-row .nm small { color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper b { min-width: 28px; text-align: center; font: 800 19px/1 var(--display); font-variant-numeric: tabular-nums; }
.stepper small { color: var(--ink-3); font-size: 12px; margin-right: 4px; }
.pl-row .ko { font: 800 18px/1 var(--display); display: flex; align-items: center; gap: 4px; color: var(--ink-2); }
.pl-row .ko .ico { width: 16px; height: 16px; }
@media (max-width: 900px) { .pl-row { grid-template-columns: 50px minmax(0, 1fr) auto; } .pl-row .stepper, .pl-row .ko { grid-column: 2; } .pl-row .bust { grid-column: 3; grid-row: 1 / 4; } }
.bust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bust-grid .btn { justify-content: flex-start; overflow: hidden; text-overflow: ellipsis; }
.levels-table input { min-height: 38px; }
.ach-ico { font-size: 26px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--stock); box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 4px var(--stock); }
.login-box { max-width: 420px; margin: 12vh auto 0; padding: 0 16px; }
.login-box .ticket { --stub: 0px; grid-template-columns: 1fr; -webkit-mask: none; mask: none; text-align: center; }
.login-box .ticket .body { padding: 32px 30px; gap: 14px; align-items: stretch; }
.login-box img { width: 150px; margin: 0 auto 6px; }

/* компактная гонка (колонка на главной) */
.race.compact .race-row { grid-template-columns: 44px minmax(0, 1fr) 70px; gap: 4px 12px; padding: 12px 14px; }
.race.compact .race-row .barwrap { grid-column: 2 / 3; grid-row: 2; height: 8px; }
.race.compact .race-row .pos { grid-row: 1 / 3; font-size: 26px; }
.race.compact .race-row .pts { grid-row: 1 / 3; grid-column: 3; font-size: 26px; }
.race.compact .race-row .who small { display: none; }

/* телефон: компактные live-полоса, периоды, факты */
@media (max-width: 720px) {
  .livebar .wrap { grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; padding-top: 10px; padding-bottom: 10px; }
  .livebar .l-info { grid-column: 2; order: 0; min-width: 0; }
  .livebar .l-name { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .livebar .l-meta { display: none; }
  .livebar .live-dot { font-size: 13px; letter-spacing: .08em; }
  .livebar .l-clock { font-size: 30px; }
  .livebar .l-blinds { grid-column: 1 / -1; text-align: left; font-size: 15px; display: flex; gap: 10px; align-items: baseline; }
  .livebar .l-blinds small { display: inline; font-size: 13px; }
  .period { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .period a, .period button { padding: 11px 4px; font-size: 14px; text-align: center; letter-spacing: .03em; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts b { font-size: 24px; }
}

/* админка: шесть показателей и пульт на телефоне */
.kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis.six > div:nth-child(4)::before { display: none; } .kpis.six > div:nth-child(n+4) { border-top: 2px dotted rgba(28, 30, 33, .7); } }
@media (max-width: 720px) {
  .clockface { padding: 20px 14px; }
  .transport { grid-template-columns: 1fr 1fr; }
  .transport #toggle { grid-column: 1 / -1; order: -1; }
  .transport .btn { min-height: 56px; font-size: 16px; padding: 0 10px; }
  .set-time { flex-wrap: wrap; }
  .livestats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-main .page-head { padding-top: 22px; }
}

/* админка: запрет горизонтального переполнения на узких экранах */
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .console { grid-template-columns: minmax(0, 1fr); } }
.admin-main, .console > *, .card { min-width: 0; }
@media (max-width: 720px) { .pl-row { grid-template-columns: 44px minmax(0, 1fr) auto; } .card { padding: 18px 14px; } .row > .btn.big { white-space: normal; text-align: left; } }

/* ── правки по итогам ревью ── */
.rules li::before { color: var(--ink-3); }
.season-line { font: 800 clamp(24px, 2.4vw, 30px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 32px; color: var(--ink); }
.ticket .t-link { color: var(--ink); text-decoration: none; display: block; }
.ticket .t-link:hover { text-decoration: underline; text-decoration-color: var(--line-2); }
.feat-cta { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.feat-cta .btn.primary { min-height: 48px; padding: 0 22px; font-size: 16px; }
.stub-stamp { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 2px solid var(--gold); border-radius: 6px; color: var(--gold-ink); font: 800 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; transform: rotate(-3deg); }
.stub-stamp .ico { width: 16px; height: 16px; }
.ticket.feature.tearing .stub { animation: tear .75s var(--ease) both; }
.sticky-me { display: flex; width: max-content; max-width: 100%; margin-left: auto; transition: opacity .25s, transform .25s var(--ease); }
.sticky-me.hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.race-row.free { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.race-row.free .pos, .race-row.free .pts { color: var(--ink-3); }
.race-row.free .who span { color: var(--ink-2); font-weight: 600; }
.race-row.free .barwrap { background: none; height: 0; border-top: 2px dashed var(--line-2); border-radius: 0; align-self: center; }
.m-ico .ico { width: 26px; height: 26px; color: var(--ink); }
.medal.locked .m-ico .ico { color: var(--ink-3); }
.ach-ico .ico { width: 24px; height: 24px; color: var(--ink); }

@media (pointer: coarse), (max-width: 900px) { .stepper .btn { width: 44px !important; min-height: 44px; } }
@media (min-width: 901px) { .stepper .btn { width: 34px; } }

@media (prefers-reduced-motion: reduce) { .race-row .barwrap i { animation: none !important; } }
.race-row.free .who span { display: block; }
.race-row .who small { display: block; }
.race-legend { align-items: center; }

/* ═════════ Главная: клуб, гонка сезона, фото, контакты ═════════ */
.club-hero { padding: 64px 0 56px; }
.club-hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.club-hero h1 { font-size: clamp(48px, 6.4vw, 92px); line-height: .98; letter-spacing: -.005em; }
.club-hero .lead { font-size: 18px; color: var(--ink-2); margin: 22px 0 30px; max-width: 46ch; }
.club-hero .lead b { color: var(--ink); font-weight: 600; }
.ch-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ch-more { margin-top: 16px; }
.ch-ticket { animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.season-sec { border-top: 1px solid var(--line); padding-top: 64px; }
.season-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.sec-lead { color: var(--ink-2); margin: 12px 0 18px; max-width: 42ch; font-size: 17px; }
@media (max-width: 1000px) { .club-hero .wrap, .season-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 720px) {
  .club-hero { padding: 32px 0 36px; }
  .club-hero .lead { font-size: 16px; margin: 16px 0 22px; }
  .ch-actions .btn { flex: 1 1 100%; }
  .season-sec { padding-top: 40px; }
}

.gstrip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(32px, calc((100vw - 1240px) / 2 + 32px)) 16px; scrollbar-width: none; }
.gstrip::-webkit-scrollbar { display: none; }
.gph { flex: none; border: 0; padding: 0; background: var(--table-2); border-radius: 12px; overflow: hidden; cursor: zoom-in; scroll-snap-align: start; position: relative; }
.gstrip .gph { width: clamp(240px, 28vw, 380px); aspect-ratio: 4 / 3; }
.gph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.gph:hover img { transform: scale(1.04); }
.gph span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: 13px; color: var(--ink); background: linear-gradient(transparent, rgba(0, 0, 0, .7)); text-align: left; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ggrid .gph { aspect-ratio: 4 / 3; width: 100%; }
@media (max-width: 720px) { .gstrip { padding: 4px 16px 12px; } .gstrip .gph { width: 76vw; } .ggrid { grid-template-columns: 1fr 1fr; gap: 8px; } }
.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(8, 9, 10, .94); display: grid; place-items: center; padding: 60px 70px; animation: fade .2s both; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 10px; object-fit: contain; }
.lightbox figcaption { color: var(--ink-2); font-size: 15px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--table-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { border-color: var(--gold); }
.lb-x { top: 16px; right: 16px; } .lb-p { left: 16px; top: 50%; transform: translateY(-50%); } .lb-n { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font: 700 14px/1 var(--display); letter-spacing: .1em; color: var(--ink-3); }
@media (max-width: 720px) { .lightbox { padding: 64px 12px 70px; } .lb-p, .lb-n { top: auto; bottom: 10px; transform: none; } .lb-p { left: 16px; } .lb-n { right: 16px; } }

.contact-card { background: var(--table-2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.contact-card h3 { margin-bottom: 16px; font-size: 24px; text-transform: uppercase; }
.contact-list { display: grid; gap: 14px; }
.contact-list a, .contact-list div { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--gold-ink); }
.contact-list .ico { color: var(--ink-3); margin-top: 2px; }
.cc-legal { margin: 20px 0 0; padding-top: 16px; border-top: 1px dashed var(--line-2); color: var(--ink-2); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.cc-legal .stamp18 { flex: none; margin-top: 1px; }

/* клуб: оглавление, вопросы */
.club-toc { display: flex; flex-wrap: wrap; gap: 6px; }
.club-toc a { text-decoration: none; color: var(--ink-2); font: 700 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; border-radius: 30px; border: 1px solid var(--line); }
.club-toc a:hover { color: var(--ink); border-color: var(--line-2); }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--table-2); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 20px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--ink-3); transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); max-width: 70ch; white-space: pre-line; }
.race-text p { margin: 0 0 8px; }
.race-text p:last-child { margin-bottom: 0; color: var(--gold-ink); }
.step .legal-note { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
.step p + p, .step ul + p { margin-top: 10px; }
.faq details[open] { border-color: var(--line-2); }
.club-grid { align-items: start; }
@media (max-width: 720px) { .club-toc { width: 100%; overflow-x: auto; flex-wrap: nowrap; } .club-toc a { flex: none; } }

/* рейтинг: движение и формат */
.race-row .pos { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.mv { display: inline-flex; align-items: center; gap: 1px; font: 700 12px/1 var(--display); letter-spacing: .02em; }
.mv .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.mv.up { color: var(--ok); } .mv.dn { color: var(--rose); } .mv.new { color: var(--ice-ink); text-transform: uppercase; letter-spacing: .06em; }
.move-note { color: var(--ink-3); font-size: 14px; margin: -8px 0 18px; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.move-note .ico { width: 14px; height: 14px; }
.move-note .ico + .ico { margin-right: 6px; }
.badge.fmt { vertical-align: 4px; margin-left: 6px; color: var(--ink-2); }
.pointsnote.bonus { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); }
.pointsnote.bonus .ico { color: var(--ice-ink); flex: none; margin-top: 1px; }

/* ═════════ Админка: форматы очков, вопросы, фото ═════════ */
.sc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.sc-list .card { margin: 0; }
.sc-sum { display: flex; gap: 16px; align-items: flex-end; padding: 14px 16px; border-radius: 12px; background: var(--table); border: 1px solid var(--line); }
.sc-bars { display: flex; align-items: flex-end; gap: 3px; height: 54px; flex: none; }
.sc-bars i { width: 9px; border-radius: 2px 2px 0 0; background: var(--ink); }
.sc-bars i:first-child { background: var(--gold); }
.sc-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sc-text b { font: 800 20px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.sc-text span { color: var(--ink-2); font-size: 14px; }
.sc-usage { display: flex; gap: 6px; align-items: flex-start; color: var(--ink-3); font-size: 14px; margin: 14px 0 0; }
.sc-usage .ico { width: 16px; height: 16px; margin-top: 2px; }
.sc-edit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; margin-bottom: 20px; }
.sc-prev { position: sticky; top: 16px; }
.sc-prev h3 { margin-bottom: 12px; }
.sc-prev input[type=range] { padding: 0; min-height: 30px; border: 0; background: none; accent-color: var(--gold); box-shadow: none; }
.sc-mult { margin: 0 0 12px; color: var(--ink-2); } .sc-mult b { color: var(--ink); font: 800 20px/1 var(--display); }
.pv-rows { display: grid; gap: 5px; }
.pv-rows > div { display: grid; grid-template-columns: 28px 1fr 52px; gap: 10px; align-items: center; }
.pv-rows span { font: 800 16px/1 var(--display); color: var(--ink-2); }
.pv-rows i { display: block; height: 10px; border-radius: 3px; background: var(--ink); }
.pv-rows > div:first-child i { background: var(--gold); }
.pv-rows b { font: 800 18px/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.pv-rows p { margin: 8px 0 0; }
.pts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pt-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 6px; align-items: center; background: var(--table); border: 1px solid var(--line); border-radius: 10px; padding: 5px 6px 5px 10px; }
.pt-place { font: 800 18px/1 var(--display); color: var(--ink-2); }
.pt-row input { min-height: 36px; padding: 6px 8px; }
.fb input:disabled { opacity: .45; }
@media (max-width: 1100px) { .sc-edit { grid-template-columns: 1fr; } .sc-prev { position: static; } }
.faq-ed { display: grid; gap: 10px; }
.faq-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; background: var(--table); border: 1px solid var(--line); }
.faq-num { font: 800 20px/1 var(--display); color: var(--ink-3); padding-top: 12px; text-align: center; }
.faq-f { display: grid; gap: 8px; }
.faq-f textarea { min-height: 76px; }
.faq-acts { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 720px) { .faq-row { grid-template-columns: minmax(0, 1fr); } .faq-num { display: none; } .faq-acts { flex-direction: row; } }
label.btn { margin: 0; color: var(--ink); }
label.btn.primary { color: var(--on-gold); }
.gal-ed { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gal-item { margin: 0; display: grid; gap: 8px; padding: 8px; border-radius: 12px; background: var(--table); border: 1px solid var(--line); }
.gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.gal-item input { min-height: 38px; font-size: 14px; }

/* ═════════ правки по второму ревью ═════════ */
@media (max-width: 720px) { .section { padding: 44px 0; } }
.season-line { text-wrap: balance; }
.narrow { max-width: 900px; }
.fm-all { margin: 10px auto 0; display: flex; }
.newbie-strip { padding: 8px 0 0; }
.ns { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding: 22px 26px; border-radius: var(--r); background: var(--stock) var(--grain); background-blend-mode: soft-light; color: var(--ink); text-decoration: none; position: relative; transition: transform .35s var(--ease), background-color .2s; }
.ns:hover { background-color: var(--stock-2); transform: translateY(-2px); }
.ns-t { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.ns-i { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 15px; }
.ns-i .ico { width: 18px; height: 18px; color: var(--ink-3); }
.ns-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); font-weight: 600; }
.ns-go .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.ns:hover .ns-go .ico { transform: translateX(3px); }
@media (max-width: 900px) { .ns { flex-direction: column; align-items: flex-start; gap: 10px; } .ns-go { margin-left: 0; } }

/* ═════════ правки третьего круга ═════════ */
.sc-card .card-head { flex-wrap: nowrap; align-items: flex-start; }
.sc-card .card-head > div:first-child { min-width: 0; }
.sc-card .card-head .row { flex: none; flex-wrap: nowrap; }
@media (max-width: 520px) { .sc-card .card-head { flex-wrap: wrap; } }
.news-item h3, .news-item h2, .news-item p { max-width: 70ch; }
.club-lead { font-size: 18px; color: var(--ink-2); max-width: 62ch; margin-top: 14px; white-space: pre-line; }

/* погашенный билет: печать «Сыгран» */
.ticket.used .body { position: relative; }
.used-stamp { position: absolute; right: 26px; top: 50%; transform: translateY(-50%) rotate(-7deg); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 16px 9px; border: 2.5px solid rgba(205, 208, 212, .55); border-radius: 8px; color: var(--ink-2); text-transform: uppercase; pointer-events: none; }
.used-stamp::before { content: ''; position: absolute; inset: 3px; border: 1px solid rgba(205, 208, 212, .3); border-radius: 5px; }
.used-stamp b { font: 900 24px/1 var(--display); letter-spacing: .16em; }
.used-stamp span { font: 700 12px/1.1 var(--display); letter-spacing: .08em; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .used-stamp { position: static; transform: rotate(-4deg); align-self: flex-start; margin-top: 4px; } }

/* ═════════ Рассадка по столам и боксам (админка) ═════════ */
.seat-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.seat-steps { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.seat-steps .stepper small { font-size: 14px; color: var(--ink-2); }
.seat-steps .stepper b { font-size: 22px; min-width: 34px; }
.seat-pick { position: sticky; top: 10px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px 12px 18px; margin-bottom: 16px; border-radius: 12px; background: var(--stock); box-shadow: inset 0 0 0 1.5px var(--ink), 0 14px 32px -12px rgba(0, 0, 0, .7); }
.seat-pick[hidden] { display: none; }
@media (max-width: 1000px) { .seat-pick { top: 64px; } }
.seat-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 30px; background: var(--table-3); border: 1px solid var(--line-2); color: var(--ink); font: 600 15px/1 var(--text); cursor: pointer; transition: border-color .2s, background .2s; }
.seat-chip:hover { border-color: #737980; }
.seat-chip small { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.seat-chip.away { border-style: dashed; }
.seat-chip.sel, .box.sel { background: var(--stock); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seat-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-bottom: 16px; }
.seat-table { background: var(--table-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.seat-table header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.seat-table h3 { font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.boxes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.box { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 50px; padding: 6px 12px 6px 7px; border-radius: 10px; background: var(--table-3); border: 1px solid var(--line); color: var(--ink); font: 600 15px/1.2 var(--text); text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.box:hover { border-color: var(--line-2); }
.box b { grid-row: 1 / 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--table); color: var(--ink-2); font: 800 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box small { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.box.free { background: transparent; border-style: dashed; border-color: var(--line-2); color: var(--ink-3); font-weight: 400; }
.box.free b { background: transparent; border: 1.5px dashed var(--line-2); color: var(--ink-3); }
.box.free span { grid-row: 1 / 3; }
.box.free:hover { border-color: var(--ink-3); color: var(--ink-2); }
.box.away b { border: 1.5px dashed var(--ink-3); }
a.seatno, .seat-link { color: var(--ink-2); text-decoration: none; border-bottom: 1px dashed var(--line-2); }
a.seatno:hover, .seat-link:hover { color: var(--gold-ink); border-color: var(--gold); }
.bust-grid .btn b.num { font-size: 16px; color: var(--ink-2); }

/* ═════════ Касса ═════════ */
.cash-kpis b { font-size: 34px; white-space: nowrap; }
.cash-kpis span { display: block; margin-top: 6px; }
.neg { color: var(--rose) !important; }
.money { font-family: var(--display); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money small { font-family: var(--text); font-weight: 400; font-size: 13px; color: var(--ink-3); }
.cash-table tfoot td { border-bottom: 0; border-top: 1px solid var(--line-2); font-weight: 700; color: var(--ink); }
.cash-table td .check span { font-size: 14px; color: var(--ink-2); }
.month-sw { display: inline-flex; align-items: center; gap: 8px; }
.month-sw span { min-width: 150px; text-align: center; font: 800 20px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.cash-due { margin: 0 0 16px; border-color: rgba(244, 63, 122, .4); }
.cash-due .ico { color: var(--rose); }
.cat-list { display: grid; }
.cat-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.cat-list > div:last-child { border-bottom: 0; }
.cash-foot { margin: 14px 0 0; color: var(--ink-2); text-align: right; }
.sh-sum { margin: 4px 0 0; color: var(--ink-2); }
.sh-sum b { color: var(--ink); font: 800 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.dealer-howto p { max-width: 80ch; color: var(--ink-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--table); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.seg label { position: relative; margin: 0; padding: 13px; text-align: center; border-radius: 9px; cursor: pointer; color: var(--ink-2); font: 800 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--stock-3); color: var(--ink); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 720px) { .cash-kpis b { font-size: 26px; } .month-sw span { min-width: 120px; font-size: 18px; } }

.fr-box .fr-time { margin: -4px 0 0 30px; max-width: 420px; display: grid; gap: 10px; }
.fr-box .fr-time .field { margin: 0; }
.fr-box .fr-mode { max-width: 320px; }
.fr-box [hidden] { display: none !important; }
.fmt-pick { max-width: 560px; margin-bottom: 6px; }
.t-format { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.fr-box .fr-time[hidden] { display: none; }

/* ═════════ Экран дилера (/dealer) ═════════ */
body.dealer { background: var(--table); }
.dl-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: rgba(23, 25, 27, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.dl-top img { height: 34px; width: auto; display: block; }
.dl-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl-who b { font: 800 20px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-who small { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-clock { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 19; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 16px; background: #141618; border-bottom: 1px solid var(--line); }
.dl-tb { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 6px 8px; border-radius: 10px; background: var(--stock); box-shadow: inset 0 0 0 1.5px var(--gold); }
.dl-tb small { font: 700 10px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.dl-tb b { font: 900 34px/1 var(--display); color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.dl-now { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dl-next { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-times { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dl-brk { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.dl-brk b { font: 800 18px/1 var(--display); color: var(--violet); font-variant-numeric: tabular-nums; }
.dl-clock[hidden] { display: none; }
.dl-clock.run { background: #16292b; border-color: rgba(148, 221, 226, .3); }
.dl-clock .live-dot { font-size: 14px; }
.dl-lvl { color: var(--ink-2); font: 700 16px/1.1 var(--display); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.dl-time { font: 800 32px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.dl-clock.run .dl-time { color: var(--ice-ink); }
.dl-clock.brk .dl-time { color: var(--violet); }
.dl-main { width: 100%; max-width: 640px; margin: 0 auto; padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); }
.dl-tables { display: flex; gap: 4px; overflow-x: auto; background: var(--table-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 16px; scrollbar-width: none; }
.dl-tables::-webkit-scrollbar { display: none; }
.dl-tables button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: 800 17px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.dl-tables button small { font-size: 14px; color: var(--ink-3); letter-spacing: 0; }
.dl-tables button[aria-pressed='true'] { background: var(--stock); color: var(--ink); }
.dl-tables button[aria-pressed='true'] small { color: var(--ink-2); }
.dl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.dl-head h1 { font-size: 40px; }
.dl-head span { font-size: 14px; }
.dl-boxes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl-box { width: 100%; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; min-height: 66px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--table-2); border: 1px solid var(--line); color: var(--ink); text-align: left; font: 600 17px/1.2 var(--text); cursor: pointer; transition: background .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.dl-box:hover { border-color: var(--line-2); }
.dl-box:active { background: var(--table-3); }
.dl-box .bx, .dl-sh-head .bx, .dl-ko .bx { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--stock); color: var(--ink); font: 800 24px/1 var(--display); font-variant-numeric: tabular-nums; flex: none; }
.dl-box .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-box .nm small { display: block; margin-top: 3px; color: var(--ink-3); font-weight: 400; font-size: 13px; }
.dl-box .cnt { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.dl-box .cnt i { display: inline-flex; align-items: center; gap: 3px; font: 700 13px/1 var(--display); font-style: normal; letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 20px; background: var(--table-3); color: var(--ink-2); }
.dl-box .cnt .ico { width: 13px; height: 13px; }
.dl-box > .ico { color: var(--ink-3); width: 18px; height: 18px; }
.dl-box.away .bx { background: transparent; border: 1.5px dashed var(--ink-3); }
.dl-box.free { grid-template-columns: 50px minmax(0, 1fr); background: transparent; border-style: dashed; border-color: var(--line-2); color: var(--ink-3); font-weight: 400; cursor: default; }
.dl-box.free .bx { background: transparent; border: 1.5px dashed var(--line-2); color: var(--ink-3); }
.dl-sec { margin-top: 30px; }
.dl-sec h3 { font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.dl-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dl-out li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px; background: var(--table-2); border: 1px solid var(--line); }
.dl-out li > b { font-size: 22px; color: var(--ink-2); }
.dl-out li > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dl-out .row { flex-wrap: nowrap; gap: 6px; }
.dl-log { list-style: none; margin: 0; padding: 0; }
.dl-log li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); font-size: 14px; }
.dl-log time { font: 700 15px/1.3 var(--display); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dl-log b { color: var(--ink); font-weight: 600; }
/* карточка бокса — шторка снизу на телефоне */
.dl-sh-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dl-sh-head .bx { width: 56px; height: 56px; font-size: 28px; }
.dl-sh-head h2 { font-size: 30px; margin: 0 0 4px; overflow-wrap: anywhere; }
.dl-sh-head p { margin: 0; font-size: 14px; }
.dl-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-acts .btn { min-height: 66px; font-size: 18px; border-radius: 14px; }
.dl-acts .btn .ico { width: 22px; height: 22px; }
.dl-acts [data-a='bust'] { grid-column: 1 / -1; }
.dl-fix { margin-top: 12px; gap: 6px; }
.dl-ko { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dl-ko .btn { justify-content: flex-start; gap: 10px; min-height: 60px; padding: 0 12px 0 6px; overflow: hidden; }
.dl-ko .btn span { overflow: hidden; text-overflow: ellipsis; }
.dl-ko .bx { width: 44px; height: 44px; font-size: 20px; }
.dl-other { margin-top: 14px; }
.dl-other summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-2); font-weight: 600; }
.dl-other summary::-webkit-details-marker { display: none; }
.dl-other summary .ico { transition: transform .25s var(--ease); }
.dl-other[open] summary .ico { transform: rotate(180deg); }
.dl-other .dl-ko { margin-top: 8px; }
@media (max-width: 480px) { .dl-out li { grid-template-columns: 40px minmax(0, 1fr); } .dl-out .row { grid-column: 1 / -1; } .dl-out .row .btn { flex: 1; } }
.pin-input { font: 800 30px/1 var(--display); letter-spacing: .3em; text-align: center; min-height: 58px; }
@media (max-width: 640px) {
  .modal-bg.sheet-bg { align-items: flex-end; padding: 0; }
  .sheet-bg .modal { max-width: none; border-radius: 16px 16px 0 0; border-bottom: 0; padding: 22px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; }
  .dl-head h1 { font-size: 34px; }
  .dl-clock { gap: 10px; padding: 8px 12px; }
  .dl-tb { min-width: 54px; } .dl-tb b { font-size: 28px; }
  .dl-lvl { font-size: 15px; } .dl-time { font-size: 28px; }
}

/* ═════════ Итоги турнира: пьедестал и список ═════════ */
.podium { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 14px 18px; border-radius: var(--r); background: var(--stock) var(--grain); background-blend-mode: soft-light; min-width: 0; }
.pod.p1 { padding-top: 30px; padding-bottom: 26px; box-shadow: inset 0 0 0 1.5px var(--gold); }
.pod-place { font: 900 46px/.9 var(--display); color: var(--ink-2); display: flex; flex-direction: column; align-items: center; }
.pod-place small { font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.pod.p1 .pod-place { font-size: 64px; color: var(--gold-ink); }
.pod-name { color: var(--ink); text-decoration: none; font: 800 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod.p1 .pod-name { font-size: 28px; }
.pod-name:hover { text-decoration: underline; text-decoration-color: var(--line-2); }
.pod-pts { font: 900 30px/1 var(--display); color: var(--ink); }
.pod-pts small { font: 600 12px/1 var(--text); color: var(--ink-3); margin-left: 4px; }
.pod-meta { font-size: 13px; color: var(--ink-2); }
.res-rest { margin-top: 18px; }
.stubrow.team-row b { color: var(--ink); }
@media (max-width: 640px) {
  .podium { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .pod.p1 { order: -1; }
  .pod { flex-direction: row; flex-wrap: wrap; text-align: left; justify-content: flex-start; padding: 14px 16px; gap: 4px 14px; }
  .pod.p1 { padding: 16px; }
  .pod-place, .pod.p1 .pod-place { font-size: 36px; flex-direction: row; align-items: baseline; gap: 4px; min-width: 52px; }
  .pod-place small { margin: 0; }
  .pod-name, .pod.p1 .pod-name { font-size: 22px; flex: 1; }
  .pod-pts { font-size: 24px; }
  .pod-meta { flex-basis: 100%; padding-left: 66px; }
}

/* ═════════ Место проведения ═════════ */
.venue-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
.venue-info { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.venue-name { display: flex; align-items: center; gap: 10px; margin: 0; font: 800 24px/1.1 var(--display); text-transform: uppercase; }
.venue-name .ico { color: var(--ink-3); width: 22px; height: 22px; }
.venue-addr { margin: 0 0 6px; color: var(--ink-2); font-size: 17px; }
.venue-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--table); min-height: 280px; }
.venue-map iframe { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; }
@media (max-width: 900px) { .venue-grid { grid-template-columns: minmax(0, 1fr); } .venue-map, .venue-map iframe { min-height: 240px; } }

/* ═════════ Документы: соглашение и согласие ═════════ */
.doc-wrap { padding-bottom: 72px; }
.doc { max-width: 78ch; margin: 18px 0 0; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin: 10px 0 18px; }
.doc h2 { font-size: 22px; margin: 30px 0 12px; }
.doc p { color: var(--ink-2); line-height: 1.6; margin: 0 0 10px; }
.doc p.clause b { color: var(--ink); font-family: var(--display); font-weight: 800; margin-right: 4px; }
.doc p.clause.sub, .doc p.dash { padding-left: 22px; }
.doc .blank { display: inline-block; min-width: 120px; border-bottom: 1px solid var(--line-2); height: 1em; vertical-align: baseline; }
.doc .blank.sm { min-width: 36px; }
.doc-note { background: var(--table-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; color: var(--ink) !important; }
.doc-req { margin-top: 12px; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: 12px; }
.doc-req p { margin: 0 0 4px; }

/* ═════════ Админка: запись игроков списком ═════════ */
.pick-list { max-height: 52vh; overflow: auto; display: grid; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--table); }
.pick { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0; padding: 10px 12px; min-height: 46px; border-radius: 9px; cursor: pointer; color: var(--ink); font-weight: 600; font-size: 15px; }
.pick:hover { background: var(--table-3); }
.pick.on { background: var(--stock); }
.pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick small { color: var(--ink-3); font-weight: 400; font-size: 13px; }

/* ═════════ Админка: таблица очков по числу игроков ═════════ */
.grid-wrap { max-height: 60vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.grid-table th, .grid-table td { padding: 4px; border-bottom: 1px solid var(--line); }
.grid-table thead th { position: sticky; top: 0; z-index: 1; background: var(--table-2); }
.grid-table td:first-child, .grid-table th:first-child { position: sticky; left: 0; background: var(--table-2); padding: 4px 10px; z-index: 2; }
.grid-table input { width: 72px; min-height: 34px; padding: 4px 8px; font-size: 14px; }
.gcol { display: flex; align-items: center; gap: 2px; }
.gcol input { width: 52px; }
.gcol .btn { margin-left: 2px; }

/* ═════════ Админка: инструменты структуры блайндов ═════════ */
.lv-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: var(--table); border: 1px solid var(--line); }
.lv-tools label.btn { color: var(--ink); margin: 0; }

/* ═════════ выравнивание блоков админки ═════════ */
.sc-card { display: flex; flex-direction: column; }
.sc-card .sc-usage { margin-top: auto; padding-top: 14px; }
.lv-acts { text-align: right; }
.lv-acts .btn[data-brk] { min-width: 52px; }
.levels-table tr.brk .lv-acts::after { content: ''; display: inline-block; width: 52px; margin-left: 4px; } /* место под «перерыв после» — кнопки строк на одной линии */
@media (max-width: 1100px) { .sc-edit { grid-template-columns: minmax(0, 1fr); } }
.grid-table th:not(:first-child), .grid-table td:not(:first-child) { min-width: 150px; width: 150px; }
.grid-table td:not(:first-child) input { width: 100%; }
.gcol input { width: 52px; flex: 1; min-width: 0; }
/* итоги: остальные места — «место · ник · очки» на любом экране */
.res-rest .stubrow { grid-template-columns: 96px minmax(0, 1fr) auto 70px; }
@media (max-width: 640px) {
  .res-rest .stubrow { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 2px 10px; }
  .res-rest .stubrow .pl { grid-column: 1; grid-row: 1 / 3; text-align: left; }
  .res-rest .stubrow a { grid-column: 2; grid-row: 1; }
  .res-rest .stubrow .ko { grid-column: 2; grid-row: 2; font-size: 13px; }
  .res-rest .stubrow .pp { grid-column: 3; grid-row: 1 / 3; }
}

/* ═════════ Новости: карточки с обложкой и страница новости ═════════ */
.ncard { position: relative; display: flex; flex-direction: column; background: var(--table-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s, transform .35s var(--ease); min-width: 0; }
.ncard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.nc-img { position: relative; aspect-ratio: 16 / 9; background: var(--table); overflow: hidden; }
.nc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.ncard:hover .nc-img img { transform: scale(1.03); }
.nc-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 20px; background: rgba(10, 11, 12, .72); color: var(--ink); font: 700 13px/1 var(--display); letter-spacing: .04em; }
.nc-count .ico { width: 14px; height: 14px; }
.nc-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.nc-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink-3); font: 700 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.ncard h3 { font-size: 24px; line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; margin: 2px 0 0; }
.nc-link { color: var(--ink); text-decoration: none; }
.nc-link::after { content: ''; position: absolute; inset: 0; }
.nc-link:focus-visible { outline: none; }
.ncard:focus-within { border-color: var(--gold); }
.ncard p { margin: 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.nc-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); font-weight: 600; font-size: 15px; }
.nc-more .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.ncard:hover .nc-more .ico { transform: translateX(3px); }
.ncard.no-img .nc-body { padding-top: 22px; }
/* лента: главная новость крупно, остальные сеткой */
.news-lead .ncard { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.news-lead .ncard { align-items: stretch; }
.news-lead .nc-img { aspect-ratio: 16 / 10; max-height: 460px; align-self: start; width: 100%; }
.news-lead .nc-body { padding: 28px; justify-content: center; }
.news-lead h3 { font-size: clamp(28px, 3vw, 40px); }
.news-lead p { -webkit-line-clamp: 6; font-size: 17px; }
.news-lead .ncard.no-img { grid-template-columns: minmax(0, 1fr); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 16px; }
/* главная: компактные карточки — миниатюра слева */
.news-home { display: grid; gap: 10px; }
.ncard.sm { flex-direction: row; }
.ncard.sm .nc-img { flex: none; width: 168px; aspect-ratio: 4 / 3; }
.ncard.sm .nc-body { padding: 14px 16px; gap: 6px; }
.ncard.sm h3 { font-size: 20px; }
.ncard.sm p { -webkit-line-clamp: 2; font-size: 15px; }
.ncard.sm .nc-more, .ncard.sm .nc-count { display: none; }
@media (max-width: 900px) { .news-lead .ncard { grid-template-columns: minmax(0, 1fr); } .news-lead .nc-img { min-height: 0; aspect-ratio: 16 / 9; } .news-lead .nc-body { padding: 20px; } }
@media (max-width: 520px) { .ncard.sm .nc-img { width: 104px; } .ncard.sm h3 { font-size: 18px; } }
/* страница новости */
.news-page { max-width: 820px; margin: 18px 0 0; }
.news-page h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; margin: 12px 0 22px; }
.np-cover { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--table-2); }
.np-cover img { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.np-cap { color: var(--ink-3); font-size: 14px; margin: 8px 0 0; }
.np-text { margin-top: 24px; }
.np-text p { font-size: 18px; line-height: 1.65; color: var(--ink); max-width: 70ch; margin: 0 0 16px; }
.np-h { font-size: 26px; margin: 32px 0 14px; }
.np-more { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.np-more .news-grid { margin-top: 0; }
@media (max-width: 720px) { .np-text p { font-size: 16px; } }
/* админка: список новостей и редактор */
.adm-news { display: grid; gap: 8px; }
.an-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 20px; align-items: center; gap: 16px; padding: 8px 14px 8px 8px; border-radius: 12px; background: var(--table-3); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.an-row:hover { border-color: var(--line-2); }
.an-img { display: grid; place-items: center; width: 96px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--table); color: var(--ink-3); }
.an-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.an-text b { font: 800 20px/1.1 var(--display); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-text small { color: var(--ink-3); font-size: 13px; }
.an-row > .ico { color: var(--ink-3); }
.news-edit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; margin-bottom: 20px; }
@media (max-width: 1100px) { .news-edit { grid-template-columns: minmax(0, 1fr); } }
.news-ph { grid-template-columns: repeat(auto-fill, minmax(min(100%, 216px), 1fr)); }
.np-thumb { position: relative; }
.np-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.np-badge { position: absolute; left: 8px; top: 8px; background: rgba(10, 11, 12, .78); color: var(--ink); border-color: transparent; }
.gal-item { align-content: start; }
.news-ph .gal-item .row { flex-wrap: nowrap; gap: 6px; }
.news-ph .gal-item .row .btn.danger { width: 30px; padding: 0; }

/* ═════════ Финал сезона: золотая рамка, лента и золотая дата ═════════ */
.ticket.final { box-shadow: inset 0 0 0 2px var(--gold); }
.ticket.final .stub .d, .ticket.final .stub .t { color: var(--gold-ink); }
.ticket.final.mine .stub .d, .ticket.final.mine .stub .t { color: var(--on-gold); }
.final-ribbon { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 4px; background: var(--gold); color: var(--on-gold); font: 800 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.final-ribbon .ico { width: 16px; height: 16px; }
.ticket.used.final { background-color: var(--stock); }

/* ═════════ Сыгранный турнир: победитель крупно, призёры рядом ═════════ */
.winrow { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 12px; background: rgba(20, 22, 24, .45); max-width: 560px; }
.win-cup { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--on-gold); }
.win-cup .ico { width: 24px; height: 24px; }
.win-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.win-main small { font: 700 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.win-main b { font: 800 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-pts { text-align: right; font: 900 26px/1 var(--display); color: var(--ink); }
.win-pts small { display: block; font: 600 12px/1.2 var(--text); color: var(--ink-3); }
.win-rest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 15px; color: var(--ink-2); }
.win-rest span { display: inline-flex; align-items: baseline; gap: 6px; }
.win-rest b { font: 800 18px/1 var(--display); color: var(--ink-3); }
.ticket.used .used-stamp { top: 22px; right: 22px; transform: rotate(-7deg); }
.ticket.used .used-stamp b { font-size: 18px; }
@media (max-width: 640px) {
  .ticket.used .used-stamp { position: static; order: 9; align-self: flex-start; margin: 2px 0 0; padding: 5px 10px 6px; transform: rotate(-4deg); }
  .winrow { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .win-cup { width: 40px; height: 40px; }
  .win-main b { font-size: 22px; }
}

/* ═════════ Рейтинг: сезоны и статистика вместо полосы ═════════ */
.seasons { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -8px 0 20px; padding-bottom: 2px; }
.seasons::-webkit-scrollbar { display: none; }
.seasons a { flex: none; display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 14px; border-radius: 30px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font: 700 15px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.seasons a:hover { color: var(--ink); border-color: var(--line-2); }
.seasons a.active { background: var(--stock); border-color: var(--stock); color: var(--ink); }
.seasons small { font-size: 11px; color: var(--ice-ink); letter-spacing: .08em; }
.race-row { grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 2fr) 90px; }
.race-row .who { display: flex; align-items: center; gap: 10px; }
.race-row .who a { flex: 0 1 auto; min-width: 0; }
.me-tag { flex: none; padding: 4px 8px; border-radius: 4px; background: var(--gold); color: var(--on-gold); font: 800 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.rstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rstats span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border-radius: 8px; background: rgba(20, 22, 24, .35); box-shadow: inset 0 0 0 1px var(--line-2); }
.race-row.me .rstats span { box-shadow: inset 0 0 0 1px rgba(255, 203, 99, .45); }
.rstats b { font: 800 20px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.rstats small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.race-row.me .rstats span { background: rgba(255, 203, 99, .12); }
.race-row.free .rstats { border-top: 2px dashed var(--line-2); align-self: center; height: 0; }
.race.compact .race-row { grid-template-columns: 44px minmax(0, 1fr) 70px; }
.race.compact .rstats { grid-column: 2 / 3; grid-row: 2; display: flex; gap: 12px; }
.race.compact .rstats span { flex-direction: row; gap: 4px; padding: 0; background: none; box-shadow: none; }
.race.compact .rstats b { font-size: 15px; color: var(--ink-2); }
.race.compact .rstats span:nth-child(3) { display: none; }
@media (max-width: 720px) {
  .race-row { grid-template-columns: 44px minmax(0, 1fr) 64px; }
  .race-row .rstats { grid-column: 2 / 3; grid-row: 2; display: flex; gap: 12px; flex-wrap: wrap; }
  .race-row .rstats span { flex-direction: row; gap: 4px; padding: 0; background: none; box-shadow: none; }
  .race-row .rstats b { font-size: 15px; color: var(--ink-2); }
  .race-row.me .rstats span { background: none; }
}
.race-row.free .who { flex-direction: column; align-items: flex-start; gap: 2px; }

/* Идущий турнир: время игры вместо шкалы мест */
.live-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--ink-2); }
.live-line .ll-clock { font: 800 26px/1 var(--display); color: var(--ink); letter-spacing: .02em; }
.live-card { display: grid; gap: 10px; padding: 16px 18px; border-radius: 14px; background: rgba(110, 200, 210, .07); border: 1px solid rgba(110, 200, 210, .28); }
.live-card .note { margin: 0; font-size: 14px; color: var(--ink-2); }
.pw-box summary h3 { display: flex; align-items: center; gap: 10px; }

/* Рейтинг: выбор сезона и пьедестал тройки лидеров */
.season-pick { display: flex; align-items: center; gap: 12px; margin: -8px 0 22px; max-width: 460px; }
.rt-tools { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: -8px 0 22px; }
.rt-tools .season-pick { margin: 0; flex: 1 1 320px; }
.season-pick > span { font: 700 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.season-pick select { flex: 1; min-width: 0; font: 700 16px/1.2 var(--display); letter-spacing: .03em; }
.rating-podium { margin: 0 0 22px; }
.rating-podium .pod { padding-top: 24px; }
.rating-podium .pod.p1 { padding-top: 40px; background: linear-gradient(180deg, rgba(232, 190, 92, .16), transparent 70%), var(--stock); }
.rating-podium .pod.p2 { min-height: 0; }
.pod-crown { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--on-gold); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.pod-crown .ico { width: 22px; height: 22px; }
.pod-gap { font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 6px 10px; border-radius: 30px; border: 1px solid var(--line); }
.pod.p1 .pod-gap { color: var(--gold-ink); border-color: rgba(232, 190, 92, .45); }
.pod.me { box-shadow: inset 0 0 0 2.5px var(--gold), 0 0 0 4px rgba(255, 203, 99, .18); }
@media (max-width: 640px) {
  .season-pick { max-width: none; }
  .rt-tools .btn { width: 100%; justify-content: center; }
  .rating-podium .pod.p1 { padding-top: 22px; }
  .pod-crown { display: none; }
  .pod-gap { margin-left: 66px; }
}

/* ═════════ Соцсети клуба ═════════ */
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-socials { margin-top: 18px; }
.soc { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px; border-radius: 30px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font: 700 15px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; transition: border-color .2s, background .2s, color .2s; }
.soc .ico { width: 20px; height: 20px; }
.soc:hover { border-color: var(--gold); color: var(--gold-ink); }
.soc .ico, .contact-list a .ico { color: var(--gold); } /* все соцсети — одним цветом */

/* ═════════ Правила клуба: покерный стол — карты-правила и фишки-документы ═════════ */
.felt { position: relative; padding: 36px 36px 32px; border-radius: 40px; background: radial-gradient(120% 90% at 50% 0%, #2f4a4c 0%, #233436 45%, #1b2526 100%); box-shadow: inset 0 0 0 10px #17191b, inset 0 0 0 12px rgba(255, 203, 99, .35), inset 0 18px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.felt-head { position: relative; max-width: 72ch; margin-bottom: 28px; }
.felt-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 800 14px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.felt-eyebrow .ico { width: 18px; height: 18px; }
.felt-head h2 { margin: 0 0 10px; }
.felt-head p { margin: 0; color: #c9d3d2; line-height: 1.6; }
.hand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pcard { position: relative; min-height: 220px; padding: 62px 30px 46px; border-radius: 16px; background: linear-gradient(160deg, #f6f1e4, #e9e1cd); color: #23262a; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 14px 28px -10px rgba(0, 0, 0, .55); transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease), box-shadow .35s var(--ease); overflow: hidden; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 22px 36px -12px rgba(0, 0, 0, .6); }
.pcard h3 { position: relative; margin: 0 0 10px; color: #17191b; font-size: 22px; }
.pcard p { position: relative; margin: 0; color: #3d4248; line-height: 1.55; font-size: 15px; }
.pc-idx { position: absolute; top: 12px; left: 14px; display: flex; flex-direction: column; align-items: center; line-height: .9; }
.pc-idx.br { top: auto; left: auto; bottom: 12px; right: 14px; transform: rotate(180deg); }
.pc-rank { font: 900 24px/1 var(--display); }
.pc-suit { font-size: 18px; margin-top: 2px; }
.pc-mark { position: absolute; right: -10px; bottom: -34px; font-size: 150px; line-height: 1; opacity: .07; pointer-events: none; }
.suit-s, .suit-c { --suit: #1d2024; }
.suit-h, .suit-d { --suit: #b8322c; }
.pcard .pc-idx, .pcard .pc-mark { color: var(--suit); }
.chips-row { position: relative; margin-top: 30px; padding-top: 24px; border-top: 1px dashed rgba(255, 255, 255, .18); }
.chips-row h3 { margin: 0 0 14px; font-size: 18px; color: #e6ecea; }
.doc-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.doc-chip { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 60px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .12); color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.doc-chip:hover { border-color: var(--gold); background: rgba(0, 0, 0, .4); }
.chip-disc { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--on-gold); box-shadow: 0 0 0 4px var(--gold), 0 0 0 7px #17191b; background-image: repeating-conic-gradient(var(--gold) 0 20deg, #fff3d4 20deg 30deg); }
.chip-disc .ico { width: 20px; height: 20px; padding: 3px; box-sizing: content-box; border-radius: 50%; background: var(--gold); }
.dc-t { display: grid; gap: 4px; font-weight: 600; }
.dc-t small { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: 13px; color: var(--ink-2); }
.dc-t small .ico { width: 13px; height: 13px; }
@media (max-width: 960px) { .hand { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .felt { padding: 26px 18px 22px; border-radius: 26px; box-shadow: inset 0 0 0 6px #17191b, inset 0 0 0 8px rgba(255, 203, 99, .35), inset 0 18px 60px rgba(0, 0, 0, .35); }
  .hand { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pcard { min-height: 0; padding: 58px 24px 42px; }
  .doc-chip { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pcard, .pcard:hover { transform: none; transition: none; } }

/* Переход по разделам страницы клуба: раздел коротко подсвечивается */
.section.flash > .wrap { animation: sec-flash 1.4s var(--ease); border-radius: 18px; }
@keyframes sec-flash { 0%, 30% { box-shadow: 0 0 0 2px rgba(255, 203, 99, .55); } 100% { box-shadow: 0 0 0 2px transparent; } }
@media (prefers-reduced-motion: reduce) { .section.flash > .wrap { animation: none; } }

/* ═════════ Фотогалерея: альбомы ═════════ */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.album { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--table-2); color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: border-color .2s; }
.album:hover { border-color: var(--gold); }
.al-cover { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--stock); color: var(--ink-3); overflow: hidden; }
.al-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.album:hover .al-cover img { transform: scale(1.04); }
.al-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 30px; background: rgba(0, 0, 0, .65); color: var(--ink); font: 700 14px/1 var(--display); }
.al-count .ico { width: 16px; height: 16px; }
.al-info { display: grid; gap: 4px; padding: 14px 16px 16px; }
.al-info b { font: 800 20px/1.15 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.al-info small { color: var(--ink-2); font-size: 14px; }

/* Финал сезона: только для финалистов */
.final-note { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.final-note .ico { flex: none; width: 18px; height: 18px; color: var(--gold-ink); }
.final-note b { color: var(--gold-ink); font: 800 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.seatcard.final-card { box-shadow: inset 0 0 0 1.5px var(--gold); }
.seatcard.final-card .sc-ico { color: var(--on-gold); }

/* ═════════ Выпадающий список сайта: выбранный пункт подсвечен золотом ═════════ */
.fsel { position: relative; flex: 1; min-width: 0; }
.fsel-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.fsel-btn { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--table); color: var(--ink); font: 700 17px/1.2 var(--display); letter-spacing: .03em; cursor: pointer; text-align: left; transition: border-color .2s, box-shadow .2s; }
.fsel-btn:hover { border-color: #737980; }
.fsel-btn:focus-visible, .fsel.open .fsel-btn { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 203, 99, .2); }
.fsel-btn .ico { flex: none; width: 18px; height: 18px; color: var(--ink-2); transition: transform .25s var(--ease); }
.fsel.open .fsel-btn .ico { transform: rotate(180deg); color: var(--gold-ink); }
.fsel-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsel-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: min(340px, 60vh); overflow: auto; border-radius: 14px; background: #1d2023; border: 1px solid var(--line-2); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); outline: none; }
.fsel-list li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--ink-2); font: 700 16px/1.25 var(--display); letter-spacing: .03em; cursor: pointer; }
.fsel-list li .ico { flex: none; width: 16px; height: 16px; opacity: 0; }
.fsel-list li.act { background: rgba(255, 255, 255, .06); color: var(--ink); }
.fsel-list li.on { background: linear-gradient(110deg, #f3c867 0%, #ffe6a3 45%, #e2b04d 100%); color: var(--on-gold); }
.fsel-list li.on .ico { opacity: 1; }
.fsel-list li.on.act { filter: brightness(1.05); }

/* ═════════ Телефон: блоки вместо сплошного потока ═════════ */
.move-note span { flex: 1 1 200px; min-width: 0; }
@media (max-width: 900px) {
  /* «Впервые у нас?» — каждый шаг отдельной карточкой */
  .steps { gap: 12px; }
  .step, .step + .step { padding: 20px 18px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--table); }
  .step h3 { font-size: 22px; }
  .step p { max-width: none; }
}
@media (max-width: 640px) {
  /* Главная: гонка сезона — карточкой, строка сезона — фактами столбиком */
  .season-sec .season-grid { gap: 20px; }
  .season-sec .season-grid > div:first-child { padding: 20px 18px; border-radius: var(--r); background: var(--table-2); border: 1px solid var(--line); }
  .season-sec h2 { font-size: 26px; }
  .season-sec .sec-lead { font-size: 15px; margin-bottom: 14px; }
  .season-line { display: grid; gap: 6px; margin: 0; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 18px; line-height: 1.15; }
  .season-line i { display: none; }
  .season-line span { display: flex; align-items: center; gap: 10px; }
  .season-line span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); flex: none; }
  .season-line span:first-child::before { background: var(--gold); }
  .season-sec .my-race { margin-top: 16px; background: var(--table); }
  .season-sec .season-grid > div:first-child p[style] { margin-top: 14px !important; }

  /* Сыгранный турнир: печать «Сыгран» в правом нижнем углу, а не отдельной строкой */
  .ticket.used .body { position: relative; padding-bottom: 18px; }
  .ticket.used .used-stamp { position: absolute; right: 16px; bottom: 14px; top: auto; margin: 0; padding: 5px 10px 6px; transform: rotate(-6deg); }
  .ticket.used .used-stamp b { font-size: 15px; }
  .ticket.used .win-rest { min-height: 30px; padding-right: 110px; }

  /* Рейтинг: статистика ровной сеткой из четырёх ячеек под ником */
  .race-row, .race.compact .race-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px 12px; padding: 12px 14px; }
  .race-row .pos, .race.compact .race-row .pos { grid-row: 1; font-size: 24px; }
  .race-row .pts, .race.compact .race-row .pts { grid-row: 1; grid-column: 3; font-size: 24px; }
  .race-row .rstats { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .race-row .rstats span { flex-direction: column; gap: 2px; padding: 6px 2px; background: rgba(20, 22, 24, .35); box-shadow: inset 0 0 0 1px var(--line-2); }
  .race-row.me .rstats span { background: rgba(255, 203, 99, .12); box-shadow: inset 0 0 0 1px rgba(255, 203, 99, .45); }
  .race-row .rstats b { font-size: 16px; color: var(--ink); }
  .race-row .rstats small { font-size: 11px; }
  .race-row.free .rstats { display: none; }
  .race-row.free .pts { align-self: center; }

  /* Пьедестал (рейтинг и итоги): место слева, ник переносится, а не обрезается */
  .pod { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "place name pts" "place meta meta" "place gap gap"; align-items: center; gap: 4px 12px; padding: 14px 16px; text-align: left; }
  .pod.p1 { padding: 16px; }
  .pod-place, .pod.p1 .pod-place { grid-area: place; align-self: start; min-width: 0; }
  .pod-name, .pod.p1 .pod-name { grid-area: name; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; font-size: 20px; line-height: 1.05; }
  .pod.p1 .pod-name { font-size: 22px; }
  .pod-pts { grid-area: pts; text-align: right; font-size: 22px; }
  .pod-meta { grid-area: meta; padding-left: 0; }
  .pod-gap { grid-area: gap; justify-self: start; margin: 4px 0 0; }
  .pod .me-tag { position: absolute; top: -9px; right: 14px; }

  /* Итоги турнира: строки — отдельными плашками на панели */
  .results-panel { padding: 18px 14px; }
  .results-panel .stubs { gap: 6px; }
  .results-panel .stubrow { background: var(--table); padding: 10px 14px; }
  .results-panel .stubrow:hover { background: var(--table-3); }

  /* Посадочная карта и карточка финала: иконка сверху, текст во всю ширину */
  .seatcard { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .seatcard .sc-ico { width: 44px; height: 44px; }
  .seatcard .sc-ico .ico { width: 24px; height: 24px; }
  .seatcard .btn { height: auto; min-height: 40px; padding: 8px 12px; white-space: normal; text-align: left; }
}

/* ═════════ Быстрая навигация главной (когда нет верхнего меню) ═════════ */
.quick-nav { display: none; }
@media (max-width: 900px) {
  .quick-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
  .quick-nav a { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 2px 10px; padding: 14px 14px 13px; border-radius: 12px; background: var(--table-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 64px; transition: background .2s, border-color .2s; }
  .quick-nav a:hover, .quick-nav a:active { background: var(--table-3); border-color: var(--line-2); }
  .quick-nav .ico { grid-row: 1 / 3; width: 22px; height: 22px; color: var(--gold-ink); }
  .quick-nav b { font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
  .quick-nav small { font-size: 12.5px; line-height: 1.25; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .club-hero .ch-ticket { margin-top: 4px; }
}

/* ═════════ Рейтинг: метка финалиста ═════════ */
.fin-tag { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 30px; border: 1px solid rgba(255, 203, 99, .5); color: var(--gold-ink); font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.fin-tag .ico { width: 13px; height: 13px; }
.race-row .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.race-row .who a { flex: 0 1 auto; min-width: 0; }

/* ═════════ Турниры: фильтры ═════════ */
.t-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: -6px 0 10px; }
.t-filters .season-pick { margin: 0; flex: 0 1 320px; min-width: 240px; }
.tf-check { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--table-2); color: var(--ink-2); font-weight: 600; font-size: 15px; cursor: pointer; }
.tf-check span { display: inline-flex; align-items: center; gap: 6px; }
.tf-check .ico { width: 17px; height: 17px; color: var(--gold-ink); }
.tf-check:has(input:checked) { border-color: var(--gold); color: var(--ink); }
.tf-count { margin: 0 0 16px; min-height: 1em; color: var(--ink-3); font-size: 14px; }
.tf-toggle { display: none; position: relative; }
.tf-extra { display: contents; }
.tf-dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (max-width: 640px) {
  .t-filters { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 10px; }
  .t-filters .period { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tf-toggle { display: inline-flex; width: 48px; min-height: 48px; padding: 0; }
  .tf-extra { display: none; grid-column: 1 / -1; flex-direction: column; gap: 10px; }
  .tf-extra.open { display: flex; }
  .t-filters .season-pick { min-width: 0; }
  .tf-check { justify-content: flex-start; }

  /* Рейтинг: движение рядом с местом, а не под ним — строка ровная, ник по центру */
  .race-row, .race.compact .race-row { grid-template-columns: minmax(44px, auto) minmax(0, 1fr) auto; align-items: center; }
  .race-row .pos { flex-direction: row; align-items: center; gap: 4px; }
  .race-row .pos .mv { font-size: 11px; }
  .race-row .who { align-self: center; }
  .fin-tag { padding: 2px 6px 2px 5px; font-size: 11px; }
}
@media (max-width: 900px) { .quick-nav small { white-space: normal; text-overflow: clip; } }
@media (max-width: 640px) {
  /* метка финалиста на телефоне — только значок места, чтобы не съедать ник */
  .fin-tag { width: 24px; height: 24px; padding: 0; justify-content: center; border-radius: 50%; }
  .fin-tag span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fin-tag .ico { width: 14px; height: 14px; }
}

/* ═════════ Достижения: редкость и объёмные значки ═════════ */
.rar-common { --rar: #b9c2cb; } .rar-rare { --rar: #5aa2f5; } .rar-epic { --rar: #ad7bff; } .rar-legendary { --rar: #ffcb63; } .rar-mythic { --rar: #ff5a7a; }
.ach-art { display: block; overflow: visible; }
.medals { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.medal { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 14px 16px 14px 12px; border-color: color-mix(in srgb, var(--rar, var(--line)) 32%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--rar, transparent) 9%, transparent), transparent 55%), var(--table-2); }
.medal .m-art { display: grid; place-items: center; transition: transform .35s var(--ease); }
.medal:hover .m-art { transform: translateY(-2px) scale(1.04); }
.medal .m-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.medal .m-body b { font: 800 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.rar-badge { display: inline-flex; padding: 3px 8px; border-radius: 30px; font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--rar); border: 1px solid color-mix(in srgb, var(--rar) 55%, transparent); background: color-mix(in srgb, var(--rar) 10%, transparent); }
.medal.locked { background: transparent; border-style: dashed; border-color: var(--line); }
.medal.locked .m-art { filter: grayscale(1) brightness(.75); opacity: .45; }
.medal.locked .rar-badge { opacity: .7; }
.medal.locked .m-body b { color: var(--ink-2); }
.ach-group + .ach-group { margin-top: 34px; }
.ach-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--rar); font-size: 24px; }
.ach-h span { font: 800 14px/1 var(--display); color: var(--ink-3); padding: 4px 9px; border-radius: 30px; border: 1px solid var(--line); }
@media (max-width: 640px) { .medals { grid-template-columns: minmax(0, 1fr); } .medal { grid-template-columns: 64px minmax(0, 1fr); } .medal .ach-art { width: 64px; height: 64px; } }
@media (prefers-reduced-motion: reduce) { .medal .m-art { transition: none; } }

/* Бесплатный вход — заметно на билете и в карточке турнира */
.free-entry { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 30px; color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.free-entry .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.facts .fact-free b { color: var(--ok); }

/* Число баунти при вылете */
.bounty-pick { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; gap: 10px; align-items: center; margin: 14px 0 12px; }
.bounty-pick .btn { width: 64px; height: 64px; border-radius: 14px; }
.bounty-pick .btn .ico { width: 26px; height: 26px; }
.bounty-pick input { height: 64px; text-align: center; font: 900 40px/1 var(--display); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.bounty-pick input::-webkit-inner-spin-button, .bounty-pick input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bp-quick { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.bp-quick .btn { padding: 0; min-height: 44px; font: 800 18px/1 var(--display); }
.bp-quick .btn.on { background: var(--stock); border-color: var(--ink); color: var(--ink); }
@media (max-width: 420px) { .bp-quick { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.ach-pick { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
@media (max-width: 640px) { .ach-pick { flex-direction: column; align-items: stretch; } .ach-pick #a-prev { align-self: center; } }

/* ═════════ Пульт: строки игроков по столам, выбывшие, экран зала ═════════ */
.pl-row .pl-steps { display: contents; }
.pl-table { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 8px; font-size: 20px; }
.pl-table:first-child { margin-top: 0; }
.pl-table span { font: 600 13px/1 var(--text); color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.out-list { display: grid; gap: 6px; }
.out-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px 8px 14px; border-radius: 10px; background: var(--table); border: 1px solid var(--line); }
.out-row > b { font: 800 22px/1 var(--display); color: var(--ink-2); }
.out-row .nm { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out-row .nm small { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font-weight: 500; font-size: 13px; }
.out-row .nm small .ico { width: 14px; height: 14px; }
.out-row .acts { display: flex; gap: 6px; }
.disp-details > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.disp-details > summary::-webkit-details-marker { display: none; }
.disp-details > summary h2 { margin: 0; }
.disp-details > summary > .ico { margin-left: auto; color: var(--ink-2); transition: transform .25s var(--ease); }
.disp-details[open] > summary { margin-bottom: 16px; }
.disp-details[open] > summary > .ico { transform: rotate(180deg); }
.disp-details #dispset { padding: 0; }
.live-mini { display: none; }

/* ═════════ Админка на телефоне ═════════ */
@media (max-width: 640px) {
  /* порядок: часы → панель управления → игроки → завершить → экран зала */
  .live-wrap { display: flex; flex-direction: column; }
  .live-wrap .console { display: contents; }
  .live-wrap .clockface { order: 1; margin-bottom: 16px; }
  .live-wrap .live-stats-card { order: 2; }
  .live-wrap .live-players { order: 3; }
  .live-wrap .live-finish { order: 4; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .live-wrap .live-finish .btn { width: 100%; justify-content: center; min-height: 56px; }
  .live-wrap .disp-details { order: 5; }
  .livestats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .console .nudges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .console .nudges .ghost { grid-column: 1 / -1; }
  .console .btn.sm, .live-stats-card .btn.sm, .set-time .btn { min-height: 48px; }

  /* шапка «Игроков» — два равных действия */
  .live-players .card-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .live-players .lp-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .live-players .lp-acts .btn { min-height: 48px; justify-content: center; }

  /* строка игрока: место · ник · «Выбыл», ниже два ровных степпера */
  .pl-row { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 10px 12px; padding: 12px; border-radius: 12px; }
  .pl-row .seatno { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--stock); color: var(--ink); font-size: 17px; }
  .pl-row .nm { grid-column: 2; grid-row: 1; font-size: 17px; }
  .pl-row .nm small { display: block; margin: 2px 0 0; font-size: 13px; }
  .pl-row .bust { grid-column: 3; grid-row: 1; min-height: 48px; padding: 0 16px; font-size: 15px; }
  .pl-row .pl-steps { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pl-row .stepper { grid-column: auto; display: grid; grid-template-columns: auto 44px minmax(24px, 1fr) 44px; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 10px; background: var(--table); }
  .pl-row .stepper small { font: 700 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
  .pl-row .stepper .btn { width: 44px; height: 44px; min-height: 44px; }
  .pl-row .stepper b { text-align: center; font-size: 22px; min-width: 0; }
  .out-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .out-row .btn { min-height: 44px; }

  /* вкладки — лента без переноса */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a, .tabs button { flex: none; scroll-snap-align: start; padding: 12px 12px; font-size: 16px; }

  /* поля турнира парами */
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
}
.disp-details #dispset > .card-head h2 { display: none; }
/* Админка на телефоне: цели нажатия не меньше 44px */
@media (max-width: 640px) {
  .admin-main .btn.sm, .admin-main .btn.xs { min-height: 44px; }
  .admin-main .btn.xs.icon-only, .admin-main .btn.sm.icon-only { min-width: 44px; }
  .admin-main .inline-input { min-height: 44px; }
}
@media (max-width: 640px) {
  /* степпер: подпись сверху, кнопки и число — во всю ширину половины строки */
  .pl-row .stepper { grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-rows: auto 44px; gap: 4px; padding: 6px; }
  .pl-row .stepper small { grid-column: 1 / -1; text-align: center; }
}

/* iPhone (Safari): поля даты и времени не сжимаются по колонке и наезжают на соседние — ограничиваем */
.grid > *, .field { min-width: 0; }
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] {
  display: block; min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; text-align: left;
}
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }

/* ═════════ Админка: помощь ═════════ */
.help-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 20px; }
.help-links a { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--table-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 64px; }
.help-links a:hover { border-color: var(--line-2); background: var(--table-3); }
.help-links a > .ico { grid-row: 1 / 3; width: 24px; height: 24px; color: var(--gold-ink); }
.help-links b { display: flex; align-items: center; gap: 6px; font: 800 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.help-links b .ico { width: 14px; height: 14px; color: var(--ink-3); }
.help-links small { color: var(--ink-2); font-size: 13px; line-height: 1.3; }
.help-search { margin-bottom: 18px; }
.help-search input { min-height: 52px; font-size: 16px; }
.help-group { margin-bottom: 26px; }
.help-group h2 { font-size: 24px; margin: 0 0 10px; }
.help-q { border: 1px solid var(--line); border-radius: 12px; background: var(--table-2); margin-bottom: 8px; }
.help-q[open] { border-color: var(--line-2); }
.help-q > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; }
.help-q > summary::-webkit-details-marker { display: none; }
.help-q > summary .ico { flex: none; color: var(--ink-3); transition: transform .25s var(--ease); }
.help-q[open] > summary .ico { transform: rotate(180deg); }
.help-a { padding: 0 16px 16px; }
.help-a ol { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); line-height: 1.5; }
.help-a ol li::marker { font: 800 16px var(--display); color: var(--gold-ink); }
.help-a a { font-weight: 600; }
.help-tip { display: flex; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--table); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.help-tip .ico { flex: none; width: 18px; height: 18px; color: var(--ice-ink); margin-top: 1px; }
.help-shot { margin: 0; max-width: 420px; }
.help-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-2); cursor: zoom-in; }
.help-shot figcaption { margin-top: 6px; color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 640px) { .help-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } .help-links a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 4px; } .help-links a > .ico { grid-row: auto; } .help-links b { font-size: 16px; } }

/* ═════════ Касса: нал / безнал, кальяны и доп. фишки ═════════ */
.pay-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.pay-strip > div { background: var(--table); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; min-width: 0; }
.pay-strip span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.pay-strip span .ico { width: 16px; height: 16px; }
.pay-strip b { display: block; margin-top: 4px; font-size: 24px; }
.pay-strip small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.pay-seg { display: inline-flex; background: var(--table); border: 1px solid var(--line); border-radius: 9px; padding: 2px; gap: 2px; }
.pay-seg button { border: 0; background: none; color: var(--ink-2); font: 700 13px/1 var(--text); padding: 7px 10px; border-radius: 7px; cursor: pointer; min-height: 32px; white-space: nowrap; }
.pay-seg button.on { background: var(--stock-3); color: var(--ink); }
.pay-seg button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.pay-split { margin-top: 4px; }
.pay-tag { display: block; font: 600 11px/1.2 var(--text) !important; color: var(--ice-ink, var(--ink-3)) !important; letter-spacing: .04em; text-transform: uppercase; }
.seg.seg4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg.seg4 label { padding: 12px 6px; font-size: 15px; }
.extras-bar { margin: -4px 0 16px; }
.extras-bar .ex-btns { gap: 8px; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ex-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--table); border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 12px; font-size: 13px; color: var(--ink-2); }
.ex-chip b { color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.ex-chip small { color: var(--ink-3); }
.ex-chip .btn { min-height: 28px; width: 28px; padding: 0; }
@media (max-width: 720px) {
  .pay-strip { grid-template-columns: 1fr 1fr; }
  .pay-strip > div:last-child { grid-column: 1 / -1; }
  .pay-strip b { font-size: 20px; }
  .seg.seg4 { grid-template-columns: 1fr 1fr; }
  .extras-bar .ex-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extras-bar .ex-btn { min-width: 0; padding-inline: 8px; white-space: normal; line-height: 1.15; }
  .extras-bar .ex-btns .btn { justify-content: center; }
}
.pay-m { display: none; margin-top: 8px; }
@media (max-width: 720px) {
  .pay-d { display: none; }
  .pay-m { display: block; }
}

/* ═════════ Пульт v3: две колонки на планшете и ноутбуке, строка игрока как у дилера ═════════ */
/* тост с действиями («Отменить», «Безнал») */
.toast.has-acts { align-items: center; flex-wrap: wrap; }
.toast.has-acts > span:not(.toast-acts) { flex: 1; min-width: 0; }
.toast-acts { display: flex; gap: 6px; margin-left: auto; }
.toast-acts button { border: 0; border-radius: 9px; background: var(--table); color: var(--ink); font: 700 14px/1 var(--text); padding: 0 14px; min-height: 40px; cursor: pointer; }
.toast-acts button:hover { background: var(--table-3); }
.toast-acts button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* меню «⋯» в шапке пульта — туда убрана «Остановить без итогов» */
.more-menu { position: relative; }
.more-menu > summary { list-style: none; cursor: pointer; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(290px, 80vw); display: grid; gap: 8px; padding: 14px; background: var(--table-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7); }
.more-pop p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.more-pop .btn { justify-content: center; }

/* мини-часы: поверх списка, когда большие часы ушли с экрана; страница не прыгает */
.live-mini, .live-mini.show { display: block; position: sticky; top: 12px; z-index: 40; height: 0; margin: 0; padding: 0; border: 0; background: none; }
.live-mini:not(.show) .lm-box { opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; }
.lm-box { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--table-2); border: 1px solid var(--line); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .8); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.live-mini.run .lm-box { background: #16292b; border-color: rgba(148, 221, 226, .3); }
.live-mini.brk .lm-box { background: #221d33; border-color: rgba(185, 165, 251, .3); }
.lm-box .lm-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; min-width: 0; }
.lm-box #lm-lvl, .lm-box #lm-left { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-box #lm-clock { grid-row: 1 / 3; grid-column: 2; font: 800 30px/1 var(--display); color: var(--ink-2); }
.live-mini.run #lm-clock { color: var(--ice-ink); }
.live-mini.brk #lm-clock { color: var(--violet); }
.lm-box .btn { width: 56px; height: 56px; padding: 0; border-radius: 12px; }
.lm-box .btn .ico { width: 24px; height: 24px; }
@media (max-width: 1000px) { .live-mini, .live-mini.show { top: 62px; } }

/* общие блоки пульта */
.live-side .card, .live-players, .live-finish { margin: 0; }
.live-finish .btn { width: 100%; justify-content: center; min-height: 56px; }
.livestats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.livestats .stat b small { font-size: .62em; color: var(--ink-3); font-weight: 700; }
.livestats .stat span { overflow-wrap: anywhere; }
.fine-time, .pause-msg { margin-top: 12px; text-align: left; }
.fine-time > summary, .pause-msg > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; color: var(--ink-2); font-weight: 600; font-size: 14px; border-radius: 8px; }
.fine-time > summary::-webkit-details-marker, .pause-msg > summary::-webkit-details-marker { display: none; }
.fine-time > summary:focus-visible, .pause-msg > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fine-time > summary .ico, .pause-msg > summary .ico { flex: none; color: var(--ink-3); transition: transform .25s var(--ease); }
.fine-time[open] > summary .ico, .pause-msg[open] > summary .ico { transform: rotate(180deg); }
.fine-time { border-top: 1px solid var(--line); padding-top: 6px; }
.fine-time .set-time { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.pause-msg { border-top: 1px solid var(--line); padding-top: 6px; }
.pause-msg summary small { display: block; margin-top: 2px; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.pause-msg .row { margin-top: 8px; }
.pause-msg .pause-reasons { margin-top: 10px; }

/* шапка списка игроков: заголовок · действия, ниже поиск */
.lp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 12px; }
.lp-head h2 { margin: 0; font-size: 26px; }
.lp-head h2 span { color: var(--ink-3); }
.lp-head .lp-acts { gap: 8px; }
.lp-search { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; background: var(--table); border: 1px solid var(--line); border-radius: 12px; cursor: text; }
.lp-search:focus-within { border-color: var(--gold); }
.lp-search .ico { color: var(--ink-3); flex: none; }
.lp-search input { flex: 1; min-width: 0; min-height: 46px; padding: 0; border: 0; background: none; box-shadow: none; outline: none; }
.lp-search kbd { font: 600 12px/1 var(--text); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 7px; }
@media (pointer: coarse) { .lp-search kbd { display: none; } }
.extras-bar { margin: 0 0 14px; }
.extras-bar .ex-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-chip b { color: var(--ink); }
.ex-chip .btn { width: 36px; min-height: 36px; }
.ex-hint { margin: -8px 0 14px; font-size: 14px; }

/* строка игрока: место · ник со счётчиками · «+ Ребай» · «Выбыл» */
.players-live { display: grid; gap: 18px; }
.players-live .pl-group { display: grid; gap: 6px; }
.players-live .pl-group .pl-table { margin: 0 0 2px; }
.players-live .pl-row { grid-template-columns: 56px minmax(0, 1fr) auto auto; grid-template-rows: auto; gap: 10px; align-items: center; min-height: 64px; padding: 8px; border-radius: 12px; background: var(--table-3); }
.players-live .pl-row .seatno { display: grid; place-items: center; align-content: center; gap: 2px; width: 56px; height: 48px; padding: 0; border: 0; border-radius: 10px; background: var(--stock); color: var(--ink); font: 800 18px/1 var(--display); font-variant-numeric: tabular-nums; cursor: pointer; grid-column: auto; grid-row: auto; }
.players-live .pl-row .seatno:hover { background: var(--stock-2); }
.players-live .pl-row .seatno.none { background: none; border: 1.5px dashed var(--line-2); color: var(--ink-3); }
.players-live .pl-row .seatno.none .ico { width: 16px; height: 16px; }
.players-live .pl-row .seatno.none small { font: 600 11px/1 var(--text); }
.players-live .pl-row .nm { grid-column: auto; grid-row: auto; display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 48px; padding: 0 4px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-align: left; font: 600 17px/1.2 var(--text); cursor: pointer; }
.players-live .pl-row .nm > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.players-live .pl-row .nm small { display: flex; align-items: center; gap: 3px; margin: 3px 0 0; font-size: 13px; font-weight: 500; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.players-live .pl-row .nm small .ico { width: 13px; height: 13px; flex: none; }
.players-live .pl-row .nm:hover > span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.players-live .pl-row .seatno:focus-visible, .players-live .pl-row .nm:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.players-live .pl-row .rb, .players-live .pl-row .bust { grid-column: auto; grid-row: auto; min-height: 48px; padding: 0 16px; font-size: 15px; }
.players-live .pl-row .rb .ico { width: 18px; height: 18px; }
.not-yet .pl-table span { color: var(--ink-3); }
.pl-group + .pl-group { margin-top: 18px; }

/* пересадка на пульте: сетка боксов */
.rs-tables { display: grid; gap: 16px; max-height: 56vh; overflow: auto; margin-top: 4px; padding: 2px; }
.rs-tables h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.rs-tables h3 span { font: 500 13px/1 var(--text); color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.rs-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.rs-box { display: grid; justify-items: start; align-content: center; gap: 3px; min-width: 0; min-height: 58px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--table); color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; }
.rs-box b { font: 800 18px/1 var(--display); color: var(--ink); }
.rs-box small { max-width: 100%; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-box.free { border: 1.5px dashed rgba(148, 221, 226, .5); color: var(--ice-ink); }
.rs-box.free:hover { background: #16292b; }
.rs-box.busy:hover { border-color: var(--line-2); background: var(--table-3); }
.rs-box.mine { background: var(--stock); border-color: var(--ink-3); cursor: default; }
.rs-box:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* раскладка: две колонки — слева закреплённые часы, справа игроки */
@media (min-width: 760px) and (max-width: 1000px), (min-width: 1180px) {
  .live-wrap { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
  .live-side { position: sticky; top: 16px; display: grid; gap: 12px; max-height: calc(100vh - 32px); overflow: auto; scrollbar-width: thin; padding-bottom: 2px; }
  .live-side .clockface { padding: 20px 16px 16px; }
  .live-side .big-clock { font-size: clamp(68px, 7.4vw, 108px); }
  .live-side .blinds { font-size: clamp(26px, 2.6vw, 34px); }
  .live-side .transport { gap: 8px; }
  .live-side .transport .btn { padding-inline: 12px; }
  .live-side .nudges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .live-side .nudges .btn { min-height: 44px; justify-content: center; padding-inline: 6px; }
  .live-wrap .disp-details { grid-column: 1 / -1; margin: 0; }
  .live-mini { display: none !important; }
}
@media (min-width: 760px) and (max-width: 1000px) { .live-side { top: 70px; max-height: calc(100vh - 86px); } }
/* одна колонка (телефон, планшет вертикально, ноутбук 1001–1179): часы → панель управления (ребаи, аддоны, фишки, сводка) → игроки → завершить → экран зала */
@media (max-width: 759px), (min-width: 1001px) and (max-width: 1179px) {
  .live-wrap { display: flex; flex-direction: column; gap: 16px; }
  .live-side { display: contents; }
  .live-wrap .clockface { order: 1; margin: 0; }
  .live-wrap .live-stats-card { order: 2; }
  .live-wrap .live-players { order: 3; }
  .live-wrap .live-finish { order: 4; }
  .live-wrap .disp-details { order: 5; margin: 0; }
}
@media (max-width: 640px) {
  .livestats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-head { grid-template-columns: minmax(0, 1fr); }
  .lp-head .lp-acts { display: grid; grid-template-columns: 1fr 1fr; }
  .lp-head .lp-acts .btn { min-height: 48px; justify-content: center; }
  .extras-bar .ex-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extras-bar .ex-btns .ex-btn:nth-child(3) { grid-column: 1 / -1; }
  .players-live .pl-row { grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 8px; padding: 8px; }
  .players-live .pl-row .seatno { width: 48px; }
  .players-live .pl-row .nm { font-size: 16px; }
  .players-live .pl-row .rb, .players-live .pl-row .bust { padding: 0 12px; }
  .bust-acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bust-acts .btn { justify-content: center; min-height: 56px; }
  .out-row .acts .btn { min-width: 48px; justify-content: center; }
}
@media (max-width: 380px) { .players-live .pl-row .rb span { display: none; } .players-live .pl-row .rb { padding: 0 14px; } }

/* список турниров: идущий — плашкой сверху, статус виден и на телефоне */
.live-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--r); background: #16292b; border: 1px solid rgba(148, 221, 226, .35); color: var(--ink); text-decoration: none; }
.live-banner:hover { border-color: rgba(148, 221, 226, .65); }
.live-banner:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lb-t { min-width: 0; }
.lb-t small { display: block; color: var(--ice-ink); font: 700 13px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.lb-t b { display: block; font: 800 24px/1.1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.ts-m { display: none; }
@media (max-width: 800px) { .ts-m { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; } }
@media (max-width: 640px) { .live-banner { grid-template-columns: auto minmax(0, 1fr); } .live-banner .btn { grid-column: 1 / -1; justify-content: center; min-height: 48px; } }

/* меню группами */
.side .side-h { display: block; padding: 16px 12px 6px; font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.side .brand + .side-h { padding-top: 2px; }

/* сводка: отмеченный «Пришёл» — спокойным картоном, не золотом */
.btn.arr-on { background: var(--stock); border-color: var(--line-2); color: var(--ink); }
.btn.arr-on .ico { color: var(--ice-ink); }

/* итоги: турнир идёт / турнир сыгран */
.live-note { margin-bottom: 16px; border-color: rgba(148, 221, 226, .35); }
.live-note .ico { color: var(--ice-ink); }
.done-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; margin-bottom: 16px; padding: 22px; border-radius: var(--r); background: var(--stock) var(--grain); background-blend-mode: soft-light; }
.done-card h2 { margin: 0 0 6px; font-size: 30px; text-transform: uppercase; }
.done-card p { margin: 0 0 14px; color: var(--ink-2); }
.done-card p b { color: var(--ink); }
.done-stamp { display: grid; justify-items: center; gap: 3px; padding: 10px 16px; border: 2.5px solid var(--gold); border-radius: 8px; color: var(--gold-ink); text-transform: uppercase; transform: rotate(-6deg); animation: stamp-in .5s var(--ease) both; }
.done-stamp b { font: 900 26px/1 var(--display); letter-spacing: .16em; }
.done-stamp small { font: 700 12px/1 var(--display); letter-spacing: .08em; }
@keyframes stamp-in { from { opacity: 0; transform: rotate(-6deg) scale(1.6); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .done-stamp { animation: none; } }
@media (max-width: 640px) { .done-card { grid-template-columns: minmax(0, 1fr); gap: 14px; } .done-stamp { justify-self: start; } }

/* рассадка: заголовки по порядку, пустые столы свёрнуты */
.seat-h { margin: 0 0 12px; font-size: 22px; }
.seat-table header h2, .seat-table > summary h2 { margin: 0; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
details.seat-table.empty > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; min-height: 44px; }
details.seat-table.empty > summary::-webkit-details-marker { display: none; }
details.seat-table.empty > summary .ico { margin-left: auto; align-self: center; color: var(--ink-3); transition: transform .25s var(--ease); }
details.seat-table.empty[open] > summary { margin-bottom: 12px; }
details.seat-table.empty[open] > summary .ico { transform: rotate(180deg); }
details.seat-table.empty:not([open]) { background: var(--table); }
.dl-sec h2 { margin-bottom: 10px; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

/* касса и состав на телефоне — карточками, без прокрутки вбок */
.pay-brk { display: none; }
@media (max-width: 640px) {
  .m-hide { display: none; }
  .pay-brk { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
  .pay-seg { display: flex; width: 100%; }
  .pay-seg button { flex: 1; min-height: 44px; padding: 0 10px; font-size: 14px; }
  .roster-table thead { display: none; }
  .roster-table, .roster-table tbody { display: block; }
  .roster-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-bottom: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--table); }
  .roster-table td { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0; border: 0; }
  .roster-table td[data-label]::before { content: attr(data-label); font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
  .roster-table td:first-child { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 8px; font-size: 17px; font-weight: 600; }
  .roster-table td:last-child { grid-column: 1 / -1; align-items: stretch; }
  .roster-table td:last-child .btn { justify-content: center; }
  .roster-table td select, .roster-table td .inline-input { width: 100% !important; }
  .roster-table td.r-arr input { width: 28px; height: 28px; }
  .roster-table td[colspan] { grid-column: 1 / -1; }
  /* цели нажатия */
  .admin-top .btn.sm { min-height: 44px; }
  .admin-top > a[aria-label] { display: grid; place-items: center; min-height: 44px; min-width: 60px; }
  .admin-main .back { min-height: 44px; }
  .tabs a { min-height: 46px; display: inline-flex; align-items: center; }
  .cash-table td:first-child > a, .roster-table td:first-child > a { display: inline-flex; align-items: center; min-height: 40px; }
  .admin-main input[type="checkbox"] { width: 24px; height: 24px; }
  #out.btn.sm { min-height: 44px; }
}
/* длинные формы в окне: кнопки сохранения не уезжают за край */
.modal form .modal-actions.form-actions { position: sticky; bottom: 0; z-index: 2; margin-bottom: -8px; padding: 18px 0 10px; background: linear-gradient(180deg, transparent, var(--table-2) 34%); }
/* колонка часов: ничего не вылезает; уровни — иконками, «Старт» шире */
.live-side, .live-side > * { min-width: 0; }
.transport .btn span { white-space: nowrap; }
@media (min-width: 760px) and (max-width: 1000px), (min-width: 1180px) {
  .live-wrap { grid-template-columns: minmax(290px, 360px) minmax(0, 1fr); }
  .live-side .transport { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; }
  .live-side .transport .btn { justify-content: center; padding: 0; }
  .live-side .transport .btn:not(#toggle) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* узкий список (телефон, планшет в две колонки): «+ Ребай» — плюс с подписью, больше места нику */
.live-players { container-type: inline-size; }
@container (max-width: 560px) {
  .players-live .pl-row .rb { flex-direction: column; justify-content: center; gap: 1px; width: 60px; padding: 0; font-size: 12px; line-height: 1; }
  .players-live .pl-row .rb .ico { width: 18px; height: 18px; }
  .players-live .pl-row .bust { padding: 0 12px; }
}
@media (max-width: 640px) { .toast.has-acts .toast-acts { flex-basis: 100%; justify-content: flex-end; } .toast-acts button { min-height: 44px; } }
@media (max-width: 640px) { .res-table tr { grid-template-columns: repeat(3, minmax(0, 1fr)); } .res-table td:last-child { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: baseline; text-align: left; } }

/* ── Пометки вечера на билете: бесплатный вход до N:NN, бесплатный ребай для девушек ── */
.perks { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.perk { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 30px; font-size: 13px; font-weight: 600; color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.perk .ico { width: 14px; height: 14px; stroke-width: 2.4; flex: none; }

/* ── Финалы сезонов ── */
.fin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.fin-card { background: var(--stock); border: 1.5px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: var(--r); padding: 16px 18px 14px; display: grid; gap: 12px; }
.fin-head { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: end; text-decoration: none; color: var(--ink); }
.fin-head .final-ribbon { grid-column: 1 / -1; justify-self: start; }
.fin-head > div { display: grid; gap: 2px; }
.fin-name { font: 800 24px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.fin-head .link-arrow { color: var(--gold-ink); font-weight: 600; font-size: 14px; white-space: nowrap; }
.fin-podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.fin-podium li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 4px 0; }
.fin-podium .pl { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 var(--display); background: var(--table-3); color: var(--ink-2); }
.fin-podium .p1 .pl { background: var(--gold); color: var(--on-gold); }
.fin-podium li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.fin-podium li a:hover { color: var(--gold-ink); }
.fin-podium .pts { font: 700 18px/1 var(--display); color: var(--ink); }
.fin-podium .pts small { font: 500 12px var(--text); color: var(--ink-2); margin-left: 4px; }

/* ── Бонусы игрока в кабинете: бесплатный ребай / аддон ── */
.vouchers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.voucher { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--stock); border: 1.5px dashed color-mix(in srgb, var(--gold) 60%, transparent); }
.voucher .v-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-ink); }
.voucher b { display: block; font: 800 20px/1.1 var(--display); text-transform: uppercase; }
.voucher .muted { font-size: 14px; }

/* ── Бесплатные вход / ребаи / аддоны, безнал по пунктам, бонусы игрока (админка) ── */
.free-tag { display: inline-block; padding: 0 6px; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); }
.fe-btn { margin-top: 6px; }
.fe-btn.on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.stepper output { min-width: 28px; text-align: center; font: 800 19px/1 var(--display); font-variant-numeric: tabular-nums; }
.stepper-f .stepper { gap: 8px; }
.dl-free { gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.dl-free .btn.on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.gold-btn { color: var(--gold-ink); border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.v-list { display: grid; gap: 6px; }
.v-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); background: var(--table-3); border: 1px dashed color-mix(in srgb, var(--gold) 55%, transparent); }
.v-row.used { border-style: solid; border-color: var(--line); opacity: .8; }
.v-row .v-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 15%, transparent); color: var(--gold-ink); }
.v-row b { display: block; }
.v-row small { display: block; font-size: 13px; }
.v-used { margin-top: 10px; }
.v-used summary { cursor: pointer; }
.v-used .v-row { margin-top: 6px; }

/* ── Пульт: вкладки «Игроки · Фишки и история · Экран зала» ── */
.ltabs { display: flex; gap: 4px; flex-wrap: wrap; margin: -4px 0 16px; padding: 4px; border-radius: 12px; background: var(--table); border: 1px solid var(--line); }
.ltabs button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: 700 15px var(--text); cursor: pointer; }
.ltabs button .ico { width: 17px; height: 17px; }
.ltabs button:hover { color: var(--ink); }
.ltabs button[aria-selected=true] { background: var(--stock); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.ltabs #lp-count { color: var(--ink-3); font-weight: 600; }
/* выбор оплаты ребая: одно нажатие */
.pay-choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.pay-choose .btn { flex-direction: column; gap: 4px; min-height: 92px; border-radius: 14px; font-size: 18px; }
.pay-choose .btn small { font: 500 13px var(--text); color: var(--ink-2); }
.pay-choose .btn .ico { width: 22px; height: 22px; }
/* вкладка фишек и история вечера */
.chip-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-bottom: 12px; }
.chip-acts .btn { min-height: 52px; justify-content: center; }
.hist-h { margin: 6px 0 10px; }
.hist { display: grid; gap: 4px; }
.hist-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--table-3); }
.hist-row.undone { opacity: .5; }
.hist-row.undone .h-w b { text-decoration: line-through; }
.hist-row .h-t { color: var(--ink-3); font-size: 13px; }
.hist-row .h-w { min-width: 0; overflow-wrap: anywhere; }
.hist-row .h-c { font: 700 16px/1 var(--display); color: var(--ok); }
.hist-row .h-m { font-size: 14px; white-space: nowrap; }
@media (max-width: 640px) { .hist-row { grid-template-columns: 40px minmax(0, 1fr) auto; } .hist-row .h-m { grid-column: 2; } .hist-row .h-a { grid-column: 3; grid-row: 1 / 3; } }
/* окно «Бонусные фишки» */
.bn-pick { display: grid; gap: 6px; }
.bn-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 60px; margin: 0; padding: 10px 16px; border-radius: 12px; background: var(--table-3); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, background-color .15s; }
.bn-opt:hover { border-color: var(--line-2); }
.bn-opt:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 9%, var(--table-3)); }
.bn-opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.bn-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold); }
.bn-opt .bn-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bn-opt .bn-t b { font-size: 16px; line-height: 1.2; }
.bn-opt .bn-t small { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.bn-opt .bn-price { font: 800 18px/1 var(--display); letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bn-opt .bn-price.free { font: 600 14px/1 var(--text); color: var(--ink-3); }
/* «Клуб»: причины бонусных фишек */
.bonus-ed { display: grid; gap: 8px; margin-bottom: 18px; justify-items: start; }
.bonus-row { display: grid; grid-template-columns: minmax(160px, 1fr) 160px 170px auto; gap: 8px; align-items: center; width: 100%; }
.bn-num { display: flex; align-items: center; gap: 6px; margin: 0; }
.bn-num input { width: 100%; }
.bn-num span { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 640px) { .bonus-row { grid-template-columns: 1fr 1fr auto; } .bonus-row > input { grid-column: 1 / -1; } }
.t-act .btn.ghost { border-color: var(--line-2); }
.me-regs { padding-top: 4px; }

/* пульт: спокойное завершение, вкладки в строку, предупреждение о рассадке */
.live-finish .finish-btn { background: var(--table-2); border-color: var(--line-2); color: var(--ink); }
.live-finish .finish-btn:hover { border-color: var(--gold); background: var(--table-3); }
.live-finish .finish-btn .ico { color: var(--gold-ink); }
.live-finish p { margin: 8px 2px 0; text-align: center; }
.ltabs { flex-wrap: nowrap; }
.ltabs button { min-width: 0; white-space: nowrap; }
.seat-warn { align-items: center; margin: 0 0 14px; border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.seat-warn > div { flex: 1; }
@media (max-width: 520px) { .seat-warn { flex-wrap: wrap; } .seat-warn .btn { width: 100%; } }
/* имя игрока на пульте — целиком, до двух строк */
.players-live .pl-row .nm > span { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
.players-live .pl-row .nm small { white-space: normal; flex-wrap: wrap; line-height: 1.25; }

/* «Состав» на телефоне: компактная карточка — ник и убрать, статус и место, четыре счётчика в ряд */
@media (max-width: 720px) {
  .roster-main tr { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 8px; padding: 12px; }
  .roster-main td:first-child { grid-column: 1 / 4; order: 1; align-self: center; }
  .roster-main td.r-del { grid-column: 4; order: 2; align-items: flex-end; justify-content: center; }
  .roster-main td.r-del .btn { width: 44px; min-height: 44px; padding: 0; }
  .roster-main td.r-st { grid-column: span 2; order: 3; }
  .roster-main td.r-seat { grid-column: span 2; order: 4; }
  .roster-main td.r-arr { order: 5; align-items: flex-start; }
  .roster-main td.r-num { order: 6; }
  .roster-main td.r-team { grid-column: 1 / -1; order: 7; }
  .roster-main td.r-num .inline-input { min-height: 44px; padding-inline: 8px; text-align: center; }
  .roster-main td[data-label]::before { font-size: 11px; letter-spacing: .05em; }
  .roster-main td.r-seat .seat-link { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Сводка: незакрытые турниры, пришедшие свёрнуты */
.stale-card { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.stale-card h2 { display: flex; align-items: center; gap: 10px; }
.stale-card h2 .ico { color: var(--gold-ink); }
.stale-card .acts { display: flex; gap: 8px; }
.arr-came { margin-top: 12px; }
.arr-came summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--ink-2); font-weight: 600; }
.arr-came summary::-webkit-details-marker { display: none; }
.arr-came summary .ico:first-child { color: var(--ok); }
.arr-came summary .ico:last-child { margin-left: auto; transition: transform .2s var(--ease); }
.arr-came[open] summary .ico:last-child { transform: rotate(180deg); }
.arr-came .arrivals { margin-top: 8px; }

/* Турниры в админке: фильтр и поиск по прошедшим */
.t-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -4px 0 14px; }
.t-tools .lp-search { flex: 1 1 240px; }
@media (max-width: 640px) { .t-tools .period { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } }

.show-sm { display: none; }
@media (max-width: 520px) {
  .show-sm { display: inline; }
  .extras-bar .ex-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .extras-bar .ex-btns .ex-btn:nth-child(3) { grid-column: auto; }
  .extras-bar .ex-btn { padding-inline: 6px; gap: 4px; }
  .seat-warn > .ico { display: none; }
  .seat-warn { padding: 14px; }
}

/* пульт: какие дилеры вернулись за столы после перерыва */
.ready-box { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; margin-top: 10px; }
.ready-box:empty { display: none; }
.rb-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 20px; border: 1px dashed var(--line-2); color: var(--ink-3); font: 700 13px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.rb-chip.on { border: 1px solid var(--ok); color: var(--ok); }
.rb-chip .ico { width: 13px; height: 13px; stroke-width: 2.6; }

/* ═════════ Экран дилера v2: быстрые кнопки, сигнал перерыва, горизонтальный телефон ═════════ */
.dl-top .dl-snd { gap: 6px; }
.dl-top .dl-snd .ico { width: 18px; height: 18px; }
.dl-top .dl-snd.warn { border-color: var(--gold); color: var(--gold-ink); animation: pulse 1.8s ease-in-out infinite; }
.dl-top .dl-snd[aria-pressed='false'] { color: var(--ink-3); }
.dl-tb { position: relative; }
.dl-tb i { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 10px; background: var(--ok); color: #0f2a14; font: 800 10px/1 var(--display); font-style: normal; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.dl-tb i .ico { width: 10px; height: 10px; stroke-width: 3; }
.dl-tb i[hidden] { display: none; }
.dl-warn { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 2px -16px -10px; padding: 9px 16px; background: #2a2340; border-top: 1px solid rgba(185, 165, 251, .4); color: var(--ink); font-weight: 600; }
.dl-warn[hidden] { display: none; }
.dl-warn .ico { width: 20px; height: 20px; color: var(--violet); flex: none; }
.dl-warn b { color: var(--violet); font: 800 20px/1 var(--display); }

.dl-seat { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; gap: 6px; align-items: stretch; }
.dl-seat.free, .dl-seat.away { grid-template-columns: minmax(0, 1fr); }
.dl-seat .dl-box { grid-template-columns: 48px minmax(0, 1fr); min-height: 64px; padding: 8px 10px 8px 8px; }
.dl-seat .dl-box .nm { display: flex; flex-direction: column; justify-content: center; font-weight: 600; font-size: 17px; line-height: 1.15; }
.dl-seat .dl-box .nm small { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.dl-seat .dl-box .nm small .ico { width: 13px; height: 13px; }
.dl-seat.away .dl-box .nm small { color: var(--gold-ink); }
.dl-q { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; padding: 0 4px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--table-3); color: var(--ink); font: 800 12px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dl-q .ico { width: 22px; height: 22px; stroke-width: 2.4; }
.dl-q:active { transform: scale(.96); }
.dl-q:disabled { opacity: .5; }
.dl-q.rb .ico { color: var(--gold-ink); }
.dl-q.bust { color: var(--rose); border-color: color-mix(in srgb, var(--rose) 45%, var(--line)); background: color-mix(in srgb, var(--rose) 8%, var(--table-3)); }
.dl-q:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* сигнал: перерыв заканчивается */
.dl-ret { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(16, 13, 30, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dl-ret[hidden] { display: none; }
.dl-ret-box { width: 100%; max-width: 440px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dl-ret-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--violet); color: #1a1430; animation: ring 1.2s ease-in-out infinite; }
.dl-ret-ico .ico { width: 36px; height: 36px; }
.dl-ret h2 { font-size: 34px; margin: 6px 0 0; }
.dl-ret p { margin: 0; color: var(--ink-2); font-size: 18px; }
.dl-ret #ret-time { color: var(--violet); font: 800 34px/1 var(--display); }
.dl-ret-tb b { color: var(--gold-ink); font: 800 26px/1 var(--display); text-transform: uppercase; }
.dl-ret .btn { width: 100%; min-height: 64px; margin-top: 10px; font-size: 20px; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-14deg); } 30% { transform: rotate(12deg); } 45% { transform: rotate(-8deg); } 60% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .dl-ret-ico { animation: none; } }

/* Телефон горизонтально: слева стол и часы, справа боксы в две колонки */
@media (orientation: landscape) and (max-height: 560px) {
  body.dealer .dl-shell { display: grid; grid-template-columns: minmax(230px, 31vw) minmax(0, 1fr); grid-template-rows: auto auto 1fr; min-height: 100vh; }
  .dl-top { grid-column: 1; grid-row: 1; position: sticky; top: 0; padding: 6px 10px; padding-left: calc(10px + env(safe-area-inset-left)); gap: 6px; border-right: 1px solid var(--line); }
  .dl-top img { height: 24px; }
  .dl-who b { font-size: 15px; }
  .dl-who small { display: none; }
  .dl-top .dl-snd span { display: none; }
  .dl-top .btn.sm { min-height: 40px; padding: 0 10px; }
  .dl-clock { grid-column: 1; grid-row: 2 / 4; position: sticky; top: 52px; align-self: start; height: calc(100vh - 52px); display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 14px; padding: 12px; padding-left: calc(12px + env(safe-area-inset-left)); border-bottom: 0; border-right: 1px solid var(--line); }
  .dl-clock .dl-tb { flex-direction: row; justify-content: center; align-items: baseline; gap: 10px; padding: 8px 10px; }
  .dl-clock .dl-tb small { font-size: 12px; }
  .dl-clock .dl-tb b { font-size: 44px; }
  .dl-clock .dl-tb i { bottom: -9px; }
  .dl-clock .dl-now { align-items: center; text-align: center; }
  .dl-clock .dl-lvl { font-size: 17px; }
  .dl-clock .dl-next { white-space: normal; }
  .dl-clock .dl-times { align-items: center; }
  .dl-clock .dl-time { font-size: clamp(44px, 9vh, 64px); }
  .dl-clock .dl-brk { font-size: 14px; }
  .dl-clock .dl-brk b { font-size: 24px; }
  .dl-warn { margin: 0 -12px; padding: 8px 12px; border: 1px solid rgba(185, 165, 251, .4); border-left: 0; border-right: 0; font-size: 14px; }
  .dl-main { grid-column: 2; grid-row: 1 / 4; max-width: none; padding: 10px 14px calc(24px + env(safe-area-inset-bottom)); padding-right: calc(14px + env(safe-area-inset-right)); }
  .dl-head { display: none; }
  .dl-tables { margin-bottom: 10px; }
  .dl-tables button { min-height: 40px; font-size: 15px; }
  .dl-main > .dl-boxes, .dl-sec .dl-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .dl-seat { grid-template-columns: minmax(0, 1fr) 54px 54px; gap: 4px; }
  .dl-seat .dl-box { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; min-height: 56px; padding: 6px 8px 6px 6px; }
  .dl-seat .dl-box .bx { width: 36px; height: 36px; font-size: 19px; }
  .dl-seat .dl-box .nm { font-size: 15px; }
  .dl-seat .dl-box .nm small { font-size: 12px; }
  .dl-seat.free .dl-box { min-height: 44px; }
  .dl-q { min-height: 56px; font-size: 11px; }
  .dl-sec { margin-top: 18px; }
  .dl-ret-box { max-width: 560px; display: grid; grid-template-columns: auto 1fr; text-align: left; align-items: center; gap: 6px 18px; }
  .dl-ret-ico { grid-row: 1 / 4; }
  .dl-ret .btn { grid-column: 1 / -1; min-height: 56px; }
  .dl-ret h2 { margin: 0; font-size: 28px; }
}

.dl-seat .dl-box .nm { overflow: visible; white-space: normal; }
.dl-seat .dl-box .nk { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* нарисованные знаки достижений: объёмная тень вместо рамки медали */
img.ach-img { object-fit: contain; transform: scale(1.22); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); }
.medal.locked .m-art img.ach-img { filter: grayscale(1) brightness(.75); }

/* Вход через Telegram */
.btn.tg { width: 100%; background: #2aabee; border-color: #2aabee; color: #fff; font-weight: 700; }
.btn.tg:hover { background: #229ed9; border-color: #229ed9; }
.btn.tg .ico { width: 22px; height: 22px; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--ink-3); font-size: 13px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tg-box { margin: 6px 0 4px; }
.tg-flow { display: grid; gap: 14px; }
.tg-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; color: var(--ink-2); line-height: 1.4; }
.tg-steps b { color: var(--ink); }
.tg-wait { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; color: var(--ink-2); font-size: 14px; text-align: center; }
.spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: #2aabee; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.act-hint { color: var(--ink-2); font-size: 13px; }
@media (max-width: 640px) { .t-act .act-hint { width: 100%; text-align: center; } }

/* История вечера: переключатель нал / безнал прямо в строке */
.hist-row .h-m { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pay-tg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--table); border: 1px solid var(--line); }
.pay-tg button { min-height: 30px; padding: 0 9px; border: 0; border-radius: 6px; background: none; color: var(--ink-3); font: 700 12px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.pay-tg button.on { background: var(--stock); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.pay-tg button:not(.on):hover { color: var(--ink); }
@media (pointer: coarse) { .pay-tg button { min-height: 40px; padding: 0 12px; } }
/* разбивка оплаты: безнал / бесплатно / нал */
.sp-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 4px; margin: 0 0 14px; }
.sp-box legend { padding: 0 6px; font-weight: 700; color: var(--ink-2); }
.sp-box .seg { margin-bottom: 10px; }
.sp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sp-cash b { display: flex; align-items: center; min-height: 44px; font: 800 24px/1 var(--display); }
.sp-cash b.neg { color: var(--rose); }

/* Пульт: крупные «Ребай» и «Аддон» без игрока */
.rb-big { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.rb-big .btn { min-height: 56px; font-size: 18px; justify-content: center; }
.rb-big .btn .ico { color: var(--gold-ink); }
.boom-btn { border-color: color-mix(in srgb, var(--gold) 55%, var(--line-2)); }
.players-live .pl-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
@media (max-width: 640px) { .players-live .pl-row { grid-template-columns: 48px minmax(0, 1fr) auto; } }
/* Double Knockout: шарики */
.ball-pts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ball-pts .btn { min-height: 56px; font: 800 22px/1 var(--display); justify-content: center; }
.ball-own { margin-top: 10px; }
.ball-gifts { display: flex; flex-wrap: wrap; gap: 8px; }
.ko-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-bottom: 10px; }
.ko-pick { justify-content: flex-start; gap: 8px; min-height: 48px; }
.ko-pick small { color: var(--ink-3); font: 700 12px/1 var(--display); }
.ko-more summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; color: var(--ink-2); font-weight: 600; }
.x-reason { display: block; margin-top: 4px; color: var(--gold-ink); font-size: 12px; line-height: 1.3; max-width: 180px; }

/* Отметка финалиста: золотая «A» в круге */
.ace-mark { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font: 900 11px/1 var(--display); letter-spacing: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.ace-mark.big { width: 30px; height: 30px; font-size: 19px; }
@media (max-width: 640px) { .fin-tag .ace-mark { width: 18px; height: 18px; font-size: 12px; } }
/* меню игрока: длинные подписи переносятся, кнопки не вылезают за экран */
.dl-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dl-acts .btn { min-width: 0; white-space: normal; line-height: 1.15; text-align: center; padding-inline: 10px; }
/* «A» в отметке финалиста не прячется вместе с подписью «Финал» на телефоне */
.fin-tag .ace-mark { position: static !important; width: 16px !important; height: 16px !important; overflow: visible !important; clip: auto !important; }
@media (max-width: 640px) { .fin-tag:has(.ace-mark) { border: 0; width: auto; height: auto; } .fin-tag .ace-mark { width: 20px !important; height: 20px !important; font-size: 13px; } }

.ball-given { display: grid; gap: 6px; }
.bg-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 44px 44px; gap: 6px; align-items: center; }
.bg-row input { min-height: 44px; text-align: center; }

.x-team:empty { display: none; }
.x-team { color: var(--ice-ink); }

/* Пульт: три большие кнопки — ребай зелёный, аддон красный, фишки жёлтые */
.rb-big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rb-big .btn { border: 0; font-weight: 800; }
.rb-big .btn .ico { color: inherit; }
.rb-big .rb-rebuy { background: #2f9e55; color: #fff; }
.rb-big .rb-addon { background: #d6453d; color: #fff; }
.rb-big .rb-chips { background: var(--gold); color: var(--on-gold); }
.rb-big .rb-rebuy:hover { background: #36b262; }
.rb-big .rb-addon:hover { background: #e5534a; }
.rb-big .rb-chips:hover { background: #ffd57f; }
.rb-big .btn:active { transform: translateY(1px); }
@media (max-width: 420px) { .rb-big .btn { font-size: 16px; padding-inline: 6px; gap: 4px; } }
.ex-btns:empty { display: none; }
.bn-pre { gap: 6px; flex-wrap: wrap; }

.dp-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 0 0 14px; border-radius: 10px; background: var(--table-3); border: 1px solid var(--line); }
.dp-link b { font: 700 18px/1.2 var(--display); letter-spacing: .03em; overflow-wrap: anywhere; }

/* Экран дилера: поиск по нику и список по алфавиту */
.dl-find { position: sticky; top: var(--dl-find-top, 0px); z-index: 15; display: flex; gap: 6px; align-items: center; margin: -16px -16px 0; padding: 10px 16px; background: var(--table); }
body.dealer .dl-clock { grid-template-columns: minmax(0, 1fr) auto; }
.dl-find .lp-search { flex: 1; min-width: 0; }
.dl-find input { font-size: 18px; min-height: 52px; }
.dl-find .btn[hidden] { display: none; }
.dl-cnt { margin: 6px 0 8px; }
.dl-list .dl-box .bx { font-size: 22px; background: var(--table-3); color: var(--gold-ink); }
.dl-none { list-style: none; padding: 24px 12px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: 12px; }

@media (orientation: landscape) and (max-height: 560px) { .dl-find { margin: -10px -14px 0; padding: 8px 14px; } .dl-find input { min-height: 46px; } }
.dl-list .nk { overflow-wrap: anywhere; }
.dl-sheet [data-ok] { flex: 1 1 auto; white-space: nowrap; }
.dl-sheet .modal-actions .btn[data-ok] { flex: 1 1 auto; white-space: nowrap; } .dl-sheet .modal-actions .btn[data-ok] span { white-space: nowrap; }
.sheet-bg .dl-sheet .modal-actions .btn[data-ok] { flex: 2 1 auto; }

.res-text { width: 100%; min-height: 260px; font: 15px/1.45 var(--text); white-space: pre; overflow: auto; tab-size: 4; }
.rk-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .rk-seg label { justify-content: center; text-align: center; padding-inline: 4px; }

/* ── Важные действия: свой цвет у каждого, одинаково на пульте, в меню игрока и в окнах ──
   ребай — зелёный, аддон — красный, фишки — золото, выбыл — малиновый, + игрок — лёд, карточка — золотая обводка */
:root { --act-rebuy: #2f9e55; --act-rebuy-hi: #38b464; --act-addon: #d6453d; --act-addon-hi: #e5574e; --act-bust: #f43f7a; }
.btn.act-rebuy { background: var(--act-rebuy); border-color: var(--act-rebuy); color: #fff; font-weight: 700; }
.btn.act-rebuy:hover { background: var(--act-rebuy-hi); border-color: var(--act-rebuy-hi); }
.btn.act-addon { background: var(--act-addon); border-color: var(--act-addon); color: #fff; font-weight: 700; }
.btn.act-addon:hover { background: var(--act-addon-hi); border-color: var(--act-addon-hi); }
.btn.act-chips { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 700; }
.btn.act-chips:hover { background: #ffd67f; border-color: #ffd67f; }
.btn.act-rebuy .ico, .btn.act-addon .ico, .btn.act-chips .ico, .btn.act-add .ico { color: inherit; }
/* мягкий вариант — для второстепенных (бесплатный ребай / аддон) */
.btn.act-rebuy.soft { background: color-mix(in srgb, var(--act-rebuy) 16%, var(--table-3)); border-color: color-mix(in srgb, var(--act-rebuy) 60%, transparent); color: #8fe0aa; }
.btn.act-addon.soft { background: color-mix(in srgb, var(--act-addon) 16%, var(--table-3)); border-color: color-mix(in srgb, var(--act-addon) 60%, transparent); color: #ffaaa3; }
.btn.act-rebuy.soft:hover { background: color-mix(in srgb, var(--act-rebuy) 26%, var(--table-3)); }
.btn.act-addon.soft:hover { background: color-mix(in srgb, var(--act-addon) 26%, var(--table-3)); }
.btn.act-bust { background: color-mix(in srgb, var(--act-bust) 14%, var(--table-3)); border-color: color-mix(in srgb, var(--act-bust) 65%, transparent); color: #ff9dbd; font-weight: 700; }
.btn.act-bust:hover { background: color-mix(in srgb, var(--act-bust) 24%, var(--table-3)); color: #ffc2d6; }
.btn.act-bust.solid { background: var(--act-bust); border-color: var(--act-bust); color: #fff; }
.btn.act-bust.solid:hover { background: #ff5a8d; }
.btn.act-add { background: var(--ice); border-color: var(--ice); color: var(--on-ice); font-weight: 700; }
.btn.act-add:hover { background: #b3ecef; border-color: #b3ecef; }
.btn.act-add:disabled { background: var(--table-3); border-color: var(--line); color: var(--ink-3); }
.btn.act-card { border-color: color-mix(in srgb, var(--gold) 70%, transparent); color: var(--gold-ink); background: color-mix(in srgb, var(--gold) 8%, transparent); font-weight: 700; }
.btn.act-card:hover { background: color-mix(in srgb, var(--gold) 16%, transparent); border-color: var(--gold); }
.btn.act-card .ico { color: inherit; }
.rb-big .act-rebuy, .rb-big .act-addon, .rb-big .act-chips { border: 0; }

/* Список на пульте без столов: ник и «Выбыл» */
.players-live .pl-row { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 640px) { .players-live .pl-row { grid-template-columns: minmax(0, 1fr) auto; } }
.players-live .pl-row .bust { gap: 6px; }
.players-live .pl-row .bust .ico { width: 16px; height: 16px; }

/* Сводка бонусов в банке: ранний приход, еда, кальян, доп. фишки */
.bonus-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; margin-top: 8px; }
.bs-tile { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 9%, var(--table-3)); border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); min-width: 0; }
.bs-tile b { font: 800 22px/1 var(--display); color: var(--gold-ink); }
.bs-tile span { font-size: 12px; color: var(--ink-2); line-height: 1.2; overflow-wrap: anywhere; }
.bs-tile small { font-size: 11px; color: var(--ink-3); }
.bs-tile.zero { background: var(--table-3); border-color: var(--line); }
.bs-tile.zero b { color: var(--ink-3); }
.dl-q.rb.act { background: color-mix(in srgb, var(--act-rebuy) 18%, var(--table-3)); border-color: color-mix(in srgb, var(--act-rebuy) 60%, transparent); color: #8fe0aa; }
.dl-q.rb.act .ico { color: inherit; }
.bonus-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 380px) { .bonus-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.players-live + .pl-group, #lplayers > .pl-group { margin-top: 18px; }
.dl-acts .act-chips[data-a='bonus'] { grid-column: 1 / -1; }
#lbonus { margin: 8px 0; }
/* сводка крупнее: 3 колонки, цифры и кнопки больше; ребаи — зеленые, аддоны — красные, BB — золото */
.bonus-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 380px) { .bonus-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bs-tile { padding: 10px 12px 50px; min-height: 104px; }
.bs-tile b { font-size: 28px; }
.bs-tile span { font-size: 13px; font-weight: 600; }
.bs-tile small { font-size: 12px; }
.bs-pm { left: 8px; right: 8px; bottom: 8px; gap: 6px; }
.bs-btn { min-height: 36px; font-size: 22px; }
@media (pointer: coarse) { .bs-btn { min-height: 40px; } .bs-tile { padding-bottom: 56px; } }
.bs-tile.rb { background: color-mix(in srgb, var(--act-rebuy) 14%, var(--table-3)); border-color: color-mix(in srgb, var(--act-rebuy) 55%, transparent); }
.bs-tile.rb b { color: #8fe0aa; }
.bs-tile.rb .bs-btn.plus { background: var(--act-rebuy); border-color: var(--act-rebuy); color: #fff; }
.bs-tile.ad { background: color-mix(in srgb, var(--act-addon) 14%, var(--table-3)); border-color: color-mix(in srgb, var(--act-addon) 55%, transparent); }
.bs-tile.ad b { color: #ff9c9c; }
.bs-tile.ad .bs-btn.plus { background: var(--act-addon); border-color: var(--act-addon); color: #fff; }
.own-stat .own-plus { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: var(--gold); color: var(--on-gold); font-weight: 800; font-size: 14px; }
.own-stat .own-plus .ico { width: 16px; height: 16px; color: inherit; }
.bs-tile.hand-tile { cursor: pointer; font: inherit; color: var(--ink); text-align: left; background: var(--table-3); border-color: var(--line); }
.bs-tile.hand-tile:hover { border-color: var(--gold); }
.hand-tile .hs-cards { gap: 4px; min-height: 30px; align-items: center; }
.hand-tile .hs-cards b { min-width: 28px; height: 32px; font-size: 16px; padding: 0 4px; border-radius: 5px; }
.hand-tile .hs-cards em { font-size: 12px; }
.hand-tile .bs-pm { grid-template-columns: 1fr; }
.hand-tile .bs-btn { display: grid; place-items: center; font-family: inherit; font-size: 14px; font-weight: 700; }
.trash-list { display: grid; gap: 6px; }
.trash-list .bg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--table-3); }
.nf-only[hidden], .f-only[hidden] { display: none !important; }
/* Финал: банк фишек над составом */
.final-bank { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 14px; margin: -4px 0 14px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 9%, var(--table-3)); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.final-bank > div { display: grid; }
.final-bank b { font: 800 28px/1 var(--display); color: var(--gold-ink); }
.final-bank span { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.final-bank p { flex: 1; min-width: 200px; margin: 0; }
/* Окно достижения */
.medal[role=button] { cursor: pointer; transition: border-color .15s, transform .15s; }
.medal[role=button]:hover { border-color: var(--rar, var(--line-2)); }
.medal[role=button]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ach-modal { display: grid; justify-items: center; text-align: center; gap: 8px; }
.ach-modal .am-art { width: 220px; height: 220px; display: grid; place-items: center; margin-bottom: 6px; filter: drop-shadow(0 12px 28px color-mix(in srgb, var(--rar, #fff) 30%, transparent)); }
.ach-modal .am-art img, .ach-modal .am-art svg { width: 100%; height: 100%; object-fit: contain; }
.ach-modal.locked .am-art { filter: grayscale(1) opacity(.55); }
.ach-modal h2 { margin: 4px 0 0; }
.ach-modal .am-desc { font-size: 17px; margin: 0; color: var(--ink); }
.ach-modal .am-meta { margin: 0; color: var(--ink-2); font-size: 14px; }
.ach-modal .am-lock { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
/* Статистика в процентах */
.pc-box { padding: 18px; border-radius: 16px; background: var(--table-2); border: 1px solid var(--line); }
.pc-box.in-me { margin-top: 14px; }
.pc-rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pc-ring { display: grid; justify-items: center; text-align: center; gap: 8px; --c: var(--gold); }
.pc-ring.r-ice { --c: #7fd8e6; } .pc-ring.r-gold { --c: #ffcb63; } .pc-ring.r-green { --c: #5fd38b; } .pc-ring.r-violet { --c: #b18cff; }
.pc-dial { --deg: calc(var(--p) * 3.6deg); width: 108px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--table-2) 74%, transparent 75% 100%), conic-gradient(var(--c) var(--deg), rgba(255, 255, 255, .08) 0);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 30%, transparent)); animation: pcIn .9s var(--ease, ease-out) both; }
.pc-dial b { font: 900 28px/1 var(--display); color: var(--ink); }
.pc-dial b small { font-size: 15px; color: var(--ink-2); margin-left: 1px; }
.pc-ring > span { font-size: 13px; color: var(--ink-2); line-height: 1.25; max-width: 150px; }
.pc-ring .pc-all { font-size: 12px; color: var(--ink-3); }
@keyframes pcIn { from { opacity: 0; transform: scale(.85) rotate(-40deg); } to { opacity: 1; transform: none; } }
.pc-avgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.pc-avg { padding: 10px 12px; border-radius: 10px; background: var(--table-3); display: grid; gap: 4px; }
.pc-avg b { font: 800 22px/1 var(--display); color: var(--gold-ink); }
.pc-avg span { font-size: 12px; color: var(--ink-2); line-height: 1.25; }
@media (max-width: 720px) { .pc-rings, .pc-avgs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pc-dial { width: 96px; } }
@media (prefers-reduced-motion: reduce) { .pc-dial { animation: none; } }
/* Рейтинг: у каждой строки — тонкая рамка */
.race-row { box-shadow: inset 0 0 0 1px var(--line-2); }
.race-row.in { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 28%, var(--line-2)); }
.pod { box-shadow: inset 0 0 0 1px var(--line-2); }
.race-row.me { box-shadow: inset 0 0 0 2.5px var(--gold), 0 0 0 4px rgba(255, 203, 99, .18), 0 10px 28px -12px rgba(255, 203, 99, .55); }
.pod.me { box-shadow: inset 0 0 0 2.5px var(--gold), 0 0 0 4px rgba(255, 203, 99, .18); }
.race-row.free { box-shadow: inset 0 0 0 1.5px var(--line-2); }
/* Достижения: свечение по редкости, блик, мягкое парение значка */
.medal { position: relative; overflow: hidden; isolation: isolate; border-color: color-mix(in srgb, var(--rar, #b9c2cb) 45%, var(--line)); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--rar, #b9c2cb) 16%, transparent), transparent 60%), var(--table-2); box-shadow: 0 0 0 1px color-mix(in srgb, var(--rar, #b9c2cb) 18%, transparent), 0 8px 26px -14px color-mix(in srgb, var(--rar, #b9c2cb) 70%, transparent); transition: transform .2s, box-shadow .2s; }
.medal::after { content: ''; position: absolute; inset: -40% auto -40% -60%; width: 40%; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--rar, #fff) 22%, transparent), transparent); transform: skewX(-18deg); animation: medalShine 5.5s ease-in-out infinite; }
.medal:nth-child(3n+2)::after { animation-delay: 1.6s; } .medal:nth-child(3n)::after { animation-delay: 3.2s; }
@keyframes medalShine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.medal .m-art { position: relative; animation: medalFloat 4.2s ease-in-out infinite; }
.medal:nth-child(even) .m-art { animation-delay: -2.1s; }
.medal .m-art::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; z-index: -1; background: radial-gradient(circle, color-mix(in srgb, var(--rar, #fff) 55%, transparent), transparent 70%); filter: blur(10px); animation: medalGlow 3s ease-in-out infinite; }
@keyframes medalFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes medalGlow { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
.medal:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--rar, #b9c2cb) 45%, transparent), 0 14px 34px -14px color-mix(in srgb, var(--rar, #b9c2cb) 90%, transparent); }
.medal .m-body b { color: color-mix(in srgb, var(--rar, #fff) 35%, var(--ink)); }
.medal.locked { background: var(--table-2); border-color: var(--line); box-shadow: none; }
.medal.locked::after, .medal.locked .m-art::before { display: none; }
.medal.locked .m-art { animation: none; }
.medal.locked .m-body b { color: var(--ink-2); }
.medal.locked { background: transparent; }
.medal.rar-mythic::after { animation-duration: 3.8s; }
.medal.rar-mythic, .medal.rar-legendary { border-width: 1.5px; }
@media (prefers-reduced-motion: reduce) { .medal::after, .medal .m-art, .medal .m-art::before { animation: none !important; } }
/* Профиль: блок «За все время» */
.alltime { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--table-2); border: 1px solid var(--line); }
.alltime h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.at-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.at-t { --c: var(--gold); display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 12px; background: radial-gradient(120% 120% at 0 0, color-mix(in srgb, var(--c) 14%, transparent), transparent 65%), var(--table-3); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.at-t.t-gold { --c: #ffcb63; } .at-t.t-green { --c: #5fd38b; } .at-t.t-ice { --c: #7fd8e6; } .at-t.t-violet { --c: #b18cff; } .at-t.t-rose { --c: #ff7a9a; }
.at-t .mt-ic { color: var(--c); } .at-t .mt-ic .ico { width: 18px; height: 18px; }
.at-t b { font: 900 28px/1 var(--display); color: var(--ink); }
.at-t span:last-child { font-size: 12.5px; color: var(--ink-2); line-height: 1.25; }
@media (max-width: 900px) { .at-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .at-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Рейтинг: кнопка «Вы на N-м месте» */
.rt-tools .find-me { box-shadow: 0 0 0 3px rgba(255, 203, 99, .2); }
/* Пульт: как добавить игрока */
.add-mode { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.add-mode label { display: flex; align-items: center; gap: 6px; justify-content: center; text-align: center; }
@media (max-width: 520px) { .add-mode { grid-template-columns: 1fr; } }
/* Пульт: окно чип-лидеров */
.cl-row { display: grid; grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 10px; }
.cl-m { font-size: 24px; text-align: center; }
.cl-p { grid-column: 3; margin-top: -4px; color: var(--gold-ink); font-size: 12px; min-height: 0; }
.cl-p:empty { display: none; }
/* Плашка «идет турнир» — ссылка на турнир */
a.livebar { display: block; color: inherit; text-decoration: none; cursor: pointer; }
a.livebar:hover { background-color: color-mix(in srgb, var(--ice) 7%, transparent); }
a.livebar:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.livebar .l-go { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); font: 700 12px/1.4 var(--text, inherit); letter-spacing: 0; text-transform: none; vertical-align: middle; white-space: nowrap; }
.livebar .l-go .ico { width: 13px; height: 13px; }
a.livebar:hover .l-go { background: var(--gold); color: var(--on-gold); }
@media (max-width: 640px) { .livebar .l-go { font-size: 0; gap: 0; padding: 3px 6px; } }
/* Билет: идет / регистрация закрыта, адрес */
.t-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.badge.running { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ice) 25%, transparent); font-weight: 800; animation: runPulse 2s ease-in-out infinite; }
@keyframes runPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ice) 12%, transparent); } }
.badge.closed { color: #ffd9de; background: color-mix(in srgb, var(--act-addon, #d6453d) 30%, transparent); border-color: color-mix(in srgb, var(--act-addon, #d6453d) 75%, transparent); font-weight: 800; }
.reg-closed { display: inline-block; margin-right: 6px; padding: 2px 10px; border-radius: 999px; color: #ffd9de; background: color-mix(in srgb, #d6453d 30%, transparent); border: 1px solid color-mix(in srgb, #d6453d 75%, transparent); }
@media (prefers-reduced-motion: reduce) { .badge.running { animation: none; } }
.t-venue { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.t-venue .ico { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--gold); }
.t-venue b { color: var(--ink); font-weight: 700; }
/* Участники столбиком */
.plist { margin: 0; padding: 0; list-style: none; counter-reset: pl; columns: 2 220px; column-gap: 24px; }
.plist li { counter-increment: pl; display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: 15px; }
.plist li::before { content: counter(pl); min-width: 22px; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.plist.out li::before { content: none; }
.plist a { color: var(--ink); text-decoration: none; font-weight: 600; }
.plist a:hover { color: var(--gold-ink); }
.plist a.me { color: var(--gold-ink); }
.plist.dim a, .plist.dim li { color: var(--ink-3); }
.plist .pl-place { min-width: 40px; color: var(--ink-3); font-weight: 700; }
.plist .pl-stack { margin-left: auto; color: var(--gold-ink); font-weight: 700; font-size: 13px; }
.plist .me-tag { margin-left: 2px; }
.me-chip .av { overflow: hidden; }
.me-chip .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Достижения: доля игроков */
.ach-pct { color: var(--rar, var(--gold-ink)); font-weight: 800; }
.am-pct { width: 100%; max-width: 340px; display: grid; gap: 6px; margin-top: 6px; }
.am-pct-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.am-pct-bar i { display: block; height: 100%; border-radius: 99px; background: var(--rar, var(--gold)); }
.am-pct span { font-size: 13.5px; color: var(--ink-2); }
.am-pct b { color: var(--rar, var(--gold-ink)); }
/* Рейтинг на телефоне: «Проходит в финал» словами, метка под ником, если не влезает */
@media (max-width: 640px) {
  .race-row .who { flex-wrap: wrap; row-gap: 4px; }
  .fin-tag, .fin-tag:has(.ace-mark) { width: auto; height: auto; padding: 2px 8px 2px 3px; border: 1px solid rgba(255, 203, 99, .5); border-radius: 30px; font-size: 10px; letter-spacing: .05em; }
  .fin-tag span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .fin-tag .ace-mark { width: 16px !important; height: 16px !important; font-size: 10px; }
}
/* Выбор сезона на странице игрока и в кабинете */
.pf-season { margin: 0 0 18px; }
.me-stats .pf-season { margin: 12px 0 12px; }
/* Метка «Проходит в финал» в рейтинге — спокойная, без яркого золота */
.fin-tag, .fin-tag:has(.ace-mark) { color: color-mix(in srgb, var(--gold-ink) 80%, #000); border-color: rgba(255, 203, 99, .34); background: rgba(255, 203, 99, .07); font-weight: 700; letter-spacing: .06em; }
.fin-tag .ace-mark { opacity: 1; filter: brightness(.82) saturate(.95); }
/* ник и метка финала в рейтинге: метка всегда второй строкой, у всех на одном уровне */
.race-row .who { flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
.race-row .who .who-n { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.race-row .who .who-n a { display: block; min-width: 0; }
.race-row .who .fin-tag { align-self: flex-start; }
/* Поле телефона: «+7» всегда на месте */
.phone-in { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; background: var(--table-2); overflow: hidden; }
.phone-in:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.phone-in .pi-cc { display: grid; place-items: center; padding: 0 12px 0 14px; font-weight: 800; color: var(--gold-ink); background: color-mix(in srgb, var(--gold) 10%, transparent); border-right: 1px solid var(--line-2); font-variant-numeric: tabular-nums; user-select: none; }
.phone-in input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; border-radius: 0; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.phone-in input:focus { outline: none; box-shadow: none; }
.phone-in:has(input[aria-invalid="true"]) { border-color: var(--act-addon, #d6453d); }
/* Пульт: ребай и аддон без игрока — Нал / Безнал / Бесплатно */
.bs-tile.pay { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; min-height: 0; }
.bs-tile.pay .bs-main { display: grid; gap: 2px; min-width: 74px; }
.bs-tile.pay .bs-paybtns { flex: 1; display: grid; grid-template-columns: 40px repeat(3, minmax(0, 1fr)); gap: 6px; }
.bs-tile.pay .bs-btn { min-height: 44px; font: 800 12.5px/1 var(--text, inherit); letter-spacing: -.01em; padding-inline: 2px; }
.bs-tile.pay .bs-btn.minus { font-size: 22px; }
.bs-tile.pay, .bs-tile.pay.rb, .bs-tile.pay.ad { background: var(--table-3); border-color: var(--line-2); }
.bs-tile.pay.rb b { color: #8fe0aa; } .bs-tile.pay.ad b { color: #ff9c9c; }
/* способ оплаты: нал — красная, безнал — зеленая, бесплатно — голубая (и на плитках, и в меню игрока) */
.bs-btn.pay[data-bpay$=":cash"], .dp-b[data-pay$=":cash"] { background: var(--act-addon); border-color: var(--act-addon); color: #fff; }
.bs-btn.pay[data-bpay$=":card"], .dp-b[data-pay$=":card"] { background: var(--act-rebuy); border-color: var(--act-rebuy); color: #fff; }
.bs-btn.pay[data-bpay$=":free"], .dp-b[data-pay$=":free"] { background: var(--ice); border-color: var(--ice); color: var(--on-ice); }
.bs-btn.pay:not(:disabled):hover, .dp-b[data-pay]:hover { filter: brightness(1.1); }
.bs-tile.pay .bs-btn:disabled { opacity: .35; }
@media (max-width: 380px) { .bs-tile.pay { flex-direction: column; align-items: stretch; } }
/* Меню игрока: ребай и аддон — три способа оплаты */
.dl-pay { display: grid; gap: 8px; margin: 12px 0; }
.dp-row { display: grid; grid-template-columns: 76px repeat(3, minmax(0, 1fr)); gap: 6px; align-items: center; }
.dp-t { font: 800 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 12px 8px; border-radius: 9px; text-align: center; color: #fff; }
.dp-t.act-rebuy { background: var(--act-rebuy); } .dp-t.act-addon { background: var(--act-addon); }
.dp-b { min-height: 48px; justify-content: center; font-weight: 700; padding-inline: 4px; }
.bs-tile .bs-sum { color: var(--gold-ink); font-weight: 800; }
.ico.emoji { display: inline-block; width: 20px; height: 20px; line-height: 20px; font-size: 16px; text-align: center; font-style: normal; flex: none; }
/* Рейтинг: в строке только очки и баунти */
.race-row .rstats { grid-template-columns: 120px; justify-content: end; }
/* телефон: слева место и ник с меткой, справа очки, а под ними баунти — одной компактной карточкой */
@media (max-width: 640px) {
  .race-row, .race.compact .race-row { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
  .race-row .pos { grid-row: 1 / span 2; align-self: center; }
  .race-row .who { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .race-row .pts { grid-column: 3; grid-row: 1; align-self: end; }
  .race-row .rstats { grid-column: 3; grid-row: 2; display: flex; justify-content: flex-end; align-self: start; }
  .race-row .rstats span { flex-direction: row; align-items: baseline; gap: 5px; padding: 3px 10px; }
  .race-row .rstats b { font-size: 15px; }
  .race-row .rstats small { font-size: 12px; }
}
/* Аватары игроков: фото или значок-заглушка */
.pav { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--table-3); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.pav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pav .ico { width: 56%; height: 56%; }
.pav.sm { width: 26px; height: 26px; } .pav.lg { width: 64px; height: 64px; }
.pav.lg { box-shadow: 0 0 0 2px var(--line-2), 0 8px 20px -10px rgba(0, 0, 0, .8); }
.pod.p1 .pav.lg { width: 76px; height: 76px; box-shadow: 0 0 0 2px var(--gold), 0 10px 26px -10px rgba(255, 203, 99, .5); }
/* рейтинг: аватар слева от ника */
.race-row .who { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; } /* кружки всех игроков строго друг под другом */
.race-row .who .who-c { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; min-width: 0; }
.race-row.me .pav { box-shadow: 0 0 0 2px var(--gold); }
.pod .pav.lg { margin-bottom: 4px; }
.with-av, .fin-podium li .pav + a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.fin-podium li { align-items: center; }
.plist li .pav { margin-right: 2px; }
@media (max-width: 640px) {
  .race-row .pav { width: 36px; height: 36px; }
  /* тройка: место, аватар и ник в одной строке, очки справа; имя переносится по словам, а не посреди слова */
  .pod { grid-template-columns: 44px 44px minmax(0, 1fr) auto; grid-template-areas: "place av name pts" "place av meta meta" "place av gap gap"; gap: 4px 10px; }
  .pod .pav.lg, .pod.p1 .pav.lg { grid-area: av; align-self: center; width: 44px; height: 44px; margin: 0; }
  .pod-name, .pod.p1 .pod-name { overflow-wrap: break-word; word-break: normal; hyphens: none; font-size: 18px; }
  .pod.p1 .pod-name { font-size: 19px; }
  .pod-place, .pod.p1 .pod-place { font-size: 34px; }
  .pod-place small { display: none; }
  .pod, .pod.p1 { padding: 14px 16px; } /* у всех троих одинаковые отступы — кружки друг под другом */
  .race-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .race-row .who { gap: 10px; flex-wrap: nowrap; }
  .pod-name, .pod.p1 .pod-name { font-size: 16px; letter-spacing: 0; overflow-wrap: anywhere; }
  .pod.p1 .pod-name { font-size: 17px; }
}
/* Кнопка «Назад» в шапке */
.back-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 14px 0 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--table-3); color: var(--ink); font: 700 15px/1 var(--text, inherit); cursor: pointer; }
.back-btn[hidden] { display: none; }
.back-btn .ico { width: 20px; height: 20px; }
.back-btn:hover { border-color: var(--gold); color: var(--gold-ink); }
.back-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) { .back-btn { min-width: 44px; padding: 0; justify-content: center; } .back-btn span { display: none; } .topbar .wrap { gap: 10px; } .topbar .wrap .brand { margin-right: auto; } }
/* Карточка профиля на средних экранах: кнопки уходят под имя, имя не сжимается в столбик */
@media (max-width: 1180px) {
  .me-card { grid-template-columns: auto minmax(0, 1fr); }
  .me-card .me-acts { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .me-who h2 { overflow-wrap: anywhere; }
}
.audit-t td { vertical-align: top; }
.audit-t tr.au-bad td { background: color-mix(in srgb, var(--act-addon, #d6453d) 10%, transparent); }
.audit-t .nowrap { white-space: nowrap; }
/* Instagram — пометка по закону */
.meta-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--ink-3); }
/* Фото профиля */
button.me-ava { position: relative; border: 0; padding: 0; cursor: pointer; overflow: visible; }
.me-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.me-ava .ava-cam { position: absolute; right: -4px; bottom: -4px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--table-1, #1d2024); color: var(--gold); box-shadow: 0 0 0 2px var(--table-2); }
.me-ava .ava-cam .ico { width: 24px; height: 24px; }
.ava-pick .btn .ico { width: 24px; height: 24px; }
.ava-pick .btn { min-height: 52px; font-size: 16px; }
@media (max-width: 640px) { .me-ava .ava-cam { width: 34px; height: 34px; } .me-ava .ava-cam .ico { width: 20px; height: 20px; } }
button.me-ava:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.me-ava.big { width: 120px; height: 120px; font-size: 52px; }
.ava-pick { display: grid; justify-items: center; gap: 16px; }
.pf-ava { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--gold), 0 10px 26px -12px rgba(0, 0, 0, .8); flex: none; }
@media (max-width: 640px) { .pf-ava { width: 84px; height: 84px; } }
.nav-badge { margin-left: auto; min-width: 20px; padding: 2px 7px; border-radius: 99px; background: var(--act-bust, #f43f7a); color: #fff; font: 800 12px/1.3 var(--text, inherit); text-align: center; }
.nav-badge[hidden] { display: none; }
/* TAG Team: окно команд */
.tm-modal { width: min(760px, 100%); }
.tm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-bottom: 14px; }
.tm-card { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--table-3); cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.tm-card.on { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent); background: color-mix(in srgb, var(--gold) 8%, var(--table-3)); }
.tm-card.full .tm-cnt { color: var(--ok); }
.tm-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.tm-name { width: 100%; font-weight: 800; }
.tm-cnt { font-weight: 800; color: var(--ink-2); font-size: 14px; }
.tm-mem { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; }
.tm-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--table-2); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tm-chip .ico { width: 12px; height: 12px; opacity: .6; }
.tm-chip:hover { border-color: var(--act-addon); }
.tm-add { place-content: center; justify-items: center; min-height: 96px; border-style: dashed; color: var(--gold-ink); font-weight: 800; }
.tm-free-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tm-free-head h3 { margin: 0; }
.tm-free-head input { width: min(220px, 100%); }
.tm-free { display: flex; flex-wrap: wrap; gap: 6px; max-height: 40vh; overflow: auto; }
.tm-free .btn { min-height: 40px; }
.pz-win { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 10%, var(--table-3)); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pz-win .label { margin: 0; font-weight: 700; }
@media (min-width: 1001px) { .live-wrap { grid-template-columns: minmax(330px, 440px) minmax(0, 1fr); } }
#lbonus:empty { display: none; }

/* Вход по номеру телефона */
.btn.ph { width: 100%; justify-content: center; background: var(--ice); border-color: var(--ice); color: var(--on-ice); font-weight: 700; }
.btn.ph:hover { background: #b3ecef; border-color: #b3ecef; }
.btn.ph .ico, .ph-dial .ico { color: inherit; }
#ls-tg .btn.ph + .btn.tg, #tg-box .btn.ph + .btn.tg { margin-top: 8px; }
.ph-dial { width: 100%; justify-content: center; font: 800 24px/1 var(--display); letter-spacing: .02em; min-height: 60px; }
.ph-call #ph-back { margin-top: 6px; }

/* ── Кабинет игрока: слева профиль, статистика, записи и награды; справа гонка сезона и «за всё время» ── */
.me-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "card side" "stats side" "regs side" "ach side"; gap: 18px 22px; align-items: start; }
.me-card { grid-area: card; } .me-stats { grid-area: stats; } .me-side { grid-area: side; position: sticky; top: 84px; display: grid; gap: 14px; } .me-regs { grid-area: regs; } .me-ach { grid-area: ach; }
@media (max-width: 960px) { .me-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "card" "stats" "side" "regs" "ach"; } .me-side { position: static; } }
.me-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 22px; border-radius: var(--r); background: var(--table-2); border: 1px solid var(--line); }
.me-ava { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe3a3, var(--gold) 45%, var(--gold-deep)); color: var(--on-gold); font: 900 38px/1 var(--display); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .7), inset 0 0 0 3px rgba(255, 255, 255, .25); }
.me-who h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); overflow-wrap: anywhere; }
.me-who p { margin: 4px 0 0; color: var(--ink-2); }
.me-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn.act-ice { background: color-mix(in srgb, var(--ice) 14%, var(--table-3)); border-color: color-mix(in srgb, var(--ice) 55%, transparent); color: var(--ice-ink); font-weight: 700; }
.btn.act-ice:hover { background: color-mix(in srgb, var(--ice) 24%, var(--table-3)); }
.btn.act-ice .ico, .btn.act-bust .ico { color: inherit; }
@media (max-width: 640px) { .me-card { grid-template-columns: auto minmax(0, 1fr); padding: 18px 16px; } .me-acts { grid-column: 1 / -1; justify-content: stretch; } .me-acts .btn:not(.icon-only) { flex: 1; } .me-ava { width: 60px; height: 60px; font-size: 30px; } }
.me-period { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: var(--table-2); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.me-period button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: 700 15px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.me-period button[aria-selected='true'] { background: var(--gold); color: var(--on-gold); }
.me-period button:not([aria-selected='true']):hover { color: var(--ink); }
.me-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .me-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .me-tiles .me-tile:last-child { grid-column: 1 / -1; } }
.me-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 14px; border-radius: var(--r); background: var(--table-2); border: 1px solid var(--line); text-align: center; }
.me-tile b { font: 800 30px/1 var(--display); color: var(--ink); }
.me-tile > span:last-child { font-size: 13px; color: var(--ink-2); }
.mt-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.mt-ic .ico { width: 20px; height: 20px; }
.t-gold .mt-ic { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-ink); }
.t-ice .mt-ic { background: color-mix(in srgb, var(--ice) 16%, transparent); color: var(--ice-ink); }
.t-rose .mt-ic { background: color-mix(in srgb, var(--act-bust) 16%, transparent); color: #ff9dbd; }
.t-green .mt-ic { background: color-mix(in srgb, var(--act-rebuy) 22%, transparent); color: #8fe0aa; }
.t-violet .mt-ic { background: color-mix(in srgb, var(--violet) 18%, transparent); color: var(--violet); }
.t-violet b { color: var(--violet); }
.me-box { padding: 18px; border-radius: var(--r); background: var(--table-2); border: 1px solid var(--line); }
.me-box h3 { margin: 0 0 14px; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.me-box .link-arrow { display: inline-flex; margin-top: 14px; }
.mr-pos { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mr-pos b { font: 900 46px/1 var(--display); color: var(--gold-ink); }
.mr-pos.out b { color: var(--ink-2); }
.mr-pos b small { font-size: .45em; }
.mr-pos span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.mr-pts { margin: 6px 0 12px; font-size: 14px; }
.mr-pts b { font: 800 18px/1 var(--display); }
.punches.sm { gap: 5px; }
.punches.sm .punch { width: 26px; height: 26px; font-size: 12px; }
.mb-row + .mb-row { margin-top: 14px; }
.mb-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); }
.mb-top b { font: 800 18px/1 var(--display); color: var(--ink); }
.mb-track { height: 6px; margin-top: 7px; border-radius: 4px; background: var(--table-3); overflow: hidden; }
.mb-track i { display: block; height: 100%; border-radius: 4px; }
.b-gold { background: var(--gold); } .b-green { background: var(--act-rebuy); } .b-ice { background: var(--ice); } .b-rose { background: var(--act-bust); }
.me-cnt { color: var(--ink-2); } .me-cnt b { color: var(--gold-ink); font: 800 18px/1 var(--display); }
.me-progress { height: 4px; margin: -6px 0 16px; border-radius: 3px; background: var(--table-3); overflow: hidden; }
.me-progress i { display: block; height: 100%; background: var(--gold); }
.me-sub { margin: 26px 0 12px; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ro-val { min-height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: var(--r-sm); background: var(--table-3); color: var(--ink-2); }
@media (max-width: 960px) { .me-grid { grid-template-areas: "card" "stats" "regs" "side" "ach"; } }
@media (max-width: 640px) { .me-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; } .me-tiles .me-tile { grid-column: span 2; padding: 12px 4px 10px; } .me-tiles .me-tile:nth-child(n+4) { grid-column: span 3; } .me-tile b { font-size: 24px; } .me-tile > span:last-child { font-size: 12px; } }
.me-who p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Пульт: кнопка и окно «Рука дня» */
.btn.act-hand { background: #f4f1ea; border-color: #f4f1ea; color: #1c1e21; font-weight: 700; }
.btn.act-hand:hover { background: #fff; border-color: #fff; }
.btn.act-hand .hb-cards { font-size: 20px; line-height: 1; color: #1c1e21; }
.btn.act-hand .hb-now { display: inline-flex; gap: 4px; margin-left: 4px; }
.btn.act-hand .hb-now:empty { display: none; }
.btn.act-hand .hb-now b { padding: 1px 5px; border-radius: 5px; background: #1c1e21; color: #fff; font: 800 13px/1.3 var(--display); }
.btn.act-hand .hb-now b.red { color: #ff6b7d; }
.hm-preview { display: flex; justify-content: center; gap: 10px; margin: 4px 0 14px; }
.hm-pc { display: grid; place-items: center; width: 64px; height: 88px; border-radius: 10px; background: #f4f1ea; color: #1c1e21; font: 900 28px/1 var(--display); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .8); }
.hm-pc.red { color: #d3202e; }
.hm-pc.empty { background: var(--table-3); color: var(--ink-3); border: 1.5px dashed var(--line-2); box-shadow: none; }
.hm-card { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 10px; margin: 0 0 10px; }
.hm-card legend { padding: 0 6px; color: var(--ink-2); font-weight: 700; font-size: 13px; }
.hm-ranks { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 560px) { .hm-ranks { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.hm-ranks button, .hm-suits button { min-height: 42px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--table-3); color: var(--ink); font: 800 17px/1 var(--display); cursor: pointer; padding: 0; }
.hm-suits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.hm-suits button { font-size: 24px; }
.hm-suits button.red { color: #ff6b7d; }
.hm-ranks button[aria-pressed='true'], .hm-suits button[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.hm-suits button.red[aria-pressed='true'] { background: #f4f1ea; border-color: #f4f1ea; color: #d3202e; }
.hm-suits button:not(.red)[aria-pressed='true'] { background: #f4f1ea; border-color: #f4f1ea; color: #1c1e21; }
.hand-stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 8px; border: 1px solid var(--line); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.hand-stat:hover { border-color: var(--line-2); }
.hand-stat > span:first-child { color: var(--ink-2); font-size: 13px; }
.hs-cards { display: inline-flex; gap: 6px; }
.hs-cards b { display: grid; place-items: center; min-width: 40px; height: 46px; padding: 0 6px; border-radius: 7px; background: #f4f1ea; color: #1c1e21; font: 900 22px/1 var(--display); box-shadow: 0 3px 8px -4px rgba(0,0,0,.7); }
.hs-cards b.red { color: #d3202e; }
.hs-cards em { font-style: normal; font-size: 13px; color: var(--ink-3); }

/* Тестовый турнир */
.btn.act-test { background: var(--violet); border-color: var(--violet); color: #1a1430; font-weight: 700; }
.btn.act-test:hover { background: #cbbcfd; border-color: #cbbcfd; }
.btn.act-test .ico { color: inherit; }
.test-note { align-items: center; border-color: color-mix(in srgb, var(--violet) 55%, transparent); background: color-mix(in srgb, var(--violet) 10%, var(--table-2)); }
.test-note > .ico { color: var(--violet); }
.test-note .btn { margin-left: auto; flex: none; }
@media (max-width: 640px) { .test-note { flex-wrap: wrap; } .test-note .btn { width: 100%; } }
[data-n][aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }

/* Double Knockout: окно призов */
.pz-count { margin: 0 0 6px; font-size: 16px; color: var(--ink-2); }
.pz-count b { font: 800 22px/1 var(--display); color: var(--gold-ink); }
.pz-count.done b { color: var(--ok); }
.pz-miss { display: grid; gap: 6px; margin-bottom: 8px; }
.pz-miss .bg-row, .ball-given .bg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--table-3); }
.out-row .acts { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Сводка бонусов: быстрые + и − */
.bs-tile { position: relative; padding-bottom: 42px; }
.bs-pm { position: absolute; left: 6px; right: 6px; bottom: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.bs-tile.own .bs-pm { grid-template-columns: 1fr; }
.bs-tile.own { justify-content: flex-start; }
.bs-own { font-size: 12px; color: var(--ink-2); line-height: 1.2; }
.bs-btn { min-height: 30px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--table-2); color: var(--ink); font: 800 18px/1 var(--display); cursor: pointer; padding: 0; }
.bs-btn.plus { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.bs-btn:disabled { opacity: .35; cursor: default; }
.bs-btn:not(:disabled):active { transform: translateY(1px); }
@media (pointer: coarse) { .bs-btn { min-height: 36px; } .bs-tile { padding-bottom: 48px; } }

.v-use { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.arrive-box { margin: 0 0 14px; padding: 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ice) 40%, transparent); background: color-mix(in srgb, var(--ice) 7%, var(--table-2)); }
.ab-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ab-head h3 { margin: 0; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; color: var(--ice-ink); }
.ab-head .btn { margin-left: auto; }
.ab-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-btn { min-height: 44px; }

/* Аватары — квадрат со слегка скругленными углами вместо круга */
.pav { border-radius: 11px; }
.pav.sm { border-radius: 7px; }
.pav.lg { border-radius: 16px; }
.pod.p1 .pav.lg { border-radius: 19px; }
.me-chip .av { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 203, 99, .55); }
.me-chip .av img { object-position: center 20%; }
.me-ava { border-radius: 20px; }
.me-ava.big { border-radius: 26px; }
.me-ava img { border-radius: inherit; }
.me-ava .ava-cam { border-radius: 12px; }
.pf-ava { border-radius: 24px; }
@media (max-width: 640px) { .me-ava { border-radius: 16px; } .pf-ava { border-radius: 20px; } .me-ava .ava-cam { border-radius: 10px; } }

/* Согласия игрока, организатор клуба, таблица в документах */
.privacy-box form { display: grid; gap: 10px; justify-items: start; }
.privacy-box .check { margin: 0; }
.privacy-box.ask { margin-bottom: 20px; border: 1px solid var(--gold); }
.operator h2 { margin-bottom: 14px; }
.operator dl { margin: 0 0 14px; display: grid; gap: 8px; }
.operator dl div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; }
.operator dt { color: var(--ink-3); } .operator dd { margin: 0; overflow-wrap: anywhere; }
.footer .footer-op { grid-column: 1 / -1; font-size: 13px; max-width: none; padding-top: 18px; border-top: 1px solid var(--line); }
.tag-no { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.doc-table { overflow-x: auto; margin: 0 0 14px; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: .9em; }
.doc-table th, .doc-table td { border: 1px solid currentColor; padding: 6px 8px; text-align: left; vertical-align: top; }
.doc-date { margin-top: 24px; opacity: .7; }
@media (max-width: 640px) {
  .operator dl div { grid-template-columns: 1fr; gap: 0; }
  .doc-table thead { display: none; }
  .doc-table table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; }
  .doc-table tr { margin-bottom: 12px; }
  .doc-table td { border-bottom-width: 0; }
  .doc-table td:last-child { border-bottom-width: 1px; }
  .doc-table td::before { content: attr(data-l); display: block; font-weight: 700; font-size: .85em; opacity: .7; }
}

/* Правила клуба: вертикальные игральные карты, в углах — значок клуба */
.hand-title { margin: 28px 0 14px; color: var(--gold-ink); }
.hand-title:first-of-type { margin-top: 0; }
.hand { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); align-items: stretch; }
.pcard { aspect-ratio: 5 / 7; min-height: 0; padding: 60px 22px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.pcard h3 { font-size: 21px; overflow-wrap: break-word; hyphens: auto; }
.pcard p { white-space: pre-line; font-size: 14.5px; }
.pc-logo { position: absolute; top: 14px; left: 14px; width: 34px; height: 31.4px; background: url(/img/logo.svg) no-repeat 50% 4.7% / 156.25% auto; filter: brightness(.66) saturate(1.2); }
.pc-logo.br { top: auto; left: auto; right: 14px; bottom: 14px; transform: rotate(180deg); }
.hand-outro { margin: 24px 0 0; color: #c9d3d2; text-align: center; }
.consent-check a { color: #8cc8ff; }
@media (max-width: 640px) {
  .hand { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 4px 18px 16px; scroll-padding: 0 18px; align-items: stretch; -webkit-overflow-scrolling: touch; }
  .pcard { flex: 0 0 min(250px, 76%); aspect-ratio: auto; min-height: 350px; padding: 56px 20px; scroll-snap-align: start; }
}

/* Тройка лидеров: нажимается вся карточка, а не только ник — как строки ниже */
.pod { position: relative; cursor: pointer; }
.pod .pod-name { position: static; }
.pod .pod-name::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.pod .pod-name:focus-visible { outline: none; }
.pod .pod-name:focus-visible::after { outline: 2px solid var(--gold); outline-offset: 2px; }
.pod:hover { filter: brightness(1.08); }

/* Телефон: сдвиг в рейтинге (стрелка и число) — под местом, чтобы не уходил под фото */
@media (max-width: 720px) {
  .race-row .pos, .race.compact .race-row .pos { flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
  .race-row .pos .mv { font-size: 12px; white-space: nowrap; }
}

/* Схема столов: карточка игрока по нажатию на место */
.final-map a.seat.sel circle { stroke: var(--gold); transform: scale(1.22); }
.final-map .seat-tip { transform: none; padding: 0; white-space: normal; width: max-content; max-width: min(270px, 100%); visibility: hidden; transition: opacity .15s; }
.final-map .seat-tip.on { visibility: visible; pointer-events: auto; }
.st-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; text-decoration: none; border-radius: 8px; }
.st-card .pav.lg { width: 64px; height: 64px; flex: none; }
.st-txt { display: grid; gap: 2px; min-width: 0; }
.st-txt b { overflow-wrap: anywhere; line-height: 1.15; }
.st-txt small { font-size: 13px; }
.st-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-weight: 700; font-size: 13px; text-decoration: underline; }
.st-go .ico { width: 14px; height: 14px; }
.final-map a.seat, .final-map a.seat text { text-decoration: none; }

/* Карточка игрока за столом */
.final-map .seat-tip { width: 220px; max-width: 100%; background: linear-gradient(170deg, #33383d, #1d2023); color: var(--ink); border: 1px solid rgba(255, 203, 99, .6); border-radius: 16px; box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .75), 0 0 0 4px rgba(255, 203, 99, .08); transform: translateY(6px) scale(.96); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s; }
.final-map .seat-tip.on { transform: none; }
.final-map .seat-tip.below { transform: translateY(-6px) scale(.96); }
.final-map .seat-tip.below.on { transform: none; }
.final-map .seat-tip::after { content: ''; position: absolute; left: var(--ax, 50%); bottom: -7px; width: 12px; height: 12px; margin-left: -6px; background: #1d2023; border: solid rgba(255, 203, 99, .6); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.final-map .seat-tip.below::after { bottom: auto; top: -7px; background: #33383d; border-width: 1px 0 0 1px; }
.final-map .st-card { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 14px 14px 12px; }
.st-seat { font: 800 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.st-face { width: 84px; height: 84px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: var(--table-3); box-shadow: 0 0 0 2px var(--gold), 0 8px 22px -8px rgba(255, 203, 99, .55); }
.st-face img { width: 100%; height: 100%; object-fit: cover; }
.st-face span { font: 900 38px/1 var(--display); color: var(--gold-ink); }
.final-map .st-card .st-nick { font: 800 21px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: anywhere; color: var(--ink); }
.st-stats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 8px 0; }
.st-stats > span { display: grid; gap: 2px; }
.st-stats > span + span { border-left: 1px solid rgba(255, 255, 255, .12); }
.final-map .st-stats b { font: 900 22px/1 var(--display); color: var(--ink); }
.st-stats small { font-size: 12px; color: var(--ink-3); }
.final-map .st-card .st-go { margin: 0; text-decoration: none; color: var(--gold-ink); }
@media (prefers-reduced-motion: reduce) { .final-map .seat-tip { transition: none; transform: none; } }

/* Админка, «Скрыть цифры»: размыты только ребаи и аддоны (кнопки остаются рабочими) */
.nums-btn .nb-show, .nums-btn .nb-hide { display: inline-flex; align-items: center; gap: 8px; }
.nums-btn .nb-show, .hide-nums .nums-btn .nb-hide { display: none; }
.hide-nums .nums-btn .nb-show { display: inline-flex; }
.hide-nums .nums-btn { border-color: var(--gold); color: var(--gold-ink); }
.hide-nums :is(#lstats .stat:nth-child(2) b, #lbonus .bs-tile.rb :is(b, small), #lbonus .bs-tile.ad :is(b, small), .sens, .hist-row.rbh .h-w, .hist-row.rbh .h-c, .hist-row.rbh .h-m,
  .roster-main td[data-label="Ребаи"] input, .roster-main td[data-label="Аддоны"] input) { filter: blur(7px); user-select: none; }
.live-side .live-nums { width: 100%; justify-content: center; }

/* ── Рулетка призов ── */
.wh-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.wh-stage { display: grid; justify-items: center; gap: 22px; min-width: 0; padding: 30px 18px 24px; border-radius: 28px; background: radial-gradient(110% 80% at 50% 0%, #2f4a4c 0%, #233436 45%, #1b2526 100%); box-shadow: inset 0 0 0 8px #17191b, inset 0 0 0 10px rgba(255, 203, 99, .35); }
.wh-wheel { position: relative; width: min(440px, 100%); aspect-ratio: 1; }
.wh-wheel svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .55)); }
.wh-rotor { transform-origin: 0 0; }
.wh-big { font: 900 19px var(--display); letter-spacing: .01em; }
.wh-small { font: 700 10.5px var(--text); opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.wh-lamp { fill: #ffe6ad; opacity: .45; }
.wh-lamp.b { opacity: .9; }
.wh-wheel.can .wh-lamp, .wh-wheel.spinning .wh-lamp { animation: whLamp 1s steps(1) infinite; }
.wh-wheel.can .wh-lamp.b, .wh-wheel.spinning .wh-lamp.b { animation-delay: .5s; }
.wh-wheel.spinning .wh-lamp { animation-duration: .3s; }
.wh-wheel.spinning .wh-lamp.b { animation-delay: .15s; }
@keyframes whLamp { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .2; } }
.wh-pointer { position: absolute; z-index: 2; left: 50%; top: -6px; margin-left: -17px; border: 17px solid transparent; border-top: 34px solid #ffcb63; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .6)); }
.wh-spin { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: radial-gradient(circle at 35% 30%, #ffe3a3, #ffcb63 55%, #d99a2b); color: #1d1f22; font: 900 clamp(13px, 3.6vw, 17px)/1 var(--display); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 18px -4px rgba(0, 0, 0, .7); }
.wh-spin:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.06); }
.wh-spin:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wh-spin:disabled { cursor: default; background: #4a4f55; color: #c9ced3; }
.wh-wheel.spinning .wh-spin:disabled { background: #8f7440; color: #1d1f22; }
.wh-status { width: 100%; max-width: 440px; text-align: center; display: grid; justify-items: center; gap: 6px; padding: 16px 18px; border-radius: 16px; background: rgba(0, 0, 0, .28); }
.wh-status > b { font: 800 26px/1.15 var(--display); text-transform: uppercase; }
.wh-status p { margin: 0; color: #c9d3d2; line-height: 1.5; }
.wh-status.pending { background: rgba(255, 203, 99, .12); box-shadow: inset 0 0 0 1.5px var(--gold); }
.wh-status.pending > b { color: var(--gold-ink); }
.wh-status.pending strong { color: var(--ink); }
.wh-tag { font: 800 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.wh-side { display: grid; gap: 16px; min-width: 0; }
.wh-rules, .wh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wh-rules li, .wh-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.wh-rules li b { white-space: nowrap; color: var(--gold-ink); }
.wh-rules li[class^="rar-"] span { color: var(--rar); }
.wh-th { margin: 14px 0 4px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.wh-th.middle { color: #7fb0ff; } .wh-th.jackpot { color: var(--gold-ink); }
.wh-win { display: grid; justify-items: center; text-align: center; gap: 8px; }
.wh-win-ico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffe3a3, #ffcb63 55%, #d99a2b); color: #1d1f22; box-shadow: 0 0 0 8px rgba(255, 203, 99, .16), 0 0 50px rgba(255, 203, 99, .45); animation: whPop .5s var(--ease) both; }
.wh-win-ico .ico { width: 42px; height: 42px; }
.wh-win-k { margin: 6px 0 0; font: 800 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.wh-win h2 { margin: 0; }
@keyframes whPop { from { transform: scale(.4); opacity: 0; } }
.wh-teaser { display: flex; align-items: center; gap: 20px; padding: 22px; border-radius: 22px; text-decoration: none; color: var(--ink); background: radial-gradient(120% 120% at 0% 0%, #2f4a4c, #1b2526 70%); border: 1px solid rgba(255, 203, 99, .35); transition: transform .2s var(--ease), border-color .2s; }
.wh-teaser:hover { transform: translateY(-2px); border-color: var(--gold); }
.wh-teaser.ready, .wh-teaser.pending { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 203, 99, .12); }
.wh-teaser.compact { padding: 16px; gap: 14px; }
.wh-mini { flex: none; width: 112px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ffcb63 0 17%, #1b1d20 18% 23%, transparent 24%), repeating-conic-gradient(#3a4046 0 32.7deg, #2f5fa8 32.7deg 65.4deg, #3a4046 65.4deg 98.2deg, #ffcb63 98.2deg 130.9deg); box-shadow: 0 0 0 4px #1b1d20, 0 0 0 6px #ffcb63, 0 14px 24px -10px #000; animation: whIdle 18s linear infinite; }
.wh-teaser.compact .wh-mini { width: 62px; }
@keyframes whIdle { to { transform: rotate(360deg); } }
.wh-tz-t { display: grid; gap: 6px; min-width: 0; }
.wh-tz-t b { font: 800 24px/1.1 var(--display); text-transform: uppercase; }
.wh-teaser.compact .wh-tz-t b { font-size: 19px; }
.wh-tz-t span { color: #c9d3d2; font-size: 14px; line-height: 1.45; }
.wh-tz-t em { font-style: normal; font-weight: 700; color: var(--gold-ink); display: inline-flex; align-items: center; gap: 6px; }
.season-grid.solo { grid-template-columns: minmax(0, 1fr); }
.btn.prize { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
@media (max-width: 900px) { .wh-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .wh-stage { padding: 24px 10px 18px; } .wh-teaser { padding: 16px; gap: 14px; } .wh-mini { width: 78px; } }
@media (prefers-reduced-motion: reduce) { .wh-mini, .wh-lamp, .wh-win-ico { animation: none !important; } }
.wh-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.wh-row-t { display: grid; gap: 2px; min-width: 0; }
.wh-row-a { display: flex; flex-wrap: wrap; gap: 8px; }
.wh-wait { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: grid; gap: 4px; font-size: 13px; }
.wh-wait li { display: flex; justify-content: space-between; gap: 10px; text-align: left; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.wh-wait b { white-space: nowrap; color: var(--gold-ink); }
.wh-how { margin: 10px 0 8px; line-height: 1.5; }

/* Главная, «Гонка сезона»: лидеры справа */
.season-side { display: grid; gap: 16px; min-width: 0; align-content: center; }
.leaders { padding: 22px; border-radius: 22px; background: var(--table-2); border: 1px solid var(--line); }
.ld-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.ld-head h3 { margin: 0; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.ld-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ld a { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--table); border: 1px solid transparent; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s var(--ease); }
.ld a:hover { border-color: var(--line-2); transform: translateX(3px); }
.ld .pav { width: 40px; height: 40px; }
.ld-pos { font: 900 24px/1 var(--display); text-align: center; color: var(--ink-3); }
.ld.p1 .ld-pos { color: var(--gold-ink); } .ld.p2 .ld-pos { color: #d5dbe2; } .ld.p3 .ld-pos { color: #d99a63; }
.ld.p1 a { background: linear-gradient(100deg, rgba(255, 203, 99, .16), var(--table) 70%); border-color: rgba(255, 203, 99, .4); }
.ld.me a { border-color: var(--gold); }
.ld-who { display: grid; gap: 6px; min-width: 0; }
.ld-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ld-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.ld-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink-3); }
.ld.p1 .ld-bar i { background: var(--gold); }
.ld-pts { text-align: right; font: 900 22px/1 var(--display); }
.ld-pts small { display: block; margin-top: 3px; font: 600 11px/1 var(--text); color: var(--ink-3); }
.ld-cut { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding-top: 14px; border-top: 2px dashed rgba(255, 203, 99, .4); }
.ld-cut span { display: grid; gap: 2px; min-width: 0; }
.ld-cut small { color: var(--ink-3); font-size: 13px; }
@media (max-width: 640px) { .leaders { padding: 16px 12px; } .ld a { grid-template-columns: 24px auto minmax(0, 1fr) auto; gap: 10px; padding: 9px 10px; } .ld .pav { width: 34px; height: 34px; } .ld-pos { font-size: 20px; } .ld-pts { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .ld a, .ld a:hover { transform: none; transition: none; } }

/* Достижения: обычные — изумрудные */
.rar-common { --rar: #3fcf8e; }

/* ── Спин-бонус: кейс, прямоугольники бонусов, лента ── */
.case-page { max-width: 640px; text-align: center; }
.case-page h1 { margin-top: 26px; }
.case-demo { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--gold); background: rgba(255, 203, 99, .1); font-size: 14px; line-height: 1.5; }
.case-stage { position: relative; height: 300px; display: grid; place-items: center; perspective: 1100px; }
.pc3d { position: relative; width: min(380px, 90%); height: 208px; transform-style: preserve-3d; }
.pc-handle { position: absolute; left: 50%; top: -26px; width: 128px; height: 34px; margin-left: -64px; border: 9px solid #2a2c30; border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18); }
.pc-inside, .pc-lid, .pc-face, .pc-back { position: absolute; inset: 0; border-radius: 16px; }
.pc-inside { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px; background: radial-gradient(120% 100% at 50% 0%, #20352f, #0d1412 70%); border: 7px solid #26282c; box-shadow: inset 0 14px 30px rgba(0, 0, 0, .8), 0 26px 40px -18px #000; }
.pc-inside span { border-radius: 8px; background: repeating-linear-gradient(0deg, #b98b3a 0 5px, #6d5120 5px 7px); opacity: .55; box-shadow: inset 0 0 12px #000; }
.pc-inside span:nth-child(even) { background: repeating-linear-gradient(0deg, #8f2e35 0 5px, #4f171c 5px 7px); }
.pc-lid { transform-origin: 50% 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.25, .8, .3, 1); z-index: 2; }
.pc-face, .pc-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pc-face { display: grid; place-items: center; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 5px, rgba(0, 0, 0, .35) 5px 6px, transparent 6px 22px), linear-gradient(155deg, #33363b, #1a1c1f 45%, #101113 70%, #26282c); border: 3px solid #4a4e55; box-shadow: inset 0 0 0 5px #141518, inset 0 2px 8px rgba(255, 255, 255, .12), 0 28px 40px -20px #000; }
.pc-face img { width: 132px; filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 14px rgba(255, 203, 99, .35)); }
.pc-back { background: linear-gradient(200deg, #1b1d20, #0d0e10); border: 7px solid #26282c; transform: rotateX(180deg); }
.cn { position: absolute; width: 34px; height: 34px; border: 7px solid #b9c0c8; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
.cn::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #5b6068; box-shadow: inset 0 1px 1px #000; }
.cn.tl { left: -3px; top: -3px; border-width: 7px 0 0 7px; border-radius: 16px 0 0 0; } .cn.tl::after { left: 3px; top: 3px; }
.cn.tr { right: -3px; top: -3px; border-width: 7px 7px 0 0; border-radius: 0 16px 0 0; } .cn.tr::after { right: 3px; top: 3px; }
.cn.bl { left: -3px; bottom: -3px; border-width: 0 0 7px 7px; border-radius: 0 0 0 16px; } .cn.bl::after { left: 3px; bottom: 3px; }
.cn.br { right: -3px; bottom: -3px; border-width: 0 7px 7px 0; border-radius: 0 0 16px 0; } .cn.br::after { right: 3px; bottom: 3px; }
.pc-latch { position: absolute; z-index: 3; bottom: -9px; width: 34px; height: 40px; border-radius: 7px; background: linear-gradient(180deg, #e3e7ec, #8d949d 45%, #c7ccd3 60%, #6e747c); box-shadow: 0 5px 10px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(0, 0, 0, .25); transform-origin: 50% 100%; transition: transform .22s ease-in; }
.pc-latch::after { content: ''; position: absolute; left: 9px; right: 9px; top: 9px; height: 10px; border-radius: 3px; background: #3a3e44; }
.pc-latch.l { left: 18%; } .pc-latch.r { right: 18%; }
.pc3d.unlock .pc-latch { transform: perspective(200px) rotateX(-140deg) translateY(4px); }
.pc3d.unlock .pc-latch.r { transition-delay: .18s; }
.pc3d.open .pc-lid { transform: rotateX(118deg); }
.pc3d.open .pc-latch { opacity: 0; transition: opacity .2s; }
.case-count { margin: 18px 0 12px; font-size: 18px; }
.case-count b { font: 900 30px/1 var(--display); color: var(--gold-ink); vertical-align: -3px; }
.case-btn { width: min(340px, 100%); justify-content: center; }
.case-hint { margin: 12px 0 4px; color: var(--ink-2); font-size: 14px; }
.case-rules { margin: 0; color: var(--ink-3); font-size: 13px; }
.case-h { margin: 34px 0 14px; font-size: 24px; text-transform: uppercase; }
/* прямоугольник бонуса */
.bn { --neon: #b9c2cb; position: relative; display: grid; align-content: center; justify-items: center; gap: 6px; min-height: 108px; padding: 14px 8px 18px; border-radius: 12px; background: #18191c; border: 1px solid #2a2c31; text-align: center; overflow: hidden; min-width: 0; }
.bn::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--neon); box-shadow: 0 0 14px 2px var(--neon), 0 -6px 22px 2px color-mix(in srgb, var(--neon) 55%, transparent); }
.bn b { font: 900 30px/1 var(--display); letter-spacing: .01em; color: #fff; white-space: nowrap; }
.bn b.long { font-size: 26px; }
.bn small { font-size: 12px; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: #aeb4bb; }
.bn.rare { --neon: #2fd39a; } .bn.epic { --neon: #ff3b52; }
.bn.legendary { --neon: #ffcb63; border: 1.5px solid #ffcb63; box-shadow: inset 0 0 22px rgba(255, 203, 99, .14); }
.bn.legendary b { color: #ffdd98; }
.bn.big { width: min(260px, 100%); min-height: 150px; margin: 0 auto; }
.bn.big b { font-size: 46px; } .bn.big small { font-size: 14px; }
.bn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.case-odds { margin-top: 14px; text-align: left; font-size: 13px; color: var(--ink-2); }
.case-odds summary { cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 40px; color: var(--ink-3); }
.case-odds p { margin: 6px 0; line-height: 1.5; }
.case-note { margin: 40px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--ink-3); }
/* лента поверх открытого кейса */
.reel { position: absolute; z-index: 5; left: 0; right: 0; top: 50%; height: 124px; margin-top: -62px; overflow: hidden; border-radius: 14px; background: #0c0d0f; border: 1px solid #3a3e45; box-shadow: 0 18px 44px -10px #000; animation: reelIn .3s var(--ease) both; }
@keyframes reelIn { from { opacity: 0; transform: scaleY(.6); } }
.reel-strip { display: flex; height: 100%; will-change: transform; }
.reel-strip .bn { flex: 0 0 var(--cw, 25%); min-height: 0; height: 100%; border-radius: 0; border-width: 0 1px; padding: 10px 4px 16px; }
.reel-strip .bn.legendary { border: 1.5px solid #ffcb63; }
.reel-strip .bn b { font-size: clamp(17px, 5.4vw, 27px); }
.reel-strip .bn small { font-size: clamp(9px, 2.5vw, 11px); letter-spacing: .03em; }
.reel-strip .bn.won { background: #24262b; animation: wonPulse .6s var(--ease) 2; }
@keyframes wonPulse { 50% { transform: scale(1.08); filter: brightness(1.35); } }
.reel-line { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #ffcb63; box-shadow: 0 0 14px 3px rgba(255, 203, 99, .75); }
/* активный бонус и окно результата */
.case-active { margin: 4px 0 12px; padding: 18px 16px; border-radius: 16px; border: 1.5px solid var(--gold); background: rgba(255, 203, 99, .08); }
.case-active h2 { margin: 14px 0 8px; font-size: 22px; }
.case-active p { margin: 0; line-height: 1.6; color: var(--ink-2); font-size: 14.5px; }
.case-active p b { color: var(--gold-ink); white-space: nowrap; }
.case-win { display: grid; justify-items: center; text-align: center; gap: 10px; }
.case-win .bn.big { width: 260px; max-width: 100%; animation: winPop .55s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes winPop { from { transform: scale(.45); opacity: 0; } }
.case-win h2 { margin: 4px 0 0; }
.mini-case { flex: none; position: relative; width: 104px; height: 66px; border-radius: 9px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 8px), linear-gradient(160deg, #33363b, #111214); border: 2px solid #7d848d; box-shadow: 0 12px 20px -10px #000; }
.mini-case::before { content: ''; position: absolute; left: 50%; top: -11px; width: 40px; height: 9px; margin-left: -20px; border: 4px solid #2f3237; border-bottom: 0; border-radius: 8px 8px 0 0; }
.mini-case i { position: absolute; left: 50%; top: 50%; width: 34px; height: 30px; margin: -17px 0 0 -17px; background: url(/img/logo.svg) no-repeat 50% 4.7% / 156.25% auto; }
.wh-teaser.compact .mini-case { width: 66px; height: 44px; }
.wh-teaser.compact .mini-case i { transform: scale(.7); }
.tabbar.six a { font-size: 10.5px; padding-left: 0; padding-right: 0; }
.tabbar.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 480px) { .case-stage { height: 270px; } .pc3d { height: 180px; } .bn b { font-size: 27px; } .mini-case { width: 78px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .pc-lid, .pc-latch { transition: none; } .reel, .case-win .bn.big, .reel-strip .bn.won { animation: none; } }

/* Бонусы игрока: в кабинете и в админке */
.my-bonuses { margin: 0 0 24px; }
.mb-active { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; margin-bottom: 12px; border-radius: 16px; border: 1.5px solid var(--gold); background: rgba(255, 203, 99, .08); }
.mb-active > div:last-child > b { font: 800 21px/1.2 var(--display); text-transform: uppercase; }
.mb-active p { margin: 6px 0 0; }
.mb-active strong { color: var(--gold-ink); white-space: nowrap; }
.mb-past summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--ink-3); font-size: 14px; }
.pb { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 203, 99, .55); background: rgba(255, 203, 99, .07); text-align: left; }
.pb h3 { margin: 0 0 4px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-ink); }
.pb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pb-row > div { display: grid; gap: 2px; min-width: 0; }
.pb-row small { font-size: 12.5px; color: var(--ink-3); }
.pb-row .btn { flex: none; }
@media (max-width: 480px) { .mb-active { grid-template-columns: minmax(0, 1fr); } }
.roster-main td .btn.xs { white-space: nowrap; height: auto; flex: none; }

/* Спин-бонус: красочные карточки и шансы */
.bn, .odds-tier { --neon: #b9c2cb; }
.bn.rare, .odds-tier.rare { --neon: #2fd39a; }
.bn.epic, .odds-tier.epic { --neon: #ff3b52; }
.bn.legendary, .odds-tier.legendary { --neon: #ffcb63; }
.bn { min-height: 150px; gap: 4px; background: radial-gradient(90% 70% at 50% 22%, color-mix(in srgb, var(--neon) 26%, transparent), transparent 70%), linear-gradient(180deg, #202228, #141518); border-color: color-mix(in srgb, var(--neon) 38%, #2a2c31); }
.bn.legendary { background: radial-gradient(100% 80% at 50% 20%, rgba(255, 203, 99, .38), transparent 70%), linear-gradient(180deg, #2a2418, #161309); }
.bn.legendary::before { content: ''; position: absolute; inset: -40% auto -40% -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 236, 180, .28), transparent); transform: skewX(-12deg); animation: bnShine 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes bnShine { 0%, 55% { left: -70%; } 100% { left: 150%; } }
.bn.big { min-height: 200px; }
.reel { height: 148px; margin-top: -74px; }
.reel-strip .bn { min-height: 0; }
.reel-strip .bn::before { display: none; }
.odds { text-align: left; }
.odds .case-h { text-align: center; }
.odds-tier { margin-bottom: 10px; padding: 12px 12px 10px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--neon) 40%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--neon) 14%, transparent), transparent 70%), #18191c; }
.odds-tier h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--neon); }
.odds-prizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 6px; margin: 0; padding: 0; list-style: none; }
.odds-prizes li { display: grid; justify-items: center; align-content: start; gap: 4px; flex: 0 1 calc(25% - 5px); min-width: 72px; text-align: center; font-size: 12px; line-height: 1.3; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .bn.legendary::before { display: none; } }

/* Спин-бонус: кейс картинками — крупный, при открытии сменяется открытым с фишками */
.case-stage { height: auto; margin: 4px -14px 0; perspective: none; }
.pc-art { position: relative; width: min(580px, 100%); aspect-ratio: 960 / 990; margin: 0 auto; }
.pc-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .55)); transition: opacity .35s ease, transform .55s cubic-bezier(.2, 1.25, .4, 1); }
.pc-art .pc-closed { animation: caseFloat 4.5s ease-in-out infinite; }
.pc-art .pc-opened { opacity: 0; transform: scale(.9); }
.pc-art::before { content: ''; position: absolute; inset: 18% 8% 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 203, 99, .26), transparent); transition: opacity .5s, transform .6s var(--ease); }
.pc-art.unlock .pc-closed { animation: caseShake 1.3s ease-in-out 1 both; transform-origin: 50% 86%; }
.pc-art.unlock::before { animation: caseGlow 1.3s ease-in 1 both; }
.pc-art.open .pc-closed { opacity: 0; transform: scale(1.08); animation: none; }
.pc-art.open .pc-opened { opacity: 1; transform: none; }
.pc-art.open::before { transform: scale(1.5); background: radial-gradient(closest-side, rgba(255, 214, 130, .55), transparent); }
@keyframes caseFloat { 50% { transform: translateY(-7px); } }
/* Кейс приседает, раскачивается все сильнее, затихает и перед открытием поджимается */
@keyframes caseShake {
  10% { transform: translateY(4px) scale(1.02, .96); }
  20% { transform: translateY(-5px) rotate(-1.2deg) scale(.99, 1.01); }
  30% { transform: translateY(-7px) rotate(1.8deg); }
  40% { transform: translateY(-9px) rotate(-2.4deg) scale(1.01); }
  50% { transform: translateY(-10px) rotate(2.6deg) scale(1.02); }
  60% { transform: translateY(-9px) rotate(-2deg) scale(1.02); }
  70% { transform: translateY(-6px) rotate(1.3deg) scale(1.01); }
  80% { transform: translateY(-2px) rotate(-.6deg); }
  90% { transform: translateY(5px) scale(1.04, .94); }
  100% { transform: translateY(-4px) scale(.99, 1.03); }
}
@keyframes caseGlow { from { opacity: .6; } to { opacity: 1; filter: brightness(1.9); } }
.case-stage .reel { top: 34%; }
.case-count { margin-top: 6px; }
.mini-case, .wh-teaser.compact .mini-case { border: 0; border-radius: 0; background: url(/img/case/case-closed.webp) center / contain no-repeat; box-shadow: none; height: auto; aspect-ratio: 960 / 990; }
.mini-case::before, .mini-case i { display: none; }
@media (prefers-reduced-motion: reduce) { .pc-art img, .pc-art .pc-closed, .pc-art.unlock .pc-closed, .pc-art.unlock::before { animation: none; transition: none; } }
.case-stage { overflow-x: clip; }

/* Свечение кейса растворяется само: никаких обрезок по краям блока и четких границ */
.case-stage { overflow: visible; }
#app:has(.case-page) { overflow-x: clip; }
.pc-art::before, .pc-art.open::before { inset: 0 2%; border-radius: 0; transform: none; }
.pc-art::before { background: radial-gradient(closest-side, rgba(255, 203, 99, .22), rgba(255, 203, 99, .07) 55%, transparent 96%); }
.pc-art.open::before { background: radial-gradient(closest-side, rgba(255, 214, 130, .46), rgba(255, 203, 99, .16) 52%, transparent 96%); }
.pc-art img { filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .45)); }

/* Значки бонусов картинками */
.bn-art { width: 92px; height: 77px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)) drop-shadow(0 0 10px color-mix(in srgb, var(--neon, #b9c2cb) 40%, transparent)); }
.bn.big .bn-art { width: 168px; height: 140px; }
.reel-strip .bn .bn-art { width: 68px; height: 57px; }
.odds-prizes .bn-art { width: 66px; height: 55px; }

/* Финалы: место, фото, имя и очки в одну строку */
.fin-podium li { grid-template-columns: 30px auto minmax(0, 1fr) auto; }
.fin-podium li a { overflow-wrap: anywhere; }
/* Номер клубной карты в кабинете не обрезается */
.me-who p { white-space: normal; overflow: visible; text-overflow: clip; }
/* Нечетная плитка быстрых разделов занимает всю строку */
.quick-nav a:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Кому выдан кейс вручную: сводка и список по кнопке */
.wh-granted { margin-top: 12px; }
.wh-granted summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; }
.wh-granted summary b { color: var(--gold-ink); }
.wh-granted input { width: 100%; margin: 6px 0; }
.wh-granted ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; }
.wh-granted li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 2px; border-top: 1px solid var(--line); font-size: 14px; }
.wh-granted li[hidden] { display: none; }

/* Скрытый игрок не нажимается; подпись над необязательными согласиями */
a.no-link { cursor: default; text-decoration: none; }
a.no-link:hover { color: inherit; }
.consent-opt { margin: 14px 0 6px; font-size: 13px; color: var(--ink-2); }

/* «Войти» в шапке: на телефоне золотая и крупная, чтобы попадать пальцем */
@media (max-width: 520px) { .btn.hdr-login { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 700; min-height: 40px; } }

/* «Начислить очки»: список игроков со своей прокруткой */
.xp-all { margin: 4px 0 8px; }
#xp-q { width: 100%; margin-bottom: 6px; }
.xp-list { max-height: 34vh; overflow: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 0; }
.xp-list label { margin: 0; min-height: 36px; align-items: center; }
.xp-list label[hidden] { display: none; }

/* «2х очки за нокауты» */
.ko2 { display: grid; gap: 8px; justify-items: center; margin: 10px 0; }
.mb-active .ko2 { justify-items: start; }
.ko2 p { margin: 0; }
.x2-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--gold); color: var(--gold-ink); font: 700 13px/1 var(--display); white-space: nowrap; }
