:root {
  color-scheme: light;
  --paper: #f4f3ed;
  --ink: #243d38;
  --muted: #697871;
  --teal: #227b6c;
  --coral: #bb5140;
  --line: #d8ddd2;
  --wood: #d4b993;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 0 25%, color-mix(in srgb, var(--seat-glow, #dfe8dd) 50%, transparent), transparent 55%),
    repeating-linear-gradient(0deg, #65776103 0 1px, transparent 1px 4px),
    var(--seat-paper, var(--paper));
  transition: background 280ms ease;
}
body[data-seat="teal"] {
  --seat-paper: #e7eee8;
  --seat-glow: #b7d4c6;
}
body[data-seat="coral"] {
  --seat-paper: #f3ebe6;
  --seat-glow: #e4c2b4;
}
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .42; cursor: not-allowed; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
button { border: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tabletop { width: min(1000px, calc(100% - 72px)); margin: auto; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 16px; }
.text-button { color: var(--ink); text-decoration: none; font-size: 13px; background: transparent; padding: 10px 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffffa8;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 0 #ffffff80;
}
.back-link:hover,
.back-link:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
  background: #eef4ef;
  outline: none;
}
.brand { font-family: "Avenir Next", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .22em; color: var(--muted); }
.text-button span { margin-left: 8px; }
.heading { display: flex; align-items: flex-end; justify-content: space-between; padding: 28px 0 24px; }
.eyebrow { color: var(--teal); font-size: 11px; letter-spacing: .16em; margin: 0 0 12px; font-weight: 600; }
h1 { font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-weight: 700; font-size: clamp(40px, 5.8vw, 56px); letter-spacing: .06em; line-height: 1.15; margin: 0; }
.title-dot { color: var(--teal); }
.intro { margin: 0 2px 6px 20px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.game-layout { display: grid; grid-template-columns: minmax(0, min(600px, max(380px, calc(100dvh - 320px)))) 320px; gap: clamp(30px, 5vw, 60px); justify-content: center; align-items: start; }
.game-layout[data-layout="lobby"] { grid-template-columns: minmax(0, 1fr) min(300px, 32vw); }
.game-layout[data-layout="lobby"] .board-section { display: none; }
.game-layout[data-layout="lobby"] .lobby-stage { display: grid; }
.game-layout[data-layout="lobby"] .players,
.game-layout[data-layout="lobby"] .action-panel,
.game-layout[data-layout="lobby"] .utility-row,
.game-layout[data-layout="lobby"] .record,
.game-layout[data-layout="lobby"] .save-status { display: none; }
.game-layout[data-layout="play"] .lobby-stage { display: none !important; }
.lobby-stage { display: none; gap: 12px; align-content: start; min-width: 0; }
.board-topline, .board-bottomline { display: flex; align-items: center; justify-content: space-between; padding: 0 5px; height: 32px; gap: 12px; }
.board-topline { margin-bottom: 12px; }
.board-shortcuts { display: flex; gap: 8px; align-items: center; }
.board-shortcuts button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: #ffffff50; }
.board-bottomline { margin-top: 12px; }
.goal-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.teal-text { color: var(--teal); }
.coral-text { color: var(--coral); }
.board-caption { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.board-frame { padding: clamp(14px, 2.2vw, 26px); border-radius: 14px; background: repeating-linear-gradient(3deg, #ffffff0a 0 2px, #76562c04 2px 5px), linear-gradient(135deg, #e7cfad, #c6a277); box-shadow: 0 3px 0 #a9855e, 0 6px 0 #a9855e25, 0 18px 32px #58412517, inset 0 1px 1px #fff9; }
/* Hit areas can extend into tiles without widening the physical groove tracks. */
.board { position: relative; display: grid; aspect-ratio: 1; grid-template-columns: repeat(8, minmax(0, 1fr) minmax(0, .18fr)) minmax(0, 1fr); grid-template-rows: repeat(8, minmax(0, 1fr) minmax(0, .18fr)) minmax(0, 1fr); border-radius: 3px; background: #a7876070; }
.cell { position: relative; min-width: 0; min-height: 0; border-radius: 4px; padding: 0; background: linear-gradient(130deg, #e8d2b1, #d7b98d); box-shadow: inset 0 1px 0 #fff6, 0 1px 2px #745a4a30; display: grid; place-items: center; touch-action: manipulation; }
.cell:disabled { opacity: 1; cursor: default; }
.cell.goal-teal { background: linear-gradient(130deg, #d6d8b5, #c7c6a0); }
.cell.goal-coral { background: linear-gradient(130deg, #e7c7a8, #d9b594); }
.cell.legal { cursor: pointer; }
.cell.legal::after { content: ""; width: 17%; aspect-ratio: 1; border-radius: 50%; background: var(--active-color, var(--teal)); opacity: .65; box-shadow: 0 0 0 5px #ffffff20; }
.cell.legal:hover { background: #eee1c7; }
.cell.path { box-shadow: inset 0 0 0 2px #227b6c88; }
.cell.path::before { content: ""; position: absolute; width: 7%; aspect-ratio: 1; border-radius: 50%; background: var(--teal); top: 15%; right: 15%; }
.cell:focus-visible { outline-offset: -3px; z-index: 5; }
.pawn { width: 62%; height: 78%; pointer-events: none; position: relative; filter: drop-shadow(2px 4px 2px #43301f40); }
.pawn::before, .pawn-mini::before, .winner-pawn::before { content: ""; position: absolute; width: 65%; height: 44%; top: 0; left: 17.5%; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #ffffff45, transparent 60%), var(--pawn-color, var(--teal)); z-index: 1; }
.pawn::after, .pawn-mini::after, .winner-pawn::after { content: ""; position: absolute; width: 100%; height: 68%; bottom: 0; left: 0; border-radius: 35% 35% 28% 28%; background: linear-gradient(100deg, #ffffff25, transparent 35%, #0002), var(--pawn-color, var(--teal)); box-shadow: inset 0 -3px 0 #0002; clip-path: polygon(29% 0, 71% 0, 82% 67%, 100% 83%, 100% 100%, 0 100%, 0 83%, 18% 67%); }
.teal { --pawn-color: var(--teal); }
.coral { --pawn-color: var(--coral); }
.wall { z-index: 2; border-radius: 3px; margin: -1px; pointer-events: none; background: linear-gradient(90deg, #fff4, #0001), var(--pawn-color); box-shadow: 0 2px 2px #49321b50, inset 0 1px 0 #fff4; }
.wall.preview { opacity: .65; background: var(--pawn-color); box-shadow: 0 0 0 2px #fff9; }
.wall.preview.invalid { background: var(--coral); }
.wall-target { z-index: 3; min-width: 0; min-height: 0; background: transparent; place-self: center; padding: 0; border-radius: 3px; touch-action: manipulation; }
.wall-target.horizontal { width: calc(100% - 4px); height: 14px; }
.wall-target.vertical { width: 14px; height: calc(100% - 4px); }
.wall-target::after { content: ""; display: block; border-radius: 2px; background: #f8f1de66; margin: auto; }
.wall-target.horizontal::after { width: 35%; height: 2px; }
.wall-target.vertical::after { width: 2px; height: 35%; }
.wall-target[data-invalid="true"]::after, .wall-target:disabled::after { background: transparent; }
.wall-target:disabled { opacity: 1; cursor: default; }
.wall-target:focus-visible { outline: 2px solid var(--active-color); outline-offset: 0; }
@media (hover: hover) { .wall-target:not(:disabled):hover { background: #fff3; } }
.board-help { color: var(--muted); font-size: 12px; margin: 15px 5px 0; line-height: 1.7; min-height: 21px; }
.board-help.error { color: #a43e30; }
.sidebar { padding-top: 2px; }
.mode-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; height: 36px; margin-bottom: 14px; }
.mode-row label { color: var(--muted); }
.online-panel { padding: 16px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff50; }
.online-field { display: grid; gap: 7px; margin: 12px 0; }
.online-field:first-child { margin-top: 0; }
.online-field label { font-size: 11px; color: var(--muted); }
.online-field input, .share-link { width: 100%; min-width: 0; padding: 10px; color: var(--ink); background: #fafaf5; border: 1px solid #c6cec1; border-radius: 5px; font: inherit; font-size: 12px; }
.online-field input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.room-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.room-actions button { padding: 11px 6px; font-size: 11px; }
.lobby-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 0; font-size: 12px; color: var(--muted); }
.room-list {
  --lobby-cols: 3;
  --lobby-rows: 5;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--lobby-cols), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 10px;
  min-height: min(72dvh, 820px);
}
.room-list.is-empty-lobby {
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: start;
  min-height: 0;
  gap: 14px;
}
.lobby-entry {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-height: 160px;
  aspect-ratio: 1;
  background: #fafaf5;
}
.lobby-entry button {
  display: grid;
  place-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 18px 14px;
  border: 0;
  border-radius: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}
.lobby-entry button small { font-size: 12px; font-weight: 500; opacity: .8; }
.lobby-entry-create button { color: #fff; background: var(--teal); }
.lobby-entry-create button:not(:disabled):hover { background: #196252; }
.lobby-entry-ai button { color: var(--coral); background: #f6ece7; }
.lobby-entry-ai button:not(:disabled):hover { background: #efdfd7; }
.lobby-cta {
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fafaf5;
  aspect-ratio: 1;
}
.lobby-cta button {
  display: grid;
  place-content: center;
  gap: 4px;
  margin: 0;
  padding: 12px 10px;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}
.lobby-cta button small { font-size: 11px; font-weight: 500; opacity: .78; }
.lobby-cta-create { color: #fff; background: var(--teal); }
.lobby-cta-create:not(:disabled):hover { background: #196252; }
.lobby-cta-ai { color: var(--coral); background: #f6ece7; border-top: 1px solid #e4d2c8 !important; }
.lobby-cta-ai:not(:disabled):hover { background: #efdfd7; }
.room-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  min-height: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafaf5;
  aspect-ratio: 1;
}
.room-card.is-empty {
  border-style: dashed;
  background: #f7f6f080;
  align-content: center;
  justify-items: center;
  color: var(--muted);
  font-size: 11px;
}
.room-card-top { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.room-card-id { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; letter-spacing: .04em; }
.room-card-status { font-size: 10px; color: var(--teal); white-space: nowrap; }
.room-card-status.is-active { color: var(--coral); }
.room-card-foot { display: grid; gap: 4px; }
.room-card-meta { font-size: 10px; color: var(--muted); line-height: 1.35; }
.room-card-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.room-card-actions button { flex: 1; min-width: 0; padding: 6px 4px; font-size: 10px; }
.mini-board {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  grid-template-columns: repeat(8, minmax(0, 1fr) minmax(0, .18fr)) minmax(0, 1fr);
  grid-template-rows: repeat(8, minmax(0, 1fr) minmax(0, .18fr)) minmax(0, 1fr);
  border-radius: 4px;
  background: #a7876070;
  pointer-events: none;
}
.mini-cell {
  border-radius: 2px;
  background: linear-gradient(130deg, #e8d2b1, #d7b98d);
  box-shadow: inset 0 1px 0 #fff6;
}
.mini-cell.goal-teal { background: linear-gradient(130deg, #d6d8b5, #c7c6a0); }
.mini-cell.goal-coral { background: linear-gradient(130deg, #e7c7a8, #d9b594); }
.mini-pawn {
  width: 70%;
  height: 78%;
  pointer-events: none;
  position: relative;
  filter: drop-shadow(0 0 2px var(--pawn-color)) drop-shadow(1px 1px 1px #43301f40);
}
.mini-pawn::before {
  content: "";
  position: absolute;
  width: 65%;
  height: 44%;
  top: 0;
  left: 17.5%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffffff45, transparent 60%), var(--pawn-color, var(--teal));
  z-index: 1;
}
.mini-pawn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 68%;
  bottom: 0;
  left: 0;
  border-radius: 35% 35% 28% 28%;
  background: linear-gradient(100deg, #ffffff25, transparent 35%, #0002), var(--pawn-color, var(--teal));
  clip-path: polygon(29% 0, 71% 0, 82% 67%, 100% 83%, 100% 100%, 0 100%, 0 83%, 18% 67%);
}
.mini-wall {
  z-index: 2;
  border-radius: 2px;
  margin: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #fff4, #0001), var(--pawn-color, var(--teal));
  box-shadow: 0 1px 1px #49321b40;
}
.lobby-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 0;
  font-size: 11px;
  color: var(--muted);
}
.lobby-pager button { padding: 8px 6px; font-size: 11px; }
.lobby-pager span { text-align: center; }
.room-heading { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.room-heading strong { font-family: "SFMono-Regular", Consolas, monospace; font-size: 15px; letter-spacing: .04em; }
.room-heading span { font-size: 11px; color: var(--teal); }
.room-links { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.room-links a, .room-links button { font-size: 10px; color: var(--teal); }
.room-links button { margin-left: auto; }
.online-connection { font-size: 11px; line-height: 1.7; color: var(--teal); margin: 13px 0 0; }
.online-note { font-size: 10px; line-height: 1.8; color: var(--muted); margin: 8px 0 0; }
select { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: 8px 27px 8px 11px; font-size: 12px; cursor: pointer; }
.players { display: grid; gap: 9px; }
.player-card { display: flex; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid var(--line); background: #ffffff40; border-radius: 8px; transition: border-color 180ms, background 180ms; }
.player-card.active { border-color: var(--pawn-color); background: #e7ece2; }
.player-card.coral.active { background: #f1e7df; }
.pawn-mini { position: relative; display: block; width: 25px; height: 34px; flex: 0 0 25px; }
.player-info { flex: 1; }
.player-info h2 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.player-info p { font-size: 11px; color: var(--muted); margin: 0; }
.wall-count { display: flex; flex-direction: column; align-items: center; gap: 2px; border-left: 1px solid var(--line); padding-left: 17px; }
.wall-count strong { font-size: 24px; font-weight: 500; color: var(--pawn-color); font-variant-numeric: tabular-nums; line-height: 1; }
.wall-count span { color: var(--muted); font-size: 10px; }
.action-panel { padding: 24px 0 18px; border-bottom: 1px solid var(--line); }
.turn-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.turn-light { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.turn-heading h2 { font-size: 13px; margin: 0; flex: 1; font-weight: 600; }
#round-label { font-size: 10px; color: var(--muted); }
.direct-guide { display: grid; gap: 10px; font-size: 13px; padding: 16px; background: #e7ece2; border-radius: 6px; }
.direct-guide b { color: var(--teal); width: 22px; display: inline-block; font-size: 16px; }
.keyboard-help { font-size: 10px; line-height: 1.8; color: var(--muted); margin: 0; }
.primary-button, .outline-button { padding: 12px 14px; border-radius: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.primary-button { color: #fff; background: var(--teal); }
.primary-button:not(:disabled):hover { background: #196252; }
.outline-button { color: var(--ink); background: transparent; border: 1px solid #c6cec1; }
.outline-button:not(:disabled):hover { background: #e7ebe1; }
.status { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 14px 0 12px; min-height: 41px; }
.status.error { color: #a43e30; }
.hint-button { background: transparent; padding: 5px 0; font-size: 11px; color: var(--teal); }
.hint-button span { margin-right: 6px; }
.hint-button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
.utility-row { display: grid; grid-template-columns: 1fr; padding: 16px 0 22px; }
.record h2 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font-size: 11px; font-weight: 600; }
.record h2 span { color: var(--muted); font-weight: 400; }
.record ol { margin: 0; padding: 0; list-style: none; min-height: 50px; }
.record li { display: flex; gap: 10px; font-size: 11px; color: var(--muted); padding: 5px 0; }
.log-number { font-variant-numeric: tabular-nums; width: 20px; color: #8c988b; }
.log-action { margin-left: auto; }
.save-status { font-size: 10px; color: var(--muted); margin: 16px 0 0; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 42px; padding: 20px 0 26px; font-size: 10px; color: var(--muted); letter-spacing: .06em; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 30px; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); color: var(--ink); background: var(--paper); box-shadow: 0 24px 80px #182d3a30; }
dialog::backdrop { background: #1d352f70; backdrop-filter: blur(5px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dialog-top .eyebrow { margin: 0; }
dialog h2 { font-family: "Songti SC", "STSong", serif; font-size: 30px; margin: 12px 0; }
.dialog-intro, .rule-note { font-size: 13px; color: var(--muted); line-height: 1.9; }
.rules-list { padding-left: 20px; margin: 24px 0; }
.rules-list li { padding: 0 0 14px 6px; font-size: 13px; }
.rules-list p { margin: 7px 0 0; font-size: 12px; color: var(--muted); line-height: 1.8; }
.rule-note { font-size: 11px; padding-top: 14px; border-top: 1px solid var(--line); }
.full-width { width: 100%; margin-top: 12px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.winner-pawn { position: relative; width: 50px; height: 65px; margin: 26px 0; }
.board-frame { position: relative; }
.board-fx { position: absolute; left: -48px; top: -48px; width: calc(100% + 96px); height: calc(100% + 96px); z-index: 6; pointer-events: none; image-rendering: pixelated; }
.battle-caption { position: absolute; z-index: 7; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 9px 15px; border: 1px solid #ffffff90; background: var(--battle-color, var(--teal)); color: #fff4dc; font-size: 11px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; border-radius: 4px; box-shadow: 0 4px 14px #38271830; pointer-events: none; }
.pawn-victor { filter: drop-shadow(0 0 5px var(--pawn-color)); }
.page-footer a { color: var(--teal); margin-left: 10px; text-underline-offset: 3px; }
@media (max-width: 700px) { .board-shortcuts { gap: 4px; } .board-shortcuts button { padding: 7px; } .board-fx { left: -16px; top: -16px; width: calc(100% + 32px); height: calc(100% + 32px); } .battle-caption { font-size: 10px; padding: 8px 12px; } }
@media (min-width: 1000px) { .heading { animation: enter 450ms ease-out both; } .game-layout { animation: enter 500ms 80ms ease-out both; } }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .tabletop { width: min(720px, calc(100% - 40px)); }
  .game-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; }
  .game-layout[data-layout="lobby"] { grid-template-columns: minmax(0, 1fr) 240px; }
  .player-card { padding: 13px 12px; gap: 10px; }
  .wall-count { padding-left: 12px; }
  .heading { padding-top: 30px; }
  .board-caption { font-size: 9px; letter-spacing: 0; }
  .room-list { min-height: 58dvh; gap: 8px; }
  .lobby-cta button { font-size: 12px; }
}
@media (max-width: 700px) {
  .tabletop { width: min(530px, calc(100% - 32px)); }
  .topbar { height: 62px; }
  .brand { font-size: 8px; letter-spacing: .12em; }
  .text-button { font-size: 11px; }
  .back-link { font-size: 12px; min-height: 34px; padding: 0 12px; }
  .heading { padding: 27px 0 22px; }
  h1 { font-size: 43px; }
  .eyebrow { font-size: 10px; letter-spacing: .1em; margin-bottom: 9px; }
  .intro { font-size: 11px; margin-left: 8px; }
  .game-layout { grid-template-columns: 1fr; gap: 22px; }
  .board-frame { padding: 17px; }
  .board-topline { margin-bottom: 6px; }
  .board-bottomline { margin-top: 9px; }
  .board-help { margin-top: 9px; font-size: 11px; }
  .players { grid-template-columns: 1fr 1fr; gap: 8px; }
  .player-card { padding: 12px 10px; gap: 9px; }
  .pawn-mini { width: 20px; height: 28px; flex-basis: 20px; }
  .player-info h2 { font-size: 11px; }
  .player-info p { font-size: 9px; }
  .wall-count { padding-left: 8px; }
  .wall-count strong { font-size: 20px; }
  .wall-count span { font-size: 9px; }
  .mode-row { margin-bottom: 10px; }
  .action-panel { padding-top: 18px; }
  .status { min-height: 0; }
  .direct-guide { grid-template-columns: 1fr 1fr; gap: 8px; padding: 13px; font-size: 11px; }
  .utility-row { padding-bottom: 18px; }
  .page-footer { margin-top: 28px; font-size: 9px; }
}
@media (max-width: 370px) { .brand { display: none; } .intro { font-size: 10px; } h1 { font-size: 38px; } .player-card { gap: 7px; padding: 12px 8px; } .wall-count { padding-left: 6px; } .pawn-mini { width: 17px; flex-basis: 17px; height: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
