/* Elsoor Playroom Arcade. Light-only 2D presentation; game geometry stays authoritative. */
:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --canvas: #f7f3ec;
  --surface: #ffffff;
  --raised: #ffffff;
  --ink: #18212b;
  --muted: #5d6a79;
  --line: #dbe1e7;
  --primary: #a93810;
  --primary-fill: #c74412;
  --primary-soft: #ffead7;
  --table: #18212b;
  --team-purple: #7353a6;
  --pink: var(--primary);
  --violet: var(--table);
  --cyan: #4566a6;
  --blue: #4566a6;
  --gold: #865d14;
  --green: #167b5b;
  --red: #c9343d;
  --play-coral: #e95a47;
  --play-blue: #397ae5;
  --play-teal: #1e9b82;
  --play-saffron: #e7a71b;
  --play-violet: #7a59be;
  --panel: var(--surface);
}
html body { background: var(--canvas); color: var(--ink); }
html .party-score-row[class*="color-"] { border-left: 0; border-inline-start: 8px solid var(--party-team-color, var(--line)); }
html .party-score-row.color-coral { --party-team-color: var(--primary); }
html .party-round-delta { display: block; color: var(--ink); font-size: .5em; text-align: end; white-space: nowrap; }
/* The Director may serve six teams, not only the two in the current challenge. */
html .tv-intermission-fragment { gap: clamp(12px, 2vw, 40px); }
html .tv-intermission-fragment .party-mini-board { height: 100%; min-height: 0; align-content: stretch; grid-auto-rows: minmax(0, 1fr); }
html .party-mini-board.dense, html .party-podium.dense { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(5px, .8vh, 12px); }
html .party-mini-board.dense .party-score-row, html .party-podium.dense .party-score-row { grid-column: auto; min-width: 0; min-height: 0; padding: clamp(7px, 1vh, 16px); gap: 8px; transform: none; font-size: clamp(16px, 1.5vw, 30px); }
html .party-score-row .party-team-copy { min-width: 0; overflow-wrap: anywhere; }
html .party-score-row .party-team-copy strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
html .party-score-row.leader { transform: none; }
html .tv-party-scores-fragment:has(.party-event-details) { grid-template-rows: auto auto minmax(0, 1fr) auto; }
@media (max-height: 600px) {
  html .tv-intermission-fragment .party-intro-card { gap: 5px; justify-content: start; align-content: center; }
  html .tv-intermission-fragment .party-intro-card > h1 { font-size: 24px; line-height: 1.08; }
  html .tv-intermission-fragment .party-intro-card > .stage-copy { font-size: 15px; }
  html .tv-intermission-fragment .party-beat { padding: 5px 8px; }
  html .tv-intermission-fragment .party-beat > b { display: none; }
  html .tv-intermission-fragment .switch-countdown { width: 48px; height: 48px; font-size: 26px; border-width: 4px; }
  html .party-mini-board.dense .party-team-copy small, html .party-mini-board.dense .party-team-copy em { display: none; }
  html .party-event-details { gap: 3px; }
  html .party-event-details span { padding: 3px 6px; font-size: 12px; }
}
html .party-score-row.color-cyan { --party-team-color: var(--blue); }
html .party-score-row.color-gold { --party-team-color: var(--gold); }
html .party-score-row.color-green { --party-team-color: var(--green); }
html .party-score-row.color-violet { --party-team-color: var(--team-purple); }
html .party-score-row.color-navy { --party-team-color: var(--muted); }
body .ambient, body .game-context::before, body .game-context::after { display: none; }
body .glass { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
body .eyebrow { color: var(--primary); font-size: 11px; font-weight: 650; letter-spacing: .09em; }
body :is(button,input,textarea,select) { font-family: inherit; }
body .button { border-radius: 12px; font-size: 16px; font-weight: 600; box-shadow: none; min-height: 56px; background: var(--raised); color: var(--ink); }
body .button:hover { transform: none; filter: none; border-color: var(--primary); }
body .button:active { transform: scale(.985); }
body .button.primary { color: #fff; background: var(--primary-fill); box-shadow: none; }
body .button.secondary { background: var(--surface); border-color: var(--line); }
body :is(button,input,textarea,a):focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
body .lang-toggle { background: var(--surface); color: var(--ink); border-radius: 10px; min-width: 44px; min-height: 44px; font-size: 13px; font-weight: 500; }
body .brand-mark { width: 30px; height: 30px; }
body .brand-lockup b, body .host-brand b, body .legal-brand b { font-size: 26px; font-weight: 650; letter-spacing: -.04em; }
body .brand-lockup>span { display: none; }

/* Install-free phone: one public context, followed immediately by the full private action. */
html body.controller-page[class] { display: block; padding: max(16px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom)); min-height: 100svh; }
html .controller-page .controller-shell { width: min(650px,100%); margin: 0 auto; min-height: calc(100svh - 36px); padding: 20px; border-radius: 20px; }
html .controller-page .controller-brand { margin-bottom: 20px; gap: 9px; letter-spacing: 0; }
html .controller-page .controller-brand b { font-size: 26px; }
html .controller-page .controller-shell:has(#join:not(.hidden)) { max-width: 460px; }
.join-art { position:relative; height:150px; margin:0 0 24px; overflow:hidden; border-radius:16px; background:var(--table); }
.join-art::before { content:"A♠    K♥"; position:absolute; right:36px; top:24px; width:112px; height:74px; padding:16px 12px; border:3px solid var(--play-blue); border-radius:12px; background:#fff4de; color:var(--ink); box-shadow:-24px 14px 0 -3px #fff4de,-24px 14px 0 0 var(--play-coral); font:800 23px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace; transform:rotate(4deg); white-space:pre; }
.join-art::after { content:"6 · 3   4 · 2"; position:absolute; right:50px; bottom:17px; padding:9px 12px; border:2px solid var(--ink); border-radius:8px; background:#fff; color:var(--ink); box-shadow:50px 3px 0 -6px var(--play-teal),67px -4px 0 -7px var(--play-saffron),84px 5px 0 -7px var(--play-coral); font:800 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
html #join h1, html #lobby h1 { font-size: 34px; font-weight: 650; letter-spacing: -.035em; line-height: 1.12; }
html #joinCopy { line-height: 1.5; font-size: 15px; }
.field-label { display: block; margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--ink); }
body .field { margin-top: 7px; border-radius: 10px; background: var(--canvas); color: var(--ink); border-color: var(--line); height: 56px; font-size: 17px; }
body .field.code { font-family: "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .22em; font-size: 25px; font-weight: 600; direction: ltr; }
body .field:focus { border-color: var(--primary); box-shadow: none; }
body .host-link { color: var(--muted); font-size: 13px; line-height: 1.5; }
body .status { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.4; }
body .identity-card { border-radius: 12px; background: var(--primary-soft); color: var(--ink); font-weight: 600; }
body .player { border-radius: 10px; background: var(--surface); }
body .report { color: var(--muted); min-width: 44px; min-height: 44px; }
.player-name { display: flex; align-items: center; gap: 10px; }
.player-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); flex: 0 0 auto; }
.player-dot.blue { background: var(--blue); }
.player-dot.offline { background: var(--muted); }

html body .game-context {
  --ink: #f2f5f8; --muted: #b3c0cd; --gold: #ffb594; --pink: #f18660; --cyan: #a8bfeb;
  margin: 0 0 18px; padding: 14px; gap: 8px; background: var(--table); border: 0; border-radius: 14px; box-shadow: none;
}
html .game-context-topline { gap: 6px; }
html .game-context-round, html .game-context-phase { border: 0; padding: 2px 0; font-size: 10px; letter-spacing: .04em; font-weight: 500; }
html .game-context-timer { width: 34px; height: 34px; font-size: 15px; border-width: 2px; animation: none; font-variant-numeric: tabular-nums; }
html .game-context-scores { gap: 8px; }
html .game-context-score { border-width: 0 0 0 2px; padding: 5px 8px; border-radius: 4px; background: #ffffff09; }
html .game-context-score small { font-size: 9px; color: #c0cbd7; font-weight: 500; }
html .game-context-score b { font-size: 17px; font-weight: 600; }
html .game-context-media { border-radius: 10px; border: 0; box-shadow: none; }
html .game-context-media-stage { max-height: 110px; aspect-ratio: 2.5; background: #18212b; }
html .game-context-media figcaption { font-size: 10px; font-weight: 400; padding: 5px 8px; }
html .game-context-kicker { display: none; }
html .game-context-prompt { font-size: clamp(21px,5.8vw,28px); font-weight: 600; letter-spacing: -.025em; line-height: 1.18; }
html .game-context-progress { font-size: 11px; font-weight: 400; color: #bcc8d5; min-height: 0; }
html .game-context-narration { font-size: 12px; font-weight: 400; border-radius: 8px; }
html .private-action-head { margin: 0 0 12px; }
html .private-action-head>span { color: var(--muted); font-size: 10px; font-weight: 500; }
html .controller-page .prompt { font-size: 22px !important; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; margin: 5px 0 0 !important; text-align: start; }
html .controls { gap: 10px; }
html .choice, html .rich-choice { min-height: 56px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: none; font-size: 16px; text-align: start; line-height: 1.3; }
html .choice:nth-child(n), html .rich-choice:nth-child(n) { border-left: 1px solid var(--line); }
html .choice.locked { border-color: var(--green); background: var(--primary-soft); opacity: 1; }
html .rich-choice.kind-trivia { padding-inline-end: 42px; }
html .rich-choice.kind-trivia::after { color: var(--primary); opacity: 1; font-family: "SFMono-Regular",Menlo,Consolas,monospace; font-size: 14px; }
html .rich-choice.kind-survey { background: var(--surface); }
html .column-controller-board { gap: 12px; }
html .column-controller-scores { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
html .column-controller-scores>span { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-left: 4px solid var(--play-coral); border-radius: 9px; background: var(--surface); }
html .column-controller-scores>span.color-1 { border-left-color: var(--play-blue); }
html .column-controller-scores>span.color-2 { border-left-color: var(--play-saffron); }
html .column-controller-scores>span.color-3 { border-left-color: var(--play-teal); }
html .column-controller-scores>span.active { background: var(--primary-soft); border-color: var(--primary-fill); }
html .column-controller-scores b { min-width: 0; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
html .column-controller-scores em { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 600; }
html .column-controller-grid { direction: ltr; gap: 6px; padding: 10px; border: 2px solid var(--ink); border-radius: 16px; background: var(--ink); }
html .column-touch-lane { box-sizing:border-box; width:100%; min-inline-size:0; grid-template-columns:minmax(0,1fr); padding: 6px 3px 8px; gap: 5px; border: 2px solid transparent; border-radius: 10px; background: transparent; box-shadow: none; }
html .column-touch-lane:hover:not(:disabled), html .column-touch-lane:focus-visible { transform: translateY(-2px); border-color: var(--play-saffron); background: #ffffff12; box-shadow: none; }
html .column-touch-slot { box-sizing:border-box; width:100%; min-width:0; max-width:100%; height:auto; aspect-ratio:1; border: 1px solid #ffffff24; background: #ffffff18; box-shadow: none; }
html .column-touch-slot.owner-0 { background: var(--play-coral); border-color: #fff; box-shadow: none; }
html .column-touch-slot.owner-1 { background: var(--play-blue); border-color: #fff; box-shadow: none; }
html .column-touch-slot.owner-2 { background: var(--play-saffron); border-color: #fff; box-shadow: none; }
html .column-touch-slot.owner-3 { background: var(--play-teal); border-color: #fff; box-shadow: none; }
html .column-touch-badge { background: #ffffff16; color: #fff; }
html .column-controller-board.color-1 .column-touch-badge,
html .column-controller-board.color-2 .column-touch-badge,
html .column-controller-board.color-3 .column-touch-badge { background:#ffffff16; color:#fff; }
html .column-touch-footer { min-height: 24px; background: var(--primary-fill); color: #fff; border-radius: 7px; }
html .column-touch-lane:disabled .column-touch-footer { background: #ffffff24; }
html .mini-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; }
html :is(.mancala-help,.nine-stones-help,.royal-help,.world-draughts-help) { background: var(--canvas); color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; border-radius: 8px; }
html :is(.mancala-meta,.nine-stones-meta,.royal-meta,.world-draughts-meta) small { font-size: 10px; font-weight: 500; }
html :is(.mancala-meta,.nine-stones-meta,.royal-meta,.world-draughts-meta) em { font-size: 10px; font-weight: 400; white-space: normal; }

/* TV: one bounded scene, a compact header and a quiet caption below the action. */
html body.host-page { width: 100%; height: 100svh; min-height: 0; padding: clamp(18px,3vh,60px) clamp(24px,3.5vw,132px); overflow: hidden; }
html .host-shell { width: 100%; max-width: none; height: 100%; display: flex; gap: 12px; }
html .host-topbar { order: 0; min-height: 40px; margin: 0; gap: 20px; flex: 0 0 auto; }
html .host-brand { gap: 10px; letter-spacing: 0; }
html .host-brand .brand-mark { width: clamp(32px,3vw,72px); height: clamp(32px,3vw,72px); }
html .host-brand b { font-size: clamp(26px,2.4vw,64px); }
html .host-brand>span { font-size: clamp(10px,.8vw,24px); color: var(--muted); font-weight: 500; letter-spacing: .1em; margin-inline-start: 12px; }
html .tv-top-actions { gap: 8px; }
html .tv-top-actions .lang-toggle { font-size: clamp(11px,.8vw,24px); font-weight: 500; min-height: 40px; padding: 8px 12px; }
html .room-mini { background: var(--surface); border-radius: 10px; padding: 8px 12px; }
html .room-mini b { font-family: "SFMono-Regular",Menlo,Consolas,monospace; font-size: clamp(20px,1.6vw,48px); letter-spacing: .1em; }
html .room-mini .muted { font-size: clamp(10px,.8vw,22px); }
html .tv-narrator { order: 2; flex: 0 0 auto; margin: 0; padding: 7px 10px; border-radius: 8px; border: 0; background: transparent; box-shadow: none; color: var(--muted); }
html .tv-narrator-badge { background: var(--primary-soft); color: var(--primary); font-size: clamp(9px,.65vw,22px); font-weight: 600; border-radius: 6px; letter-spacing: .05em; }
html .tv-narrator b { color: var(--muted); font-size: clamp(13px,1vw,32px); font-weight: 400; }
html .tv-narrator small { color: var(--muted); font-size: clamp(8px,.6vw,18px); font-weight: 400; }
html .host-grid { order: 1; flex: 1 1 auto; min-height: 0; height: auto; }
html .host-grid.tv-lobby { grid-template-columns: minmax(260px,.66fr) minmax(360px,1.34fr); gap: 24px; }
html .stage, html .join-panel { border-radius: 20px; border-color: var(--line); box-shadow: none; min-height: 0; height: 100%; }
html .stage, html .host-grid.tv-live .stage, html .host-grid.tv-rules .stage, html .host-grid.tv-lobby .stage { padding: clamp(18px,2.6vh,60px) clamp(20px,2.4vw,84px); }
html #pairStage { display: grid; grid-template-columns: minmax(0,.92fr) minmax(360px,1.08fr); grid-template-rows: repeat(6,auto); align-content: center; align-items: center; gap: 10px clamp(28px,4vw,80px); }
html #pairStage>:not(.tv-pair-art) { grid-column: 1; min-width: 0; }
html #pairStage .tv-pair-art { grid-column: 2; grid-row: 1 / -1; align-self: stretch; width: 100%; min-height: min(54vh,500px); height: auto; margin: 0; border: 2px solid #405161; border-radius: 20px; }
html #pairStage .tv-pair-art::before { right: 22%; top: 24%; width: clamp(150px,18vw,300px); height: clamp(96px,11vw,184px); padding: clamp(18px,2vw,34px); border-width: clamp(3px,.3vw,7px); border-radius: clamp(15px,1.4vw,30px); box-shadow: clamp(-55px,-4vw,-28px) clamp(22px,2vw,42px) 0 -3px #fff4de,clamp(-55px,-4vw,-28px) clamp(22px,2vw,42px) 0 2px var(--play-coral); font-size: clamp(28px,3vw,58px); }
html #pairStage .tv-pair-art::after { right: 24%; bottom: 17%; padding: clamp(12px,1.2vw,24px) clamp(16px,1.6vw,30px); border-width: clamp(2px,.2vw,5px); border-radius: clamp(10px,1vw,20px); font-size: clamp(16px,1.6vw,32px); box-shadow: clamp(60px,5vw,100px) 4px 0 -7px var(--play-teal),clamp(86px,7vw,135px) -7px 0 -8px var(--play-saffron),clamp(112px,9vw,170px) 7px 0 -8px var(--play-coral); }
html .stage h1 { color: var(--ink); font-size: clamp(34px,3.6vw,96px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
html .stage-copy { color: var(--muted); font-size: clamp(18px,1.4vw,40px); font-weight: 400; line-height: 1.4; }
html .phase-pill, html .domna-target { color: var(--primary); background: var(--primary-soft); border: 0; border-radius: 6px; font-size: clamp(12px,1vw,28px); font-weight: 600; letter-spacing: .04em; }
html .timer { width: clamp(52px,7vh,130px); height: clamp(52px,7vh,130px); border: 3px solid var(--line); border-top-color: var(--primary); font-size: clamp(23px,2vw,64px); font-weight: 600; font-variant-numeric: tabular-nums; }
html .stage-head { margin: 0; }
html .response-meter { color: var(--muted); background: transparent; box-shadow: none; font-size: clamp(14px,1.1vw,34px); font-weight: 400; line-height: 1.3; }
html .join-panel { padding: 20px; justify-content: center; gap: 10px; }
html .join-panel .qr-frame { width: min(30vh,450px); max-width: 90%; padding: 12px; border-radius: 12px; margin: 0 auto 4px; }
html .qr-frame img { border-radius: 0; }
html .join-panel h2 { font-size: clamp(22px,2vw,48px); letter-spacing: -.025em; }
html .join-panel .join-url { margin: 0; font-size: clamp(14px,1vw,28px); }
html .join-panel .room-code { font-size: clamp(35px,3vw,82px); font-family: "SFMono-Regular",Menlo,Consolas,monospace; font-weight: 600; letter-spacing: .13em; direction: ltr; }
html .join-panel .roster { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 2px 0; }
html .roster-player { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; background: var(--canvas); font-size: clamp(12px,.9vw,24px); color: var(--ink); }
html .join-panel .eyebrow, html #lobbyStatus { display: none; }
html .lobby-instructions { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: clamp(14px,2.4vh,40px); }
html .lobby-instructions>p, html .lobby-instructions>h1 { margin: 0; }
html .join-steps { display: grid; grid-template-columns: 1fr; gap: clamp(10px,1.5vh,26px); margin: 0; }
html .join-steps>div { min-height: 0; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 14px; background: var(--canvas); border: 0; border-radius: 10px; align-items: center; }
html .join-steps b, html .join-steps div:nth-child(n) b { width: 34px; height: 34px; background: var(--primary-soft); color: var(--primary); border-radius: 8px; font-size: 18px; font-weight: 600; }
html .join-steps span { color: var(--ink); font-size: clamp(19px,1.5vw,38px); font-weight: 500; }
html .lobby-count { border-radius: 10px; background: var(--primary-soft); border: 0; padding: 10px 16px; align-self: start; }
html .lobby-count strong { color: var(--primary); font-size: clamp(28px,2.4vw,64px); font-weight: 600; }
html .lobby-count span { font-size: clamp(12px,1vw,28px); font-weight: 500; }
html .lobby-instructions .response-meter { display: none; }

html .tv-trivia-fragment { grid-template-rows: auto minmax(0,1fr) minmax(140px,1.3fr) auto; gap: 16px; }
html .tv-trivia-fragment .tv-fragment-prompt { align-content: center; }
html .answer-grid { gap: 12px; }
html .answer-tile { background: var(--canvas); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; min-height: 0; padding: 16px 20px; font-size: clamp(22px,1.8vw,50px); font-weight: 500; }
html .answer-tile.correct { color: var(--green); border: 2px solid var(--green); background: var(--surface); }
/* Wrong answers remain readable during the reveal; the winning border is the emphasis. */
html .answer-tile.dim { opacity: 1; color: var(--muted); }
.trivia-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
html .trivia-bottom .scorebar { display: flex; flex: 1; max-width: 65%; gap: 14px; }
html .team-score { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-inline-start: 4px solid var(--primary); border-radius: 8px; font-size: clamp(18px,1.5vw,42px); font-weight: 600; padding: 10px 14px; }
html .team-score.blue { color: var(--ink); border-inline-start-color: var(--blue); }
html .team-score.red { color: var(--ink); }
html .tv-rule { background: var(--canvas); border: 0; border-radius: 12px; box-shadow: none; justify-content: flex-start; padding: 18px; }
html .tv-rule b, html .tv-rule:nth-child(n) b { background: var(--primary-soft); color: var(--primary); border-radius: 8px; width: 36px; height: 36px; flex-basis: 36px; font-size: 20px; }
html .tv-rule span { font-size: clamp(18px,1.4vw,38px); font-weight: 400; line-height: 1.32; }
html .bluff-option, html .survey-choice, html .result-row, html .party-score-row { border-radius: 12px; background: var(--canvas); box-shadow: none; border-color: var(--line); }
html .bluff-option b, html .result-row, html .party-score-row { font-weight: 600; }
html .party-intro-card { background: var(--surface); box-shadow: none; border-radius: 16px; }
html .party-beat { background: var(--primary-soft); border-radius: 10px; }
html .switch-countdown { background: var(--table); color: #fff; border-color: var(--primary); border-radius: 16px; box-shadow: none; font-weight: 600; animation: none; }

/* Fixed game-material semantics keep black/white pieces and card faces distinct in both themes. */
html :is(.controller-dama-board,.tv-dama-board,.royal-board,.royal-tv-board,.world-draughts-board,.world-tv-board,.nine-stones-board,.nine-tv-board,.mancala-board,.mancala-tv-board,.tawla-board,.souq-board) { --ink: #18212b; --surface: #fff; --line: #b8c4d2; background-image: none; background-color: #e8edf3; border-color: #273644; border-radius: 16px; box-shadow: 0 12px 30px #10161c1a; color: #18212b; }
html :is(.domna-table,.kout-table,.basra-table,.tarneeb-table,.spades-tv-table,.trix-table,.baloot-table,.concan-table,.baraziliya-tv-table,.hand-table) { --ink: #18212b; --gold: #ffb594; --pink: #e17a53; --cyan: #9ab7f0; background: #18212b; border: 2px solid #405161; border-radius: 20px; box-shadow: 0 12px 30px #10161c1a; }
html :is(.playing-card,.tv-playing-card,.hand-playing-card,.hand-tv-card,.game-context-card,.baraziliya-card,.spades-card) { background: #fff; color: #18212b; border-radius: 8px; font-weight: 600; }
html :is(.playing-card,.tv-playing-card,.hand-playing-card,.hand-tv-card,.game-context-card,.baraziliya-card,.spades-card).red { color: #c9343d; }
html :is(.tv-domino,.controller-domino,.game-context-domino) { background: #fff; color: #18212b; border-color: #adb9c6; border-radius: 6px; }
html :is(.dama-cell,.tv-dama-cell).shade-0 { background: #f1f5f9; }
html :is(.dama-cell,.tv-dama-cell).shade-1 { background: #a9bacb; }
html .controller-dama-help { margin: 12px 0 0; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--muted); text-align: center; }
html .controller-dama-moves.hidden { display: none; }
html .controller-dama-choice-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
html .dama-cell.selected { box-shadow: inset 0 0 0 4px var(--play-saffron), 0 10px 22px #10161c1f; }
html .dama-cell.destination { box-shadow: inset 0 0 0 4px var(--play-teal), 0 10px 22px #10161c14; }
html .dama-cell.destination.capture { box-shadow: inset 0 0 0 4px var(--accent), 0 10px 22px #10161c14; }
html .dama-cell:disabled:not(.movable):not(.selected):not(.destination) { cursor: default; opacity: 1; }
html .nine-tv-board>svg line, html .nine-stones-board>svg line { stroke: #40556b; }
html :is(.nine-stones-piece,.nine-tv-piece) { background: #fff; color: #18212b; border-color: #c0ccd8; }
html :is(.nine-stones-piece,.nine-tv-piece).black { background: #253b50; color: #fff; border-color: #829bb6; }
html .nine-stones-node>i, html .nine-tv-node>em { background: #9aaabb; border-color: #40556b; }
html :is(.mancala-house,.mancala-tv-house) { background: #f9fbfd; border-color: #9dabb9; }
html :is(.mancala-result,.nine-stones-result,.royal-result,.world-draughts-result) { background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: none; }

html .legal-page { padding: 32px 20px; }
html .legal-shell { border-radius: 16px; padding: clamp(24px,5vw,60px); font-size: 16px; }
html .legal-brand { letter-spacing: 0; }
html .legal-shell h1 { font-size: clamp(32px,5vw,54px); line-height: 1.12; font-weight: 600; }
html .legal-shell h2 { font-weight: 600; }
html .legal-shell a { color: var(--primary); }
html[dir="rtl"] :is(.eyebrow,.game-context-round,.game-context-phase,.private-action-head>span) { letter-spacing: 0; }
html[dir="rtl"] .rich-choice.kind-trivia::after { right: auto; left: 13px; }
@media (max-width: 360px) {
  html body.controller-page[class] { padding-inline: 10px; }
  html .controller-page .controller-shell { padding: 16px; }
  html .game-context-prompt { font-size: 21px; }
  html .game-context-media-stage { max-height: 96px; }
}
@media (max-width: 520px) {
  html #pairStage .host-actions { flex-direction: column; }
  html #pairStage .host-actions .button { width: 100%; min-width: 0; }
}
@media (max-width: 900px) {
  html body.host-page { min-height: 100svh; height: auto; overflow: auto; padding: 18px; }
  html .host-shell { min-height: calc(100svh - 36px); }
  html .host-brand>span { display: none; }
  html .host-grid.tv-lobby { grid-template-columns: 1fr; }
  html #pairStage { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  html #pairStage .tv-pair-art { order: -1; min-height: 180px; height: 180px; }
  html #pairStage .tv-pair-art::before { right: 24%; top: 20%; width: 112px; height: 74px; padding: 16px 12px; border-width: 3px; border-radius: 12px; box-shadow: -24px 14px 0 -3px #fff4de,-24px 14px 0 0 var(--play-coral); font-size: 23px; }
  html #pairStage .tv-pair-art::after { right: 25%; bottom: 14px; padding: 9px 12px; border-width: 2px; border-radius: 8px; font-size: 12px; box-shadow: 50px 3px 0 -6px var(--play-teal),67px -4px 0 -7px var(--play-saffron),84px 5px 0 -7px var(--play-coral); }
  html .stage, html .join-panel { min-height: 360px; }
  html .trivia-bottom { flex-direction: column; align-items: stretch; gap: 8px; }
  html .trivia-bottom .scorebar { max-width: none; }
}
@media (min-width: 2560px) {
  html .host-shell { gap: 32px; }
  html .host-grid.tv-lobby { gap: 64px; }
  html .join-panel { gap: 28px; padding: 44px; }
  html .join-steps>div { grid-template-columns: 76px 1fr; gap: 28px; padding: 30px; }
  html .join-steps b { width: 68px; height: 68px; font-size: 36px; }
  html .tv-trivia-fragment { gap: 40px; }
  html .answer-grid { gap: 30px; }
  html .answer-tile { padding: 32px 42px; }
  html .tv-rule { padding: 40px; gap: 24px; }
  html .tv-rule b { width: 70px; height: 70px; flex-basis: 70px; font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

html .status:empty { display: none; }
html .tv-trivia-fragment .team-score.red { background: var(--primary-soft); }
html .tv-trivia-fragment .team-score.blue { background: var(--canvas); }

html .souq-city-art { background: #f7f3ec url('/playroom-kuwait-2d.jpg') center/cover no-repeat; border: 0; }
html .souq-city-art h2 { position: absolute; inset: 14px auto auto 16px; width: fit-content; max-width: 72%; margin: 0; padding: .18em .32em; transform: none; border: 1px solid rgba(24,33,43,.12); border-radius: 10px; background: rgba(255,255,255,.92); color: #18212b; text-align: start; font-size: clamp(20px,2vw,54px); font-weight: 650; line-height: 1.1; }
html .souq-city-art p { position: absolute; inset: auto auto 12px 16px; margin: 0; padding: .24em .48em; border-radius: 8px; background: rgba(255,255,255,.9); color: #18212b; font-size: clamp(8px,.7vw,20px); font-weight: 600; letter-spacing: .06em; }

/* Recognizable chess silhouettes replace the old letter-on-token artwork. */
html :is(.royal-square,.royal-tv-square).shade-0 { background: #f1f5f9; }
html :is(.royal-square,.royal-tv-square).shade-1 { background: #a9bacb; }
html :is(.royal-piece,.royal-tv-piece) { display: grid; place-items: center; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: #ffffff; filter: drop-shadow(0 2px 1px #18212b55); }
html :is(.royal-piece,.royal-tv-piece).black { background: transparent; color: #243a50; }
html :is(.royal-piece,.royal-tv-piece)>small { display: none; }
html :is(.royal-piece,.royal-tv-piece)>b { font-family: "Apple Symbols","Arial Unicode MS","DejaVu Sans",serif; font-weight: 400; line-height: 1; -webkit-text-stroke: 1px #40556b; }
html :is(.royal-piece,.royal-tv-piece).black>b { -webkit-text-stroke: 1px #f1f5f9; }
html .royal-piece>b { font-size: clamp(22px,6.8vw,36px); }
html .royal-tv-piece>b { font-size: clamp(26px,3.1vw,112px); }
html :is(.royal-piece,.royal-tv-piece)::before, html :is(.royal-piece,.royal-tv-piece)::after { display: none; content: none; }

/* A square economy board uses the available stage height, not only the column width. */
html .souq-show { min-height: 0; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); }
html .souq-board { width: min(100%,calc((100svh - 174px) * 1.46)); max-height: calc(100svh - 174px); aspect-ratio: 1.46; min-height: 0; }
html :is(.royal-tv-clock,.world-draughts-tv-clock,.nine-tv-clock,.mancala-tv-clock,.royal-meta>span,.world-draughts-meta>span,.nine-stones-meta>span,.mancala-meta>span) { background: var(--surface); color: var(--ink); }
html :is(.royal-tv-clock,.world-draughts-tv-clock,.nine-tv-clock,.mancala-tv-clock,.royal-meta>span,.world-draughts-meta>span,.nine-stones-meta>span,.mancala-meta>span).active { background: var(--table); color: #fff; }
html :is(.royal-tv-clock,.world-draughts-tv-clock,.nine-tv-clock,.mancala-tv-clock) strong { color: inherit; }
html :is(.royal-tv-ledger,.world-draughts-tv-ledger,.nine-tv-ledger,.mancala-info,.nine-stones-info)>span { background: var(--surface); color: var(--ink); }
html :is(.tarneeb-auction,.tarneeb-private-auction,.tarneeb-auction-status) { background: var(--primary-soft); color: var(--ink); }
@media (min-width:2560px) {
  html .souq-board { width: min(100%,calc((100svh - 330px) * 1.46)); max-height: calc(100svh - 330px); }
}

/* Shared physical materials stay fixed in light and dark interfaces. */
html .tawla-board { background: #f1f5f9; border-color: #536579; }
html .tawla-point::before { background: #a9bacb; }
html .tawla-point:nth-child(even)::before { background: #c9d4e6; }
html .tawla-bar { background: #18212b; border-color: #536579; color: #f2f5f8; }
html .tawla-bar>span { color: #f2f5f8; }
html .tawla-checker { background: #c74412; color: #fff; border-color: #f1f5f9; box-shadow: 0 3px 6px #18212b30; }
html .tawla-checker.owner-1 { background: #4566a6; }
html .tawla-point.last { filter: none; }
html .tawla-point.last::before { outline-color: #c74412; }
html .carrom-tv-board { background: #f1f5f9; border-color: #18212b; box-shadow: inset 0 0 0 5px #536579, 0 12px 24px #18212b20; }
html .carrom-tv-pattern { display: none; }
html .carrom-pocket { background: #18212b; border-color: #536579; }
html .carrom-centre-art { border-color: #53657966; color: transparent; font-size: 0; }
html .carrom-centre-art::after { content: ""; position: absolute; inset: 27%; border: 2px solid #4566a666; border-radius: 50%; }
html .carrom-tv-piece { background: #f1f5f9; color: #18212b; border-color: #536579; }
html .carrom-tv-piece.black { background: #18212b; color: #fff; }
html .carrom-tv-piece.queen { background: #c9343d; color: #fff; }
html .carrom-tv-piece.striker { background: #4566a6; color: #fff; border-color: #536579; }
html .hand-table-pattern { display: none; }
html .hand-card-back { background: #c74412; border-color: #a9bacb; }
html .hand-card-back i { width: 70%; height: 60%; border: 0; border-radius: 0; background: url('/elsoor-mark.svg') center/contain no-repeat; }
html .hand-tv-card { background: #f1f5f9; color: #18212b; border-color: #a9bacb; }
html .hand-tv-card.red { color: #c9343d; }

html .carrom-tv-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
html .carrom-tv-lines line, html .carrom-tv-lines circle { stroke: #4566a6; stroke-width: .5; fill: #4566a61f; }
html .carrom-tv-queen { color: #f2f5f8; font-size: clamp(12px,1vw,26px); min-height: 36px; }
html .carrom-tv-queen span { color: #9ab7f0; }
html .carrom-tv-team { min-height: 64px; padding: 10px 14px; }
html .carrom-tv-team span { font-size: clamp(12px,1vw,26px); }
html .carrom-tv-team small { font-size: clamp(13px,1.1vw,28px); font-weight: 500; line-height: 1.25; }
html .carrom-tv-team b { font-size: clamp(24px,2.3vw,52px); }

html .tawla-die { background: #f1f5f9; border-color: #18212b; }
html .tawla-die>b.on { background: #18212b; }
html .controller-page .carrom-shot-panel { background: var(--surface); border-color: var(--line); border-radius: 16px; padding: 14px; }
html .carrom-range { min-height: 44px; grid-template-columns: 96px minmax(0,1fr); }
html .carrom-range>span { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
html .carrom-shot-panel .carrom-range input { min-height: 44px; accent-color: var(--primary); }
html .carrom-readout { color: #f2f5f8; font-size: 11px; line-height: 1.4; }
html .carrom-shoot:not(:disabled) { background: var(--primary-fill) !important; color: #fff !important; }

/* Shared physical pieces. Keep shape and face visible when an action is locked. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html :is(.playing-card,.tv-playing-card,.hand-playing-card,.hand-tv-card) { position: relative; padding: 0; overflow: hidden; background: #f1f5f9; box-shadow: 0 3px 6px #10161c12; }
.playroom-card-face { display: block; width: 100%; height: 100%; min-width: 0; flex: 1 1 auto; }
html :is(.tv-domino,.controller-domino,.game-context-domino) { display: block; padding: 0; background: #f1f5f9; box-shadow: none; }
.playroom-domino-face { display: block; width: 100%; height: 100%; }
html .controller-domino { flex-basis: 88px; height: 44px; }
html .controller-domino.dim { opacity: .65; }
html .game-context-domino { flex: 0 0 76px; height: 38px; }
html .domna-chain { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: clamp(6px,.7vw,14px); }
html .domna-chain .tv-domino { width: 100%; height: auto; aspect-ratio: 2; min-width: 0; animation: none; }
html .domna-table { padding: clamp(14px,2vw,30px); min-height: 0; }
html :is(.playing-card,.hand-playing-card):disabled { opacity: .7; }
html :is(.playing-card,.hand-playing-card).locked { opacity: 1; outline: 3px solid var(--primary); outline-offset: -3px; }
html .rich-choice.locked::after { content: "✓"; font-size: 20px; }
html .readonly-hand { padding-block: 8px; }
html :is(.controller-card-row,.controller-domino-rack):focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
html :is(.dama-piece,.tv-dama-piece) { background: #f1f5f9; border-color: #536579; color: #18212b; }
html :is(.dama-piece,.tv-dama-piece).owner-1 { background: #18212b; border-color: #a9bacb; color: #f1f5f9; }
html #pairCodeLabel { margin-top: 18px; }

/* State-specific surfaces discovered in the complete interaction/contrast audit. */
html :is(.concan-private-pile,.concan-private-meld,.baraziliya-pile,.hand-mini-meld,.baloot-multiplier-ladder>.current,.baloot-tv-multiplier>.current,.souq-space.special) { --gold: #ffb594; --cyan: #9ab7f0; }
html :is(.concan-private-pile,.concan-private-meld,.baraziliya-pile,.hand-mini-meld,.souq-space.special)>small { color: #ffb594; font-size: 11px; font-weight: 500; letter-spacing: .02em; }
html :is(.baloot-multiplier-ladder,.baloot-tv-multiplier)>.current :is(b,small) { color: #ffb594; }
html .spades-public-bids>.open { opacity: 1; }
html .spades-public-bids>.open>small { color: var(--muted); }
html .basra-table>.eyebrow { color: #ffb594; }
html .basra-table { min-height: 0; }
html .basra-floor { --floor-height: clamp(190px,40vh,520px); height: var(--floor-height); display: grid; grid-template-columns: repeat(var(--floor-columns),minmax(0,1fr)); grid-template-rows: repeat(var(--floor-rows),minmax(0,1fr)); align-items: center; justify-items: center; gap: 6px; }
html .basra-floor .tv-playing-card { width: min(100%,calc((var(--floor-height) - (var(--floor-rows) - 1) * 6px) / var(--floor-rows) * .7),110px); height: auto; aspect-ratio: .7; transform: none; }
html .basra-floor.empty { grid-template-columns: 1fr; }
html .tv-secret-role-fragment { grid-template-rows: auto auto minmax(0,1fr); gap: 16px; }
html .secret-intro h1 { margin: 0 0 10px; font-size: clamp(34px,3.5vw,88px); }
html .secret-intro .stage-copy { margin: 0; }
html .secret-panel { display: grid; grid-template-columns: minmax(0,.36fr) minmax(0,.64fr); gap: clamp(18px,3vw,60px); min-height: 0; padding: clamp(18px,2.5vw,48px); border-radius: 20px; background: #18212b; color: #f1f5f9; }
html .secret-metric { display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; }
html .secret-metric strong { font-size: clamp(52px,7vw,176px); font-weight: 600; line-height: 1.05; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
html .secret-metric>span { font-size: clamp(15px,1.5vw,34px); color: #c2ccd7; }
html .secret-roster { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: minmax(0,1fr); gap: 10px; min-height: 0; }
html .secret-seat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 12px 8px; background: #f1f5f9; color: #18212b; border-radius: 12px; border: 4px solid transparent; text-align: center; }
html .secret-seat>b { font-size: clamp(30px,3vw,70px); font-weight: 600; }
html .secret-seat>span { font-size: clamp(15px,1.6vw,34px); font-weight: 600; overflow-wrap: anywhere; }
html .secret-seat.spy { border-color: #c74412; }
html .secret-seat.spy>b { color: #bf4214; }
html .secret-seat small { display: block; font-size: .65em; }
html .tarneeb-auction { background: #263440; color: #f1f5f9; border: 1px solid #536579; border-radius: 16px; padding: 14px; }
html .tarneeb-auction :is(small,i) { color: #f1f5f9; }
html .tarneeb-auction i { opacity: 1; font-size: 13px; }
html .tarneeb-auction i.current { background: #c74412; color: #fff; }
html .tarneeb-auction>small { font-size: 12px; }
html .baraziliya-tv-card { width: clamp(30px,2.8vw,80px); height: auto; padding: 0; background: #f1f5f9; color: #18212b; border-color: #a9bacb; border-radius: 6px; }
html .baraziliya-tv-card .playroom-card-face { flex: none; height: auto; }
html .baraziliya-tv-card>small { color: #18212b; font-size: clamp(10px,.9vw,24px); }
html :is(.world-draughts-board,.world-draughts-tv-board) { background: #273644; border-color: #273644; }
html :is(.world-draughts-square,.world-draughts-tv-square).active { background: #a9bacb; }
html :is(.world-draughts-square,.world-draughts-tv-square).inactive { background: #f1f5f9; }
html :is(.world-draughts-square,.world-draughts-tv-square).last { box-shadow: inset 0 0 0 2px #4566a6; }
html .world-draughts-square>small, html .world-draughts-tv-square>em { color: #18212b; opacity: 1; font-size: clamp(8px,.8vw,20px); font-weight: 500; }
html .world-draughts-tv-piece { background: #f1f5f9; color: #18212b; border-color: #536579; }
html .world-draughts-tv-piece.black { background: #18212b; color: #f1f5f9; border-color: #a9bacb; }
html .tawla-board .cyan { color: #365891; }
html :is(.concan-card-back,.baloot-card-back) { background: #c74412 url('/elsoor-mark.svg') center/80% no-repeat; border: 1px solid #a9bacb; border-radius: 6px; color: transparent; font-size: 0; box-shadow: none; }
html .concan-piles, html .concan-private-piles { background: var(--canvas); border-color: var(--line); }
html .concan-private-meld { gap: 8px; }
html :is(.royal-tv-clock,.world-draughts-tv-clock,.nine-tv-clock,.mancala-tv-clock) :is(small,em) { font-size: clamp(11px,1vw,24px); font-weight: 500; }
html :is(.royal-tv-clock,.world-draughts-tv-clock,.nine-tv-clock,.mancala-tv-clock) strong { font-size: clamp(16px,1.35vw,32px); }
html .concan-draw-zone { background: var(--canvas); border-color: var(--line); }
html .royal-private-meta>span { background: var(--surface); color: var(--ink); }
html .royal-private-meta>span.active { background: var(--table); color: #f1f5f9; }
html .royal-private-meta small { color: inherit; font-size: 11px; }
html .royal-private-meta em { color: inherit; font-size: 12px; white-space: normal; }
html .concan-candidate>header>span { color: #ffb594; }
html :is(.royal-piece,.royal-tv-piece) { width: 88%; height: 94%; }
.playroom-chess-piece { display: block; width: 100%; height: 100%; }
/* Language direction must not reverse the game's logical coordinates or turn controls. */
html :is(.royal-board,.royal-tv-board,.world-draughts-board,.world-draughts-tv-board,.nine-stones-board,.nine-tv-board,.mancala-board,.mancala-tv-board,.controller-dama-board,.tv-dama-board,.controller-tawla-board,.tawla-board,.game-context-four-grid,.column-controller,.connect-board,.domna-chain,.game-context-domna-chain,.souq-board) { direction: ltr; }
html .baloot-ekka { background: #4566a6; color: #fff; font-size: clamp(10px,.9vw,24px); }
/* Go Stones shares one live, original material board across both browser surfaces. */
.go-controller{display:grid;gap:16px;min-width:0;width:100%}
.go-board-host,.go-board-viewport{min-width:0;max-width:100%;width:100%}
.go-board-viewport{overflow:auto;aspect-ratio:1;direction:ltr;border-radius:16px;overscroll-behavior:contain}
.go-board{display:block;width:100%;height:auto;aspect-ratio:1;direction:ltr;max-width:none;touch-action:pan-x pan-y}
.go-board-viewport.zoomed{max-height:420px;aspect-ratio:auto}
.go-board-viewport.zoomed .go-board{width:var(--go-zoom-width);min-width:100%}
.go-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.go-player{display:flex;flex-direction:column;gap:4px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}
.go-player.active{border:2px solid var(--primary);padding:13px}
.go-side,.go-seat-state{font-size:12px;font-weight:700;letter-spacing:.06em}
.go-name{font-size:16px;overflow-wrap:anywhere;line-height:1.25}
.go-clock{font-size:26px;font-variant-numeric:tabular-nums;line-height:1.15}
.go-player small,.go-help{color:var(--muted)}
.go-help{font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.go-selected{font-size:16px;line-height:1.4;margin:0;font-weight:600;min-height:24px}
.go-coordinate-picker{display:grid;grid-template-columns:1fr 1fr;gap:12px;direction:ltr}
.go-coordinate-picker select{min-height:48px;width:100%;padding:8px 12px;font:inherit;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.go-actions{display:grid;gap:10px}
.go-controller button{min-height:48px;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
.go-controller button:disabled{cursor:default}
.go-score{display:grid;gap:10px;border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--surface);color:var(--ink)}
.go-score h3{font-size:18px;line-height:1.3;margin:0}
.go-score-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;font-variant-numeric:tabular-nums;font-size:15px;direction:ltr}
.go-score-row strong{font-size:22px;min-width:48px;text-align:right}
.go-score>small{line-height:1.4;color:var(--muted)}
.go-result{padding:18px;border-radius:16px;background:var(--primary-soft);font-size:22px;font-weight:700;line-height:1.3}
.go-tv-show{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:clamp(20px,3vw,56px);height:100%;min-height:0;align-items:center}
.go-tv-show>.go-board-viewport{width:min(100%,calc(100vh - 160px));justify-self:center;overflow:hidden}
.go-tv-copy{display:flex;flex-direction:column;gap:clamp(12px,1.8vh,28px);min-width:0;max-height:100%}
.go-tv-copy h1{font-size:clamp(28px,3.2vw,78px);line-height:1.1;margin:0;overflow-wrap:anywhere}
.go-tv-copy .eyebrow{margin:0}
.go-tv-copy .go-name{font-size:clamp(18px,1.75vw,42px)}
.go-tv-copy .go-clock{font-size:clamp(30px,3vw,64px)}
.go-tv-copy .go-help,.go-tv-move{font-size:clamp(16px,1.6vw,36px);line-height:1.35}
.go-tv-copy .go-side,.go-tv-copy .go-seat-state,.go-tv-copy .go-player small{font-size:clamp(12px,1.05vw,25px)}
.go-tv-copy .go-score h3{font-size:clamp(18px,1.65vw,36px)}
.go-tv-copy .go-score-row{font-size:clamp(15px,1.25vw,28px)}
.go-tv-copy .go-score-row strong{font-size:clamp(24px,2vw,44px)}
.go-tv-copy .go-score>small{font-size:clamp(12px,1vw,22px)}
.go-tv-move{border-top:1px solid var(--line);padding-top:16px}
@media(max-width:360px){.go-player{padding:10px}.go-player.active{padding:9px}.go-name{font-size:14px}.go-clock{font-size:24px}.go-score{padding:12px}.go-score-row{gap:8px;font-size:13px}.go-score-row strong{font-size:20px}}

/* Tawla direct-touch controller: the same warm cut-paper material language as the app. */
html .controller-tawla-hud { background: var(--surface); border-color: var(--line); box-shadow: none; }
html .controller-tawla-stats>i { background: var(--canvas); border-color: var(--line); }
html .controller-tawla-guide { background: var(--primary-soft); color: var(--ink); font-weight: 500; }
html .controller-tawla-playfield { background: #f4e3c7; border-color: var(--ink); box-shadow: none; }
html .controller-tawla-board.interactive { background: transparent; border: 0; box-shadow: none; }
html .controller-tawla-point::before { background: #efcf98; }
html .controller-tawla-point:nth-child(even)::before { background: var(--play-coral); }
html .controller-tawla-checker { background: var(--primary-fill); border-color: #fff; box-shadow: none; }
html .controller-tawla-checker.owner-1 { background: var(--play-blue); }
html .controller-tawla-point.legal-source .controller-tawla-checker { box-shadow: 0 0 0 3px var(--play-saffron); }
html .controller-tawla-point.selected-source .controller-tawla-checker { box-shadow: 0 0 0 4px var(--ink); }
html .controller-tawla-point.selected-source::before { background: #f4cc68 !important; }
html .controller-tawla-point.legal-target::after { background: var(--play-teal); box-shadow: 0 0 0 3px #1e9b8233; }
html .controller-tawla-point.hit-target::after { background: var(--play-coral); }
html .controller-tawla-special { background: var(--surface); border-color: var(--line); }
html .controller-tawla-special.legal-source { border-color: var(--play-saffron); }
html .controller-tawla-special.legal-target { border-color: var(--play-teal); background: #1e9b8214; }
html .controller-tawla-special.selected-source { border-color: var(--ink); background: var(--play-saffron); }
html .controller-tawla-die-picker { background: var(--canvas); border-color: var(--play-saffron); }
html .tawla-die-choice { background: var(--surface); border-color: var(--line); }
html .tawla-die-choice.hit { color: var(--primary); border-color: var(--play-coral); }
html .controller-tawla-actions .danger { color: var(--red); }
html .controller-tawla-actions .tawla-table-action.primary.locked { background: var(--primary-fill); color: #fff; border-color: var(--primary-fill); }

/* Spades receipts are readable game information, not micro-sized dashboard data. */
html #controls .spades-hand{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;max-width:100%;padding:5px 2px 12px;scroll-snap-type:x proximity;direction:ltr}
html #controls .spades-hand .spades-card{display:block;flex:0 0 78px;width:78px;height:112px;min-width:78px;min-height:112px;max-height:none;padding:0;scroll-snap-align:start}
html #controls .spades-hand .spades-card svg{display:block;width:100%;height:100%}
html #controls .spades-semantic-scores{gap:12px}
html #controls .spades-semantic-scores>span{padding:16px;gap:8px;min-width:0}
html #controls .spades-semantic-scores>span>small{font-size:13px;line-height:1.3;letter-spacing:.02em}
html #controls .spades-semantic-scores>span>b{font-size:36px;line-height:1.2}
html #controls .spades-semantic-scores>span>em{font-size:17px;line-height:1.3}
html #controls .spades-semantic-scores>span>i{font-size:14px;line-height:1.4}
@media(max-width:560px){html #controls .spades-semantic-scores{grid-template-columns:minmax(0,1fr)}}

/* Concan's physical hand owns the phone; the TV already owns the shared table.
   Keep the native 7:10 card stock instead of tiny SVGs inside wide list cells. */
html #controls .concan-hand{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;direction:ltr}
html #controls .concan-hand>.hand-playing-card{display:block;width:100%;height:auto!important;min-width:44px;min-height:64px;aspect-ratio:7/10;padding:0;border-radius:10px}
html #controls .concan-hand>.hand-playing-card>.playroom-card-face{width:100%;height:100%;display:block}
html #controls .concan-hand>.hand-playing-card:disabled{opacity:1;cursor:default}
html #controls .concan-hand-header>button{min-width:44px;min-height:44px;font-size:10px}
html #controls .concan-hand-header>span{font-size:11px;line-height:1.4;letter-spacing:.02em}
html #controls .concan-private-meta>span{min-height:44px;font-size:10px;letter-spacing:.02em}
html #controls .concan-private-meta small{font-size:9px}
html #controls .concan-draw-choice:not(.concan-object-pile){min-height:48px!important}
html #controls .concan-draw-choice:not(.concan-object-pile) span{font-size:12px;line-height:1.3}
html #controls .concan-candidate-label{font-size:12px;line-height:1.4}
html #controls .concan-candidates{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;direction:ltr;padding:4px 2px 12px}
html #controls .concan-candidates>.concan-candidate{flex:0 0 100%;min-width:0;scroll-snap-align:start;box-sizing:border-box}
html[dir=rtl] #controls .concan-candidate{direction:rtl}
html #controls .concan-candidate-rows span{direction:ltr}
html #controls .concan-claim-card>progress{grid-column:1/-1;display:block;width:100%;height:5px;appearance:none;border:0;border-radius:3px;background:var(--line);accent-color:var(--primary-fill)}
html #controls .concan-claim-card>progress::-webkit-progress-bar{border-radius:3px;background:var(--line)}
html #controls .concan-claim-card>progress::-webkit-progress-value{border-radius:3px;background:var(--primary-fill)}
html #controls .concan-claim-card>progress::-moz-progress-bar{border-radius:3px;background:var(--primary-fill)}
