/* ==========================================================================
   Scalar Core: Field skin (visual only)
   Loaded last on the play page. It changes colour, type, surfaces and
   ornament. It does not change rules, layout logic or the engine.

   Direction: "graphic realism" after Scalar Core: Arena, with the print
   language of IV Studios' Moonrakers / Brink and the Destiny / Marathon
   graphic design school: flat ink plates, solid faction colour, one signal
   colour (lime), gold kept for the Core and the Zone, technical metadata
   set in small tracked caps, registration marks and hatching. No glows,
   no glass, no gradients-for-depth, no pills.
   ========================================================================== */

@font-face { font-family: 'SC Tech'; src: url('../../assets/fonts/chakra-petch-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'SC Yume'; src: url('../../assets/fonts/yumexha.woff2') format('woff2'); font-display: swap; }

:root {
  --sk-ink: #0f1014;          /* the table */
  --sk-plate: #15171c;        /* panels */
  --sk-plate-2: #1b1e24;      /* raised: tiles, buttons */
  --sk-plate-3: #23262e;      /* hover */
  --sk-bone: #ebe7dc;         /* text */
  --sk-muted: #8f918f;        /* secondary text */
  --sk-faint: #5b5e63;
  --sk-fg: 235 231 220;        /* the line and text colour, as a triplet */
  --sk-line: rgb(var(--sk-fg) / .12);
  --sk-line-2: rgb(var(--sk-fg) / .26);
  --sk-hex: #16181d;
  --sk-scrim: rgba(9, 10, 13, .78);
  --sk-signal-text: #d4ff2a;
  --sk-gold-text: #e3b34a;
  --sk-glow: .55;
  --sk-glass: rgb(19 21 27 / .6);
  --sk-glass-2: rgb(30 33 41 / .55);
  --sk-blur: blur(14px) saturate(1.2);
  --sk-signal: #d4ff2a;       /* the one signal colour */
  --sk-signal-ink: #10130a;
  --sk-azure: #2f8cff;
  --sk-violet: #ff2d8a;
  --sk-gold: #e3b34a;
  --sk-red: #ff4d3d;
  --sk-cut: 10px;
  --sk-tech: 'SC Tech', 'Chakra Petch', 'Orbitron', sans-serif;
  --sk-body: 'Inter', system-ui, sans-serif;
  --sk-fast: 160ms;
  --sk-slow: 320ms;
}

/* Light theme: the same design on paper. Only the tokens change. */
html[data-theme='light'] {
  /* porcelain: cool paper, deep ink, the faction colours a shade deeper */
  --sk-ink: #e6ecf1; --sk-plate: #f6f8fa; --sk-plate-2: #ffffff; --sk-plate-3: #eaf0f5;
  --sk-bone: #172635; --sk-muted: #4a5f70; --sk-faint: #93a3b0;
  --sk-fg: 23 38 53;
  --sk-hex: #f7fafc;
  --sk-scrim: rgba(226, 233, 239, .66);
  --sk-signal: #c4ee26; --sk-signal-ink: #10130a; --sk-signal-text: #3d5a00;
  --sk-gold: #cf9a32; --sk-gold-text: #7a5400;
  --sk-azure: #1474c8; --sk-violet: #c4287e;
  --sk-glass: rgb(250 252 254 / .66); --sk-glass-2: rgb(255 255 255 / .74);
  --sk-glow: .3;
}

/* ------------------------------------------------------------- ground */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) {
  background-color: var(--sk-ink) !important;
  background-image:
    radial-gradient(rgb(var(--sk-fg) / .075) 1px, transparent 1.3px) !important;
  background-size: 24px 24px !important;
  background-position: 12px 12px !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body)::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body)::after { background-image: none !important; background: none !important; filter: none !important; box-shadow: none !important; }
html:not(#sk-z) .lightning-flash { display: none !important; }

/* No glow, no glass, anywhere in the game UI. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal, #log-panel, #rb-sidebar, #left-sidebar, #rb-hover-overlay) :is(*, *::before, *::after) {
  text-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal, #log-panel, #rb-sidebar, #left-sidebar) :is(.btn, .act-btn, .mode-card, .side-stash, .hud-player, .die-chip, .modal-card, .ro-val, .rb-help-icon, .log-toggle-btn) {
  box-shadow: none !important;
}

/* Shared button grammar: chamfered, flat, set in Tech caps. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) .btn {
  border-radius: 0 !important;
  font-family: var(--sk-tech) !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
  transition: background-color var(--sk-fast), color var(--sk-fast), border-color var(--sk-fast) !important;
  animation: none !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) .btn.btn-primary {
  background: var(--sk-signal) !important;
  color: var(--sk-signal-ink) !important;
  border: 0 !important;
  clip-path: polygon(0 0, calc(100% - var(--sk-cut)) 0, 100% var(--sk-cut), 100% 100%, 0 100%) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) .btn.btn-primary:hover:not(:disabled) { background: #e6ff7a !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) .btn.btn-primary:disabled {
  background: repeating-linear-gradient(135deg, rgb(var(--sk-fg) / .06) 0 6px, transparent 6px 12px), var(--sk-plate-2) !important;
  color: var(--sk-faint) !important;
  opacity: 1 !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) .btn.btn-ghost {
  background: transparent !important;
  color: var(--sk-bone) !important;
  border: 1px solid var(--sk-line-2) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) .btn.btn-ghost:hover:not(:disabled) { border-color: var(--sk-signal) !important; color: var(--sk-signal-text) !important; background: transparent !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) .btn:focus-visible { outline: 1px solid var(--sk-signal) !important; outline-offset: 3px !important; }

/* ============================================================== LOBBY */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen.modal { background: transparent !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-mega-card,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-mega-card::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-mega-card::after {
  box-shadow: none !important; border-radius: 0 !important; animation: none !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-mega-card::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-mega-card::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-bg-layer {
  border-radius: 0 !important; border: 0 !important; box-shadow: none !important; animation: none !important;
  background: var(--sk-plate) !important;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-bg-layer::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-bg-layer::after { display: none !important; }
/* The frame: a hairline, two registration marks, and the cut corners drawn in. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-bg-glass {
  inset: 0 !important; width: auto !important; height: auto !important; border-radius: 0 !important; box-shadow: none !important;
  background:
    linear-gradient(var(--sk-line-2), var(--sk-line-2)) top left / calc(100% - 22px) 1px no-repeat,
    linear-gradient(var(--sk-line-2), var(--sk-line-2)) bottom right / calc(100% - 22px) 1px no-repeat,
    linear-gradient(var(--sk-line-2), var(--sk-line-2)) top left / 1px calc(100% - 22px) no-repeat,
    linear-gradient(var(--sk-line-2), var(--sk-line-2)) bottom right / 1px calc(100% - 22px) no-repeat,
    linear-gradient(to top right, transparent calc(50% - .9px), var(--sk-line-2) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) top right / 22px 22px no-repeat,
    linear-gradient(to top right, transparent calc(50% - .9px), var(--sk-line-2) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) bottom left / 22px 22px no-repeat,
    /* hatch band along the top edge, Marathon-style */
    repeating-linear-gradient(135deg, rgba(212,255,42,.55) 0 2px, transparent 2px 7px) 36px 14px / 84px 6px no-repeat,
    transparent !important;
  border: 0 !important;
}
/* (v3) the lobby dice stay either side of the sheet */
/* Print metadata on the sheet: an edition line top right, a code bottom left. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-mega-card { position: relative; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content::after {
  position: absolute; z-index: 2; pointer-events: none;
  font: 600 9px/1 var(--sk-body); letter-spacing: .26em; text-transform: uppercase; color: var(--sk-faint);
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content::before { content: 'SC / Field table — First edition'; top: 12px; right: 34px; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content::after { content: 'SC—PLY—01'; top: 30px; left: 34px; letter-spacing: .22em; }

/* Wordmark block: the symbol small, the name large and quiet. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-title { color: var(--sk-bone) !important; filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content img { filter: none !important; }

/* Mode tiles: flat chamfered plates; the selected one carries a lime top edge. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card {
  transform: none !important; opacity: 1 !important; filter: none !important;
  border-radius: 0 !important; border: 1px solid var(--sk-line) !important;
  background: var(--sk-plate-2) !important;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background-color var(--sk-fast), border-color var(--sk-fast) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card.unselected:hover { background: var(--sk-plate-3) !important; border-color: var(--sk-line-2) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card.selected {
  background: linear-gradient(var(--sk-signal), var(--sk-signal)) top left / 100% 3px no-repeat, var(--sk-plate-3) !important;
  border-color: var(--sk-line-2) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card .mode-card-icon { background: none !important; border: 0 !important; box-shadow: none !important; color: var(--sk-muted) !important; filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card .mode-card-icon svg { color: inherit !important; stroke: currentColor !important; filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card.selected .mode-card-icon { color: var(--sk-signal-text) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card-title { font-family: var(--sk-tech) !important; letter-spacing: .12em !important; color: var(--sk-bone) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card-sub { font-family: var(--sk-body) !important; color: var(--sk-muted) !important; letter-spacing: .02em !important; }

/* Tutorial link: a quiet ghost with the lime play mark. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen #btn-start-tutorial {
  border: 0 !important; background: transparent !important; color: var(--sk-signal-text) !important;
  font-size: 10px !important; letter-spacing: .22em !important;
  border-bottom: 1px solid rgba(212,255,42,.4) !important; padding: 6px 2px !important; height: auto !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen #btn-start-tutorial svg { fill: var(--sk-signal) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .countdown-subtext { color: var(--sk-muted) !important; font-family: var(--sk-body) !important; }

/* Roll-off: two faction plates in solid colour, the roll as a big numeral. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card {
  border-radius: 0 !important; border: 0 !important; box-shadow: none !important; filter: none !important; opacity: 1 !important;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card.lobby-faction-p1 { background: var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card.lobby-faction-p2 { background: var(--sk-violet) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card .ro-val { background: transparent !important; clip-path: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card .ro-val svg { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card .ro-num { font-size: 40px !important; line-height: 1 !important; color: #0b0c10 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card .ai-faction-name { font-family: var(--sk-tech) !important; letter-spacing: .22em !important; color: #0b0c10 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card .ai-role-tag:not(.lobby-role-spacer) {
  background: #0b0c10 !important; color: var(--sk-bone) !important; border: 0 !important; border-radius: 0 !important;
  font-family: var(--sk-body) !important; font-weight: 700 !important; letter-spacing: .16em !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .ro-vs { font-family: var(--sk-tech) !important; color: var(--sk-faint) !important; letter-spacing: .2em !important; }
/* (inner value box) */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .ro-val {
  border-radius: 0 !important; border: 0 !important; box-shadow: none !important; filter: none !important;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .ro-val.rv-p1 { background: var(--sk-azure) !important; color: #06101f !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .ro-val.rv-p2 { background: var(--sk-violet) !important; color: #1f0612 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .ro-val :is(*, svg, path) { color: inherit !important; filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .ro-val .ro-num { font-family: var(--sk-tech) !important; }

/* ================================================================ HUD */
/* The console: two faction plates and a segmented action bar. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper {
  background: transparent !important;
  pointer-events: none !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper :is(#action-bar, .bar-left, .bar-right, .bar-center-container) {
  pointer-events: none !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper :is(.hud-player, .hud-player *, .bar-center, .bar-center *, .act-btn, .act-btn *, #evade-decision-container, #evade-decision-container *, #combat-timer-pill, #combat-timer-pill *, #btn-combat-done, #btn-combat-done *, #combat-result-container, #combat-result-container *) {
  pointer-events: auto !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper :is(.bar-center-container, #action-bar) { background: transparent !important; border: 0 !important; box-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper :is(#action-bar, .bar-center-container)::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper :is(#action-bar, .bar-center-container)::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player {
  border-radius: 0 !important; border: 1px solid var(--sk-line) !important; box-shadow: none !important; filter: none !important;
  background: var(--sk-plate) !important;
  transition: background-color var(--sk-slow), opacity var(--sk-slow) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp1 { clip-path: none !important; box-shadow: inset 4px 0 0 var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp2 { clip-path: none !important; box-shadow: inset -4px 0 0 var(--sk-violet) !important; }
/* The player to act: the whole plate in their colour. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp1.active { background: var(--sk-azure) !important; border-color: var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp2.active { background: var(--sk-violet) !important; border-color: var(--sk-violet) !important; }

html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player :is(.hp-name-col, .hp-name-col *) {
  font-family: var(--sk-tech) !important; letter-spacing: .16em !important; color: var(--sk-bone) !important; filter: none !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active :is(.hp-name-col, .hp-name-col *) { color: #0b0c10 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player .player-identity-label {
  font-family: var(--sk-body) !important; font-weight: 600 !important; letter-spacing: .2em !important; font-size: 9px !important;
  color: var(--sk-muted) !important; background: transparent !important; border: 0 !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active .player-identity-label { color: rgba(11,12,16,.72) !important; }

/* Control tokens: three small hex cells, gold when earned. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hp-pips .pip {
  border-radius: 0 !important; box-shadow: none !important;
  background: transparent !important; border: 0 !important;
  width: 14px !important; height: 16px !important;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: rgb(var(--sk-fg) / .18) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hp-pips .pip:not(.tut-hud-highlight) {
  filter: none !important; animation: none !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hp-pips .pip::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hp-pips .pip::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hp-pips .pip.filled { background: var(--sk-gold) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active .hp-pips .pip:not(.filled) { background: rgba(11,12,16,.28) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active .hp-pips .pip.filled { background: #0b0c10 !important; }

/* Action bar: one segmented control. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bar-center { gap: 0 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .act-btn {
  border-radius: 0 !important; box-shadow: none !important;
  background: var(--sk-plate-2) !important; border: 1px solid var(--sk-line) !important; margin: 0 -1px 0 0 !important;
  color: var(--sk-bone) !important; font-family: var(--sk-tech) !important; font-size: 11px !important; letter-spacing: .16em !important;
  min-height: 36px !important; padding-inline: 18px !important;
  transition: background-color var(--sk-fast), color var(--sk-fast) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .act-btn:not(.tut-btn-pulse) {
  filter: none !important; animation: none !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .act-btn:disabled { color: var(--sk-faint) !important; background: var(--sk-plate) !important; opacity: 1 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .act-btn:hover:not(:disabled) { background: var(--sk-plate-3) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .act-btn.act-active { background: var(--sk-signal) !important; color: var(--sk-signal-ink) !important; border-color: var(--sk-signal) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .act-btn::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .act-btn::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .act-btn :is(svg, .site-symbol) { filter: none !important; }

/* ============================================================ RESERVES */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash {
  border-radius: 0 !important; box-shadow: none !important; filter: none !important;
  background: var(--sk-plate) !important; border: 1px solid var(--sk-line) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1 { clip-path: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2 { clip-path: none !important; }
/* The reserve of the player to act carries their colour along the top. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1.stash-active { background: linear-gradient(var(--sk-azure), var(--sk-azure)) top / 100% 3px no-repeat, var(--sk-plate) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2.stash-active { background: linear-gradient(var(--sk-violet), var(--sk-violet)) top / 100% 3px no-repeat, var(--sk-plate) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .sg-head { border-color: var(--sk-line) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .sg-title { font-family: var(--sk-tech) !important; letter-spacing: .24em !important; font-size: 10px !important; color: var(--sk-muted) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-speed-arrows { color: var(--sk-faint) !important; filter: none !important; }

/* Dice in reserve: square tiles. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip {
  border-radius: 0 !important; box-shadow: none !important; filter: none !important; animation: none !important;
  background: var(--sk-plate-2) !important; border: 1px solid var(--sk-line) !important; color: var(--sk-bone) !important;
  transition: background-color var(--sk-fast), border-color var(--sk-fast), color var(--sk-fast) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip::after { box-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip .chip-svg { filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-active .die-chip:hover { background: var(--sk-plate-3) !important; border-color: var(--sk-line-2) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-p1.stash-active .die-chip:hover { color: var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-p2.stash-active .die-chip:hover { color: var(--sk-violet) !important; }

/* =============================================================== TABLE */
/* (v3) the board sits directly on the table: no ring. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #board-col #hex-board { position: relative; z-index: 1; filter: none !important; }

/* Hexes: dark plates with a fine lattice line. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-glass-backdrop { fill: var(--sk-hex) !important; stroke: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly {
  fill: transparent !important; stroke: rgb(var(--sk-fg) / .16) !important; stroke-width: 1.2px !important;
  filter: none !important; stroke-dasharray: none !important;
  transition: fill var(--sk-fast), stroke var(--sk-fast) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly:is(.hex-mid, .hex-control, .hex-center, .hex-deploy-p1, .hex-deploy-p2):not(.hex-cz-anticipation-p1):not(.hex-cz-anticipation-p2):not(.hex-deploy-valid-p1):not(.hex-deploy-valid-p2):not(.hex-valid):not(.hex-attack):not(.hex-selected) {
  animation: none !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hovered { fill: rgb(var(--sk-fg) / .06) !important; stroke: rgb(var(--sk-fg) / .4) !important; }
/* Bases: hatched in the faction colour. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-deploy-p1 { fill: url(#sk-hatch-p1) !important; stroke: rgba(47,140,255,.85) !important; stroke-width: 1.5px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-deploy-p2 { fill: url(#sk-hatch-p2) !important; stroke: rgba(255,45,138,.85) !important; stroke-width: 1.5px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly:is(.hex-deploy-preview-p1, .hex-deploy-valid-p1) { fill: rgba(47,140,255,.24) !important; stroke: var(--sk-azure) !important; stroke-width: 2.5px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly:is(.hex-deploy-preview-p2, .hex-deploy-valid-p2) { fill: rgba(255,45,138,.22) !important; stroke: var(--sk-violet) !important; stroke-width: 2.5px !important; }
/* The Zone and the Core: gold, and only they are gold. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-control { fill: rgba(227,179,74,.1) !important; stroke: rgba(227,179,74,.75) !important; stroke-width: 1.5px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-center { fill: rgba(227,179,74,.16) !important; stroke: var(--sk-gold) !important; stroke-width: 2px !important; }
/* Moves in lime, attacks in red, the selected unit outlined in lime. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-valid { fill: rgba(212,255,42,.12) !important; stroke: var(--sk-signal) !important; stroke-width: 2px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-attack { fill: rgba(255,77,61,.18) !important; stroke: var(--sk-red) !important; stroke-width: 2.5px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-selected { fill: rgba(212,255,42,.08) !important; stroke: var(--sk-signal) !important; stroke-width: 3px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly:is(.can-move, .can-attack) { stroke: rgba(212,255,42,.7) !important; stroke-width: 2px !important; stroke-dasharray: 6 5 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-cz-anticipation-p1 {
  fill: rgba(47, 140, 255, .24) !important; stroke: var(--sk-azure) !important; stroke-width: 3px !important;
  animation: sk-cz-pulse-p1 1.25s ease-in-out infinite !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-cz-anticipation-p2 {
  fill: rgba(255, 45, 138, .24) !important; stroke: var(--sk-violet) !important; stroke-width: 3px !important;
  animation: sk-cz-pulse-p2 1.25s ease-in-out infinite !important;
}
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-cz-anticipation-p1 {
  fill: rgba(11, 95, 174, .22) !important; stroke: var(--sk-azure) !important;
}
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-cz-anticipation-p2 {
  fill: rgba(168, 22, 106, .22) !important; stroke: var(--sk-violet) !important;
}
@keyframes sk-cz-pulse-p1 {
  0%, 100% { fill: rgba(47, 140, 255, .14); stroke-width: 2.2px; }
  50%      { fill: rgba(47, 140, 255, .36); stroke-width: 4px; }
}
@keyframes sk-cz-pulse-p2 {
  0%, 100% { fill: rgba(255, 45, 138, .14); stroke-width: 2.2px; }
  50%      { fill: rgba(255, 45, 138, .36); stroke-width: 4px; }
}

/* Units: solid faction colour, ink numerals, no glow. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .unit-shape { filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .unit-shape.unit-p1 { color: var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .unit-shape.unit-p2 { color: var(--sk-violet) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .unit-shape text { fill: #0b0c10 !important; font-family: var(--sk-tech) !important; font-weight: 700 !important; }
/* The Core symbol: gold, flat. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board #core-group svg { color: var(--sk-gold-text) !important; filter: none !important; }

/* ============================================================ RAILS */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) {
  border-radius: 0 !important; box-shadow: none !important;
  background: var(--sk-plate) !important; border: 1px solid var(--sk-line) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar)::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar)::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) :is(.rb-help-icon, .log-toggle-btn) { border-radius: 0 !important; background: transparent !important; border: 0 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) .rb-help-icon::before { box-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) .lt-icon { font-family: var(--sk-tech) !important; color: var(--sk-muted) !important; filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) .log-toggle-btn:hover .lt-icon { color: var(--sk-signal-text) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) .rb-help-icon { color: var(--sk-signal-text) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) .rb-help-icon svg { fill: currentColor !important; stroke: currentColor; filter: none !important; }

/* =============================================================== LOG */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #log-panel {
  border-radius: 0 !important; box-shadow: none !important;
  background: var(--sk-plate) !important; border: 1px solid var(--sk-line) !important; border-bottom: 0 !important;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #log-panel #btn-toggle-log { background: transparent !important; border: 0 !important; border-radius: 0 !important; color: var(--sk-bone) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #log-panel .lt-icon { font-family: var(--sk-tech) !important; letter-spacing: .2em !important; color: var(--sk-bone) !important; }

/* ============================================================ DIALOGS */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal:not(#setup-screen) { background: var(--sk-scrim) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .modal-card {
  border-radius: 0 !important; box-shadow: none !important; animation: none;
  background: var(--sk-plate) !important; border: 1px solid var(--sk-line-2) !important;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .modal-card::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .modal-card::after { box-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(h2, h3, .modal-label, .codex-modal-title):not(.preloader-title) { font-family: var(--sk-tech) !important; letter-spacing: .14em !important; }

/* ===================================================== ROLL PROMPT */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup {
  border-radius: 0 !important; box-shadow: none !important; filter: none !important; animation: none !important;
  background: var(--sk-plate) !important; border: 1px solid var(--sk-line-2) !important;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup .row-popup-lbl { font-family: var(--sk-tech) !important; font-size: 10px !important; letter-spacing: .26em !important; color: var(--sk-muted) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup .popup-big-val {
  border-radius: 0 !important; border: 0 !important; box-shadow: none !important; filter: none !important; animation: none !important;
  font-family: var(--sk-tech) !important; color: #0b0c10 !important; -webkit-text-fill-color: #0b0c10 !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup.popup-p1 .popup-big-val { background: var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup.popup-p2 .popup-big-val { background: var(--sk-violet) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup .popup-big-val :is(*, *::before, *::after) { color: #0b0c10 !important; -webkit-text-fill-color: #0b0c10 !important; background: none !important; box-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup .popup-roll-note { color: var(--sk-muted) !important; font-family: var(--sk-body) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup .popup-actions .btn { min-height: 40px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup .popup-actions .btn.btn-primary { background: var(--sk-signal) !important; color: var(--sk-signal-ink) !important; border: 0 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup .popup-actions .btn.btn-ghost { background: transparent !important; color: var(--sk-bone) !important; border: 1px solid var(--sk-line-2) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup .popup-actions .btn { border-radius: 0 !important; font-family: var(--sk-tech) !important; letter-spacing: .16em !important; box-shadow: none !important; }
/* The rolled value pinned on the reserve tile. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .chip-pending-val {
  border-radius: 0 !important; box-shadow: none !important; border: 0 !important;
  background: var(--sk-signal) !important; color: var(--sk-signal-ink) !important; font-family: var(--sk-tech) !important;
}

/* ========================================================= GAME LOG */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-log { background: transparent !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-log .chat-msg {
  border-radius: 0 !important; box-shadow: none !important; border: 0 !important;
  align-self: stretch !important; margin: 0 !important; max-width: none !important; width: auto !important;
  background: transparent !important; color: var(--sk-bone) !important;
  font: 500 11px/1.5 var(--sk-body) !important; letter-spacing: .04em !important; text-align: left !important;
  padding: 6px 10px 6px 12px !important; border-bottom: 1px solid var(--sk-line) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-log .chat-msg.chat-p1 { box-shadow: inset 2px 0 0 var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-log .chat-msg.chat-p2 { box-shadow: inset 2px 0 0 var(--sk-violet) !important; }

/* ============================================================ COMBAT */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .cb-role-badge {
  border-radius: 0 !important; box-shadow: none !important; border: 0 !important; filter: none !important;
  font-family: var(--sk-tech) !important; letter-spacing: .24em !important; color: #0b0c10 !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #combat-stash-p1 .cb-role-badge { background: var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #combat-stash-p2 .cb-role-badge { background: var(--sk-violet) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .cb-section-title { font-family: var(--sk-body) !important; font-weight: 600 !important; letter-spacing: .26em !important; color: var(--sk-muted) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .csp-unit { font-family: var(--sk-tech) !important; color: var(--sk-bone) !important; letter-spacing: .08em !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .cb-battle-die-pill {
  border-radius: 0 !important; box-shadow: none !important; background: var(--sk-plate) !important;
  border: 1px solid var(--sk-line-2) !important; color: var(--sk-bone) !important;
  font-family: var(--sk-tech) !important; letter-spacing: .22em !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget {
  border-radius: 0 !important; box-shadow: none !important; filter: none !important;
  background: var(--sk-plate-2) !important; border: 1px solid var(--sk-line) !important;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget::after { display: none !important; }
/* The battle die is drawn as bone line art; the faction colour lives on the frame. */
/* (v3) the battle dice keep their own faction glow */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-die-body { background: none !important; box-shadow: none !important; filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-die-face-content,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-die-face-content * { font-family: var(--sk-tech) !important; color: var(--sk-bone) !important; -webkit-text-fill-color: var(--sk-bone) !important; filter: none !important; background: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-prompt-badge {
  border-radius: 0 !important; box-shadow: none !important; filter: none !important; animation: none !important;
  background: transparent !important; border: 1px solid var(--sk-line-2) !important; color: var(--sk-bone) !important;
  font-family: var(--sk-tech) !important; letter-spacing: .2em !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #interactive-dice-p1 .bg3-prompt-badge { border-color: var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #interactive-dice-p2 .bg3-prompt-badge { border-color: var(--sk-violet) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-prompt-badge :is(*, *::before, *::after) { box-shadow: none !important; animation: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-effect-desc { color: var(--sk-muted) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .cb-outcome-text { font-family: var(--sk-tech) !important; letter-spacing: .14em !important; color: var(--sk-bone) !important; }
/* ATK / DEF tags on the board. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .combat-badge-bg { rx: 0 !important; ry: 0 !important; stroke: none !important; filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .combat-badge-bg.p1 { fill: var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .combat-badge-bg.p2 { fill: var(--sk-violet) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .combat-badge-text { fill: #0b0c10 !important; font-family: var(--sk-tech) !important; font-weight: 700 !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .combat-badge-text { fill: #ffffff !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board :is(#combat-beam-group, #combat-overlay-group, #vfx-group, #shock-group) * { filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell {
  border-radius: 0 !important; box-shadow: none !important; filter: none !important; animation: none !important;
  background: var(--sk-plate-2) !important; border: 1px solid var(--sk-line) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell.p1-matrix,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #combat-stash-p1 .combat-matrix-cell { box-shadow: inset 0 3px 0 var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #combat-stash-p2 .combat-matrix-cell { box-shadow: inset 0 3px 0 var(--sk-violet) !important; }
/* inside it the die sits on the same plate: no second frame */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell .bg3-battle-die-widget { background: transparent !important; border: 0 !important; clip-path: none !important; }

html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* Match summary */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.go-winner) { font-family: var(--sk-tech) !important; letter-spacing: .04em !important; text-transform: uppercase; color: var(--sk-bone) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.modal-label, #go-reason) { font-family: var(--sk-body) !important; font-weight: 600 !important; letter-spacing: .28em !important; color: var(--sk-muted) !important; font-size: 10px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .go-tokens { color: var(--sk-muted) !important; font-family: var(--sk-body) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .go-stats-grid { border-radius: 0 !important; background: transparent !important; border: 0 !important; border-top: 1px solid var(--sk-line) !important; border-bottom: 1px solid var(--sk-line) !important; box-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .go-stat-box { border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .go-stat-box .stat-num { font-family: var(--sk-tech) !important; font-size: 26px !important; color: var(--sk-bone) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .go-stat-box .stat-lbl { font-family: var(--sk-body) !important; letter-spacing: .24em !important; color: var(--sk-muted) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .btn { border-radius: 0 !important; }

/* ============================================== CODEX AND TUTORIAL CARDS */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.codex-card-box, .codex-banner-card, .codex-special-card, .codex-core-box, .codex-trait-box, .codex-action-row, .tut-rule-card, .csb-card, .codex-dice-row, .online-box) {
  border-radius: 0 !important; box-shadow: none !important; filter: none !important;
  background: var(--sk-plate-2) !important; border: 1px solid var(--sk-line) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.codex-card-box, .codex-banner-card, .codex-special-card, .codex-core-box, .codex-trait-box, .codex-action-row, .tut-rule-card, .csb-card)::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.codex-card-box, .codex-banner-card, .codex-special-card, .codex-core-box, .codex-trait-box, .codex-action-row, .tut-rule-card, .csb-card)::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.card-cyan, .badge-cyan) { box-shadow: inset 3px 0 0 var(--sk-signal) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.card-magenta) { box-shadow: inset 3px 0 0 var(--sk-violet) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.card-gold, .badge-gold) { box-shadow: inset 3px 0 0 var(--sk-gold) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.codex-card-title, .codex-banner-title, .codex-special-title, .codex-core-title, .codex-action-title, h3, h4):not(.preloader-title) { font-family: var(--sk-tech) !important; letter-spacing: .12em !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.title-cyan, .title-green) { color: var(--sk-signal-text) !important; -webkit-text-fill-color: currentColor !important; background: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .title-magenta { color: var(--sk-violet) !important; -webkit-text-fill-color: currentColor !important; background: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .title-gold { color: var(--sk-gold-text) !important; -webkit-text-fill-color: currentColor !important; background: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.codex-card-tag, .codex-badge-chip, .codex-badge-mini, .codex-class-badge, .codex-action-chip, .codex-die-badge) {
  border-radius: 0 !important; box-shadow: none !important; background: transparent !important;
  border: 1px solid var(--sk-line-2) !important; color: var(--sk-bone) !important;
  font-family: var(--sk-body) !important; font-weight: 700 !important; letter-spacing: .2em !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.tag-magenta) { color: var(--sk-violet) !important; border-color: rgba(255,45,138,.5) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.tag-gold) { color: var(--sk-gold-text) !important; border-color: rgba(227,179,74,.5) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-action-num { font-family: var(--sk-tech) !important; color: var(--sk-signal-text) !important; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(p, li, .codex-card-body, .codex-special-desc, .codex-core-body, .codex-action-desc, .codex-banner-desc) { color: rgb(var(--sk-fg) / .78) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(p, li) b, html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(p, li) strong { color: var(--sk-bone) !important; }
/* Tabs: one segmented strip. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-tab-btn {
  border-radius: 0 !important; box-shadow: none !important; background: var(--sk-plate-2) !important;
  border: 1px solid var(--sk-line) !important; margin: 0 -1px 0 0 !important; color: var(--sk-muted) !important;
  font-family: var(--sk-tech) !important; letter-spacing: .14em !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-tab-btn:hover { color: var(--sk-bone) !important; background: var(--sk-plate-3) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-tab-btn.active { background: var(--sk-signal) !important; color: var(--sk-signal-ink) !important; border-color: var(--sk-signal) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-header-bar { border-bottom: 1px solid var(--sk-line) !important; background: transparent !important; box-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-status-dot { border-radius: 0 !important; background: var(--sk-signal) !important; box-shadow: none !important; animation: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.audio-toggle-btn, .modal-close-btn, .codex-close-btn, [class*='close']) { border-radius: 0 !important; box-shadow: none !important; }
/* The little board diagrams. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-board-hex { box-shadow: none !important; filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-board-hex.hex-mid { background: var(--sk-plate-3) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-board-hex.hex-control { background: rgba(227,179,74,.55) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-board-hex.hex-deploy-azure { background: repeating-linear-gradient(135deg, rgba(47,140,255,.9) 0 2px, rgba(47,140,255,.25) 2px 5px) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-board-hex.hex-deploy-violet { background: repeating-linear-gradient(135deg, rgba(255,45,138,.9) 0 2px, rgba(255,45,138,.25) 2px 5px) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.codex-die-svg, .codex-special-svg, .codex-core-svg) { filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-token-pip { border-radius: 0 !important; box-shadow: none !important; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--sk-gold) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal details, html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal summary { border-radius: 0 !important; }

/* Inline colours in the codex and tutorial copy, mapped onto the palette. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(.modal, #game-screen) :is([style*='#00ffcc'], [style*='#00d2ff'], [style*='0,255,200']) { color: var(--sk-signal-text) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(.modal, #game-screen) [style*='#ffb92d'], html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(.modal, #game-screen) [style*='#ffd700'] { color: var(--sk-gold-text) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(.modal, #game-screen) [style*='#ff2bb1'] { color: var(--sk-violet) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(.modal, #game-screen) [style*='border-radius'] { border-radius: 0 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal [style*='drop-shadow'] { filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .sci-fi-framed::before, html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .sci-fi-framed::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .card-magenta :is(div, p)[style*='background'], html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .card-magenta > div:not(.codex-card-header) { border-radius: 0 !important; }

/* Welcome and tutorial briefing */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.tut-intro-card, .tut-modal-card) {
  border-radius: 0 !important; box-shadow: none !important; animation: none;
  background: var(--sk-plate) !important; border: 1px solid var(--sk-line-2) !important;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .preloader-title { font-family: 'SC Yume', Yume, 'yumeXHA', sans-serif !important; letter-spacing: .02em !important; color: var(--sk-bone) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.preloader-logo-container, .preloader-logo-container img, .preloader-logo-fill) { filter: none !important; box-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .ftue-eyebrow { font-family: var(--sk-body) !important; font-weight: 700 !important; letter-spacing: .28em !important; color: var(--sk-signal-text) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.ftue-desc, .tut-modal-subtitle) { color: var(--sk-muted) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .tut-modal-title { font-family: var(--sk-tech) !important; letter-spacing: .12em !important; color: var(--sk-bone) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .tut-rule-card :is(h3, h4) { color: var(--sk-signal-text) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(.modal, #game-screen, body) .btn.tut-cta-green {
  background: var(--sk-signal) !important; color: var(--sk-signal-ink) !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; animation: none !important; font-family: var(--sk-tech) !important; letter-spacing: .16em !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(.modal, #game-screen, body) .btn.tut-cta-green:hover { background: color-mix(in srgb, var(--sk-signal) 85%, #ffffff) !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(.modal, #game-screen, body) .btn.tut-cta-green:hover { background: color-mix(in srgb, var(--sk-signal) 85%, #121714) !important; color: #ffffff !important; }

/* Tutorial banner: a flat plate with a lime edge. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner {
  border-radius: 0 !important; box-shadow: inset 3px 0 0 var(--sk-signal) !important; filter: none !important;
  background: var(--sk-plate) !important; border: 1px solid var(--sk-line-2) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner::before, html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #tut-stage-badge { font-family: var(--sk-tech) !important; color: var(--sk-signal-text) !important; letter-spacing: .2em !important; background: none !important; border: 0 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #tut-stage-badge::before { border-radius: 0 !important; background: var(--sk-signal) !important; box-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #tut-instruction-text { color: var(--sk-bone) !important; font-family: var(--sk-body) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .btn-tut-continue-step {
  border-radius: 0 !important;
  background: var(--sk-signal) !important; color: var(--sk-signal-ink) !important; border: 0 !important;
  font-family: var(--sk-tech) !important; letter-spacing: .16em !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, .modal) .tut-btn-pulse { box-shadow: inset 0 0 0 2px var(--sk-signal) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip.tut-beacon-glow { border-color: var(--sk-signal) !important; color: var(--sk-signal-text) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip.tut-beacon-glow::after { border-radius: 0 !important; border-color: var(--sk-signal) !important; }
/* The Core roll */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #core-modal :is(.core-prompt-badge, .core-scorer-tag) {
  border-radius: 0 !important; box-shadow: none !important; animation: none !important;
  background: transparent !important; border: 1px solid rgba(227,179,74,.6) !important; color: var(--sk-gold-text) !important;
  font-family: var(--sk-tech) !important; letter-spacing: .2em !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-prompt-badge :is(*, *::before) { box-shadow: none !important; border-radius: 0 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #core-modal :is(.core-outcome-title) { font-family: var(--sk-tech) !important; color: var(--sk-gold-text) !important; letter-spacing: .12em !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #core-modal :is(.core-status-line, .core-outcome-desc) { color: var(--sk-muted) !important; font-family: var(--sk-body) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #core-modal .btn-core-action { border-radius: 0 !important; background: var(--sk-gold) !important; color: #120d02 !important; border: 0 !important; box-shadow: none !important; font-family: var(--sk-tech) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .ready-player-badge { border-radius: 0 !important; box-shadow: none !important; font-family: var(--sk-tech) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .ready-player-badge.p1-badge { border-color: var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .ready-player-badge.p2-badge { border-color: var(--sk-violet) !important; }

/* ================================================= PHONES AND TABLETS */
/* The handheld layouts read their colours from variables: point them at
   the same palette. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body)#top, html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body)#top:not(.game-active), html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body)#top.phone-match-active, html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen, html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen {
  --lobby-field: var(--sk-ink); --lobby-panel: var(--sk-plate); --lobby-panel-selected: var(--sk-plate-3);
  --lobby-line: rgb(var(--sk-fg) / .2); --lobby-ink: var(--sk-bone); --lobby-muted: var(--sk-muted);
  --lobby-accent: var(--sk-signal); --lobby-accent-ink: var(--sk-signal-ink); --lobby-p1: var(--sk-azure); --lobby-p2: var(--sk-violet);
  --phone-field: var(--sk-ink); --phone-surface: var(--sk-plate); --phone-ink: var(--sk-bone); --phone-muted: var(--sk-muted);
  --phone-line: rgb(var(--sk-fg) / .22); --phone-azure: var(--sk-azure); --phone-violet: var(--sk-violet);
  --phone-core-accent: var(--sk-gold); --phone-result-accent: var(--sk-gold); --phone-reference-accent: var(--sk-signal);
  --phone-tut-accent: var(--sk-signal); --phone-reserve-unit-ink: var(--sk-bone); --phone-reserve-unit-lost: var(--sk-faint);
  --p1: var(--sk-azure); --p2: var(--sk-violet);
}
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #setup-screen.modal { background: var(--sk-ink) !important; }
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-panels-wrapper {
  background: var(--sk-plate) !important; border-radius: 0 !important; box-shadow: none !important; border: 1px solid var(--sk-line) !important;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #setup-screen :is(.mode-card, .btn, .lobby-duel-panel, .online-box, .lobby-faction-card, input) { border-radius: 0 !important; box-shadow: none !important; }
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card { background: var(--sk-plate-2) !important; border: 1px solid var(--sk-line) !important; }
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card.selected { background: linear-gradient(var(--sk-signal), var(--sk-signal)) left / 3px 100% no-repeat, var(--sk-plate-3) !important; border-color: var(--sk-line-2) !important; }
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card.selected .mode-card-icon { color: var(--sk-signal-text) !important; }
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content::before,
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content::after { display: none !important; }
/* Phones: round corners and glows inside the match go flat too. */
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #game-screen :is(.hud-player, .act-btn, .side-stash, .die-chip, .btn, .combat-matrix-cell, .cb-role-badge, .bg3-prompt-badge) { border-radius: 0 !important; box-shadow: none !important; }

html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player { clip-path: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen::after { background: none !important; background-image: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-die-ambient-glow { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell::after,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell::before { display: none !important; }
/* Phone: the Rules control matches the console. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .phone-reference-toggle {
  border-radius: 0 !important; box-shadow: none !important; background: var(--sk-plate-2) !important;
  border: 1px solid var(--sk-line) !important; color: var(--sk-bone) !important; font-family: var(--sk-tech) !important; letter-spacing: .14em !important;
}
/* Portrait phones: the turn-to-landscape notice. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #mobile-blocker { background: var(--sk-ink) !important; background-image: radial-gradient(rgb(var(--sk-fg) / .075) 1px, transparent 1.3px) !important; background-size: 24px 24px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #mobile-blocker #device-notice-title { font-family: var(--sk-tech) !important; letter-spacing: .08em !important; text-transform: uppercase; color: var(--sk-bone) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #mobile-blocker .device-rotation-icon { color: var(--sk-signal-text) !important; filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #mobile-blocker :is(a, button) { border-radius: 0 !important; border: 1px solid var(--sk-line-2) !important; font-family: var(--sk-tech) !important; letter-spacing: .14em !important; text-transform: uppercase; box-shadow: none !important; }


/* =====================================================================
   v3: more signal. Marathon's technical print language meets Concord's
   bold colour blocks: solid faction plates with stripe fields, a lit
   console rail joining the two players, micro labels and barcodes, and
   glow only where something is live (the player to act, selection,
   targets, units, the Core).
   ===================================================================== */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) { --sk-turn: var(--sk-azure); --sk-turn-rgb: 47 140 255; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body):has(#hud-p2.active), html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body):has(#action-bar.ab-p2) { --sk-turn: var(--sk-violet); --sk-turn-rgb: 255 45 138; }

/* The table texture sits over the live terrain. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #topographic-bg-container { filter: saturate(.78) brightness(.92); }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #topographic-bg-container { filter: saturate(.7) brightness(1.02); opacity: .7; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen { background-image: radial-gradient(rgb(var(--sk-fg) / .07) 1px, transparent 1.3px) !important; background-size: 24px 24px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) { background-color: var(--sk-ink) !important; }

/* --- the console rail: one lit band from plate to plate --------------- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper #action-bar#action-bar {
  background:
    linear-gradient(var(--sk-turn), var(--sk-turn)) 0 9px / 100% 2px no-repeat,
    linear-gradient(var(--sk-turn), var(--sk-turn)) 0 calc(100% - 9px) / 100% 2px no-repeat,
    linear-gradient(90deg, rgb(var(--sk-turn-rgb) / .16), transparent 30%, transparent 70%, rgb(var(--sk-turn-rgb) / .16)) 0 11px / 100% calc(100% - 22px) no-repeat,
    linear-gradient(var(--sk-plate), var(--sk-plate)) 0 11px / 100% calc(100% - 22px) no-repeat !important;
  filter: drop-shadow(0 0 10px rgb(var(--sk-turn-rgb) / calc(var(--sk-glow) * .8)));
  transition: filter var(--sk-slow);
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar .bar-center { position: relative; z-index: 1; }
/* the live action glows lime */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .act-btn.act-active { box-shadow: 0 0 18px rgb(212 255 42 / var(--sk-glow)), inset 0 -3px 0 rgb(0 0 0 / .18) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .act-btn:not(:disabled):not(.act-active) { box-shadow: inset 0 -2px 0 rgb(var(--sk-turn-rgb) / .7) !important; }

/* --- faction plates: colour blocks with a stripe field and a code ----- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active.hp1 {
  background:
    linear-gradient(100deg, var(--sk-azure) 0%, #4fa0ff 100%) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active.hp2 {
  background:
    linear-gradient(260deg, var(--sk-violet) 0%, #ff5aa6 100%) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper .bar-left:has(.hud-player.active) { filter: drop-shadow(0 0 18px rgb(47 140 255 / var(--sk-glow))); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper .bar-right:has(.hud-player.active) { filter: drop-shadow(0 0 18px rgb(255 45 138 / var(--sk-glow))); }
/* the plate dice stay, lit in their faction colour when that player acts */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player .plaque-mascot { transition: opacity var(--sk-slow), filter var(--sk-slow) !important; }
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active.hp1 .plaque-mascot { filter: drop-shadow(0 0 14px rgb(47 140 255 / .7)) !important; opacity: 1 !important; }
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active.hp2 .plaque-mascot { filter: drop-shadow(0 0 14px rgb(255 45 138 / .7)) !important; opacity: 1 !important; }
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player:not(.active) .plaque-mascot { filter: grayscale(.55) brightness(.8) !important; opacity: .55 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player .hp-pips .pip.filled { filter: drop-shadow(0 0 5px rgb(227 179 74 / .8)) !important; }

/* --- reserves: registration marks, a code line, a live edge ----------- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash {
  background:
    linear-gradient(rgb(var(--sk-fg) / .45), rgb(var(--sk-fg) / .45)) 10px 10px / 10px 1px no-repeat,
    linear-gradient(rgb(var(--sk-fg) / .45), rgb(var(--sk-fg) / .45)) 10px 10px / 1px 10px no-repeat,
    linear-gradient(rgb(var(--sk-fg) / .45), rgb(var(--sk-fg) / .45)) calc(100% - 10px) 10px / 10px 1px no-repeat,
    linear-gradient(rgb(var(--sk-fg) / .45), rgb(var(--sk-fg) / .45)) calc(100% - 10px) 10px / 1px 10px no-repeat,
    var(--sk-plate) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1.stash-active {
  background:
    linear-gradient(var(--sk-azure), var(--sk-azure)) top / 100% 3px no-repeat,
    linear-gradient(rgb(47 140 255 / .14), transparent 120px) top / 100% 120px no-repeat,
    var(--sk-plate) !important;
  filter: drop-shadow(0 0 16px rgb(47 140 255 / calc(var(--sk-glow) * .5)));
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2.stash-active {
  background:
    linear-gradient(var(--sk-violet), var(--sk-violet)) top / 100% 3px no-repeat,
    linear-gradient(rgb(255 45 138 / .14), transparent 120px) top / 100% 120px no-repeat,
    var(--sk-plate) !important;
  filter: drop-shadow(0 0 16px rgb(255 45 138 / calc(var(--sk-glow) * .5)));
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-active .die-chip:not(.deployed):hover { box-shadow: 0 0 14px rgb(var(--sk-turn-rgb) / var(--sk-glow)), inset 0 0 0 1px rgb(var(--sk-turn-rgb) / .8) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .sg-head { background: linear-gradient(rgb(var(--sk-fg) / .5), rgb(var(--sk-fg) / .5)) left bottom / 14px 1px no-repeat !important; }

/* --- board: glow only where it is live -------------------------------- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-valid { filter: drop-shadow(0 0 5px rgb(212 255 42 / var(--sk-glow))) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-attack { filter: drop-shadow(0 0 6px rgb(255 77 61 / var(--sk-glow))) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-selected { filter: drop-shadow(0 0 8px rgb(212 255 42 / calc(var(--sk-glow) * 1.2))) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly:is(.hex-deploy-preview-p1, .hex-deploy-valid-p1) { filter: drop-shadow(0 0 6px rgb(47 140 255 / var(--sk-glow))) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly:is(.hex-deploy-preview-p2, .hex-deploy-valid-p2) { filter: drop-shadow(0 0 6px rgb(255 45 138 / var(--sk-glow))) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-center { filter: drop-shadow(0 0 8px rgb(227 179 74 / calc(var(--sk-glow) * .8))) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .unit-shape.unit-p1 { filter: drop-shadow(0 0 5px rgb(47 140 255 / calc(var(--sk-glow) * 1.2))) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board .unit-shape.unit-p2 { filter: drop-shadow(0 0 5px rgb(255 45 138 / calc(var(--sk-glow) * 1.2))) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #hex-board #core-group svg { filter: drop-shadow(0 0 7px rgb(227 179 74 / .7)) !important; }

/* --- buttons and tiles that act get a soft halo ----------------------- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) .btn.btn-primary:not(:disabled),
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(.modal, #game-screen, body) .btn.tut-cta-green { filter: drop-shadow(0 0 12px rgb(212 255 42 / calc(var(--sk-glow) * .7))); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card.selected { filter: drop-shadow(0 0 14px rgb(212 255 42 / calc(var(--sk-glow) * .45))) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card.lobby-faction-p1 { filter: drop-shadow(0 0 14px rgb(47 140 255 / var(--sk-glow))) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card.lobby-faction-p2 { filter: drop-shadow(0 0 14px rgb(255 45 138 / var(--sk-glow))) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card {
  background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / .16) 0 2px, transparent 2px 9px) !important;
  background-size: 40% 100% !important; background-position: right top !important; background-repeat: no-repeat !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #combat-stash-p1 .combat-matrix-cell { filter: drop-shadow(0 0 14px rgb(47 140 255 / calc(var(--sk-glow) * .5))); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #combat-stash-p2 .combat-matrix-cell { filter: drop-shadow(0 0 14px rgb(255 45 138 / calc(var(--sk-glow) * .5))); }

/* --- light theme fixes: dark ink where the dark theme used white art -- */
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content img,
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.preloader-logo-container img) { filter: brightness(0) !important; opacity: .92; }


html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content img { opacity: 1 !important; }

/* Phones: the plates are small; no micro labels or barcodes there. */
/* Phones: the reserve's group tabs sit below the panel; do not clip them. */
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash { clip-path: none !important; }
/* Roll-off: the d6 mark stays on the faction plate, printed in ink. */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card .ro-val svg { display: block !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card .ro-val svg rect { fill: rgb(11 12 16 / .14) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card .ro-val svg g { color: rgb(11 12 16 / .72) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card .ro-val .ro-num { position: relative; z-index: 1; font-size: 30px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#phone-reserve-markers-p1, #phone-reserve-markers-p2) :is(button, [role='button'], [role='tab']) { border-radius: 0 !important; }


/* =====================================================================
   v4: glass and light. Panels are frosted glass over the live terrain;
   the faction colours sit on the reserves as a lit edge and a halo; the
   player cards are quiet so the dice can break out of them.
   ===================================================================== */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) { --sk-azure-rgb: 47 140 255; --sk-violet-rgb: 255 45 138; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) { --sk-azure-rgb: 20 116 200; --sk-violet-rgb: 196 40 126; }

/* glass surfaces */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar),
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #log-panel,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player:not(.active),
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper #action-bar#action-bar,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.modal-card, .tut-intro-card, .tut-modal-card),
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-bg-layer {
  -webkit-backdrop-filter: var(--sk-blur) !important; backdrop-filter: var(--sk-blur) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar), html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #log-panel, html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player:not(.active),
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.modal-card, .tut-intro-card, .tut-modal-card), html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup, html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner, html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-bg-layer {
  background-color: var(--sk-glass) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell { background: var(--sk-glass-2) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal:not(#setup-screen) { -webkit-backdrop-filter: blur(6px) !important; backdrop-filter: blur(6px) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip { background: var(--sk-glass-2) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.codex-card-box, .codex-banner-card, .codex-special-card, .codex-core-box, .codex-trait-box, .codex-action-row, .tut-rule-card, .csb-card, .codex-dice-row, .online-box) { background-color: var(--sk-glass-2) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card { background-color: var(--sk-glass-2) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card.selected { background: linear-gradient(var(--sk-signal), var(--sk-signal)) top left / 100% 3px no-repeat, var(--sk-plate-3) !important; }

/* reserves: frosted, with the faction's edge and halo; brighter for the player to act */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash { background: var(--sk-glass) !important; filter: none !important; transition: box-shadow var(--sk-slow) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1 { box-shadow: 0 0 0 1px rgb(var(--sk-azure-rgb) / .32), 0 0 26px rgb(var(--sk-azure-rgb) / calc(var(--sk-glow) * .22)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2 { box-shadow: 0 0 0 1px rgb(var(--sk-violet-rgb) / .32), 0 0 26px rgb(var(--sk-violet-rgb) / calc(var(--sk-glow) * .22)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1.stash-active {
  background: linear-gradient(rgb(var(--sk-azure-rgb) / .16), transparent 140px) top / 100% 140px no-repeat, var(--sk-glass) !important;
  box-shadow: inset 0 3px 0 var(--sk-azure), 0 0 0 1px rgb(var(--sk-azure-rgb) / .7), 0 0 34px rgb(var(--sk-azure-rgb) / calc(var(--sk-glow) * .65)) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2.stash-active {
  background: linear-gradient(rgb(var(--sk-violet-rgb) / .16), transparent 140px) top / 100% 140px no-repeat, var(--sk-glass) !important;
  box-shadow: inset 0 3px 0 var(--sk-violet), 0 0 0 1px rgb(var(--sk-violet-rgb) / .7), 0 0 34px rgb(var(--sk-violet-rgb) / calc(var(--sk-glow) * .65)) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash { border: 0 !important; }
/* reserve dice: tinted in their faction colour, as in the original */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-p1 .die-chip { color: color-mix(in srgb, var(--sk-azure) 55%, var(--sk-bone)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-p2 .die-chip { color: color-mix(in srgb, var(--sk-violet) 55%, var(--sk-bone)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-p1.stash-active .die-chip:hover { color: var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-p2.stash-active .die-chip:hover { color: var(--sk-violet) !important; }

/* player cards: plain; the die breaks out of the card */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper :is(.bar-left, .bar-right) { filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player { overflow: visible !important; clip-path: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp1 { box-shadow: inset 4px 0 0 var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp2 { box-shadow: inset -4px 0 0 var(--sk-violet) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active.hp1 { background: linear-gradient(100deg, var(--sk-azure), color-mix(in srgb, var(--sk-azure) 78%, #fff)) !important; box-shadow: 0 0 30px rgb(var(--sk-azure-rgb) / var(--sk-glow)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active.hp2 { background: linear-gradient(260deg, var(--sk-violet), color-mix(in srgb, var(--sk-violet) 78%, #fff)) !important; box-shadow: 0 0 30px rgb(var(--sk-violet-rgb) / var(--sk-glow)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active :is(.hp-name, .hp-name-col, .hp-name-col *) { color: #fff !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active .player-identity-label { color: rgb(255 255 255 / .78) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active .hp-pips .pip:not(.filled) { background: rgb(255 255 255 / .35) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active .hp-pips .pip.filled { background: var(--sk-gold) !important; }
/* the rail fill is glass */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper #action-bar#action-bar {
  background:
    linear-gradient(var(--sk-turn), var(--sk-turn)) 0 9px / 100% 2px no-repeat,
    linear-gradient(var(--sk-turn), var(--sk-turn)) 0 calc(100% - 9px) / 100% 2px no-repeat,
    linear-gradient(90deg, rgb(var(--sk-turn-rgb) / .18), transparent 30%, transparent 70%, rgb(var(--sk-turn-rgb) / .18)) 0 11px / 100% calc(100% - 22px) no-repeat,
    linear-gradient(var(--sk-glass), var(--sk-glass)) 0 11px / 100% calc(100% - 22px) no-repeat !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) { --sk-turn-rgb: 20 116 200; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body):has(#hud-p2.active) { --sk-turn-rgb: 196 40 126; }

/* --- exit confirmation ------------------------------------------------ */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal { background: var(--sk-scrim) !important; -webkit-backdrop-filter: blur(6px) !important; backdrop-filter: blur(6px) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal .confirm-card {
  border-radius: 0 !important; background: var(--sk-glass) !important; -webkit-backdrop-filter: var(--sk-blur) !important; backdrop-filter: var(--sk-blur) !important;
  border: 1px solid rgb(255 77 61 / .5) !important; box-shadow: 0 0 34px rgb(255 77 61 / calc(var(--sk-glow) * .45)) !important;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal .confirm-card::before, html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal .confirm-card::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal .confirm-card > div:first-child { border-radius: 0 !important; box-shadow: none !important; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: rgb(255 77 61 / .16) !important; border: 0 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal :is(h2, h3, [id*='title']) { font-family: var(--sk-tech) !important; letter-spacing: .1em !important; color: var(--sk-bone) !important; text-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal p, html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal [id*='desc'] { color: var(--sk-muted) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal .btn { border-radius: 0 !important; box-shadow: none !important; font-family: var(--sk-tech) !important; letter-spacing: .14em !important; text-transform: uppercase; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal .btn.btn-ghost { background: transparent !important; color: var(--sk-bone) !important; border: 1px solid var(--sk-line-2) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal .btn.btn-primary { background: var(--sk-red) !important; color: #fff !important; border: 0 !important; filter: drop-shadow(0 0 12px rgb(255 77 61 / calc(var(--sk-glow) * .7))) !important; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }

/* --- online roll-off dialog: the same faction plates as the lobby ------ */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal .modal-card { border: 1px solid var(--sk-line-2) !important; box-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal .modal-label { color: var(--sk-signal-text) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal [id='color-select-title'] { font-family: var(--sk-tech) !important; color: var(--sk-bone) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal [id='color-select-status'] { color: var(--sk-muted) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal .ro-val { border-radius: 0 !important; box-shadow: none !important; text-shadow: none !important; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal .ro-val.rv-p1 { background: var(--sk-azure) !important; filter: drop-shadow(0 0 14px rgb(var(--sk-azure-rgb) / var(--sk-glow))); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal .ro-val.rv-p2 { background: var(--sk-violet) !important; filter: drop-shadow(0 0 14px rgb(var(--sk-violet-rgb) / var(--sk-glow))); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal .ro-val svg rect { fill: rgb(11 12 16 / .14) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal .ro-val svg g { color: rgb(11 12 16 / .72) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal .ro-val .ro-num { position: relative; z-index: 1; color: #0b0c10 !important; font-family: var(--sk-tech) !important; text-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal [style*='var(--p1-color)'] { color: var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal [style*='var(--p2-color)'] { color: var(--sk-violet) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal div[style*='height: 1px'] { background: var(--sk-line) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .ready-player-badge { background: var(--sk-glass-2) !important; border: 1px solid var(--sk-line-2) !important; color: var(--sk-bone) !important; }

/* --- tutorial complete -------------------------------------------------- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-spotlight-box { border-radius: 0 !important; box-shadow: none !important; background: var(--sk-glass-2) !important; border: 1px solid var(--sk-line) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-spotlight-box::before, html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-spotlight-box::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.csb-tag, .csb-header) { color: var(--sk-signal-text) !important; font-family: var(--sk-body) !important; letter-spacing: .22em !important; text-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .csb-card-icon { border-radius: 0 !important; box-shadow: none !important; background: transparent !important; border: 1px solid var(--sk-line-2) !important; color: var(--sk-signal-text) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .csb-card-icon :is(svg, *) { filter: none !important; text-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .csb-description { color: var(--sk-muted) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .tut-cert-badge { border-radius: 0 !important; box-shadow: none !important; filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .tut-modal-title { color: var(--sk-signal-text) !important; }

/* --- the Core roll: a gold-edged glass sheet --------------------------- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #core-modal :is(.modal-card, .core-modal-card, [class*='core-card']) { border: 1px solid rgb(227 179 74 / .5) !important; box-shadow: 0 0 40px rgb(227 179 74 / calc(var(--sk-glow) * .35)) !important; }

/* codex details */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-special-icon-box { border-radius: 0 !important; box-shadow: none !important; background: transparent !important; border: 1px solid var(--sk-line-2) !important; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-special-icon-box.box-gold { border-color: rgb(227 179 74 / .6) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-special-icon-box svg { color: var(--sk-bone) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .card-green { box-shadow: inset 3px 0 0 var(--sk-signal) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-number-badges > * { border-radius: 0 !important; box-shadow: none !important; background: transparent !important; border: 1px solid rgb(var(--sk-fg) / .3) !important; color: var(--sk-signal-text) !important; text-shadow: none !important; font-family: var(--sk-tech) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(.modal, #game-screen, .site-header) .btn-exit-round { border-radius: 0 !important; box-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .audio-toggle-btn { background: transparent !important; border: 1px solid var(--sk-line-2) !important; color: var(--sk-bone) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .btn-exit-round { background: transparent !important; border: 1px solid var(--sk-line-2) !important; color: var(--sk-bone) !important; }
/* Light: the welcome mark is printed in ink. */
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #ftue-welcome-modal .preloader-logo-container { filter: none !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #ftue-welcome-modal :is(.preloader-logo-bg, .preloader-logo-fill img) { filter: brightness(0) !important; opacity: .9 !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #ftue-welcome-modal .preloader-logo-bg { opacity: .15 !important; }
/* Phones: the board is drawn at half size, so its lines and plates need more weight. */
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-glass-backdrop { display: block !important; }
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly { stroke-width: 2.4px !important; }
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-mid { stroke: rgb(var(--sk-fg) / .24) !important; }
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly:is(.hex-valid, .hex-attack, .hex-selected, .hex-deploy-valid-p1, .hex-deploy-valid-p2) { stroke-width: 3.6px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #log-panel { background-image: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #log-panel #btn-toggle-log { background-image: none !important; }
/* Setup notice (only shown when the online service is not configured). */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #firebase-warning { border-radius: 0 !important; background: rgb(227 179 74 / .12) !important; border: 1px solid rgb(227 179 74 / .45) !important; color: var(--sk-gold-text) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #firebase-warning :is(strong, code) { color: var(--sk-bone) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .tut-modal-title,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .tut-modal-card :is(h1, h2) { color: var(--sk-bone) !important; -webkit-text-fill-color: currentColor !important; background: none !important; text-shadow: none !important; }

/* Phones: the match tools under the menu */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .phone-match-tools :is(button, a) {
  border-radius: 0 !important; box-shadow: none !important; background: var(--sk-glass-2) !important;
  border: 1px solid var(--sk-line-2) !important; color: var(--sk-bone) !important; font-family: var(--sk-tech) !important; letter-spacing: .1em !important;
}


/* =====================================================================
   v5: cut corners everywhere it matters, a roomier console, readable
   light theme, quieter disabled states.
   ===================================================================== */
:root { --sk-cutL: 16px; --sk-frame: #3c434a; }

/* --- light theme: mid-tone porcelain, not white ------------------------ */
html[data-theme='light'] {
  --sk-ink: #c3ccd5; --sk-plate: #d9e0e7; --sk-plate-2: #e7ecf0; --sk-plate-3: #cdd5dd;
  --sk-bone: #111c28; --sk-muted: #3a4b5a; --sk-faint: #6f7f8c;
  --sk-fg: 17 28 40;
  --sk-hex: #d6dde4;
  --sk-scrim: rgba(170, 182, 193, .62);
  --sk-signal: #b8e21d; --sk-signal-ink: #0c1100; --sk-signal-text: #3a5200;
  --sk-gold: #c48f26; --sk-gold-text: #6b4800;
  --sk-azure: #116ab8; --sk-violet: #b51f72;
  --sk-glass: rgb(214 222 229 / .74); --sk-glass-2: rgb(229 235 240 / .82);
  --sk-frame: rgb(17 28 40 / .24);
  --sk-glow: .36;
}
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #topographic-bg-container { filter: saturate(.7) brightness(.72) contrast(1.08) !important; opacity: 1 !important; }
/* primary buttons keep a printed edge on the light ground */
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal, body) .btn:is(.btn-primary, .tut-cta-green):not(:disabled),
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .act-btn.act-active {
  color: var(--sk-signal-ink) !important; box-shadow: inset 0 0 0 1px rgb(58 82 0 / .55) !important; font-weight: 800 !important;
}
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup .popup-actions .btn.btn-primary { background: var(--sk-signal) !important; color: var(--sk-signal-ink) !important; }
/* the 3D dice and battle dice adapt to Light mode with a clean ceramic well */
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell .bg3-battle-die-widget {
  background: radial-gradient(closest-side, #f7f9fb, #e5eaef) !important;
}
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #core-modal #interactive-core-d4 {
  background: radial-gradient(closest-side, rgba(180, 127, 18, .12), transparent) !important;
}
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell .bg3-battle-die-widget :is(.bg3-effect-desc, .bg3-effect-text) { color: var(--sk-muted) !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell .bg3-battle-die-widget :is(.bg3-die-face-content, .bg3-die-face-content *) { color: var(--sk-bone) !important; -webkit-text-fill-color: var(--sk-bone) !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell .bg3-prompt-badge { color: var(--sk-bone) !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player .plaque-mascot,
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .dice-slot img { filter: drop-shadow(0 6px 12px rgb(10 20 30 / .45)) !important; }

/* --- the two 3D dice on the player cards: never see-through ----------- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player .plaque-mascot { opacity: 1 !important; }
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player:not(.active) .plaque-mascot,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player:not(.active) .plaque-mascot { filter: brightness(.5) saturate(.55) !important; opacity: 1 !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player:not(.active) .plaque-mascot { filter: brightness(.62) saturate(.5) drop-shadow(0 6px 12px rgb(10 20 30 / .35)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .dice-slot img { opacity: 1 !important; }

/* --- player cards: cut on the outer top corner, drawn by a back layer --- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player { background: none !important; border: 0 !important; isolation: isolate; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important; z-index: -1 !important;
  width: auto !important; height: auto !important; border: 0 !important; pointer-events: none;
  -webkit-backdrop-filter: var(--sk-blur); backdrop-filter: var(--sk-blur);
  transition: background var(--sk-slow);
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp1::before {
  background: linear-gradient(var(--sk-azure), var(--sk-azure)) left top / 4px 100% no-repeat,
    linear-gradient(var(--sk-frame), var(--sk-frame)) left var(--sk-cutL) top 0 / calc(100% - var(--sk-cutL) - 0px) 1px no-repeat,
    linear-gradient(var(--sk-frame), var(--sk-frame)) left 0px bottom 0 / calc(100% - 0px - 0px) 1px no-repeat,
    linear-gradient(var(--sk-frame), var(--sk-frame)) left 0 top var(--sk-cutL) / 1px calc(100% - var(--sk-cutL) - 0px) no-repeat,
    linear-gradient(var(--sk-frame), var(--sk-frame)) right 0 top 0px / 1px calc(100% - 0px - 0px) no-repeat,
    linear-gradient(to top left, transparent calc(50% - .9px), var(--sk-frame) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) left top / var(--sk-cutL) var(--sk-cutL) no-repeat,
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important;
  clip-path: polygon(0 var(--sk-cutL), var(--sk-cutL) 0, 100% 0, 100% 100%, 0 100%) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp2::before {
  background: linear-gradient(var(--sk-violet), var(--sk-violet)) right top / 4px 100% no-repeat,
    linear-gradient(var(--sk-frame), var(--sk-frame)) left 0px top 0 / calc(100% - 0px - var(--sk-cutL)) 1px no-repeat,
    linear-gradient(var(--sk-frame), var(--sk-frame)) left 0px bottom 0 / calc(100% - 0px - 0px) 1px no-repeat,
    linear-gradient(var(--sk-frame), var(--sk-frame)) left 0 top 0px / 1px calc(100% - 0px - 0px) no-repeat,
    linear-gradient(var(--sk-frame), var(--sk-frame)) right 0 top var(--sk-cutL) / 1px calc(100% - var(--sk-cutL) - 0px) no-repeat,
    linear-gradient(to top right, transparent calc(50% - .9px), var(--sk-frame) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) right top / var(--sk-cutL) var(--sk-cutL) no-repeat,
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important;
  clip-path: polygon(0 0, calc(100% - var(--sk-cutL)) 0, 100% var(--sk-cutL), 100% 100%, 0 100%) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp1.active::before { background: linear-gradient(100deg, var(--sk-azure), color-mix(in srgb, var(--sk-azure) 78%, #fff)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp2.active::before { background: linear-gradient(260deg, var(--sk-violet), color-mix(in srgb, var(--sk-violet) 78%, #fff)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp1, html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp2 { box-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp1.active { box-shadow: none !important; filter: drop-shadow(0 0 16px rgb(var(--sk-azure-rgb) / var(--sk-glow))); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp2.active { box-shadow: none !important; filter: drop-shadow(0 0 16px rgb(var(--sk-violet-rgb) / var(--sk-glow))); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player:not(.active) { background-color: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* control tokens: bigger */
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hp-pips { gap: 5px !important; }
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hp-pips .pip { width: 20px !important; height: 23px !important; }
html:not(#sk-z)[data-phone-device='true'] body:is(#sk-x, body):is(#sk-y, body) #game-screen .hp-pips .pip { width: 15px !important; height: 17px !important; }

/* --- console: a full-height band, buttons with room and cut corners ---- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper #action-bar#action-bar {
  background:
    linear-gradient(var(--sk-turn), var(--sk-turn)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--sk-turn), var(--sk-turn)) 0 100% / 100% 2px no-repeat,
    linear-gradient(90deg, rgb(var(--sk-turn-rgb) / .2), transparent 28%, transparent 72%, rgb(var(--sk-turn-rgb) / .2)),
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important;
}
html:not([data-phone-device='true']):not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper #action-bar#action-bar {
  --ab-dir: 90deg;
  filter: none !important;
  background:
    linear-gradient(var(--ab-dir), var(--sk-turn) 0%, var(--sk-turn) 52%, color-mix(in srgb, var(--sk-turn) 45%, var(--sk-line)) 74%, var(--sk-line) 88%) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ab-dir), var(--sk-turn) 0%, var(--sk-turn) 52%, color-mix(in srgb, var(--sk-turn) 45%, var(--sk-line)) 74%, var(--sk-line) 88%) 0 100% / 100% 2px no-repeat,
    linear-gradient(var(--ab-dir), rgb(var(--sk-turn-rgb) / .38) 0%, rgb(var(--sk-turn-rgb) / .24) 48%, rgb(var(--sk-turn-rgb) / .12) 68%, rgb(var(--sk-turn-rgb) / .02) 82%, transparent 88%),
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important;
}
html:not([data-phone-device='true']):not(#sk-z) body:is(#sk-x, body):is(#sk-y, body):has(#hud-p2.active) #action-bar-wrapper #action-bar#action-bar,
html:not([data-phone-device='true']):not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper #action-bar#action-bar.ab-p2 {
  --ab-dir: 270deg;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bar-center { gap: 8px !important; }
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bar-center .act-btn {
  min-height: 42px !important; height: 42px !important; padding-inline: 24px !important; margin: 0 !important;
  font-size: 11.5px !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bar-center .act-btn { clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); }

/* --- reserves: cut outer-bottom corner and inner-top corner ------------ */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash { background: none !important; isolation: isolate; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important; z-index: -1 !important; pointer-events: none;
  -webkit-backdrop-filter: var(--sk-blur); backdrop-filter: var(--sk-blur);
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash::after { display: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1::before { background: linear-gradient(rgb(var(--sk-azure-rgb) / .38), rgb(var(--sk-azure-rgb) / .38)) left 0px top 0 / calc(100% - 0px - var(--sk-cutL)) 1px no-repeat,
    linear-gradient(rgb(var(--sk-azure-rgb) / .38), rgb(var(--sk-azure-rgb) / .38)) left var(--sk-cutL) bottom 0 / calc(100% - var(--sk-cutL) - 0px) 1px no-repeat,
    linear-gradient(rgb(var(--sk-azure-rgb) / .38), rgb(var(--sk-azure-rgb) / .38)) left 0 top 0px / 1px calc(100% - 0px - var(--sk-cutL)) no-repeat,
    linear-gradient(rgb(var(--sk-azure-rgb) / .38), rgb(var(--sk-azure-rgb) / .38)) right 0 top var(--sk-cutL) / 1px calc(100% - var(--sk-cutL) - 0px) no-repeat,
    linear-gradient(to top right, transparent calc(50% - .9px), rgb(var(--sk-azure-rgb) / .38) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) right top / var(--sk-cutL) var(--sk-cutL) no-repeat,
    linear-gradient(to top right, transparent calc(50% - .9px), rgb(var(--sk-azure-rgb) / .38) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) left bottom / var(--sk-cutL) var(--sk-cutL) no-repeat,
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important; clip-path: polygon(0 0, calc(100% - var(--sk-cutL)) 0, 100% var(--sk-cutL), 100% 100%, var(--sk-cutL) 100%, 0 calc(100% - var(--sk-cutL))) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2::before { background: linear-gradient(rgb(var(--sk-violet-rgb) / .38), rgb(var(--sk-violet-rgb) / .38)) left var(--sk-cutL) top 0 / calc(100% - var(--sk-cutL) - 0px) 1px no-repeat,
    linear-gradient(rgb(var(--sk-violet-rgb) / .38), rgb(var(--sk-violet-rgb) / .38)) left 0px bottom 0 / calc(100% - 0px - var(--sk-cutL)) 1px no-repeat,
    linear-gradient(rgb(var(--sk-violet-rgb) / .38), rgb(var(--sk-violet-rgb) / .38)) left 0 top var(--sk-cutL) / 1px calc(100% - var(--sk-cutL) - 0px) no-repeat,
    linear-gradient(rgb(var(--sk-violet-rgb) / .38), rgb(var(--sk-violet-rgb) / .38)) right 0 top 0px / 1px calc(100% - 0px - var(--sk-cutL)) no-repeat,
    linear-gradient(to top left, transparent calc(50% - .9px), rgb(var(--sk-violet-rgb) / .38) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) left top / var(--sk-cutL) var(--sk-cutL) no-repeat,
    linear-gradient(to top left, transparent calc(50% - .9px), rgb(var(--sk-violet-rgb) / .38) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) right bottom / var(--sk-cutL) var(--sk-cutL) no-repeat,
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important; clip-path: polygon(0 var(--sk-cutL), var(--sk-cutL) 0, 100% 0, 100% calc(100% - var(--sk-cutL)), calc(100% - var(--sk-cutL)) 100%, 0 100%) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1.stash-active::before { background: linear-gradient(var(--sk-azure), var(--sk-azure)) left top / calc(100% - var(--sk-cutL)) 3px no-repeat, linear-gradient(rgb(var(--sk-azure-rgb) / .18), transparent 150px) top / 100% 150px no-repeat, linear-gradient(rgb(var(--sk-azure-rgb) / .85), rgb(var(--sk-azure-rgb) / .85)) left 0px top 0 / calc(100% - 0px - var(--sk-cutL)) 1px no-repeat,
    linear-gradient(rgb(var(--sk-azure-rgb) / .85), rgb(var(--sk-azure-rgb) / .85)) left var(--sk-cutL) bottom 0 / calc(100% - var(--sk-cutL) - 0px) 1px no-repeat,
    linear-gradient(rgb(var(--sk-azure-rgb) / .85), rgb(var(--sk-azure-rgb) / .85)) left 0 top 0px / 1px calc(100% - 0px - var(--sk-cutL)) no-repeat,
    linear-gradient(rgb(var(--sk-azure-rgb) / .85), rgb(var(--sk-azure-rgb) / .85)) right 0 top var(--sk-cutL) / 1px calc(100% - var(--sk-cutL) - 0px) no-repeat,
    linear-gradient(to top right, transparent calc(50% - .9px), rgb(var(--sk-azure-rgb) / .85) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) right top / var(--sk-cutL) var(--sk-cutL) no-repeat,
    linear-gradient(to top right, transparent calc(50% - .9px), rgb(var(--sk-azure-rgb) / .85) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) left bottom / var(--sk-cutL) var(--sk-cutL) no-repeat,
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2.stash-active::before { background: linear-gradient(var(--sk-violet), var(--sk-violet)) right top / calc(100% - var(--sk-cutL)) 3px no-repeat, linear-gradient(rgb(var(--sk-violet-rgb) / .18), transparent 150px) top / 100% 150px no-repeat, linear-gradient(rgb(var(--sk-violet-rgb) / .85), rgb(var(--sk-violet-rgb) / .85)) left var(--sk-cutL) top 0 / calc(100% - var(--sk-cutL) - 0px) 1px no-repeat,
    linear-gradient(rgb(var(--sk-violet-rgb) / .85), rgb(var(--sk-violet-rgb) / .85)) left 0px bottom 0 / calc(100% - 0px - var(--sk-cutL)) 1px no-repeat,
    linear-gradient(rgb(var(--sk-violet-rgb) / .85), rgb(var(--sk-violet-rgb) / .85)) left 0 top var(--sk-cutL) / 1px calc(100% - var(--sk-cutL) - 0px) no-repeat,
    linear-gradient(rgb(var(--sk-violet-rgb) / .85), rgb(var(--sk-violet-rgb) / .85)) right 0 top 0px / 1px calc(100% - 0px - var(--sk-cutL)) no-repeat,
    linear-gradient(to top left, transparent calc(50% - .9px), rgb(var(--sk-violet-rgb) / .85) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) left top / var(--sk-cutL) var(--sk-cutL) no-repeat,
    linear-gradient(to top left, transparent calc(50% - .9px), rgb(var(--sk-violet-rgb) / .85) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) right bottom / var(--sk-cutL) var(--sk-cutL) no-repeat,
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1 { box-shadow: 0 0 28px rgb(var(--sk-azure-rgb) / calc(var(--sk-glow) * .22)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2 { box-shadow: 0 0 28px rgb(var(--sk-violet-rgb) / calc(var(--sk-glow) * .22)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1.stash-active { background: none !important; box-shadow: 0 0 38px rgb(var(--sk-azure-rgb) / calc(var(--sk-glow) * .6)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2.stash-active { background: none !important; box-shadow: 0 0 38px rgb(var(--sk-violet-rgb) / calc(var(--sk-glow) * .6)) !important; }

/* reserve tiles: a small cut, deployed and destroyed dice stay legible */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip { clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip.chip-deployed {
  opacity: 1 !important; background: transparent !important; border: 1px dashed rgb(var(--sk-fg) / .28) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip.chip-deployed :is(svg, .chip-svg) { color: rgb(var(--sk-fg) / .42) !important; opacity: 1 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip.chip-destroyed { opacity: .7 !important; filter: none !important; background: transparent !important; border: 1px solid rgb(var(--sk-fg) / .14) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip.chip-destroyed::after { color: rgb(var(--sk-fg) / .45) !important; text-shadow: none !important; font-family: var(--sk-tech) !important; font-weight: 700 !important; }

/* movement-speed tips: open above the arrows, inside the reserve (the
   reserve clips anything that leaves it) */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-speed-arrows[data-tooltip]:not([data-tooltip=""])::before {
  top: auto !important; bottom: calc(100% + 6px) !important; transform: translateY(3px) !important;
  border-radius: 0 !important; box-shadow: none !important; border: 0 !important;
  font-family: var(--sk-tech) !important; font-size: 10px !important; letter-spacing: .14em !important; font-weight: 700 !important;
  padding: 6px 10px !important; color: #fff !important;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-p1 .stash-speed-arrows[data-tooltip]::before { right: 0 !important; left: auto !important; background: var(--sk-azure) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-p2 .stash-speed-arrows[data-tooltip]::before { left: 0 !important; right: auto !important; background: var(--sk-violet) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-speed-arrows[data-tooltip]:hover::before { transform: none !important; }

/* --- roll prompt: a square plate; the die stays visible behind the number */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup .popup-big-val { position: relative; background-repeat: no-repeat !important; background-position: center !important; background-size: auto 86% !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup .popup-big-val > * { position: relative; z-index: 1; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup[data-roll-id*='_D4_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg transform='translate(0, -3)'%3E%3Cpath fill='black' d='M64,48.25l-20.11,34.89h40.22l-20.11-34.89ZM65,72.26l7.78-4.77,7.87,13.65h-15.65v-8.88ZM71.78,65.75l-7.78,4.77-7.78-4.77,7.78-13.5,7.78,13.5ZM55.22,67.49l7.78,4.77v8.88h-15.65l7.87-13.65Z'/%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M64,45.67l22.29,38.67h-44.58l22.29-38.67M64,41.66l-25.75,44.67h51.5l-25.75-44.67h0Z'/%3E %3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-plate-2), var(--sk-plate-2)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup.popup-p1[data-roll-id*='_D4_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg transform='translate(0, -3)'%3E%3Cpath fill='black' d='M64,48.25l-20.11,34.89h40.22l-20.11-34.89ZM65,72.26l7.78-4.77,7.87,13.65h-15.65v-8.88ZM71.78,65.75l-7.78,4.77-7.78-4.77,7.78-13.5,7.78,13.5ZM55.22,67.49l7.78,4.77v8.88h-15.65l7.87-13.65Z'/%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M64,45.67l22.29,38.67h-44.58l22.29-38.67M64,41.66l-25.75,44.67h51.5l-25.75-44.67h0Z'/%3E %3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-azure), var(--sk-azure)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup.popup-p2[data-roll-id*='_D4_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg transform='translate(0, -3)'%3E%3Cpath fill='black' d='M64,48.25l-20.11,34.89h40.22l-20.11-34.89ZM65,72.26l7.78-4.77,7.87,13.65h-15.65v-8.88ZM71.78,65.75l-7.78,4.77-7.78-4.77,7.78-13.5,7.78,13.5ZM55.22,67.49l7.78,4.77v8.88h-15.65l7.87-13.65Z'/%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M64,45.67l22.29,38.67h-44.58l22.29-38.67M64,41.66l-25.75,44.67h51.5l-25.75-44.67h0Z'/%3E %3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-violet), var(--sk-violet)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup[data-roll-id*='_D6_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpolygon fill='black' points='75.61 83.45 83.45 83.45 83.45 75.62 75.61 83.45'/%3E %3Cpolygon fill='black' points='44.55 83.36 52.03 83.36 44.55 75.89 44.55 83.36'/%3E %3Cpolygon fill='black' points='44.55 52.04 52.04 44.55 44.55 44.55 44.55 52.04'/%3E %3Cpolygon fill='black' points='83.36 52.04 83.36 44.55 75.88 44.55 83.36 52.04'/%3E %3Cpath fill='black' d='M70.55,46.55l10.91,10.9v12.84l-11.17,11.16h-12.83l-10.91-10.89v-13.2l10.82-10.82h13.18M71.37,44.55h-14.84l-11.99,11.99v14.85l12.08,12.06h14.48l12.35-12.33v-14.5l-12.08-12.08h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M87.09,87.09h-46.18v-46.18h46.18v46.18ZM42.91,85.09h42.18v-42.18h-42.18v42.18Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-plate-2), var(--sk-plate-2)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup.popup-p1[data-roll-id*='_D6_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpolygon fill='black' points='75.61 83.45 83.45 83.45 83.45 75.62 75.61 83.45'/%3E %3Cpolygon fill='black' points='44.55 83.36 52.03 83.36 44.55 75.89 44.55 83.36'/%3E %3Cpolygon fill='black' points='44.55 52.04 52.04 44.55 44.55 44.55 44.55 52.04'/%3E %3Cpolygon fill='black' points='83.36 52.04 83.36 44.55 75.88 44.55 83.36 52.04'/%3E %3Cpath fill='black' d='M70.55,46.55l10.91,10.9v12.84l-11.17,11.16h-12.83l-10.91-10.89v-13.2l10.82-10.82h13.18M71.37,44.55h-14.84l-11.99,11.99v14.85l12.08,12.06h14.48l12.35-12.33v-14.5l-12.08-12.08h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M87.09,87.09h-46.18v-46.18h46.18v46.18ZM42.91,85.09h42.18v-42.18h-42.18v42.18Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-azure), var(--sk-azure)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup.popup-p2[data-roll-id*='_D6_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpolygon fill='black' points='75.61 83.45 83.45 83.45 83.45 75.62 75.61 83.45'/%3E %3Cpolygon fill='black' points='44.55 83.36 52.03 83.36 44.55 75.89 44.55 83.36'/%3E %3Cpolygon fill='black' points='44.55 52.04 52.04 44.55 44.55 44.55 44.55 52.04'/%3E %3Cpolygon fill='black' points='83.36 52.04 83.36 44.55 75.88 44.55 83.36 52.04'/%3E %3Cpath fill='black' d='M70.55,46.55l10.91,10.9v12.84l-11.17,11.16h-12.83l-10.91-10.89v-13.2l10.82-10.82h13.18M71.37,44.55h-14.84l-11.99,11.99v14.85l12.08,12.06h14.48l12.35-12.33v-14.5l-12.08-12.08h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M87.09,87.09h-46.18v-46.18h46.18v46.18ZM42.91,85.09h42.18v-42.18h-42.18v42.18Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-violet), var(--sk-violet)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup[data-roll-id*='_D8_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpath fill='black' d='M64,46.47l10.2,14.16h-20.41l10.2-14.16M64,43.05l-14.11,19.58h28.22l-14.11-19.58h0Z'/%3E %3Cpath fill='black' d='M74.2,67.37l-10.2,14.16-10.2-14.16h20.41M78.11,65.37h-28.22l14.11,19.58,14.11-19.58h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M64,39.9l17.37,24.1-17.37,24.1-17.37-24.1,17.37-24.1M64,36.48l-19.83,27.52,19.83,27.52,19.83-27.52-19.83-27.52h0Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-plate-2), var(--sk-plate-2)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup.popup-p1[data-roll-id*='_D8_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpath fill='black' d='M64,46.47l10.2,14.16h-20.41l10.2-14.16M64,43.05l-14.11,19.58h28.22l-14.11-19.58h0Z'/%3E %3Cpath fill='black' d='M74.2,67.37l-10.2,14.16-10.2-14.16h20.41M78.11,65.37h-28.22l14.11,19.58,14.11-19.58h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M64,39.9l17.37,24.1-17.37,24.1-17.37-24.1,17.37-24.1M64,36.48l-19.83,27.52,19.83,27.52,19.83-27.52-19.83-27.52h0Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-azure), var(--sk-azure)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup.popup-p2[data-roll-id*='_D8_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpath fill='black' d='M64,46.47l10.2,14.16h-20.41l10.2-14.16M64,43.05l-14.11,19.58h28.22l-14.11-19.58h0Z'/%3E %3Cpath fill='black' d='M74.2,67.37l-10.2,14.16-10.2-14.16h20.41M78.11,65.37h-28.22l14.11,19.58,14.11-19.58h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M64,39.9l17.37,24.1-17.37,24.1-17.37-24.1,17.37-24.1M64,36.48l-19.83,27.52,19.83,27.52,19.83-27.52-19.83-27.52h0Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-violet), var(--sk-violet)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup[data-roll-id*='_D10_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpath fill='black' d='M64,43.83l11.07,17.81-11.07,5.38-11.07-5.38,11.07-17.81M64,40.04l-13.94,22.43,13.94,6.78,13.94-6.78-13.94-22.43h0Z'/%3E %3Cpath fill='black' d='M48.81,66.66l11.61,5.86v10.51l-14.61-14.72,3-1.66M48.77,64.4l-6.25,3.45,19.9,20.04v-16.59l-13.65-6.9h0Z'/%3E %3Cpath fill='black' d='M51.73,52.24l-4.75,7.3-2.69,1.42.14-2.01,7.3-6.7M62.06,40.04l-19.56,17.97-.45,6.39,6.33-3.33,13.68-21.02h0Z'/%3E %3Cpath fill='black' d='M79.19,66.66l3,1.66-14.61,14.72v-10.51l11.61-5.86M79.23,64.4l-13.65,6.9v16.59l19.9-20.04-6.25-3.45h0Z'/%3E %3Cpath fill='black' d='M76.27,52.24l7.3,6.7.14,2.01-2.69-1.42-4.75-7.3M65.94,40.04l13.68,21.02,6.33,3.33-.45-6.39-19.56-17.97h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M64,35.53l23.11,21.52,1.01,11.54-24.13,23.8-24.13-23.8,1.01-11.54,23.11-21.52h0M64,32.8l-1.36,1.27-23.12,21.52-.56.52-.07.77-1.01,11.54-.08.94.67.66,24.13,23.8,1.4,1.39,1.4-1.39,24.13-23.8.67-.66-.08-.94-1.01-11.54-.07-.77-.56-.52-23.11-21.52-1.36-1.27h0Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-plate-2), var(--sk-plate-2)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup.popup-p1[data-roll-id*='_D10_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpath fill='black' d='M64,43.83l11.07,17.81-11.07,5.38-11.07-5.38,11.07-17.81M64,40.04l-13.94,22.43,13.94,6.78,13.94-6.78-13.94-22.43h0Z'/%3E %3Cpath fill='black' d='M48.81,66.66l11.61,5.86v10.51l-14.61-14.72,3-1.66M48.77,64.4l-6.25,3.45,19.9,20.04v-16.59l-13.65-6.9h0Z'/%3E %3Cpath fill='black' d='M51.73,52.24l-4.75,7.3-2.69,1.42.14-2.01,7.3-6.7M62.06,40.04l-19.56,17.97-.45,6.39,6.33-3.33,13.68-21.02h0Z'/%3E %3Cpath fill='black' d='M79.19,66.66l3,1.66-14.61,14.72v-10.51l11.61-5.86M79.23,64.4l-13.65,6.9v16.59l19.9-20.04-6.25-3.45h0Z'/%3E %3Cpath fill='black' d='M76.27,52.24l7.3,6.7.14,2.01-2.69-1.42-4.75-7.3M65.94,40.04l13.68,21.02,6.33,3.33-.45-6.39-19.56-17.97h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M64,35.53l23.11,21.52,1.01,11.54-24.13,23.8-24.13-23.8,1.01-11.54,23.11-21.52h0M64,32.8l-1.36,1.27-23.12,21.52-.56.52-.07.77-1.01,11.54-.08.94.67.66,24.13,23.8,1.4,1.39,1.4-1.39,24.13-23.8.67-.66-.08-.94-1.01-11.54-.07-.77-.56-.52-23.11-21.52-1.36-1.27h0Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-azure), var(--sk-azure)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup.popup-p2[data-roll-id*='_D10_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpath fill='black' d='M64,43.83l11.07,17.81-11.07,5.38-11.07-5.38,11.07-17.81M64,40.04l-13.94,22.43,13.94,6.78,13.94-6.78-13.94-22.43h0Z'/%3E %3Cpath fill='black' d='M48.81,66.66l11.61,5.86v10.51l-14.61-14.72,3-1.66M48.77,64.4l-6.25,3.45,19.9,20.04v-16.59l-13.65-6.9h0Z'/%3E %3Cpath fill='black' d='M51.73,52.24l-4.75,7.3-2.69,1.42.14-2.01,7.3-6.7M62.06,40.04l-19.56,17.97-.45,6.39,6.33-3.33,13.68-21.02h0Z'/%3E %3Cpath fill='black' d='M79.19,66.66l3,1.66-14.61,14.72v-10.51l11.61-5.86M79.23,64.4l-13.65,6.9v16.59l19.9-20.04-6.25-3.45h0Z'/%3E %3Cpath fill='black' d='M76.27,52.24l7.3,6.7.14,2.01-2.69-1.42-4.75-7.3M65.94,40.04l13.68,21.02,6.33,3.33-.45-6.39-19.56-17.97h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M64,35.53l23.11,21.52,1.01,11.54-24.13,23.8-24.13-23.8,1.01-11.54,23.11-21.52h0M64,32.8l-1.36,1.27-23.12,21.52-.56.52-.07.77-1.01,11.54-.08.94.67.66,24.13,23.8,1.4,1.39,1.4-1.39,24.13-23.8.67-.66-.08-.94-1.01-11.54-.07-.77-.56-.52-23.11-21.52-1.36-1.27h0Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-violet), var(--sk-violet)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup[data-roll-id*='_D12_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpath fill='black' d='M67.47,46.76h8.57s7.13,11.36,7.13,11.36l-5.43,5.81-10.08-6.89-.2-10.29M65.44,44.76l.26,13.36,12.35,8.44,7.65-8.19-8.54-13.6h-11.71Z'/%3E %3Cpath fill='black' d='M60.14,46.76l-.2,10.29-10.08,6.89-5.43-5.81,7.13-11.36h8.57M62.17,44.76h-11.71s-8.54,13.6-8.54,13.6l7.65,8.19,12.35-8.44.26-13.36h0Z'/%3E %3Cpath fill='black' d='M43.57,66.5l3.77,4.17,3.49,10.56h-.48s-6.78-11.43-6.78-11.43v-.97s0-2.33,0-2.33M41.57,61.3v7.53s0,1.52,0,1.52l7.64,12.88h4.39s-4.49-13.59-4.49-13.59l-7.53-8.35h0Z'/%3E %3Cpath fill='black' d='M63.81,62.86l9.58,6.87-3.48,11.51h-6.09s-6.08,0-6.08,0l-3.49-11.51,9.57-6.87M63.81,60.39l-11.9,8.54,4.34,14.3h7.57s7.58,0,7.58,0l4.33-14.3-11.9-8.54h0Z'/%3E %3Cpath fill='black' d='M84.04,66.5v2.33s0,.97,0,.97l-6.78,11.43h-.48s3.49-10.56,3.49-10.56l3.77-4.17M86.04,61.3l-7.53,8.35-4.49,13.59h4.39s7.64-12.88,7.64-12.88v-1.52s0-7.53,0-7.53h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M80.15,87.45h-32.69l-9.83-15.86.4-14.87,9.63-16.18h32.28l10.03,16.17.4,14.88-10.23,15.85ZM48.57,85.45h30.49l9.3-14.42-.37-13.73-9.16-14.77h-30.03l-8.78,14.76-.37,13.75,8.92,14.41Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-plate-2), var(--sk-plate-2)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup.popup-p1[data-roll-id*='_D12_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpath fill='black' d='M67.47,46.76h8.57s7.13,11.36,7.13,11.36l-5.43,5.81-10.08-6.89-.2-10.29M65.44,44.76l.26,13.36,12.35,8.44,7.65-8.19-8.54-13.6h-11.71Z'/%3E %3Cpath fill='black' d='M60.14,46.76l-.2,10.29-10.08,6.89-5.43-5.81,7.13-11.36h8.57M62.17,44.76h-11.71s-8.54,13.6-8.54,13.6l7.65,8.19,12.35-8.44.26-13.36h0Z'/%3E %3Cpath fill='black' d='M43.57,66.5l3.77,4.17,3.49,10.56h-.48s-6.78-11.43-6.78-11.43v-.97s0-2.33,0-2.33M41.57,61.3v7.53s0,1.52,0,1.52l7.64,12.88h4.39s-4.49-13.59-4.49-13.59l-7.53-8.35h0Z'/%3E %3Cpath fill='black' d='M63.81,62.86l9.58,6.87-3.48,11.51h-6.09s-6.08,0-6.08,0l-3.49-11.51,9.57-6.87M63.81,60.39l-11.9,8.54,4.34,14.3h7.57s7.58,0,7.58,0l4.33-14.3-11.9-8.54h0Z'/%3E %3Cpath fill='black' d='M84.04,66.5v2.33s0,.97,0,.97l-6.78,11.43h-.48s3.49-10.56,3.49-10.56l3.77-4.17M86.04,61.3l-7.53,8.35-4.49,13.59h4.39s7.64-12.88,7.64-12.88v-1.52s0-7.53,0-7.53h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M80.15,87.45h-32.69l-9.83-15.86.4-14.87,9.63-16.18h32.28l10.03,16.17.4,14.88-10.23,15.85ZM48.57,85.45h30.49l9.3-14.42-.37-13.73-9.16-14.77h-30.03l-8.78,14.76-.37,13.75,8.92,14.41Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-azure), var(--sk-azure)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup.popup-p2[data-roll-id*='_D12_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpath fill='black' d='M67.47,46.76h8.57s7.13,11.36,7.13,11.36l-5.43,5.81-10.08-6.89-.2-10.29M65.44,44.76l.26,13.36,12.35,8.44,7.65-8.19-8.54-13.6h-11.71Z'/%3E %3Cpath fill='black' d='M60.14,46.76l-.2,10.29-10.08,6.89-5.43-5.81,7.13-11.36h8.57M62.17,44.76h-11.71s-8.54,13.6-8.54,13.6l7.65,8.19,12.35-8.44.26-13.36h0Z'/%3E %3Cpath fill='black' d='M43.57,66.5l3.77,4.17,3.49,10.56h-.48s-6.78-11.43-6.78-11.43v-.97s0-2.33,0-2.33M41.57,61.3v7.53s0,1.52,0,1.52l7.64,12.88h4.39s-4.49-13.59-4.49-13.59l-7.53-8.35h0Z'/%3E %3Cpath fill='black' d='M63.81,62.86l9.58,6.87-3.48,11.51h-6.09s-6.08,0-6.08,0l-3.49-11.51,9.57-6.87M63.81,60.39l-11.9,8.54,4.34,14.3h7.57s7.58,0,7.58,0l4.33-14.3-11.9-8.54h0Z'/%3E %3Cpath fill='black' d='M84.04,66.5v2.33s0,.97,0,.97l-6.78,11.43h-.48s3.49-10.56,3.49-10.56l3.77-4.17M86.04,61.3l-7.53,8.35-4.49,13.59h4.39s7.64-12.88,7.64-12.88v-1.52s0-7.53,0-7.53h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M80.15,87.45h-32.69l-9.83-15.86.4-14.87,9.63-16.18h32.28l10.03,16.17.4,14.88-10.23,15.85ZM48.57,85.45h30.49l9.3-14.42-.37-13.73-9.16-14.77h-30.03l-8.78,14.76-.37,13.75,8.92,14.41Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-violet), var(--sk-violet)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup[data-roll-id*='_D20_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpolygon fill='black' points='48.84 76.93 43.59 76.93 63.05 89.62 48.84 76.93 48.84 76.93'/%3E %3Cpath fill='black' d='M43.37,67.85l1.51,4.18h-1.51s0-4.18,0-4.18M41.38,56.41v17.62s6.35,0,6.35,0l-6.35-17.62h0Z'/%3E %3Cpath fill='black' d='M57.15,54.75l-7.16,12.12-4.53-11.61,11.69-.5M60.75,52.59l-18.17.78,7.05,18.04,11.12-18.83h0Z'/%3E %3Cpath fill='black' d='M60.66,42.18l-.55,5.78-9.74.55,10.29-6.34M63.04,38.37l-20.46,12.59,19.36-1.1,1.1-11.49h0Z'/%3E %3Cpolygon fill='black' points='79.16 76.93 64.95 89.62 84.41 76.93 79.16 76.93 79.16 76.93'/%3E %3Cpath fill='black' d='M70.45,78.82l-6.45,6.1-6.45-6.1h12.9M75.48,76.82h-22.95l11.48,10.85,11.48-10.85h0Z'/%3E %3Cpath fill='black' d='M84.62,67.85v4.18s-1.51,0-1.51,0l1.51-4.18M86.62,56.41l-6.35,17.62h6.35s0-17.62,0-17.62h0Z'/%3E %3Cpath fill='black' d='M64,56.14l9.12,15.57h-18.24l9.11-15.57M63.99,52.18l-12.6,21.53h25.21l-12.61-21.53h0Z'/%3E %3Cpath fill='black' d='M70.85,54.75l11.69.5-4.53,11.61-7.16-12.12M67.25,52.59l11.12,18.83,7.05-18.04-18.17-.78h0Z'/%3E %3Cpath fill='black' d='M67.33,42.09l10.83,6.42-10.27-.56-.56-5.86M64.96,38.37l1.1,11.49,20.14,1.1-21.24-12.59h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M64,94.86l-26.6-16.65v-28.98l26.6-16.1,26.6,16.1v28.98l-26.6,16.65ZM39.4,77.1l24.6,15.4,24.6-15.4v-26.74l-24.6-14.88-24.6,14.88v26.74Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-plate-2), var(--sk-plate-2)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup.popup-p1[data-roll-id*='_D20_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpolygon fill='black' points='48.84 76.93 43.59 76.93 63.05 89.62 48.84 76.93 48.84 76.93'/%3E %3Cpath fill='black' d='M43.37,67.85l1.51,4.18h-1.51s0-4.18,0-4.18M41.38,56.41v17.62s6.35,0,6.35,0l-6.35-17.62h0Z'/%3E %3Cpath fill='black' d='M57.15,54.75l-7.16,12.12-4.53-11.61,11.69-.5M60.75,52.59l-18.17.78,7.05,18.04,11.12-18.83h0Z'/%3E %3Cpath fill='black' d='M60.66,42.18l-.55,5.78-9.74.55,10.29-6.34M63.04,38.37l-20.46,12.59,19.36-1.1,1.1-11.49h0Z'/%3E %3Cpolygon fill='black' points='79.16 76.93 64.95 89.62 84.41 76.93 79.16 76.93 79.16 76.93'/%3E %3Cpath fill='black' d='M70.45,78.82l-6.45,6.1-6.45-6.1h12.9M75.48,76.82h-22.95l11.48,10.85,11.48-10.85h0Z'/%3E %3Cpath fill='black' d='M84.62,67.85v4.18s-1.51,0-1.51,0l1.51-4.18M86.62,56.41l-6.35,17.62h6.35s0-17.62,0-17.62h0Z'/%3E %3Cpath fill='black' d='M64,56.14l9.12,15.57h-18.24l9.11-15.57M63.99,52.18l-12.6,21.53h25.21l-12.61-21.53h0Z'/%3E %3Cpath fill='black' d='M70.85,54.75l11.69.5-4.53,11.61-7.16-12.12M67.25,52.59l11.12,18.83,7.05-18.04-18.17-.78h0Z'/%3E %3Cpath fill='black' d='M67.33,42.09l10.83,6.42-10.27-.56-.56-5.86M64.96,38.37l1.1,11.49,20.14,1.1-21.24-12.59h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M64,94.86l-26.6-16.65v-28.98l26.6-16.1,26.6,16.1v28.98l-26.6,16.65ZM39.4,77.1l24.6,15.4,24.6-15.4v-26.74l-24.6-14.88-24.6,14.88v26.74Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-azure), var(--sk-azure)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup.popup-p2[data-roll-id*='_D20_'] .popup-big-val:not(.popup-die-preview) { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 68 68'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Cg%3E %3Cpolygon fill='black' points='48.84 76.93 43.59 76.93 63.05 89.62 48.84 76.93 48.84 76.93'/%3E %3Cpath fill='black' d='M43.37,67.85l1.51,4.18h-1.51s0-4.18,0-4.18M41.38,56.41v17.62s6.35,0,6.35,0l-6.35-17.62h0Z'/%3E %3Cpath fill='black' d='M57.15,54.75l-7.16,12.12-4.53-11.61,11.69-.5M60.75,52.59l-18.17.78,7.05,18.04,11.12-18.83h0Z'/%3E %3Cpath fill='black' d='M60.66,42.18l-.55,5.78-9.74.55,10.29-6.34M63.04,38.37l-20.46,12.59,19.36-1.1,1.1-11.49h0Z'/%3E %3Cpolygon fill='black' points='79.16 76.93 64.95 89.62 84.41 76.93 79.16 76.93 79.16 76.93'/%3E %3Cpath fill='black' d='M70.45,78.82l-6.45,6.1-6.45-6.1h12.9M75.48,76.82h-22.95l11.48,10.85,11.48-10.85h0Z'/%3E %3Cpath fill='black' d='M84.62,67.85v4.18s-1.51,0-1.51,0l1.51-4.18M86.62,56.41l-6.35,17.62h6.35s0-17.62,0-17.62h0Z'/%3E %3Cpath fill='black' d='M64,56.14l9.12,15.57h-18.24l9.11-15.57M63.99,52.18l-12.6,21.53h25.21l-12.61-21.53h0Z'/%3E %3Cpath fill='black' d='M70.85,54.75l11.69.5-4.53,11.61-7.16-12.12M67.25,52.59l11.12,18.83,7.05-18.04-18.17-.78h0Z'/%3E %3Cpath fill='black' d='M67.33,42.09l10.83,6.42-10.27-.56-.56-5.86M64.96,38.37l1.1,11.49,20.14,1.1-21.24-12.59h0Z'/%3E %3C/g%3E %3Cg opacity='0.12' fill='black'%3E %3Cpath fill='black' d='M64,94.86l-26.6-16.65v-28.98l26.6-16.1,26.6,16.1v28.98l-26.6,16.65ZM39.4,77.1l24.6,15.4,24.6-15.4v-26.74l-24.6-14.88-24.6,14.88v26.74Z'/%3E %3C/g%3E%3C/g%3E%3C/svg%3E") center / auto 150% no-repeat, linear-gradient(var(--sk-violet), var(--sk-violet)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup .popup-big-val:not(.popup-die-preview) { }
/* phones: the reserve's group tabs stay visible while a roll is open */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body).phone-match-active:is([data-phone-phase='DEPLOY_READY'],[data-phone-phase='DEPLOY_CONFIRM']) :is(#phone-reserve-markers-p1, #phone-reserve-markers-p2) { visibility: visible !important; }

/* --- more cut corners: rails, log, sidebars, codex cards, mode tiles --- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar) { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#rb-sidebar) { clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.codex-card-box, .codex-special-card, .codex-core-box, .tut-rule-card, .csb-card, .codex-banner-card) { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) .btn.btn-ghost { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }

/* --- music is retired (js/arena-skin.js): its buttons go too ------------ */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-music-toggle, #in-game-music-toggle, #codex-music-toggle, .music-toggle-btn) { display: none !important; }

/* --- codex buttons -------------------------------------------------------- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .arena-codex-lobby {
  display: inline-flex !important; align-items: center; gap: 8px; margin-left: 10px;
  border: 0 !important; border-bottom: 1px solid rgb(var(--sk-fg) / .3) !important; background: transparent !important;
  color: var(--sk-bone) !important; font-size: 10px !important; letter-spacing: .22em !important; padding: 6px 2px !important; height: auto !important; clip-path: none !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .arena-codex-lobby:hover { color: var(--sk-signal-text) !important; border-bottom-color: var(--sk-signal) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .arena-codex-btn { display: inline-grid; place-items: center; color: var(--sk-bone); }
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) .arena-codex-btn .phone-navigation-control-label { display: none; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #core-modal :is(.core-prompt-badge, .core-prompt-text) { color: var(--sk-gold) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .cb-battle-die-pill { position: relative; z-index: 3; }

/* =====================================================================
   v6: one card design in every state, reserves meet the cards square,
   a framed and roomier roll prompt, crisp light theme.
   ===================================================================== */

/* --- light theme: clear paper and dark ink, no grey-on-grey ------------ */
html[data-theme='light'] {
  --sk-ink: #d3d9df; --sk-plate: #eceff2; --sk-plate-2: #f6f7f9; --sk-plate-3: #e0e5ea;
  --sk-bone: #0d151e; --sk-muted: #2f3d4a; --sk-faint: #4f5d6a;
  --sk-fg: 13 21 30;
  --sk-line: rgb(13 21 30 / .2); --sk-line-2: rgb(13 21 30 / .38);
  --sk-hex: #e9edf1;
  --sk-scrim: rgba(196, 205, 213, .7);
  --sk-signal: #b6e01c; --sk-signal-ink: #0b1000; --sk-signal-text: #355000;
  --sk-gold: #b47f12; --sk-gold-text: #5e3f00;
  --sk-azure: #0b5fae; --sk-violet: #a8166a;
  --sk-glass: rgb(238 241 244 / .86); --sk-glass-2: rgb(246 247 249 / .9);
  --sk-frame: #94a0ad;
  --sk-glow: .3;
}
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #topographic-bg-container { filter: saturate(.55) brightness(.9) contrast(.92) !important; opacity: .55 !important; }

/* --- player cards: identical in both states; the turn is the frame ----- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player.hud-player:is(.hp1, .hp2) { background: none !important; border: 0 !important; box-shadow: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp1 { --hp-c: var(--sk-azure); --hp-rgb: var(--sk-azure-rgb); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp2 { --hp-c: var(--sk-violet); --hp-rgb: var(--sk-violet-rgb); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player { --hp-line: var(--sk-frame); --hp-wash: 0; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active { --hp-line: var(--hp-c); --hp-wash: .2; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player.hp1::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player.hp1.active::before {
  background: linear-gradient(var(--hp-c), var(--hp-c)) left top / 4px 100% no-repeat,
    linear-gradient(var(--hp-line), var(--hp-line)) left var(--sk-cutL) top 0 / calc(100% - var(--sk-cutL)) 1px no-repeat,
    linear-gradient(var(--hp-line), var(--hp-line)) left 0 bottom 0 / 100% 1px no-repeat,
    linear-gradient(var(--hp-line), var(--hp-line)) left 0 top var(--sk-cutL) / 1px calc(100% - var(--sk-cutL)) no-repeat,
    linear-gradient(var(--hp-line), var(--hp-line)) right 0 top 0 / 1px 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - .9px), var(--hp-line) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) left top / var(--sk-cutL) var(--sk-cutL) no-repeat,
    linear-gradient(90deg, rgb(var(--hp-rgb) / var(--hp-wash)), transparent 70%),
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player.hp2::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player.hp2.active::before {
  background: linear-gradient(var(--hp-c), var(--hp-c)) right top / 4px 100% no-repeat,
    linear-gradient(var(--hp-line), var(--hp-line)) left 0 top 0 / calc(100% - var(--sk-cutL)) 1px no-repeat,
    linear-gradient(var(--hp-line), var(--hp-line)) left 0 bottom 0 / 100% 1px no-repeat,
    linear-gradient(var(--hp-line), var(--hp-line)) left 0 top 0 / 1px 100% no-repeat,
    linear-gradient(var(--hp-line), var(--hp-line)) right 0 top var(--sk-cutL) / 1px calc(100% - var(--sk-cutL)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - .9px), var(--hp-line) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) right top / var(--sk-cutL) var(--sk-cutL) no-repeat,
    linear-gradient(270deg, rgb(var(--hp-rgb) / var(--hp-wash)), transparent 70%),
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player:is(.hp1, .hp2) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; filter: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player.active:is(.hp1, .hp2) { box-shadow: 0 0 26px rgb(var(--hp-rgb) / calc(var(--sk-glow) * .7)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper :is(.bar-left, .bar-right):has(.hud-player.active) { filter: none !important; }
/* same type and tokens whoever's turn it is */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player :is(.hp-name, .hp-name-col, .hp-name-col *) { color: var(--sk-bone) !important; -webkit-text-fill-color: var(--sk-bone) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player .player-identity-label { color: var(--sk-muted) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player .hp-pips .pip:not(.filled) { background: rgb(var(--sk-fg) / .22) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player .hp-pips .pip.filled { background: var(--sk-gold) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player.active.hp1 .plaque-mascot { filter: drop-shadow(0 0 14px rgb(var(--sk-azure-rgb) / .6)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player.active.hp2 .plaque-mascot { filter: drop-shadow(0 0 14px rgb(var(--sk-violet-rgb) / .6)) !important; }

/* --- reserves: square on top where they meet the cards, cut only on the
   outer bottom corner ---------------------------------------------------- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1 { --st-rgb: var(--sk-azure-rgb); --st-c: var(--sk-azure); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2 { --st-rgb: var(--sk-violet-rgb); --st-c: var(--sk-violet); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash { --st-line: rgb(var(--st-rgb) / .4); --st-top: transparent; --st-wash: 0; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-active { --st-line: rgb(var(--st-rgb) / .9); --st-top: var(--st-c); --st-wash: .16; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.side-stash.stash-p1::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.side-stash.stash-p1.stash-active::before {
  background: linear-gradient(var(--st-top), var(--st-top)) left top / 100% 3px no-repeat,
    linear-gradient(var(--st-line), var(--st-line)) left 0 top 0 / 100% 1px no-repeat,
    linear-gradient(var(--st-line), var(--st-line)) left var(--sk-cutL) bottom 0 / calc(100% - var(--sk-cutL)) 1px no-repeat,
    linear-gradient(var(--st-line), var(--st-line)) left 0 top 0 / 1px calc(100% - var(--sk-cutL)) no-repeat,
    linear-gradient(var(--st-line), var(--st-line)) right 0 top 0 / 1px 100% no-repeat,
    linear-gradient(to top right, transparent calc(50% - .9px), var(--st-line) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) left bottom / var(--sk-cutL) var(--sk-cutL) no-repeat,
    linear-gradient(rgb(var(--st-rgb) / var(--st-wash)), transparent 150px) top / 100% 150px no-repeat,
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--sk-cutL) 100%, 0 calc(100% - var(--sk-cutL))) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.side-stash.stash-p2::before,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.side-stash.stash-p2.stash-active::before {
  background: linear-gradient(var(--st-top), var(--st-top)) left top / 100% 3px no-repeat,
    linear-gradient(var(--st-line), var(--st-line)) left 0 top 0 / 100% 1px no-repeat,
    linear-gradient(var(--st-line), var(--st-line)) left 0 bottom 0 / calc(100% - var(--sk-cutL)) 1px no-repeat,
    linear-gradient(var(--st-line), var(--st-line)) left 0 top 0 / 1px 100% no-repeat,
    linear-gradient(var(--st-line), var(--st-line)) right 0 top 0 / 1px calc(100% - var(--sk-cutL)) no-repeat,
    linear-gradient(to top left, transparent calc(50% - .9px), var(--st-line) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) right bottom / var(--sk-cutL) var(--sk-cutL) no-repeat,
    linear-gradient(rgb(var(--st-rgb) / var(--st-wash)), transparent 150px) top / 100% 150px no-repeat,
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--sk-cutL)), calc(100% - var(--sk-cutL)) 100%, 0 100%) !important;
}

/* --- reserve tiles: the pending value badge is gone (the prompt shows it) */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .chip-pending-val { display: none !important; }

/* --- action band: the selected action brightens on hover --------------- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bar-center .act-btn.act-active:hover:not(:disabled) {
  background: color-mix(in srgb, var(--sk-signal) 78%, #fff) !important; color: var(--sk-signal-ink) !important;
  box-shadow: 0 0 26px rgb(212 255 42 / calc(var(--sk-glow) + .2)) !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bar-center .act-btn:not(.act-active):hover:not(:disabled) { background: rgb(var(--sk-turn-rgb) / .2) !important; color: var(--sk-bone) !important; }

/* --- roll prompt: frame on a back layer (nothing inside is clipped), taller,
   with the die at a size it deserves ---------------------------------------- */
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup:not(.popup-observer) { --prompt-width: 244px; --prompt-height: 286px; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.row-popup {
  clip-path: none !important; background: none !important; border: 0 !important; isolation: isolate;
  --rp-line: rgb(var(--sk-fg) / .3);
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.popup-p1 { --rp-line: rgb(var(--sk-azure-rgb) / .75); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.popup-p2 { --rp-line: rgb(var(--sk-violet-rgb) / .75); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.row-popup::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important; z-index: -1 !important; pointer-events: none;
  -webkit-backdrop-filter: var(--sk-blur); backdrop-filter: var(--sk-blur);
  background: linear-gradient(var(--rp-line), var(--rp-line)) left 0 top 0 / calc(100% - 14px) 1px no-repeat,
    linear-gradient(var(--rp-line), var(--rp-line)) left 14px bottom 0 / calc(100% - 14px) 1px no-repeat,
    linear-gradient(var(--rp-line), var(--rp-line)) left 0 top 0 / 1px calc(100% - 14px) no-repeat,
    linear-gradient(var(--rp-line), var(--rp-line)) right 0 top 14px / 1px calc(100% - 14px) no-repeat,
    linear-gradient(to top right, transparent calc(50% - .9px), var(--rp-line) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) right top / 14px 14px no-repeat,
    linear-gradient(to top right, transparent calc(50% - .9px), var(--rp-line) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) left bottom / 14px 14px no-repeat,
    linear-gradient(var(--sk-glass-2), var(--sk-glass-2)) !important;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)) !important;
  border: 0 !important; box-shadow: none !important; width: auto !important; height: auto !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.row-popup::after { display: none !important; }
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup { padding: 12px !important; grid-template-rows: 16px minmax(0, 1fr) 30px 42px !important; gap: 8px !important; }
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup .popup-big-val { font-size: 72px !important; }
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup .popup-die-preview svg { width: 104px !important; height: 104px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup .popup-die-preview svg :is(path, polygon) { fill: #0b0c10 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup .popup-actions .btn { clip-path: none !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup .popup-actions .btn.btn-primary { clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%, 0 calc(100% - 9px)) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup .popup-actions .btn.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--sk-signal) 78%, #fff) !important; }
/* the number reads white on the deeper light-theme faction colours */
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup:is(.popup-p1, .popup-p2) .popup-big-val :is(*, *::before, *::after),
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup:is(.popup-p1, .popup-p2) .popup-big-val { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup:is(.popup-p1, .popup-p2) .popup-die-preview svg :is(path, polygon) { fill: #fff !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) { --sk-azure-rgb: 11 95 174; --sk-violet-rgb: 168 22 106; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) { --sk-turn-rgb: 11 95 174; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body):has(#hud-p2.active), html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body):has(#action-bar.ab-p2) { --sk-turn-rgb: 168 22 106; }

/* --- v6 audit fixes: contrast ------------------------------------------- */
/* every primary button: dark text on the lime, in any container */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .btn.btn-primary:not(:disabled):not(.btn-ghost),
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .btn.btn-primary:not(:disabled):not(.btn-ghost) * { color: var(--sk-signal-ink) !important; -webkit-text-fill-color: var(--sk-signal-ink) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .act-btn.act-active :is(.act-text, .act-icon, *) { color: var(--sk-signal-ink) !important; }
/* light theme: white text on the deeper faction fills */
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-screen .lobby-faction-card, #match-intro-modal) :is(.ro-num, .ai-faction-name),
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .cb-role-badge { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card .ai-role-tag:not(.lobby-role-spacer) { background: var(--sk-bone) !important; color: var(--sk-plate-2) !important; }
/* light theme: battle dice captions use dark faction ink over the light ceramic well */
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p1-widget .bg3-prompt-badge, html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p1-widget .bg3-prompt-badge * { color: #0b5fae !important; -webkit-text-fill-color: #0b5fae !important; border-color: rgb(11 95 174 / .55) !important; background: transparent !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p2-widget .bg3-prompt-badge, html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p2-widget .bg3-prompt-badge * { color: #a8166a !important; -webkit-text-fill-color: #a8166a !important; border-color: rgb(168 22 106 / .55) !important; background: transparent !important; }
/* light theme: codex accent titles dark enough to read on paper */
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .title-purple { color: #6a2bc2 !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .title-cyan { color: #00627a !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .title-green { color: #006b38 !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .title-gold { color: var(--sk-gold-text) !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .title-pink { color: #8f1556 !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #core-modal :is(.core-sys-label, .core-hud-divider) { color: var(--sk-gold-text) !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.codex-core-box, .codex-board-legend, .codex-card-box) span[style*='color'] { color: var(--sk-gold-text) !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-speed-arrows :is(*, .site-symbol-text) { color: var(--sk-muted) !important; }

/* --- v6 audit fixes: nothing that sticks out of a box gets clipped ------- */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell,
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.codex-card-box, .codex-special-card, .codex-core-box, .tut-rule-card, .csb-card, .codex-banner-card) { clip-path: none !important; }

/* --- phone roll prompt: squarish fixed size, no shrink across states */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body).phone-match-active #game-screen > .row-popup:not(.popup-observer) {
  --prompt-height: 184px; padding: 10px !important; gap: 8px !important;
  grid-template-columns: minmax(0, 1fr) auto !important; grid-template-rows: 14px minmax(0, 1fr) 40px !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body).phone-match-active #game-screen > .row-popup:not(.popup-observer) .row-popup-lbl {
  position: static !important; grid-area: 1 / 1 !important; inset: auto !important; align-self: center; text-align: left !important;
  font-size: 9px !important; line-height: 12px !important; letter-spacing: .18em !important; max-width: none !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body).phone-match-active #game-screen > .row-popup:not(.popup-observer) .popup-roll-note {
  position: static !important; grid-area: 1 / 2 !important; inset: auto !important; align-self: center; display: block !important;
  font-size: 0 !important; line-height: 12px !important;
}
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body).phone-match-active #game-screen > .row-popup:not(.popup-observer) .popup-roll-note::before { content: '1 action'; font-size: 9px !important; font-family: var(--sk-body); color: var(--sk-muted); }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body).phone-match-active #game-screen > .row-popup:not(.popup-observer) .popup-big-val { grid-area: 2 / 1 / 3 / 3 !important; padding: 0 !important; font-size: 40px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body).phone-match-active #game-screen > .row-popup:not(.popup-observer) .popup-die-preview { display: flex !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body).phone-match-active #game-screen > .row-popup:not(.popup-observer) .popup-die-preview svg { width: 52px !important; height: 52px !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body).phone-match-active #game-screen > .row-popup:not(.popup-observer) .popup-actions { grid-area: 3 / 1 / 4 / 3 !important; }
/* the active action's label, in every theme */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bar-center .act-btn.act-active .act-text { color: var(--sk-signal-ink) !important; -webkit-text-fill-color: var(--sk-signal-ink) !important; opacity: 1 !important; }
/* the speed arrows carry meaning: muted, not faint */
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-speed-arrows :is(*, .site-symbol-text) { color: var(--sk-muted) !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .row-popup .row-popup-lbl { color: rgb(var(--sk-fg) / .78) !important; }
/* tall enough for the die, short enough to clear the action band from the top group */
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup:not(.popup-observer) { --prompt-height: 244px; }
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup .popup-die-preview svg { width: 84px !important; height: 84px !important; }
html:not(#sk-z):not([data-phone-device='true']) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup .popup-big-val { font-size: 64px !important; }
/* light theme: the battle-die glyphs are drawn for a dark table */
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-special-icon-box { background: radial-gradient(closest-side, #26303b, #161c23) !important; border-color: rgb(13 21 30 / .5) !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-special-icon-box .codex-special-svg { filter: none !important; opacity: 1 !important; }
html:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-dice-row > .codex-die-badge { flex: 1 1 0 !important; min-width: 0 !important; }
html[data-theme='light']:not(#sk-z) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.codex-die-svg, .codex-core-svg) { filter: brightness(0) !important; opacity: .78 !important; }
