/* Админка */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 20px; height: 62px; padding: 0 20px; background: rgba(6, 8, 14, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 15px/1 var(--font); white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.topnav { display: flex; gap: 4px; }
.topnav a { padding: 8px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.topnav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.topnav a.on { color: var(--text); background: var(--panel-2); }
.usermenu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.who { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; margin-right: 6px; }
.who b { font-size: 13.5px; }
.who small { font-size: 11.5px; color: var(--faint); }
.page { padding: 28px 24px 70px; max-width: 1360px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1, .game-main-head h1 { font: 700 28px/1.15 var(--font-display); letter-spacing: -.01em; }
.page-head p { margin-top: 6px; }
.actions, .btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.section-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* ---------- вход ---------- */
.auth-screen { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 20px; overflow: hidden; }
.auth-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 20% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), radial-gradient(50% 50% at 85% 80%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%), url('/media/bg_arena.jpg') center / cover; filter: saturate(1.2); }
.auth-bg::after { content: ''; position: absolute; inset: 0; background: rgba(6, 8, 14, .72); }
.auth-card { position: relative; width: min(100%, 420px); display: flex; flex-direction: column; gap: 14px; padding: 30px 26px; border-radius: 24px; background: rgba(16, 21, 31, .86); border: 1px solid var(--line-2); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.auth-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 40%, transparent); margin-bottom: 4px; }
.auth-card h1 { font: 700 24px/1.2 var(--font-display); }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 4px; }
.auth-alt:hover { color: var(--text); }

/* ---------- список игр ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; margin-top: 18px; }
.game-card { display: flex; flex-direction: column; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.game-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.game-card-main { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 16px; background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); }
.game-card-top { display: flex; align-items: center; gap: 8px; min-height: 24px; font-size: 12.5px; color: var(--faint); }
.game-card h3 { font: 700 20px/1.2 var(--font); }
.game-stats { display: flex; gap: 16px; margin: 4px 0 6px; font-size: 13.5px; color: var(--muted); }
.game-stats b { color: var(--text); }
.game-card-foot { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .14); }

/* ---------- страница игры ---------- */
.game-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; }
.game-nav { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 14px; }
.game-nav .back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.game-nav .back:hover { color: var(--text); }
.game-nav-title { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.game-nav-title b { font-size: 16px; line-height: 1.25; }
.game-nav nav { display: flex; flex-direction: column; gap: 2px; }
.game-nav nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.game-nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.game-nav nav a.on { color: var(--text); background: var(--panel-2); box-shadow: inset 3px 0 0 var(--accent); }
.game-nav nav a .ico { width: 18px; height: 18px; }
.game-nav-foot { display: flex; flex-direction: column; gap: 10px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ok); }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.live-dot.off { color: var(--danger); }
.game-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.game-main-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.stat-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-label .ico { width: 18px; height: 18px; color: var(--accent); }
.stat b { font: 700 24px/1.1 var(--font-display); }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.check-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.check-step .num { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--panel-3); font-weight: 800; font-size: 13px; }
.check-step.done .num { background: var(--ok); color: #03140B; }
.check-step b { display: block; }
.check-step a { color: var(--accent); font-size: 13px; font-weight: 600; }
.leaders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.leaders li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); }
.leaders .rank { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 9px; background: var(--panel-3); font: 800 13px/1 var(--font-display); }
.leaders li:nth-child(1) .rank { background: linear-gradient(145deg, #FFF3C4, var(--gold)); color: #3A2500; }
.leaders li:nth-child(2) .rank { background: linear-gradient(145deg, #fff, var(--silver)); color: #1B2230; }
.leaders li:nth-child(3) .rank { background: linear-gradient(145deg, #FFD7B0, var(--bronze)); color: #2A1203; }
.swatch { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--c, #888); box-shadow: 0 0 8px var(--c, transparent); }

/* ---------- таблицы и матрицы ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .chip { margin: 2px 4px 2px 0; }
.matrix-scroll { overflow: auto; max-height: calc(100vh - 220px); }
.matrix { border-collapse: separate; border-spacing: 0; font-size: 13.5px; min-width: 100%; }
.matrix th, .matrix td { padding: 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--panel); font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 8px; }
.matrix thead th .ico { display: block; margin: 0 auto 4px; width: 20px; height: 20px; color: var(--accent); }
.matrix .sticky { position: sticky; left: 0; z-index: 1; background: var(--panel); text-align: left; padding: 8px 14px; font-weight: 600; box-shadow: 1px 0 0 var(--line); }
.matrix thead .sticky { z-index: 3; }
.matrix .sticky .swatch { margin-right: 8px; }
.matrix .num { font-variant-numeric: tabular-nums; padding: 0 14px; }
.cell { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 92px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px dashed var(--line-2); background: transparent; color: var(--faint); cursor: pointer; font-variant-numeric: tabular-nums; }
.cell:hover { border-color: var(--accent); color: var(--text); }
.cell.ok { border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--text); }
.cell.out { border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); color: #FF93A6; }
.cell-place { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 7px; font: 800 11px/1 var(--font-display); background: var(--panel-3); color: var(--muted); }
.cell-place.p1 { background: var(--gold); color: #3A2500; }
.cell-place.p2 { background: var(--silver); color: #1B2230; }
.cell-place.p3 { background: var(--bronze); color: #2A1203; }
.cell-add { font-size: 18px; line-height: 1; }
.progress-grid { display: grid; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.pg-head { font-size: 11px; color: var(--faint); text-align: center; }
.pg-head .ico { width: 18px; height: 18px; color: var(--accent); }
.pg-team { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; display: flex; align-items: center; gap: 8px; }
.pg-cell { height: 26px; border-radius: 7px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); display: grid; place-items: center; font: 700 11px/1 var(--font-display); color: var(--faint); }
.pg-cell.ok { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); }
.pg-cell.out { background: color-mix(in srgb, var(--danger) 16%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: #FF93A6; }
.results-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.results-wrap.with-log { grid-template-columns: minmax(0, 1fr) 320px; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 280px); overflow-y: auto; }
.log li { display: flex; gap: 10px; font-size: 13px; line-height: 1.4; }
.log time { flex: none; color: var(--faint); font-variant-numeric: tabular-nums; }
.log small { display: block; color: var(--faint); }

/* ---------- команды и станции ---------- */
.inline-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 8px; }
.list { display: flex; flex-direction: column; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .input { height: 36px; }
.list-num { width: 26px; color: var(--faint); font-variant-numeric: tabular-nums; font-size: 13px; }
.color-dot { position: relative; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); cursor: pointer; }
.color-dot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.preview-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 180px; overflow-y: auto; }
.station-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.station-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.station-card-head { display: flex; gap: 12px; align-items: flex-start; }
.station-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.station-card h3 { font: 700 17px/1.25 var(--font); }
.station-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.station-order { display: flex; flex-direction: column; }
.station-code { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px dashed var(--line-2); }
.station-code code { flex: 1; font-size: 24px; font-weight: 800; letter-spacing: .18em; color: var(--accent); }
.station-code .label { display: block; margin-bottom: 2px; }
.station-card-foot { display: flex; gap: 8px; justify-content: space-between; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-height: 190px; overflow-y: auto; padding: 2px; }
.icon-grid button { display: grid; place-items: center; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); cursor: pointer; }
.icon-grid button:hover { color: var(--text); border-color: var(--line-2); }
.icon-grid button.on { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.qr-box { display: grid; place-items: center; padding: 18px; border-radius: 16px; background: #fff; }
.qr-box img { width: 240px; height: 240px; image-rendering: pixelated; }
.code-big { text-align: center; font: 800 40px/1 var(--mono); letter-spacing: .22em; color: var(--accent); }

/* ---------- табло ---------- */
.screen-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.screen-preview-col { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 12px; }
.preview-box { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #000; border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.preview-box iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.preview-links { display: flex; gap: 8px; }
.preview-links .copy-field { flex: 1; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mode-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.mode-card .ico { color: var(--accent); margin-bottom: 4px; }
.mode-card small { color: var(--faint); font-size: 12.5px; line-height: 1.35; }
.mode-card:hover { border-color: var(--accent); }
.mode-card.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 0 1px var(--accent); }
.mode-card:disabled { opacity: .45; cursor: not-allowed; }
.check-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ceremony-card { border-color: color-mix(in srgb, var(--gold) 30%, transparent); background: radial-gradient(120% 90% at 100% 0%, rgba(245, 197, 66, .08), transparent 60%), var(--panel); }
.ceremony-card .card-title .ico { color: var(--gold); }
.cer-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cer-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--bg-2); color: var(--muted); font-size: 14px; }
.cer-steps li.done { color: var(--faint); text-decoration: line-through; }
.cer-steps li.now { color: var(--text); background: color-mix(in srgb, var(--gold) 16%, transparent); box-shadow: inset 3px 0 0 var(--gold); font-weight: 700; }
.cer-steps li .ico { width: 16px; height: 16px; }

/* ---------- оформление ---------- */
.branding-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 20px; align-items: start; }
.branding-preview { position: sticky; top: 86px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme-card { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 12px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); text-align: left; cursor: pointer; }
.theme-card b { padding: 0 4px; font-size: 14px; }
.theme-card small { padding: 0 4px; color: var(--faint); font-size: 12px; line-height: 1.35; }
.theme-card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 10px 30px color-mix(in srgb, var(--accent) 20%, transparent); }
.theme-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.theme-thumb img { width: 100%; height: 100%; object-fit: cover; }
.theme-thumb::after { content: ''; position: absolute; inset: 0; mix-blend-mode: multiply; background: linear-gradient(125deg, var(--a), var(--b)); }
.theme-light .theme-thumb::after { opacity: .35; }
.color-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.color-field { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.color-field input[type=color] { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.color-field .grow b { display: block; font-size: 14px; }
.color-field .grow small { color: var(--faint); font-family: var(--mono); font-size: 12px; }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.upload-tile { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.upload-media { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(rgba(255, 255, 255, .05) 0 25%, transparent 0 50%) 0 0 / 16px 16px; color: var(--faint); }
.upload-media img, .upload-media video { width: 100%; height: 100%; object-fit: contain; }
.sponsor-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sponsor { position: relative; display: grid; place-items: center; width: 130px; height: 70px; padding: 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.sponsor img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor .btn { position: absolute; top: -8px; right: -8px; background: var(--panel-3); border: 1px solid var(--line-2); }
.sponsor-add { gap: 4px; color: var(--muted); border-style: dashed; cursor: pointer; font-size: 13px; }
.sponsor-add:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- подсчёт, доступ, выгрузка ---------- */
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; color: var(--muted); line-height: 1.55; }
.steps b { color: var(--text); }
.weight-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.weight-row:last-child { border-bottom: 0; }
.weight-row .ico { color: var(--accent); }
.weight-row .input { width: 90px; }
.admin-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); }
.admin-list small { display: block; color: var(--faint); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); font-weight: 800; text-transform: uppercase; }
.code-lg { font: 800 18px/1 var(--mono); letter-spacing: .16em; color: var(--accent); }
.export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.export-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
.export-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.export-card .ico { color: var(--accent); margin-bottom: 6px; }
.export-card b { font-size: 16px; }
.export-card small { color: var(--faint); font-size: 13px; line-height: 1.4; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, transparent); }

/* ---------- узкие экраны ---------- */
@media (max-width: 1100px) {
  .screen-layout, .branding-layout { grid-template-columns: minmax(0, 1fr); }
  .screen-preview-col, .branding-preview { position: static; }
  .results-wrap.with-log { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .game-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .game-nav { position: static; }
  .game-nav nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .game-nav nav a.on { box-shadow: inset 0 -2px 0 var(--accent); }
  .game-nav-foot { flex-direction: row; align-items: center; }
  .inline-form { grid-template-columns: minmax(0, 1fr); }
  .who { display: none; }
  .theme-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .page { padding: 18px 12px 60px; }
  .topbar { gap: 10px; padding: 0 12px; }
  .brand span:last-child { display: none; }
  .mode-grid { grid-template-columns: minmax(0, 1fr); }
}
