/* The island's quiet, shared game room. Gameplay colours retain their meaning. */
html[data-select-game] body,body:has(.game-entry),body:has(.game-room-play) {
  --room-ink:#161a17;--room-ivory:#eeeee1;--room-muted:#bec8b5;--room-lime:#dcf49a;
  --room-position:15%;background:#161a17;color:var(--room-ivory);
}
body[data-game=janggi] {--room-position:0%}
body[data-game=code] {--room-position:57%}
body[data-game=rect] {--room-position:77%}
body[data-game=wallgo] {--room-position:100%}
html[data-select-game=janggi] body {--room-position:0%}
html[data-select-game=code] body {--room-position:57%}
html[data-select-game=rect] body {--room-position:77%}
html[data-select-game=wallgo] body {--room-position:100%}
html[data-select-game] body::before,body:has(.game-entry)::before,body:has(.game-room-play)::before {
  content:'';position:fixed;inset:58px 0 0;pointer-events:none;z-index:0;
  background:linear-gradient(180deg,#161a175c,#161a17b8 65%,#161a17f5),url('/assets/exile-panorama/harbour.webp') var(--room-position) 60% / auto 115% no-repeat;
  opacity:.55;
}
body:has(.game-room-play)::before {opacity:.1}
body:has(.game-entry) #main,body:has(.game-room-play) #main {position:relative;z-index:1}
body:has(.game-entry) .service-links,body:has(.game-room-play) .service-links {position:relative}
.selecting #main.wrap:has(.game-entry) {width:100%;max-width:none}
.selecting .foyer.game-entry {padding:0;min-height:calc(100svh - 58px)}
.game-entry [hidden],.game-room-play [hidden] {display:none!important}
.game-entry .game-welcome {
  position:relative;min-height:calc(100svh - 58px);padding:clamp(72px,10vh,110px) 24px 38px;
  display:flex;flex-direction:column;align-items:center;text-align:center;
}
.game-entry .back-island {position:absolute;top:20px;left:clamp(20px,3vw,48px);display:inline-flex;align-items:center;min-height:44px;text-decoration:none;color:var(--room-muted);font-size:13px}
.game-entry .back-island:hover {color:var(--room-lime)}
.game-entry .welcome-copy {width:min(1100px,100%)}
.selecting .game-entry .welcome-copy h1 {font-size:clamp(54px,7.3vw,110px);font-weight:900;line-height:1.07;letter-spacing:-.055em;text-wrap:balance;overflow-wrap:normal}
.game-entry .one-rule {max-width:650px;margin:22px auto 0;color:#e0e6d7;font-size:clamp(15px,1.5vw,20px);line-height:1.65;text-wrap:balance}
.game-entry .game-emblem {width:clamp(200px,23vw,290px);height:clamp(170px,25vh,245px);margin:14px auto 8px;overflow:hidden;mix-blend-mode:screen;mask-image:radial-gradient(ellipse,#000 45%,transparent 74%)}
.game-entry .game-emblem img {display:block;width:100%;height:100%;object-fit:contain;filter:saturate(.5);transition:transform 400ms cubic-bezier(.2,0,0,1)}
.game-entry .game-emblem:hover img {transform:scale(1.025)}
.game-entry .welcome-actions {display:grid;width:240px;gap:8px}
.game-entry .accentbtn {min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:15px 23px;border:0;border-radius:0;background:var(--room-lime);color:var(--room-ink);font:800 18px/1.35 var(--font-ui);text-decoration:none;transition:background 160ms ease-out,transform 160ms ease-out}
.game-entry .accentbtn:hover {background:#eef9cc;color:var(--room-ink);transform:translateY(-2px)}
.game-entry .accentbtn:active {transform:scale(.97)}
.selecting .game-entry .guide-link {display:flex;align-items:center;justify-content:center;align-self:stretch;margin:0;min-height:44px;color:var(--room-ivory);font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:5px}
.game-entry .guide-link:hover {color:var(--room-lime)}
.game-entry .game-setup {width:min(540px,100%);padding:32px 24px 50px;margin:auto}
.game-entry .setup-back {min-height:44px;padding:0;background:none;border:0;color:var(--room-muted);font-size:13px}
.game-entry .setup-intro {margin:20px 0 30px;text-align:center}
.game-entry .location {margin:0 0 12px;color:var(--room-muted);font-size:13px}
.selecting .game-entry .setup-intro h1 {font-size:clamp(30px,4.2vw,46px);font-weight:850;line-height:1.18;letter-spacing:-.045em;text-wrap:balance}
.selecting .game-entry .entry-settings {display:grid;gap:25px;padding:0;background:none;color:var(--room-ivory);color-scheme:dark;--setup-ink:var(--room-ivory);--setup-muted:var(--room-muted)}
.game-entry .entry-settings .choicefield {padding:0;margin:0;min-width:0;border:0}
.game-entry .entry-settings legend {padding:0;margin-bottom:12px;color:var(--room-muted);font-size:13px;font-weight:500}
.selecting .game-entry .choices {display:flex;gap:8px}
.game-entry .choices label {position:relative;flex:1;min-width:0}
.selecting .game-entry .choices span {display:grid;place-items:center;min-height:48px;padding:8px 5px;border:1px solid #78866f;background:#202d24a6;color:var(--room-ivory);font-size:14px;line-height:1.4;text-align:center}
.selecting .game-entry .choices input:checked+span {background:var(--room-ivory);color:var(--room-ink);border-color:var(--room-ivory)}
.selecting .game-entry .choices label:hover input:not(:checked)+span {background:#3b4838}
.selecting .game-entry .choices input:focus-visible+span {outline:2px solid var(--room-lime);outline-offset:3px}
.game-entry .mode-choice .choices span {min-height:88px;padding:16px 10px;align-content:center;gap:6px}
.game-entry .mode-choice b {font-size:17px}
.game-entry .mode-choice small {font-size:12px;font-weight:500;opacity:.75}
.game-entry .setup-action {width:100%;margin-top:5px}
.game-entry .jg-starter {border:0;margin:0}
.game-entry .jg-starter summary {color:var(--room-muted)}
.game-entry .jg-starter summary b {color:var(--room-ivory)}
/* The board is the centre of attention once the room opens. */
.playing .innerpage.game-room-play:not(.round-complete) {width:min(100%,760px);max-width:760px;padding:28px 0 40px;margin:auto}
.playing .game-room-play .round-heading {display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;border:0;padding:0}
.playing .game-room-play .round-heading h1 {margin:0;font:850 clamp(23px,3vw,32px)/1.2 var(--font-ui);letter-spacing:-.04em;text-align:center}
.game-room-play .round-back,.game-room-play .round-rules {display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:var(--room-muted);font-size:13px;text-decoration:none}
.game-room-play .round-back {justify-self:start}.game-room-play .round-rules {justify-self:end}
.game-room-play .round-back:hover,.game-room-play .round-rules:hover {color:var(--room-lime)}
.game-room-play .play-tip {margin:15px auto 22px;text-align:center;color:var(--room-muted);font-size:14px;line-height:1.6;text-wrap:balance;max-width:600px}
.playing .game-room-play #content {padding-top:0}
.game-room-play .loop-game {--board-width:470px}
.game-room-play .loop-game .workbench {width:min(100%,470px)}
.game-room-play .loop-game .board-frame {padding:12px;border:0;background:var(--room-ivory)}
.game-room-play .loop-game .board-meta {position:static;background:none;min-height:36px;padding-bottom:8px;justify-content:space-between}
.game-room-play .loop-game .board-title,.game-room-play .loop-game .timer {font-size:12px;color:var(--room-muted);font-weight:500}
.game-room-play .loop-game .board-options,.game-room-play .loop-game .check-btn,.game-room-play .loop-game .board-end {display:none}
.game-room-play .loop-game .control-panel {padding:13px 0;border:0}
.game-room-play .loop-game .board-tools {gap:12px;justify-content:center}
.game-room-play .loop-game .tool-row,.game-room-play .loop-game .history-row {gap:4px;border:0}
.game-room-play .loop-game .tool-row button,.game-room-play .loop-game .history-row button {width:46px;padding:0;justify-content:center}
.game-room-play .loop-game .board-tools svg {width:21px;height:21px}
.game-room-play .advanced {margin:20px auto 0;text-align:center;color:var(--room-muted);font-size:12px}
.game-room-play .advanced summary {min-height:32px;list-style:none;cursor:pointer}
.game-room-play .advanced summary::-webkit-details-marker {display:none}
.game-room-play .advanced-tools {display:flex;justify-content:center;flex-wrap:wrap;gap:6px;padding-top:8px}
.game-room-play .advanced-tools button {font-size:12px}
.playing .game-room-play .round-actions,.playing .game-room-play .round-actions+.notice {width:min(100%,470px);max-width:470px;margin:10px auto 0;padding-top:8px;justify-content:space-between;border-color:#ffffff25}
.playing .game-room-play .new-deal,.playing .game-room-play .share-puzzle {background:none;border:0;font-size:13px;color:var(--room-muted);padding-inline:0}
.game-room-play .mini-game {max-width:600px;margin:0 auto 22px}
.game-room-play .mini-intro {position:static;min-height:36px;padding-bottom:8px;margin-bottom:20px;border:0;background:none}
.game-room-play .mini-intro .mini-guide {display:none}
.game-room-play .mini-level,.game-room-play .mini-timer {font-size:12px;font-weight:500;color:var(--room-muted)}
.game-room-play .mini-columns {max-width:552px;gap:20px}
.game-room-play .mini-game .mini-mission {font-size:22px;line-height:1.4;text-align:center}
.game-room-play .mini-instruction {font-size:13px;text-align:center;color:var(--room-muted)}
.game-room-play .mini-game[data-game=rect] .mini-mission {justify-content:center}
.game-room-play .mini-game[data-game=rect] .mini-mission strong {font-size:38px}
.game-room-play .mini-clues {padding:16px 0;border-block:1px solid #ffffff25}
.game-room-play .mini-clues ol {display:grid;grid-template-columns:1fr 1fr;gap:4px 18px}
.game-room-play .mini-clues li {font-size:13px;padding:3px 0;gap:8px}
.game-room-play .mini-form {align-items:end}
.game-room-play .mini-game .mini-submit {background:var(--room-lime);color:var(--room-ink)}
.game-room-play .mini-game .mini-submit:disabled {background:transparent;color:var(--room-muted)}
.game-room-play .janggi-game {max-width:470px}
.game-room-play .jg-head {min-height:40px;border:0;padding-bottom:2px}
.game-room-play .jg-guide {display:none}
.game-room-play .jg-status {font-size:18px}
.game-room-play .jg-context {font-size:12px}
.game-room-play .jg-table {width:min(100%,330px)}
.game-room-play .jg-hand {min-height:56px;padding-block:5px}
.game-room-play .jg-hand-piece {width:44px;height:44px}
.game-room-play .jg-hand-piece .jg-piece {width:40px;height:40px}
.game-room-play .puzzle-ranking {width:min(100%,470px);margin:30px auto 0;padding-top:20px;border-top:1px solid #ffffff35}
.game-room-play .puzzle-ranking summary {font-size:18px;font-weight:750;list-style:none}
.game-room-play .puzzle-ranking summary::-webkit-details-marker {display:none}
.game-room-play .puzzle-ranking small {font-size:11px;font-weight:500;color:var(--room-muted);margin-left:10px}
.game-room-play .rank-list {font-size:13px;color:var(--room-muted);padding-top:18px}
.game-room-play .rank-list table {width:100%;border-collapse:collapse;text-align:left;font-variant-numeric:tabular-nums}
.game-room-play .rank-list th {font-size:11px;padding:0 0 10px;font-weight:500}
.game-room-play .rank-list td {padding:13px 0;border-top:1px solid #ffffff20}
.game-room-play .rank-list td:last-child,.game-room-play .rank-list th:last-child {text-align:right}
.game-room-play .rank-register {font-size:13px;line-height:1.6;color:var(--room-muted)}
.game-room-play .rank-register input {background:var(--room-ivory);color:var(--room-ink);min-height:44px}
.game-room-play .rank-register button {min-height:44px;background:var(--room-lime);color:var(--room-ink)}
@media(max-width:600px) {
  .game-entry .game-welcome {padding:85px 18px 28px;min-height:calc(100svh - 52px)}
  .game-entry .back-island {left:18px;top:15px}
  .selecting .game-entry .welcome-copy h1 {font-size:clamp(44px,12vw,72px);line-height:1.12;letter-spacing:-.055em}
  .game-entry .one-rule {font-size:15px;max-width:340px;margin-top:18px}
  .game-entry .game-emblem {width:230px;height:210px;margin-block:14px 6px}
  .game-entry .welcome-actions {width:220px}
  .game-entry .game-setup {padding:20px 20px 36px}
  .game-entry .setup-intro {margin:14px 0 26px}
  .selecting .game-entry .entry-settings {gap:22px}
  .game-entry .mode-choice b {font-size:16px}.game-entry .mode-choice small {font-size:11px}
  .playing .innerpage.game-room-play:not(.round-complete) {padding:18px 0 30px}
  .playing .game-room-play .round-heading {grid-template-columns:1fr auto 1fr;gap:7px}
  .playing .game-room-play .round-heading h1 {font-size:clamp(19px,5.3vw,24px)}
  .game-room-play .round-back,.game-room-play .round-rules {font-size:12px}
  .game-room-play .play-tip {font-size:12px;margin:12px auto 16px}
  .game-room-play .loop-game .board-frame {padding:7px}
  .game-room-play .loop-game .board-tools {gap:6px}
  .game-room-play .mini-game .mini-mission {font-size:19px}
  .game-room-play .mini-columns {gap:16px}
  .game-room-play .mini-clues ol {grid-template-columns:1fr;gap:4px}
  .game-room-play .mini-clues li {font-size:13px}
  .game-room-play .mini-game .card-grid button {padding:8px;min-height:76px}
  .game-room-play .puzzle-ranking {margin-top:24px}
}
@media(max-width:360px) {
  .selecting .game-entry .choices:has(label:nth-child(4)) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .game-room-play .round-heading h1 {max-width:150px;text-wrap:balance}
  .game-room-play .mini-form {gap:8px}
}
@media(max-height:740px) and (min-width:601px) {
  .game-entry .game-welcome {padding-top:70px}
  .selecting .game-entry .welcome-copy h1 {font-size:clamp(54px,6vw,85px)}
  .game-entry .game-emblem {height:170px;margin-block:4px}
}
@media(prefers-reduced-motion:reduce) {
  .game-entry *, .game-room-play * {scroll-behavior:auto!important}
  .game-entry .accentbtn,.game-entry .game-emblem img {transition:none}
}
.game-entry .solo-settings {display:grid;gap:25px}
.game-entry .solo-settings:empty {display:none}
.game-entry .multiplayer-note {margin:0;color:var(--room-muted);font-size:14px;line-height:1.6;text-align:center}
.game-entry .public-rooms {display:flex;justify-content:center;align-items:center;min-height:44px;color:var(--room-muted);font-size:13px;text-underline-offset:4px}
body[data-entry-stage=setup]:has(.game-entry)::before {opacity:.3}
.game-shell .topbar {position:relative;z-index:12;background:#161a17;border-bottom:1px solid #ffffff13}
.game-shell .topinner {min-height:58px;height:58px;margin-inline:clamp(12px,1.8vw,30px);width:auto;display:flex;justify-content:space-between;align-items:center;gap:12px}
.game-shell .topinner nav,.playing.game-shell .topinner nav {display:flex;gap:clamp(8px,1.6vw,24px);align-items:center;align-self:stretch}
.game-shell .topinner nav a,.game-shell .topinner nav button {display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;gap:7px;background:none;border:0;color:#eeeee1;font:700 13px/1.3 var(--font-ui);text-decoration:none}
.game-shell .topinner nav a:hover,.game-shell .topinner nav button:hover {color:#dcf49a}
.game-shell .topinner .play-exit{display:none}
#shell-map {position:fixed;right:0;top:58px;width:min(320px,90vw);z-index:15;background:#28342b;color:#eeeee1;box-shadow:-10px 20px 50px #0005}
#shell-map[hidden] {display:none!important}
.shell-map-heading {display:flex;align-items:center;justify-content:space-between;padding:14px 20px;font-size:14px}
.shell-map-close {min-width:44px;min-height:44px;border:0;background:none;color:inherit;font:400 26px var(--font-ui)}
#shell-map nav {display:grid}
#shell-map nav a {padding:18px 22px;border-top:1px solid #6b7366;color:inherit;font-size:21px;font-weight:750;text-decoration:none}
#shell-map nav a[aria-current] {background:#dcf49a;color:#161a17}
#shell-map nav a:hover {background:#3b493d}
#shell-map nav a[aria-current]:hover {background:#dcf49a}
.shell-island {display:block;padding:22px;font-size:14px;text-decoration:underline;text-underline-offset:4px}
@media(max-width:600px) {
 .game-entry .solo-settings {gap:22px}
 .game-shell .topinner {min-height:52px;height:52px;margin-inline:10px;gap:6px}
 .game-shell .brandlock {gap:6px;font-size:14px}
 .game-shell .brandmark {width:24px;height:28px}
 .game-shell .topinner nav {gap:8px}
 .game-shell .topinner nav a,.game-shell .topinner nav button {font-size:12px;min-width:32px}
 .shell-map-toggle .shell-map-label {display:none}
 #shell-map {top:52px}
}
@media(prefers-reduced-motion:no-preference) {
 .game-room-play {animation:room-arrival 420ms cubic-bezier(.2,0,0,1) both}
 @keyframes room-arrival {from {opacity:0;filter:blur(5px);transform:translateY(8px)} to {opacity:1;filter:blur(0);transform:translateY(0)}}
}
@media(prefers-reduced-motion:reduce) {
 .game-room-play {animation:room-arrival-reduced 180ms ease-out both}
 @keyframes room-arrival-reduced {from {opacity:0} to {opacity:1}}
}
/* Override the earlier illustrated heading's explicit grid placement. */
.game-room-play .round-heading .round-back {grid-area:1 / 1}
.game-room-play .round-heading .round-name {grid-area:1 / 2;min-width:0}
.game-room-play .round-heading .round-rules {grid-area:1 / 3}
/* Invitation is the next quiet step, with already chosen settings tucked away. */
.game-shell .room-desk.room-invite {display:block;width:min(100%,540px);max-width:540px;margin:0 auto;background:none}
.game-shell .room-invite .room-lead {text-align:left;margin:10px 0 24px}
.game-shell .room-invite .room-lead::after {display:none}
.game-shell .room-invite .invite-game {font-size:13px;color:#bec8b5;margin:0 0 12px}
.game-shell .room-invite .room-lead h1 {font:850 clamp(30px,4.2vw,46px)/1.18 var(--font-ui);letter-spacing:-.045em}
.game-shell .room-invite .room-console {padding:24px;background:#212923;border:1px solid #ffffff28;color:#eeeee1;--room-text:#eeeee1;--room-muted:#bec8b5;--room-rule:#ffffff30;--room-surface:#2b352e;color-scheme:dark}
.game-shell .room-invite .room-format {font-size:13px;color:#bec8b5}
.game-shell .room-invite .invite-settings {border-block:1px solid #ffffff25;padding:0 0 8px}
.game-shell .room-invite .invite-settings>summary {min-height:44px;cursor:pointer;align-content:center;font-size:13px;color:#bec8b5}
.game-shell .room-invite .invite-settings[open] {padding-bottom:20px}
.game-shell .room-invite .room-config {margin-top:18px}
.game-shell .room-invite .room-primary {display:flex;justify-content:space-between;align-items:center;min-height:56px;background:#dcf49a;color:#161a17;border:0;font-size:18px}
.game-shell .room-invite .room-console>.match-rules {margin:22px 0 0;border:0;font-size:13px}
.game-shell .room-invite .room-console .match-rules summary {color:#bec8b5}
.game-shell .room-invite .room-console input:not([type=checkbox]):not([type=radio]) {background:#eeeee1;color:#161a17;min-height:48px}
.game-shell .room-invite .room-check {font-size:13px}
.game-shell:has(.ex-room)::before {content:'';position:fixed;inset:58px 0 0;pointer-events:none;background:linear-gradient(#161a17d9,#161a17f7),url('/assets/exile-panorama/harbour.webp') right center / auto 115% no-repeat}
.game-shell:has(.room-browse)::before {background:none}
.game-shell:has(.ex-room) #main,.game-shell:has(.ex-room)>.service-links {position:relative}
.game-shell .room-race {max-width:820px}
.game-shell .room-race .room-jacket {display:none}
.game-shell .room-race>.room-roomhead {grid-template-columns:minmax(0,1fr) auto;padding-bottom:20px}
.game-shell .room-race .room-roomtitle h1 {font-size:clamp(24px,3vw,32px)}
.game-shell .room-race .room-headside {font-size:12px;gap:12px}
.game-shell .room-race .room-headside button {background:none;border:0;min-height:44px;color:#bec8b5}
.game-shell .wg-eyebrow {display:none}
.game-shell .wg-mode-summary {display:none}
.game-shell .wg-heading h2 {font-size:24px}
.game-shell .wg-clock {font-size:26px}
.game-shell .wg-layout {gap:24px}
@media(max-width:600px) {
 .game-shell:has(.ex-room)::before {inset-block-start:52px}
 .game-shell .room-race .room-headside>span {display:none}
 .game-shell .room-race .room-roomhead {gap:8px}
 .game-shell .room-race .room-headside {gap:8px}
}
.game-shell .room-invite input::placeholder {color:#66705f;opacity:1}
/* Readable play surfaces: one prominent board, fewer competing rules and dividers. */
.game-shell:has(.room-race)::before {background:linear-gradient(#161a17f0,#161a17fc),url('/assets/exile-panorama/harbour.webp') right center / auto 115% no-repeat}
.game-shell .room-race {max-width:1080px}
.game-shell .room-race .mini-game {max-width:600px}
.game-shell .room-race :is(.mini-guide,.loop-game .guide-btn,.jg-guide) {display:none}
.game-shell .room-race .room-roomtitle h1 {font-size:clamp(28px,3vw,40px)}
.game-shell .room-race .room-headside {font-size:15px;gap:20px}
.game-shell .room-race .room-headside button {font-size:16px}
.match-score-details {margin:0 0 24px;color:#bec8b5;font-size:15px}
.match-score-details summary {cursor:pointer;min-height:44px;align-content:center;width:fit-content}
.match-score-details .room-score {margin:0 0 16px}
.game-shell .wg-game {display:block;max-width:none}
.game-shell .wg-heading {border:0;padding:0;margin-bottom:22px;min-height:0}
.game-shell .wg-heading h2 {font-size:clamp(25px,2.5vw,34px)}
.game-shell .wg-clock {font-size:30px}
.game-shell .wg-players {margin:0 0 26px;border:0;gap:12px}
.game-shell .wg-player {border:0;padding:14px 18px;font-size:17px}
.game-shell .wg-player+.wg-player {border:0}
.game-shell .wg-player[data-turn=true] {background:#303b31;box-shadow:inset 3px 0 #c5d5b3}
.game-shell .wg-player small {font-size:13px}
.game-shell .wg-layout {grid-template-columns:minmax(0,620px) minmax(240px,1fr);gap:40px;margin-top:0}
.game-shell .wg-board {width:100%;max-width:620px;margin:0}
.game-shell .wg-controls {border:0;padding:0}
.game-shell .wg-step {font-size:clamp(21px,2vw,27px);line-height:1.4;margin:0 0 24px}
.game-shell .wg-actions button {font-size:16px;min-height:48px}
.playing .game-room-play .play-tip {font-size:16px;line-height:1.6}
.game-room-play .mini-clues li {font-size:16px;padding:6px 0}
.game-room-play .mini-level,.game-room-play .mini-timer,.game-room-play .loop-game .board-title,.game-room-play .loop-game .timer {font-size:14px}
.game-room-play .mini-intro {margin-bottom:24px}
.game-room-play .mini-clues {border:0;padding:12px 0 20px}
.game-room-play .round-back,.game-room-play .round-rules {font-size:15px}
.game-room-play .jg-context,.game-room-play .jg-hand-title {font-size:14px}
.game-room-play .jg-status {font-size:23px}
.game-room-play .jg-table {width:min(100%,400px)}
@media(max-width:700px) {
 .game-shell .room-race .room-headside {gap:12px}
 .game-shell .room-race .room-headside>span {display:none}
 .game-shell .room-race .room-headside button {font-size:14px}
 .game-shell .wg-layout {grid-template-columns:minmax(0,1fr);gap:24px}
 .game-shell .wg-players {gap:6px;margin-bottom:20px}
 .game-shell .wg-player {padding:10px 8px;font-size:14px}
 .game-shell .wg-player small {font-size:12px}
 .game-shell .wg-heading {margin-bottom:16px}
 .game-shell .wg-clock {font-size:25px}
 .game-shell .wg-actions {max-height:none}
 .game-shell .wg-step {font-size:20px;margin-bottom:14px}
 .game-room-play .play-tip,.playing .game-room-play .play-tip {font-size:14px}
 .game-room-play .round-back,.game-room-play .round-rules {font-size:13px}
 .game-room-play .mini-clues li {font-size:15px}
}
@media(min-width:901px) {
 .game-shell .wg-game {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:18px 28px}
 .game-shell .wg-heading {grid-area:1 / 1;align-self:center;margin:0}
 .game-shell .wg-players {grid-area:1 / 2;margin:0;align-self:stretch}
 .game-shell .wg-player {padding:12px;font-size:16px}
 .game-shell .wg-layout {grid-column:1 / -1;grid-template-columns:minmax(0,620px) minmax(240px,1fr);gap:32px}
 .game-shell .wg-board {width:min(100%,max(350px,calc(100svh - 390px)));max-width:620px}
 .game-shell .match-score-details {margin-bottom:14px}
}
@media(min-width:901px) {
 .game-shell .wg-player {display:grid;grid-template-columns:25px minmax(0,1fr);gap:6px 8px;align-content:center}
 .game-shell .wg-player strong {grid-column:2;display:flex;align-items:baseline;gap:7px;margin:0;font-size:22px}
 .game-shell .wg-player strong small {margin:0;font-size:12px;font-weight:500}
}
.game-shell .wg-player>span:nth-child(2) {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game-shell .wg-player>span:nth-child(2) small {white-space:normal}
/* Rectangle play needs one target and one clock above the board. */
.mini-game.rect-focused .mini-intro {width:min(100%,460px);margin:24px auto 16px;padding:0;min-height:44px;gap:16px}
.mini-game.rect-focused .mini-mission {justify-content:flex-start;align-items:baseline;gap:10px;font-size:18px}
.mini-game.rect-focused .mini-mission span {font-size:15px;font-weight:650}
.mini-game.rect-focused .mini-mission strong {font-size:36px;line-height:1}
.mini-game.rect-focused .mini-timer {margin-left:auto;font-size:16px;font-variant-numeric:tabular-nums}
.mini-game.rect-focused .mini-timer b {font-weight:600}
.mini-game.rect-focused .mini-columns {grid-template-areas:"board" "answer";grid-template-columns:minmax(0,1fr);max-width:460px;gap:20px}
@media(max-width:600px) {
 .mini-game.rect-focused .mini-intro {margin-top:20px;margin-bottom:12px}
 .mini-game.rect-focused .mini-mission strong {font-size:32px}
}

/* Keep the board itself on the page centreline, independent of action text. */
.game-shell .wg-layout {grid-template-columns:minmax(0,1fr);justify-items:center;gap:20px}
.game-shell .wg-board {margin-inline:auto}
.game-shell .wg-controls {width:min(100%,620px);justify-self:center}
.game-shell .wg-actions {max-height:none}
.game-shell .wg-step {margin-bottom:14px}

/* Player information uses a shared name, status, and score baseline. */
.game-shell .wg-player {display:grid;grid-template-columns:28px minmax(0,1fr);align-content:start;align-items:start;gap:6px 10px;padding:10px 12px;text-align:start}
.game-shell .wg-player .wg-dot {width:28px;height:28px;margin-top:0;font-size:14px;line-height:1;font-weight:700}
.game-shell .wg-player .wg-player-identity {overflow:visible;white-space:normal;min-width:0}
.wg-player-name {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:800;line-height:28px}
.game-shell .wg-player .wg-break-status {margin-top:4px;min-height:20px;font-size:13px;font-weight:450;line-height:1.5;color:#bec8b5;word-break:keep-all}
.game-shell .wg-player strong {grid-column:2;display:flex;align-items:baseline;gap:8px;margin:0;font-size:20px;font-weight:650;line-height:1.4;font-variant-numeric:tabular-nums}
.game-shell .wg-player strong small {margin:0;font-size:13px;font-weight:450;line-height:1.4;color:#bec8b5}
@media(max-width:700px){
 .game-shell .wg-player {grid-template-columns:22px minmax(0,1fr);gap:6px;padding:10px 6px}
 .game-shell .wg-player .wg-dot {width:22px;height:22px;font-size:12px}
 .wg-player-name {font-size:14px;line-height:22px}
 .game-shell .wg-player .wg-break-status {font-size:12px;min-height:36px;line-height:1.5}
 .game-shell .wg-player strong {grid-column:1 / -1;font-size:18px;gap:5px}
 .game-shell .wg-player strong small {font-size:12px}
}

.nickname-hint {display:block;margin-top:8px;font-size:13px;font-weight:400;line-height:1.5;color:var(--muted,#bec8b5);white-space:normal}

.game-shell .room-player-name,.game-shell .room-score li>.room-player-name {font-weight:800}

.playing .weekly-page>.back {display:inline-flex;margin-bottom:16px;text-decoration:none}

/* Each code clue is one centered, readable condition. */
.game-room-play .mini-game[data-game=code] .mini-clues ol {grid-template-columns:minmax(0,1fr);justify-items:center;gap:4px}
.game-room-play .mini-game[data-game=code] .mini-clues li {justify-content:center;text-align:center;border:0}
