/* Титан: стили игры поверх «Бумаги» (paper.css). Цвета, радиусы и шаги — только токены. */

/* ── Раскладка ────────────────────────────────────────────────────── */
.stack-8 { display: flex; flex-direction: column; gap: var(--pw-s-2); }
.stack-12 { display: flex; flex-direction: column; gap: var(--pw-s-3); }
.stack-16 { display: flex; flex-direction: column; gap: var(--pw-s-4); }
.stack-24 { display: flex; flex-direction: column; gap: var(--pw-s-6); }
.row-8 { display: flex; gap: var(--pw-s-2); align-items: center; flex-wrap: wrap; }
.row-8 > .pw-input { flex: 1 1 140px; width: auto; }
.narrow { width: min(680px, 100%); margin: 0 auto; padding: 0 var(--pw-s-4); }
.page-pad { padding-top: calc(var(--pw-s-6) + env(safe-area-inset-top, 0px)); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.center { text-align: center; }
.center-screen { min-height: 100dvh; justify-content: center; align-items: flex-start; }
.noscript { padding: 24px; }
.is-bad { color: var(--pw-bad-ink); }
.is-neg { color: var(--pw-bad-ink); }
.logo-round { border-radius: var(--pw-r-card); }
.table-note { margin: var(--pw-s-2) 0 0; }

/* ── Связь ────────────────────────────────────────────────────────── */
.net-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 300; text-align: center; font: 600 13px/28px var(--pw-font-text); background: var(--pw-warn); color: #000; transform: translateY(-100%); transition: transform var(--pw-t-base) var(--pw-ease); pointer-events: none; }
.net-bar[data-state="reconnecting"], .net-bar[data-state="offline"] { transform: none; }

/* ── Комплекс: цвет рядом с именем ────────────────────────────────── */
.co-dot { display: inline-block; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 0 2px var(--pw-paper); }
.co-name { display: inline-flex; align-items: center; gap: var(--pw-s-2); min-width: 0; }
.co-name > span:not(.pw-chip) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Главная ──────────────────────────────────────────────────────── */
.landing { width: min(960px, 100%); margin: 0 auto; padding: calc(var(--pw-s-8) + env(safe-area-inset-top, 0px)) var(--pw-s-4) var(--pw-s-12); display: flex; flex-direction: column; gap: var(--pw-s-6); }
.landing__hero { display: flex; gap: var(--pw-s-5); align-items: flex-start; }
.landing__logo { border-radius: 18px; flex: 0 0 auto; }
.landing__title { font: 700 44px/1 var(--pw-font-display); letter-spacing: -0.03em; margin: var(--pw-s-1) 0 var(--pw-s-3); }
.landing__lead { font-size: 18px; line-height: 1.5; color: var(--pw-ink-soft); margin: 0; }
.landing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--pw-s-4); }
.landing__card p { margin: 0; }
.landing__foot { display: flex; gap: var(--pw-s-2); flex-wrap: wrap; font-size: 15px; }
.code-input { font: 700 24px/1 var(--pw-font-display); letter-spacing: 0.2em; text-align: center; max-width: 220px; }

.setup__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--pw-s-2); }
.setup__block { display: flex; flex-direction: column; gap: var(--pw-s-3); }
.setup__note { margin: 0; }
.setup__submit { position: sticky; bottom: 0; padding: var(--pw-s-3) 0 calc(var(--pw-s-3) + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--pw-canvas) 70%, transparent); }
.opt-grid { display: grid; gap: var(--pw-s-3); }
.opt-grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.opt-grid--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.opt { display: flex; flex-direction: column; gap: var(--pw-s-2); text-align: left; padding: var(--pw-s-4); border: 1.5px solid var(--pw-line); border-radius: var(--pw-r-card); background: var(--pw-paper); color: var(--pw-ink); cursor: pointer; transition: border-color var(--pw-t-fast) var(--pw-ease), transform var(--pw-t-fast) var(--pw-ease); }
.opt:active { transform: scale(0.99); }
.opt.is-on { border-color: var(--pw-accent); box-shadow: 0 0 0 3px var(--pw-accent-soft); }
.opt__title { font: 600 17px/22px var(--pw-font-display); }
.opt__lead { color: var(--pw-ink-soft); font-size: 15px; line-height: 1.4; }
.opt__extra { display: flex; flex-direction: column; gap: var(--pw-s-2); align-items: flex-start; }
.opt__points { margin: 0; padding-left: 18px; color: var(--pw-ink-muted); font-size: 14px; line-height: 1.45; }
.opt__text { color: var(--pw-ink-muted); font-size: 14px; line-height: 1.45; }
.stepper { display: inline-flex; align-items: center; gap: var(--pw-s-2); }
.stepper__btn { width: 44px; padding: 0; font-size: 20px; }
.stepper__value { min-width: 2ch; text-align: center; font: 700 20px/1 var(--pw-font-display); font-variant-numeric: tabular-nums; }
.estimate { color: var(--pw-accent); }
.pw-row--wrap { flex-wrap: wrap; }
.row-note { display: block; color: var(--pw-ink-muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
a.pw-row, button.pw-row { text-decoration: none; color: inherit; border: 0; background: transparent; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.pw-row--link:active { background: var(--pw-fill); }
label.pw-row { cursor: pointer; }

/* ── Игрок: шапка и вкладки ───────────────────────────────────────── */
.play-top { gap: var(--pw-s-3); }
.play-top__id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.play-top__id b { font: 600 16px/20px var(--pw-font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-top__right { display: flex; align-items: center; gap: var(--pw-s-2); }
.play-timer { font: 700 20px/1 var(--pw-font-display); font-variant-numeric: tabular-nums; }
.play-timer[data-state="warm"] { color: var(--pw-warn-ink); }
.play-timer[data-state="hot"] { color: var(--pw-bad-ink); }
.play-timer[data-state="paused"] { color: var(--pw-ink-muted); font-size: 16px; }
.play-tabs { position: sticky; top: calc(61px + env(safe-area-inset-top, 0px)); z-index: 20; padding: var(--pw-s-2) var(--pw-s-4); background: color-mix(in srgb, var(--pw-canvas) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: flex; justify-content: center; }
.play-tabs .pw-seg { width: min(640px, 100%); }
.play-tabs .pw-seg__item { flex: 1; }
.play-body { display: flex; flex-direction: column; gap: var(--pw-s-4); padding-top: var(--pw-s-3); padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
.sticky-submit { position: sticky; bottom: 0; z-index: 10; padding: var(--pw-s-3) 0 calc(var(--pw-s-3) + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--pw-canvas) 72%, transparent); }
#submit-btn.is-sent { background: var(--pw-good-soft); border-color: transparent; color: var(--pw-good-ink); }

/* ── Выбор локации ────────────────────────────────────────────────── */
.loc-list { display: flex; flex-direction: column; gap: var(--pw-s-3); }
.loc { display: flex; flex-direction: column; gap: var(--pw-s-2); text-align: left; padding: var(--pw-s-4); border: 1.5px solid var(--pw-line); border-radius: var(--pw-r-card); background: var(--pw-paper); color: var(--pw-ink); cursor: pointer; transition: border-color var(--pw-t-fast) var(--pw-ease); }
.loc.is-on { border-color: var(--pw-accent); box-shadow: 0 0 0 3px var(--pw-accent-soft); }
.loc__head { display: flex; align-items: center; gap: var(--pw-s-2); }
.loc__emoji { font-size: 22px; }
.loc__title { font: 600 18px/22px var(--pw-font-display); }
.loc__lead { color: var(--pw-ink-soft); font-size: 15px; line-height: 1.45; }
.loc__facts { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--pw-ink-muted); font-variant-numeric: tabular-nums; }
.loc__pc { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pw-s-3); font-size: 13px; line-height: 1.4; }
.loc__pros, .loc__cons { display: flex; flex-direction: column; gap: 2px; }
.loc__pros { color: var(--pw-good-ink); }
.loc__cons { color: var(--pw-ink-soft); }
@media (max-width: 420px) { .loc__pc { grid-template-columns: 1fr; } }

/* ── Решения ──────────────────────────────────────────────────────── */
.intro__facts { display: flex; flex-wrap: wrap; gap: var(--pw-s-2) var(--pw-s-4); font-size: 15px; color: var(--pw-ink-soft); }
.intro__facts b { color: var(--pw-ink); font-variant-numeric: tabular-nums; }
.intro p { margin: 0; }
.field { display: flex; flex-direction: column; gap: var(--pw-s-2); }
.field + .field { padding-top: var(--pw-s-4); border-top: 1px solid var(--pw-line); }
.field__top { display: flex; align-items: center; justify-content: space-between; gap: var(--pw-s-2); }
.field__label { font: 600 16px/21px var(--pw-font-text); }
.field__help { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--pw-fill); color: var(--pw-ink-soft); font: 600 14px/1 var(--pw-font-text); cursor: pointer; }
.field__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px var(--pw-s-3); font-size: 13px; line-height: 1.35; color: var(--pw-ink-muted); }
.field__ctx { flex: 1 1 60%; }
.field__prev { font-variant-numeric: tabular-nums; }
.field__hint { margin: 0; padding: var(--pw-s-3); border-radius: var(--pw-r-ctrl); background: var(--pw-fill); font-size: 14px; line-height: 1.45; color: var(--pw-ink-soft); }
.field--bool { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.field--bool .field__top { flex: 1; }
.field--bool .field__meta, .field--bool .field__hint { flex-basis: 100%; }
.num-field { display: grid; grid-template-columns: 52px 1fr 52px; gap: var(--pw-s-2); }
.num-field__btn { padding: 0; font-size: 22px; font-weight: 500; }
.num-field__box { position: relative; display: block; }
.num-input { text-align: center; font: 700 20px/1 var(--pw-font-display); font-variant-numeric: tabular-nums; padding-right: 64px; padding-left: 64px; }
.num-field__unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--pw-ink-muted); pointer-events: none; }
.pw-seg--wrap { flex-wrap: wrap; overflow: visible; }
.pw-seg--scroll { width: 100%; }
.pw-seg--scroll .pw-seg__item { flex: 1 0 auto; }

.case .pw-card__head { background: var(--pw-accent-soft); }
.case__badge { font-size: 20px; }
.case p { margin: 0; }
.case__options { display: flex; flex-direction: column; gap: var(--pw-s-2); }
.case__opt { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: var(--pw-s-3) var(--pw-s-4); border: 1.5px solid var(--pw-line); border-radius: var(--pw-r-ctrl); background: var(--pw-paper); color: var(--pw-ink); cursor: pointer; }
.case__opt span { color: var(--pw-ink-muted); font-size: 14px; }
.case__opt.is-on { border-color: var(--pw-accent); box-shadow: 0 0 0 3px var(--pw-accent-soft); }

.forecast .pw-card__body p { margin: 0; }
.fc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pw-s-3); }
.fc { display: flex; flex-direction: column; gap: 2px; padding: var(--pw-s-3); border-radius: var(--pw-r-ctrl); background: var(--pw-fill); min-width: 0; }
.fc__label { font: 600 12px/15px var(--pw-font-text); color: var(--pw-ink-muted); }
.fc__value { font: 700 20px/1.15 var(--pw-font-display); letter-spacing: -0.01em; }
.fc__sub { font-size: 12px; color: var(--pw-ink-muted); }
.fc.is-bad .fc__value, .fc.is-bad .fc__sub { color: var(--pw-bad-ink); }

/* ── Итоги квартала игрока ────────────────────────────────────────── */
.result-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--pw-s-2); padding: var(--pw-s-4) 0; }
.result-hero p { margin: 0; }
.result-hero__rank { margin: 0; font: 700 64px/1 var(--pw-font-display); letter-spacing: -0.03em; }
.result-hero__rank small { font: 600 18px/1 var(--pw-font-display); color: var(--pw-ink-muted); letter-spacing: 0; }
.result-hero__crit { font: 600 18px/1.3 var(--pw-font-display); }
.chips-scroll { display: flex; gap: var(--pw-s-2); overflow-x: auto; padding-bottom: 2px; }
.chips-scroll .pw-chip { border: 0; cursor: pointer; font-size: 14px; padding: 8px 12px; }

/* ── Отчёты ───────────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pw-s-3); }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi { display: flex; flex-direction: column; gap: var(--pw-s-1); padding: var(--pw-s-4); border-radius: var(--pw-r-card); background: var(--pw-paper); box-shadow: var(--pw-sh-card); min-width: 0; }
.kpi__label { font: 600 12px/15px var(--pw-font-text); color: var(--pw-ink-muted); }
.kpi__value { font: 700 24px/1.1 var(--pw-font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.kpi__sub { font-size: 13px; color: var(--pw-ink-muted); line-height: 1.3; }
.kpi--bad .kpi__value { color: var(--pw-bad-ink); }
.note { margin: 0; padding: var(--pw-s-3); border-radius: var(--pw-r-ctrl); background: var(--pw-fill); font-size: 14px; line-height: 1.45; color: var(--pw-ink-soft); }
.note--warn { background: var(--pw-warn-soft); color: var(--pw-ink); }
.note--bad { background: var(--pw-bad-soft); color: var(--pw-ink); }
.occ { display: grid; grid-template-columns: minmax(96px, 1.3fr) repeat(3, minmax(0, 1fr)); gap: var(--pw-s-2); align-items: center; font-size: 14px; }
.occ--head { color: var(--pw-ink-muted); }
.occ__label { color: var(--pw-ink-soft); }
.occ__cell { display: flex; flex-direction: column; gap: 4px; }
.occ__cell b { font-variant-numeric: tabular-nums; font-size: 14px; }
.occ__bar { display: block; height: 6px; border-radius: var(--pw-r-pill); background: var(--pw-fill); overflow: hidden; }
.occ__bar i { display: block; height: 100%; border-radius: var(--pw-r-pill); background: var(--pw-accent); }
.fin-wrap { overflow-x: auto; }
.fin td { padding: 8px var(--pw-row-pad); font-size: 15px; }
.fin tr.is-sub td:first-child { padding-left: calc(var(--pw-row-pad) + 12px); color: var(--pw-ink-soft); }
.fin tr.is-total td { font-weight: 700; color: var(--pw-ink); background: var(--pw-fill); }
.fin tr.is-head td { font: 600 12px/15px var(--pw-font-text); color: var(--pw-ink-muted); padding-top: 14px; }
.fin tr.is-bad td { color: var(--pw-bad-ink); }
.pw-row.is-total { font-weight: 700; color: var(--pw-ink); }
.is-criterion { box-shadow: 0 0 0 2px var(--pw-accent); }
.event { display: flex; flex-direction: column; gap: 2px; padding-left: var(--pw-s-3); border-left: 3px solid var(--pw-accent); }
.event span { font-size: 14px; color: var(--pw-ink-soft); line-height: 1.4; }
.event__kind { font: 600 12px/15px var(--pw-font-text) !important; color: var(--pw-ink-muted) !important; }
.event__outcome { color: var(--pw-ink) !important; }
.event--bad { border-left-color: var(--pw-bad); }
.event--warn { border-left-color: var(--pw-warn); }
.rank tr.is-me td { background: var(--pw-accent-soft); }
.rank__pos { white-space: nowrap; }
.rank__move { margin-left: 6px; font-size: 12px; font-weight: 600; }
.rank__move.is-up { color: var(--pw-good-ink); }
.rank__move.is-down { color: var(--pw-bad-ink); }
.news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--pw-s-2); }
.news__item { display: flex; gap: var(--pw-s-3); align-items: flex-start; padding: var(--pw-s-3) var(--pw-s-4); border-radius: var(--pw-r-card); background: var(--pw-paper); box-shadow: var(--pw-sh-card); }
.news__icon { font-size: 20px; line-height: 1.2; }
.news__body { display: flex; flex-direction: column; gap: 2px; }
.news__body span { color: var(--pw-ink-soft); font-size: 15px; line-height: 1.4; }
.news__item--shock { box-shadow: inset 3px 0 0 var(--pw-bad), var(--pw-sh-card); }

/* ── Графики ──────────────────────────────────────────────────────── */
.chart { margin: 0; display: flex; flex-direction: column; gap: var(--pw-s-3); position: relative; }
.chart__title { font: 600 15px/20px var(--pw-font-display); color: var(--pw-ink); }
.chart__plot { position: relative; width: 100%; }
.chart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--viz-grid); stroke-width: 1; }
.chart__base { stroke: var(--viz-axis); stroke-width: 1; }
.chart__tick { fill: var(--viz-muted); font: 500 12px var(--pw-font-text); font-variant-numeric: tabular-nums; }
.chart__line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { stroke: var(--pw-paper); stroke-width: 2; }
.chart__end { fill: var(--pw-ink-soft); font: 600 12px var(--pw-font-text); }
.chart__cross { stroke: var(--viz-axis); stroke-width: 1; }
.chart__tip { position: absolute; z-index: 5; min-width: 150px; padding: var(--pw-s-2) var(--pw-s-3); border-radius: var(--pw-r-small); background: var(--pw-elevated); box-shadow: var(--pw-sh-float); pointer-events: none; font-size: 13px; }
.chart__tip-head { color: var(--pw-ink-muted); margin-bottom: 4px; font-weight: 600; }
.chart__tip-row { display: flex; align-items: center; gap: var(--pw-s-2); white-space: nowrap; }
.chart__tip-row b { font-variant-numeric: tabular-nums; }
.chart__tip-row span { color: var(--pw-ink-muted); }
.chart__legend { display: flex; flex-wrap: wrap; gap: var(--pw-s-2) var(--pw-s-4); font-size: 13px; color: var(--pw-ink-soft); }
.chart__legend--values { flex-direction: column; gap: var(--pw-s-1); }
.chart__legend--values .chart__key b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--pw-ink); }
.chart__key { display: inline-flex; align-items: center; gap: var(--pw-s-2); }
.chart__key-line { display: inline-block; width: 14px; height: 2px; border-radius: 2px; }
.chart__key-box { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.chart-toggle { align-self: flex-start; }
.bars { display: flex; flex-direction: column; gap: var(--pw-s-2); }
.bars__row { display: grid; grid-template-columns: minmax(100px, 34%) 1fr; gap: var(--pw-s-3); align-items: center; font-size: 14px; outline-offset: 2px; }
.bars__name { display: inline-flex; align-items: center; gap: var(--pw-s-2); min-width: 0; }
.bars__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars__track { display: flex; align-items: center; gap: var(--pw-s-2); min-width: 0; }
.bars__bar { display: block; height: 18px; max-height: 24px; border-radius: 0 4px 4px 0; min-width: 2px; transition: width var(--pw-t-slow) var(--pw-ease); }
.bars__bar.is-dim { opacity: 0.45; }
.bars__track--signed { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0; }
.bars__half { display: flex; align-items: center; gap: var(--pw-s-2); min-width: 0; }
.bars__half--neg { justify-content: flex-end; }
.bars__half--neg .bars__bar { border-radius: 4px 0 0 4px; }
.bars__half .bars__bar { max-width: calc(100% - 5.5em); }
.bars__zero { align-self: stretch; background: var(--viz-axis); margin: -4px 0; }
.bars__value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stack { display: flex; gap: 2px; height: 16px; border-radius: 4px; overflow: hidden; background: var(--pw-paper); }
.stack__seg { display: block; height: 100%; min-width: 2px; }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter__top { display: flex; justify-content: space-between; font-size: 14px; color: var(--pw-ink-soft); gap: var(--pw-s-2); }
.meter__top b { font-variant-numeric: tabular-nums; color: var(--pw-ink); }
.meter__track { position: relative; height: 10px; border-radius: var(--pw-r-pill); background: var(--pw-fill); overflow: hidden; }
.meter__band { position: absolute; top: 0; bottom: 0; background: var(--pw-good-soft); }
.meter__fill { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: var(--pw-r-pill); background: var(--pw-good); transition: width var(--pw-t-slow) var(--pw-ease); }
.meter--warn .meter__fill { background: var(--pw-warn); }
.meter--bad .meter__fill { background: var(--pw-bad); }
.meter--warn .meter__top b { color: var(--pw-warn-ink); }
.meter--bad .meter__top b { color: var(--pw-bad-ink); }

/* ════════════════════════════════════════════════════════════════════
   Экран ведущего — телевизор или проектор. Всё крупно, читается издалека.
   ════════════════════════════════════════════════════════════════════ */
body.host { font-size: clamp(16px, 0.55vw + 9px, 24px); overflow: hidden; }
.host-app { height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.host-empty { height: 100dvh; justify-content: center; }
.host-top { display: flex; align-items: center; gap: var(--pw-s-4); padding: var(--pw-s-3) var(--pw-s-8); border-bottom: 1px solid var(--pw-line); background: var(--pw-canvas); }
.host-top__logo { border-radius: 10px; }
.host-top__brand { display: flex; flex-direction: column; line-height: 1.15; }
.host-top__brand b { font: 700 1.25em/1.1 var(--pw-font-display); color: var(--pw-gold); }
.host-top__brand span { font-size: 0.8em; color: var(--pw-ink-muted); }
.host-top__q { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.host-top__q b { font: 700 1.3em/1.1 var(--pw-font-display); }
.host-top__q span { font-size: 0.8em; color: var(--pw-ink-muted); }
.host-top__right { display: flex; align-items: center; gap: var(--pw-s-3); }
.host-timer { font: 700 1.5em/1 var(--pw-font-display); font-variant-numeric: tabular-nums; }
.host-stage { overflow: auto; padding: var(--pw-s-6) var(--pw-s-8); }
.host-controls { display: flex; align-items: center; gap: var(--pw-s-3); padding: var(--pw-s-3) var(--pw-s-8) calc(var(--pw-s-3) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--pw-line); background: var(--pw-canvas); }
.host-controls__note { flex: 1; color: var(--pw-ink-muted); font-size: 0.85em; }
.host-cta { min-width: 12em; font-size: 1em; min-height: 2.8em; }
.host .pw-btn { font-size: 0.9em; }
.host-h1 { font: 700 2.2em/1.1 var(--pw-font-display); letter-spacing: -0.02em; margin: 0; }
.host-h2 { font: 700 1.35em/1.2 var(--pw-font-display); letter-spacing: -0.015em; margin: 0; }
.host .pw-table, .host .pw-row { font-size: 0.95em; }
.host .pw-table th { font-size: 0.72em; }
.host .t-block { font-size: 1.05em; line-height: 1.3; }
.host .t-caption, .host .t-label { font-size: 0.75em; }

/* лобби */
.lobby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--pw-s-10); height: 100%; align-items: start; }
.lobby__join { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--pw-s-4); }
.lobby__qr { background: #fff; padding: var(--pw-s-4); border-radius: var(--pw-r-sheet); width: min(34vh, 30vw); aspect-ratio: 1; }
.lobby__qr img { width: 100%; height: 100%; display: block; }
.lobby__url { margin: 0; font-size: 1.1em; color: var(--pw-ink-soft); }
.lobby__url b { color: var(--pw-ink); }
.lobby__code { margin: 0; font: 700 5em/1 var(--pw-font-display); letter-spacing: 0.08em; color: var(--pw-gold); font-variant-numeric: tabular-nums; }
.lobby__side { display: flex; flex-direction: column; gap: var(--pw-s-4); }
.lobby__list-head { display: flex; align-items: center; justify-content: space-between; gap: var(--pw-s-3); }
.lobby__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--pw-s-2); }
.lobby__co { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: var(--pw-s-3); align-items: center; padding: var(--pw-s-3) var(--pw-s-4); border-radius: var(--pw-r-card); background: var(--pw-paper); animation: host-in var(--pw-t-slow) var(--pw-ease); }
.lobby__co-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.lobby__co-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.1em; }
.lobby__co-name span { font-size: 0.8em; }
.lobby__co-loc { font-size: 0.85em; color: var(--pw-ink-soft); white-space: nowrap; }
.lobby__empty { margin: 0; }
@keyframes host-in { from { opacity: 0; transform: translateY(8px); } }

/* квартал идёт */
.decide { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--pw-s-8); }
.decide__main { display: flex; flex-direction: column; gap: var(--pw-s-5); }
.decide__clock { display: flex; flex-direction: column; gap: var(--pw-s-2); padding: var(--pw-s-6); border-radius: var(--pw-r-sheet); background: var(--pw-paper); }
.decide__q { font: 600 1.1em/1.2 var(--pw-font-display); color: var(--pw-ink-soft); }
.decide__time { font: 700 7em/1 var(--pw-font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.decide__time[data-state="warm"] { color: var(--pw-warn); }
.decide__time[data-state="hot"] { color: var(--pw-bad); }
.decide__time[data-state="paused"] { color: var(--pw-ink-muted); font-size: 4em; }
.decide__bar { height: 8px; border-radius: var(--pw-r-pill); background: var(--pw-fill); overflow: hidden; }
.decide__bar i { display: block; height: 100%; background: var(--pw-accent); transform-origin: left; transition: transform 250ms linear; }
.decide__bar i[data-state="warm"] { background: var(--pw-warn); }
.decide__bar i[data-state="hot"] { background: var(--pw-bad); }
.decide__season { color: var(--pw-ink-muted); font-size: 0.9em; }
.decide__count { margin: 0; font: 600 1.2em/1.2 var(--pw-font-display); }
.decide__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); gap: var(--pw-s-3); }
.tile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--pw-s-1) var(--pw-s-3); align-items: center; padding: var(--pw-s-3) var(--pw-s-4); border-radius: var(--pw-r-card); background: var(--pw-paper); border: 1.5px solid transparent; transition: border-color var(--pw-t-base) var(--pw-ease), background var(--pw-t-base) var(--pw-ease); }
.tile__name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tile__name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__name span { font-size: 0.8em; }
.tile__state { grid-column: 2; font-size: 0.85em; color: var(--pw-ink-muted); }
.tile.is-done { border-color: var(--pw-good); }
.tile.is-done .tile__state { color: var(--pw-good); font-weight: 600; }
.decide__side { display: flex; flex-direction: column; gap: var(--pw-s-4); }
.case--host .case__title { font: 700 1.3em/1.25 var(--pw-font-display); }
.case__list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--pw-s-2); line-height: 1.4; }

/* итоги: слайды */
.slide { height: 100%; animation: host-in var(--pw-t-slow) var(--pw-ease); }
.slide__head { display: flex; flex-direction: column; gap: var(--pw-s-1); margin-bottom: var(--pw-s-5); }
.slide__head p { margin: 0; }
.slide__body { display: flex; flex-direction: column; gap: var(--pw-s-4); }
.slide__body--split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--pw-s-6); align-items: start; }
.slide .news { display: grid; grid-template-columns: repeat(auto-fill, minmax(26em, 1fr)); gap: var(--pw-s-3); }
.slide .news__body b { font-size: 1.05em; }
.slide .news__body span { font-size: 0.9em; }
.slide-dots { display: inline-flex; gap: var(--pw-s-2); padding: 0 var(--pw-s-2); }
.slide-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--pw-fill-strong); cursor: pointer; }
.slide-dot.is-on { background: var(--pw-accent); }
.kpis--host { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: var(--pw-s-4); }
.kpi--host .kpi__value { font-size: 1.6em; }
.kpi--host .kpi__label, .kpi--host .kpi__sub { font-size: 0.72em; }
.host .bars__row { font-size: 0.9em; grid-template-columns: minmax(8em, 34%) 1fr; }
.host .bars__bar { height: 22px; }
.case-result { display: grid; grid-template-columns: repeat(auto-fit, minmax(18em, 1fr)); gap: var(--pw-s-4); }
.case-result__who { list-style: none; margin: 0; padding: var(--pw-s-3) var(--pw-s-4) var(--pw-s-4); display: flex; flex-direction: column; gap: var(--pw-s-3); }
.case-result__who li { display: flex; flex-direction: column; gap: 2px; }
.case-result__who .muted { font-size: 0.85em; line-height: 1.35; }
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); gap: var(--pw-s-4); }
.award { display: flex; flex-direction: column; gap: var(--pw-s-2); padding: var(--pw-s-6) var(--pw-s-5); border-radius: var(--pw-r-sheet); background: var(--pw-paper); text-align: center; align-items: center; animation: host-in var(--pw-t-slow) var(--pw-ease) both; }
.award:nth-child(2) { animation-delay: 80ms; }
.award:nth-child(3) { animation-delay: 160ms; }
.award:nth-child(4) { animation-delay: 240ms; }
.award__title { font: 600 0.85em/1.2 var(--pw-font-text); color: var(--pw-gold); }
.award__co { display: inline-flex; align-items: center; gap: var(--pw-s-2); font: 700 1.3em/1.2 var(--pw-font-display); }
.award__value { color: var(--pw-ink-soft); font-variant-numeric: tabular-nums; }

/* финал */
.final { display: flex; flex-direction: column; gap: var(--pw-s-5); }
.final__hero { display: flex; flex-direction: column; align-items: center; gap: var(--pw-s-3); text-align: center; }
.final__hero p { margin: 0; }
.final__winner { color: var(--pw-gold); }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: var(--pw-s-4); margin-top: var(--pw-s-3); }
.podium__place { display: flex; flex-direction: column; align-items: center; gap: var(--pw-s-1); width: 13em; }
.podium__co { display: inline-flex; align-items: center; gap: var(--pw-s-2); font: 700 1.1em/1.2 var(--pw-font-display); max-width: 100%; }
.podium__co b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium__val { font: 700 1.3em/1 var(--pw-font-display); }
.podium__owner { font-size: 0.8em; }
.podium__step { width: 100%; display: grid; place-items: center; margin-top: var(--pw-s-2); border-radius: var(--pw-r-card) var(--pw-r-card) 0 0; background: var(--pw-paper); font: 700 1.6em/1 var(--pw-font-display); color: var(--pw-ink-muted); }
.podium__place--1 .podium__step { height: 4em; background: color-mix(in srgb, var(--pw-gold) 28%, var(--pw-paper)); color: var(--pw-gold); }
.podium__place--2 .podium__step { height: 2.8em; }
.podium__place--3 .podium__step { height: 2em; }
.final__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--pw-s-6); align-items: start; }

@media (max-width: 1000px) {
  body.host { overflow: auto; }
  .host-app { height: auto; min-height: 100dvh; }
  .lobby, .decide, .slide__body--split, .final__grid { grid-template-columns: 1fr; }
  .kpis--host { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .host-top, .host-stage, .host-controls { padding-left: var(--pw-s-4); padding-right: var(--pw-s-4); }
  .host-controls { flex-wrap: wrap; }
  .lobby__qr { width: min(60vw, 320px); }
  .decide__time { font-size: 4.5em; }
}

/* ── Правила ──────────────────────────────────────────────────────── */
.rules { padding-top: var(--pw-s-6); padding-bottom: var(--pw-s-12); }
.rules__brand { font: 600 17px/22px var(--pw-font-display); }
.rules h2 { font: 700 24px/30px var(--pw-font-display); letter-spacing: -0.015em; margin: var(--pw-s-10) 0 var(--pw-s-3); scroll-margin-top: 72px; }
.rules h3 { font: 600 18px/24px var(--pw-font-display); margin: var(--pw-s-6) 0 var(--pw-s-2); scroll-margin-top: 72px; }
.rules p, .rules li { font-size: 16px; line-height: 1.6; color: var(--pw-ink); }
.rules p { margin: 0 0 var(--pw-s-3); }
.rules ul, .rules ol { margin: 0 0 var(--pw-s-4); padding-left: 1.3em; display: flex; flex-direction: column; gap: var(--pw-s-2); }
.rules blockquote { margin: var(--pw-s-3) 0 var(--pw-s-4); padding: var(--pw-s-3) var(--pw-s-4); border-radius: var(--pw-r-ctrl); background: var(--pw-accent-soft); font: 600 17px/1.5 var(--pw-font-display); }
.rules__table { margin: var(--pw-s-3) 0 var(--pw-s-5); }
.rules__table td, .rules__table th { vertical-align: top; }
.rules__table td { font-size: 14px; line-height: 1.45; }
.rules__toc ol { margin: 0; padding: var(--pw-s-3) var(--pw-s-4) var(--pw-s-4) 2.2em; gap: var(--pw-s-1); }
.rules__toc a { text-decoration: none; }
.rules__intro { font: 400 18px/1.55 var(--pw-font-text) !important; color: var(--pw-ink-soft) !important; margin-bottom: var(--pw-s-5) !important; }
.decide-sec, .case, .forecast { scroll-margin-top: 124px; }
.decide-nav { margin: calc(-1 * var(--pw-s-1)) 0; }
.chips-scroll, .pw-seg--scroll { scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar, .pw-seg--scroll::-webkit-scrollbar { display: none; }
.link-card { align-items: stretch; }
.link-card__qr { width: min(280px, 70vw); align-self: center; }
