/* Readable controls, while each world keeps its palette, type and materials. */
/* Keep one visual score display; this live region is for assistive technology. */
#actionReadout { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body[data-game="tide-dash"] #actionHint { color:#153c44; font-weight:700; }
body[data-game="pulse-breaker"] #actionHud .action-button:focus-visible { outline-color:#24313b; }

/* Paper launchers use ink for all links and device declarations. */
body:is([data-game="a-dark-room"],[data-game="progress-knight"]) .open-game-shell .eyebrow { color:#715018; }
body:is([data-game="a-dark-room"],[data-game="progress-knight"]) .open-game-shell .game-support { color:#294d40; }
body:is([data-game="a-dark-room"],[data-game="progress-knight"]) .open-game-links a { color:#343456; font-size:14px; min-height:44px; display:inline-flex; align-items:center; }
body:is([data-game="a-dark-room"],[data-game="progress-knight"]) .open-game-links a:focus-visible { outline:3px solid #343456; outline-offset:3px; }

/* The Dots board is paper; its surrounding cabinet is dark teal. */
body[data-game$="-boxes"] .duel-shell { --muted:#c5ddd7; }
.duel-board.boxes .duel-edge:not([data-piece="1"]):not([data-piece="2"]) { background:#64776f; }
.duel-board.boxes .duel-edge[data-piece="1"] { background:#a85a14; }
.duel-board.boxes .duel-edge[data-piece="2"] { background:#17675d; }
.duel-board.boxes .duel-box[data-piece="1"] { color:#643609; background:#efbd77; }
.duel-board.boxes .duel-box[data-piece="2"] { color:#133f38; background:#91d7bf; }
.duel-board.boxes .duel-edge:focus-visible { outline-color:#172e35; }
.duel-board.reversi .duel-cell[data-legal="true"][data-piece="0"]::before { width:24%; background:#dce9bb; box-shadow:0 0 0 1px #0c3025; }
.duel-terms, .duel-rules, .duel-side .fine { font-size:14px; line-height:1.6; }
.duel-badge { font-size:11px; }
.duel-rules summary { min-height:44px; display:flex; align-items:center; }
.duel-rules summary::before { content:'▸'; margin-right:7px; }
.duel-rules[open] summary::before { content:'▾'; }

/* Industrial micro labels should still be readable from a phone. */
#pFoundry .fine, #pFoundry .foundry-machine p, #foundryCores { font-size:13px!important; }
#pFoundry .foundry-machine::before, #pFoundry .foundry-resources span, #pFoundry .foundry-buy>span { font-size:11px; }
.boxing-side small, .boxing-round small, .boxing-connection, .boxing-pad-caption { font-size:12px; line-height:1.4; }
.boxing-control { font-size:13px; }
.boxing-control small { font-size:11px; }
@media(max-width:760px) {
  .boxing-side label { font-size:11px; }
  .boxing-side small { font-size:11px; }
  .boxing-control { min-height:48px; font-size:12px; }
  .boxing-control small { display:none; }
  .boxing-pad-caption { display:none; }
  .duel-seats { font-size:13px; }
  .mancala-row .duel-cell { font-size:13px; }
  .mancala-store { font-size:11px; }
}
@media(forced-colors:active) {
  .duel-board.boxes .duel-edge { border:1px solid ButtonText; }
  body:is([data-game="a-dark-room"],[data-game="progress-knight"]) .open-game-links a { color:LinkText; }
}
