:root {
  --bg: #0e1726;
  --surface: #18243a;
  --surface-2: #22304b;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #f4f6fb;
  --muted: #9aa7bd;
  --accent: #2ed47a;
  --accent-ink: #06240f;
  --gold: #f5c451;
  --danger: #ff6b6b;
  --pitch: #17754a;
  --pitch-dark: #13663f;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.35 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; overscroll-behavior: none; }
#app { height: var(--tg-viewport-stable-height, 100dvh); max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 17px; }
h3 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
button { font: inherit; border: 0; border-radius: 12px; cursor: pointer; color: var(--ink); background: var(--surface-2); padding: 10px 14px; font-weight: 600; transition: transform 0.08s, opacity 0.2s; }
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.45; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-ink); }
button.wide { width: 100%; }
input { font: inherit; font-size: 16px; width: 100%; color: var(--ink); background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; padding: 11px 12px; outline: none; }
input:focus { border-color: var(--accent); }
input::placeholder { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.logo { width: 96px; height: 96px; border-radius: 22px; }

/* Каркас */
.top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.top img { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.top .titles { flex: 1; min-width: 0; }
.top b, .top small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top small { color: var(--muted); font-size: 12px; }
.money { flex-shrink: 0; text-align: right; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.money small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); background: var(--bg); }
.tabs button { background: none; border-radius: 0; padding: 8px 2px 9px; font-size: 11px; font-weight: 500; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tabs button span { font-size: 19px; line-height: 1.2; }
.tabs button.active { color: var(--accent); font-weight: 700; }
.card { background: var(--surface); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 11px; font-size: 13px; font-weight: 500; background: var(--surface-2); border: 1.5px solid transparent; }
.chip.active { border-color: var(--accent); color: var(--accent); background: rgba(46, 212, 122, 0.1); }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Эмблема клуба */
.crest { flex-shrink: 0; vertical-align: middle; }
.crest-editor { display: flex; flex-direction: column; gap: 9px; }
.crest-preview { display: flex; justify-content: center; padding: 6px 0 2px; }
.crest-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.crest-option { min-width: 0; padding: 5px 0; background: var(--surface-2); border: 1.5px solid transparent; display: grid; place-items: center; }
.crest-option.active { border-color: var(--accent); }
.crest-button { position: relative; flex-shrink: 0; padding: 0; background: none; }
.crest-button span { position: absolute; right: -5px; bottom: -3px; width: 22px; height: 22px; line-height: 22px; font-size: 12px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); text-align: center; }

/* Создание клуба */
.create { gap: 14px; }
.create .hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 5px; }
.emoji-grid button { padding: 7px 0; font-size: 20px; background: var(--surface-2); border: 1.5px solid transparent; min-width: 0; }
.emoji-grid button.active { border-color: var(--accent); }
.color-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.color-grid button { width: 34px; height: 34px; padding: 0; border-radius: 50%; background: var(--c); border: 2px solid transparent; outline: 2px solid transparent; outline-offset: 1px; }
.color-grid button.active { outline-color: var(--ink); }

/* Клуб и поле */
.club-head { flex-direction: row; align-items: center; gap: 12px; }
.club-head .name { font-size: 18px; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 7px 8px; text-align: center; }
.stat b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.stat small { font-size: 11px; color: var(--muted); }
.pitch {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  padding: 14px 4px; border-radius: 12px; overflow: hidden;
  background: repeating-linear-gradient(180deg, var(--pitch) 0 44px, var(--pitch-dark) 44px 88px);
}
.pitch::before { content: ''; position: absolute; inset: 7px; border: 1.5px solid rgba(255, 255, 255, 0.25); border-radius: 4px; pointer-events: none; }
.pitch::after { content: ''; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px; border: 1.5px solid rgba(255, 255, 255, 0.25); border-radius: 50%; pointer-events: none; }
.line { position: relative; z-index: 1; display: flex; justify-content: space-around; }
.tile { background: none; padding: 0; min-width: 0; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-weight: 500; }
.tile .shirt { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--c, #888); color: var(--shirt-ink, #fff); font-size: 14px; font-weight: 800; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35); border: 2px solid rgba(255, 255, 255, 0.75); }
.tile .who { max-width: 100%; font-size: 11px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }
.tile.picked .shirt { outline: 3px solid var(--gold); outline-offset: 1px; }
.tile.swap .shirt { outline: 2px dashed var(--gold); outline-offset: 1px; }
.player { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; background: none; text-align: left; font-weight: 400; border-radius: 10px; }
.player + .player { margin-top: 1px; }
.player.picked { background: rgba(245, 196, 81, 0.13); }
.player.swap { background: rgba(245, 196, 81, 0.06); }
.ovr { flex-shrink: 0; width: 30px; height: 24px; line-height: 24px; text-align: center; border-radius: 7px; background: #4b5a75; color: #fff; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.ovr.t2 { background: #2d8c5b; }
.ovr.t3 { background: #c9972b; color: #1b1300; }
.ovr.t4 { background: #e8b73c; color: #1b1300; box-shadow: 0 0 0 1.5px #ffe6a0; }
.pos { flex-shrink: 0; width: 26px; font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; }
.pname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { flex-shrink: 0; text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.price .lead { color: var(--accent); }
.price .beaten { color: var(--gold); }
.picked-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; font-size: 13px; }

/* Лига */
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13px; }
th { font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 4px 6px; text-align: right; }
td { padding: 7px 4px; text-align: right; border-top: 1px solid var(--line); }
th:nth-child(2), td:nth-child(2) { text-align: left; width: 100%; max-width: 0; }
td.place { color: var(--muted); text-align: center; width: 20px; }
td .row { min-width: 0; }
tr.mine td { background: rgba(46, 212, 122, 0.09); }
td b { font-size: 14px; }
.round-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.round-nav button { padding: 5px 13px; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); width: 100%; background: none; font-weight: 400; border-radius: 0; text-align: left; }
.match:not([data-match]) { cursor: default; }
.match.now .score { color: var(--danger); }
.match .score small { display: block; font-size: 10px; font-weight: 600; }
.match .side { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.match .side.right { justify-content: flex-end; }
.match .side span.ellipsis { min-width: 0; }
.match .side.me { font-weight: 700; color: var(--accent); }
.match .score { font-weight: 800; min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.news { font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.news:first-of-type { border-top: 0; }

/* Сетка кубка */
.bracket-wrap { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 -14px; padding: 0 14px 6px; scrollbar-width: none; }
.bracket-wrap::-webkit-scrollbar { display: none; }
.bracket { display: flex; gap: 22px; width: max-content; min-height: 100%; }
.b-round { display: flex; flex-direction: column; width: 152px; }
.b-round h3 { margin-bottom: 8px; text-align: center; }
.b-round.now h3 { color: var(--accent); }
.b-col { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.b-match { position: relative; display: block; width: 100%; padding: 0; text-align: left; font-weight: 400; background: var(--surface); border-radius: 10px; overflow: visible; }
.b-match:not([data-match]) { cursor: default; }
.b-round:not(:last-child) .b-match::after { content: ''; position: absolute; left: 100%; top: 50%; width: 11px; border-top: 1.5px solid var(--line); }
.b-round:not(:first-child) .b-match::before { content: ''; position: absolute; right: 100%; top: 50%; width: 11px; border-top: 1.5px solid var(--line); }
.b-team { display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: 12px; min-height: 34px; }
.b-team + .b-team { border-top: 1px solid var(--line); }
.b-team.win { font-weight: 700; }
.b-team.out { color: var(--muted); }
.b-team.me .ellipsis { color: var(--accent); }
.b-team .goals-n { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.b-note { padding: 0 8px 5px; font-size: 10px; color: var(--muted); text-align: right; }
.b-empty { color: var(--muted); }
.champion { align-items: center; text-align: center; background: linear-gradient(160deg, rgba(245, 196, 81, 0.25), var(--surface) 70%); }

/* Торги: шторка снизу */
#sheet:empty { display: none; }
.backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(4, 9, 18, 0.65); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; background: var(--surface); border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; animation: up 0.18s ease-out; }
@keyframes up { from { transform: translateY(24px); } }
.sheet .head { display: flex; align-items: center; gap: 10px; }
.sheet .head .flag { font-size: 28px; }
.sheet .head b { display: block; font-size: 17px; }
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; }
.stepper input { text-align: center; font-weight: 800; font-size: 20px; }
.stepper button { font-size: 20px; padding: 0; }
.dev { border: 1px dashed rgba(245, 196, 81, 0.5); background: transparent; }

.toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); z-index: 60; max-width: 86vw; padding: 10px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.85); font-weight: 600; text-align: center; pointer-events: none; }
.toast.error { background: rgba(173, 40, 40, 0.95); }

/* Идущие матчи */
.live-banner { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 14px; border-radius: 0; background: rgba(255, 107, 107, 0.13); border-bottom: 1px solid rgba(255, 107, 107, 0.3); font-size: 13px; font-weight: 500; text-align: left; }
.live-banner b { font-size: 15px; }
.live-clock { flex-shrink: 0; font-weight: 700; color: var(--danger); font-variant-numeric: tabular-nums; }
.dot { flex-shrink: 0; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* Экран матча */
.match-top { position: relative; padding: 8px 10px 10px; background: var(--surface); }
.back { position: absolute; left: 6px; top: 6px; z-index: 1; width: 36px; height: 36px; padding: 0; background: none; font-size: 26px; line-height: 1; }
.board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; padding-top: 8px; }
.board .team { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; font-size: 12px; font-weight: 600; text-align: center; }
.board .team .ellipsis { max-width: 100%; }
.board .result { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px; }
.board .result b { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.board .result small { font-size: 11px; color: var(--muted); }
.board .result span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.board .result span.on { color: var(--danger); font-weight: 700; }
.subtabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-bottom: 1px solid var(--line); }
.subtabs button { background: none; border-radius: 0; padding: 10px 2px; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.subtabs button.active { color: var(--accent); font-weight: 700; border-color: var(--accent); }
.match-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 14px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.feed { display: flex; flex-direction: column; }
.line-item { display: grid; grid-template-columns: 38px 20px 1fr; gap: 4px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.35; }
.line-item .mn { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; }
.line-item .ic { font-size: 13px; text-align: center; }
.line-item.whistle { color: var(--muted); font-weight: 600; }
.line-item.goal { background: rgba(46, 212, 122, 0.12); margin: 0 -8px; padding: 9px 8px; border-radius: 8px; font-weight: 600; border-bottom: 0; }
.line-item.goal .mn { color: var(--accent); }
.line-item.goal b { color: var(--accent); }
.line-item.chance .tx { font-weight: 600; }
.line-item.red .tx { color: var(--danger); font-weight: 600; }
.stat-row { display: flex; flex-direction: column; gap: 4px; }
.bar { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.stamina { flex-shrink: 0; width: 42px; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.stamina i { display: block; height: 100%; }
.player:disabled { opacity: 1; }

/* Управление клубом */
.tile .stamina { width: 34px; height: 3px; }
.shirt.out { opacity: 0.45; filter: grayscale(1); }
.out-tag { flex-shrink: 0; font-size: 11px; font-weight: 600; color: var(--danger); }
.pname small { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.price-owned { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: 11px; color: var(--muted); }
.res { display: inline-block; width: 16px; height: 16px; line-height: 16px; margin-left: 2px; border-radius: 4px; text-align: center; font-size: 10px; font-weight: 700; color: #06240f; }
.res-w { background: var(--accent); }
.res-d { background: var(--gold); }
.res-l { background: var(--danger); color: #fff; }
.offer { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.offer:first-of-type { border-top: 0; padding-top: 0; }
.offer-actions button { flex: 1; padding: 8px 6px; font-size: 13px; }

/* Рынок дня, вызовы, прогнозы, решающие моменты */
.market-head { gap: 3px; }
.challenge-chip { display: inline-flex; align-items: center; gap: 5px; }
.live-banner.hot { background: rgba(245, 196, 81, 0.2); border-color: var(--gold); }
.live-banner.hot .live-clock { color: var(--gold); }
.moment { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.moment.hot { background: rgba(245, 196, 81, 0.14); box-shadow: inset 0 0 0 1.5px var(--gold); }
.moment p { margin: 0; }
.corner { min-width: 0; padding: 12px 2px; font-size: 13px; }
button.danger { background: var(--danger); color: #fff; }
.prediction { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.prediction:first-of-type { padding-top: 0; border-top: 0; }
.guess-row { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 4px; }
.guess-team { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; font-size: 11px; text-align: center; }
.guess-team .ellipsis { max-width: 100%; }
.guess { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.guess button { width: 34px; height: 26px; min-width: 0; padding: 0; font-size: 16px; line-height: 1; }
.guess b { font-size: 20px; font-variant-numeric: tabular-nums; }
.dev .row { flex-wrap: wrap; }
.dev .row button { min-width: 0; padding: 8px 6px; font-size: 13px; }

/* Цели, события, разведка, босс, замены */
.goal.done { background: rgba(46, 212, 122, 0.12); }
.event p { margin: 0; }
.event-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.event-options button { display: flex; flex-direction: column; gap: 3px; padding: 10px 8px; text-align: center; min-width: 0; }
.event-options small { font-size: 11px; font-weight: 500; opacity: 0.85; }
.event.answered { padding: 10px 12px; gap: 4px; }
.ovr.guess-ovr { width: auto; min-width: 30px; padding: 0 5px; background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--muted); }
.scout { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.scout button { flex-shrink: 0; padding: 8px 10px; font-size: 13px; background: var(--gold); color: #1b1300; }
.boss { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; font-weight: 400; background: linear-gradient(160deg, rgba(62, 155, 255, 0.28), var(--surface) 75%); }
.club-top { padding-bottom: 14px; }
.team-big { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding-top: 6px; }
.team-big b { font-size: 18px; }
.team-big small { font-size: 12px; color: var(--muted); }
.legs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 6px 6px; }
.leg { min-width: 0; padding: 3px 6px; font-size: 11px; font-weight: 600; border-radius: 6px; }
.leg.now { color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.quick-sub { width: 100%; padding: 10px; text-align: left; font-size: 13px; font-weight: 500; background: rgba(245, 196, 81, 0.14); box-shadow: inset 0 0 0 1px rgba(245, 196, 81, 0.5); }
.quick-sub b { color: var(--gold); }
.to-subs { width: 100%; padding: 10px; font-size: 13px; }
.sub-icon { flex-shrink: 0; font-size: 13px; opacity: 0.65; }
.sub-list { max-height: 44dvh; overflow-y: auto; overscroll-behavior: contain; }
.other-pos { opacity: 0.75; }

/* База клуба */
.facility { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.facility:first-of-type { border-top: 0; }
.facility-icon { font-size: 24px; flex-shrink: 0; }
.facility .grow { min-width: 0; }
.facility-buy { flex-shrink: 0; padding: 8px 10px; font-size: 13px; background: var(--gold); color: #1b1300; }
.facility-buy:disabled { background: var(--surface-2); color: var(--muted); }
.pips { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.pips i { width: 12px; height: 5px; border-radius: 3px; background: var(--surface-2); }
.pips i.on { background: var(--accent); }

/* Капитан */
.shirt { position: relative; }
.captain-mark { position: absolute; top: -4px; right: -6px; width: 15px; height: 15px; line-height: 15px; border-radius: 50%; background: var(--gold); color: #1b1300; font-size: 10px; font-weight: 800; font-style: normal; text-align: center; }
.captain-mark.inline { position: static; display: inline-block; vertical-align: middle; }
.active-captain { background: rgba(245, 196, 81, 0.18); color: var(--gold); }

/* Карточка футболиста */
.player-card { max-height: 88vh; overflow-y: auto; }
.card-hero { display: flex; align-items: center; gap: 12px; }
.card-hero b { display: block; font-size: 17px; }
.card-hero .small { margin-top: 2px; }
.card-hero .crest { vertical-align: -4px; }
.card-ovr { flex-shrink: 0; width: 60px; height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: #4b5a75; color: #fff; font-size: 26px; font-weight: 800; line-height: 1.05; }
.card-ovr small { font-size: 11px; font-weight: 700; opacity: 0.8; }
.card-ovr.t2 { background: #2d8c5b; }
.card-ovr.t3 { background: #c9972b; color: #1b1300; }
.card-ovr.t4 { background: #e8b73c; color: #1b1300; box-shadow: 0 0 0 2px #ffe6a0; }
.card-ovr.guess-ovr { background: var(--surface-2); color: var(--muted); }
.card-form { display: flex; flex-direction: column; gap: 5px; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.recent { padding: 5px 0; border-top: 1px solid var(--line); }
.recent:first-child { border-top: 0; }
.recent .rating { width: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.recent .res { width: auto; min-width: 26px; padding: 0 4px; }
.player-card .row.small { align-items: baseline; }
button.wide:disabled, .player-card button:disabled { opacity: 0.5; }
.player-card > * { flex-shrink: 0; }
.backdrop.still, .backdrop.still .sheet { animation: none; }
