:root {
  color-scheme: dark;
  --bg: #090d18;
  --panel: #12192a;
  --panel-2: #182238;
  --surface: #0d1424;
  --text: #eef2fb;
  --muted: #9aa7c2;
  --faint: #65718a;
  --secondary: #8795b1;
  --accent: #7d96ff;
  --accent-2: #54d6b5;
  --danger: #ff6f83;
  --gold: #f7bd55;
  --line: rgba(202, 214, 244, .11);
  --line-strong: rgba(202, 214, 244, .19);
  --shadow: 0 20px 60px rgba(0, 0, 0, .32);
  --card-width: clamp(92px, 9vw, 112px);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 3%, rgba(125, 150, 255, .13), transparent 31rem),
    radial-gradient(circle at 88% 76%, rgba(84, 214, 181, .08), transparent 30rem),
    linear-gradient(180deg, #0b101d 0%, var(--bg) 46%);
  color: var(--text);
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.app { width: min(1120px, 100%); margin: 0 auto; padding: 20px 24px 34px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid rgba(125, 150, 255, .28); border-radius: 11px; color: var(--accent); background: rgba(125, 150, 255, .08); box-shadow: inset 0 0 18px rgba(125, 150, 255, .08); }
.top-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
h1 { margin: 0; font-size: clamp(21px, 3vw, 30px); letter-spacing: -.035em; line-height: 1; }
.subtitle, .hint { color: var(--muted); }
.subtitle { margin-top: 5px; font-size: 12px; letter-spacing: .025em; }

.ghost, .primary, .danger, .room-badge {
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform .14s ease, opacity .14s ease, background .14s ease, border-color .14s ease;
}
.ghost { color: #c6cee2; background: rgba(255, 255, 255, .055); border: 1px solid transparent; }
.ghost:hover:not(:disabled), .ghost:focus-visible { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, .08); outline: none; }
.primary { color: #071510; background: var(--accent-2); font-weight: 850; box-shadow: 0 8px 26px rgba(84, 214, 181, .17); }
.danger { color: white; background: var(--danger); font-weight: 800; }
button:hover:not(:disabled) { transform: translateY(-1px); }
button:disabled { cursor: not-allowed; opacity: .36; }
.wide { width: 100%; }
.compact-action { padding: 8px 10px; font-size: 12px; }
.language-picker { display: inline-flex; }
.language-select { width: 54px; height: 34px; border: 1px solid var(--line); border-radius: 10px; padding: 0 7px; color: var(--text); background: rgba(255, 255, 255, .045); font-size: 11px; font-weight: 850; cursor: pointer; }
.language-select option { color: #111827; background: #f4f6fb; }
.language-select:hover, .language-select:focus-visible { border-color: rgba(125, 150, 255, .42); outline: none; background: rgba(125, 150, 255, .08); }

.room-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--muted); background: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.room-badge:hover, .room-badge:focus-visible { border-color: rgba(125, 150, 255, .35); background: rgba(125, 150, 255, .08); outline: none; }
.room-badge strong { color: var(--text); letter-spacing: .14em; font-size: 12px; }
.room-label { font-size: 11px; }
.copy-icon { display: inline-grid; place-items: center; width: 14px; color: var(--accent); font-size: 14px; line-height: 1; }
.copy-icon.copied { color: var(--accent-2); }
.connection-badge { display: inline-flex; align-items: center; color: var(--faint); font-size: 11px; padding: 6px; }
.connection-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); margin-right: 6px; box-shadow: 0 0 0 3px rgba(255, 111, 131, .08); }
.connection-dot.online { background: var(--accent-2); box-shadow: 0 0 0 3px rgba(84, 214, 181, .08); }

.stats { display: grid; grid-template-columns: 1fr minmax(150px, auto) 1fr; gap: 10px; align-items: stretch; margin-bottom: 10px; }
.stat-card, .round-card, .panel { background: rgba(18, 25, 42, .82); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 10px 34px rgba(0, 0, 0, .16); }
.stat-card { padding: 11px 13px; min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.stat-card.opponent { text-align: right; grid-template-columns: 1fr auto; }
.stat-title { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--muted); gap: 12px; font-size: 12px; }
.stat-card.opponent .stat-title { flex-direction: row-reverse; }
.score { grid-row: 2; font-size: 32px; font-weight: 900; line-height: 1; margin-top: 5px; font-variant-numeric: tabular-nums; }
.stat-card.opponent .score { grid-column: 2; }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 5px; }
.count-pill { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 8px; padding: 4px 6px; color: var(--muted); background: rgba(255, 255, 255, .035); white-space: nowrap; font-size: 12px; }
.count-icon { line-height: 1; filter: saturate(.78); }
.count-value { font-variant-numeric: tabular-nums; }
.round-card { min-width: 150px; padding: 10px 16px; display: grid; place-items: center; text-align: center; }
.round-number { font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.role { color: var(--gold); font-size: 11px; margin-top: 3px; font-weight: 750; }
.round-draws { color: var(--secondary); font-size: 11px; margin-top: 3px; }

.board { background: rgba(8, 13, 25, .74); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.board-hud { padding: 12px 18px 11px; background: linear-gradient(180deg, rgba(26, 35, 58, .78), rgba(16, 23, 39, .72)); border-bottom: 1px solid var(--line); }
.phase-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; max-width: 760px; margin: 0 auto 9px; padding: 0; list-style: none; counter-reset: phase; }
.phase-step { position: relative; display: grid; justify-items: center; gap: 5px; color: var(--secondary); font-size: 11px; font-weight: 750; letter-spacing: .025em; }
.phase-step::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3f4a62; border: 3px solid #1a2236; position: relative; z-index: 2; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.phase-step::after { content: ""; position: absolute; top: 4px; left: 50%; width: 100%; height: 1px; background: #303a50; z-index: 1; }
.phase-step:last-child::after { display: none; }
.phase-step.done { color: #8492ad; }
.phase-step.done::before, .phase-step.done::after { background: rgba(84, 214, 181, .48); }
.phase-step.active { color: var(--text); }
.phase-step.active::before { background: var(--gold); box-shadow: 0 0 0 5px rgba(247, 189, 85, .12), 0 0 18px rgba(247, 189, 85, .28); transform: scale(1.12); }
.round-status { text-align: center; min-height: 42px; }
.status { font-size: clamp(17px, 2vw, 19px); font-weight: 850; line-height: 1.2; }
.round-status .hint { margin-top: 4px; font-size: 13px; }

.table-surface { position: relative; isolation: isolate; background: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px), radial-gradient(ellipse at center, rgba(125, 150, 255, .055), transparent 62%), #0a101e; background-size: 28px 28px, 28px 28px, auto, auto; }
.side { position: relative; z-index: 2; padding: 8px 20px 10px; min-height: 0; }
.side-label { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 4px; }
.side-role { color: #91a0bc; letter-spacing: .06em; }
.zone { display: flex; justify-content: center; gap: clamp(7px, 1.4vw, 14px); flex-wrap: nowrap; min-height: 149px; align-items: center; }
.collision-zone { position: relative; z-index: 1; height: 24px; display: flex; align-items: center; justify-content: center; gap: 10px; margin: -2px 22px; color: var(--faint); }
.collision-line { height: 1px; flex: 1; max-width: 170px; background: linear-gradient(90deg, transparent, rgba(202, 214, 244, .18)); }
.collision-line:last-child { background: linear-gradient(90deg, rgba(202, 214, 244, .18), transparent); }
.collision-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--gold); background: #121a2d; font-size: 10px; font-weight: 900; box-shadow: 0 7px 18px rgba(0, 0, 0, .28); }

.card { width: var(--card-width); aspect-ratio: 3 / 4; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; position: relative; user-select: none; overflow: visible; color: var(--text); background: linear-gradient(145deg, #25304e, #151c30); box-shadow: 0 9px 24px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .04); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease, opacity .16s ease; }
button.card { cursor: pointer; padding: 0; }
.card.interactive:hover:not(:disabled), .card.interactive:focus-visible { transform: translateY(-5px) scale(1.025); border-color: var(--gold); outline: none; box-shadow: 0 0 0 4px rgba(247, 189, 85, .11), 0 16px 34px rgba(0, 0, 0, .38); }
.card.interactive:active:not(:disabled) { transform: translateY(-2px) scale(.99); }
.card.back { background: linear-gradient(135deg, rgba(125, 150, 255, .16) 25%, transparent 25%) 0 0 / 16px 16px, linear-gradient(315deg, rgba(125, 150, 255, .16) 25%, transparent 25%) 0 0 / 16px 16px, linear-gradient(145deg, #202b4b, #101626); }
.card.back::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(125, 150, 255, .14); border-radius: 9px; pointer-events: none; }
.card.back .symbol { font-size: clamp(29px, 3.5vw, 39px); color: #7789bb; }
.card.private::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 13px; pointer-events: none; background: rgba(7, 12, 25, .42); box-shadow: inset 0 0 0 1px rgba(125, 150, 255, .11); }
.card.private .symbol { filter: brightness(.78) saturate(.72); }
.card.private .card-name { z-index: 3; color: #a6b2ca; filter: none; }
.symbol, .card-name, .slot-label { position: relative; z-index: 1; }
.symbol { font-size: clamp(36px, 4.2vw, 48px); line-height: 1; }
.card-name { color: var(--muted); font-size: 13px; font-weight: 800; }
.card.target { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(247, 189, 85, .11), 0 0 28px rgba(247, 189, 85, .12), 0 10px 24px rgba(0, 0, 0, .28); }
.card.revealed { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(84, 214, 181, .08), 0 10px 24px rgba(0, 0, 0, .28); }
.card.superseded { opacity: .42; filter: saturate(.38) brightness(.72); transform: scale(.96); }
.card.final-attack { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(84, 214, 181, .12), 0 14px 30px rgba(0, 0, 0, .32); }
.role-chip { position: absolute; z-index: 4; top: -9px; left: 50%; transform: translateX(-50%); border: 1px solid rgba(247, 189, 85, .32); border-radius: 999px; padding: 3px 7px; white-space: nowrap; font-size: 10px; letter-spacing: .045em; text-transform: uppercase; font-weight: 900; color: #ffd889; background: rgba(43, 33, 20, .96); box-shadow: 0 5px 12px rgba(0, 0, 0, .24); }
.role-chip.green { color: #91efd8; border-color: rgba(84, 214, 181, .34); background: rgba(15, 43, 40, .96); }
.role-chip.red { color: #ff9cab; border-color: rgba(255, 111, 131, .32); background: rgba(54, 21, 31, .96); }
.privacy-badge { position: absolute; z-index: 4; left: 7px; bottom: 7px; display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid rgba(125, 150, 255, .32); border-radius: 50%; color: #cbd5f3; background: rgba(10, 16, 34, .88); font-size: 9px; }
.slot-label { position: absolute; bottom: 6px; right: 7px; font-size: 9px; color: rgba(255, 255, 255, .38); }

.attack-vector { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .2s ease; }
.attack-vector.visible { opacity: 1; }
.attack-vector line { stroke: rgba(247, 189, 85, .58); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 6 7; filter: drop-shadow(0 0 4px rgba(247, 189, 85, .28)); }
.attack-vector marker path { fill: var(--gold); }

.panel { margin-top: 10px; padding: 12px 14px; }
.action-panel.passive { padding-block: 0; min-height: 0; border-color: transparent; background: transparent; box-shadow: none; }
.error-text { color: var(--danger); margin: 5px 0 10px; font-size: 13px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ready-wait { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; color: var(--text); }
.ready-wait > span:nth-child(2) { display: grid; gap: 2px; }
.ready-wait strong { font-size: 14px; }
.ready-wait small { color: #9aa7c1; font-size: 11px; }
.ready-check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #06251d; background: var(--accent-2); font-weight: 950; }
.waiting-dot { width: 7px; height: 7px; margin-left: 2px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(84, 214, 181, .08); }
.card-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 1 1 430px; }
.choice-btn { min-width: 0; border: 1px solid var(--line); color: var(--text); border-radius: 11px; padding: 10px 12px; cursor: pointer; background: rgba(255, 255, 255, .045); transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.choice-btn:hover:not(:disabled), .choice-btn:focus-visible { border-color: var(--accent); background: rgba(125, 150, 255, .1); outline: none; }
.choice-btn strong { display: block; font-size: 15px; margin-bottom: 2px; }
.choice-btn small { color: var(--muted); }
.choice-btn.selected { border-color: var(--gold); }
.card-choice { display: grid; grid-template-rows: auto auto auto; place-items: center; gap: 1px; text-align: center; padding: 7px 6px; }
.card-choice strong { min-width: 0; font-size: 13px; line-height: 1.1; }
.card-choice small { font-size: 10px; }
.choice-icon { font-size: 22px; line-height: 1; }
.spacer { flex: 1; }

details.log { margin-top: 10px; background: rgba(18, 25, 42, .54); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
details.log > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 800; padding: 11px 14px; list-style: none; }
details.log > summary::-webkit-details-marker { display: none; }
details.log > summary::after { content: "⌄"; color: var(--faint); transition: transform .16s ease; }
details.log[open] > summary::after { transform: rotate(180deg); }
.log-summary-hint { margin-left: auto; color: var(--secondary); font-size: 11px; font-weight: 500; }
.log-list { padding: 0 13px 13px; }
.log-round { margin-top: 7px; border-left: 1px solid var(--line-strong); padding-left: 12px; }
.log-round summary { cursor: pointer; color: #b8c2d9; font-size: 11px; font-weight: 850; padding: 5px 0; }
.log-events { list-style: none; margin: 2px 0 8px; padding: 0; }
.log-event { position: relative; margin: 7px 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.log-event::before { content: "•"; position: absolute; left: -16px; top: -1px; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--faint); background: var(--panel); font-size: 10px; }
.log-event.attack::before { content: "↗"; color: var(--gold); }
.log-event.reveal::before { content: "◉"; color: var(--accent-2); }
.log-event.result::before { content: "◆"; color: var(--accent); }
.log-event.start::before { content: "▶"; font-size: 7px; }

.overlay { position: fixed; inset: 0; background: rgba(3, 7, 16, .84); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; z-index: 10; }
.modal { width: min(620px, 100%); background: linear-gradient(160deg, rgba(24, 34, 56, .98), rgba(15, 22, 38, .98)); border: 1px solid var(--line-strong); border-radius: 20px; padding: 24px; box-shadow: 0 32px 90px rgba(0, 0, 0, .5); }
.lobby-modal { width: min(440px, 100%); text-align: center; }
.modal-emblem { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px; border: 1px solid rgba(125, 150, 255, .28); border-radius: 14px; color: var(--accent); background: rgba(125, 150, 255, .08); }
.modal h2 { margin: 0 0 8px; font-size: 25px; letter-spacing: -.025em; }
.modal p, .modal li { color: var(--muted); line-height: 1.5; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.join-row { display: flex; gap: 8px; margin-top: 8px; }
.join-row input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; color: var(--text); background: rgba(255, 255, 255, .05); text-transform: uppercase; text-align: center; letter-spacing: .16em; font-weight: 800; }
.join-row input:focus { border-color: var(--accent); outline: 3px solid rgba(125, 150, 255, .1); }
.lobby-modal label { display: block; color: var(--muted); font-size: 11px; text-align: left; }
.divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.rules-list { list-style: none; padding: 0; }
.rules-list li { display: grid; grid-template-columns: 25px 1fr; gap: 10px; align-items: start; margin: 10px 0; }
.rules-list li > span { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 10px; font-weight: 900; }
.rules-list p { margin: 0; }
.hidden { display: none !important; }

@media (max-width: 720px) {
  :root { --card-width: clamp(72px, 22vw, 92px); }
  .app { padding: 10px 11px calc(26px + env(safe-area-inset-bottom)); }
  .topbar { align-items: flex-start; gap: 8px; margin-bottom: 9px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
  .subtitle { display: none; }
  .top-actions { gap: 4px; }
  .connection-badge { width: 12px; overflow: hidden; padding-inline: 2px; white-space: nowrap; }
  .connection-dot { flex: 0 0 auto; }
  .room-label { display: none; }
  .language-select { width: 44px; height: 40px; padding-inline: 4px; }
  .compact-action { width: 40px; height: 40px; overflow: hidden; padding: 0; font-size: 0; position: relative; }
  .compact-action::before { display: grid; place-items: center; font-size: 15px; }
  .rules-action::before { content: "ⓘ"; }
  .leave-action::before { content: "⇥"; font-size: 17px; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .round-card { grid-column: 1 / -1; grid-row: 1; min-height: 54px; padding: 7px; }
  .round-card > div { display: flex; align-items: baseline; gap: 8px; }
  .round-number { font-size: 16px; }
  .round-draws { margin: 0; font-size: 11px; }
  .stat-card { padding: 8px; column-gap: 7px; }
  .stat-card.opponent { text-align: left; grid-template-columns: auto 1fr; }
  .stat-card.opponent .stat-title { flex-direction: row; }
  .stat-card.opponent .score { grid-column: 1; }
  .score { font-size: 25px; }
  .counts { gap: 3px; }
  .stat-title { font-size: 11px; }
  .count-pill { gap: 2px; padding: 3px 2px; font-size: 10.5px; }
  .board { border-radius: 16px; }
  .board-hud { padding: 11px 8px 9px; }
  .phase-track { margin-bottom: 9px; }
  .phase-step { font-size: 9px; }
  .phase-step.active { font-size: 10px; }
  .round-status { min-height: 38px; }
  .status { font-size: 17px; }
  .round-status .hint { color: #a6b2ca; font-size: 11px; padding-inline: 8px; }
  .side { padding: 11px 7px 13px; min-height: 131px; }
  .side-label { padding-inline: 5px; margin-bottom: 6px; font-size: 10px; }
  .zone { gap: clamp(5px, 2vw, 9px); min-height: 112px; }
  .collision-zone { height: 27px; margin-inline: 12px; }
  .collision-mark { width: 27px; height: 27px; font-size: 8px; }
  .symbol { font-size: clamp(34px, 11vw, 43px); }
  .card-name { font-size: 10.5px; }
  .role-chip { font-size: 9px; }
  .panel { padding: 10px; }
  .action-panel { position: sticky; bottom: 8px; z-index: 6; background: rgba(18, 25, 42, .94); backdrop-filter: blur(12px); box-shadow: 0 18px 54px rgba(0, 0, 0, .46); }
  .action-panel.passive { position: static; }
  .controls { gap: 6px; }
  .card-choices { flex-basis: 100%; gap: 5px; }
  .card-choice { padding: 6px 2px; }
  .card-choice strong { font-size: 11px; }
  .card-choice small { font-size: 9px; }
  .choice-btn strong { font-size: 15px; }
  .choice-btn small { font-size: 11px; }
  .choice-icon { font-size: 20px; }
  .controls > .spacer { display: none; }
  .controls > .primary, .controls > .ghost, .controls > .choice-btn { flex: 1 1 auto; }
  .join-row { flex-direction: column; }
  .modal { padding: 20px; }
}

@media (max-width: 390px) {
  :root { --card-width: clamp(70px, 21vw, 82px); }
  .app { padding-inline: 8px; }
  h1 { font-size: 20px; }
  .brand { gap: 7px; }
  .room-badge { padding: 6px 7px; }
  .room-badge strong { font-size: 10px; }
  .room-badge .copy-icon { display: none; }
  .connection-badge { display: none; }
  .phase-step { font-size: 9px; letter-spacing: 0; }
  .phase-step::before { width: 6px; height: 6px; }
  .side { padding-inline: 4px; }
  .card-name { font-size: 10px; }
  .role-chip { font-size: 9px; padding: 3px 5px; }
  .count-pill { font-size: 10px; }
}

.board[data-phase="round_result"] .round-status .hint { color: #a9b4ca; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
