/* Wave 3 (SkillSafe additions): the kit's overlay pieces take the game's own theme colours. */
.ssk-root {
  --ssk-bg: var(--cell); --ssk-fg: var(--text); --ssk-muted: var(--muted, #777); --ssk-line: var(--border, rgba(128, 128, 128, .4));
  --ssk-accent: var(--accent); --ssk-accent-fg: var(--accent-text, #fff); --ssk-font: inherit;
}
.ssk-root .ssk-title, .ssk-root .ssk-big { font-family: var(--font-display); }
.ssk-root .ssk-pre { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.w3-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w3-pair .btn { padding-left: 8px; padding-right: 8px; }
.w3-row:empty { display: none; }
.w3-row { margin-top: 10px; }
.w3-badges { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.w3-badges li { border: 1px dashed var(--ssk-line); border-radius: 10px; padding: 8px 10px; opacity: .5; }
.w3-badges li.on { opacity: 1; border-style: solid; border-color: var(--ssk-accent); }
.w3-badges b { display: block; font-family: var(--font-display); font-size: .95em; }
.w3-badges span { font-size: .8em; color: var(--ssk-muted); }

/* The host's corner mascot widget is hidden while a game is being played, from the game's own markers:
   the game screen is the active one and the result box is still hidden. It is back on the menu and setup
   screens, when the result shows, and whenever a dialog is open (help, settings, confirm, or one of ours). */
body:has(#screen-game.active):has(#result[hidden]):not(:has(.modal:not([hidden]))):not(:has(.ssk-scrim)) #ss-overlay { display: none !important; }
