/* =====================================================================
   sc-game.css: the Scalar Core design system applied to the game.
   Generated by gen_scgame.py. Loads after arena-skin.css; tokens come
   from assets/sc/sc-tokens.css. Visual only: no layout, rule or engine
   changes. Layout guardrails (notch / safe-area, measured rects) untouched.
   ===================================================================== */

@property --frame { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --acc { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --orn { syntax: '*'; inherits: false; }

html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) { --sc-field: #c4cac1; --sc-plate: #dde2d9; --sc-raised: #e9ede5; --sc-glass: rgb(221 226 217 / .92); background-color: var(--sc-field); }


/* ---- token bridge: the skin's tokens now read from the system --------- */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) {
  --sk-ink: var(--sc-field); --sk-plate: var(--sc-plate); --sk-plate-2: var(--sc-raised);
  --sk-plate-3: color-mix(in srgb, var(--sc-raised) 82%, var(--sc-text));
  --sk-bone: var(--sc-text); --sk-muted: var(--sc-muted); --sk-faint: color-mix(in srgb, var(--sc-muted) 70%, var(--sc-field));
  --sk-fg: var(--sc-fg-rgb); --sk-line: var(--sc-line); --sk-line-2: var(--sc-line-strong);
  --sk-signal: var(--sc-signal); --sk-signal-ink: var(--sc-signal-ink); --sk-signal-text: var(--sc-signal-text);
  --sk-azure: var(--sc-p1); --sk-violet: var(--sc-p2); --sk-azure-rgb: var(--sc-p1-rgb); --sk-violet-rgb: var(--sc-p2-rgb);
  --sc-azure: var(--sc-p1); --sc-violet: var(--sc-p2);
  --sk-gold: var(--sc-gold); --sk-gold-text: var(--sc-gold-text); --sk-red: var(--sc-hazard);
  --sk-glass: var(--sc-glass); --sk-glass-2: var(--sc-glass); --sk-scrim: var(--sc-scrim); --sk-glow: var(--sc-glow-strength);
  --sk-hex: color-mix(in srgb, var(--sc-plate) 70%, var(--sc-field));
  --sk-tech: var(--sc-font-ui); --sk-body: var(--sc-font-body);
  --sk-frame: var(--sc-line-strong); --sk-cutL: var(--sc-cut-lg);
  --sk-turn-rgb: var(--sc-p1-rgb); --sk-turn: var(--sc-p1);
  /* frame recipe defaults */
  --c: var(--sc-cut-md); --fw: 1px; --frame: var(--sc-line-strong); --fill: transparent;
  --acc: transparent; --acc-pos: left center; --acc-size: var(--sc-accent-w) 100%;
}
html:not([data-theme='light']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) { --header-bg: #161a19; --header-control: #212725; --header-line: #3d4643; --bg: #161a19; --surface: #212725; --surface-2: #2b3230; --line: #3d4643; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):has(#hud-p2.active), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):has(#action-bar.ab-p2) { --sk-turn-rgb: var(--sc-p2-rgb); --sk-turn: var(--sc-p2); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) { background-color: var(--sc-field) !important; font-variant-numeric: tabular-nums; }


/* =================================================================== BUTTONS
   One button. Cut top-right + bottom-left. Hover brightens, disabled is hatched. */

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .btn:not(.rb-help-icon):not([id^=phone-reserve-]):not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .act-btn:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .codex-tab-btn:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
  position: relative; isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .btn:not(.rb-help-icon):not([id^=phone-reserve-]):not(#sc-f1):not(#sc-f2):not(#sc-f3)::before,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .act-btn:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .codex-tab-btn:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reference-toggle:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-rule-close:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reference-toggle:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-rule-close:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .btn:not(.rb-help-icon):not([id^=phone-reserve-])::after { display: none !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn) {
  font-family: var(--sc-font-ui) !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: var(--sc-tr-caps) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .phone-reference-toggle, .phone-rule-close) {
  --c: var(--sc-cut-md); --frame: var(--sc-line-strong); --fill: var(--sc-plate);
  color: var(--sc-text) !important; -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important; box-shadow: none !important;
  transition: color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn) * { color: inherit !important; -webkit-text-fill-color: currentColor !important; text-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .phone-reference-toggle):is(:hover, :focus-visible):not(:disabled, [aria-disabled='true']) { --frame: rgb(var(--sc-fg-rgb) / .62); --fill: var(--sc-raised); }
/* primary: the signal. Your next action. */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn.btn-primary, .act-btn.act-active, .codex-tab-btn.active, #btn-combat-done, #evade-decision-container #btn-evade-yes) {
  --fill: var(--sc-signal); --frame: var(--sc-signal); color: var(--sc-signal-ink) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn.btn-primary, .act-btn.act-active, .codex-tab-btn.active, #btn-combat-done, #evade-decision-container #btn-evade-yes) { --frame: rgb(var(--sc-fg-rgb) / .45); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn.btn-primary, .act-btn.act-active, .codex-tab-btn.active, #btn-combat-done, #btn-evade-yes):is(:hover, :focus-visible):not(:disabled) {
  --fill: color-mix(in srgb, var(--sc-signal) 74%, #fff); --frame: color-mix(in srgb, var(--sc-signal) 74%, #fff);
  filter: drop-shadow(0 0 12px rgb(var(--sc-signal-rgb) / calc(var(--sc-glow-strength) * .9))) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn.btn-primary, .act-btn.act-active, .codex-tab-btn.active, #btn-combat-done, #btn-evade-yes):is(:hover, :focus-visible):not(:disabled) { --frame: rgb(var(--sc-fg-rgb) / .55); filter: drop-shadow(0 3px 6px rgb(var(--sc-fg-rgb) / .22)) !important; }
/* ghost-styled site buttons in the lobby (Tactical tutorial, Rules codex) are secondary buttons */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen :is(#btn-start-tutorial, #arena-codex-lobby) { --fill: var(--sc-plate); }
/* danger: leave / exit */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#btn-go-exit, #gcm-btn-confirm, .btn.btn-danger) { --frame: rgb(var(--sc-hazard-rgb) / .7); --fill: var(--sc-plate); color: var(--sc-hazard) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#btn-go-exit, #gcm-btn-confirm, .btn.btn-danger):is(:hover, :focus-visible):not(:disabled) { --fill: var(--sc-hazard); --frame: var(--sc-hazard); color: #fff !important; }
/* focus: 2px frame that follows the cut */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .audio-toggle-btn, .btn-exit-round, .site-header .theme-toggle, .site-header .menu-toggle):focus-visible { outline: none !important; box-shadow: none !important; --fw: 2px; --frame: var(--sc-signal); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .audio-toggle-btn, .btn-exit-round):focus-visible { --frame: var(--sc-text); }
/* disabled: flat and dimmed, full shape, never transparent */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn):is(:disabled, [aria-disabled='true'], .disabled):not(#sc-d1):not(#sc-d2) {
  opacity: 1 !important; filter: none !important; cursor: not-allowed !important;
  color: var(--sc-muted) !important; -webkit-text-fill-color: var(--sc-muted) !important; --frame: var(--sc-line);
  --fill: var(--sc-plate);
}
/* pressed: a touch darker, never moves */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn):active:not(:disabled) { filter: brightness(.9) !important; }

/* sizes: one height per role, no inline paddings fighting the system */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-])) { min-height: var(--sc-h-md); padding-inline: var(--sc-s-4) !important; font-size: var(--sc-fs-2) !important; line-height: 1 !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen :is(#btn-start-tutorial, #arena-codex-lobby) { min-height: var(--sc-h-sm); padding-inline: var(--sc-s-3) !important; font-size: var(--sc-fs-1) !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bar-center .act-btn { font-size: var(--sc-fs-2) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .codex-tab-btn { min-height: var(--sc-h-sm); padding-inline: var(--sc-s-3) !important; font-size: var(--sc-fs-1) !important; }


/* ============================================================== ICON BUTTONS
   Codex, sound, exit, close and theme: one square, set in from the frame. */

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .audio-toggle-btn:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .btn-exit-round:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .site-header .theme-toggle:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .site-header .menu-toggle:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .audio-toggle-btn:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .btn-exit-round:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .site-header .theme-toggle:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .site-header .menu-toggle:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.audio-toggle-btn, .btn-exit-round, .site-header .theme-toggle, .site-header .menu-toggle) {
  --c: var(--sc-cut-sm); --frame: var(--sc-line-strong); --fill: var(--sc-plate);
  padding: 0 !important; place-items: center !important; flex: none !important;
  color: var(--sc-text) !important; box-shadow: none !important; font-size: 0 !important; line-height: 0 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.audio-toggle-btn, .btn-exit-round) { width: 36px !important; height: 36px !important; min-width: 0 !important; min-height: 0 !important; display: inline-grid !important; position: relative; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.audio-toggle-btn, .btn-exit-round)[hidden] { display: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.audio-toggle-btn, .btn-exit-round, .site-header .theme-toggle, .site-header .menu-toggle):is(:hover, :focus-visible) { --frame: rgb(var(--sc-fg-rgb) / .62); --fill: var(--sc-raised); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.audio-toggle-btn, .btn-exit-round) svg { width: 20px !important; height: 20px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.5 !important; stroke-linecap: square !important; stroke-linejoin: miter !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.audio-toggle-btn, .btn-exit-round) svg :is(path, polygon, line, circle) { fill: none; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.audio-toggle-btn, .btn-exit-round) .phone-navigation-control-label { font-size: var(--sc-fs-1) !important; line-height: 1 !important; }
/* keep them inside the frame: a little inset from the overlay frame's edge */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .game-header-controls, html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .header-controls #game-site-audio { gap: var(--sc-s-2) !important; }
/* music is retired: its buttons never show */
html:not(#sk-z):not(#sc-1) 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; }
/* the nav steps left so the three square icons never touch "Play online" */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-site-audio { display: inline-flex !important; gap: 3px !important; align-items: center !important; margin-right: 0 !important; right: 45px !important; }
@media (hover: hover) and (pointer: fine) and (min-width: 1201px) {
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-site-audio :is(.audio-toggle-btn, .btn-exit-round) { width: 24px !important; height: 24px !important; --c: 5px; }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-site-audio :is(.audio-toggle-btn, .btn-exit-round) svg { width: 16px !important; height: 16px !important; }
}


/* ==================================================================== PANELS
   Cards, logs, modals, tooltips: the same closed frame, one size up. */

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp1:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp1:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left top / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 var(--c), var(--c) 0, 100% 0, 100% 100%, 0 100%) !important;
  transition: none !important;
}

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp2:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp2:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important;
  transition: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player { --c: var(--sc-cut-lg); --fill: var(--sc-glass); --frame: var(--sc-line-strong); --acc-w: 4px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp1 { --acc: var(--sc-p1); --acc-pos: left center; --acc-size: 4px 100%; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp2 { --acc: var(--sc-p2); --acc-pos: right center; --acc-size: 4px 100%; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp1.active { --frame: var(--sc-p1); --fill: linear-gradient(90deg, rgb(var(--sc-p1-rgb) / .16), transparent 70%), var(--sc-glass); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp2.active { --frame: var(--sc-p2); --fill: linear-gradient(270deg, rgb(var(--sc-p2-rgb) / .16), transparent 70%), var(--sc-glass); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp1.active { filter: drop-shadow(0 0 14px rgb(var(--sc-p1-rgb) / calc(var(--sc-glow-strength) * .6))) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hp2.active { filter: drop-shadow(0 0 14px rgb(var(--sc-p2-rgb) / calc(var(--sc-glow-strength) * .6))) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.active { filter: drop-shadow(0 3px 8px rgb(var(--sc-fg-rgb) / .2)) !important; }
/* nothing behind the cards may paint a rectangle into the cut */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #action-bar-wrapper :is(.bar-left, .bar-right) { background: none !important; box-shadow: none !important; border: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player > :is(.hp-bg, .hp-glow, .hp-frame) { display: none !important; }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top left, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%) !important;
  transition: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash { --c: var(--sc-cut-lg); --fill: var(--sc-glass); --acc-pos: center bottom; --acc-size: 100% var(--sc-accent-w); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1 { --frame: rgb(var(--sc-p1-rgb) / .4); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2 { --frame: rgb(var(--sc-p2-rgb) / .4); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1.stash-active { --frame: rgb(var(--sc-p1-rgb) / .9); --acc: var(--sc-p1); --fill: linear-gradient(to top, rgb(var(--sc-p1-rgb) / .14), transparent 160px), var(--sc-glass); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2.stash-active { --frame: rgb(var(--sc-p2-rgb) / .9); --acc: var(--sc-p2); --fill: linear-gradient(to top, rgb(var(--sc-p2-rgb) / .14), transparent 160px), var(--sc-glass); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-active { box-shadow: none !important; filter: drop-shadow(0 0 16px rgb(var(--sk-turn-rgb) / calc(var(--sc-glow-strength) * .45))) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-active { filter: drop-shadow(0 3px 8px rgb(var(--sc-fg-rgb) / .16)) !important; }
/* group headers: the short rule sits under the label on both sides (mirrored), never under the speed arrows */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash .sg-head { background: none !important; border-bottom: 1px solid var(--sc-line) !important; position: relative; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash .sg-head .sg-title { position: relative; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash .sg-head .sg-title::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: rgb(var(--sc-fg-rgb) / .55); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash .sg-head .sg-title::after { bottom: calc(-1 * (var(--sg-gap, 6px))); }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip { --c: var(--sc-cut-sm); --frame: rgb(var(--sc-fg-rgb) / .22); --fill: var(--sc-raised); box-shadow: none !important; outline: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-p1 .die-chip { --acc: var(--sc-p1); --acc-pos: center bottom; --acc-size: 100% 2px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-p2 .die-chip { --acc: var(--sc-p2); --acc-pos: center bottom; --acc-size: 100% 2px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-active .die-chip:not(.deployed):not(.destroyed):hover { --frame: rgb(var(--sk-turn-rgb) / .85); --fill: color-mix(in srgb, var(--sc-raised) 84%, rgb(var(--sk-turn-rgb))); box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip:is(.selected, .pending, .chip-pending) { --fw: 2px; --frame: var(--sc-signal); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip:is(.selected, .pending, .chip-pending) { --frame: var(--sc-text); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-p1 .die-chip.deployed { --acc: transparent; --frame: rgb(var(--sc-p1-rgb) / .5); --fill: rgb(var(--sc-p1-rgb) / .07); border-style: solid !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-p2 .die-chip.deployed { --acc: transparent; --frame: rgb(var(--sc-p2-rgb) / .5); --fill: rgb(var(--sc-p2-rgb) / .07); border-style: solid !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip.destroyed { --acc: transparent; --frame: var(--sc-line); --fill: repeating-linear-gradient(135deg, rgb(var(--sc-fg-rgb) / .08) 0 1px, transparent 1px 6px), var(--sc-plate); }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #log-panel:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #log-panel:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important;
  transition: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #log-panel { --c: var(--sc-cut-lg); --fill: var(--sc-glass); --frame: var(--sc-line-strong); box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #log-panel::after { display: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #log-panel::before { -webkit-backdrop-filter: var(--sc-blur) !important; backdrop-filter: var(--sc-blur) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #log-panel :is(*, *::before, *::after) { border-radius: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #log-panel :is(.log-entry, .log-item, li, .log-line) { font-family: var(--sc-font-body) !important; font-size: var(--sc-fs-2) !important; line-height: 1.4 !important; color: var(--sc-text) !important; background: none !important; box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #log-panel :is(.log-header, .log-title, .log-toggle) { font-family: var(--sc-font-ui) !important; font-size: var(--sc-fs-1) !important; letter-spacing: var(--sc-tr-caps) !important; text-transform: uppercase !important; color: var(--sc-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #log-panel .log-toggle-btn { border-radius: 0 !important; }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .modal-card:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .confirm-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .modal-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::after,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .confirm-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::after {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .tut-modal-card:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .tut-intro-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
  position: relative; isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .tut-modal-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::after,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .tut-intro-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::after {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .tut-rule-card:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .csb-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
  position: relative; isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .tut-rule-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .csb-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #interactive-core-d4:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #interactive-core-d4:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.modal .modal-card, .confirm-card, .tut-modal-card, .tut-intro-card) { --c: var(--sc-cut-lg); --fill: var(--sc-glass); --frame: var(--sc-line-strong); box-shadow: none !important; filter: drop-shadow(var(--sc-shadow-md)) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.modal .modal-card, .confirm-card, .tut-modal-card, .tut-intro-card)::after { -webkit-backdrop-filter: var(--sc-blur) !important; backdrop-filter: var(--sc-blur) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .modal-card::before, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .confirm-card::before { display: none !important; }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .sc-tip-float:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .sc-tip-float:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#core-tooltip, .sc-tip-float) {
  --c: var(--sc-cut-md); --fill: var(--sc-glass); --frame: var(--sc-line-strong);
  box-shadow: none !important; filter: drop-shadow(var(--sc-shadow-md)) !important;
  padding: var(--sc-s-2) var(--sc-s-3) !important; max-width: 260px !important;
  font-family: var(--sc-font-body) !important; font-size: var(--sc-fs-2) !important; line-height: 1.4 !important; color: var(--sc-text) !important; text-transform: none !important; letter-spacing: 0 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#core-tooltip, .sc-tip-float)::before { -webkit-backdrop-filter: var(--sc-blur) !important; backdrop-filter: var(--sc-blur) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip {
  --acc: var(--sc-gold); z-index: 100500 !important;
  position: fixed !important; transform: none !important; margin: 0 !important;
  width: min(390px, calc(100vw - 32px)) !important; max-width: 390px !important;
  text-align: left !important; pointer-events: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .sc-tip-float { position: fixed !important; z-index: 100500 !important; pointer-events: none; opacity: 0; transition: opacity var(--sc-t-fast) var(--sc-ease-out); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .sc-tip-float.is-on { opacity: 1; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip .tt-title { font-family: var(--sc-font-ui) !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: var(--sc-tr-caps) !important; text-transform: uppercase !important; color: var(--sc-gold-text) !important; text-shadow: none !important; margin-bottom: 4px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip :is(.tt-desc, .tt-body, p, div:not(.tt-title)) { font-family: var(--sc-font-body) !important; font-size: var(--sc-fs-2) !important; color: var(--sc-text) !important; text-transform: none !important; letter-spacing: 0 !important; text-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip .tt-core-modes {
  display: grid !important; grid-template-columns: 1fr !important; gap: 6px !important;
  margin-top: 8px !important; padding-top: 8px !important;
  border-top: 1px solid rgb(var(--sc-fg-rgb) / .14) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip .tt-core-mode {
  display: grid !important; grid-template-columns: 22px minmax(0, 1fr) !important; align-items: start !important; gap: 8px !important;
  padding: 5px 8px !important; border-left: 2px solid rgb(var(--sc-fg-rgb) / .2) !important;
  background: rgb(var(--sc-fg-rgb) / .04) !important; opacity: 0.8;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip .tt-core-mode.is-active {
  border-left-color: var(--sc-gold) !important; background: rgb(var(--sc-gold-rgb) / .14) !important; opacity: 1;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip .tt-mode-icon {
  width: 22px !important; height: 22px !important; display: flex !important; align-items: center !important; justify-content: center !important;
  color: var(--sc-muted) !important; flex: none !important; margin-top: 1px !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip .tt-core-mode.is-active .tt-mode-icon {
  color: var(--sc-gold-text) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip .tt-mode-icon svg {
  width: 18px !important; height: 18px !important; max-width: 18px !important; max-height: 18px !important;
  display: block !important; fill: currentColor !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip .tt-mode-copy {
  display: flex !important; flex-direction: column !important; gap: 2px !important; min-width: 0 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip .tt-mode-copy strong {
  font-family: var(--sc-font-ui) !important; font-size: 11px !important; font-weight: 800 !important;
  letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--sc-text) !important; line-height: 1.2 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip .tt-core-mode.is-active .tt-mode-copy strong {
  color: var(--sc-gold-text) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip .tt-mode-copy > span {
  font-size: 11.5px !important; line-height: 1.32 !important; color: var(--sc-muted) !important;
}
/* stash speed tooltips: the tooltip atom, plain words */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-speed-arrows { border-radius: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-speed-arrows::before {
  --c: var(--sc-cut-sm);
  background: linear-gradient(var(--sc-line-strong), var(--sc-line-strong)) left 0 top 0 / calc(100% - 6px) 1px no-repeat, var(--sc-plate) !important;
  border: 1px solid var(--sc-line-strong) !important; border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)) !important;
  color: var(--sc-text) !important; font-family: var(--sc-font-body) !important; font-size: 12px !important; font-weight: 500 !important;
  letter-spacing: 0 !important; text-transform: none !important; white-space: nowrap !important; padding: 5px 9px !important; box-shadow: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-speed-arrows.speed-2::before { content: 'Moves up to 2 hexes' !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-speed-arrows.speed-1::before { content: 'Moves 1 hex' !important; }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell:not(#sc-f1):not(#sc-f2):not(#sc-f3)::after {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell { --c: var(--sc-cut-lg); --fill: var(--sc-glass); --frame: var(--sc-line-strong); box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell.p1-frame { --frame: rgb(var(--sc-p1-rgb) / .55); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell.p2-frame { --frame: rgb(var(--sc-p2-rgb) / .55); }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget { --c: var(--sc-cut-md); --frame: var(--sc-line-strong); box-shadow: none !important;
  --fill: radial-gradient(closest-side, #1f2725, #0c0f0e); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p1-widget.bg3-battle-die-widget { --frame: rgb(var(--sc-p1-rgb) / .6); --acc: var(--sc-p1); --acc-pos: center bottom; --acc-size: 100% 2px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p2-widget.bg3-battle-die-widget { --frame: rgb(var(--sc-p2-rgb) / .6); --acc: var(--sc-p2); --acc-pos: center bottom; --acc-size: 100% 2px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget:is(:hover, :focus-visible) { --frame: var(--sc-text); outline: none !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget { --fill: radial-gradient(closest-side, #26302d, #121615); }
/* the canvas and its old well sit inside the viewport, transparent */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget :is(.bg3-die-container, .bg3-die-body) { background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-final-symbol {
  position: relative; display: grid !important; place-items: center !important;
  width: 112px !important; height: 112px !important; aspect-ratio: 1 !important;
  border-radius: 50% !important; margin: 0 auto !important;
  background: rgb(14 17 16 / .88) !important;
  box-shadow: 0 0 0 1.5px rgb(var(--sc-p1-rgb) / .72), 0 0 18px rgb(var(--sc-p1-rgb) / .35) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p2-widget .bg3-final-symbol {
  box-shadow: 0 0 0 1.5px rgb(var(--sc-p2-rgb) / .72), 0 0 18px rgb(var(--sc-p2-rgb) / .35) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-final-symbol svg {
  width: 72px !important; height: 72px !important; display: block !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-final-symbol {
  background: rgb(255 255 255 / .95) !important;
  box-shadow: 0 0 0 1.5px rgb(var(--sc-p1-rgb) / .65), 0 4px 14px rgb(13 21 30 / .2) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p2-widget .bg3-final-symbol {
  box-shadow: 0 0 0 1.5px rgb(var(--sc-p2-rgb) / .65), 0 4px 14px rgb(13 21 30 / .2) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p1-widget .bg3-final-symbol svg {
  color: #0b5fae !important; fill: #0b5fae !important; filter: none !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p2-widget .bg3-final-symbol svg {
  color: #a8166a !important; fill: #a8166a !important; filter: none !important;
}


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-prompt-badge:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
  position: relative; isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-prompt-badge:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-prompt-badge {
  --c: var(--sc-cut-sm); --fill: rgb(14 17 16 / .82); --frame: rgb(236 239 230 / .45);
  border: 0 !important; box-shadow: none !important; padding: 0 var(--sc-s-3) !important; min-height: 28px !important;
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p1-widget .bg3-prompt-badge, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p1-matrix .bg3-prompt-badge { --frame: rgb(111 176 255 / .8); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p2-widget .bg3-prompt-badge, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p2-matrix .bg3-prompt-badge { --frame: rgb(255 111 171 / .8); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-prompt-badge :is(.bg3-prompt-text, *) {
  font-family: var(--sc-font-ui) !important; font-size: var(--sc-fs-1) !important; font-weight: 700 !important;
  letter-spacing: var(--sc-tr-caps) !important; text-transform: uppercase !important; text-shadow: none !important;
  color: #ecefe6 !important; -webkit-text-fill-color: #ecefe6 !important; background: none !important; border: 0 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-prompt-badge .bg3-prompt-dot { width: 6px !important; height: 6px !important; border-radius: 0 !important; background: var(--sc-signal) !important; clip-path: none !important; box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget:hover .bg3-prompt-badge { --fill: rgb(14 17 16 / .95); --frame: #ecefe6; }
/* effect captions (+3 BOOST, EVADE…) read light on the viewport */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget :is(.bg3-effect-text, .bg3-effect-desc, .bg3-final-boost) { text-shadow: none !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget .bg3-effect-text {
  font-family: var(--sc-font-ui) !important; font-size: 16px !important; font-weight: 800 !important; letter-spacing: .04em !important; line-height: 1.25 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget .bg3-effect-desc {
  font-size: 13.5px !important; line-height: 1.35 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p1-widget :is(.bg3-effect-text, .bg3-final-boost) { color: #8cc4ff !important; -webkit-text-fill-color: #8cc4ff !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p2-widget :is(.bg3-effect-text, .bg3-final-boost) { color: #ff8fc4 !important; -webkit-text-fill-color: #ff8fc4 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget .bg3-effect-desc { color: #c9cfc6 !important; -webkit-text-fill-color: #c9cfc6 !important; font-family: var(--sc-font-body) !important; text-transform: none !important; letter-spacing: 0 !important; }
/* BATTLE DIE header tag on the combat panels: a tag, never clipped */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .cb-battle-die-pill { border-radius: 0 !important; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)) !important; }


/* ---- combat choices live in Accept's slot and fit their words ---------- */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #evade-decision-container { gap: var(--sc-s-2) !important; align-items: center !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #evade-decision-container[style*='flex'] { display: flex !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active #action-bar #evade-decision-container {
  position: absolute !important; top: calc(100% + 4px) !important; left: 50% !important; right: auto !important; bottom: auto !important;
  transform: translateX(-50%) !important; inset-block-end: auto !important; width: auto !important; flex: none !important; margin: 0 !important; z-index: 101 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active #action-bar #evade-decision-container .btn,
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active #action-bar #btn-combat-done { flex: 0 0 auto !important; width: auto !important; min-width: max-content !important; max-width: none !important; font: 700 var(--sc-fs-2)/1 var(--sc-font-ui) !important; letter-spacing: var(--sc-tr-caps) !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#btn-combat-done, #btn-evade-yes, #btn-evade-no) {
  min-height: var(--sc-h-md) !important; height: var(--sc-h-md) !important; padding: 0 var(--sc-s-4) !important;
  font-size: var(--sc-fs-2) !important; white-space: nowrap !important; min-width: max-content !important; width: auto !important;
  box-shadow: none !important; filter: drop-shadow(var(--sc-shadow-md)) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #evade-decision-container #btn-evade-no { --fill: var(--sc-plate); --frame: var(--sc-line-strong); color: var(--sc-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #evade-decision-container #btn-evade-no:is(:hover, :focus-visible) { --fill: var(--sc-raised); --frame: rgb(var(--sc-fg-rgb) / .62); }


/* ==================================================================== TAGS */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen :is(.cb-role-badge, .player-identity-label, .ai-role-tag:not(.lobby-role-spacer)) {
  border-radius: 0 !important; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)) !important;
  font-family: var(--sc-font-ui) !important; font-weight: 700 !important; letter-spacing: var(--sc-tr-caps) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-screen, #match-intro-modal) .ai-role-tag:not(.lobby-role-spacer) { border-radius: 0 !important; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)) !important; font-family: var(--sc-font-ui) !important; }


/* =================================================================== BOARD
   Deploy zones: no stripes. A plain faction tint, a stronger stroke, and a
   small edge tick toward the owner's side (a cue that doesn't rely on colour). */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-deploy-p1 { fill: rgb(var(--sc-p1-rgb) / .16) !important; stroke: rgb(var(--sc-p1-rgb) / .9) !important; stroke-width: 1.75px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-deploy-p2 { fill: rgb(var(--sc-p2-rgb) / .16) !important; stroke: rgb(var(--sc-p2-rgb) / .9) !important; stroke-width: 1.75px !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-deploy-p1 { fill: rgb(var(--sc-p1-rgb) / .14) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-deploy-p2 { fill: rgb(var(--sc-p2-rgb) / .14) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .sc-zone-tick { pointer-events: none; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .sc-zone-tick.p1 { fill: var(--sc-p1); stroke: none; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .sc-zone-tick.p2 { fill: var(--sc-p2); stroke: none; }
/* control tokens: the accent green (with an edge for contrast in light) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player .hp-pips .pip.filled { background: var(--sc-signal) !important; filter: none !important; box-shadow: none !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player .hp-pips .pip.filled { background: var(--sc-signal) !important; filter: drop-shadow(0 0 0 rgb(var(--sc-fg-rgb) / .6)) drop-shadow(0 0 .6px rgb(var(--sc-fg-rgb) / .9)) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player .hp-pips .pip:not(.filled) { background: rgb(var(--sc-fg-rgb) / .2) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#phone-hud-p1, #phone-hud-p2, .phone-token-row) :is(.pip.filled, .phone-pip.filled) { background: var(--sc-signal) !important; }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #left-sidebar:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #rb-sidebar:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #left-sidebar:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #rb-sidebar:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) { --c: var(--sc-cut-md); --fill: var(--sc-glass); --frame: var(--sc-line-strong); box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar)::after { display: none !important; }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
  position: relative; isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::after {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}

/* =================================================================== LOBBY */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card { --c: var(--sc-cut-md); --fill: var(--sc-raised); --frame: var(--sc-line-strong); box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:is(:hover, :focus-visible) { --frame: rgb(var(--sc-fg-rgb) / .62); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:is(.active, .selected) { --frame: var(--sc-signal); --acc: var(--sc-signal); --acc-pos: center top; --acc-size: 100% 3px; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:is(.active, .selected) { --frame: var(--sc-text); --acc: var(--sc-signal); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card::before { display: none !important; }
/* print labels removed */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content::before, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content::after { content: none !important; display: none !important; }
/* logo at its natural proportions: no faux bold, no squeeze */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-title { font-family: var(--sc-font-logo) !important; font-weight: 400 !important; font-synthesis: none !important; letter-spacing: .02em !important; line-height: 1.38 !important; transform: none !important; font-stretch: normal !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .preloader-title { line-height: 1.38 !important; }
/* the two dice: a slight glow on hover */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .dice-slot img { transition: filter var(--sc-t-base) var(--sc-ease-out), transform var(--sc-t-base) var(--sc-ease-out) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .dice-slot.azure-slot:hover img { filter: drop-shadow(0 0 22px rgb(var(--sc-p1-rgb) / .75)) brightness(1.08) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .dice-slot.violet-slot:hover img { filter: drop-shadow(0 0 22px rgb(var(--sc-p2-rgb) / .75)) brightness(1.08) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .dice-slot.azure-slot:hover img { filter: drop-shadow(0 6px 14px rgb(var(--sc-p1-rgb) / .45)) brightness(1.05) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .dice-slot.violet-slot:hover img { filter: drop-shadow(0 6px 14px rgb(var(--sc-p2-rgb) / .45)) brightness(1.05) !important; }
/* the setup rules strip: square */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-rules { border-radius: 0 !important; }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-bg-layer {
  --c: 22px; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  background:
    linear-gradient(var(--sc-line-strong), var(--sc-line-strong)) left 0 top 0 / calc(100% - var(--c)) 1px no-repeat,
    linear-gradient(var(--sc-line-strong), var(--sc-line-strong)) left var(--c) bottom 0 / calc(100% - var(--c)) 1px no-repeat,
    linear-gradient(var(--sc-line-strong), var(--sc-line-strong)) left 0 top 0 / 1px calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--sc-line-strong), var(--sc-line-strong)) right 0 top var(--c) / 1px calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - .9px), var(--sc-line-strong) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - .9px), var(--sc-line-strong) calc(50% - .9px) calc(50% + .9px), transparent calc(50% + .9px)) left bottom / var(--c) var(--c) no-repeat,
    var(--sc-glass) !important;
  border: 0 !important; box-shadow: none !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-bg-layer { --sc-signal-rgb: 92 122 0; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-mega-card { background: none !important; border: 0 !important; box-shadow: none !important; }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .ro-val:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal .ro-val:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .intro-ro-box .ro-val:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .ro-val:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal .ro-val:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .intro-ro-box .ro-val:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-screen, #match-intro-modal) .ro-val { --c: var(--sc-cut-md); --frame: rgb(var(--own-rgb) / .8); --acc: var(--own); --acc-pos: center bottom; --acc-size: 100% 3px;
  --fill: radial-gradient(120% 90% at 50% 100%, rgb(var(--own-rgb) / .22), transparent 70%), var(--sc-plate);
  box-shadow: none !important; text-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-screen, #match-intro-modal) .ro-val.rv-p1 { --own: var(--sc-p1); --own-rgb: var(--sc-p1-rgb); color: var(--sc-p1-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-screen, #match-intro-modal) .ro-val.rv-p2 { --own: var(--sc-p2); --own-rgb: var(--sc-p2-rgb); color: var(--sc-p2-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-screen, #match-intro-modal) .ro-val svg rect { fill: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-screen, #match-intro-modal) .ro-val svg g { opacity: .3 !important; color: currentColor !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-screen, #match-intro-modal) .ro-val .ro-num { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; font-family: var(--sc-font-display) !important; font-weight: 800 !important; text-shadow: none !important; }
/* the faction card around each tile carries no fill of its own */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-screen, #match-intro-modal) .lobby-faction-card { background: none !important; clip-path: none !important; border: 0 !important; box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-screen, #match-intro-modal) .lobby-faction-card .ai-faction-name { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; background: none !important; font-family: var(--sc-font-ui) !important; letter-spacing: var(--sc-tr-caps) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .ai-faction-dice-card.selected-human .ro-val { --fw: 2px; --frame: var(--own); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .ai-faction-dice-card:hover .ro-val { --frame: var(--own); }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal div.codex-card-box:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-special-card:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-core-box:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-board-legend:not(#sc-f1):not(#sc-f2):not(#sc-f3),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-banner-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
  position: relative; isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal div.codex-card-box:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-special-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-core-box:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-board-legend:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-banner-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}

/* =================================================================== CODEX */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal details.codex-card-box { background: var(--sc-plate) !important; border: 1px solid var(--sc-line-strong) !important; border-radius: 0 !important; clip-path: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal :is(div.codex-card-box, .codex-special-card, .codex-core-box, .codex-board-legend, .codex-banner-card) { --c: var(--sc-cut-md); --fill: var(--sc-plate); --frame: var(--sc-line-strong); box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-special-card.card-cyan { --acc: #22b8d6; } html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-special-card.card-gold { --acc: var(--sc-gold); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-special-card.card-green { --acc: var(--sc-signal); } html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-special-card.card-purple { --acc: #8b5cf6; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-special-card.card-pink { --acc: var(--sc-p2); } html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-special-card.card-red { --acc: var(--sc-hazard); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.codex-die-badge, .codex-special-icon-box, .codex-core-icon) { border-radius: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-tabs-bar { gap: var(--sc-s-2) !important; padding-bottom: var(--sc-s-2) !important; margin-bottom: var(--sc-s-3) !important; }
/* the codex fits the screen: centred, as tall as it can usefully be, tighter rhythm */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal { align-items: center !important; padding-top: 0 !important; padding-bottom: 0 !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .modal-card { height: min(780px, calc(100dvh - 32px)) !important; max-height: none !important; margin-block: auto !important; padding: var(--sc-s-4) var(--sc-s-5) var(--sc-s-4) !important; top: auto !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-header-bar { margin-bottom: var(--sc-s-2) !important; padding-bottom: var(--sc-s-2) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tab-panel > * { margin-bottom: var(--sc-s-3) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tab-panel > :last-child { margin-bottom: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tab-panel [style*='grid-template-columns'] { gap: var(--sc-s-3) !important; margin-bottom: var(--sc-s-3) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.codex-banner-card, div.codex-card-box, .codex-special-card, .codex-core-box) { padding: var(--sc-s-3) var(--sc-s-4) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-content-container { padding-bottom: 0 !important; }
@media (max-height: 780px) {
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .modal-card { padding-block: var(--sc-s-3) !important; }
  html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tab-btn { min-height: 28px !important; }
  html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tab-panel > * { margin-bottom: var(--sc-s-2) !important; }
  html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tab-panel [style*='grid-template-columns'] { gap: var(--sc-s-2) !important; margin-bottom: var(--sc-s-2) !important; }
}
/* codex tags and chips: the tag atom */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.codex-card-tag, .codex-badge-chip, .codex-badge-mini, .codex-action-tag) { border-radius: 0 !important; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)) !important; border-width: 0 !important; background: rgb(var(--sc-fg-rgb) / .1) !important; font-family: var(--sc-font-ui) !important; letter-spacing: var(--sc-tr-caps) !important; padding: 3px 8px !important; }


/* ---- contrast fixes from the audit --------------------------------------- */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-screen, #match-intro-modal) .ro-vs, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal [class*='vs'] { color: var(--sc-muted) !important; -webkit-text-fill-color: var(--sc-muted) !important; opacity: 1 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-hud-divider { color: var(--sc-muted) !important; opacity: 1 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn):is(:disabled, [aria-disabled='true'], .disabled):not(#sc-d1):not(#sc-d2),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn):is(:disabled, [aria-disabled='true'], .disabled):not(#sc-d1):not(#sc-d2) * { color: var(--sc-muted) !important; -webkit-text-fill-color: var(--sc-muted) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal #btn-go-exit.btn { --fill: var(--sc-plate); --frame: rgb(var(--sc-hazard-rgb) / .7); color: var(--sc-hazard) !important; -webkit-text-fill-color: var(--sc-hazard) !important; background: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal #btn-go-exit.btn:is(:hover, :focus-visible), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#gcm-btn-confirm, .btn.btn-danger):is(:hover, :focus-visible) { color: var(--sc-on-faction) !important; -webkit-text-fill-color: var(--sc-on-faction) !important; --fill: var(--sc-hazard); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.tag-magenta, .title-magenta, .badge-magenta, .codex-card-box.card-magenta .codex-badge-mini) { color: var(--sc-p2-text) !important; -webkit-text-fill-color: var(--sc-p2-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-board-legend span[style*='255, 45'], html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-card-box span[style*='#ff2d8a'], html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-card-box span[style*='ff2d8a'] { color: var(--sc-p2-text) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .title-green { color: #00552c !important; }


/* ---- last stray shapes onto the corner rule ------------------------------ */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.row-popup .popup-actions .btn.btn { clip-path: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup .popup-big-val { clip-path: polygon(0 0, calc(100% - var(--sc-cut-md)) 0, 100% var(--sc-cut-md), 100% 100%, var(--sc-cut-md) 100%, 0 calc(100% - var(--sc-cut-md))) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-special-icon-box { clip-path: polygon(0 0, calc(100% - var(--sc-cut-sm)) 0, 100% var(--sc-cut-sm), 100% 100%, var(--sc-cut-sm) 100%, 0 calc(100% - var(--sc-cut-sm))) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-bg-layer { --c: var(--sc-cut-lg) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-panels-wrapper { clip-path: polygon(0 0, calc(100% - var(--sc-cut-lg)) 0, 100% var(--sc-cut-lg), 100% 100%, var(--sc-cut-lg) 100%, 0 calc(100% - var(--sc-cut-lg))) !important; }
/* every number in the game uses tabular figures */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal, #log-panel, #core-tooltip) :is(*) { font-variant-numeric: tabular-nums !important; }


/* ---- review fixes ---------------------------------------------------------- */
/* one danger style for every exit / abort, never lime */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#gcm-btn-confirm, #btn-go-exit, #btn-forfeit-exit, .btn.btn-danger):not(#sc-x1):not(#sc-x2):not(#sc-x3) {
  --fill: var(--sc-plate); --frame: rgb(var(--sc-hazard-rgb) / .75); color: var(--sc-hazard) !important; -webkit-text-fill-color: var(--sc-hazard) !important; background: none !important; filter: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#gcm-btn-confirm, #btn-go-exit, #btn-forfeit-exit, .btn.btn-danger):is(:hover, :focus-visible):not(#sc-x1):not(#sc-x2):not(#sc-x3) {
  --fill: var(--sc-hazard); --frame: var(--sc-hazard); color: var(--sc-on-faction) !important; -webkit-text-fill-color: var(--sc-on-faction) !important; }
/* inner panels in modals take the frame too */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.tut-rule-card, .csb-card) { --c: var(--sc-cut-md); --fill: var(--sc-plate); --frame: var(--sc-line-strong); box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #interactive-core-d4 { --c: var(--sc-cut-md); --frame: rgb(var(--sc-gold-rgb) / .55); --fill: radial-gradient(closest-side, #1f2725, #0c0f0e); box-shadow: none !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #interactive-core-d4 { --frame: rgb(var(--sc-gold-rgb) / .65); --fill: radial-gradient(closest-side, #faf7ed, #e7e0cb); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-scorer-tag { border-radius: 0 !important; border: 0 !important; background: none !important; padding: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #core-modal-scorer.p1, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-scorer-tag.p1 { color: var(--sc-p1-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal :is(.core-prompt-badge, .core-prompt-text) { color: #f0c867 !important; -webkit-text-fill-color: #f0c867 !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal :is(.core-prompt-badge, .core-prompt-text) { color: #7a5400 !important; -webkit-text-fill-color: #7a5400 !important; }
/* codex colour roles: titles in text colour; gold only for the Scalar Core; no off-palette accents */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal #tactical-codex-modal :is(h3, h4), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.codex-card-title, .codex-special-title, .codex-core-title, .codex-banner-title, .codex-class-title, [class*='title-']) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; text-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal #tab-core :is(.codex-banner-title, .codex-core-title) { color: var(--sc-gold-text) !important; -webkit-text-fill-color: var(--sc-gold-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-special-card { --acc: rgb(var(--sc-fg-rgb) / .35) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.codex-banner-card, div.codex-card-box) { border-left-color: transparent !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.codex-card-tag, .codex-badge-chip, .codex-badge-mini) { color: var(--sc-muted) !important; -webkit-text-fill-color: var(--sc-muted) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(h3, h4, .codex-card-title, .codex-special-title, .codex-core-title, .codex-banner-title) { font-family: var(--sc-font-ui) !important; letter-spacing: var(--sc-tr-caps) !important; }
/* the tutorial-complete helper line is body text, not a tracked label */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.csb-description, .tut-modal-subtitle) { font-family: var(--sc-font-body) !important; letter-spacing: 0 !important; text-transform: none !important; }
/* phone lobby: the two small buttons stay on one line */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen :is(#btn-start-tutorial, #arena-codex-lobby) { white-space: nowrap !important; letter-spacing: .06em !important; font-size: 10px !important; padding-inline: 10px !important; }


/* ---- lime budget ------------------------------------------------------------ */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .site-header .nav-link:is(.active, [aria-current='page']) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .site-header .nav-link:is(.active, [aria-current='page'])::after { background: currentColor !important; box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .site-overlay-frame, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .site-overlay-frame::before, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .site-overlay-frame::after { filter: saturate(0) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) :is(svg, i, .sb-icon, .rb-icon, .rb-help-icon, [class*='icon']) { filter: saturate(0) !important; color: var(--sc-muted) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:is(.active, .selected) { --frame: var(--sc-text) !important; --acc: var(--sc-text) !important; filter: none !important; box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:is(.active, .selected) :is(svg, .mode-icon, i) { color: var(--sc-text) !important; stroke: currentColor; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen #btn-start-tutorial, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen #btn-start-tutorial * { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen #btn-start-tutorial svg { fill: currentColor; }
/* the roll-off is the lobby's next action until it is rolled */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen :is(#btn-rolloff, #btn-ai-rolloff):not(:disabled):not(#sc-d1):not(#sc-d2):not(#sc-d3) { --fill: var(--sc-signal); --frame: var(--sc-signal); color: var(--sc-signal-ink) !important; -webkit-text-fill-color: var(--sc-signal-ink) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen :is(#btn-rolloff, #btn-ai-rolloff):not(:disabled):not(#sc-d1):not(#sc-d2):not(#sc-d3) { --frame: rgb(var(--sc-fg-rgb) / .45); }
/* codex and modals carry no lime */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-tab-btn.active:not(#sc-d1):not(#sc-d2) { --fill: var(--sc-signal); --frame: var(--sc-signal); color: var(--sc-signal-ink) !important; -webkit-text-fill-color: var(--sc-signal-ink) !important; filter: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-tab-btn.active:is(:hover, :focus-visible):not(#sc-d1):not(#sc-d2) { --fill: var(--sc-signal); --frame: var(--sc-signal); color: var(--sc-signal-ink) !important; -webkit-text-fill-color: var(--sc-signal-ink) !important; filter: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-header-bar :is(.codex-title-dot, [class*='dot'], [class*='marker'])  { background: var(--sc-text) !important; box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#tut-complete-modal, .tut-modal-card) :is(h1, h2, h3, .tut-modal-title) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; text-shadow: none !important; }


/* phone combat: the roll tag sits on the viewport's bottom edge, never over the die */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget .bg3-prompt-badge {
  position: absolute !important; left: 50% !important; right: auto !important; top: auto !important; bottom: 6px !important;
  transform: translateX(-50%) !important; min-height: 20px !important; height: 20px !important; padding: 0 8px !important; width: auto !important; max-width: calc(100% - 12px) !important; margin: 0 !important;
}
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget .bg3-prompt-badge :is(.bg3-prompt-text, *) { font-size: 9px !important; white-space: nowrap !important; }


/* ============================================================ NO ROUND CORNERS
   Anything left rounded in the game becomes square. Hexes, pips and the 3D
   canvases keep their own geometry (they are shapes, not corners). */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal, #log-panel, #core-tooltip, .phone-match-tools, #action-bar-wrapper) :is(div, span, button, a, section, aside, header, footer, ul, li, label, input, select, p, i):not(.bg3-prompt-dot):not(.pip):not(.phone-pip):not(.bg3-final-symbol) { border-radius: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.setup-rules, #action-bar, .phone-action-pip, .status-dot, .core-die-ambient-glow) { border-radius: 0 !important; }


/* ==================================================================== CLEAN-UP
   One outline level. A frame never sits inside another frame: content nested in
   a framed container is a quiet fill step with no outline. Controls keep their
   frames; tiles show an outline only on hover or selection. */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal :is(div.codex-card-box, .codex-special-card, .codex-core-box, .codex-board-legend, .codex-banner-card, .codex-action-row, .codex-spotlight-box, .tut-rule-card, .csb-card, .go-stats-grid, .go-stat-box):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) {
  --frame: transparent; --fill: rgb(var(--sc-fg-rgb) / .045); --acc: transparent !important; border-color: transparent !important; box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.codex-action-row, .codex-spotlight-box, .go-stats-grid, .go-stat-box, details.codex-card-box):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { background: rgb(var(--sc-fg-rgb) / .045) !important; border: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tab-panel :is(div, span, li, p, ul, details, summary, h3, h4):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { border-color: transparent !important; box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tab-panel :is(.codex-die-badge, .codex-class-header, .codex-card-header, .codex-card-callout, .codex-special-icon-box, .codex-dice-row > *):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { background: rgb(var(--sc-fg-rgb) / .05) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-header-bar:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { border-bottom: 0 !important; background: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-header-bar::after { display: none !important; }
/* the tab bar always stays inside the card */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tabs-bar:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { max-width: 100% !important; min-width: 0 !important; overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: none; flex-wrap: nowrap !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tabs-bar::-webkit-scrollbar { display: none; }
/* combat: the reserve is the frame; the cell and the die viewport are fills */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: transparent; --fill: transparent; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .combat-matrix-cell :is(.frame-corner, .scifi-corner, .bg3-frame-line, [class*='corner']):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { display: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: transparent; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget:is(:hover, :focus-visible):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: rgb(var(--sc-fg-rgb) / .5); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .cb-battle-die-pill:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { border: 0 !important; box-shadow: none !important; background: rgb(var(--sc-fg-rgb) / .1) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #interactive-core-d4:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: transparent; }
/* reserve tiles: a fill at rest, an outline only on hover or selection */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: transparent; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-active .die-chip:not(.deployed):not(.destroyed):hover:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: rgb(var(--sk-turn-rgb) / .85); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip:is(.selected, .pending, .chip-pending):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: var(--sc-signal); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip:is(.selected, .pending, .chip-pending):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: var(--sc-text); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-p1 .die-chip.deployed:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: rgb(var(--sc-p1-rgb) / .45); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-p2 .die-chip.deployed:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: rgb(var(--sc-p2-rgb) / .45); }
/* roll-off tiles: the die artwork is the frame; the tile is a faint fill */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-screen, #match-intro-modal) .ro-val:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: transparent; --acc: transparent; --fill: rgb(var(--own-rgb) / .12); filter: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-screen, #match-intro-modal) .ro-val svg g { opacity: .9 !important; color: var(--own) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .ai-faction-dice-card.selected-human .ro-val:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: var(--own); }
/* panels are solid: nothing behind a frame (the turn band, the board grid)
   may show through it. Same colour as the plate, so the look is unchanged. */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) { --sc-glass: var(--sc-plate); }
/* a frame's layer must be anchored to its own button: buttons that a layout
   leaves static (phone codex header) are positioned here */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.codex-header-actions, .modal-header-actions, .tut-modal-actions) > :is(.audio-toggle-btn, .btn-exit-round):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { position: relative !important; inset: auto !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip .phone-die-label:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { right: 5px !important; bottom: 4px !important; line-height: 1 !important; }
/* one fill level: groups of tiles are plain layout, only the tiles fill */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.go-stats-grid, .codex-spotlight-box):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --fill: transparent; background: none !important; padding: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .go-stat-box:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { padding-inline: var(--sc-s-2) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#setup-music-toggle, #in-game-music-toggle, #codex-music-toggle, .music-toggle-btn):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { display: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-header-actions:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { margin-left: var(--sc-s-4) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.audio-toggle-btn:not(.music-toggle-btn), .btn-exit-round):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.codex-card-tag, .codex-badge-mini):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; }
/* side rails: the page under the pointer reads as open */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) .rb-hover-btn:is(:hover, :focus-visible):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; background: rgb(var(--sc-fg-rgb) / .1) !important; outline: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) .rb-hover-btn:is(:hover, :focus-visible) *:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-rule-toolbar > .phone-rule-close:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4), html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #action-bar #btn-combat-done:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { position: relative !important; inset: auto !important; }
/* phone: icon buttons are squares everywhere */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .btn-exit-round:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4), html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .audio-toggle-btn:not(.music-toggle-btn):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { width: 36px !important; height: 36px !important; min-width: 0 !important; padding: 0 !important; display: inline-grid !important; place-items: center !important; }
/* glow follows the cut (filter), never a rectangular box-shadow */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#hud-p1, #hud-p2, .side-stash, .btn, .act-btn):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { box-shadow: none !important; }


/* tags inside panels are fills, never outlines */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-prompt-badge:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: transparent; --fill: rgb(14 17 16 / .86); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget:hover .bg3-prompt-badge:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: transparent; --fill: rgb(14 17 16 / .96); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal :is(.core-prompt-badge, .csb-card-icon):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .csb-card-icon:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { border: 0 !important; box-shadow: none !important; background: rgb(var(--sc-fg-rgb) / .1) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-prompt-badge:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { background: rgb(14 17 16 / .86) !important; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-prompt-badge:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { background: rgb(252 249 240 / .92) !important; box-shadow: inset 0 0 0 1px rgb(var(--sc-gold-rgb) / .42) !important; }

/* padding scale: text never sits against its frame */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .codex-tab-btn):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { padding-inline: var(--sc-s-4) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen :is(#btn-start-tutorial, #arena-codex-lobby):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { padding-inline: var(--sc-s-3) !important; width: auto !important; min-width: max-content !important; flex: 0 0 auto !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bar-center .act-btn:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { padding-inline: var(--sc-s-5) !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#btn-combat-done, #btn-evade-yes, #btn-evade-no):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { padding-inline: var(--sc-s-5) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { padding-inline: var(--sc-s-3) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup:not(.popup-observer):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { padding: 8px !important; }

/* hover and focus for every interactive frame, each following its own cut.
   Rest -> hover: the frame brightens. Focus: a 2px signal frame (text colour in light). */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.mode-card, .die-chip, .ro-val, .ai-faction-dice-card, .bg3-battle-die-widget, #interactive-core-d4, .phone-reference-toggle, .phone-rule-close, .audio-toggle-btn, .btn-exit-round, .btn, .act-btn, .codex-tab-btn):focus-visible { outline: none !important; box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.mode-card, .die-chip, .bg3-battle-die-widget, #interactive-core-d4, .phone-reference-toggle, .phone-rule-close):focus-visible:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --fw: 2px; --frame: var(--sc-signal); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .ai-faction-dice-card:focus-visible .ro-val:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --fw: 2px; --frame: var(--sc-signal); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.mode-card, .die-chip, .bg3-battle-die-widget, #interactive-core-d4, .phone-reference-toggle, .phone-rule-close):focus-visible:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4), html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .ai-faction-dice-card:focus-visible .ro-val:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: var(--sc-text); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #interactive-core-d4:hover:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: rgb(var(--sc-gold-rgb) / .7); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.phone-reference-toggle, .phone-rule-close):hover:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: rgb(var(--sc-fg-rgb) / .62); --fill: var(--sc-raised); }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-marker:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-marker:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}

/* ==================================================================== PHONE PASS
   The phone match keeps one frame level: the action bar is not a band around
   its buttons; the group toggles take the cut like every other control; the
   identity tag sits on the card edge as a notch, never under a line. */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen #action-bar:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { background: none !important; box-shadow: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen #action-bar::before, html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen #action-bar::after { display: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bar-center:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { gap: var(--sc-s-1) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bar-center .act-btn:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { flex: 1 1 0 !important; min-width: 0 !important; padding-inline: 6px !important; font-size: 11px !important; letter-spacing: .02em !important; }
/* group toggles: a cut tile; the open group carries its faction */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-marker:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --c: var(--sc-cut-sm); --frame: var(--sc-line); --fill: var(--sc-plate); border-radius: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-marker::before { border: 0 !important; border-radius: 0 !important; inset: 0 !important; height: auto !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #phone-reserve-markers-p1 .phone-reserve-marker[aria-selected='true']:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: rgb(var(--sc-p1-rgb) / .85); --fill: rgb(var(--sc-p1-rgb) / .16); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #phone-reserve-markers-p2 .phone-reserve-marker[aria-selected='true']:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: rgb(var(--sc-p2-rgb) / .85); --fill: rgb(var(--sc-p2-rgb) / .16); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-marker:hover:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: rgb(var(--sc-fg-rgb) / .62); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-marker:focus-visible:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { outline: none !important; --fw: 2px; --frame: var(--sc-signal); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-marker:focus-visible:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --frame: var(--sc-text); }
/* identity tag on the card edge: a notch with the field behind it */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player .player-identity-label:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { background: var(--sc-field) !important; padding: 1px 6px !important; z-index: 3 !important; }


/* ==================================================================== STATE LADDER
   One state model for every control. Nothing moves between states: no
   transform, translate or scale on any control, at rest, on hover, focus or
   press (pressing used to scale buttons to .97 and lift tiles by 2-4px).   */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close, .mode-card, .die-chip, .phone-reserve-marker, .ai-faction-dice-card, .lobby-faction-card, .bg3-battle-die-widget, #interactive-core-d4, .rb-hover-btn, .rb-help-icon, .log-toggle-btn, .tut-cta-green):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close, .mode-card, .die-chip, .phone-reserve-marker, .ai-faction-dice-card, .lobby-faction-card, .bg3-battle-die-widget, #interactive-core-d4, .rb-hover-btn, .rb-help-icon, .log-toggle-btn, .tut-cta-green):is(:hover, :active, :focus, :focus-visible):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { transform: none !important; translate: none !important; scale: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close, .mode-card, .die-chip, .phone-reserve-marker, .ai-faction-dice-card, .lobby-faction-card, .bg3-battle-die-widget, #interactive-core-d4, .rb-hover-btn, .rb-help-icon, .log-toggle-btn, .tut-cta-green) :is(.ro-val, .mode-card-icon, .act-text, .lt-icon, svg, img):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { transform: none !important; translate: none !important; scale: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .die-chip:is(.chip-pending, .pending, .selected):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { transform: none !important; }

/* ---- hover: brightens. Secondary -> raised fill + stronger line ------------ */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn):hover:not(:disabled, [aria-disabled='true'], .disabled):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close, .site-header .theme-toggle, .site-header .menu-toggle):hover:not(:disabled, [aria-disabled='true']):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --frame: rgb(var(--sc-fg-rgb) / .62); --fill: var(--sc-raised); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn.btn-primary, .tut-cta-green, .act-btn.act-active, #btn-combat-done, #btn-evade-yes, #btn-core-ok, #setup-screen #btn-rolloff, #setup-screen #btn-ai-rolloff):hover:not(:disabled, [aria-disabled='true']):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --fill: color-mix(in srgb, var(--sc-signal) 72%, #fff); --frame: color-mix(in srgb, var(--sc-signal) 72%, #fff); color: var(--sc-signal-ink) !important; -webkit-text-fill-color: var(--sc-signal-ink) !important; filter: drop-shadow(0 0 12px rgb(var(--sc-signal-rgb) / calc(var(--sc-glow-strength) * .9))) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn.btn-primary, .tut-cta-green, .act-btn.act-active, #btn-combat-done, #btn-evade-yes, #btn-core-ok, #setup-screen #btn-rolloff, #setup-screen #btn-ai-rolloff):hover:not(:disabled, [aria-disabled='true']):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --fill: color-mix(in srgb, var(--sc-signal) 70%, #fff); --frame: rgb(var(--sc-fg-rgb) / .55); filter: drop-shadow(0 3px 6px rgb(var(--sc-fg-rgb) / .22)) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#btn-go-exit, #gcm-btn-confirm, #btn-forfeit-exit, .btn.btn-danger):hover:not(:disabled):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --fill: var(--sc-hazard); --frame: var(--sc-hazard); color: var(--sc-on-faction) !important; -webkit-text-fill-color: var(--sc-on-faction) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-tab-btn.active:hover:not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5):not(#sc-hx) { --fill: color-mix(in srgb, var(--sc-signal) 86%, #ffffff); --frame: var(--sc-signal); color: var(--sc-signal-ink) !important; -webkit-text-fill-color: var(--sc-signal-ink) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:hover:not([aria-disabled='true'], .disabled):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --frame: rgb(var(--sc-fg-rgb) / .62); --fill: var(--sc-raised); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:is(.active, .selected):hover:not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --frame: var(--sc-text); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:hover:not([aria-disabled='true'], .disabled):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --fill: #ffffff; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .ai-faction-dice-card:hover .ro-val:not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --frame: var(--own); --fill: rgb(var(--own-rgb) / .2); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) :is(.rb-hover-btn, .rb-help-icon):hover:not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { background: rgb(var(--sc-fg-rgb) / .1) !important; color: var(--sc-text) !important; }
/* light: hover lifts the surface towards white (the same object under daylight), never a grey tint */
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn):not(:is(.btn.btn-primary, .tut-cta-green, .act-btn.act-active, #btn-combat-done, #btn-evade-yes, #btn-core-ok, #setup-screen #btn-rolloff, #setup-screen #btn-ai-rolloff)):not(:is(#btn-go-exit, #gcm-btn-confirm, #btn-forfeit-exit, .btn.btn-danger)):hover:not(:disabled, [aria-disabled='true'], .disabled):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5),
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close, .site-header .theme-toggle, .site-header .menu-toggle):hover:not(:disabled, [aria-disabled='true']):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --fill: #ffffff; --frame: rgb(var(--sc-fg-rgb) / .62); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-active .die-chip:not(.deployed):not(.destroyed):hover:not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --fill: #ffffff; --frame: rgb(var(--sk-turn-rgb) / .85); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-active .die-chip:not(.deployed):not(.destroyed):hover:not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --frame: rgb(var(--sk-turn-rgb) / .85); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip:is(.can-roll, .can-deploy):not(.deployed):not(.destroyed):not(.chip-deployed):hover:not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --frame: rgb(var(--sk-turn-rgb) / .85); --fill: color-mix(in srgb, var(--sc-raised) 84%, rgb(var(--sk-turn-rgb))); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip:is(.can-roll, .can-deploy):not(.deployed):not(.destroyed):not(.chip-deployed):hover:not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --fill: #ffffff; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-marker:hover:not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --fill: #ffffff; --frame: rgb(var(--sc-fg-rgb) / .62); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) :is(.rb-hover-btn, .rb-help-icon):hover:not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { background: #ffffff !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #log-panel:has(> #btn-toggle-log:hover):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --fill: #ffffff; }
/* the game log tab: the whole panel is the control, so the panel brightens */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #log-panel:has(> #btn-toggle-log:hover):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --frame: rgb(var(--sc-fg-rgb) / .62); --fill: var(--sc-raised); }

/* ---- focus: a 2px signal ring 3px outside, following the cut ------------- */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close, .mode-card, .die-chip, .phone-reserve-marker, .ai-faction-dice-card, .lobby-faction-card, .bg3-battle-die-widget, #interactive-core-d4, .rb-hover-btn, .rb-help-icon, .log-toggle-btn, .tut-cta-green):focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close, .mode-card, .die-chip, .phone-reserve-marker, .ai-faction-dice-card, .lobby-faction-card, .bg3-battle-die-widget, #interactive-core-d4, .rb-hover-btn, .rb-help-icon, .log-toggle-btn, .tut-cta-green):focus:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { outline: none !important; box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close):focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --ring: var(--sc-signal); overflow: visible !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close):focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6), html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --ring: var(--sc-text); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close):focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6)::after, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: -5px !important;
  width: auto !important; height: auto !important; margin: 0 !important; z-index: 6 !important; pointer-events: none !important;
  opacity: 1 !important; filter: none !important; transform: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; animation: none !important;
  --rc: calc(var(--c) + 3px);
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--ring), var(--ring)) left 0 top 0 / calc(100% - var(--rc)) 2px no-repeat,
    linear-gradient(var(--ring), var(--ring)) left var(--rc) bottom 0 / calc(100% - var(--rc)) 2px no-repeat,
    linear-gradient(var(--ring), var(--ring)) left 0 top 0 / 2px calc(100% - var(--rc)) no-repeat,
    linear-gradient(var(--ring), var(--ring)) right 0 top var(--rc) / 2px calc(100% - var(--rc)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - 2px * .9), var(--ring) calc(50% - 2px * .9) calc(50% + 2px * .9), transparent calc(50% + 2px * .9)) right top / var(--rc) var(--rc) no-repeat,
    linear-gradient(to top right, transparent calc(50% - 2px * .9), var(--ring) calc(50% - 2px * .9) calc(50% + 2px * .9), transparent calc(50% + 2px * .9)) left bottom / var(--rc) var(--rc) no-repeat !important;
  clip-path: polygon(0 0, calc(100% - var(--rc)) 0, 100% var(--rc), 100% 100%, var(--rc) 100%, 0 calc(100% - var(--rc))) !important;
}
/* a focused control keeps its rest look apart from the ring (no hover look, no second frame) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close):focus-visible:not(:hover):not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --fw: 1px; --frame: var(--sc-line-strong); --fill: var(--sc-plate); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn.btn-primary, .tut-cta-green, .act-btn.act-active, #btn-combat-done, #btn-evade-yes, #btn-core-ok, #setup-screen #btn-rolloff, #setup-screen #btn-ai-rolloff):focus-visible:not(:hover):not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --frame: var(--sc-signal); --fill: var(--sc-signal); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn.btn-primary, .tut-cta-green, .act-btn.act-active, #btn-combat-done, #btn-evade-yes, #btn-core-ok, #setup-screen #btn-rolloff, #setup-screen #btn-ai-rolloff):focus-visible:not(:hover):not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --frame: rgb(var(--sc-fg-rgb) / .45); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#btn-go-exit, #gcm-btn-confirm, #btn-forfeit-exit, .btn.btn-danger):focus-visible:not(:hover):not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --frame: rgb(var(--sc-hazard-rgb) / .75); --fill: var(--sc-plate); color: var(--sc-hazard) !important; -webkit-text-fill-color: var(--sc-hazard) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-tab-btn.active:focus-visible:not(:hover):not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --fill: var(--sc-signal); --frame: var(--sc-signal); color: var(--sc-signal-ink) !important; -webkit-text-fill-color: var(--sc-signal-ink) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn):is(:disabled, [aria-disabled='true'], .disabled):focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --frame: var(--sc-line); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:focus-visible:not(:hover):not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --fw: 1px; --frame: var(--sc-line-strong); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:is(.active, .selected):focus-visible:not(:hover):not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --frame: var(--sc-text); }
/* tiles: an inset 2px signal frame (their neighbours sit too close for a ring) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.die-chip, .phone-reserve-marker, .bg3-battle-die-widget, #interactive-core-d4):focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .ai-faction-dice-card:focus-visible .ro-val:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --fw: 2px; --frame: var(--sc-signal); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.die-chip, .phone-reserve-marker, .bg3-battle-die-widget, #interactive-core-d4):focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6), html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .ai-faction-dice-card:focus-visible .ro-val:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --frame: var(--sc-text); }
/* rails: square items inside the rail; the 2px frame is drawn inside them */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) :is(.rb-hover-btn, .rb-help-icon):focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { outline: none !important; box-shadow: inset 0 0 0 2px var(--sc-signal) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) :is(.rb-hover-btn, .rb-help-icon):focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { box-shadow: inset 0 0 0 2px var(--sc-text) !important; }
/* the rail icons are desaturated (lime budget); that filter must not turn the focus frame white */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) .rb-help-icon:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { filter: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) .rb-help-icon :is(svg, i):not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { filter: saturate(0) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #log-panel:has(> #btn-toggle-log:focus-visible):not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --fw: 2px; --frame: var(--sc-signal); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #log-panel:has(> #btn-toggle-log:focus-visible):not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --frame: var(--sc-text); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #btn-toggle-log:focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { outline: none !important; box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #btn-toggle-log:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6)::before, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #btn-toggle-log:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6)::after { display: none !important; }

/* ---- active (pressed): a touch darker, never moves ----------------------- */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close, .mode-card, .die-chip, .phone-reserve-marker, .ai-faction-dice-card, .lobby-faction-card, .bg3-battle-die-widget, #interactive-core-d4, .rb-hover-btn, .rb-help-icon, .log-toggle-btn, .tut-cta-green):active:not(:disabled, [aria-disabled='true']):not(#sc-a0):not(#sc-a1):not(#sc-a2):not(#sc-a3):not(#sc-a4):not(#sc-a5):not(#sc-a6):not(#sc-a7) { filter: brightness(.88) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, .audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close, .mode-card, .die-chip, .phone-reserve-marker, .ai-faction-dice-card, .lobby-faction-card, .bg3-battle-die-widget, #interactive-core-d4, .rb-hover-btn, .rb-help-icon, .log-toggle-btn, .tut-cta-green):active:not(:disabled, [aria-disabled='true']):not(#sc-a0):not(#sc-a1):not(#sc-a2):not(#sc-a3):not(#sc-a4):not(#sc-a5):not(#sc-a6):not(#sc-a7) { filter: brightness(.94) !important; }

/* ---- disabled: hatched, full shape, never transparent --------------------- */
/* reserve dice and group toggles are not hatched: their states (deployed, destroyed, not your turn)
   are drawn by the reserve itself, and a die never changes design between turns */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, :is(.audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close, .site-header .theme-toggle, .site-header .menu-toggle), .mode-card):is(:disabled, [aria-disabled='true'], .disabled):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) {
  opacity: 1 !important; filter: none !important; cursor: not-allowed !important;
  --frame: var(--sc-line); --fill: var(--sc-plate);
  color: var(--sc-muted) !important; -webkit-text-fill-color: var(--sc-muted) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.btn:not(.rb-help-icon):not([id^=phone-reserve-]), .act-btn, .codex-tab-btn, :is(.audio-toggle-btn, .btn-exit-round, .phone-reference-toggle, .phone-rule-close, .site-header .theme-toggle, .site-header .menu-toggle), .mode-card):is(:disabled, [aria-disabled='true'], .disabled):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) * { color: inherit !important; -webkit-text-fill-color: currentColor !important; opacity: 1 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .ai-faction-dice-card:is([aria-disabled='true'], .disabled):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) .ro-val { --fill: var(--sc-plate); --frame: var(--sc-line); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#left-sidebar, #rb-sidebar) :is(.rb-hover-btn, .rb-help-icon):is(:disabled, [aria-disabled='true']):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { opacity: 1 !important; cursor: not-allowed !important; background: var(--sc-plate) !important; color: var(--sc-muted) !important; }


/* ==================================================================== INPUTS */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#input-join-code, #input-invite-link, #setup-screen input[type=text]):not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) {
  --c: var(--sc-cut-md); --fw: 1px; --frame: var(--sc-line-strong); --fill: var(--sc-raised); --acc: transparent; --acc-pos: left center; --acc-size: 0 0;
  border: 0 !important; border-radius: 0 !important; outline: none !important; box-shadow: none !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; caret-color: var(--sc-signal);
  padding-inline: var(--sc-s-3) !important; font-family: var(--sc-font-ui) !important; letter-spacing: var(--sc-tr-caps) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#input-join-code, #input-invite-link, #setup-screen input[type=text])::placeholder { color: var(--sc-muted) !important; -webkit-text-fill-color: var(--sc-muted) !important; opacity: 1 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#input-join-code, #input-invite-link, #setup-screen input[type=text]):hover:not(:disabled):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5):not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --frame: rgb(var(--sc-fg-rgb) / .62); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#input-join-code, #input-invite-link, #setup-screen input[type=text]):focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#input-join-code, #input-invite-link, #setup-screen input[type=text]):focus:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --fw: 2px; --frame: var(--sc-signal); outline: none !important; box-shadow: none !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#input-join-code, #input-invite-link, #setup-screen input[type=text]):focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5), html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#input-join-code, #input-invite-link, #setup-screen input[type=text]):focus:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --frame: var(--sc-text); caret-color: var(--sc-text); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#input-join-code, #input-invite-link, #setup-screen input[type=text]):disabled:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --fill: var(--sc-plate); cursor: default !important; }


/* ==================================================================== AUDIT FIXES
   ---- lime budget: lime only for the next action, focus and control tokens.
   Labels, eyebrows, titles and status lines that were lime (or the retired
   teal / amber rail accents) read in the text colours.                     */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.ftue-eyebrow, #tut-stage-badge, .csb-tag, #match-intro-modal .modal-label, .tut-intro-grid .tut-rule-card h3, .tut-intro-grid .tut-rule-card h4, #display-room-code, #resume-room-code, .phone-briefing-badge, .phone-rule-counter):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) {
  color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; text-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#online-host-status, #online-join-status, .csb-card :is(h3, h5), .csb-card .csb-card-icon):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; text-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .csb-card .csb-card-icon:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-muted) !important; -webkit-text-fill-color: var(--sc-muted) !important; border-color: transparent !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .csb-card .csb-card-icon svg:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: currentColor !important; stroke: currentColor !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.codex-number-badges span, .codex-action-num):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; text-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tab-panel :is(strong, div, span)[style*='0, 255, 2'], html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tab-panel [style*='#00ffcc'], html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tab-panel [style*='00ffc8']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; text-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tab-panel > div[style*='letter-spacing']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; }
/* inline colours left in the markup from the retired rail themes (teal, amber, sky, lilac)
   map onto the palette: neutral -> text, the Core -> gold, faction labels -> faction text */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal, #log-panel) [style*='color: #00ffcc' i]:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) [style*='color:#00ffcc' i]:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; text-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) [style*='color: #ffd700' i]:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-gold-text) !important; -webkit-text-fill-color: var(--sc-gold-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) [style*='color: #00d2ff' i]:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-p1-text) !important; -webkit-text-fill-color: var(--sc-p1-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) [style*='color: #c084fc' i]:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-p2-text) !important; -webkit-text-fill-color: var(--sc-p2-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) :is([style*='color: #ffd700' i], [style*='color: #00d2ff' i], [style*='color: #c084fc' i])[style*='padding']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { background: rgb(var(--sc-fg-rgb) / .08) !important; border: 0 !important; border-radius: 0 !important; clip-path: polygon(0 0, calc(100% - var(--sc-cut-sm)) 0, 100% var(--sc-cut-sm), 100% 100%, var(--sc-cut-sm) 100%, 0 calc(100% - var(--sc-cut-sm))) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#game-screen, #setup-screen, .modal) [style*='background: #00ffcc' i]:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { background: var(--sc-muted) !important; box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-sys-label:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-gold-text) !important; -webkit-text-fill-color: var(--sc-gold-text) !important; }
/* the tutorial play mark and the codex button keep the text colour, at rest and on hover */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen #btn-start-tutorial svg:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen #btn-start-tutorial svg *:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: currentColor !important; color: inherit !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen :is(#arena-codex-lobby, .arena-codex-lobby):hover:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; border-bottom-color: transparent !important; }
/* a selected / pending reserve die is the current choice, not the next action: turn colour, not lime */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip:is(.selected, .pending, .chip-pending):not(#sc-s0):not(#sc-s1):not(#sc-s2):not(#sc-s3):not(#sc-s4) { --fw: 2px; --frame: rgb(var(--sk-turn-rgb)); box-shadow: none !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip:is(.selected, .pending, .chip-pending):not(#sc-s0):not(#sc-s1):not(#sc-s2):not(#sc-s3):not(#sc-s4) { --frame: rgb(var(--sk-turn-rgb)); }

/* ---- buttons: every "next action" is the primary variant at rest too --- */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.tut-cta-green, #core-modal #btn-core-ok, #core-modal .btn-core-action):not(#sc-p0):not(#sc-p1):not(#sc-p2):not(#sc-p3):not(#sc-p4) { --fill: var(--sc-signal); --frame: var(--sc-signal); color: var(--sc-signal-ink) !important; -webkit-text-fill-color: var(--sc-signal-ink) !important; text-shadow: none !important; box-shadow: none !important; filter: none !important; animation: none !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.tut-cta-green, #core-modal #btn-core-ok, #core-modal .btn-core-action):not(#sc-p0):not(#sc-p1):not(#sc-p2):not(#sc-p3):not(#sc-p4) { --frame: rgb(var(--sc-fg-rgb) / .45); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.tut-cta-green, #core-modal #btn-core-ok, #core-modal .btn-core-action):not(#sc-p0):not(#sc-p1):not(#sc-p2):not(#sc-p3):not(#sc-p4) * { color: inherit !important; -webkit-text-fill-color: currentColor !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.tut-cta-green, #btn-core-ok):not(#sc-p0):not(#sc-p1):not(#sc-p2):not(#sc-p3):not(#sc-p4)::before { animation: none !important; }

/* ---- combat result slot: compact, so it never covers the board's ATK / DEF marks */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active :is(#btn-combat-done, #btn-evade-yes, #btn-evade-no):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { min-height: var(--sc-h-sm) !important; height: var(--sc-h-sm) !important; font-size: var(--sc-fs-1) !important; padding-inline: var(--sc-s-4) !important; }

/* ---- light mode lights with shadow, never a pale halo (mascot dice) ---- */
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player.hud-player.active .plaque-mascot:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { filter: drop-shadow(0 4px 8px rgb(var(--sc-fg-rgb) / .28)) !important; }

/* ---- one frame level: the online room is plain layout inside the lobby frame;
   the room box is a quiet fill step with the cut, never a second outline -- */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen #online-setup-view > .online-box:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { border: 0 !important; box-shadow: none !important; background: none !important; border-radius: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen #host-room-info:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  background: rgb(var(--sc-fg-rgb) / .045) !important;
  clip-path: polygon(0 0, calc(100% - var(--sc-cut-md)) 0, 100% var(--sc-cut-md), 100% 100%, var(--sc-cut-md) 100%, 0 calc(100% - var(--sc-cut-md))) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen #online-active-session-view > .online-box:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  background: rgb(var(--sc-fg-rgb) / .045) !important;
  clip-path: polygon(0 0, calc(100% - var(--sc-cut-md)) 0, 100% var(--sc-cut-md), 100% 100%, var(--sc-cut-md) 100%, 0 calc(100% - var(--sc-cut-md))) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen #resume-room-banner:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: rgb(var(--sc-fg-rgb) / .045) !important;
  padding: var(--sc-s-3) !important; gap: var(--sc-s-3) !important;
  clip-path: polygon(0 0, calc(100% - var(--sc-cut-md)) 0, 100% var(--sc-cut-md), 100% 100%, var(--sc-cut-md) 100%, 0 calc(100% - var(--sc-cut-md))) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen #resume-room-banner > :is(div, span):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { gap: var(--sc-s-2) !important; }

/* ---- padding: text never sits against its frame ------------------------ */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #resume-room-banner .btn:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { padding-inline: var(--sc-s-3) !important; min-width: max-content !important; white-space: nowrap !important; }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-detail-close:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-detail-close:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-detail-close:not(#sc-q0):not(#sc-q1):not(#sc-q2):not(#sc-q3):not(#sc-q4) { --c: var(--sc-cut-md); --frame: var(--sc-line-strong); --fill: var(--sc-plate); border: 0 !important; color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; filter: none !important; position: relative !important; inset: auto !important; }
/* controls an earlier frame rule turned relative although their layout positions them */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #btn-close-reference:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { position: fixed !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #btn-forfeit-exit:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { position: absolute !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-detail-close:hover:not(:disabled):not(#sc-h0):not(#sc-h1):not(#sc-h2):not(#sc-h3):not(#sc-h4):not(#sc-h5) { --frame: rgb(var(--sc-fg-rgb) / .62); --fill: var(--sc-raised); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-detail-close:focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { outline: none !important; box-shadow: none !important; --fw: 2px; --frame: var(--sc-signal); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-detail-close:focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { --frame: var(--sc-text); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-detail-close:active:not(#sc-a0):not(#sc-a1):not(#sc-a2):not(#sc-a3):not(#sc-a4):not(#sc-a5):not(#sc-a6):not(#sc-a7) { filter: brightness(.88) !important; transform: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-detail-close:disabled:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --fill: var(--sc-plate); --frame: var(--sc-line); opacity: 1 !important; color: rgb(var(--sc-fg-rgb) / .62) !important; -webkit-text-fill-color: rgb(var(--sc-fg-rgb) / .62) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reserve-details:not(#sc-q0):not(#sc-q1):not(#sc-q2):not(#sc-q3):not(#sc-q4) { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: var(--sc-raised) !important;
  clip-path: polygon(0 0, calc(100% - var(--sc-cut-md)) 0, 100% var(--sc-cut-md), 100% 100%, var(--sc-cut-md) 100%, 0 calc(100% - var(--sc-cut-md))) !important; }


/* ---- tags: a cut tag never clips its own text; a bare label has no cut -- */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player .player-identity-label:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { clip-path: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hud-player .player-identity-label:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { padding: 1px 9px !important; }
/* ---- contrast floor (4.5:1 text, 3:1 large) in both themes ------------- */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #online-join-section > div[style*='opacity']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { opacity: 1 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #match-intro-modal div[style*='rgba(255,255,255,0.4)']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-muted) !important; -webkit-text-fill-color: var(--sc-muted) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #online-join-section > div > span:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-muted) !important; -webkit-text-fill-color: var(--sc-muted) !important; opacity: 1 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #online-join-section > div > div[style*='height: 1px']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { background: var(--sc-line) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box .stat-num > span:not([class*='p1']):not([class*='p2']):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-muted) !important; -webkit-text-fill-color: var(--sc-muted) !important; opacity: 1 !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p1-matrix .cb-battle-die-pill .fht-text:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen #cb-p1-roll-title .fht-text:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-p1-text) !important; -webkit-text-fill-color: var(--sc-p1-text) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p2-matrix .cb-battle-die-pill .fht-text:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen #cb-p2-roll-title .fht-text:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-p2-text) !important; -webkit-text-fill-color: var(--sc-p2-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#intro-ready-container, #core-ready-container, #go-ready-container) .ready-system-container > div:not([class]):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#intro-ready-container, #core-ready-container, #go-ready-container) > div:not([class]):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-muted) !important; opacity: 1 !important; }
/* ---- phone player cards are buttons: a disabled card keeps its look (a card never changes design between states) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#phone-reserve-p1, #phone-reserve-p2):is(:disabled, [aria-disabled='true']):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { opacity: 1 !important; filter: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#phone-reserve-p1, #phone-reserve-p2):is(:hover, :active, :focus, :focus-visible):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { transform: none !important; }
/* ---- page marks (phone rule carousels): a position readout, not an action: text colour, no lime */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-rule-page-marks > span:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-rule-page-marks > span:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::before { background-color: var(--sc-line-strong) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-pagination-active .phone-rule-page-marks > span:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { background-color: transparent !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-rule-page-marks > .current:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-pagination-active .phone-rule-page-marks > .current:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::before { background-color: var(--sc-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-pagination-active .phone-rule-page-marks > .current:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { background-color: transparent !important; }
/* ---- modal padding: the same inset on every side ------------------------- */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal .confirm-card:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { padding: var(--sc-s-6) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal .confirm-card > :first-child:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal .confirm-card > :first-child > :first-child:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { margin-top: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-confirm-modal .confirm-card > :last-child:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { margin-bottom: 0 !important; }
/* ---- phone hit areas: 44px for codex tabs and modal icon buttons ---------- */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tab-btn:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { min-height: var(--sc-hit-min) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal :is(.audio-toggle-btn:not(.music-toggle-btn), .btn-exit-round):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: var(--sc-hit-min) !important; height: var(--sc-hit-min) !important; min-width: var(--sc-hit-min) !important; min-height: var(--sc-hit-min) !important; }
/* ---- tooltips: equal padding on every side ------------------------------ */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#core-tooltip, .sc-tip-float):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { padding: var(--sc-s-3) !important; text-indent: 0 !important; text-align: left !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip *:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { text-align: left !important; }


html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active #game-screen #action-bar:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { isolation: isolate; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  --c: var(--sc-cut-lg); --fw: 1px; --frame: var(--sc-line-strong); --fill: var(--sc-plate); --acc: transparent; --acc-pos: center bottom; --acc-size: 100% var(--sc-accent-w); }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active:not(.combat-winner-p1):not(.combat-winner-p2) #game-screen #action-bar:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important; z-index: -1 !important; pointer-events: none !important;
  width: auto !important; height: auto !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; opacity: 1 !important; filter: none !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
}
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active:has(#evade-decision-container[style*='flex']) #game-screen #action-bar:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::before { display: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active #game-screen #action-bar #cb-outcome:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; text-shadow: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active #game-screen #action-bar #btn-combat-done:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { inset: auto !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active #game-screen #action-bar:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { padding-right: 18px !important; }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .btn-tut-continue-step:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
  position: relative; isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .btn-tut-continue-step:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --c: var(--sc-cut-md); --fill: var(--sc-plate); --frame: var(--sc-line-strong); --acc: var(--sc-text); --acc-pos: left center; --acc-size: var(--sc-accent-w) 100%; box-shadow: none !important; border: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-stage-badge:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::before { background: var(--sc-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .btn-tut-continue-step:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { inset: auto !important; --c: var(--sc-cut-md); --fill: var(--sc-signal); --frame: var(--sc-signal); color: var(--sc-signal-ink) !important; -webkit-text-fill-color: var(--sc-signal-ink) !important; box-shadow: none !important; padding-inline: var(--sc-s-4) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .btn-tut-continue-step:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::after { display: none !important; content: none !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .btn-tut-continue-step:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --frame: rgb(var(--sc-fg-rgb) / .45); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .btn-tut-continue-step:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) * { color: inherit !important; -webkit-text-fill-color: currentColor !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .btn-tut-continue-step:hover:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-hb) { --fill: color-mix(in srgb, var(--sc-signal) 72%, #fff); --frame: color-mix(in srgb, var(--sc-signal) 72%, #fff); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .btn-tut-continue-step:focus-visible:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-fb) { outline: none !important; --fw: 2px; --frame: var(--sc-text); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .btn-tut-continue-step:active:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-ab) { filter: brightness(.88) !important; transform: none !important; }


html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #phone-tutorial-briefing:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
   isolation: isolate; background: none !important; background-color: transparent !important;
  border-color: transparent !important; border-radius: 0 !important; clip-path: none !important;
  box-shadow: none !important; outline: none !important; background-image: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: --frame var(--sc-t-fast) var(--sc-ease-out), --acc var(--sc-t-fast) var(--sc-ease-out), color var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out); 
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #phone-tutorial-briefing:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before {
  content: '' !important; display: block !important; position: absolute !important; inset: 0 !important;
  width: auto !important; height: auto !important; z-index: -1 !important; pointer-events: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  opacity: 1 !important; filter: none !important; animation: none !important; margin: 0 !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important;
  transition: none !important;
}

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #phone-tutorial-briefing .phone-briefing-header > .phone-rule-close:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { position: relative !important; inset: auto !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #phone-tutorial-briefing:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --c: var(--sc-cut-lg); --fill: var(--sc-plate); --frame: var(--sc-line-strong); --phone-tut-ink: var(--sc-text); --phone-tut-muted: var(--sc-muted); --phone-tut-accent: var(--sc-text); --phone-tut-edge: var(--sc-line-strong); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #phone-tutorial-briefing .phone-briefing-badge:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #phone-tutorial-briefing .phone-briefing-title:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #phone-tutorial-briefing :is(.phone-briefing-copy, .phone-briefing-hint):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-muted) !important; -webkit-text-fill-color: var(--sc-muted) !important; }


/* Tooltips: one system tooltip. The legacy CSS bubbles (player tokens, reserve speed, rail help)
   drew a second, rounded, unframed bubble; the script shows their text in the system tooltip. */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hp-pips::before, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hp-pips::after,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-speed-arrows[data-tooltip]::before, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-speed-arrows[data-tooltip]::after,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .rb-help-icon[data-tooltip]::before, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .rb-help-icon[data-tooltip]::after,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .stash-speed-arrows[data-tooltip]:hover::before, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .rb-help-icon[data-tooltip]:hover::before { content: none !important; display: none !important; }
/* the tooltip is a solid raised card with a shadow, so it reads above anything */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .sc-tip-float:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --fill: var(--sc-raised); --frame: var(--sc-line-strong); filter: drop-shadow(0 6px 18px rgb(0 0 0 / .55)) !important; color: var(--sc-text) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .sc-tip-float:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-tooltip:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --fill: #ffffff; --frame: rgb(var(--sc-fg-rgb) / .38); filter: drop-shadow(0 4px 12px rgb(18 23 20 / .18)) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.sc-tip-float, #core-tooltip):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::before { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* Header tools (desktop): codex, sound and exit are the same 44px square as the theme toggle. The site nav
   stays exactly where it is on every other page (user: the navigation is always pristine), so the tools
   leave the header: they stack down the right gutter just below it, centred on the right-hand rail. */
@media (min-width: 1101px) {
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-site-audio:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { position: fixed !important; right: 30px !important; left: auto !important; top: calc(var(--game-site-header-height, 102px) + 16px) !important; transform: none !important; z-index: 100002 !important; }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-site-audio .ghdr-right:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { flex-direction: column !important; }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-site-audio .ghdr-right:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: flex !important; gap: 8px !important; align-items: center !important; justify-content: flex-end !important; }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-site-audio:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: auto !important; min-width: 0 !important; justify-content: flex-end !important; }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-site-audio :is(.audio-toggle-btn, .btn-exit-round):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; --c: var(--sc-cut-sm); }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-site-audio :is(.audio-toggle-btn, .btn-exit-round):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) svg { width: 20px !important; height: 20px !important; }
}

/* Mode cards: the original colour identity. Hotseat is Azure, VS AI is gold, Online is Violet.
   The selected card takes its colour (frame, a tinted fill, the icon and, in dark, a soft glow);
   the AI icon is always gold, as before. */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card.card-hotseat { --mode: var(--sc-p1); --mode-text: var(--sc-p1-text); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card.card-ai { --mode: var(--sc-gold); --mode-text: var(--sc-gold-text); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card.card-online { --mode: var(--sc-p2); --mode-text: var(--sc-p2-text); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-mc) { --fill: var(--sc-plate) !important; --frame: var(--sc-line-strong) !important; --acc: transparent !important; transition: --frame var(--sc-t-fast) var(--sc-ease-out), filter var(--sc-t-fast) var(--sc-ease-out) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card :is(.mode-card-icon, .mode-card-icon svg):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-mc) { color: var(--sc-muted) !important; transition: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card.card-ai :is(.mode-card-icon, .mode-card-icon svg):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-mc) { color: var(--sc-gold) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:is(.active, .selected):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-mc) { --fill: color-mix(in srgb, var(--mode) 14%, var(--sc-plate)) !important; --frame: var(--mode) !important; --acc: transparent !important; filter: drop-shadow(0 0 14px rgb(from var(--mode) r g b / .32)) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:is(.active, .selected):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-mc) { --fill: color-mix(in srgb, var(--mode) 10%, #ffffff) !important; --frame: var(--mode-text) !important; filter: drop-shadow(0 3px 8px rgb(18 23 20 / .14)) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:is(.active, .selected) :is(.mode-card-icon, .mode-card-icon svg):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-mc) { color: var(--mode) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:is(.active, .selected) :is(.mode-card-icon, .mode-card-icon svg):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-mc) { color: var(--mode-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:not(.active, .selected):hover:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-mc) { --frame: rgb(from var(--mode) r g b / .7) !important; --fill: var(--sc-raised) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:not(.active, .selected):hover:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-mc) { --frame: var(--mode-text) !important; --fill: #ffffff !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:is(.active, .selected):hover:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-mc) { --fill: color-mix(in srgb, var(--mode) 20%, var(--sc-plate)) !important; --frame: var(--mode) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card:is(.active, .selected):hover:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-mc) { --fill: color-mix(in srgb, var(--mode) 15%, #ffffff) !important; --frame: var(--mode-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .mode-card :is(.mode-card-title, .mode-card-sub, *):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-mc) { transition: none !important; }

/* Game over: the stats sit on the same width as the buttons, one gap, cut tiles; the MVP line is a
   value, not a headline. Play again keeps its lime but loses the halo (glow is for live board state). */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stats-grid:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: 100% !important; max-width: none !important; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; margin: 0 0 var(--sc-s-4) !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; clip-path: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stats-grid:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::before, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stats-grid:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::after { display: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { margin: 0 !important; min-width: 0 !important; padding: var(--sc-s-3) var(--sc-s-2) !important; display: grid !important; gap: 4px !important; justify-items: center !important; background: var(--sc-raised) !important; border: 0 !important; box-shadow: none !important; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { background: #ffffff !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box.go-stat-mvp:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { grid-column: 1 / -1 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box .stat-num:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { font-size: 28px !important; line-height: 1 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box.go-stat-mvp .stat-num:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { font-size: 20px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal #btn-go-restart:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .btn-primary:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { filter: none !important; box-shadow: none !important; }

/* Battle die (pass 5). Light mode lights the same object with daylight: the viewport is a light
   well (it was a black box), the badges and captions use the light inks. Hover is the original's:
   the die itself lights up in its faction colour and grows a touch; the viewport frame stays still
   and no box is drawn around it. */
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --fill: radial-gradient(closest-side, #ffffff, #e6eae3); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-prompt-badge:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --fill: rgb(255 255 255 / .92); --frame: rgb(var(--sc-fg-rgb) / .38); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen :is(.p1-widget, .p1-matrix) .bg3-prompt-badge:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --frame: var(--sc-p1-text); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen :is(.p2-widget, .p2-matrix) .bg3-prompt-badge:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --frame: var(--sc-p2-text); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-prompt-badge:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) :is(.bg3-prompt-text, *) { color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-prompt-badge .bg3-prompt-dot:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { background: var(--sc-signal) !important; outline: 1px solid rgb(var(--sc-fg-rgb) / .5) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget:hover .bg3-prompt-badge:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --fill: #ffffff; --frame: var(--sc-text); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p1-widget :is(.bg3-effect-text, .bg3-final-boost):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-p1-text) !important; -webkit-text-fill-color: var(--sc-p1-text) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p2-widget :is(.bg3-effect-text, .bg3-final-boost):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-p2-text) !important; -webkit-text-fill-color: var(--sc-p2-text) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget .bg3-effect-desc:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--sc-muted) !important; -webkit-text-fill-color: var(--sc-muted) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --frame: rgb(var(--sc-fg-rgb) / .16); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget:is(:hover, :focus-visible):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-bd) { --frame: rgb(var(--sc-fg-rgb) / .16); --fill: radial-gradient(closest-side, #1f2725, #0c0f0e); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget:is(:hover, :focus-visible):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-bd) { --fill: radial-gradient(closest-side, #ffffff, #e6eae3); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget .bg3-die-container:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { transition: scale .28s var(--sc-ease-out), filter .28s var(--sc-ease-out) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-battle-die-widget:not(.is-locked):hover .bg3-die-container:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { scale: 1.06; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p1-widget.bg3-battle-die-widget:not(.is-locked):hover .bg3-die-container:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { filter: drop-shadow(0 0 22px rgb(var(--sc-p1-rgb) / .8)) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p2-widget.bg3-battle-die-widget:not(.is-locked):hover .bg3-die-container:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { filter: drop-shadow(0 0 22px rgb(var(--sc-p2-rgb) / .8)) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p1-widget.bg3-battle-die-widget:not(.is-locked):hover .bg3-die-container:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { filter: drop-shadow(0 0 14px rgb(var(--sc-p1-rgb) / .55)) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .p2-widget.bg3-battle-die-widget:not(.is-locked):hover .bg3-die-container:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { filter: drop-shadow(0 0 14px rgb(var(--sc-p2-rgb) / .55)) !important; }

/* ============================================================== CODEX (pass 7)
   One continuous page that follows the printed rulebook. Desktop: a chapter rail on the left (it jumps to
   a chapter and marks the one being read) and the chapters flowing on the right, so no chapter sits in a
   half-empty box. Phone: the rail is the tab strip beside sound and close.
   Hierarchy: outlined chapter number and 30px title in the chapter's accent ink, a 16px lede, then cards
   with a 3px accent edge, 17px caps titles, 15px body. Icons are masks in the accent colour. */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) {
  --cx-teal: #52c8d2; --cx-sky: #84b8f0; --cx-plum: #c4a0ff; --cx-gold: var(--sc-gold); --cx-gold-t: var(--sc-gold-text);
  --cx-card: var(--sc-raised); --cx-ink: var(--sc-text); --cx-muted: var(--sc-muted);
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --cx-teal: #0e6670; --cx-sky: #1b5996; --cx-plum: #6338a8; --cx-card: #eef1ea; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.cx, .cx-rail) [data-acc='teal']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-acc='teal']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --a: var(--cx-teal); --at: var(--cx-teal); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.cx, .cx-rail) [data-acc='sky']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --a: var(--cx-sky); --at: var(--cx-sky); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.cx, .cx-rail) [data-acc='plum']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --a: var(--cx-plum); --at: var(--cx-plum); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.cx, .cx-rail) [data-acc='gold']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --a: var(--cx-gold); --at: var(--cx-gold-t); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-acc='p2']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --a: var(--sc-p2); --at: var(--sc-p2-text); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-acc='cz']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --a: color-mix(in srgb, var(--sc-gold) 55%, transparent); --at: var(--cx-gold-t); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-rail:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --cx-teal: #52c8d2; --cx-sky: #84b8f0; --cx-plum: #c4a0ff; --cx-gold: var(--sc-gold); --cx-gold-t: var(--sc-gold-text); }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-rail:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --cx-teal: #0e6670; --cx-sky: #1b5996; --cx-plum: #6338a8; }
/* icon sources: declared here so the relative URL resolves from this stylesheet */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='aether']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/aether.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='d10']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/d10.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='d12']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/d12.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='d20']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/d20.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='d4']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/d4.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='d6']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/d6.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='d8']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/d8.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='double_power']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/double_power.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='equilibrium']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/equilibrium.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='evade']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/evade.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='indestructible']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/indestructible.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='momentum']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/momentum.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='reversal']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/reversal.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='self_destruct']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/self_destruct.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx [data-ico='swap']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { --src: url('../assets/svgs/swap.svg'); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx :where(h3, h4, p, ul, ol, li, figure, figcaption, section, header, article):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; text-shadow: none; letter-spacing: 0; text-transform: none; }

/* the page: every chapter is shown; the rail scrolls to it */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: block !important; padding-bottom: 40px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx .codex-tab-panel:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid !important; gap: 16px; align-content: start; height: auto !important; min-height: 0 !important; max-height: none !important; position: relative !important; inset: auto !important; overflow: visible !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx .codex-tab-panel + .codex-tab-panel:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { margin-top: 56px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx strong:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--cx-ink) !important; -webkit-text-fill-color: var(--cx-ink) !important; font-weight: 650 !important; }

/* chapter header: outlined index, title, lede */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-head:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: end; padding-bottom: 16px; border-bottom: 1px solid var(--sc-line); position: relative; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-head:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 64px; height: 3px; background: var(--a); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-head > div:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; gap: 8px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-num:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { font: 700 52px/.82 var(--sc-font-ui) !important; color: transparent !important; -webkit-text-fill-color: transparent !important; -webkit-text-stroke: 1.5px var(--a); font-variant-numeric: tabular-nums; letter-spacing: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-title:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { font: 700 30px/1.05 var(--sc-font-ui) !important; letter-spacing: .05em !important; text-transform: uppercase !important; color: var(--at) !important; -webkit-text-fill-color: var(--at) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-lede:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { font: 400 16px/1.55 var(--sc-font-body) !important; color: var(--cx-ink) !important; -webkit-text-fill-color: var(--cx-ink) !important; max-width: 74ch; }

/* cards and rows */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.cx-card, .cx-row, .cx-face, .cx-zone, .cx-effects):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { position: relative; display: grid; gap: 12px; align-content: start; padding: 18px 20px 20px 23px; background: var(--cx-card); box-shadow: inset 3px 0 0 var(--a); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); min-width: 0; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.cx-card, .cx-row, .cx-face, .cx-zone, .cx-effects):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { box-shadow: inset 3px 0 0 var(--a), inset 0 0 0 1px rgb(var(--sc-fg-rgb) / .1); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-card-title:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: flex; align-items: center; gap: 12px; font: 700 17px/1.2 var(--sc-font-ui) !important; letter-spacing: .09em !important; text-transform: uppercase !important; color: var(--at) !important; -webkit-text-fill-color: var(--at) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx :is(.cx-card, .cx-row, .cx-face, .cx-zone, .cx-effect) p:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-list li:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { font: 400 15px/1.6 var(--sc-font-body) !important; color: var(--cx-ink) !important; -webkit-text-fill-color: var(--cx-ink) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-row:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-row-body:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; gap: 10px; }

/* icon tiles */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-ico:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { flex: none; width: 64px; height: 64px; display: grid; place-items: center; background: color-mix(in srgb, var(--a) 15%, transparent); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-ico svg:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: 38px; height: 38px; fill: none; stroke: var(--a); stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-ico svg circle:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: var(--a); stroke: none; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-mask:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: block; width: 40px; height: 40px; background: var(--a); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }

/* lists */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-list:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { list-style: none; display: grid; gap: 8px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-list li:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { position: relative; padding-left: 20px; list-style: none; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-list li:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::before { content: ''; position: absolute; left: 2px; top: .66em; width: 7px; height: 7px; background: var(--a); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-list li ul:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { list-style: none; display: grid; gap: 6px; margin-top: 6px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-list li li:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::before { background: none; box-shadow: inset 0 0 0 1.5px var(--a); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx p.cx-callout:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { padding: 12px 14px !important; background: color-mix(in srgb, var(--a) 12%, transparent) !important; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }

/* Dominion: two equal cards, each led by a figure plate of the same height */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-pair:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-plate:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { position: relative; height: 140px; display: grid; place-items: center; background: color-mix(in srgb, var(--a) 9%, transparent); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-plate figcaption:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { position: absolute; right: 12px; bottom: 10px; font: 700 12px/1 var(--sc-font-ui) !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: var(--cx-muted) !important; -webkit-text-fill-color: var(--cx-muted) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-plate figcaption b:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { font-size: 20px; color: var(--at) !important; -webkit-text-fill-color: var(--at) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-cz:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { height: 112px; width: auto; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-cz .cx-cz-free:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: rgb(var(--sc-fg-rgb) / .05); stroke: rgb(var(--sc-gold-rgb) / .7); stroke-width: 1.5; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-cz .cx-cz-held:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: rgb(var(--sc-p1-rgb) / .3); stroke: var(--sc-p1); stroke-width: 1.5; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-cz .cx-cz-die:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: var(--sc-p1); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-cz .cx-cz-core:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: rgb(var(--sc-gold-rgb) / .3); stroke: var(--sc-gold); stroke-width: 2; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-cz .cx-cz-dot:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: var(--sc-gold); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-tokens:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: flex; gap: 14px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-tokens span:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: 46px; height: 53px; background: var(--a); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); position: relative; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-tokens span:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::after { content: ''; position: absolute; inset: 9px 8px; background: color-mix(in srgb, var(--a) 55%, var(--cx-card)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* Scalar Core faces, 2 x 2 at equal height */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-faces:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-face:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: center; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-face > div:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; gap: 8px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-hexico:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: 84px; height: 96px; display: grid; place-items: center; background: var(--a); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); position: relative; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-hexico:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::before { content: ''; position: absolute; inset: 3px; background: var(--cx-card); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-hexico .cx-mask:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { position: relative; width: 56px; height: 56px; -webkit-mask-size: 170%; mask-size: 170%; }

/* Hex Board (unchanged composition) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board-wrap:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-figure:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; place-items: center; padding: 16px; background: var(--cx-card); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: 100%; max-width: 420px; height: auto; max-height: 340px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board polygon:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { stroke-width: 2; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board .cx-hx-mid:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: rgb(var(--sc-fg-rgb) / .05); stroke: rgb(var(--sc-fg-rgb) / .24); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board .cx-hx-p1:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: rgb(var(--sc-p1-rgb) / .28); stroke: var(--sc-p1); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board .cx-hx-p2:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: rgb(var(--sc-p2-rgb) / .28); stroke: var(--sc-p2); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board .cx-hx-cz:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: rgb(var(--sc-gold-rgb) / .16); stroke: rgb(var(--sc-gold-rgb) / .75); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board .cx-hx-core:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: rgb(var(--sc-gold-rgb) / .34); stroke: var(--sc-gold); stroke-width: 3; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board .cx-core-ring:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: none; stroke: var(--sc-gold); stroke-width: 5; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board .cx-core-dot:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { fill: var(--sc-gold); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-legend:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; gap: 10px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zone:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zone > div:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; gap: 6px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-swatch:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: 22px; height: 25px; margin-top: 1px; background: var(--a); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zone[data-acc='p2'] .cx-swatch:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { background: linear-gradient(90deg, var(--sc-p1) 50%, var(--sc-p2) 50%); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zone[data-acc='p2']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { box-shadow: inset 3px 0 0 var(--sc-p1); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zone[data-acc='p2'] .cx-card-title:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { color: var(--cx-ink) !important; -webkit-text-fill-color: var(--cx-ink) !important; }

/* Unit Dice: three classes, each led by its two dice */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-classes:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-dice:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-die:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; justify-items: center; gap: 10px; padding: 16px 8px 12px; background: color-mix(in srgb, var(--a) 9%, transparent); clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-die .cx-mask:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: 76px; height: 76px; -webkit-mask-size: 250%; mask-size: 250%; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-die figcaption:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { font: 700 16px/1 var(--sc-font-ui) !important; letter-spacing: .08em !important; color: var(--cx-ink) !important; -webkit-text-fill-color: var(--cx-ink) !important; display: flex; gap: 8px; align-items: center; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-die figcaption b:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { font-size: 12px; color: var(--at) !important; -webkit-text-fill-color: var(--at) !important; letter-spacing: 0; }

/* Battle Dice: the boost scale, then the five effects stacked as in the book */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-boosts:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-boosts span:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { height: 42px; display: grid; place-items: center; font: 700 18px/1 var(--sc-font-ui) !important; color: var(--cx-plum) !important; -webkit-text-fill-color: var(--cx-plum) !important; background: color-mix(in srgb, var(--cx-plum) 12%, transparent); font-variant-numeric: tabular-nums; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-effects:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { padding: 6px 20px 6px 23px; gap: 0; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-effect:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid; grid-template-columns: 64px minmax(150px, 200px) minmax(0, 1fr); gap: 20px; align-items: center; padding: 14px 0; border-top: 1px solid var(--sc-line); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-effect:first-child:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { border-top: 0; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-triico .cx-mask:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: 64px; height: 64px; }

/* codex card titles: an outline label in the accent colour (no fill), sized to its text */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx .cx-card-title:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { justify-self: start; align-self: start; width: fit-content; max-width: 100%; padding: 5px 11px 4px; background: none !important; border: 1.5px solid var(--a) !important; box-shadow: none !important; font-size: 14px !important; letter-spacing: .12em !important; line-height: 1.2 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx .cx-card-title:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::after { display: none !important; }

/* rail (desktop): chapters as a column of the button atom, each with its accent mark */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-card:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid !important; grid-template-columns: 196px minmax(0, 1fr) !important; grid-template-rows: auto minmax(0, 1fr) !important; column-gap: 28px !important; row-gap: 18px !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-header-bar:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { grid-column: 1 / -1 !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tabs-bar.cx-rail:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { grid-column: 1 !important; grid-row: 2 !important; align-self: stretch !important; height: auto !important; max-height: none !important; display: flex !important; flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; gap: 6px !important; overflow: visible !important; padding: 0 !important; margin: 0 !important; border: 0 !important; width: auto !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tabs-bar.cx-rail:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::before, html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tabs-bar.cx-rail:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::after { display: none !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-rail .codex-tab-btn:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { flex: 0 0 auto !important; height: 44px !important; max-height: 44px !important; width: 100% !important; min-height: 44px !important; justify-content: flex-start !important; text-align: left !important; padding-inline: 14px !important; font-size: 12px !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-content-container.cx:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { grid-column: 2 !important; grid-row: 2 !important; min-height: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-dot:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: inline-block !important; flex: none; width: 8px !important; height: 8px !important; margin-right: 12px; background: var(--a); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-rail .codex-tab-btn.active .cx-dot:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { box-shadow: 0 0 0 2px var(--cx-card, var(--sc-raised)); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-rail-stripe:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { margin-top: auto; display: grid; gap: 4px; padding: 0 2px 4px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-rail-stripe i:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: block; height: 4px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-rail-stripe i:nth-child(1):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: 100%; background: var(--sc-p1); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-rail-stripe i:nth-child(2):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: 72%; background: var(--sc-gold); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-rail-stripe i:nth-child(3):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: 44%; background: var(--sc-p2); }
@media (max-width: 1100px) { html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-classes:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { grid-template-columns: minmax(0, 1fr); } }

/* Codex, pass 8 (user): wider, calmer, the game's own symbols, tighter chapter heads */
@media (min-width: 1101px) {
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .modal-card:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { width: min(1320px, calc(100vw - 96px)) !important; max-width: none !important; height: min(860px, calc(100dvh - 40px)) !important; }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-card:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { grid-template-columns: 212px minmax(0, 1fr) !important; column-gap: 40px !important; }
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-rail-stripe:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { display: none !important; }
/* chapter head: the number sits level with the title, the lede runs under the title */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-head:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { align-items: start !important; column-gap: 20px !important; padding-bottom: 18px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-num:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { font-size: 40px !important; line-height: 30px !important; margin-top: 1px; -webkit-text-stroke-width: 1.25px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-title:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { line-height: 30px !important; font-size: 28px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-head > div:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { gap: 10px !important; }
/* icon tiles hold the game's symbols (masks), no tinted plate */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-ico:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { background: none !important; clip-path: none !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--a) 45%, transparent); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-ico .cx-mask:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { width: 44px; height: 44px; }
/* the three action symbols read at one optical size (their artboards differ: measured glyph bounds) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-ico .cx-mask[data-ico='d6']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { -webkit-mask-size: 218%; mask-size: 218%; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-ico .cx-mask[data-ico='momentum']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { -webkit-mask-size: 140%; mask-size: 140%; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-ico .cx-mask[data-ico='double_power']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { -webkit-mask-size: 104%; mask-size: 104%; }
/* Dominion tokens: the site's green, like the tokens in the match */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-tokens-green:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { --a: var(--sc-signal-text); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-card:has(.cx-tokens-green) .cx-plate figcaption b:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { color: var(--sc-signal-text) !important; -webkit-text-fill-color: var(--sc-signal-text) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-card:has(.cx-tokens-green) .cx-plate:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { background: color-mix(in srgb, var(--sc-signal-text) 7%, transparent) !important; }
/* Hex board legend: each zone keyed by a small board hex (deploy: the two colours with the entry arrow;
   control: the gold ring hex; core: the Aether symbol) and an outline label */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zone:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { grid-template-columns: 40px minmax(0, 1fr) !important; gap: 16px !important; align-items: start !important; box-shadow: inset 3px 0 0 var(--a) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zone[data-acc='p2']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { box-shadow: inset 3px 0 0 var(--sc-p1) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zone[data-acc='p2'] .cx-card-title:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { border-color: rgb(var(--sc-fg-rgb) / .5) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { position: relative; width: 40px; height: 46px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico-deploy:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { background: linear-gradient(90deg, var(--sc-p1) 50%, var(--sc-p2) 50%); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico-deploy:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::before { content: ''; position: absolute; inset: 2px; background: var(--cx-card); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico-deploy i:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border-block: 6px solid transparent; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico-deploy i:first-child:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { left: 9px; border-left: 8px solid var(--sc-p1); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico-deploy i:last-child:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { right: 9px; border-right: 8px solid var(--sc-p2); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico-cz:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { background: rgb(var(--sc-gold-rgb) / .75); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico-cz:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::before { content: ''; position: absolute; inset: 2px; background: color-mix(in srgb, var(--sc-gold) 16%, var(--cx-card)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico-core:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { background: var(--sc-gold); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico-core:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)::before { content: ''; position: absolute; inset: 2px; background: color-mix(in srgb, var(--sc-gold) 30%, var(--cx-card)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico-core .cx-mask:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { position: relative; width: 26px; height: 26px; --a: var(--sc-gold); -webkit-mask-size: 150%; mask-size: 150%; }
/* Unit Dice: the class label leads the card, then its two dice, then the text */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-class .cx-card-title:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { order: -1; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-class:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { display: flex !important; flex-direction: column; gap: 14px; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-die figcaption b:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { font-size: 11px; letter-spacing: -.1em; }

/* battle effects: icon, label and line share one centre line */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx .cx-effect:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) { align-items: center !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx .cx-effect:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c8) > * { align-self: center !important; margin-block: 0 !important; }
/* battle panel: "Battle die" is a plain caption like "Unit" above it, not a filled chip */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .cb-battle-die-pill:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { background: none !important; clip-path: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .cb-battle-die-pill .fht-text:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9), html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen :is(#cb-p1-roll-title, #cb-p2-roll-title) .fht-text:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { font-family: var(--sk-body) !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: .12em !important; color: var(--sk-muted) !important; -webkit-text-fill-color: var(--sk-muted) !important; }
/* tablet header plates are narrower: the portrait die moves toward the name and steps down a size,
   so it no longer covers the first control-token pip */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) body.tablet-match-active #game-screen #hud-p1 .plaque-mascot:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { translate: -14px 0; scale: .88; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) body.tablet-match-active #game-screen #hud-p2 .plaque-mascot:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { translate: 14px 0; scale: .88; }
/* phone lobby: Tactical tutorial + Rules codex share the mode cards' column exactly (they overflowed it by 14px) */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content > div:has(> #btn-start-tutorial):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { display: grid !important; grid-template-columns: auto auto !important; justify-content: space-between !important; column-gap: 8px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content > div:has(> #btn-start-tutorial) > .btn:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { width: auto !important; min-width: 0 !important; margin: 0 !important; padding-inline: 8px !important; letter-spacing: .04em !important; }
/* phone menu dock: Exit and Game log read like Codex / Dark / Audio (symbol above a 12px label) */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).phone-match-active #main-nav .phone-navigation-settings #btn-exit-game:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { flex-direction: column !important; gap: 2px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).phone-match-active #main-nav .phone-navigation-settings #btn-exit-game .phone-navigation-control-label:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { font-size: 12px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #main-nav .phone-navigation-settings #phone-log-toggle:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { font-size: 12px !important; gap: 2px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #main-nav .phone-navigation-settings #phone-log-toggle:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9)::after { content: '' !important; display: block !important; position: static !important; order: -1 !important; width: 20px !important; height: 20px !important; inset: auto !important; border: 0 !important; background: currentColor !important; clip-path: none !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 6h16M4 12h16M4 18h10'/%3E%3C/svg%3E") center / contain no-repeat !important; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 6h16M4 12h16M4 18h10'/%3E%3C/svg%3E") center / contain no-repeat !important; }
/* battle result line: body type like every other explanation (it was 11px bold) */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-effect-desc:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9), html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .bg3-effect-desc:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) * { font-weight: 400 !important; font-size: 13px !important; line-height: 1.45 !important; }
/* battle Accept / Evade choices sit prominently centered beside the combat summary inside the action bar */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active #game-screen #action-bar:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  padding-inline: 18px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active #game-screen #action-bar .bar-center-container:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: min(560px, calc(100% - 200px)) !important;
  padding-right: 0 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active #game-screen #action-bar #combat-result-container:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) {
  text-align: center !important;
  align-items: center !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen #action-bar > :is(#btn-combat-done, #evade-decision-container):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active #game-screen #action-bar > #btn-combat-done:not(:disabled):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9),
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).combat-active #game-screen #action-bar > #evade-decision-container #btn-evade-yes:not(:disabled):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9),
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #btn-core-ok:not(:disabled):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9),
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.popup-settled .popup-actions .btn-primary:not(:disabled):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) {
  min-height: 36px !important;
  padding-inline: 20px !important;
  font-weight: 800 !important;
  animation: sc-accept-pulse 1.7s ease-in-out infinite !important;
}
/* phone codex: the chapter strip scrolls sideways, so its ends fade instead of cutting a word in half */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tabs-bar:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
/* Scalar Core result: "Accept outcome" spans the card like every other modal's main action */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #btn-core-ok:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { max-width: none !important; width: 100% !important; }
/* tutorial: keep the Core chamber well clear of the top tutorial banner while staying visually centered */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).tutorial-active #core-modal .core-chamber-card:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { margin-top: 68px !important; }
/* Desktop #core-modal: centered 2-column chamber with 4-icon strip & live spin indicator */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal:not(#sc-d0) {
  display: none;
  align-items: center !important;
  justify-content: center !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal.active:not(#sc-d0) {
  display: flex !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-chamber-card:not(#sc-d0) {
  --desk-core-die: clamp(190px, 24vh, 236px);
  display: grid !important;
  grid-template-columns: var(--desk-core-die) minmax(0, 1fr) !important;
  grid-template-rows: auto var(--desk-core-die) auto !important;
  gap: 18px 34px !important;
  align-items: center !important;
  justify-items: stretch !important;
  width: min(760px, calc(100vw - 80px)) !important;
  max-width: 760px !important;
  padding: 24px 30px 22px !important;
  margin-inline: auto !important;
  overflow: visible !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-hud-header:not(#sc-d0) {
  grid-area: 1 / 1 / 2 / 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgb(var(--sc-fg-rgb) / .14) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-d4-widget:not(#sc-d0) {
  grid-area: 2 / 1 / 3 / 2 !important;
  position: relative !important;
  width: var(--desk-core-die) !important;
  height: var(--desk-core-die) !important;
  margin: 0 !important;
  cursor: pointer !important;
  align-self: center !important;
  justify-self: center !important;
  overflow: visible !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-die-container:not(#sc-d0) {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  place-items: center !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-3d-canvas:not(#sc-d0) {
  width: 88% !important;
  height: 88% !important;
  aspect-ratio: 1 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-face-symbol:not(#sc-d0) {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  translate: -50% -50% !important;
  transform: none !important;
  width: calc(var(--desk-core-die) * .48) !important;
  height: calc(var(--desk-core-die) * .48) !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: rgb(14 17 16 / .88) !important;
  box-shadow: 0 0 0 1.5px rgb(var(--sc-gold-rgb) / .82), 0 0 22px rgb(var(--sc-gold-rgb) / .38) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-face-symbol:not(#sc-d0) svg {
  width: 68% !important;
  height: 68% !important;
  display: block !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-face-symbol:not(#sc-d0) svg :is(path, polygon, circle, rect) {
  fill: var(--sc-gold) !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-face-symbol:not(#sc-d0) {
  background: rgb(244 246 241 / .92) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-chamber-card:not(.is-rolled) .core-face-symbol:not(#sc-d0) {
  display: none !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-prompt-badge:not(#sc-d0) {
  display: none !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-outcome-section:not(#sc-d0) {
  grid-area: 2 / 2 / 3 / 3 !important;
  align-self: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
  text-align: left !important;
  min-width: 0 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-outcome-section:not(#sc-d0)::before {
  content: 'SCALAR CORE';
  font: 700 11px/1 var(--sc-font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sc-muted);
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #rm-core-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal :is(#core-modal-title, #rm-core-copy b) {
  font: 800 clamp(26px, 3.6vh, 34px)/1.06 var(--sc-font-display) !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: var(--sc-gold) !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  text-align: left !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal :is(#core-modal-title, #rm-core-copy b, #rm-core-faces span.on) {
  color: #8a6512 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal :is(#core-modal-desc, #rm-core-copy span) {
  font: 400 15px/1.48 var(--sc-font-body) !important;
  color: var(--sc-text) !important;
  text-align: left !important;
  margin: 0 !important;
  max-width: 42ch !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #rm-core-copy span {
  color: var(--sc-muted) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-chamber-card.is-rolled #rm-core-copy {
  display: none !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-chamber-card:not(.is-rolled) :is(#core-modal-title, #core-modal-desc) {
  display: none !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #rm-core-faces {
  grid-area: 3 / 1 / 4 / 3 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(180px, 28%) !important;
  align-items: center !important;
  gap: 10px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgb(var(--sc-fg-rgb) / .14) !important;
  align-self: end !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #rm-core-faces span {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 6px 4px 4px;
  position: relative;
  font: 700 10.5px/1 var(--sc-font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sc-muted);
  opacity: .7;
  transition: color .12s, opacity .12s;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #rm-core-faces span::after {
  content: '';
  position: absolute;
  left: 26%;
  right: 26%;
  bottom: -4px;
  height: 2px;
  background: transparent;
  transition: background .12s;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #rm-core-faces :is(i, svg) {
  display: block;
  width: 32px;
  height: 32px;
  color: inherit;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #rm-core-faces i {
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #rm-core-faces span.on {
  color: var(--sc-gold) !important;
  opacity: 1 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #rm-core-faces span.on::after {
  background: var(--sc-gold) !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #rm-core-faces span.on::after {
  background: #8a6512 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #core-action-container:not(#sc-d0) {
  grid-area: 3 / 2 / 4 / 3 !important;
  justify-self: end !important;
  align-self: end !important;
  margin: 0 !important;
  width: auto !important;
  position: relative !important;
  z-index: 2 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal #btn-core-ok:not(#sc-d0) {
  width: auto !important;
  min-width: 170px !important;
  min-height: 44px !important;
  padding: 0 24px !important;
}
/* Training complete: one readable column (it stretched to 1370px with 11px copy), no box inside the box */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-completion-modal .tut-modal-card:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { width: min(780px, calc(100vw - 96px)) !important; max-width: 780px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-completion-modal .codex-spotlight-box:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { background: none !important; clip-path: none !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-completion-modal .codex-spotlight-box:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9)::before, html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-completion-modal .codex-spotlight-box:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9)::after { display: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-completion-modal .csb-tag:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { font-size: 12px !important; letter-spacing: .12em !important; margin-bottom: 6px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-completion-modal :is(.csb-description, .csb-card p):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { font-size: 13px !important; line-height: 1.5 !important; }
/* phone game over: stat labels keep air inside their boxes ("Eliminations" touched both edges) */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .stat-lbl:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { letter-spacing: .06em !important; font-size: 10px !important; }
/* light theme: the Core chamber stage is warm porcelain/ivory, so the rolled symbol uses deep amber gold ink */
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-face-symbol svg:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9), html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-face-symbol svg:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) * { color: #7a5400 !important; fill: #7a5400 !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #core-modal .core-face-symbol svg:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { filter: drop-shadow(0 2px 10px rgb(138 101 18 / .25)) !important; }
/* phone tutorial sheets: "Close" reads like the rules sheet's CLOSE (one frame, caps UI type), not a doubled outline */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-rule-close:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { border: 0 !important; box-shadow: none !important; outline-offset: 2px; font-family: var(--sc-font-ui) !important; font-weight: 700 !important; font-size: 12px !important; letter-spacing: .12em !important; text-transform: uppercase !important; }
/* phone tutorial briefings: the title uses the same UI caps as the rules / training sheets (it was the display face),
   and the explanation follows the title instead of floating mid-card */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #phone-tutorial-briefing .phone-briefing-title:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { font-family: var(--sc-font-ui) !important; font-weight: 700 !important; font-size: clamp(18px, 3vw, 24px) !important; letter-spacing: .1em !important; line-height: 1.2 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #phone-tutorial-briefing .phone-briefing-copy:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { align-self: start !important; }
/* codex, pass 9 (comments): zone hexes are bigger and each title sits on its hex's centre line;
   the Dominion plates are taller, with bigger tokens */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zone:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { grid-template-columns: 56px minmax(0, 1fr) !important; column-gap: 18px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zone > div:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { grid-template-rows: 64px auto !important; row-gap: 4px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zone > div > .cx-card-title:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { align-self: center !important; margin: 0 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { width: 56px !important; height: 64px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico-deploy i:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { margin-top: -8px !important; border-block-width: 8px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico-deploy i:first-child:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { left: 13px !important; border-left-width: 11px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico-deploy i:last-child:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { right: 13px !important; border-right-width: 11px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-zico-core .cx-mask:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { width: 36px !important; height: 36px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-plate:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { height: 210px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-cz:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { height: 170px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-tokens:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { gap: 20px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-tokens span:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { width: 66px !important; height: 76px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-tokens span:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9)::after { inset: 13px 11px !important; }
/* codex, pass 9b (comments): the board figure fills the height of the three zone cards beside it, its deploy hexes
   carry the in-game arrows, and the five battle effects are separate plates with air between them (like the +0…+9 row) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board-wrap:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { align-items: stretch !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board-wrap > .cx-figure:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { height: 100% !important; padding: 20px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board .cx-hx-arrow:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { stroke: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board .cx-hx-p1-arrow:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { fill: var(--sc-p1) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-board .cx-hx-p2-arrow:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { fill: var(--sc-p2) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-effects:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { background: none !important; box-shadow: none !important; clip-path: none !important; padding: 0 !important; gap: 10px !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-effect:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { padding: 16px 20px 16px 23px !important; border-top: 0 !important; background: var(--cx-card) !important; box-shadow: inset 3px 0 0 var(--a) !important; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-effect:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { box-shadow: inset 3px 0 0 var(--a), inset 0 0 0 1px rgb(var(--sc-fg-rgb) / .1) !important; }
/* launch audit: phone action row and Rules/menu dock share the dice panel width */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).phone-match-active:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { --phone-dock-width: var(--phone-reserve-width) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).phone-match-active:not(.combat-active) #action-bar .act-btn:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { min-width: 0 !important; padding: 2px !important; }
/* phone: one header row (tabs beside sound and close), one column */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-rail-stripe:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.cx-pair, .cx-faces, .cx-board-wrap, .cx-classes):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { grid-template-columns: minmax(0, 1fr); }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-boosts:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-effect:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-effect .cx-triico:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { grid-row: span 2; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-num:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { font-size: 40px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-title:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { font-size: 22px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .modal-card:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { height: calc(100dvh - 16px) !important; max-height: calc(100dvh - 16px) !important; padding: 12px 16px 12px !important; gap: 10px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-header-left:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-header-bar:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { position: static !important; height: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-header-actions:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { position: absolute !important; top: 12px !important; right: 16px !important; left: auto !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tabs-bar:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { margin: 0 !important; padding: 0 !important; min-height: 44px !important; width: calc(100% - 108px) !important; max-width: calc(100% - 108px) !important; align-self: flex-start !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-tab-btn:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { text-transform: uppercase !important; font-size: 11px !important; letter-spacing: .08em !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .codex-content-container:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { flex: 1 1 auto !important; min-height: 0 !important; }

/* No greebles, part 2: the HUD strip under the viewport frame, the lobby card's hatch band. (The frame stays.) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .v2-hud:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .setup-bg-glass { background: none !important; }
/* No greebles (user, 2026-11-11): the ornament study (corner brackets, ticks, hatches) is removed.
   The --orn slot in the frame recipe stays, empty. */

/* Lobby (pass 7). One live thing: once the roll-off has a result and Initialize is enabled, Initialize is
   the next action and Roll-off steps back to a secondary button. */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-duel-panel:has(:is(#btn-start, #btn-ai-start):not(:disabled)) :is(#btn-rolloff, #btn-ai-rolloff):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-ro) { --fill: var(--sc-plate) !important; --frame: var(--sc-line-strong) !important; color: var(--sc-text) !important; -webkit-text-fill-color: var(--sc-text) !important; filter: none !important; box-shadow: none !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-duel-panel:has(:is(#btn-start, #btn-ai-start):not(:disabled)) :is(#btn-rolloff, #btn-ai-rolloff):hover:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-ro):not(#sc-rh) { --fill: var(--sc-raised) !important; --frame: rgb(var(--sc-fg-rgb) / .62) !important; }
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-duel-panel:has(:is(#btn-start, #btn-ai-start):not(:disabled)) :is(#btn-rolloff, #btn-ai-rolloff):hover:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-ro):not(#sc-rh) { --fill: #ffffff !important; }
/* the tutorial and codex links sit in the card's top-right corner, out of the mode tiles' way (desktop) */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content > div:has(> #btn-start-tutorial):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { position: absolute !important; top: 0 !important; right: 0 !important; left: auto !important; margin: 0 !important; width: auto !important; flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; gap: 8px !important; z-index: 3 !important; }
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content > div:has(> #btn-start-tutorial) > .btn:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { justify-content: flex-start !important; width: 100% !important; min-width: 0 !important; margin: 0 !important; }
/* short landscape windows use the two-column lobby: the links sit in the left column under the mode cards */
@media (min-width: 700px) and (min-height: 600px) and (max-height: 740px) and (orientation: landscape) {
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content > div:has(> #btn-start-tutorial):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-sl) { position: static !important; grid-column: 1 !important; grid-row: 3 !important; flex-direction: row !important; align-self: end !important; gap: 8px !important; }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .subscribe-content > div:has(> #btn-start-tutorial) > .btn:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-sl) { width: auto !important; flex: 1 1 0 !important; }
}
/* short desktop windows: the header tools in the right gutter shrink so they clear the right-hand rail */
@media (min-width: 1201px) and (max-height: 800px) and (hover: hover) and (pointer: fine) {
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-site-audio .ghdr-right:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-sl) { gap: 6px !important; }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-site-audio :is(.audio-toggle-btn, .btn-exit-round):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-sl) { width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-site-audio:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-sl) { right: 34px !important; top: calc(var(--game-site-header-height, 102px) + 10px) !important; }
}

/* the active codex chapter keeps its inverted look under the pointer, in both themes */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .modal .codex-tab-btn.active:is(:hover, :focus-visible):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-ca) { --fill: color-mix(in srgb, var(--sc-signal) 88%, #ffffff) !important; --frame: var(--sc-signal) !important; color: var(--sc-signal-ink) !important; -webkit-text-fill-color: var(--sc-signal-ink) !important; filter: none !important; }

/* Phone action band: the same voice as the desktop band (UI face, caps, tracked) */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .act-btn .act-text:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { font-family: var(--sc-font-ui) !important; font-weight: 700 !important; font-size: 10px !important; text-transform: uppercase !important; letter-spacing: .03em !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reference-toggle:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9), html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .phone-reference-toggle *:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { font-family: var(--sc-font-ui) !important; font-weight: 700 !important; font-size: 13px !important; text-transform: uppercase !important; letter-spacing: .1em !important; }

/* Phone reserve tiles: the die glyph sits centred above its label instead of under it */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .phone-reserve-carousel .die-chip .chip-svg:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { width: 84% !important; height: 84% !important; margin: 0 auto 16% !important; align-self: center !important; justify-self: center !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .phone-reserve-carousel .die-chip:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { display: grid !important; place-items: center !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip .phone-die-label:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { font-family: var(--sc-font-ui) !important; font-weight: 700 !important; font-size: 11px !important; letter-spacing: .06em !important; color: var(--sc-muted) !important; right: 6px !important; bottom: 5px !important; }


/* =================================================================== PHONE APP SKIN */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) { --sc-cut-sm: 0px; --sc-cut-md: 0px; --sc-cut-lg: 0px; --sk-cutL: 0px; --pr: 0px; --pr-s: 0px; --pr-xs: 0px; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .btn:not(.rb-help-icon):not([id^=phone-reserve-]):not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .btn:not(.rb-help-icon):not([id^=phone-reserve-]):not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .act-btn:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .act-btn:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .codex-tab-btn:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .codex-tab-btn:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .phone-reference-toggle:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .phone-reference-toggle:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .phone-rule-close:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .phone-rule-close:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .audio-toggle-btn:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .audio-toggle-btn:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .btn-exit-round:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .btn-exit-round:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .site-header .theme-toggle:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .site-header .theme-toggle:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .site-header .menu-toggle:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .site-header .menu-toggle:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .hud-player.hp1:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .hud-player.hp1:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 var(--c), var(--c) 0, 100% 0, 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .hud-player.hp2:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .hud-player.hp2:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .side-stash.stash-p1:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .side-stash.stash-p1:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .side-stash.stash-p2:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .side-stash.stash-p2:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .die-chip:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 0px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .die-chip:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #log-panel:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #log-panel:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .modal .modal-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .modal .modal-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::after { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .confirm-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .confirm-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::after { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .tut-modal-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .tut-modal-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::after { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .tut-intro-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .tut-intro-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::after { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .tut-rule-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .tut-rule-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .csb-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .csb-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #core-modal #interactive-core-d4:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #core-modal #interactive-core-d4:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #core-tooltip:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #core-tooltip:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .sc-tip-float:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .sc-tip-float:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .combat-matrix-cell:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .combat-matrix-cell:not(#sc-f1):not(#sc-f2):not(#sc-f3)::after { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .bg3-battle-die-widget:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 0px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .bg3-battle-die-widget:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .bg3-prompt-badge:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 0px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .bg3-prompt-badge:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #left-sidebar:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #left-sidebar:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #rb-sidebar:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #rb-sidebar:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #setup-screen .mode-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #setup-screen .mode-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::after { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #setup-screen .ro-val:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 0px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #setup-screen .ro-val:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #match-intro-modal .ro-val:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 0px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #match-intro-modal .ro-val:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .intro-ro-box .ro-val:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 0px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .intro-ro-box .ro-val:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .modal div.codex-card-box:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .modal div.codex-card-box:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .modal .codex-special-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .modal .codex-special-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .modal .codex-core-box:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .modal .codex-core-box:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .modal .codex-board-legend:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .modal .codex-board-legend:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .modal .codex-banner-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .modal .codex-banner-card:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .phone-reserve-marker:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 0px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .phone-reserve-marker:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .phone-reserve-detail-close:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .phone-reserve-detail-close:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #tutorial-banner:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #tutorial-banner:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .btn-tut-continue-step:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 10px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .btn-tut-continue-step:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #phone-tutorial-briefing:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 7px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #phone-tutorial-briefing:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .stash-speed-arrows::before { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen .cb-battle-die-pill { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen :is(.cb-role-badge, .player-identity-label, .ai-role-tag:not(.lobby-role-spacer)) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) :is(#setup-screen, #match-intro-modal) .ai-role-tag:not(.lobby-role-spacer) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #setup-screen .setup-bg-layer { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .modal :is(.codex-card-tag, .codex-badge-chip, .codex-badge-mini, .codex-action-tag) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #game-screen > .row-popup .popup-big-val { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .modal .codex-special-icon-box { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #setup-screen .setup-panels-wrapper { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #core-modal .core-prompt-badge:not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) :is(#input-join-code, #input-invite-link, #setup-screen input[type=text]):not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) :is(#game-screen, #setup-screen, .modal) :is([style*='color: #ffd700' i], [style*='color: #00d2ff' i], [style*='color: #c084fc' i])[style*='padding']:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #setup-screen #host-room-info:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #setup-screen #online-active-session-view > .online-box:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #setup-screen #resume-room-banner:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) .phone-reserve-details:not(#sc-q0):not(#sc-q1):not(#sc-q2):not(#sc-q3):not(#sc-q4) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #gameover-modal .go-stat-box:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #tactical-codex-modal :is(.cx-card, .cx-row, .cx-face, .cx-zone, .cx-effects):not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #tactical-codex-modal .cx-ico:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #tactical-codex-modal .cx p.cx-callout:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #tactical-codex-modal .cx-plate:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #tactical-codex-modal .cx-figure:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #tactical-codex-modal .cx-die:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #tactical-codex-modal .cx-boosts span:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) { clip-path: none !important; border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11) #tactical-codex-modal .cx-effect:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) { clip-path: none !important; border-radius: var(--pr-s) !important; }

/* calm surfaces: no outer glows on phone */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) :is(#game-screen, #setup-screen) :is(.hud-player, .side-stash, #action-bar, .act-btn, .die-chip, .phone-reserve-marker, .mode-card, .btn, .combat-matrix-cell, .ai-faction-dice-card, .lobby-faction-card, .bg3-battle-die-widget) { box-shadow: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) :is(#game-screen, #setup-screen) :is(.hud-player, .side-stash, #action-bar, .act-btn, .die-chip, .phone-reserve-marker, .mode-card, .btn, .combat-matrix-cell, .ai-faction-dice-card, .lobby-faction-card, .bg3-battle-die-widget):not(.tut-btn-pulse):not(.tut-beacon-glow):not(.tut-hud-highlight):not(.tut-spotlight-active) { filter: none !important; }
/* roll popup */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen > .row-popup { border-radius: var(--pr) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen > .row-popup::before { --c: 10px; --fw: 1px; --frame: rgb(var(--sk-turn-rgb) / .7); --fill: var(--sc-plate); --acc: transparent; background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen > .row-popup .popup-big-val { border-radius: var(--pr-s) !important; }
/* the reserve toggle is a hit area, it carries no chrome of its own */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) :is(#phone-reserve-p1, #phone-reserve-p2) { clip-path: none !important; border-color: transparent !important; background: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) :is(#phone-reserve-p1, #phone-reserve-p2)::after { display: none !important; }
/* fewer coloured bars: the outline and the glyph colour already say whose it is */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen :is(.side-stash, .die-chip, .phone-reserve-marker, .bg3-battle-die-widget) { --acc: transparent !important; }
/* a little air between the dice panel and its page tabs */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .phone-reserve-marker::before { inset: 4px 0 0 0 !important; }
/* battle result bar: the same one-cut frame */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0).combat-active #game-screen #action-bar::before { --c: 10px; --fw: 1px; --frame: var(--sc-line-strong); --fill: var(--sc-plate); --acc: transparent; background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; border: 0 !important; border-radius: 0 !important; }
/* details */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #setup-screen :is(.btn-start-tutorial, .arena-codex-lobby) { font-size: 10px !important; letter-spacing: .05em !important; padding-inline: 8px !important; gap: 6px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #setup-screen :is(#input-invite-link, #input-join-code) { border-radius: var(--pr-s) !important; clip-path: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #setup-screen #input-invite-link { font: 500 11px/1 var(--sc-font-body) !important; letter-spacing: 0 !important; color: var(--sc-muted) !important; -webkit-text-fill-color: currentColor !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) .tut-rule-card { padding: 12px 14px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .cx-card-title { border-radius: var(--pr-xs) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tutorial-banner::before { display: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #main-nav .phone-navigation-settings :is(button, summary, a), html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #main-nav .phone-navigation-settings :is(button, summary, a) :is(span, strong, b) { font-family: var(--sc-font-ui) !important; font-weight: 600 !important; font-size: 11px !important; letter-spacing: .04em !important; }
/* the site header keeps its own button exactly as on every other page */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0):not(.phone-match-active) .site-header .menu-toggle:not(#sc-f1):not(#sc-f2):not(#sc-f3) { --c: 6px !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0):not(.phone-match-active) .site-header .menu-toggle:not(#sc-f1):not(#sc-f2):not(#sc-f3)::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))) !important; border: 0 !important; border-radius: 0 !important; }
/* roll-off dice: the glyph is the frame */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) :is(#setup-screen, #match-intro-modal, .intro-ro-box) .ro-val { --frame: transparent !important; --acc: transparent !important; --fill: transparent !important; }
/* buttons are square on phone */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) :is(.modal, #setup-screen, #game-screen, #phone-tutorial-briefing) :is(button, summary) { border-radius: var(--pr-s) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) :is(.phone-rule-close, .phone-reference-toggle, .act-btn)::after { border-radius: 0 !important; }
/* role label reads as plain text above the name */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .hud-player .player-identity-label { background: none !important; clip-path: none !important; }


/* app behaviour: no tap flash, no rubber-band, no accidental text selection or double-tap zoom */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior: none; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) :is(button, a, summary, .die-chip, .mode-card, [role='tab'], [role='button']) { touch-action: manipulation; -webkit-touch-callout: none; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) :is(#game-screen, #setup-screen) { -webkit-user-select: none; user-select: none; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) :is(#game-screen, #setup-screen) :is(input, textarea) { -webkit-user-select: text; user-select: text; }

/* codex: full-width phone panel with chapters on the left, full-height rules in the middle, controls stacked on the right */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal { padding: max(8px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)) !important; box-sizing: border-box !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .modal-card { width: 100% !important; max-width: 100% !important; height: 100% !important; max-height: 100% !important; display: grid !important; grid-template-columns: 118px minmax(0, 1fr) 45px !important; grid-template-rows: minmax(0, 1fr) !important; column-gap: 12px !important; row-gap: 0 !important; padding: 10px 12px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .codex-tabs-bar { grid-column: 1 !important; grid-row: 1 !important; display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; align-self: stretch !important; width: auto !important; max-width: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; gap: 4px !important; overflow: hidden auto !important; -webkit-mask-image: none !important; mask-image: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .codex-tab-btn { flex: 0 0 auto !important; width: 100% !important; min-height: 44px !important; padding-inline: 10px !important; text-align: left !important; font-size: 10px !important; letter-spacing: .06em !important; white-space: nowrap !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .codex-header-bar { grid-column: 3 !important; grid-row: 1 !important; position: static !important; width: 45px !important; height: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; align-self: end !important; justify-self: end !important; display: flex !important; justify-content: flex-end !important; align-items: flex-end !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .codex-header-actions { position: static !important; margin: 0 !important; display: flex !important; flex-direction: column !important; gap: 6px !important; justify-content: flex-end !important; align-items: center !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal #codex-audio-toggle { display: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal #btn-close-codex { order: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .codex-content-container { grid-column: 2 !important; grid-row: 1 !important; min-height: 0 !important; height: 100% !important; padding: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .cx-num { font-size: 24px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .cx-title { font-size: 15px !important; letter-spacing: .06em !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .cx-card-title { font-size: 11px !important; letter-spacing: .08em !important; gap: 8px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal :is(.cx-card, .cx-row, .cx-face, .cx-zone, .cx-effects) { padding: 10px 12px 12px 14px !important; gap: 8px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .cx :is(p, li), html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .cx-head p { font-size: 12.5px !important; line-height: 1.5 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .cx-page { gap: 10px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .cx-lede { font-size: 12.5px !important; line-height: 1.5 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .cx-head { gap: 12px !important; padding-bottom: 10px !important; margin-bottom: 2px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .cx-effect { grid-template-columns: 44px minmax(0, 1fr) !important; gap: 4px 12px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .cx-effect .cx-triico { width: 44px !important; height: auto !important; }
/* lobby: tutorial and codex share one row cleanly */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #setup-screen div:has(> #btn-start-tutorial) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important; gap: 6px !important; justify-content: stretch !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #setup-screen :is(#btn-start-tutorial, #arena-codex-lobby) { width: 100% !important; min-width: 0 !important; justify-content: center !important; }

/* battle: the dice windows use the full side column */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0).phone-match-active { --phone-combat-top: calc(8px + var(--phone-safe-top)) !important; --phone-combat-height: calc(100dvh - var(--phone-safe-top) - var(--phone-footer-inset) - 84px) !important; --phone-battle-size: min(clamp(84px, 36dvh, 156px), calc(var(--phone-combat-height) - 112px), calc(var(--phone-combat-width) - 14px)) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0).phone-match-active.combat-active #game-screen .bg3-final-boost { font-size: calc(var(--phone-battle-size) * .4) !important; line-height: 1 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0).phone-match-active.combat-active #game-screen .bg3-die-face-content svg { width: calc(var(--phone-battle-size) * .78) !important; height: calc(var(--phone-battle-size) * .78) !important; }

/* dice-group tabs: the 2x2 map of that group's four dice. Every square keeps one size; the die
   being rolled is marked by colour, never by growing. */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .phone-reserve-marker { grid-template-columns: repeat(2, 9px) !important; grid-template-rows: repeat(2, 9px) !important; gap: 3px !important; place-content: center !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .phone-reserve-marker > .phone-reserve-marker-unit { width: 9px !important; height: 9px !important; box-sizing: border-box !important; border-radius: 0 !important; box-shadow: none !important; opacity: 1 !important; translate: 0 2px; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .phone-reserve-marker > .phone-reserve-marker-unit[data-pending='true'] { background: var(--sc-signal) !important; border-color: var(--sc-signal) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .phone-reserve-marker:not([aria-selected='true']) > .phone-reserve-marker-unit:not([data-status='deployed']):not([data-status='destroyed']):not([data-pending='true']) { opacity: .6 !important; }

/* player cards: name, role and tokens read from the die outward, like the desktop plates */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .hud-player .hp-name-col { flex-direction: row !important; align-items: center !important; gap: 5px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .hud-player.phone-side-left :is(.hp-name-col, .hp-tokens-slot) { justify-content: flex-start !important; padding-left: 10px !important; box-sizing: border-box !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .hud-player.phone-side-right :is(.hp-name-col, .hp-tokens-slot) { justify-content: flex-end !important; padding-right: 18px !important; box-sizing: border-box !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .hud-player.phone-side-right .hp-name-col { flex-direction: row-reverse !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .hud-player .hp-name-row { flex: 0 0 auto !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .hud-player .hp-name { font-size: 12px !important; letter-spacing: .08em !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .hud-player .player-identity-label { position: static !important; inset: auto !important; transform: none !important; margin: 0 !important; flex: 0 0 auto !important; font-size: 7.5px !important; line-height: 1 !important; letter-spacing: .08em !important; padding: 2px 4px !important; border: 1px solid var(--sc-line-strong) !important; color: var(--sc-muted) !important; -webkit-text-fill-color: var(--sc-muted) !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .hud-player.active { --acc: var(--frame) !important; --acc-pos: left bottom !important; --acc-size: 100% 2px !important; }

/* type: headings sized for a phone, not a desktop */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) .tut-modal-title { font-size: 15px !important; letter-spacing: .12em !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) .tut-rule-card :is(h3, h4) { font-size: 15px !important; letter-spacing: .1em !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #gameover-modal .go-winner { font-size: 24px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #gameover-modal .stat-num#go-stat-mvp { font-size: 16px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #match-intro-modal .modal-card > button:not(.btn) { font: 700 11px/1 var(--sc-font-ui) !important; letter-spacing: .1em !important; text-transform: uppercase !important; border: 1px solid var(--sc-line-strong) !important; background: var(--sc-plate) !important; color: var(--sc-text) !important; min-height: 44px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #match-intro-modal :is(#intro-ro-result, #intro-ready-status, #color-select-status) { font-family: var(--sc-font-body) !important; }
/* menu sheet: the four destinations sit on one row */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #main-nav .phone-navigation-links { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; align-content: center !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #main-nav .phone-navigation-links > .nav-link { font-size: 15px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #tactical-codex-modal .cx-effects .cx-effect { grid-template-columns: 52px minmax(0, 1fr) !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #mobile-blocker .device-notice-link { margin-top: 20px !important; min-height: 44px !important; display: inline-flex !important; align-items: center !important; padding: 0 20px !important; }
/* narrow phones (iPhone SE class): the same controls, set a little tighter */
@media (max-width: 680px) {
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0).phone-match-active:not(.combat-active) #action-bar :is(.act-btn, .act-btn .act-text) { font-size: 8.5px !important; letter-spacing: 0 !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #setup-screen :is(#btn-start-tutorial, #arena-codex-lobby) { font-size: 8.5px !important; letter-spacing: .02em !important; padding-inline: 4px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #setup-screen :is(#btn-start-tutorial, #arena-codex-lobby) svg { display: none !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #main-nav .phone-navigation-links > .nav-link { font-size: 12px !important; white-space: nowrap !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .phone-reference-toggle { font-size: 10px !important; letter-spacing: .06em !important; padding-inline: 2px !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .hud-player .hp-name { font-size: 11px !important; letter-spacing: .06em !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #game-screen .hud-player .player-identity-label { display: none !important; }
}
/* lobby list: a marker bar on each mode, as on the site's menus */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #setup-screen .mode-card { --acc: var(--sc-line-strong) !important; --acc-pos: left top !important; --acc-size: 3px 100% !important; }
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-m0):not(#sc-m1):not(#sc-m2):not(#sc-m3):not(#sc-m4):not(#sc-m5):not(#sc-m6):not(#sc-m7):not(#sc-m8):not(#sc-m9):not(#sc-m10):not(#sc-m11):not(#sc-n0) #setup-screen .mode-card:is(.selected, .active, [aria-pressed='true'], [aria-selected='true']) { --acc: var(--frame) !important; }


/* =================================================================== PHONE REMASTER (Nov 2026) */
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body {
  --rm-bg: #151a18; --rm-plate: #161a19; --rm-tile: #1c211f; --rm-tile-off: #121514;
  --rm-hex: rgb(32 38 36 / .92); --rm-hex-line: rgb(236 239 230 / .3);
  --rm-ink-dim: #c9cfc6; --rm-off: #6b726c; --rm-you: #1f4167;
  --rm-band-p1: #214d81; --rm-band-p2: #732246;
  --rm-tile-line: rgb(236 239 230 / .16); --rm-tile-line-off: rgb(236 239 230 / .08);
  --rm-pip: rgb(236 239 230 / .18); --rm-head: rgb(236 239 230 / .58);
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body {
  --rm-bg: #c9cfc6; --rm-plate: #e3e7df; --rm-tile: #eef1ea; --rm-tile-off: #d5dad1;
  --rm-hex: rgb(236 240 232 / .94); --rm-hex-line: rgb(18 23 20 / .28);
  --rm-ink-dim: #39403b; --rm-off: #79817a; --rm-you: #0b5fae;
  --rm-band-p1: #2465a3; --rm-band-p2: #9e286b;
  --rm-tile-line: rgb(18 23 20 / .22); --rm-tile-line-off: rgb(18 23 20 / .1);
  --rm-pip: rgb(18 23 20 / .16); --rm-head: rgb(244 246 241 / .9);
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active {
  --rm-gx: max(10px, var(--phone-safe-left, 0px), var(--phone-safe-right, 0px));
  --rm-gv: max(4px, var(--phone-safe-top, 0px));
  --rm-col: clamp(136px, 20vw, 200px);
  --rm-hx: max(2px, calc(var(--rm-gx) - 34px));
  /* controls keep a fixed height; extra screen height on taller phones becomes breathing room instead */
  --rm-slack: clamp(0px, calc((100dvh - 360px) / 4), 18px);
  --rm-card-h: clamp(44px, 13dvh, 52px);
  --rm-die: clamp(52px, min(calc(var(--rm-card-h) * 1.36), 9.4vw), 78px);
  --rm-gt: calc(max(calc(var(--rm-die) / 2 - var(--rm-card-h) / 2 + 2px), calc(var(--phone-safe-top, 0px) + 6px)) + var(--rm-slack));
  --rm-gb: calc(max(8px, calc(var(--phone-safe-bottom, 0px) + 4px)) + var(--rm-slack));
  --rm-tab-h: 16px;
  --rm-act-h: 44px;
  --rm-mark-h: clamp(34px, 10.4dvh, 40px);
  --rm-gap: calc(clamp(4px, 1.8dvh, 8px) + var(--rm-slack) / 3);
  --rm-stash-top: calc(var(--rm-gt) + var(--rm-card-h) + 4px + var(--rm-tab-h) + 6px);
  --rm-stash-bottom: calc(var(--rm-gb) + var(--rm-act-h) + var(--rm-gap) + 2px);
  --rm-board-x: calc(var(--rm-gx) + var(--rm-col) + 2px);
  --rm-card-in: calc(var(--rm-gx) - var(--rm-hx) + var(--rm-col) - var(--rm-die) * .46);
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #main-game-area { align-self: stretch !important; justify-self: stretch !important; left: var(--rm-board-x) !important; right: var(--rm-board-x) !important; top: var(--rm-gv) !important; bottom: var(--rm-gv) !important;
  width: auto !important; height: auto !important; margin: 0 !important; transform: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #board-col { padding: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active :is(.bar-left, .bar-right) { transform: none !important; translate: none !important; filter: none !important; contain: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #action-bar-wrapper { transform: none !important; filter: none !important; contain: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body { --rm-field-p1: rgb(var(--sc-p1-rgb) / .17); --rm-field-p2: rgb(var(--sc-p2-rgb) / .15); }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body { --rm-field-p1: rgb(var(--sc-p1-rgb) / .14); --rm-field-p2: rgb(var(--sc-p2-rgb) / .12); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen {
  background: radial-gradient(ellipse 62% 75% at 50% 50%, rgb(var(--sc-fg-rgb) / .035), transparent 72%),
    var(--rm-bg) !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.phone-perspective-p2 #game-screen {
  background: radial-gradient(ellipse 62% 75% at 50% 50%, rgb(var(--sc-fg-rgb) / .035), transparent 72%),
    var(--rm-bg) !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen::before, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen::after { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #hex-board #rm-tray { display: none; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board #rm-tray { display: inline; pointer-events: none; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board { overflow: visible !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #board-col { overflow: visible !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board #rm-tray .rm-disc { fill: #1a1f1d; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board #rm-tray .rm-art { fill: #ecefe6; opacity: .07; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board #rm-tray .rm-disc { fill: #d9ddd5; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board #rm-tray .rm-art { fill: #121714; opacity: .09; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board .hex-glass-backdrop { fill: var(--rm-hex) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board .sc-zone-tick { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board svg.unit-shape > g { scale: 1.1; transform-box: view-box; transform-origin: 64px 64px; }
/* each shape sized to sit inside its hex with a margin (the type comes from phone-remaster.js) */
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board #unit-group > g[data-rm-type='D4'] svg.unit-shape > g { scale: 1.22; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board #unit-group > g[data-rm-type='D6'] svg.unit-shape > g { scale: 1.06; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board #unit-group > g[data-rm-type='D8'] svg.unit-shape > g { scale: 1.16; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board #unit-group > g[data-rm-type='D10'] svg.unit-shape > g { scale: 1.08; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board #unit-group > g[data-rm-type='D12'] svg.unit-shape > g { scale: 1.08; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board #unit-group > g[data-rm-type='D20'] svg.unit-shape > g { scale: 1.02; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board svg.unit-shape > polygon { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board svg.unit-shape > text {
  fill: #fff !important; font-size: 17px !important; font-weight: 800 !important;
  stroke: rgb(0 0 0 / .85); stroke-width: 3.2px; stroke-linejoin: round; paint-order: stroke fill;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player { --c: 10px !important; --fw: 1px !important; --frame: var(--rm-band-p1) !important; --fill: var(--rm-plate) !important;
  --acc: var(--rm-band-p1) !important; --rm-band-w: 5px; --acc-size: var(--rm-band-w) calc(100% - var(--c)) !important;
  position: fixed !important; top: var(--rm-gt) !important; bottom: auto !important; height: var(--rm-card-h) !important; min-height: 0 !important; max-height: none !important;
  width: calc(var(--rm-card-in) + 30px) !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; transform: none !important; translate: none !important;
  box-shadow: none !important; background: none !important; border: 0 !important; filter: none !important; overflow: visible !important; box-sizing: border-box !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.hp2 { --frame: var(--rm-band-p2) !important; --acc: var(--rm-band-p2) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-left::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-right::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 var(--c), var(--c) 0, 100% 0, 100% 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-left::before { --orn: linear-gradient(to top right, transparent 50%, var(--acc) 50% calc(50% + var(--rm-band-w) * .7071 + .5px), transparent calc(50% + var(--rm-band-w) * .7071 + .5px)) right top / calc(var(--c) + var(--rm-band-w)) calc(var(--c) + var(--rm-band-w)) no-repeat !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-left { left: calc(var(--rm-hx) + var(--rm-die) * .46) !important; right: auto !important; --acc-pos: right bottom !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-right::before { --orn: linear-gradient(to top left, transparent 50%, var(--acc) 50% calc(50% + var(--rm-band-w) * .7071 + .5px), transparent calc(50% + var(--rm-band-w) * .7071 + .5px)) left top / calc(var(--c) + var(--rm-band-w)) calc(var(--c) + var(--rm-band-w)) no-repeat !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-right { right: calc(var(--rm-hx) + var(--rm-die) * .46) !important; left: auto !important; --acc-pos: left bottom !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.active { width: calc(var(--rm-card-in) + 42px) !important; --rm-band-w: 7px; --acc-size: var(--rm-band-w) calc(100% - var(--c)) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.active.hp1 { --frame: var(--sc-p1) !important; --acc: var(--sc-p1) !important;
  --fill: linear-gradient(100deg, rgb(var(--sc-p1-rgb) / .62), rgb(var(--sc-p1-rgb) / .34) 75%), var(--rm-plate) !important;
  filter: drop-shadow(0 0 10px rgb(var(--sc-p1-rgb) / .4)) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.active.hp2 { --frame: var(--sc-p2) !important; --acc: var(--sc-p2) !important;
  --fill: linear-gradient(100deg, rgb(var(--sc-p2-rgb) / .55), rgb(var(--sc-p2-rgb) / .3) 75%), var(--rm-plate) !important;
  filter: drop-shadow(0 0 10px rgb(var(--sc-p2-rgb) / .4)) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.active.hp1.phone-side-right { --fill: linear-gradient(260deg, rgb(var(--sc-p1-rgb) / .62), rgb(var(--sc-p1-rgb) / .34) 75%), var(--rm-plate) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.active.hp2.phone-side-right { --fill: linear-gradient(260deg, rgb(var(--sc-p2-rgb) / .55), rgb(var(--sc-p2-rgb) / .3) 75%), var(--rm-plate) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .hp-main { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; min-width: 0 !important; margin: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important; display: flex !important; flex-direction: column !important;
  justify-content: center !important; align-items: stretch !important; gap: clamp(3px, 1.2dvh, 6px) !important; box-sizing: border-box !important; transform: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-left .hp-main { padding: 0 16px 0 calc(var(--rm-die) * .54 + 6px) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-right .hp-main { padding: 0 calc(var(--rm-die) * .54 + 6px) 0 16px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.active.phone-side-left .hp-main { padding-right: 18px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.active.phone-side-right .hp-main { padding-left: 18px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .hp-name-col, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .hp-tokens-slot { padding: 0 !important; margin: 0 !important; width: 100% !important; min-width: 0 !important; display: flex !important; flex-direction: row !important; align-items: center !important; gap: 6px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-left :is(.hp-name-col, .hp-tokens-slot) { justify-content: flex-start !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-right :is(.hp-name-col, .hp-tokens-slot) { justify-content: flex-end !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .hp-name-row { flex: 0 1 auto !important; min-width: 0 !important; overflow: hidden !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-left .hp-name-row { order: 1 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-left .player-identity-label { order: 2 !important; margin: 0 0 0 auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-right .player-identity-label { order: 1 !important; margin: 0 auto 0 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-right .hp-name-row { order: 2 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .hp-name { display: block !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important;
  font: 700 clamp(11px, min(3.7dvh, 1.7vw), 14px)/1.1 var(--sc-font-ui) !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: var(--rm-ink-dim) !important; -webkit-text-fill-color: currentColor !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.active .hp-name { color: #ecefe6 !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.active .hp-name { color: #fff !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .player-identity-label {
  --c: 5px; --fw: 1px; --frame: rgb(var(--sc-fg-rgb) / .4); --fill: var(--rm-plate); --acc: transparent; --orn: linear-gradient(transparent, transparent);
  position: static !important; flex: 0 0 auto !important; display: inline-flex !important; align-items: center !important; height: 15px !important; box-sizing: border-box !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; translate: none !important;
  font: 700 8px/1 var(--sc-font-ui) !important; letter-spacing: .12em !important; text-transform: uppercase !important; white-space: nowrap !important;
  color: var(--rm-ink-dim) !important; -webkit-text-fill-color: currentColor !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-left .player-identity-label { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-right .player-identity-label { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 var(--c), var(--c) 0, 100% 0, 100% 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-left .player-identity-label { padding: 1px 7px 0 5px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-right .player-identity-label { padding: 1px 5px 0 7px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.active .player-identity-label { --frame: rgb(236 239 230 / .55); --fill: var(--rm-you); color: #ecefe6 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.active.hp2 .player-identity-label { --fill: #5c1a3c; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.hud-player .player-identity-label:is([style*='display: none'], [style*='display:none'], :empty, [hidden]) { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .hp-pips { display: flex !important; gap: 4px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .pip { width: clamp(11px, 3.6dvh, 14px) !important; height: clamp(12px, 4.1dvh, 16px) !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; filter: none !important;
  background: var(--rm-pip) !important; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .pip::before, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .pip::after { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .pip.filled { background: var(--sc-signal) !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .pip.filled { background: #9fc400 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .plaque-mascot { position: absolute !important; width: var(--rm-die) !important; height: var(--rm-die) !important; max-width: none !important; top: 50% !important; bottom: auto !important; translate: none !important; transform: translateY(-50%) !important;
  margin: 0 !important; z-index: 2 !important; object-fit: contain !important; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .6)) !important; opacity: 1 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-left .plaque-mascot { left: calc(var(--rm-die) * -.46) !important; right: auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-right .plaque-mascot { right: calc(var(--rm-die) * -.46) !important; left: auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player:not(.active) .plaque-mascot { filter: drop-shadow(0 6px 10px rgb(0 0 0 / .6)) saturate(.75) brightness(.85) !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .plaque-mascot { filter: drop-shadow(0 4px 8px rgb(0 0 0 / .3)) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status { display: flex !important; position: fixed !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; height: var(--rm-tab-h) !important; min-height: 0 !important;
  width: calc(var(--rm-card-in) + 42px) !important; max-width: none !important; transform: none !important; translate: none !important; bottom: auto !important;
  top: calc(var(--rm-gt) + var(--rm-card-h) + 4px) !important; z-index: 60 !important; pointer-events: none; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status.phone-side-left { left: calc(var(--rm-hx) + var(--rm-die) * .46) !important; right: auto !important; justify-content: flex-end !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status.phone-side-right { right: calc(var(--rm-hx) + var(--rm-die) * .46) !important; left: auto !important; justify-content: flex-start !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status .phone-status-title { display: flex !important; align-items: center !important; height: var(--rm-tab-h) !important; box-sizing: border-box !important; padding: 1px 13px 0 14px !important; margin: 0 !important;
  font: 700 10px/1 var(--sc-font-ui) !important; letter-spacing: .12em !important; text-transform: uppercase !important; white-space: nowrap !important;
  color: var(--sc-signal-ink) !important; -webkit-text-fill-color: currentColor !important; background: var(--sc-signal) !important; width: auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status.phone-side-left .phone-status-title { clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status.phone-side-right .phone-status-title { clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 100%, 7px 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status .phone-action-count, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status .phone-status-prompt { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active #phone-match-status, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active[data-phone-phase='CORE_ROLL_MODAL'] #phone-match-status { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel { --frame: transparent !important; --fill: transparent !important; --acc: transparent !important; background: none !important; border: 0 !important; box-shadow: none !important;
  position: fixed !important; top: var(--rm-stash-top) !important; bottom: var(--rm-stash-bottom) !important; height: auto !important; max-height: none !important; min-height: 0 !important;
  width: var(--rm-col) !important; max-width: none !important; min-width: 0 !important; margin: 0 !important; transform: none !important; translate: none !important;
  display: flex !important; flex-direction: column !important; padding: 0 !important; gap: var(--rm-gap) !important; overflow: visible !important; box-sizing: border-box !important;
  align-self: stretch !important; justify-self: auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.phone-side-left { left: var(--rm-gx) !important; right: auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.phone-side-right { right: var(--rm-gx) !important; left: auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .stash-grid-wrapper { --c: 10px; --fw: 2px; --frame: var(--rm-band-p1); --fill: linear-gradient(var(--rm-band-p1), var(--rm-band-p1)); --acc: transparent; --orn: linear-gradient(transparent, transparent);
  position: relative !important; isolation: isolate; flex: 1 1 auto !important; min-height: 0 !important; height: auto !important; display: flex !important; flex-direction: column !important;
  box-sizing: border-box !important; width: 100% !important; padding: 20px 2px 2px !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: none !important; clip-path: none !important; transform: none !important; overflow: visible !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.stash-p2 .stash-grid-wrapper { --frame: var(--rm-band-p2); --fill: linear-gradient(var(--rm-band-p2), var(--rm-band-p2)); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .stash-grid-wrapper::before { content: '' !important; display: block !important; position: absolute !important; inset: 0 !important; z-index: -1 !important; pointer-events: none !important; border: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.phone-side-left .stash-grid-wrapper::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.phone-side-right .stash-grid-wrapper::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 var(--c), var(--c) 0, 100% 0, 100% 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .stash-group-vert.phone-group-open { position: static !important; flex: 1 1 auto !important; min-height: 0 !important; height: auto !important; display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: repeat(2, minmax(0, 1fr)) !important; align-items: stretch !important; justify-items: stretch !important; align-content: stretch !important; gap: clamp(4px, 1.5dvh, 6px) !important;
  padding: clamp(5px, 1.8dvh, 7px) !important; margin: 0 !important; background: var(--rm-plate) !important; border: 0 !important; box-sizing: border-box !important; width: 100% !important; overflow: visible !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .stash-group-vert.phone-group-open .stash-row { display: contents !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .stash-group-vert.phone-group-open .sg-head { display: flex !important; position: absolute !important; top: 0 !important; height: 20px !important; left: 9px !important; right: 16px !important; width: auto !important; flex-direction: row !important;
  align-items: center !important; justify-content: space-between !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.phone-side-right .stash-group-vert.phone-group-open .sg-head { left: 16px !important; right: 9px !important; flex-direction: row-reverse !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .sg-head .sg-title { font: 700 10px/1 var(--sc-font-ui) !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: var(--rm-head) !important; -webkit-text-fill-color: currentColor !important; padding-top: 1px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .sg-head .sg-title::after, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .sg-head::after, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .sg-head::before { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .sg-head .stash-speed-arrows { position: static !important; transform: none !important; opacity: 1 !important; font-size: 0 !important; color: transparent !important; -webkit-text-fill-color: transparent !important;
  display: block !important; height: 9px !important; background: rgb(236 239 230 / .5) !important; -webkit-mask: var(--rm-arrows) no-repeat center / contain !important; mask: var(--rm-arrows) no-repeat center / contain !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .sg-head .stash-speed-arrows * { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.phone-side-left .sg-head .stash-speed-arrows.speed-1 { --rm-arrows: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%207%209%27%3E%3Cpath%20d%3D%27M0%200L7%204.5L0%209Z%27/%3E%3C/svg%3E"); width: 7px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.phone-side-left .sg-head .stash-speed-arrows.speed-2 { --rm-arrows: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%209%27%3E%3Cpath%20d%3D%27M0%200L7%204.5L0%209ZM9%200L16%204.5L9%209Z%27/%3E%3C/svg%3E"); width: 16px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.phone-side-right .sg-head .stash-speed-arrows.speed-1 { --rm-arrows: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%207%209%27%3E%3Cpath%20d%3D%27M7%200L0%204.5L7%209Z%27/%3E%3C/svg%3E"); width: 7px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.phone-side-right .sg-head .stash-speed-arrows.speed-2 { --rm-arrows: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2016%209%27%3E%3Cpath%20d%3D%27M16%200L9%204.5L16%209ZM7%200L0%204.5L7%209Z%27/%3E%3C/svg%3E"); width: 16px !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash .sg-head .stash-speed-arrows { background: rgb(244 246 241 / .8) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.phone-side-right .stash-group-vert.phone-group-open .sg-head { flex-direction: row-reverse !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .die-chip { --c: 7px !important; --fw: 1px !important; --frame: var(--rm-tile-line) !important; --fill: var(--rm-tile) !important; --acc: transparent !important;
  position: relative !important; container-type: size; align-self: stretch !important; justify-self: stretch !important; width: auto !important; height: auto !important; min-height: 0 !important; min-width: 0 !important; aspect-ratio: auto !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important; overflow: visible !important; transform: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.phone-side-left .die-chip::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.phone-side-right .die-chip::before { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 var(--c), var(--c) 0, 100% 0, 100% 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .die-chip:is(.chip-deployed, .chip-destroyed) { --frame: var(--rm-tile-line-off) !important; --fill: var(--rm-tile-off) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .die-chip .chip-svg { position: absolute !important; left: 50% !important; top: 50% !important; width: 92cqmin !important; height: 92cqmin !important; margin: 0 !important; max-width: none !important; max-height: none !important;
  translate: -50% -50% !important; transform: none !important; transform-origin: 50% 50% !important; overflow: visible !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .die-chip.die-d4 .chip-svg { translate: -50% -46% !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .die-chip.chip-deployed .chip-svg, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .die-chip.chip-destroyed .chip-svg { opacity: .45 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .die-chip .phone-die-label { position: absolute !important; right: clamp(4px, 6cqw, 7px) !important; bottom: clamp(3px, 5cqh, 6px) !important; left: auto !important; top: auto !important; margin: 0 !important; padding: 0 !important;
  background: none !important; border: 0 !important; font: 700 clamp(9px, 17cqmin, 13px)/1 var(--sc-font-ui) !important; letter-spacing: .06em !important; color: var(--sc-muted) !important; -webkit-text-fill-color: currentColor !important;
  text-shadow: 0 0 4px var(--rm-tile), 0 0 8px var(--rm-tile) !important; z-index: 1; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .die-chip:is(.chip-deployed, .chip-destroyed) .phone-die-label { color: var(--rm-off) !important; text-shadow: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .die-chip .phone-die-state { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .phone-reserve-markers:not([hidden]) { position: static !important; flex: 0 0 var(--rm-mark-h) !important; height: var(--rm-mark-h) !important; min-height: 0 !important; margin: 0 !important; gap: 6px !important; transform: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .phone-reserve-marker { --c: 0px !important; --frame: var(--rm-tile-line) !important; --fill: var(--rm-plate) !important; height: 100% !important; min-height: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .phone-reserve-marker { display: grid !important; grid-template-columns: repeat(2, clamp(9px, 3dvh, 11px)) !important; grid-auto-rows: clamp(9px, 3dvh, 11px) !important; gap: 4px !important; place-content: center !important; padding: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel .phone-reserve-marker-unit { width: auto !important; height: auto !important; margin: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.stash-p1 .phone-reserve-marker[aria-pressed='true'], html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.stash-p1 .phone-reserve-marker[aria-selected='true'], html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.stash-p1 .phone-reserve-marker.active { --frame: var(--sc-p1) !important; --fill: rgb(var(--sc-p1-rgb) / .16) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.stash-p2 .phone-reserve-marker[aria-pressed='true'], html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.stash-p2 .phone-reserve-marker[aria-selected='true'], html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .side-stash.phone-reserve-carousel.stash-p2 .phone-reserve-marker.active { --frame: var(--sc-p2) !important; --fill: rgb(var(--sc-p2-rgb) / .16) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT'])) #action-bar { position: fixed !important; top: auto !important; bottom: var(--rm-gb) !important; left: var(--rm-gx) !important; right: auto !important; width: var(--rm-col) !important; max-width: none !important; min-width: 0 !important;
  height: var(--rm-act-h) !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; transform: none !important; translate: none !important; box-sizing: border-box !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT'])) #action-bar .bar-center-container, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT'])) #action-bar .bar-center { width: 100% !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; gap: 6px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT'])) #action-bar .bar-center { display: flex !important; flex-direction: row !important; align-items: stretch !important; grid-template-rows: none !important; grid-auto-rows: auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT'])) #action-bar .act-btn { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; height: auto !important; max-height: 100% !important; align-self: stretch !important; min-height: 0 !important; margin: 0 !important; padding: 0 2px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT'])) #action-bar .act-btn .act-text { font-size: clamp(9px, min(2.8dvh, 1.25vw), 10.5px) !important; letter-spacing: .04em !important; white-space: nowrap !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-reference-toggle { position: fixed !important; top: auto !important; bottom: var(--rm-gb) !important; right: calc(var(--rm-gx) + var(--rm-act-h) + 6px) !important; left: auto !important;
  width: calc(var(--rm-col) - var(--rm-act-h) - 6px) !important; height: var(--rm-act-h) !important; min-height: 0 !important; max-width: none !important; margin: 0 !important; transform: none !important; translate: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(.combat-active) .site-header .menu-toggle { position: fixed !important; top: auto !important; bottom: var(--rm-gb) !important; right: var(--rm-gx) !important; left: auto !important;
  width: var(--rm-act-h) !important; height: var(--rm-act-h) !important; min-height: 0 !important; margin: 0 !important; transform: none !important; translate: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active { --rm-cb-w: calc(var(--rm-col) + 22px); --rm-cb-x: calc(var(--rm-gx) + 12px); --rm-cb-top: calc(var(--rm-gt) + var(--rm-card-h) + clamp(14px, 4.6dvh, 22px)); --rm-cb-foot: 42px; --rm-cb-head: 30px;
  --rm-cb-dec: 84px;
  --rm-cb-h: min(calc(100dvh - var(--rm-cb-top) - var(--rm-gb) - var(--rm-cb-dec) - var(--rm-gap)), calc(var(--rm-cb-w) * 1.7)); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .side-stash { --frame: transparent !important; --fill: transparent !important; --acc: transparent !important; background: none !important; border: 0 !important; box-shadow: none !important;
  position: fixed !important; top: var(--rm-cb-top) !important; bottom: auto !important; height: var(--rm-cb-h) !important; min-height: 0 !important; max-height: none !important;
  width: var(--rm-cb-w) !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; padding: 0 !important; transform: none !important; translate: none !important;
  align-self: auto !important; overflow: visible !important; z-index: 40 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .side-stash.phone-side-left { left: var(--rm-cb-x) !important; right: auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .side-stash.phone-side-right { right: var(--rm-cb-x) !important; left: auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .combat-stash-content { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; display: block !important; padding: 0 !important; margin: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .combat-stash-content > .cb-role-badge, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .combat-stash-content > .csp-unit { position: absolute !important; z-index: 3 !important; top: 2px !important; height: calc(var(--rm-cb-head) - 8px) !important; display: inline-flex !important; align-items: center !important; line-height: 1 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  font: 700 9.5px/1 var(--sc-font-ui) !important; letter-spacing: .12em !important; text-transform: uppercase !important; white-space: nowrap !important; width: auto !important; min-width: 0 !important; max-width: none !important; transform: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .cb-role-badge { padding: 0 11px 1px 9px !important; height: calc(var(--rm-cb-head) - 8px) !important; color: #fff !important; -webkit-text-fill-color: currentColor !important; text-shadow: none !important; background: rgb(10 12 11 / .62) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-left .cb-role-badge { left: 1px !important; right: auto !important; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-right .cb-role-badge { right: 1px !important; left: auto !important; padding: 0 8px 0 10px !important; clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .csp-unit { padding: 0 !important; background: none !important; color: #fff !important; -webkit-text-fill-color: currentColor !important; text-shadow: 0 1px 2px rgb(0 0 0 / .35) !important; }
@media (min-width: 820px) { html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .stash-p1 .csp-unit::before { content: 'Azure · '; } html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .stash-p2 .csp-unit::before { content: 'Violet · '; } }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-left .csp-unit { right: 14px !important; left: auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-right .csp-unit { left: 14px !important; right: auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .combat-matrix-cell { --c: 0px !important; --fw: 1px !important; --frame: var(--sc-p1) !important; --acc: var(--sc-p1) !important; --acc-size: 0px 0px !important;
  --rm-marks: linear-gradient(transparent, transparent); --orn: var(--rm-marks) !important;
  --fill: linear-gradient(100deg, rgb(var(--sc-p1-rgb) / .62), rgb(var(--sc-p1-rgb) / .34) 75%) left top / 100% var(--rm-cb-head) no-repeat, linear-gradient(rgb(0 0 0 / .32), rgb(0 0 0 / .32)) left bottom / 100% var(--rm-cb-foot) no-repeat, radial-gradient(ellipse 72% 58% at 50% 48%, rgb(var(--sc-p1-rgb) / .28), transparent 70%), #0f1418 !important;
  position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; padding: 0 !important; margin: 0 !important; display: block !important;
  isolation: auto !important; z-index: auto !important; filter: none !important; clip-path: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .stash-p2 .combat-matrix-cell { --frame: var(--sc-p2) !important; --acc: var(--sc-p2) !important; --rm-marks: linear-gradient(transparent, transparent); --orn: var(--rm-marks) !important;
  --fill: linear-gradient(100deg, rgb(var(--sc-p2-rgb) / .55), rgb(var(--sc-p2-rgb) / .3) 75%) left top / 100% var(--rm-cb-head) no-repeat, linear-gradient(rgb(0 0 0 / .32), rgb(0 0 0 / .32)) left bottom / 100% var(--rm-cb-foot) no-repeat, radial-gradient(ellipse 72% 58% at 50% 48%, rgb(var(--sc-p2-rgb) / .28), transparent 70%), #160f14 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-left .combat-matrix-cell { --acc-pos: right bottom !important; clip-path: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-right .combat-matrix-cell { --acc-pos: left bottom !important; clip-path: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-right.stash-p1 .combat-matrix-cell { --fill: linear-gradient(260deg, rgb(var(--sc-p1-rgb) / .62), rgb(var(--sc-p1-rgb) / .34) 75%) left top / 100% var(--rm-cb-head) no-repeat, linear-gradient(rgb(0 0 0 / .32), rgb(0 0 0 / .32)) left bottom / 100% var(--rm-cb-foot) no-repeat, radial-gradient(ellipse 72% 58% at 50% 48%, rgb(var(--sc-p1-rgb) / .28), transparent 70%), #0f1418 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-right.stash-p2 .combat-matrix-cell { --fill: linear-gradient(260deg, rgb(var(--sc-p2-rgb) / .55), rgb(var(--sc-p2-rgb) / .3) 75%) left top / 100% var(--rm-cb-head) no-repeat, linear-gradient(rgb(0 0 0 / .32), rgb(0 0 0 / .32)) left bottom / 100% var(--rm-cb-foot) no-repeat, radial-gradient(ellipse 72% 58% at 50% 48%, rgb(var(--sc-p2-rgb) / .28), transparent 70%), #160f14 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-left.stash-p2 .combat-matrix-cell { --fill: linear-gradient(100deg, rgb(var(--sc-p2-rgb) / .55), rgb(var(--sc-p2-rgb) / .3) 75%) left top / 100% var(--rm-cb-head) no-repeat, linear-gradient(rgb(0 0 0 / .32), rgb(0 0 0 / .32)) left bottom / 100% var(--rm-cb-foot) no-repeat, radial-gradient(ellipse 72% 58% at 50% 48%, rgb(var(--sc-p2-rgb) / .28), transparent 70%), #160f14 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .combat-matrix-cell::before { content: '' !important; display: block !important; position: absolute !important; inset: 0 !important; z-index: 0 !important; pointer-events: none !important; background: var(--fill) !important; border: 0 !important; border-radius: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-left .combat-matrix-cell::after { --orn: var(--rm-marks) !important; z-index: 12 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-right .combat-matrix-cell::after { --orn: var(--rm-marks) !important; z-index: 12 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-left .combat-matrix-cell::after { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-right .combat-matrix-cell::after { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left top / var(--c) var(--c) no-repeat !important;
  clip-path: polygon(0 var(--c), var(--c) 0, 100% 0, 100% 100%, 0 100%) !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active :is(.phone-side-left, .phone-side-right, .side-stash).stash-p1 .combat-matrix-cell { --fill: linear-gradient(var(--sc-p1), var(--sc-p1)) left top / 100% var(--rm-cb-head) no-repeat, linear-gradient(rgb(18 23 20 / .08), rgb(18 23 20 / .08)) left bottom / 100% var(--rm-cb-foot) no-repeat, radial-gradient(ellipse 72% 58% at 50% 52%, rgb(var(--sc-p1-rgb) / .14), transparent 70%), #eef2f5 !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active :is(.phone-side-left, .phone-side-right, .side-stash).stash-p2 .combat-matrix-cell { --fill: linear-gradient(#a8166a, #a8166a) left top / 100% var(--rm-cb-head) no-repeat, linear-gradient(rgb(18 23 20 / .08), rgb(18 23 20 / .08)) left bottom / 100% var(--rm-cb-foot) no-repeat, radial-gradient(ellipse 72% 58% at 50% 52%, rgb(var(--sc-p2-rgb) / .14), transparent 70%), #f3edf1 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .cb-battle-die-pill { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-battle-die-widget { position: absolute !important; inset: calc(var(--rm-cb-head) + 10px) 8px calc(var(--rm-cb-foot) + 10px) 8px !important; width: auto !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
  container-type: size; align-self: auto !important; background: none !important; border: 0 !important; box-shadow: none !important; --frame: transparent !important; --fill: transparent !important; overflow: visible !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-battle-die-widget::before { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-die-container { position: absolute !important; left: 50% !important; top: 50% !important; translate: -50% -50% !important; transform: none !important; margin: 0 !important;
  width: 100cqmin !important; height: 100cqmin !important; aspect-ratio: 1 !important; min-width: 0 !important; min-height: 0 !important; max-width: none !important; max-height: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-die-container :is(.bg3-3d-canvas, .bg3-die-body) { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; aspect-ratio: 1 !important; object-fit: contain !important; }
/* the 3D die only fills about 60% of its canvas: scale slightly without colliding with header or footer */
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-die-container .bg3-3d-canvas { scale: 1.16 !important; position: absolute !important; inset: 0 !important; transform: none !important; translate: none !important; margin: 0 !important; transform-origin: 50% 50% !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-die-face-content { inset: 0 !important; width: 100% !important; height: 100% !important; display: grid !important; place-items: center !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-final-boost { font: 800 clamp(40px, 26cqmin, 64px)/1 var(--sc-font-display) !important; color: #fff !important; -webkit-text-fill-color: currentColor !important;
  text-shadow: 0 0 18px rgb(var(--sc-p1-rgb) / .9), 0 0 4px #000 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .stash-p2 .bg3-final-boost { text-shadow: 0 0 18px rgb(var(--sc-p2-rgb) / .9), 0 0 4px #000 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-final-symbol { position: absolute !important; left: 50% !important; top: 50% !important; translate: -50% -50% !important; transform: none !important; margin: 0 !important;
  width: 66% !important; height: 66% !important; aspect-ratio: 1 !important; display: grid !important; place-items: center !important; border-radius: 50% !important;
  background: rgb(14 17 16 / .88) !important; box-shadow: 0 0 0 1.5px rgb(var(--sc-p1-rgb) / .78), 0 0 16px rgb(var(--sc-p1-rgb) / .38) !important; filter: none !important; animation: rm-core-in .35s ease-out both; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .stash-p2 .bg3-final-symbol { box-shadow: 0 0 0 1.5px rgb(var(--sc-p2-rgb) / .78), 0 0 16px rgb(var(--sc-p2-rgb) / .38) !important; filter: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-final-symbol svg, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-die-face-content svg { display: block !important; width: 68% !important; height: 68% !important; margin: 0 !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-final-symbol { background: rgb(255 255 255 / .95) !important; box-shadow: 0 0 0 1.5px rgb(var(--sc-p1-rgb) / .65), 0 3px 12px rgb(13 21 30 / .2) !important; filter: none !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .stash-p2 .bg3-final-symbol { box-shadow: 0 0 0 1.5px rgb(var(--sc-p2-rgb) / .65), 0 3px 12px rgb(13 21 30 / .2) !important; filter: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-prompt-badge { --c: 0px !important; --fw: 1px !important; --frame: transparent !important; --fill: transparent !important; --acc: transparent !important;
  position: absolute !important; left: -8px !important; right: -8px !important; translate: none !important; top: calc(100% + 10px) !important; bottom: auto !important; width: auto !important; max-width: none !important; height: var(--rm-cb-foot) !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 12px !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 7px !important; transform: none !important;
  font: 700 11.5px/1 var(--sc-font-ui) !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: #ecefe6 !important; -webkit-text-fill-color: currentColor !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-prompt-badge::before { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .stash-p2 .bg3-prompt-badge { --frame: transparent !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-prompt-badge { --fill: transparent !important; color: #0d151e !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-battle-die-widget.is-locked .bg3-prompt-badge { display: flex !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-prompt-badge .bg3-prompt-text { font: inherit !important; letter-spacing: inherit !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-prompt-dot { width: 7px !important; height: 7px !important; border-radius: 0 !important; background: var(--sc-signal) !important; box-shadow: none !important; flex: 0 0 auto !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-prompt-dot { box-shadow: 0 0 0 1px rgb(13 21 30 / .45) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-effect-desc { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .site-header .menu-toggle, html[data-phone-device='true'] body.phone-match-active.combat-active .site-header .menu-toggle { visibility: hidden !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active[data-phone-phase='COMBAT_ROLLING'] #action-bar { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active #phone-reference-toggle { visibility: hidden !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active :is(.bar-left, .bar-right) { display: block !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active #game-screen .hud-player { display: flex !important; visibility: visible !important; opacity: 1 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #board-col { position: relative !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #board-col::after { content: ''; position: absolute; inset: -8%; z-index: 20; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(circle closest-side at 50% 50%, transparent 32%, rgb(21 26 24 / .5) 72%, rgb(21 26 24 / .85) 100%); }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #board-col::after { background: radial-gradient(circle closest-side at 50% 50%, transparent 32%, rgb(201 207 198 / .5) 72%, rgb(201 207 198 / .85) 100%); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:not([data-phone-phase='EVADE_SELECT']) #board-col::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #board-col::after { transition: none; } }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body .rm-math { display: none; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) .bg3-prompt-badge { --frame: transparent !important; --fill: transparent !important; left: -2px !important; right: 94px !important; width: auto !important; translate: none !important; padding: 0 0 0 12px !important; justify-content: flex-start !important; font-size: 11px !important; letter-spacing: .1em !important; color: #fff !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) .bg3-prompt-badge { color: #0d151e !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) .bg3-prompt-dot { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) .rm-math { display: flex !important; position: absolute; right: 12px; bottom: 0; top: auto; height: var(--rm-cb-foot); padding: 0 2px 0 8px; align-items: center; gap: 6px; z-index: 3; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) .rm-math small { font: 700 12.5px/1 var(--sc-font-ui); letter-spacing: .04em; color: rgb(236 239 230 / .88); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) .rm-math b { font: 800 22px/1 var(--sc-font-display); color: var(--sc-p1-text); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) .stash-p2 .rm-math b { color: var(--sc-p2-text); }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) .rm-math small { color: #2f3d4a !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) .rm-math b { color: var(--sc-p1); }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) .stash-p2 .rm-math b { color: #a8166a; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #action-bar { --c: 10px; --fw: 1px; --frame: rgb(var(--sc-fg-rgb) / .3); --fill: var(--rm-plate); --acc: var(--sc-signal); --acc-pos: left top; --acc-size: 0px 0px; --orn: linear-gradient(transparent, transparent);
  position: fixed !important; inset: auto !important; top: auto !important; bottom: var(--rm-gb) !important; right: var(--rm-cb-x) !important; left: auto !important;
  width: var(--rm-cb-w) !important; max-width: none !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; max-height: 112px !important; transform: none !important; translate: none !important;
  display: flex !important; flex-direction: column !important; align-items: stretch !important; justify-content: flex-end !important; gap: 4px !important; padding: 7px 10px !important; box-sizing: border-box !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; align-self: auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #action-bar { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 var(--c), var(--c) 0, 100% 0, 100% 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #action-bar::before, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #action-bar::after { display: none !important; content: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #action-bar .bar-center-container { display: flex !important; flex-direction: column !important; justify-content: flex-end !important; gap: 5px !important; width: 100% !important; height: auto !important; flex: 0 1 auto !important; min-height: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #action-bar .bar-center { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #combat-result-container { display: flex !important; flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; gap: 3px !important; width: 100% !important; height: auto !important; text-align: left !important; flex: 0 0 auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #cb-outcome { display: flex !important; align-items: flex-start !important; gap: 7px !important; visibility: visible !important; margin: 0 !important; white-space: normal !important; text-align: left !important;
  font: 700 9.5px/1.18 var(--sc-font-ui) !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--sc-text) !important; -webkit-text-fill-color: currentColor !important; text-shadow: none !important; flex: 0 0 auto !important; min-height: 0 !important; overflow: visible !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #combat-result-container .cb-outcome-detail { margin: 0 !important; padding-left: 13px !important; font: 700 8.5px/1.18 var(--sc-font-ui) !important; letter-spacing: .06em !important; color: var(--sc-muted) !important; white-space: normal !important; flex: 0 0 auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #cb-outcome::before { content: ''; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 3px; background: var(--sc-signal); }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #cb-outcome::before { background: #7f9b00; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #cb-outcome[data-rm-short] { font-size: 0 !important; letter-spacing: 0 !important; gap: 0 !important; justify-content: flex-start !important; padding: 0 !important; align-self: stretch !important; width: 100% !important; max-width: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #cb-outcome[data-rm-short]::before { margin-right: 7px; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #cb-outcome[data-rm-short]::after { content: attr(data-rm-short); flex: 1 1 auto; min-width: 0; font: 700 clamp(8.5px, 1.13vw, 9.5px)/1.18 var(--sc-font-ui); letter-spacing: .08em; text-transform: uppercase; color: inherit; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #btn-combat-done { position: relative !important; transform: none !important; translate: none !important; inset: auto !important; flex: 0 0 auto !important; width: 100% !important; max-width: none !important; min-width: 0 !important;
  height: 36px !important; min-height: 36px !important; max-height: 36px !important; margin: 0 !important; align-self: stretch !important; box-shadow: none !important;
  align-items: center !important; justify-content: center !important; text-align: center !important; padding: 0 8px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #btn-combat-done:not([style*='none']) { display: flex !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #evade-decision-container { position: static !important; inset: auto !important; transform: none !important; margin: 0 !important; height: auto !important; flex-direction: row !important; gap: 6px !important; width: 100% !important; padding: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #evade-decision-container .btn { white-space: normal !important; flex: 1 1 0 !important; width: auto !important; max-width: none !important; min-width: 0 !important; height: 40px !important; min-height: 40px !important; padding: 0 4px !important; box-shadow: none !important;
  justify-content: center !important; text-align: center !important; font-size: 0 !important; letter-spacing: 0 !important; overflow: hidden !important; gap: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #evade-decision-container .btn::after { display: block !important; position: static !important; width: 100% !important; margin: 0 !important; padding: 0 !important; text-align: center !important; text-indent: 0 !important; opacity: 1 !important; transform: none !important; animation: none !important; background: none !important; white-space: normal !important; font: 700 9.5px/1.2 var(--sc-font-ui) !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: inherit; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #btn-evade-yes::after { content: 'Evade & retreat' !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #btn-evade-no::after { content: 'Win combat' !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #evade-decision-container .btn[data-rm-label]::after { content: attr(data-rm-label) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #evade-decision-container #btn-evade-no:not(:disabled) { --fill: var(--sc-signal) !important; --frame: var(--sc-signal) !important; color: var(--sc-signal-ink) !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #evade-decision-container #btn-evade-no:not(:disabled) { --frame: rgb(var(--sc-fg-rgb) / .45) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #evade-decision-container #btn-evade-no:not(:disabled):is(:hover, :focus-visible) { --fill: color-mix(in srgb, var(--sc-signal) 72%, #fff) !important; --frame: color-mix(in srgb, var(--sc-signal) 72%, #fff) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) #combat-timer-pill { align-self: flex-start !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-final-boost { color: var(--sc-p1) !important; text-shadow: none !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .stash-p2 .bg3-final-boost { color: #a8166a !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-final-symbol svg { color: var(--sc-p1) !important; fill: var(--sc-p1) !important; filter: none !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .stash-p2 .bg3-final-symbol svg { color: #a8166a !important; fill: #a8166a !important; filter: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal { background: rgb(10 12 11 / .66) !important; backdrop-filter: blur(3px) !important; -webkit-backdrop-filter: blur(3px) !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal { background: rgb(201 207 198 / .62) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-chamber-card { --c: 12px !important; --fw: 1px !important; --frame: rgb(var(--sc-gold-rgb) / .75) !important; --fill: var(--rm-plate) !important; --acc: transparent !important;
  --orn: linear-gradient(rgb(var(--sc-gold-rgb) / .8), rgb(var(--sc-gold-rgb) / .8)) left 5px bottom 5px / 12px 2px no-repeat, linear-gradient(rgb(var(--sc-gold-rgb) / .8), rgb(var(--sc-gold-rgb) / .8)) left 5px bottom 5px / 2px 12px no-repeat, linear-gradient(rgb(var(--sc-gold-rgb) / .8), rgb(var(--sc-gold-rgb) / .8)) right 5px bottom 5px / 12px 2px no-repeat, linear-gradient(rgb(var(--sc-gold-rgb) / .8), rgb(var(--sc-gold-rgb) / .8)) right 5px bottom 5px / 2px 12px no-repeat !important;
  --rm-core-die: min(calc(100dvh - 2 * var(--rm-gv, 6px) - 196px), 23vw, 168px);
  display: grid !important; grid-template-columns: var(--rm-core-die) minmax(0, 1fr) !important; grid-template-rows: auto var(--rm-core-die) auto !important; gap: 12px clamp(16px, 3vw, 28px) !important;
  align-items: center !important; justify-items: stretch !important;
  width: min(780px, calc(100vw - 2 * max(16px, var(--phone-safe-left, 0px), var(--phone-safe-right, 0px)))) !important; max-width: none !important;
  height: auto !important; max-height: calc(100dvh - 12px) !important; padding: clamp(12px, 3.6dvh, 18px) clamp(14px, 2.6vw, 24px) clamp(12px, 3.4dvh, 16px) !important;
  background: none !important; box-shadow: none !important; border: 0 !important; overflow: visible !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-chamber-card::after { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-hud-header { grid-area: 1 / 1 / 2 / 3 !important; position: relative; z-index: 2; margin: 0 !important; padding: 0 !important; width: auto !important; display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: flex-start !important; align-items: center !important; gap: 8px !important; text-align: left !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-eyebrow-row { margin: 0 !important; justify-content: flex-start !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-eyebrow-row { gap: 6px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal :is(.core-scorer-tag, .core-sys-label, .core-hud-divider, .core-status-line) { font: 700 10px/1.3 var(--sc-font-ui) !important; letter-spacing: .14em !important; text-transform: uppercase !important; text-shadow: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-scorer-tag { color: var(--sc-p1-text) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active[data-phone-active='p2'] #core-modal .core-scorer-tag { color: var(--sc-p2-text) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-hud-divider, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-sys-label { color: var(--sc-muted) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-status-line { margin-left: auto !important; color: var(--sc-muted) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-d4-widget { grid-area: 2 / 1 / 3 / 2 !important; position: relative !important; width: var(--rm-core-die) !important; height: var(--rm-core-die) !important; min-height: 0 !important; margin: 0 !important; align-self: center !important; justify-self: center !important; overflow: visible !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal :is(.core-d4-widget, .core-die-container) { background: none !important; border: 0 !important; box-shadow: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-d4-widget::before, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-d4-widget::after { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-die-container { position: absolute !important; inset: 8% 0 -8% 0 !important; width: auto !important; height: auto !important; display: grid !important; place-items: center !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-3d-canvas { width: 84% !important; height: 84% !important; max-width: 100% !important; aspect-ratio: 1 !important; object-fit: contain !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-die-ambient-glow { inset: 0 !important; width: auto !important; height: auto !important; translate: none !important; transform: none !important; scale: none !important; border-radius: 50% !important; border: 0 !important; box-shadow: none !important;
  background: radial-gradient(closest-side, rgb(var(--sc-gold-rgb) / .16), transparent) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-shockwave-layer { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; pointer-events: none !important; overflow: visible !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-shockwave-ring { position: absolute !important; left: 50% !important; top: 50% !important; right: auto !important; bottom: auto !important; width: 70% !important; height: 70% !important; margin: 0 !important;
  translate: -50% -50% !important; transform-origin: 50% 50% !important; border-radius: 50% !important; box-sizing: border-box !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-face-symbol { position: absolute !important; left: 50% !important; top: 45% !important; translate: -50% -50% !important; transform: none !important; width: calc(var(--rm-core-die) * .46) !important; height: calc(var(--rm-core-die) * .46) !important; margin: 0 !important;
  display: grid !important; place-items: center !important; border-radius: 50% !important; background: rgb(14 17 16 / .86) !important; box-shadow: 0 0 0 1px rgb(var(--sc-gold-rgb) / .8), 0 0 18px rgb(var(--sc-gold-rgb) / .35) !important;
  animation: rm-core-in .35s ease-out both; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-chamber-card:not(.is-rolled) .core-face-symbol { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-face-symbol svg { width: 92% !important; height: 92% !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-face-symbol svg :is(path, polygon, circle, rect) { fill: var(--sc-gold) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-prompt-badge { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-outcome-section { grid-area: 2 / 2 / 3 / 3 !important; align-self: center !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: clamp(6px, 2dvh, 10px) !important; text-align: left !important; overflow: visible !important; min-width: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-outcome-section::before { content: 'Scalar Core'; font: 700 10px/1 var(--sc-font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--sc-muted); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #core-modal-title, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #rm-core-copy b { font: 800 clamp(22px, 7.4dvh, 32px)/1 var(--sc-font-display) !important; letter-spacing: .06em !important; text-transform: uppercase; color: var(--sc-gold) !important; -webkit-text-fill-color: currentColor !important; text-shadow: none !important; text-align: left !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #core-modal-title { animation: rm-core-in .35s ease-out both; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #core-modal-desc, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #rm-core-copy span { font: 400 clamp(12px, 3.7dvh, 14px)/1.45 var(--sc-font-body) !important; color: var(--sc-text) !important; margin: 0 !important; text-align: left !important; max-width: 40ch !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #rm-core-copy { display: flex; flex-direction: column; align-items: flex-start; gap: inherit; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #rm-core-copy span { color: var(--sc-muted) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-chamber-card.is-rolled #rm-core-copy { display: none; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-chamber-card:not(.is-rolled) :is(#core-modal-title, #core-modal-desc) { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #core-ready-container { grid-area: 3 / 1 / 4 / 2 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #core-ready-status { grid-area: 3 / 1 / 4 / 2 !important; align-self: center !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #rm-core-faces { grid-area: 3 / 1 / 4 / 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(150px, 34%); align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid rgb(var(--sc-fg-rgb) / .12); align-self: end; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #core-action-container { grid-area: 3 / 2 / 4 / 3 !important; justify-self: end !important; align-self: end !important; margin: 0 !important; width: auto !important; position: relative; z-index: 1; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #btn-core-ok { min-height: 44px !important; height: 44px !important; padding: 0 26px !important; width: auto !important; max-width: none !important; animation: rm-core-in .35s ease-out both; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #rm-core-faces span { min-width: 0; display: grid; justify-items: center; gap: 5px; padding: 4px 0 2px; position: relative;
  font: 700 9px/1 var(--sc-font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--sc-muted); opacity: .72; transition: color .12s, opacity .12s; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #rm-core-faces span::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: -4px; height: 2px; background: transparent; transition: background .12s; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #rm-core-faces :is(i, svg) { display: block; width: clamp(22px, 7.6dvh, 32px); height: clamp(22px, 7.6dvh, 32px); color: inherit; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #rm-core-faces i { background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #rm-core-faces span.on { color: var(--sc-gold); opacity: 1; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #rm-core-faces span.on::after { background: var(--sc-gold); }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #core-modal-title, html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #rm-core-copy b, html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #rm-core-faces span.on { color: #8a6512 !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #rm-core-faces span.on::after { background: #8a6512; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-face-symbol { background: rgb(244 246 241 / .9) !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-face-symbol svg :is(path, polygon, circle, rect) { fill: #8a6512 !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal .core-scorer-tag { color: var(--sc-p1) !important; }
@keyframes rm-core-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal :is(.core-face-symbol, #core-modal-title, #btn-core-ok) { animation: none !important; } }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal { background: linear-gradient(90deg, rgb(14 17 16 / .35) 0%, rgb(14 17 16 / .86) 44%, #0e1110 68%), url('../../assets/game-media/2026-05-team_blue_1.webp') left center / cover no-repeat, #0e1110 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal[data-rm-winner='P2'] { background: linear-gradient(90deg, rgb(14 17 16 / .35) 0%, rgb(14 17 16 / .86) 44%, #0e1110 68%), url('../../assets/game-media/2026-05-team_purple_1.webp') left center / cover no-repeat, #0e1110 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal > .modal-card { --frame: transparent !important; --fill: transparent !important; --acc: transparent !important; position: fixed !important; inset: 0 !important; transform: none !important; translate: none !important;
  width: auto !important; max-width: none !important; height: auto !important; max-height: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important;
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: none !important; grid-auto-rows: auto !important; align-content: center !important; gap: 10px 8px !important;
  padding: max(14px, var(--phone-safe-top, 0px)) max(28px, calc(var(--phone-safe-right, 0px) + 12px)) max(12px, var(--phone-safe-bottom, 0px)) calc(37vw + 8px) !important; overflow: visible !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal > .modal-card::before { content: '' !important; display: block !important; position: absolute !important; z-index: 0 !important; inset: auto !important; left: max(5vw, calc(var(--phone-safe-left, 0px) + 8px)) !important; top: 50% !important; translate: 0 -50% !important;
  width: min(29vw, 62dvh) !important; height: min(29vw, 62dvh) !important; clip-path: none !important; background: url('../assets/images/BD20_3_BIG.webp') center / contain no-repeat !important;
  filter: drop-shadow(0 14px 24px rgb(0 0 0 / .65)) drop-shadow(0 0 28px rgb(var(--sc-p1-rgb) / .45)) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal[data-rm-winner='P2'] > .modal-card::before { background-image: url('../assets/images/VD20_3_BIG.webp') !important; filter: drop-shadow(0 14px 24px rgb(0 0 0 / .65)) drop-shadow(0 0 28px rgb(var(--sc-p2-rgb) / .45)) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal[data-rm-winner='draw'] > .modal-card::before { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal > .modal-card::after { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal > .modal-card > * { grid-column: 1 / -1 !important; grid-row: auto !important; margin: 0 !important; position: relative; z-index: 1; text-align: left !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-title { order: 1; font: 700 11px/1 var(--sc-font-ui) !important; letter-spacing: .2em !important; text-transform: uppercase !important; color: var(--sc-muted) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-winner { order: 2; font: 700 clamp(30px, 5.2vw, 40px)/1 var(--sc-font-display) !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--sc-p1-text) !important; -webkit-text-fill-color: currentColor !important;
  text-shadow: 0 0 22px rgb(var(--sc-p1-rgb) / .5) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal[data-rm-winner='P2'] #go-winner { color: var(--sc-p2-text) !important; text-shadow: 0 0 22px rgb(var(--sc-p2-rgb) / .5) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal[data-rm-winner='draw'] #go-winner { color: var(--sc-text) !important; text-shadow: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-reason { order: 3; font: 400 13px/1.4 var(--sc-font-body) !important; letter-spacing: 0 !important; text-transform: none !important; color: #c9cfc6 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-tokens { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-stats { order: 4; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; padding: 0 !important; min-height: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-stats::before, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-stats::after { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-stats .go-stat-box { grid-column: auto !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 4px !important; padding: 9px 2px !important; margin: 0 !important; min-height: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: linear-gradient(rgb(var(--sc-fg-rgb) / .18), rgb(var(--sc-fg-rgb) / .18)) !important; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%) !important; position: relative !important; isolation: isolate; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-stats .go-stat-box::before { content: '' !important; display: block !important; position: absolute !important; inset: 1px !important; z-index: -1 !important; background: var(--rm-plate) !important; clip-path: polygon(0 0, calc(100% - 6.6px) 0, 100% 6.6px, 100% 100%, 0 100%) !important; border: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-stats .stat-num { font: 700 20px/1 var(--sc-font-display) !important; color: var(--sc-text) !important; -webkit-text-fill-color: currentColor !important; white-space: nowrap !important; text-shadow: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-stats #go-stat-elims span { font: inherit !important; line-height: 1 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-stats #go-stat-mvp { font-size: 16px !important; max-width: 100% !important; overflow: hidden !important; text-overflow: ellipsis !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-stats .stat-lbl { font: 700 9px/1 var(--sc-font-ui) !important; letter-spacing: .16em !important; text-transform: uppercase !important; color: var(--sc-muted) !important; margin: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #rm-go-emblems { order: 5; display: flex; align-items: center; gap: 14px; min-height: 0; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #rm-go-emblems .rm-toks { display: flex; gap: 8px; filter: drop-shadow(0 0 10px rgb(var(--sc-signal-rgb) / .3)); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #rm-go-emblems .rm-toks svg { width: 44px; height: 51px; display: block; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #rm-go-emblems .rm-toks.rm-small svg { width: 28px; height: 32px; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #rm-go-emblems .rm-dice { display: flex; gap: 8px; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #rm-go-emblems .rm-dice span { width: 44px; height: 51px; display: grid; place-items: center; border: 1px solid rgb(var(--sc-p1-rgb) / .7); background: rgb(var(--sc-p1-rgb) / .1); color: var(--sc-p1-text); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal[data-rm-winner='P2'] #rm-go-emblems .rm-dice span { border-color: rgb(var(--sc-p2-rgb) / .7); background: rgb(var(--sc-p2-rgb) / .1); color: var(--sc-p2-text); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #rm-go-emblems .rm-dice i { width: 30px; height: 30px; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: 190%; mask-size: 190%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #rm-go-emblems .rm-copy { display: grid; gap: 4px; min-width: 0; flex: 1 1 auto; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #rm-go-emblems .rm-copy b { font: 700 11px/1 var(--sc-font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--sc-text); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #rm-go-emblems .rm-copy span { font: 400 12px/1.35 var(--sc-font-body); color: var(--sc-muted); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal :is(#go-ready-container, #go-ready-status) { order: 6; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #btn-new-game { order: 7; grid-column: 1 / 2 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #btn-go-exit { order: 7; grid-column: 2 / 3 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal :is(#btn-new-game, #btn-go-exit) { height: 44px !important; min-height: 44px !important; width: 100% !important; font: 700 12px/1 var(--sc-font-ui) !important; letter-spacing: .16em !important; text-transform: uppercase !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal { background: linear-gradient(90deg, rgb(201 207 198 / .3) 0%, rgb(214 219 210 / .9) 44%, #d8dcd5 68%), url('../../assets/game-media/2026-05-team_blue_1.webp') left center / cover no-repeat, #d8dcd5 !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal[data-rm-winner='P2'] { background: linear-gradient(90deg, rgb(201 207 198 / .3) 0%, rgb(214 219 210 / .9) 44%, #d8dcd5 68%), url('../../assets/game-media/2026-05-team_purple_1.webp') left center / cover no-repeat, #d8dcd5 !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-winner { color: var(--sc-p1) !important; text-shadow: none !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal[data-rm-winner='P2'] #go-winner { color: #a8166a !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-reason { color: #39403b !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen .mode-cards-container { display: flex !important; flex-direction: column !important; gap: 8px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #card-mode-ai { order: 1 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #card-mode-online { order: 2 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #card-mode-hotseat { order: 3 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen .mode-card { min-height: 44px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen .mode-card.selected { min-height: 52px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen .mode-card-title { font: 700 14px/1 var(--sc-font-ui) !important; letter-spacing: .12em !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen .mode-card.selected .mode-card-title { font-size: 16px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen .mode-card-sub { font: 400 11px/1.2 var(--sc-font-body) !important; letter-spacing: 0 !important; text-transform: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #card-mode-hotseat:not(.selected) { opacity: .72; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #card-mode-hotseat:is([aria-disabled='true'], .disabled) {
  opacity: .44 !important;
  cursor: not-allowed !important;
  filter: grayscale(.55);
  border-color: rgba(148, 163, 184, .18) !important;
  box-shadow: none !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #card-mode-hotseat:is([aria-disabled='true'], .disabled) {
  opacity: .5 !important;
  background: rgba(241, 245, 249, .72) !important;
  border-color: rgba(148, 163, 184, .28) !important;
  color: rgba(51, 65, 85, .65) !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai.lobby-duel-panel { position: relative !important; display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) auto 44px !important; gap: 8px !important; align-items: center !important;
  padding-top: 24px !important; box-sizing: border-box !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai > .setup-body { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai .lobby-faction-grid { grid-row: 1 !important; grid-column: 1 !important; height: 100% !important; max-height: 122px !important; align-self: center !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai #ai-ro-result { grid-row: 2 !important; grid-column: 1 !important; height: auto !important; align-self: center !important; display: block !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai #btn-ai-rolloff { grid-row: 3 !important; grid-column: 1 !important; margin: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai > .setup-rules { grid-row: 3 !important; grid-column: 1 !important; padding: 0 !important; margin: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai::before { content: 'Pick your side'; position: absolute; left: 0; top: 0; font: 700 12px/1 var(--sc-font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--sc-text); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai:has(#btn-ai-start:not(:disabled))::before { content: 'Roll-off · D6'; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai .rolloff-wrap { display: contents !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai:has(#btn-ai-start:disabled) #btn-ai-start { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai:has(#btn-ai-start:not(:disabled)) #btn-ai-rolloff { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai #btn-ai-rolloff { --frame: var(--sc-signal) !important; --fill: var(--sc-signal) !important; color: var(--sc-signal-ink) !important; -webkit-text-fill-color: currentColor !important; width: 100% !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai #btn-ai-rolloff:disabled { --fill: rgb(var(--sc-signal-rgb) / .35) !important; --frame: rgb(var(--sc-signal-rgb) / .35) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai .setup-rules { width: 100% !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai .rolloff-vals { display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important; align-items: center !important; justify-items: center !important; gap: 8px !important; width: 100% !important; margin: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai .ai-faction-dice-card { --c: 10px !important; --fw: 1px !important; --acc: transparent !important; position: relative !important; isolation: isolate;
  width: auto !important; height: 100% !important; max-height: 118px !important; aspect-ratio: 128 / 118 !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 6px !important;
  padding: 18px 0 8px !important; box-sizing: border-box !important; cursor: pointer; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; --frame: rgb(var(--sc-fg-rgb) / .16); --fill: var(--rm-plate); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai #ai-ro-card-p1.selected-human { --frame: var(--sc-p1); --fill: linear-gradient(160deg, rgb(var(--sc-p1-rgb) / .24), rgb(var(--sc-p1-rgb) / .06)); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai #ai-ro-card-p2.selected-human { --frame: var(--sc-p2); --fill: linear-gradient(160deg, rgb(var(--sc-p2-rgb) / .22), rgb(var(--sc-p2-rgb) / .05)); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai .ai-role-tag { --c: 6px; --fw: 1px; --frame: rgb(var(--sc-fg-rgb) / .45); --fill: var(--rm-plate); --acc: transparent; --orn: linear-gradient(transparent, transparent);
  position: absolute !important; top: 8px !important; left: 50% !important; translate: -50% 0 !important; transform: none !important; height: 15px !important; padding: 1px 9px 0 7px !important; box-sizing: border-box !important;
  display: inline-flex !important; align-items: center !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important;
  font: 700 8px/1 var(--sc-font-ui) !important; letter-spacing: .12em !important; color: var(--rm-ink-dim) !important; -webkit-text-fill-color: currentColor !important; text-shadow: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai .ai-role-tag.tag-human { --frame: rgb(236 239 230 / .6); --fill: var(--rm-you); color: #ecefe6 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai .ro-val { width: 56px !important; height: 56px !important; min-width: 0 !important; margin: 6px 0 0 !important; display: grid !important; place-items: center !important; font: 800 30px/1 var(--sc-font-display) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai .ro-val:empty::after { content: ''; width: 18px; height: 3px; background: currentColor; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai .ai-faction-name { font: 700 11px/1 var(--sc-font-ui) !important; letter-spacing: .16em !important; text-transform: uppercase !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai .ro-vs { font: 700 10px/1 var(--sc-font-ui) !important; letter-spacing: .14em !important; color: var(--sc-muted) !important; text-transform: uppercase !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai #ai-ro-result { min-height: 16px !important; margin: 0 !important; font: 400 12px/1.3 var(--sc-font-body) !important; letter-spacing: 0 !important; text-transform: none !important; text-align: center !important; color: #c9cfc6 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai #ai-ro-result:empty::before { content: 'Tap a side to command it. The higher D6 roll opens the match.'; color: var(--sc-muted); }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai #ai-ro-result { color: #39403b !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-ai .ai-role-tag.tag-human { color: #fff !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-online { position: relative !important; padding-top: 24px !important; box-sizing: border-box !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-online::before { content: 'Online'; position: absolute; left: 0; top: 0; font: 700 12px/1 var(--sc-font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--sc-text); }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-online:has(#host-room-info[style*='flex'])::before { content: 'Private room'; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #setup-screen #panel-online #display-room-code { font: 800 30px/1 var(--sc-font-display) !important; letter-spacing: .12em !important; text-shadow: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open { position: fixed !important; inset: 0 !important; z-index: 900 !important; display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(230px, 40%) !important; grid-template-rows: auto auto !important;
  align-content: center !important; align-items: start !important; column-gap: 36px !important; row-gap: 18px !important; overflow-y: auto !important;
  padding: max(64px, calc(var(--phone-safe-top, 0px) + 56px)) max(28px, calc(var(--phone-safe-right, 0px) + 14px)) max(18px, var(--phone-safe-bottom, 0px)) max(40px, calc(var(--phone-safe-left, 0px) + 24px)) !important;
  background: var(--rm-plate) !important; pointer-events: auto !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.game-active #main-nav.open {
  padding: max(24px, calc(var(--phone-safe-top, 0px) + 18px)) max(28px, calc(var(--phone-safe-right, 0px) + 14px)) max(76px, calc(var(--rm-gb, 18px) + 56px)) max(40px, calc(var(--phone-safe-left, 0px) + 24px)) !important;
}
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .phone-navigation-links { position: static !important; inset: auto !important; transform: none !important; grid-column: 1 !important; grid-row: 1 / span 2 !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: center !important;
  gap: 6px !important; width: auto !important; height: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .phone-navigation-links > .nav-link { --frame: transparent !important; --fill: transparent !important; position: relative !important; width: auto !important; height: auto !important; min-height: 44px !important; padding: 6px 0 !important; display: inline-flex !important; align-items: center !important;
  border: 0 !important; background: none !important; box-shadow: none !important; outline-offset: 4px;
  font: 700 22px/1.15 var(--sc-font-display) !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--sc-text) !important; -webkit-text-fill-color: currentColor !important; text-align: left !important; justify-content: flex-start !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .phone-navigation-links > .nav-link::before { display: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .phone-navigation-links > .nav-link::after { content: '' !important; display: block !important; position: absolute !important; left: 0 !important; bottom: 0 !important; width: 0 !important; height: 3px !important; background: var(--sc-signal) !important; border: 0 !important; transform: none !important; opacity: 1 !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .phone-navigation-links > .nav-link.active::after { width: 38px !important; }
html.site-menu-open[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .phone-navigation-links > .nav-link.active::after { background: #7f9b00 !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open:has(#rm-menu-main) .phone-navigation-links { grid-row: 2 !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: flex-start !important; gap: 0 !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open:has(#rm-menu-main) .phone-navigation-links > .nav-link { font: 700 9px/1 var(--sc-font-ui) !important; letter-spacing: .16em !important; color: var(--sc-muted) !important; padding: 6px 0 !important; min-height: 44px !important; display: inline-flex !important; align-items: center !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open:has(#rm-menu-main) .phone-navigation-links > .nav-link + .nav-link::before { content: '·' !important; display: inline !important; position: static !important; margin: 0 7px !important; background: none !important; clip-path: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open:has(#rm-menu-main) .phone-navigation-links > .nav-link::after, html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open:has(#rm-menu-main) .phone-navigation-links > .nav-play { display: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #rm-menu-main { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; align-self: end; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #rm-menu-main button { appearance: none; position: relative; border: 0; background: none; min-height: 44px; padding: 6px 0; display: inline-flex; align-items: center; cursor: pointer; text-align: left;
  font: 700 22px/1.15 var(--sc-font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--sc-text); }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #rm-menu-main button.rm-resume::after { content: ''; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; background: var(--sc-signal); }
html.site-menu-open[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #rm-menu-main button.rm-resume::after { background: #7f9b00; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #rm-menu-main button:focus-visible { outline: 2px solid var(--sc-signal); outline-offset: 4px; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .phone-navigation-settings { position: static !important; inset: auto !important; transform: none !important; translate: none !important; max-width: none !important; grid-column: 2 !important; grid-row: 1 / span 2 !important; align-self: center !important; display: flex !important; flex-direction: column !important; gap: 0 !important;
  width: 100% !important; height: auto !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .phone-navigation-settings :is(#phone-match-tools, #game-site-audio, .ghdr-right) { display: contents !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open :is(#arena-codex-match, #in-game-audio-toggle, #rm-menu-tutorial) { --frame: transparent !important; --fill: transparent !important; --acc: transparent !important; order: 1;
  position: relative !important; inset: auto !important; transform: none !important; max-width: none !important; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 10px !important;
  width: 100% !important; height: auto !important; min-height: 44px !important; margin: -1px 0 0 !important; padding: 0 12px !important; box-sizing: border-box !important;
  border: 1px solid rgb(var(--sc-fg-rgb) / .2) !important; border-radius: 0 !important; background: var(--rm-tile) !important; box-shadow: none !important; clip-path: none !important;
  font: 700 11px/1 var(--sc-font-ui) !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: var(--sc-text) !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open :is(#arena-codex-match, #in-game-audio-toggle, #rm-menu-tutorial)::before { display: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #rm-menu-tutorial { order: 0; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open :is(#arena-codex-match, #in-game-audio-toggle, #rm-menu-tutorial) svg { width: 15px !important; height: 15px !important; flex: 0 0 auto !important; margin: 0 !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open :is(#arena-codex-match, #in-game-audio-toggle) .phone-navigation-control-label { font-size: 0 !important; position: static !important; margin: 0 !important; display: block !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #arena-codex-match .phone-navigation-control-label::after { content: 'Rules codex'; font: 700 11px/1 var(--sc-font-ui); letter-spacing: .14em; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #in-game-audio-toggle .phone-navigation-control-label::after { content: 'Sound effects'; font: 700 11px/1 var(--sc-font-ui); letter-spacing: .14em; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open :is(#arena-codex-match, #rm-menu-tutorial)::after { content: '' !important; display: block !important; margin-left: auto !important; width: 8px !important; height: 12px !important; background: currentColor !important; opacity: .6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M1.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M1.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; position: static !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #in-game-audio-toggle::after { content: '' !important; display: block !important; position: static !important; margin-left: auto !important; width: 30px !important; height: 16px !important; box-sizing: border-box !important;
  border: 1px solid var(--sc-signal) !important; background: linear-gradient(var(--sc-signal), var(--sc-signal)) right 2px center / 12px 10px no-repeat !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #in-game-audio-toggle.is-muted::after { border-color: rgb(var(--sc-fg-rgb) / .35) !important; background: linear-gradient(rgb(var(--sc-fg-rgb) / .45), rgb(var(--sc-fg-rgb) / .45)) left 2px center / 12px 10px no-repeat !important; }
html.site-menu-open[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #in-game-audio-toggle:not(.is-muted)::after { border-color: #7f9b00 !important; background: linear-gradient(#9fc400, #9fc400) right 2px center / 12px 10px no-repeat !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #phone-log-toggle { display: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body:not(.game-active) #main-nav.open #btn-exit-game { display: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.game-active #main-nav.open #arena-codex-match { display: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #btn-exit-game { --frame: transparent !important; --fill: transparent !important; order: 5; position: fixed !important; top: auto !important; right: auto !important;
  bottom: var(--rm-gb, max(18px, calc(var(--phone-safe-bottom, 0px) + 4px))) !important; left: max(40px, calc(var(--phone-safe-left, 0px) + 24px)) !important; z-index: 951 !important;
  transform: none !important; translate: none !important; max-width: none !important; display: flex !important; align-items: center !important; justify-content: center !important;
  width: auto !important; min-width: 152px !important; height: 44px !important; min-height: 44px !important; margin: 0 !important; padding: 0 18px !important; border: 1px solid rgb(var(--sc-hazard-rgb) / .7) !important; border-radius: 0 !important;
  background: var(--rm-plate) !important; box-shadow: none !important; color: var(--sc-hazard) !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #btn-exit-game::before { display: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #btn-exit-game svg { display: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #btn-exit-game .phone-navigation-control-label { font-size: 0 !important; position: static !important; display: block !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #btn-exit-game .phone-navigation-control-label::after { content: 'Leave match'; font: 700 11px/1 var(--sc-font-ui); letter-spacing: .14em; text-transform: uppercase; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .theme-toggle { --frame: transparent !important; --fill: transparent !important; --acc: transparent !important; order: 2;
  position: relative !important; inset: auto !important; transform: none !important; translate: none !important; max-width: none !important; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 10px !important;
  width: 100% !important; height: auto !important; min-height: 44px !important; margin: -1px 0 0 !important; padding: 0 12px !important; box-sizing: border-box !important;
  border: 1px solid rgb(var(--sc-fg-rgb) / .2) !important; border-radius: 0 !important; background: var(--rm-tile) !important; box-shadow: none !important; clip-path: none !important;
  font: 700 11px/1 var(--sc-font-ui) !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: var(--sc-text) !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .theme-toggle::before { content: 'Light mode' !important; display: block !important; position: static !important; order: 2; inset: auto !important; z-index: auto !important; width: auto !important; height: auto !important; background: none !important; clip-path: none !important; border: 0 !important; opacity: 1 !important;
  font: 700 11px/1 var(--sc-font-ui) !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: var(--sc-text) !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .theme-toggle svg { order: 1; width: 15px !important; height: 15px !important; flex: 0 0 auto !important; margin: 0 !important; position: static !important;
  fill: none !important; stroke: currentColor !important; stroke-width: 1.7 !important; stroke-linecap: round !important; stroke-linejoin: round !important; overflow: visible !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .theme-toggle svg * { fill: none !important; stroke: currentColor !important; vector-effect: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .theme-toggle .moon-icon { display: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .theme-toggle .sun-icon { display: block !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .theme-toggle .theme-label { display: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .theme-toggle::after { content: '' !important; display: block !important; position: static !important; order: 3; inset: auto !important; margin-left: auto !important; width: 30px !important; height: 16px !important; box-sizing: border-box !important; clip-path: none !important;
  border: 1px solid rgb(var(--sc-fg-rgb) / .35) !important; background: linear-gradient(rgb(var(--sc-fg-rgb) / .45), rgb(var(--sc-fg-rgb) / .45)) left 2px center / 12px 10px no-repeat !important; opacity: 1 !important; transform: none !important; }
html.site-menu-open[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .theme-toggle::after { border-color: #7f9b00 !important; background: linear-gradient(#9fc400, #9fc400) right 2px center / 12px 10px no-repeat !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .theme-toggle:focus-visible { outline: 2px solid var(--sc-signal) !important; outline-offset: -2px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body:not(.phone-match-active) .site-header .menu-toggle,
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body:not(#rm-open):not(.phone-match-active) .site-header .menu-toggle { --frame: transparent !important; --fill: transparent !important; position: fixed !important; z-index: 950 !important;
  top: max(6px, calc(var(--site-header-center-y, 28px) - 22px)) !important; right: var(--site-header-edge, max(24px, var(--phone-safe-right, 0px))) !important; left: auto !important; bottom: auto !important;
  width: 44px !important; height: 44px !important; margin: 0 !important; transform: none !important; translate: none !important; border: 0 !important; background: none !important; box-shadow: none !important; pointer-events: auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body:not(.phone-match-active) .site-header .menu-toggle::before, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body:not(.phone-match-active) .site-header .menu-toggle::after { display: none !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:not(#rm-open):not(.combat-active) .site-header .menu-toggle { position: fixed !important; z-index: 950 !important;
  top: auto !important; bottom: var(--rm-gb) !important; right: var(--rm-gx) !important; left: auto !important;
  width: var(--rm-act-h) !important; height: var(--rm-act-h) !important; min-height: 0 !important; margin: 0 !important; transform: none !important; translate: none !important; pointer-events: auto !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.ai-turn #phone-match-status .phone-status-title { background: rgb(var(--sc-fg-rgb) / .14) !important; color: var(--sc-text) !important; }
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.ai-turn #phone-match-status .phone-status-title { background: rgb(18 23 20 / .14) !important; color: #121714 !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #rm-menu-tutorial { order: 0 !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #arena-codex-match { order: 1 !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #in-game-audio-toggle { order: 2 !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open .theme-toggle { order: 3 !important; }
html.site-menu-open[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #main-nav.open #btn-exit-game { order: 5 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .row-popup:not(.popup-observer) { width: clamp(184px, 23vw, 206px) !important; height: 184px !important; min-height: 184px !important; max-height: 184px !important; padding: 10px !important; gap: 8px !important; box-sizing: border-box !important; overflow: visible !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .row-popup.popup-observer { height: auto !important; max-height: none !important; padding: 10px !important; gap: 8px !important; box-sizing: border-box !important; overflow: visible !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .row-popup:not(.popup-observer) .popup-big-val { height: 100% !important; min-height: 0 !important; font-size: 46px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .row-popup .popup-die-preview { margin: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .row-popup .popup-actions { height: 40px !important; min-height: 0 !important; margin: 0 !important; gap: 6px !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .row-popup .popup-actions .btn { height: 40px !important; min-height: 0 !important; max-height: 40px !important; flex: 1 1 0 !important; min-width: 0 !important; padding: 0 6px !important; margin: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal > .modal-card, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal > .modal-card { --viewport-fit-scale: 1 !important; transform: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .side-stash .die-chip.tut-beacon-glow { z-index: 6 !important; --frame: var(--sc-signal) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .side-stash .die-chip.tut-beacon-glow::after { content: '' !important; display: block !important; position: absolute !important; inset: -5px !important; z-index: 6 !important; pointer-events: none !important;
  --c: 10px; --fw: 2px; --frame: var(--sc-signal); --fill: linear-gradient(rgb(var(--sc-signal-rgb) / .1), rgb(var(--sc-signal-rgb) / .1)); --acc: transparent; --orn: linear-gradient(transparent, transparent);
  border: 0 !important; border-radius: 0 !important; opacity: 1 !important; transform: none !important;
  box-shadow: inset 0 0 12px rgb(var(--sc-signal-rgb) / .55) !important; animation: rm-beacon 1.4s ease-in-out infinite !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .side-stash.phone-side-left .die-chip.tut-beacon-glow::after { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .side-stash.phone-side-right .die-chip.tut-beacon-glow::after { background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left top / var(--c) var(--c) no-repeat,
    var(--fill) !important; clip-path: polygon(0 var(--c), var(--c) 0, 100% 0, 100% 100%, 0 100%) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active :is(.side-stash, .stash-grid-wrapper, .stash-group-vert, .phone-group-open) { overflow: visible !important; }
@keyframes rm-beacon { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .side-stash .die-chip.tut-beacon-glow::after { animation: none !important; } }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body :is(.tut-rule-card, .codex-spotlight-box, .csb-card) { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body :is(.tut-rule-card, .codex-spotlight-box, .csb-card)::before, html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body :is(.tut-rule-card, .codex-spotlight-box, .csb-card)::after { display: none !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #tab-board .cx-board-wrap { display: grid !important; grid-template-columns: minmax(0, 42%) minmax(0, 1fr) !important; align-items: start !important; gap: clamp(10px, 2.4vw, 20px) !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #tab-board .cx-figure { margin: 0 !important; min-width: 0 !important; width: 100% !important; height: auto !important; max-height: none !important; display: grid !important; place-items: center !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #tab-board .cx-board { display: block !important; width: 100% !important; height: auto !important; max-height: calc(100dvh - 170px) !important; aspect-ratio: 610.4 / 553 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #tab-board .cx-figure { background: none !important; padding: 0 !important; border: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #tab-board .cx-zone { display: grid !important; grid-template-columns: 26px minmax(0, 1fr) !important; align-items: start !important; padding: 8px 10px !important; gap: 4px 10px !important; min-height: 0 !important; margin: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #tab-board .cx-zone > div { display: block !important; min-width: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #tab-board .cx-zone .cx-zico { width: 26px !important; height: 30px !important; flex: 0 0 auto !important; margin: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #tab-board .cx-zone p { font-size: 11.5px !important; line-height: 1.35 !important; margin: 4px 0 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #tab-board .cx-zone .cx-card-title { display: inline-block !important; font-size: 9.5px !important; padding: 3px 6px !important; margin: 0 !important; }
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body #tab-board .cx-legend { min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 6px !important; margin: 0 !important; }

/* =================================================================== REMEDIATION LAYER (touch targets, contrast, lobby/HUD geometry) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .skip-link {
  position: fixed; left: 12px; top: -96px; z-index: 200000;
  padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center;
  background: var(--sc-signal); color: var(--sc-signal-ink);
  font: 700 12px/1 var(--sc-font-ui); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--sc-text);
  transition: top .12s ease-out;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .skip-link:focus,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .skip-link:focus-visible { top: 12px; outline: 2px solid var(--sc-text); outline-offset: 2px; }

/* Tablet & touch tokens: enforce >=44px hit areas across coarse pointers and viewports <= 1200px */
@media (pointer: coarse), (max-width: 1200px) {
  :root, html[data-theme]:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) {
    --sc-h-sm: 44px;
    --sc-h-md: 44px;
    --sc-h-icon: 44px;
  }
  html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(
    #game-site-audio :is(.audio-toggle-btn, .btn-exit-round),
    #tactical-codex-modal :is(.audio-toggle-btn, .btn-exit-round, .codex-close-btn),
    .site-header .brand,
    .rb-help-icon,
    .rb-hover-btn,
    .btn-close-modal,
    .codex-close-btn,
    .codex-tab-btn,
    [data-tab],
    .act-btn,
    #btn-start-tutorial,
    #arena-codex-lobby
  ) {
    min-width: 44px !important;
    min-height: 44px !important;
  }
  html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#game-site-audio, #tactical-codex-modal) :is(.audio-toggle-btn, .btn-exit-round, .codex-close-btn) {
    width: 44px !important;
    height: 44px !important;
  }
  html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.audio-toggle-btn, .btn-exit-round, .codex-close-btn, .codex-tab-btn, .cx-rail .codex-tab-btn:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9)) {
    min-width: 45px !important;
    min-height: 45px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-rail .codex-tab-btn:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) {
    height: 45px !important;
    max-height: 45px !important;
  }
  html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal :is(.audio-toggle-btn, .btn-exit-round, .codex-close-btn) {
    width: 45px !important;
    height: 45px !important;
  }
  html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .site-header .brand {
    width: 44px !important;
    height: 44px !important;
  }
}

/* Rule rails: >=44px hit targets on every device */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.rb-help-icon, .rb-hover-btn) {
  min-width: 44px !important;
  min-height: 44px !important;
}

/* Contrast & focus refinements */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #ftue-welcome-modal #btn-ftue-skip {
  color: var(--sc-text) !important;
  -webkit-text-fill-color: var(--sc-text) !important;
  background: var(--sc-plate) !important;
  --fill: var(--sc-plate);
  border-color: var(--sc-line-strong) !important;
  --frame: var(--sc-line-strong);
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .ready-player-badge {
  color: var(--sc-text) !important;
  -webkit-text-fill-color: var(--sc-text) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #btn-start:focus-visible {
  outline: 2px solid var(--sc-signal) !important;
  outline-offset: 4px !important;
  --frame: var(--sc-text) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #btn-start:focus-visible {
  outline-color: var(--sc-text) !important;
}

/* Desktop lobby: hide ambient dice slots only on ultra-short (<600px) screens; let index.html/styles.css straddle edges */
@media (max-height: 599px) {
  html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .dice-slot-container { display: none !important; }
}
@media (min-width: 951px) and (min-height: 600px) and (max-height: 740px) and (orientation: landscape) {
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .dice-slot-container.left-slot:not(#sc-d0) { left: -132px !important; }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .dice-slot-container.right-slot:not(#sc-d0) { right: -132px !important; }
}

/* Desktop lobby: symmetric faction card padding */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen .lobby-faction-card { padding-inline: 16px !important; }

/* Non-match compact/tablet header (< 1200px): unify .menu-toggle at top-right and .theme-toggle at top-left */
@media (max-width: 1200px) {
  html[data-theme]:not([data-phone-device='true']):not([data-tablet-menu='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .site-header .menu-toggle {
    inset: calc(var(--site-header-center-y) - 22px) var(--site-header-edge) auto auto !important;
    left: auto !important;
  }
  html[data-theme]:not([data-phone-device='true']):not([data-tablet-menu='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .site-header .header-controls .theme-toggle {
    left: var(--site-header-edge) !important;
    right: auto !important;
  }
}

/* Keep lobby setup below .site-header (100001) so #main-nav.open paints cleanly over setup; keep overlay dialogs above .site-header */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) .site-header { z-index: 100001 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #setup-screen.modal.active { z-index: 2000 !important; }
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(
  #ftue-welcome-modal.active,
  #tactical-codex-modal.active,
  #match-intro-modal.active,
  #core-modal.active,
  #gameover-modal.active,
  #tut-intro-modal.active,
  #tut-completion-modal.active,
  .modal.active:not(#setup-screen)
) { z-index: 100010 !important; }

/* Short viewports: fit modal cards comfortably within viewport height */
@media (max-height: 760px) {
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(.modal.active, #tactical-codex-modal.active) .modal-card {
    max-height: calc(100dvh - 32px) !important;
    margin-top: 0 !important;
  }
}

/* ============================================================================
   GAME FEEL, ANIMATIONS & UX POLISH LAYER
   ============================================================================ */

/* 1. Roll prompt: full-scale unrolled preview die + roll tumble + max-roll glint */
html:not(#sk-z):not([data-phone-device='true']):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup .popup-die-preview svg {
  width: 112px !important;
  height: 112px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  animation: sc-preview-float 2.4s ease-in-out infinite;
  transition: transform 0.2s var(--sc-ease-out), filter 0.2s var(--sc-ease-out);
}
html:not(#sk-z):not([data-phone-device='true']):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup:hover .popup-die-preview svg {
  transform: scale(1.05);
}
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).phone-match-active #game-screen > .row-popup:not(.popup-observer) .popup-die-preview svg {
  width: 70px !important;
  height: 70px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  animation: sc-preview-float 2.4s ease-in-out infinite;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.popup-animating .popup-big-val .ro-num.ro-rolling {
  display: inline-block;
  animation: sc-roll-tumble 0.16s linear infinite;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.popup-crit-roll .popup-big-val {
  box-shadow: inset 0 0 0 2px rgb(var(--sc-gold-rgb) / .9), inset 0 0 22px rgb(var(--sc-gold-rgb) / .38) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.popup-crit-roll .row-popup-lbl::after {
  content: ' · MAX';
  color: var(--sc-gold-text);
  font-weight: 800;
  letter-spacing: .12em;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.popup-low-roll .popup-big-val .ro-num {
  opacity: .86;
}

/* 2. Active board targets: deploy glow, direct-deploy cue, move shimmer, attack reticle */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly:is(.hex-deploy-valid-p1, .hex-deploy-preview-p1) {
  fill: rgba(47, 140, 255, .26) !important;
  stroke: #5db2ff !important;
  stroke-width: 2.8px !important;
  animation: sc-deploy-pulse-p1 1.35s ease-in-out infinite !important;
  cursor: pointer !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly:is(.hex-deploy-valid-p2, .hex-deploy-preview-p2) {
  fill: rgba(255, 45, 138, .26) !important;
  stroke: #ff69b4 !important;
  stroke-width: 2.8px !important;
  animation: sc-deploy-pulse-p2 1.35s ease-in-out infinite !important;
  cursor: pointer !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly:is(.hex-deploy-valid-p1, .hex-deploy-preview-p1) {
  fill: rgba(11, 95, 174, .24) !important;
  stroke: #0b5fae !important;
  animation: sc-deploy-pulse-p1-light 1.35s ease-in-out infinite !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly:is(.hex-deploy-valid-p2, .hex-deploy-preview-p2) {
  fill: rgba(168, 22, 106, .24) !important;
  stroke: #a8166a !important;
  animation: sc-deploy-pulse-p2-light 1.35s ease-in-out infinite !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly:is(.hex-deploy-valid-p1, .hex-deploy-valid-p2, .hex-deploy-preview-p1, .hex-deploy-preview-p2):is(:hover, .hovered) {
  stroke-width: 3.4px !important;
  filter: drop-shadow(0 0 12px rgb(var(--sc-turn-rgb) / .75)) !important;
}
/* Gentle secondary cue on empty deploy hexes while settled roll waits for Accept or direct hex click */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-deploy-direct-p1 {
  fill: rgba(47, 140, 255, .20) !important;
  stroke: rgb(93 178 255 / .95) !important;
  stroke-width: 2.2px !important;
  stroke-dasharray: 7 4 !important;
  cursor: pointer !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-deploy-direct-p2 {
  fill: rgba(255, 45, 138, .20) !important;
  stroke: rgb(255 105 180 / .95) !important;
  stroke-width: 2.2px !important;
  stroke-dasharray: 7 4 !important;
  cursor: pointer !important;
}
/* Mobile phone overrides: restore distinct deploy glow instead of flat static fill */
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body.phone-match-active #hex-board .hex-poly:is(.hex-deploy-valid-p1, .hex-deploy-preview-p1) {
  fill: rgba(47, 140, 255, .32) !important;
  stroke: #7ad3ff !important;
  stroke-width: 3.4px !important;
  animation: sc-deploy-pulse-p1 1.35s ease-in-out infinite !important;
}
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body.phone-match-active #hex-board .hex-poly:is(.hex-deploy-valid-p2, .hex-deploy-preview-p2) {
  fill: rgba(255, 45, 138, .32) !important;
  stroke: #ff8cd0 !important;
  stroke-width: 3.4px !important;
  animation: sc-deploy-pulse-p2 1.35s ease-in-out infinite !important;
}
html[data-phone-device='true'][data-theme='light']:not(#sk-z):not(#sc-1) body.phone-match-active #hex-board .hex-poly:is(.hex-deploy-valid-p1, .hex-deploy-preview-p1) {
  fill: rgba(11, 95, 174, .26) !important;
  stroke: #0b5fae !important;
}
html[data-phone-device='true'][data-theme='light']:not(#sk-z):not(#sc-1) body.phone-match-active #hex-board .hex-poly:is(.hex-deploy-valid-p2, .hex-deploy-preview-p2) {
  fill: rgba(168, 22, 106, .26) !important;
  stroke: #a8166a !important;
}

/* Move, Attack, Selected & Hover-preview board polish */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-valid {
  animation: sc-move-pulse 1.45s ease-in-out infinite !important;
  cursor: pointer !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-attack {
  animation: sc-attack-pulse 1.05s ease-in-out infinite !important;
  cursor: pointer !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .hex-poly.hex-selected {
  animation: sc-sel-pulse 1.6s ease-in-out infinite !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .deploy-hover-ghost {
  pointer-events: none;
  opacity: .56;
  animation: sc-ghost-pop 0.16s var(--sc-ease-out);
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .last-move-trail-line {
  fill: none;
  stroke-width: 2.2px;
  stroke-dasharray: 5 5;
  opacity: .58;
  pointer-events: none;
  transition: opacity 0.55s ease-out;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .last-move-origin-dot {
  opacity: .52;
  pointer-events: none;
  transition: opacity 0.55s ease-out;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board :is(.last-move-trail-line, .last-move-origin-dot).is-fading {
  opacity: 0 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .combat-tether-line {
  fill: none;
  stroke-width: 2.5px;
  stroke-dasharray: 7 5;
  animation: sc-tether-flow 0.9s linear infinite;
  pointer-events: none;
}

/* 3. Unit deploy arrival & shock ring */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .unit-deploying {
  transform-box: fill-box;
  transform-origin: center;
  animation: sc-unit-deploy-in 0.36s cubic-bezier(0.22, 1.28, 0.36, 1) forwards;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .deploy-shock-ring {
  fill: none;
  stroke-width: 2.5px;
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: none;
  animation: sc-deploy-ring 0.55s ease-out forwards;
}

/* 4. Control Token earned pip ignition */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .hp-pips .pip.token-earned-anim {
  animation: sc-pip-ignite 0.9s var(--sc-ease-out) forwards !important;
}

/* 5. Combat outcome modifier detail line */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #combat-result-container #cb-outcome {
  font-size: 16.5px !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #combat-result-container .cb-outcome-detail {
  margin-top: 4px;
  font-family: var(--sc-font-ui, Inter, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--sc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 6. Unit Quick-Inspect Tooltip & Offline Dev Debug Console */
#unit-inspect-tooltip {
  position: fixed;
  z-index: 96;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  min-width: 170px;
  max-width: 240px;
  padding: 8px 10px;
  background: var(--sc-plate-2, #141918);
  border: 1px solid var(--sc-line-strong, rgba(255,255,255,.28));
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
#unit-inspect-tooltip.is-visible { opacity: 1; transform: translate(-50%, 0); }
#unit-inspect-tooltip.is-p1 { border-left: 3px solid var(--sc-p1, #2f8cff); }
#unit-inspect-tooltip.is-p2 { border-left: 3px solid var(--sc-p2, #ff2d8a); }
#unit-inspect-tooltip .uit-title {
  font-family: var(--sc-tech, Orbitron, sans-serif);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--sc-text);
}
#unit-inspect-tooltip .uit-meta {
  margin-top: 3px;
  font-family: var(--sc-font-ui, Inter, sans-serif);
  font-size: 11px;
  line-height: 1.35;
  color: var(--sc-muted);
}

#sc-dev-console {
  display: none;
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99990;
  width: 256px;
  padding: 10px;
  background: var(--sc-plate-2, #141918);
  border: 1px solid var(--sc-line-strong, rgba(255,255,255,.32));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .48);
  font-family: var(--sc-font-ui, Inter, sans-serif);
  color: var(--sc-text, #eef2ee);
}
#sc-dev-console.open { display: block; }
#sc-dev-console .sc-dev-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--sc-signal-text, #d4ff2a);
}
#sc-dev-console .sc-dev-head button {
  background: transparent;
  border: 1px solid var(--sc-line-strong, rgba(255,255,255,.28));
  color: inherit;
  width: 22px;
  height: 22px;
  cursor: pointer;
}
#sc-dev-console .sc-dev-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
#sc-dev-console .sc-dev-actions button {
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--sc-plate, #1b2220);
  color: var(--sc-text, #eef2ee);
  border: 1px solid var(--sc-line-strong, rgba(255,255,255,.25));
  cursor: pointer;
}
#sc-dev-console .sc-dev-actions button:hover {
  border-color: var(--sc-signal, #d4ff2a);
}

/* Keyframes */
@keyframes sc-preview-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2.5px); }
}
@keyframes sc-roll-tumble {
  0%   { transform: scale(1) rotate(0deg); }
  25%  { transform: scale(1.08) rotate(-5deg); }
  50%  { transform: scale(0.96) rotate(4deg); }
  75%  { transform: scale(1.06) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes sc-deploy-pulse-p1 {
  0%, 100% { fill: rgba(47, 140, 255, .18); stroke: #5db2ff; filter: drop-shadow(0 0 4px rgba(47, 140, 255, .5)); }
  50%      { fill: rgba(47, 140, 255, .36); stroke: #9fd4ff; filter: drop-shadow(0 0 12px rgba(47, 140, 255, .9)); }
}
@keyframes sc-deploy-pulse-p2 {
  0%, 100% { fill: rgba(255, 45, 138, .18); stroke: #ff69b4; filter: drop-shadow(0 0 4px rgba(255, 45, 138, .5)); }
  50%      { fill: rgba(255, 45, 138, .36); stroke: #ffa8d8; filter: drop-shadow(0 0 12px rgba(255, 45, 138, .9)); }
}
@keyframes sc-accept-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgb(var(--sc-signal-rgb) / .35)); }
  50%      { filter: drop-shadow(0 0 13px rgb(var(--sc-signal-rgb) / .85)); }
}
@keyframes sc-deploy-pulse-p1-light {
  0%, 100% { fill: rgba(11, 95, 174, .16); filter: drop-shadow(0 0 3px rgba(11, 95, 174, .35)); }
  50%      { fill: rgba(11, 95, 174, .34); filter: drop-shadow(0 0 10px rgba(11, 95, 174, .75)); }
}
@keyframes sc-deploy-pulse-p2-light {
  0%, 100% { fill: rgba(168, 22, 106, .16); filter: drop-shadow(0 0 3px rgba(168, 22, 106, .35)); }
  50%      { fill: rgba(168, 22, 106, .34); filter: drop-shadow(0 0 10px rgba(168, 22, 106, .75)); }
}
@keyframes sc-move-pulse {
  0%, 100% { fill: rgba(212, 255, 42, .08); filter: drop-shadow(0 0 3px rgb(var(--sc-signal-rgb) / .35)); }
  50%      { fill: rgba(212, 255, 42, .22); filter: drop-shadow(0 0 9px rgb(var(--sc-signal-rgb) / .8)); }
}
@keyframes sc-attack-pulse {
  0%, 100% { fill: rgba(255, 77, 61, .14); stroke-width: 2.2px; filter: drop-shadow(0 0 4px rgba(255, 77, 61, .45)); }
  50%      { fill: rgba(255, 77, 61, .32); stroke-width: 3.2px; filter: drop-shadow(0 0 11px rgba(255, 77, 61, .9)); }
}
@keyframes sc-sel-pulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgb(var(--sc-signal-rgb) / .5)); }
  50%      { filter: drop-shadow(0 0 11px rgb(var(--sc-signal-rgb) / .95)); }
}
@keyframes sc-unit-deploy-in {
  0%   { opacity: 0; transform: scale(1.38); }
  70%  { opacity: 1; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes sc-deploy-ring {
  0%   { opacity: .9; transform: scale(0.45); stroke-width: 3px; }
  100% { opacity: 0; transform: scale(1.35); stroke-width: 0.5px; }
}
@keyframes sc-ghost-pop {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: .56; transform: scale(1); }
}
@keyframes sc-tether-flow {
  from { stroke-dashoffset: 24; }
  to   { stroke-dashoffset: 0; }
}
@keyframes sc-pip-ignite {
  0%   { transform: scale(1); filter: drop-shadow(0 0 0 rgb(var(--sc-signal-rgb) / 0)); }
  35%  { transform: scale(1.45); filter: drop-shadow(0 0 12px rgb(var(--sc-signal-rgb) / 1)); }
  100% { transform: scale(1); filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  #hex-board .hex-poly,
  #game-screen > .row-popup .popup-die-preview svg,
  #game-screen > .row-popup.popup-animating .popup-big-val .ro-num.ro-rolling,
  #hex-board .unit-deploying,
  #hex-board .deploy-shock-ring,
  #hex-board .combat-tether-line,
  #game-screen .hp-pips .pip.token-earned-anim,
  #game-screen #action-bar > #btn-combat-done,
  #game-screen #action-bar > #evade-decision-container #btn-evade-yes,
  #core-modal #btn-core-ok,
  #game-screen > .row-popup.popup-settled .popup-actions .btn-primary {
    animation: none !important;
  }
  #hex-board .last-move-trail-line,
  #hex-board .last-move-origin-dot {
    transition: none !important;
  }
}

/* =================================================================== TUTORIAL POLISH & GUIDED THEME LAYER */

/* 1. Suppress #site-cookie-banner whenever FTUE, Lobby Setup, Tutorial, or an active match is open on /play */
body#top[data-page='play']:has(#setup-screen.active, #ftue-welcome-modal.active, #tut-intro-modal.active, #game-screen.active) #site-cookie-banner,
body:is(.tutorial-active, .tutorial-mode) #site-cookie-banner {
  display: none !important;
}

/* 2. Elevate #tutorial-overlay above #core-modal.active (100010) so #tutorial-banner & .phone-tut-bar are never blurred */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode):is(.tut-modal-open-core, :has(#core-modal.active)) #tutorial-overlay:not(#sc-t0) {
  z-index: 100020 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #tut-phase-transition-overlay:not(#sc-t0) {
  z-index: 100015 !important;
}

/* 3. Desktop #tutorial-banner consistent geometry & fixed element slots (never jumps between steps) */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner:not(#sc-t0):not(#sc-t1) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 200px !important;
  align-items: center !important;
  gap: 16px !important;
  width: max(min(780px, calc(100vw - 420px)), var(--tutorial-bar-width, 740px)) !important;
  min-width: min(720px, calc(100vw - 420px)) !important;
  padding: 12px 18px !important;
  min-height: 118px !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: none !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner .tut-banner-left:not(#sc-t0) {
  display: grid !important;
  grid-template-rows: 24px minmax(44px, auto) minmax(20px, auto) auto !important;
  align-content: start !important;
  justify-items: start !important;
  gap: 6px !important;
  min-width: 0 !important;
  width: 100% !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner .tut-banner-actions:not(#sc-t0) {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 200px !important;
  min-width: 200px !important;
  flex: 0 0 200px !important;
  gap: 8px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner #btn-tut-continue-step:not(#sc-t0) {
  min-height: 40px !important;
  padding: 8px 14px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: .09em !important;
  white-space: nowrap !important;
}

/* 4. Guided Stepper, Substep Badge, Dots, Tactical Tip & Nudge Pill (Dark & Light) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner .tut-banner-meta-row:not(#sc-t0) {
  grid-row: 1 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 24px !important;
  min-width: 0 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner .tut-step-progress-meta:not(#sc-t0) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner #tut-stage-badge:not(#sc-t0) {
  font-size: 11.5px !important;
  letter-spacing: .12em !important;
  white-space: nowrap !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner :is(#tut-substep-badge, .tut-substep-badge):not(#sc-t0) {
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 0 !important;
  padding: 3px 8px !important;
  font-family: var(--sc-font-ui) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: var(--sc-text) !important;
  background: rgb(var(--sc-fg-rgb) / .08) !important;
  border: 1px solid rgb(var(--sc-fg-rgb) / .16) !important;
  white-space: nowrap !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner :is(#tut-step-dots, .tut-step-dots):not(#sc-t0) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner :is(#tut-step-dots, .tut-step-dots) > :is(span, .tut-step-dot):not(#sc-t0) {
  display: block !important;
  width: 6px !important;
  height: 4px !important;
  background: rgb(var(--sc-fg-rgb) / .24) !important;
  transition: width var(--sc-t-fast) var(--sc-ease-out), background-color var(--sc-t-fast) var(--sc-ease-out) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner :is(#tut-step-dots, .tut-step-dots) > :is(span, .tut-step-dot).is-done:not(#sc-t0) {
  background: var(--sc-p1) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner :is(#tut-step-dots, .tut-step-dots) > :is(span, .tut-step-dot).is-active:not(#sc-t0) {
  width: 14px !important;
  background: var(--sc-signal) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner :is(#tut-step-dots, .tut-step-dots) > :is(span, .tut-step-dot).is-active:not(#sc-t0) {
  background: #5c7800 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner #tut-instruction-text:not(#sc-t0) {
  grid-row: 2 !important;
  display: flex !important;
  align-items: center !important;
  min-height: 44px !important;
  margin: 0 !important;
  font-family: var(--sc-font-body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.38 !important;
  color: var(--sc-text) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner #tut-instruction-text :is(strong, .tut-highlight):not(#sc-t0) {
  color: var(--sc-signal-text) !important;
  font-weight: 700 !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner #tut-instruction-text :is(strong, .tut-highlight):not(#sc-t0) {
  color: #355000 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner :is(#tut-tip-text, .tut-tip-line):not(#sc-t0) {
  grid-row: 3 !important;
  min-height: 20px !important;
  margin: 0 !important;
  font-family: var(--sc-font-body) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.34 !important;
  color: var(--sc-muted) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner :is(#tut-nudge-pill, .tut-nudge-pill):not(#sc-t0) {
  grid-row: 4 !important;
  display: none !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 2px !important;
  padding: 3px 8px !important;
  font-family: var(--sc-font-ui) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  color: var(--sc-signal-ink) !important;
  background: var(--sc-signal) !important;
  border: 1px solid var(--sc-signal) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner :is(#tut-nudge-pill, .tut-nudge-pill).is-visible:not(#sc-t0) {
  display: inline-flex !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner :is(#tut-nudge-pill, .tut-nudge-pill):not(#sc-t0) {
  color: #ffffff !important;
  background: #7d115c !important;
  border-color: #5c0c43 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tutorial-banner.tut-nudge-shake:not(#sc-t0) {
  animation: tutNudgeShake 0.36s cubic-bezier(.36,.07,.19,.97) both !important;
}
@keyframes tutNudgeShake {
  0%, 100% { transform: translateX(-50%); }
  20% { transform: translateX(calc(-50% - 6px)); }
  40% { transform: translateX(calc(-50% + 6px)); }
  60% { transform: translateX(calc(-50% - 4px)); }
  80% { transform: translateX(calc(-50% + 4px)); }
}

/* 5. Restore .tut-btn-pulse, clickable locked-die nudge cursor, & kill stray #btn-tut-continue-step::after offset box */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #game-screen .die-chip.tut-die-locked:not(#sc-t0) {
  pointer-events: auto !important;
  cursor: not-allowed !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) :is(.act-btn, .btn, .row-popup .btn-confirm, .btn-tut-continue-step, #btn-tut-continue-step, #btn-core-ok, #btn-tut-intro-start).tut-btn-pulse:not(#sc-t0):not(#sc-t1),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #btn-tut-continue-step:not([style*='display: none']):not(#sc-t0):not(#sc-t1) {
  --frame: var(--sc-signal) !important;
  --fw: 2px;
  position: relative;
  z-index: 25 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 8px rgba(212, 255, 42, .58));
  animation: tutBtnSignalPulse 1.6s ease-in-out infinite !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) :is(.act-btn, .btn, .row-popup .btn-confirm, .btn-tut-continue-step, #btn-tut-continue-step, #btn-core-ok, #btn-tut-intro-start).tut-btn-pulse:not(#sc-t0):not(#sc-t1),
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #btn-tut-continue-step:not([style*='display: none']):not(#sc-t0):not(#sc-t1) {
  --frame: #5c7800 !important;
  --fw: 2px;
  filter: drop-shadow(0 2px 8px rgba(92, 120, 0, .48));
  animation: tutBtnSignalPulseLight 1.6s ease-in-out infinite !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) :is(.btn, .act-btn, .btn-tut-continue-step, #btn-tut-continue-step).tut-btn-pulse:not(#sc-t0)::after,
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) :is(.btn-tut-continue-step, #btn-tut-continue-step):not(#sc-t0)::after {
  display: none !important;
  content: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #interactive-core-d4.tut-btn-pulse:not(#sc-t0) {
  border-radius: 0 !important;
  outline: 2px solid rgb(var(--sc-signal-rgb) / .85) !important;
  outline-offset: 4px !important;
  filter: drop-shadow(0 0 8px rgba(212, 255, 42, .58));
  animation: tutBtnSignalPulse 1.6s ease-in-out infinite !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #interactive-core-d4.tut-btn-pulse:not(#sc-t0) {
  outline-color: #5c7800 !important;
  filter: drop-shadow(0 2px 8px rgba(92, 120, 0, .48));
  animation: tutBtnSignalPulseLight 1.6s ease-in-out infinite !important;
}
@keyframes tutBtnSignalPulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(212, 255, 42, .55)); }
  50% { filter: drop-shadow(0 0 14px rgba(212, 255, 42, .95)); }
}
@keyframes tutBtnSignalPulseLight {
  0%, 100% { filter: drop-shadow(0 2px 6px rgba(92, 120, 0, .38)); }
  50% { filter: drop-shadow(0 3px 12px rgba(53, 80, 0, .72)); }
}

/* 6. SVG Board Tutorial Highlights, Vector Path Arrow & Floating Hex Callout Pill */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #hex-board :is(g.hex-tut-guide, g.hex-tut-target) .hex-poly:not(#sc-t0),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #hex-board .hex-poly:is(.hex-tut-guide, .hex-tut-target):not(#sc-t0) {
  stroke: var(--sc-signal) !important;
  stroke-width: 3.4px !important;
  stroke-dasharray: none !important;
  filter: drop-shadow(0 0 8px rgb(var(--sc-signal-rgb) / .78)) !important;
  animation: tutHexTargetPulse 1.35s ease-in-out infinite !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #hex-board .hex-poly.hex-attack:is(.hex-tut-guide, .hex-tut-target):not(#sc-t0),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #hex-board g:is(.hex-tut-guide, .hex-tut-target) .hex-poly.hex-attack:not(#sc-t0) {
  stroke: var(--sc-signal) !important;
  fill: rgb(var(--sc-p2-rgb) / .28) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #hex-board :is(g.hex-tut-guide, g.hex-tut-target) .hex-poly:not(#sc-t0),
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #hex-board .hex-poly:is(.hex-tut-guide, .hex-tut-target):not(#sc-t0) {
  stroke: #5c7800 !important;
  stroke-width: 3.6px !important;
  filter: drop-shadow(0 0 6px rgb(92 120 0 / .58)) !important;
  animation: tutHexTargetPulseLight 1.35s ease-in-out infinite !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #hex-board .hex-poly:is(.hex-tut-guide, .hex-tut-target, .hex-deploy-valid-p1, .can-move-p1, .can-attack-p1, .hex-valid):is(:hover, .hovered):not(#sc-t0) {
  stroke: #355000 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #hex-board .hex-tut-ping:not(#sc-t0) {
  fill: none !important;
  stroke: var(--sc-signal) !important;
  stroke-width: 2.5px !important;
  pointer-events: none !important;
  animation: tutHexPingSc 1.5s ease-out infinite !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):is(.tutorial-active, .tutorial-mode) #hex-board .hex-tut-ping:not(#sc-t0) {
  stroke: #5c7800 !important;
}
@keyframes tutHexTargetPulse {
  0%, 100% { stroke-opacity: .88; filter: drop-shadow(0 0 6px rgb(var(--sc-signal-rgb) / .55)); }
  50% { stroke-opacity: 1; filter: drop-shadow(0 0 13px rgb(var(--sc-signal-rgb) / .95)); }
}
@keyframes tutHexTargetPulseLight {
  0%, 100% { stroke-opacity: .9; filter: drop-shadow(0 0 4px rgb(92 120 0 / .4)); }
  50% { stroke-opacity: 1; filter: drop-shadow(0 0 9px rgb(53 80 0 / .75)); }
}
@keyframes tutHexPingSc {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.22); opacity: 0; }
}

/* SVG Movement / Attack Vector Arrow */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board :is(#tut-board-vector-layer, .tut-board-vector):not(#sc-t0) {
  pointer-events: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board :is(.tut-board-vector-path, .tut-board-vector path, .tut-board-vector line):not(#sc-t0) {
  fill: none !important;
  stroke: var(--sc-signal) !important;
  stroke-width: 3px !important;
  stroke-linecap: round !important;
  stroke-dasharray: 8 6 !important;
  filter: drop-shadow(0 0 6px rgb(var(--sc-signal-rgb) / .7)) !important;
  animation: tutBoardVectorFlow 0.85s linear infinite !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board :is(.tut-board-vector-head, .tut-board-vector polygon):not(#sc-t0) {
  fill: var(--sc-signal) !important;
  stroke: #121714 !important;
  stroke-width: 1px !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .tut-board-vector-origin:not(#sc-t0) {
  fill: rgb(var(--sc-signal-rgb) / .24) !important;
  stroke: var(--sc-signal) !important;
  stroke-width: 2px !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .tut-board-vector-origin:not(#sc-t0) {
  fill: rgb(182 224 28 / .35) !important;
  stroke: #5c7800 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .tut-board-vector.is-attack :is(.tut-board-vector-path, line):not(#sc-t0) {
  stroke: var(--sc-p2) !important;
  filter: drop-shadow(0 0 6px rgb(var(--sc-p2-rgb) / .8)) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .tut-board-vector.is-attack :is(.tut-board-vector-head, polygon):not(#sc-t0) {
  fill: var(--sc-p2) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board :is(.tut-board-vector-path, .tut-board-vector path, .tut-board-vector line):not(#sc-t0) {
  stroke: #5c7800 !important;
  filter: drop-shadow(0 1px 4px rgb(53 80 0 / .45)) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board :is(.tut-board-vector-head, .tut-board-vector polygon):not(#sc-t0) {
  fill: #5c7800 !important;
  stroke: #ffffff !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .tut-board-vector.is-attack :is(.tut-board-vector-path, line):not(#sc-t0) {
  stroke: #a8166a !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board .tut-board-vector.is-attack :is(.tut-board-vector-head, polygon):not(#sc-t0) {
  fill: #a8166a !important;
}
@keyframes tutBoardVectorFlow {
  from { stroke-dashoffset: 28; }
  to { stroke-dashoffset: 0; }
}

/* Floating SVG Hex Callout Pill (<g class="hex-tut-callout">) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board g.hex-tut-callout:not(#sc-t0) {
  pointer-events: none !important;
  filter: drop-shadow(0 3px 8px rgb(0 0 0 / .55)) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board g.hex-tut-callout :is(rect, polygon, path):not(#sc-t0) {
  fill: #121714 !important;
  stroke: var(--sc-signal) !important;
  stroke-width: 1.5px !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board g.hex-tut-callout text:not(#sc-t0) {
  fill: var(--sc-signal) !important;
  font-family: var(--sc-font-ui) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board g.hex-tut-callout:not(#sc-t0) {
  filter: drop-shadow(0 2px 6px rgb(18 23 20 / .24)) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board g.hex-tut-callout :is(rect, polygon, path):not(#sc-t0) {
  fill: #eef1ea !important;
  stroke: #5c7800 !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hex-board g.hex-tut-callout text:not(#sc-t0) {
  fill: #355000 !important;
}

/* 7. Strong Light Mode .tut-beacon-glow, .tut-spotlight-active & .tut-hud-highlight */
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip.tut-beacon-glow:not(#sc-t0) {
  --frame: #5c7800 !important;
  --fw: 2px !important;
  --fill: color-mix(in srgb, #b6e01c 22%, #ffffff) !important;
  color: #355000 !important;
  filter: drop-shadow(0 0 6px rgb(92 120 0 / .48)) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip.tut-beacon-glow .chip-svg:not(#sc-t0) {
  filter: drop-shadow(0 0 4px rgb(53 80 0 / .7)) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip.tut-beacon-glow:not(#sc-t0)::after {
  border-color: #5c7800 !important;
  box-shadow: inset 0 0 10px rgb(92 120 0 / .42) !important;
}

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#combat-stash-p1 .bg3-die-stage, #interactive-dice-p1, #interactive-core-d4).tut-spotlight-active:not(#sc-t0) {
  position: relative !important;
  outline: 2px solid var(--sc-signal) !important;
  outline-offset: 4px !important;
  animation: tutSpotlightPulse 1.5s ease-in-out infinite !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#combat-stash-p1 .bg3-die-stage, #interactive-dice-p1, #interactive-core-d4).tut-spotlight-active:not(#sc-t0) {
  outline-color: #5c7800 !important;
  animation: tutSpotlightPulseLight 1.5s ease-in-out infinite !important;
}
@keyframes tutSpotlightPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgb(var(--sc-signal-rgb) / .6)); }
  50% { filter: drop-shadow(0 0 16px rgb(var(--sc-signal-rgb) / .95)); }
}
@keyframes tutSpotlightPulseLight {
  0%, 100% { filter: drop-shadow(0 0 3px rgb(92 120 0 / .42)); }
  50% { filter: drop-shadow(0 0 10px rgb(53 80 0 / .75)); }
}

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hud-p1 .tut-hud-highlight:not(#sc-t0),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #p1-pip-1.tut-hud-highlight:not(#sc-t0) {
  position: relative !important;
  z-index: 30 !important;
  outline: 2px solid var(--sc-signal) !important;
  outline-offset: 3px !important;
  animation: tutSpotlightPulse 1.3s ease-in-out infinite !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #hud-p1 .tut-hud-highlight:not(#sc-t0),
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #p1-pip-1.tut-hud-highlight:not(#sc-t0) {
  outline-color: #5c7800 !important;
  animation: tutSpotlightPulseLight 1.3s ease-in-out infinite !important;
}

/* 8. #tut-intro-modal SVG Card Icons & 3-Stage Roadmap + #tut-completion-modal Visual Clarity */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-intro-modal .tut-rule-card-head:not(#sc-t0) {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 6px !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-intro-modal .tut-rule-card-head h3:not(#sc-t0) {
  margin: 0 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-intro-modal .tut-rule-card :is(.tut-card-icon, .tut-rule-icon):not(#sc-t0) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 30px !important;
  height: 30px !important;
  margin-bottom: 0 !important;
  color: var(--sc-signal-text) !important;
  background: rgb(var(--sc-signal-rgb) / .1) !important;
  border: 1px solid rgb(var(--sc-signal-rgb) / .35) !important;
}
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-intro-modal .tut-rule-card :is(.tut-card-icon, .tut-rule-icon):not(#sc-t0) {
  display: none !important;
}
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-intro-modal .tut-rule-card:hover:not(#sc-t0),
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-intro-modal .tut-rule-card *:hover:not(#sc-t0) {
  transform: none !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-intro-modal .tut-rule-card :is(.tut-card-icon, .tut-rule-icon):not(#sc-t0) {
  color: #355000 !important;
  background: rgb(182 224 28 / .22) !important;
  border-color: rgb(92 120 0 / .45) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-intro-modal :is(.tut-roadmap, .tut-intro-roadmap):not(#sc-t0) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 4px 0 6px !important;
  padding: 6px 10px !important;
  background: rgb(var(--sc-fg-rgb) / .05) !important;
  border: 1px solid rgb(var(--sc-fg-rgb) / .14) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-intro-modal :is(.tut-roadmap, .tut-intro-roadmap) .tut-roadmap-step:not(#sc-t0) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-family: var(--sc-font-ui) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: var(--sc-text) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-intro-modal :is(.tut-roadmap, .tut-intro-roadmap) .tut-roadmap-step.is-current:not(#sc-t0),
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-intro-modal :is(.tut-roadmap, .tut-intro-roadmap) .tut-rm-num:not(#sc-t0) {
  color: var(--sc-signal-text) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-intro-modal :is(.tut-roadmap, .tut-intro-roadmap) .tut-roadmap-step.is-current:not(#sc-t0),
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-intro-modal :is(.tut-roadmap, .tut-intro-roadmap) .tut-rm-num:not(#sc-t0) {
  color: #355000 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tut-intro-modal :is(.tut-roadmap, .tut-intro-roadmap) .tut-roadmap-arrow:not(#sc-t0) {
  color: var(--sc-signal-text) !important;
  font-weight: 800 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#tut-completion-modal, #tut-complete-modal) .tut-cert-badge:not(#sc-t0) {
  color: var(--sc-signal-text) !important;
  -webkit-text-fill-color: var(--sc-signal-text) !important;
  text-shadow: none !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#tut-completion-modal, #tut-complete-modal) .tut-cert-badge:not(#sc-t0) {
  color: #355000 !important;
  -webkit-text-fill-color: #355000 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#tut-completion-modal, #tut-complete-modal) :is(.tut-edge-hint, .csb-pip-hint):not(#sc-t0) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-top: 6px !important;
  font-family: var(--sc-font-ui) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--sc-signal-text) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) :is(#tut-completion-modal, #tut-complete-modal) :is(.tut-edge-hint, .csb-pip-hint):not(#sc-t0) {
  color: #355000 !important;
}

/* 9. Phone Remaster High-Specificity Compatibility for .phone-tut-bar & Highlights */
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:is(.tutorial-active, .tutorial-mode) #tutorial-banner {
  display: none !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:is(.tutorial-active, .tutorial-mode) #phone-tut-bar.is-active {
  --c: 8px;
  --fw: 1px;
  --frame: rgb(var(--sc-fg-rgb) / .38);
  --fill: rgb(22 26 25 / .84);
  --acc: var(--sc-signal);
  --acc-pos: left top;
  --acc-size: 3px 100%;
  --rm-tut-pad: clamp(8px, 1.4vw, 12px);
  isolation: isolate;
  top: var(--rm-gt) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(410px, calc(100vw - (var(--rm-gx) + var(--rm-col) + 42px + var(--rm-tut-pad)) * 2)) !important;
  min-height: var(--rm-card-h) !important;
  max-height: none !important;
  row-gap: 1px !important;
  padding: 5px 10px 5px 12px !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important;
  color: var(--sc-text) !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:is(.tutorial-active, .tutorial-mode) #phone-tut-bar.is-active::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 bottom 0 / 100% var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) 100% no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%) !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:is(.tutorial-active, .tutorial-mode) #phone-tut-bar.is-active {
  --frame: rgb(18 23 20 / .36) !important;
  --fill: rgb(227 231 223 / .88) !important;
  --acc: #5c7800 !important;
  color: #121714 !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:is(.tutorial-active, .tutorial-mode) #phone-tut-bar.tut-nudge-shake {
  animation: tutNudgeShake 0.36s cubic-bezier(.36,.07,.19,.97) both !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:is(.tutorial-active, .tutorial-mode) .side-stash .die-chip.tut-die-locked {
  pointer-events: auto !important;
  cursor: not-allowed !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:is(.tutorial-active, .tutorial-mode) :is(.act-btn, .btn, .row-popup .btn-confirm, #btn-core-ok, .phone-tut-continue).tut-btn-pulse {
  --frame: var(--sc-signal) !important;
  --fw: 2px;
  z-index: 45 !important;
  filter: drop-shadow(0 0 8px rgba(212, 255, 42, .58));
  animation: tutBtnSignalPulse 1.6s ease-in-out infinite !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:is(.tutorial-active, .tutorial-mode) :is(.act-btn, .btn, .row-popup .btn-confirm, #btn-core-ok, .phone-tut-continue).tut-btn-pulse {
  --frame: #5c7800 !important;
  filter: drop-shadow(0 2px 8px rgba(92, 120, 0, .48));
  animation: tutBtnSignalPulseLight 1.6s ease-in-out infinite !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:is(.tutorial-active, .tutorial-mode) .side-stash .die-chip.tut-beacon-glow {
  --frame: #5c7800 !important;
  --fill: color-mix(in srgb, #b6e01c 22%, #ffffff) !important;
  filter: drop-shadow(0 0 5px rgb(92 120 0 / .45)) !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:is(.tutorial-active, .tutorial-mode) .side-stash .die-chip.tut-beacon-glow::after {
  --frame: #5c7800 !important;
  --fill: linear-gradient(rgb(182 224 28 / .22), rgb(182 224 28 / .22)) !important;
  box-shadow: inset 0 0 10px rgb(92 120 0 / .48) !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:is(.tutorial-active, .tutorial-mode) :is(#combat-stash-p1 .bg3-die-stage, #interactive-dice-p1, #interactive-core-d4).tut-spotlight-active {
  outline: 2px solid var(--sc-signal) !important;
  outline-offset: 3px !important;
  animation: tutSpotlightPulse 1.5s ease-in-out infinite !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:is(.tutorial-active, .tutorial-mode) :is(#combat-stash-p1 .bg3-die-stage, #interactive-dice-p1, #interactive-core-d4).tut-spotlight-active {
  outline-color: #5c7800 !important;
  animation: tutSpotlightPulseLight 1.5s ease-in-out infinite !important;
}

/* 10. Reduced Motion Safeguard for Tutorial Animations */
@media (prefers-reduced-motion: reduce) {
  #tutorial-banner,
  #phone-tut-bar,
  .tut-btn-pulse,
  #btn-tut-continue-step,
  #hex-board .hex-poly,
  #hex-board .hex-tut-ping,
  #hex-board :is(.tut-board-vector-path, .tut-board-vector path, .tut-board-vector line),
  .tut-spotlight-active,
  .tut-hud-highlight {
    animation: none !important;
  }
}



/* ==========================================================================
   10. VISUAL AUDIT & POLISH PASS (Tooltips, Tutorials, Cards, Core, Board)
   ========================================================================== */

/* 10.1 Unified Tooltip System (.sc-tip-float, #core-tooltip, #unit-inspect-tooltip) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) :is(#core-tooltip, .sc-tip-float, #unit-inspect-tooltip) {
  --c: 8px;
  --fw: 1px;
  --fill: #151820 !important;
  --frame: rgb(236 239 230 / .34) !important;
  --acc: var(--sc-signal);
  --acc-pos: left center;
  --acc-size: 3px 100%;
  background: var(--fill) !important;
  color: #ecefe6 !important;
  border: 1px solid var(--frame) !important;
  border-left: 3px solid var(--acc) !important;
  border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)) !important;
  box-shadow: 0 12px 28px rgb(0 0 0 / .55) !important;
  filter: none !important;
  font-family: var(--sc-font-ui, Inter, sans-serif) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) :is(#core-tooltip, .sc-tip-float, #unit-inspect-tooltip) {
  --fill: #ffffff !important;
  --frame: rgb(23 38 53 / .28) !important;
  --acc: var(--sc-signal-text, #3d5a00);
  background: #ffffff !important;
  color: #172635 !important;
  border-color: var(--frame) !important;
  border-left-color: var(--acc) !important;
  box-shadow: 0 10px 24px rgb(15 23 42 / .16) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) :is(#core-tooltip, .sc-tip-float, #unit-inspect-tooltip)::before {
  display: none !important;
  content: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) .sc-tip-float {
  padding: 7px 11px !important;
  font: 700 10.5px/1.3 var(--sc-tech, Orbitron, sans-serif) !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
  max-width: 240px !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip {
  --acc: var(--sc-gold, #e3b34a);
  border-left-color: var(--sc-gold, #e3b34a) !important;
  padding: 12px 14px !important;
  min-width: 215px !important;
  max-width: 278px !important;
  width: max-content !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip .tt-title {
  font: 800 10.5px/1.2 var(--sc-tech, Orbitron, sans-serif) !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: var(--sc-gold, #e3b34a) !important;
  margin-bottom: 6px !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip .tt-title {
  color: var(--sk-gold-text, #7a5400) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip .tt-desc {
  font: 500 12px/1.42 var(--sc-font-ui, Inter, sans-serif) !important;
  color: rgb(236 239 230 / .88) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip .tt-desc {
  color: #314354 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip .tt-core-modes:empty {
  display: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip .tt-core-mode.is-active {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  background: rgb(227 179 74 / .11) !important;
  border: 1px solid rgb(227 179 74 / .36) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip .tt-core-mode.is-active {
  background: rgb(207 154 50 / .10) !important;
  border-color: rgb(122 84 0 / .32) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip .tt-mode-icon {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  display: grid !important;
  place-items: center !important;
  color: var(--sc-gold, #e3b34a) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip .tt-mode-icon {
  color: var(--sk-gold-text, #7a5400) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip .tt-mode-icon svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip .tt-mode-copy strong {
  display: block !important;
  font: 800 10.5px/1.2 var(--sc-tech, Orbitron, sans-serif) !important;
  letter-spacing: .12em !important;
  color: #ffffff !important;
  margin-bottom: 3px !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip .tt-mode-copy strong {
  color: #172635 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip .tt-mode-copy span {
  display: block !important;
  font: 500 11.5px/1.38 var(--sc-font-ui, Inter, sans-serif) !important;
  color: rgb(236 239 230 / .88) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #core-tooltip .tt-mode-copy span {
  color: #314354 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #unit-inspect-tooltip {
  padding: 9px 13px !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #unit-inspect-tooltip.is-p1 {
  border-left-color: var(--sc-p1, #2f8cff) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #unit-inspect-tooltip.is-p2 {
  border-left-color: var(--sc-p2, #ff2d8a) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #unit-inspect-tooltip .uit-meta {
  color: rgb(236 239 230 / .82) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0):not(#sc-u1):not(#sc-u2):not(#sc-u3):not(#sc-u4):not(#sc-u5):not(#sc-u6):not(#sc-u7):not(#sc-u8):not(#sc-u9):not(#sc-u10):not(#sc-u11) #unit-inspect-tooltip .uit-meta {
  color: #314354 !important;
}

/* 10.2 Tutorial Stepper & Tip Removal + Centered Accept + Responsive Stash-Bound Width */
:is(#tut-substep-badge, .tut-substep-badge, #tut-step-dots, .tut-step-dots, .tut-step-progress-meta, .phone-tut-substep, #tut-tip-text, .tut-tip-line, .phone-tut-tip) {
  display: none !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-t0):not(#sc-t1):not(#sc-u0) #tutorial-banner {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: min(var(--tutorial-bar-width, 622px), calc(100vw - 44px)) !important;
  min-width: min(300px, calc(100vw - 44px)) !important;
  max-width: min(840px, calc(100vw - 44px)) !important;
  padding: 10px 18px !important;
  min-height: 0 !important;
  height: auto !important;
  transition: none !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-t0) #tutorial-banner .tut-banner-left {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  gap: 4px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-t0) #tutorial-banner #tut-instruction-text {
  display: block !important;
  min-height: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.44 !important;
  font-weight: 500 !important;
  max-width: none !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-t0) #tutorial-banner .tut-banner-actions {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding-top: 2px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-t0) #tutorial-banner .tut-banner-actions:has(#btn-tut-continue-step[style*='none']) {
  display: none !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-t0) #tutorial-banner #btn-tut-continue-step {
  width: auto !important;
  min-width: 156px !important;
  min-height: 36px !important;
  padding: 8px 24px !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Stage 3 Phase Transition Overlay (brief dim cut, no modal) */
#tut-phase-transition-overlay,
.tut-phase-transition-overlay {
  transition: opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1) !important;
  pointer-events: none !important;
}
#tut-phase-transition-overlay.is-active,
.tut-phase-transition-overlay.is-active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  background: radial-gradient(circle at center, rgba(6, 9, 12, 0.72) 0%, rgba(4, 6, 9, 0.86) 100%) !important;
}
html[data-theme='light'] #tut-phase-transition-overlay.is-active,
html[data-theme='light'] .tut-phase-transition-overlay.is-active {
  background: radial-gradient(circle at center, rgba(235, 240, 245, 0.72) 0%, rgba(214, 222, 232, 0.86) 100%) !important;
}
.tut-phase-warp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 38px;
  border: 1.5px solid var(--sc-gold, #e3b34a);
  background: rgb(14 17 16 / .92);
  box-shadow: 0 0 42px rgb(227 179 74 / .28), inset 0 0 0 1px rgb(227 179 74 / .18);
  text-align: center;
  animation: tutStageWarp 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}
html[data-theme='light'] .tut-phase-warp-card {
  background: #ffffff;
  border-color: #9e7312;
  box-shadow: 0 14px 40px rgb(23 38 53 / .18), inset 0 0 0 1px rgb(158 115 18 / .2);
}
.tut-phase-warp-tag {
  font: 800 11px/1.2 var(--sc-tech, Orbitron, sans-serif);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--sc-signal, #d4ff2a);
}
html[data-theme='light'] .tut-phase-warp-tag {
  color: #5c7800;
}
.tut-phase-warp-title {
  font: 800 clamp(20px, 3vw, 28px)/1.15 var(--sc-font-display, Orbitron, sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sc-gold, #e3b34a);
}
html[data-theme='light'] .tut-phase-warp-title {
  color: #84600f;
}
.tut-phase-warp-sub {
  font: 500 13.5px/1.4 var(--sc-font-body, Inter, sans-serif);
  color: var(--sc-muted, #aeb7b0);
}
html[data-theme='light'] .tut-phase-warp-sub {
  color: #3a4b5c;
}
@keyframes tutStageWarp {
  0% { opacity: 0; transform: scale(0.92); filter: blur(4px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Mobile Tutorial Bar: Full-width Copy + Button Below + Zero Extra ::after Pulse Box + Light Contrast */
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .phone-tut-bar.is-active {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  padding: 9px 12px !important;
  min-height: 0 !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .phone-tut-bar .phone-tut-bar-badge {
  font: 800 10px/1.15 var(--sc-tech, Orbitron, sans-serif) !important;
  letter-spacing: .16em !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .phone-tut-bar .phone-tut-cue {
  width: 100% !important;
  max-width: none !important;
  font: 500 12.5px/1.38 var(--sc-font-ui, Inter, sans-serif) !important;
  letter-spacing: 0 !important;
  color: #edf2ee !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .phone-tut-bar .phone-tut-cue {
  color: #14202c !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .phone-tut-bar .phone-tut-tip {
  color: #465768 !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .phone-tut-bar .phone-tut-continue {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 36px !important;
  margin-top: 2px !important;
  padding: 7px 14px !important;
  justify-content: center !important;
  background: var(--sc-signal, #d4ff2a) !important;
  color: #10130a !important;
  -webkit-text-fill-color: #10130a !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active :is(.phone-tut-continue, .act-btn, .btn).tut-btn-pulse::after {
  content: none !important;
  display: none !important;
}

/* 10.3 Desktop Battle Die Cards: Full-Width Role Bar, Outer Frame, Un-glued BOOST, Larger Effect Text */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .combat-stash-content > .cb-role-badge {
  width: calc(100% - 20px) !important;
  max-width: none !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 7px 12px !important;
  text-align: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  letter-spacing: .16em !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .combat-matrix-cell {
  width: calc(100% - 20px) !important;
  max-width: none !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 12px !important;
  border: 1.5px solid rgb(236 239 230 / .24) !important;
  background: rgb(22 25 32 / .94) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .combat-matrix-cell.p1-frame {
  border-color: rgb(var(--sc-p1-rgb, 47 140 255) / .65) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .combat-matrix-cell.p2-frame {
  border-color: rgb(var(--sc-p2-rgb, 255 45 138) / .65) !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .combat-matrix-cell {
  background: #ffffff !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .combat-matrix-cell.p1-frame {
  border-color: rgb(20 116 200 / .72) !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .combat-matrix-cell.p2-frame {
  border-color: rgb(196 40 126 / .72) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .bg3-battle-die-widget {
  padding: 14px 10px 16px !important;
  gap: 10px !important;
  border: 1px solid rgb(236 239 230 / .22) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .p1-widget.bg3-battle-die-widget {
  border-color: rgb(var(--sc-p1-rgb, 47 140 255) / .58) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .p2-widget.bg3-battle-die-widget {
  border-color: rgb(var(--sc-p2-rgb, 255 45 138) / .58) !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .p1-widget.bg3-battle-die-widget {
  border-color: rgb(20 116 200 / .55) !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .p2-widget.bg3-battle-die-widget {
  border-color: rgb(196 40 126 / .55) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .bg3-battle-die-widget .bg3-prompt-badge {
  position: relative !important;
  bottom: auto !important;
  margin-bottom: 10px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .combat-matrix-cell :is(.bg3-effect-text, .bg3-effect-desc) {
  font-size: 13.5px !important;
  line-height: 1.42 !important;
  font-weight: 600 !important;
  padding: 6px 4px 2px !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .p1-matrix :is(.bg3-effect-text, .bg3-effect-desc) {
  color: #0e4a82 !important;
  -webkit-text-fill-color: #0e4a82 !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #game-screen .p2-matrix :is(.bg3-effect-text, .bg3-effect-desc) {
  color: #8f1458 !important;
  -webkit-text-fill-color: #8f1458 !important;
}

/* 10.4 Mobile Battle Die Cards: Symmetrical Header Padding, Taller Cards, Unclipped Total */
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active {
  --rm-cb-top: calc(var(--rm-gt) + var(--rm-card-h) + 8px);
  --rm-cb-head: 28px;
  --rm-cb-foot: 38px;
  --rm-cb-dec: 72px;
  --rm-cb-h: min(calc(100dvh - var(--rm-cb-top) - var(--rm-gb) - var(--rm-cb-dec)), calc(var(--rm-cb-w) * 2.08));
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .combat-stash-content > :is(.cb-role-badge, .csp-unit) {
  top: 4px !important;
  height: calc(var(--rm-cb-head) - 8px) !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-left .cb-role-badge {
  left: 4px !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .phone-side-right .cb-role-badge {
  right: 4px !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-battle-die-widget {
  inset: calc(var(--rm-cb-head) + 5px) 5px calc(var(--rm-cb-foot) + 5px) 5px !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active .bg3-prompt-badge {
  top: calc(100% + 5px) !important;
  left: -5px !important;
  right: 78px !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) .rm-math {
  right: 12px !important;
  padding: 0 2px 0 6px !important;
  gap: 5px !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) .rm-math small {
  font-size: 9.5px !important;
  letter-spacing: .12em !important;
  opacity: .78 !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='COMBAT_RESOLUTION'], [data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT']) .rm-math b {
  font-size: 20px !important;
}

/* 10.5 Scalar Core Roll Modal: Balanced Desktop Centering + 4-Face Symmetry + Combat Detail Wrap */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0):not(#sc-u0) #core-modal .core-chamber-card {
  --desk-core-die: clamp(196px, 24vh, 248px) !important;
  width: min(740px, calc(100vw - 80px)) !important;
  max-width: 740px !important;
  padding: 16px 26px !important;
  margin-inline: auto !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).tutorial-active #core-modal:not(#sc-d0):not(#sc-d1):not(#sc-d2) {
  align-items: flex-start !important;
  padding-top: 0 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body).tutorial-active #core-modal .core-chamber-card:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9):not(#sc-c9) {
  margin-top: var(--tutorial-core-top, clamp(280px, 34vh, 320px)) !important;
  margin-bottom: 16px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0):not(#sc-u0) #core-modal .core-hud-header {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0):not(#sc-u0) #core-modal .core-chamber-card:not(.is-rolled) #rm-core-faces {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0):not(#sc-u0) #core-modal .core-chamber-card.is-rolled #rm-core-faces {
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(180px, 26%) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0):not(#sc-u0) #combat-result-container .cb-outcome-detail {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.32 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0):not(#sc-u0) #core-modal .core-3d-canvas {
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0):not(#sc-u0) #core-modal .core-d4-widget.is-locked .core-3d-canvas {
  opacity: .92 !important;
  transform: translate(-50%, -50%) scale(1.04) !important;
}
html[data-phone-device='true']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0):not(#sc-u0) #core-modal .core-d4-widget.is-locked .core-3d-canvas {
  opacity: .92 !important;
  transform: translate(-50%, -50%) scale(2) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0):not(#sc-u0) #core-modal .core-face-symbol {
  width: calc(var(--desk-core-die) * .56) !important;
  height: calc(var(--desk-core-die) * .56) !important;
  background: radial-gradient(circle, rgb(14 17 16 / .62) 0%, rgb(14 17 16 / .36) 58%, transparent 100%) !important;
  border-color: rgb(227 179 74 / .55) !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0):not(#sc-u0) #core-modal .core-face-symbol {
  background: radial-gradient(circle, rgb(255 255 255 / .76) 0%, rgb(255 255 255 / .42) 60%, transparent 100%) !important;
  border-color: rgb(148 102 10 / .55) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0):not(#sc-u0) #core-modal .core-face-symbol svg {
  width: 84% !important;
  height: 84% !important;
  animation-duration: 0.2s !important;
  filter: drop-shadow(0 0 10px rgb(255 215 0 / .45)) !important;
}

/* 10.6 Light Mode Unit Numeral Halo Contrast + Full-Size Desktop Hex Board */
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0) #hex-board .unit-shape text {
  fill: #0b131c !important;
  paint-order: stroke fill !important;
  stroke: #ffffff !important;
  stroke-width: 3px !important;
  stroke-linejoin: round !important;
  font-weight: 800 !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #hex-board svg.unit-shape > text {
  fill: #0b131c !important;
  paint-order: stroke fill !important;
  stroke: rgb(255 255 255 / .92) !important;
  stroke-width: 2.6px !important;
  stroke-linejoin: round !important;
  font-weight: 800 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active #hex-board {
  transform: translateY(var(--tutorial-board-shift-y, 0px)) scale(var(--tutorial-board-scale, 1)) !important;
}

/* 10.7 Combat 50/50 & Winner Full-Width Action Bar, Battle Die Spotlight, Core Scorer & Centered Accept */
@keyframes combatRetreatRight {
  0% { transform: scaleX(1); opacity: 1; }
  80% { opacity: .65; }
  100% { transform: scaleX(0); opacity: 0; }
}
@keyframes combatRetreatLeft {
  0% { transform: scaleX(1); opacity: 1; }
  80% { opacity: .65; }
  100% { transform: scaleX(0); opacity: 0; }
}
@keyframes combatWinSweep {
  0% { transform: translateX(-110%) skewX(-18deg); opacity: 0; }
  25% { opacity: .7; }
  75% { opacity: .65; }
  100% { transform: translateX(240%) skewX(-18deg); opacity: 0; }
}
@keyframes combatWinSweepLeft {
  0% { transform: translateX(240%) skewX(18deg); opacity: 0; }
  25% { opacity: .7; }
  75% { opacity: .65; }
  100% { transform: translateX(-110%) skewX(18deg); opacity: 0; }
}

html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active:not(.combat-winner-p1):not(.combat-winner-p2) #action-bar-wrapper #action-bar#action-bar:not(#sc-d0) {
  --ab-dir: 90deg !important;
  position: relative !important;
  overflow: hidden !important;
  border: 0 !important;
  background:
    linear-gradient(90deg, var(--sk-azure) 0%, var(--sk-azure) 41%, color-mix(in srgb, var(--sk-azure) 50%, var(--sk-violet)) 50%, var(--sk-violet) 59%, var(--sk-violet) 100%) 0 0 / 100% 2px no-repeat,
    linear-gradient(90deg, var(--sk-azure) 0%, var(--sk-azure) 41%, color-mix(in srgb, var(--sk-azure) 50%, var(--sk-violet)) 50%, var(--sk-violet) 59%, var(--sk-violet) 100%) 0 100% / 100% 2px no-repeat,
    linear-gradient(90deg, rgb(var(--sk-azure-rgb) / .34) 0%, rgb(var(--sk-azure-rgb) / .14) 41%, rgb(var(--sk-violet-rgb) / .14) 59%, rgb(var(--sk-violet-rgb) / .34) 100%),
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important;
  filter: drop-shadow(-8px 0 10px rgb(var(--sk-azure-rgb) / .16)) drop-shadow(8px 0 10px rgb(var(--sk-violet-rgb) / .16)) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active:not(.combat-winner-p1):not(.combat-winner-p2) #action-bar-wrapper #action-bar#action-bar:not(#sc-d0) {
  background:
    linear-gradient(90deg, var(--sc-p1) 0%, var(--sc-p1) 41%, color-mix(in srgb, var(--sc-p1) 50%, var(--sc-p2)) 50%, var(--sc-p2) 59%, var(--sc-p2) 100%) 0 0 / 100% 2px no-repeat,
    linear-gradient(90deg, var(--sc-p1) 0%, var(--sc-p1) 41%, color-mix(in srgb, var(--sc-p1) 50%, var(--sc-p2)) 50%, var(--sc-p2) 59%, var(--sc-p2) 100%) 0 100% / 100% 2px no-repeat,
    linear-gradient(90deg, rgb(20 116 200 / .24) 0%, rgb(20 116 200 / .09) 41%, rgb(196 40 126 / .09) 59%, rgb(196 40 126 / .24) 100%),
    linear-gradient(rgb(255 255 255 / .92), rgb(255 255 255 / .92)) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active.combat-winner-p1 #action-bar-wrapper #action-bar#action-bar:not(#sc-d0) {
  --sk-turn: var(--sk-azure) !important;
  --sk-turn-rgb: var(--sk-azure-rgb) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 0 !important;
  background:
    linear-gradient(var(--sk-azure), var(--sk-azure)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--sk-azure), var(--sk-azure)) 0 100% / 100% 2px no-repeat,
    linear-gradient(90deg, rgb(var(--sk-azure-rgb) / .52) 0%, rgb(var(--sk-azure-rgb) / .30) 50%, rgb(var(--sk-azure-rgb) / .52) 100%),
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important;
  box-shadow: 0 0 28px rgb(var(--sk-azure-rgb) / .45), inset 0 0 22px rgb(var(--sk-azure-rgb) / .24) !important;
  filter: none !important;
  transition: box-shadow .55s cubic-bezier(.22, 1, .36, 1) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active.combat-winner-p2 #action-bar-wrapper #action-bar#action-bar:not(#sc-d0) {
  --sk-turn: var(--sk-violet) !important;
  --sk-turn-rgb: var(--sk-violet-rgb) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 0 !important;
  background:
    linear-gradient(var(--sk-violet), var(--sk-violet)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--sk-violet), var(--sk-violet)) 0 100% / 100% 2px no-repeat,
    linear-gradient(90deg, rgb(var(--sk-violet-rgb) / .52) 0%, rgb(var(--sk-violet-rgb) / .30) 50%, rgb(var(--sk-violet-rgb) / .52) 100%),
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important;
  box-shadow: 0 0 28px rgb(var(--sk-violet-rgb) / .45), inset 0 0 22px rgb(var(--sk-violet-rgb) / .24) !important;
  filter: none !important;
  transition: box-shadow .55s cubic-bezier(.22, 1, .36, 1) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active.combat-winner-p1 #action-bar-wrapper #action-bar#action-bar:not(#sc-d0) {
  background:
    linear-gradient(var(--sc-p1), var(--sc-p1)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--sc-p1), var(--sc-p1)) 0 100% / 100% 2px no-repeat,
    linear-gradient(90deg, rgb(20 116 200 / .90) 0%, rgb(38 134 220 / .84) 50%, rgb(20 116 200 / .90) 100%) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active.combat-winner-p2 #action-bar-wrapper #action-bar#action-bar:not(#sc-d0) {
  background:
    linear-gradient(var(--sc-p2), var(--sc-p2)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--sc-p2), var(--sc-p2)) 0 100% / 100% 2px no-repeat,
    linear-gradient(90deg, rgb(196 40 126 / .90) 0%, rgb(220 56 146 / .84) 50%, rgb(196 40 126 / .90) 100%) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active.combat-winner-p1 #action-bar-wrapper #action-bar#action-bar::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: 0 0 0 50% !important;
  width: 50% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  transform-origin: right center !important;
  background:
    linear-gradient(var(--sk-violet), var(--sk-violet)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--sk-violet), var(--sk-violet)) 0 100% / 100% 2px no-repeat,
    linear-gradient(90deg, rgb(var(--sk-violet-rgb) / .18) 0%, rgb(var(--sk-violet-rgb) / .42) 100%),
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important;
  animation: combatRetreatRight 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active.combat-winner-p2 #action-bar-wrapper #action-bar#action-bar::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: 0 50% 0 0 !important;
  width: 50% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  transform-origin: left center !important;
  background:
    linear-gradient(var(--sk-azure), var(--sk-azure)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--sk-azure), var(--sk-azure)) 0 100% / 100% 2px no-repeat,
    linear-gradient(90deg, rgb(var(--sk-azure-rgb) / .42) 0%, rgb(var(--sk-azure-rgb) / .18) 100%),
    linear-gradient(var(--sk-glass), var(--sk-glass)) !important;
  animation: combatRetreatLeft 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active.combat-winner-p1 #action-bar-wrapper #action-bar#action-bar::before {
  background:
    linear-gradient(var(--sc-p2), var(--sc-p2)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--sc-p2), var(--sc-p2)) 0 100% / 100% 2px no-repeat,
    linear-gradient(90deg, rgb(196 40 126 / .25), rgb(196 40 126 / .72)),
    linear-gradient(rgb(255 255 255 / .92), rgb(255 255 255 / .92)) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active.combat-winner-p2 #action-bar-wrapper #action-bar#action-bar::before {
  background:
    linear-gradient(var(--sc-p1), var(--sc-p1)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--sc-p1), var(--sc-p1)) 0 100% / 100% 2px no-repeat,
    linear-gradient(90deg, rgb(20 116 200 / .72), rgb(20 116 200 / .25)),
    linear-gradient(rgb(255 255 255 / .92), rgb(255 255 255 / .92)) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active.combat-winner-p1 #action-bar-wrapper #action-bar#action-bar::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 38% !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .28), transparent) !important;
  animation: combatWinSweep 1.25s cubic-bezier(0.22, 1, 0.36, 1) 1 both !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active.combat-winner-p2 #action-bar-wrapper #action-bar#action-bar::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 38% !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .28), transparent) !important;
  animation: combatWinSweepLeft 1.25s cubic-bezier(0.22, 1, 0.36, 1) 1 both !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active #action-bar :is(.bar-center-container, #btn-combat-done, #evade-decision-container) {
  position: relative !important;
  z-index: 2 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active #action-bar #combat-result-container {
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active #action-bar #cb-outcome {
  text-align: center !important;
  font-family: var(--sc-font-display, Orbitron, sans-serif) !important;
  font-size: clamp(14px, 1.8vw, 19px) !important;
  font-weight: 800 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 2px 10px rgb(0 0 0 / .45) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active:not(.combat-winner-p1):not(.combat-winner-p2) #action-bar #cb-outcome {
  color: #172635 !important;
  -webkit-text-fill-color: #172635 !important;
  text-shadow: none !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-u0).combat-active:is(.combat-winner-p1, .combat-winner-p2) #action-bar #cb-outcome {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 6px rgb(0 0 0 / .28) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #combat-result-container #cb-outcome-detail {
  display: none !important;
}

/* Stage 2 Battle Die Card Spotlight (Azure card + cell + widget, Dark & Light, Desktop & Mobile) */
@keyframes tutBattleCardGlow {
  0%, 100% {
    box-shadow: 0 0 0 2px var(--sc-signal, #d4ff2a), 0 0 20px rgb(212 255 42 / .65), inset 0 0 16px rgb(47 140 255 / .28);
  }
  50% {
    box-shadow: 0 0 0 3px var(--sc-signal, #d4ff2a), 0 0 34px rgb(212 255 42 / .92), inset 0 0 24px rgb(47 140 255 / .44);
  }
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-t0) #game-screen :is(#combat-stash-p1.tut-spotlight-active .combat-matrix-cell, #combat-stash-p1 .combat-matrix-cell.tut-spotlight-active, #interactive-dice-p1.tut-spotlight-active) {
  border: 2px solid var(--sc-signal, #d4ff2a) !important;
  animation: tutBattleCardGlow 1.15s ease-in-out infinite !important;
  filter: drop-shadow(0 0 12px rgb(212 255 42 / .55)) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-t0) #game-screen :is(#combat-stash-p1.tut-spotlight-active .combat-matrix-cell, #combat-stash-p1 .combat-matrix-cell.tut-spotlight-active, #interactive-dice-p1.tut-spotlight-active) {
  border: 2.5px solid #0b69c8 !important;
  box-shadow: 0 0 0 2px #d4ff2a, 0 0 24px rgb(20 116 200 / .55) !important;
  filter: none !important;
}

/* Core Modal Scorer Faction Colors + Vertical Centering of ACCEPT with 4 Faces */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0) #core-modal #core-modal-scorer.p1 {
  color: var(--sc-p1-text, #64b5ff) !important;
  -webkit-text-fill-color: var(--sc-p1-text, #64b5ff) !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0) #core-modal #core-modal-scorer.p2 {
  color: var(--sc-p2-text, #ff6db5) !important;
  -webkit-text-fill-color: var(--sc-p2-text, #ff6db5) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0) #core-modal #core-modal-scorer.p1 {
  color: var(--sc-p1, #1474c8) !important;
  -webkit-text-fill-color: var(--sc-p1, #1474c8) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0) #core-modal #core-modal-scorer.p2 {
  color: var(--sc-p2, #c4287e) !important;
  -webkit-text-fill-color: var(--sc-p2, #c4287e) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body):not(#sc-d0) #core-modal #core-action-container {
  grid-area: 3 / 2 / 4 / 3 !important;
  justify-self: end !important;
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-end !important;
  padding-top: 14px !important;
  margin: 0 !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal #core-action-container {
  grid-area: 3 / 2 / 4 / 3 !important;
  justify-self: end !important;
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-end !important;
  padding-top: 12px !important;
  margin: 0 !important;
}

/* Stage 3 Warp Card ACCEPT Button */
.tut-phase-warp-accept {
  margin-top: 12px !important;
  min-width: 168px !important;
  min-height: 40px !important;
  padding: 10px 28px !important;
  justify-content: center !important;
  align-items: center !important;
  font-family: var(--sc-font-display, Orbitron, sans-serif) !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  background: var(--sc-signal, #d4ff2a) !important;
  color: #0b0e0d !important;
  -webkit-text-fill-color: #0b0e0d !important;
  border: 1px solid var(--sc-signal, #d4ff2a) !important;
  cursor: pointer !important;
}
html[data-theme='light'] .tut-phase-warp-accept {
  background: #487300 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #487300 !important;
}

/* Mobile Action Bar: 50/50 Smooth Split & Winner Slide Transition (beats 24x :not(#rm) at line 3143) */
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT'], .combat-draw):not(.combat-winner-p1):not(.combat-winner-p2) #action-bar {
  --fill: linear-gradient(90deg, rgba(47, 140, 255, 0.28) 0%, rgba(47, 140, 255, 0.16) 41%, rgba(196, 40, 126, 0.16) 59%, rgba(196, 40, 126, 0.28) 100%) !important;
  --frame: rgba(160, 190, 230, 0.6) !important;
  --acc: transparent !important;
  --acc-size: 0px 0px !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is([data-phone-phase='EVADE_DECISION'], [data-phone-phase='EVADE_SELECT'], .combat-draw):not(.combat-winner-p1):not(.combat-winner-p2) #action-bar {
  --fill: linear-gradient(90deg, rgba(20, 116, 200, 0.24) 0%, rgba(20, 116, 200, 0.13) 41%, rgba(196, 40, 126, 0.13) 59%, rgba(196, 40, 126, 0.24) 100%) !important;
  --frame: rgba(58, 86, 120, 0.52) !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active.combat-winner-p1 #action-bar {
  --fill: linear-gradient(135deg, rgba(22, 108, 218, 0.92), rgba(47, 140, 255, 0.84)) !important;
  --frame: #7fc1ff !important;
  --acc: transparent !important;
  --acc-size: 0px 0px !important;
  overflow: hidden !important;
  filter: drop-shadow(0 0 12px rgba(47, 140, 255, 0.48)) !important;
  transition: filter .5s cubic-bezier(.22, 1, .36, 1) !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active.combat-winner-p1 #action-bar {
  --fill: linear-gradient(135deg, #0e63b8, #1c80de) !important;
  --frame: #08488a !important;
  filter: drop-shadow(0 2px 10px rgba(14, 99, 184, 0.35)) !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active.combat-winner-p2 #action-bar {
  --fill: linear-gradient(135deg, rgba(190, 22, 102, 0.92), rgba(255, 45, 138, 0.84)) !important;
  --frame: #ff7cc0 !important;
  --acc: transparent !important;
  --acc-size: 0px 0px !important;
  overflow: hidden !important;
  filter: drop-shadow(0 0 12px rgba(255, 45, 138, 0.48)) !important;
  transition: filter .5s cubic-bezier(.22, 1, .36, 1) !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active.combat-winner-p2 #action-bar {
  --fill: linear-gradient(135deg, #a81c68, #cf2c88) !important;
  --frame: #7a0f4b !important;
  filter: drop-shadow(0 2px 10px rgba(168, 28, 104, 0.35)) !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active.combat-winner-p1 #action-bar::before {
  display: block !important;
  content: '' !important;
  position: absolute !important;
  inset: 0 0 0 50% !important;
  width: 50% !important;
  z-index: 1 !important;
  pointer-events: none !important;
  clip-path: none !important;
  transform-origin: right center !important;
  opacity: 0;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(196, 40, 126, 0.45), rgba(255, 45, 138, 0.78)) !important;
  animation: combatRetreatRight 0.62s cubic-bezier(.22, 1, .36, 1) forwards !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active.combat-winner-p2 #action-bar::before {
  display: block !important;
  content: '' !important;
  position: absolute !important;
  inset: 0 50% 0 0 !important;
  width: 50% !important;
  z-index: 1 !important;
  pointer-events: none !important;
  clip-path: none !important;
  transform-origin: left center !important;
  opacity: 0;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(47, 140, 255, 0.78), rgba(47, 140, 255, 0.45)) !important;
  animation: combatRetreatLeft 0.62s cubic-bezier(.22, 1, .36, 1) forwards !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is(.combat-winner-p1, .combat-winner-p2) #action-bar::after {
  display: block !important;
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.26) 45%, transparent 70%) !important;
  animation: combatWinSweep 1.15s cubic-bezier(.16, 1, .3, 1) both !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is(.combat-winner-p1, .combat-winner-p2) #action-bar .bar-center-container {
  position: relative !important;
  z-index: 2 !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is(.combat-winner-p1, .combat-winner-p2) #combat-result-container {
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is(.combat-winner-p1, .combat-winner-p2) #cb-outcome {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  padding: 2px 4px !important;
  font: 800 clamp(11px, 1.5vw, 13.5px)/1.15 var(--sc-font-display, Orbitron, sans-serif) !important;
  letter-spacing: .16em !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45) !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is(.combat-winner-p1, .combat-winner-p2) #cb-outcome::before,
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active:is(.combat-winner-p1, .combat-winner-p2) #cb-outcome[data-rm-short]::after {
  display: none !important;
  content: none !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active #combat-result-container .cb-outcome-detail[hidden] {
  display: none !important;
}

/* =====================================================================
   10.8  GAME OVER MODAL CELEBRATION & GRAY EXIT BUTTON (DESKTOP + MOBILE)
   ===================================================================== */
@keyframes goModalPop {
  0% { opacity: 0; transform: translateY(10px) scale(0.975); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes goCrestBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.03); }
}

/* Shared winner palette variable & neutral gray Exit to Menu button (beats :is(#btn-go-exit, ...) hazard rules) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal {
  --go-win-rgb: var(--sc-p1-rgb);
  --go-win-ink: var(--sc-p1-text);
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal[data-winner='P2'],
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal[data-rm-winner='P2'] {
  --go-win-rgb: var(--sc-p2-rgb);
  --go-win-ink: var(--sc-p2-text);
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal[data-winner='draw'],
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal[data-rm-winner='draw'] {
  --go-win-rgb: var(--sc-gold-rgb);
  --go-win-ink: var(--sc-gold-text);
}

/* Neutral Gray Secondary "Exit to Menu" Button (Desktop + Mobile, Dark + Light — never red) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal #btn-go-exit.btn:not(#sc-x1):not(#sc-x2):not(#sc-x3):not(#sc-x4):not(#sc-x5) {
  --fill: #2d3432 !important;
  --frame: rgb(var(--sc-fg-rgb) / .42) !important;
  --acc: transparent !important;
  color: var(--sc-text) !important;
  -webkit-text-fill-color: var(--sc-text) !important;
  background: none !important;
  filter: none !important;
  opacity: 1 !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal #btn-go-exit.btn:is(:hover, :focus-visible):not(:disabled):not(#sc-x1):not(#sc-x2):not(#sc-x3):not(#sc-x4):not(#sc-x5) {
  --fill: #3b4441 !important;
  --frame: rgb(var(--sc-fg-rgb) / .72) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  filter: none !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal #btn-go-exit.btn:not(#sc-x1):not(#sc-x2):not(#sc-x3):not(#sc-x4):not(#sc-x5) {
  --fill: #dde3da !important;
  --frame: rgb(var(--sc-fg-rgb) / .42) !important;
  color: var(--sc-text) !important;
  -webkit-text-fill-color: var(--sc-text) !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal #btn-go-exit.btn:is(:hover, :focus-visible):not(:disabled):not(#sc-x1):not(#sc-x2):not(#sc-x3):not(#sc-x4):not(#sc-x5) {
  --fill: #eef2ec !important;
  --frame: rgb(var(--sc-fg-rgb) / .68) !important;
  color: var(--sc-text) !important;
  -webkit-text-fill-color: var(--sc-text) !important;
}

/* Remove misaligned outer pseudo focus-ring on gameover buttons; keep crisp bright border instead */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .btn:focus-visible:not(#sc-f0):not(#sc-f1):not(#sc-f2):not(#sc-f3):not(#sc-f4):not(#sc-f5):not(#sc-f6)::after {
  display: none !important;
  content: none !important;
}

/* Faction-colored numbers/labels inside Eliminations & Match MVP (Dark + Light, Desktop + Mobile) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal :is(.go-p1, .go-tok-side.go-p1 .go-tok-name, .go-tok-side.go-p1 .go-tok-score) {
  color: var(--sc-p1-text) !important;
  -webkit-text-fill-color: currentColor !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal :is(.go-p2, .go-tok-side.go-p2 .go-tok-name, .go-tok-side.go-p2 .go-tok-score) {
  color: var(--sc-p2-text) !important;
  -webkit-text-fill-color: currentColor !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box .stat-num > span.go-elims-sep {
  color: rgb(var(--sc-fg-rgb) / .45) !important;
  -webkit-text-fill-color: currentColor !important;
  margin: 0 3px;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box .stat-num > span.go-mvp-wins {
  color: var(--sc-text) !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: .88 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box .stat-num > span.go-mvp-none {
  color: var(--sc-muted) !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 16px !important;
  letter-spacing: .1em !important;
}

/* Desktop Celebratory Layout & Typography */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .modal-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
  width: min(560px, 92vw) !important;
  max-width: 560px !important;
  padding: 24px 34px 28px !important;
  gap: 10px !important;
  overflow: visible !important;
  --c: 20px;
  --fw: 1px;
  --frame: rgb(var(--go-win-rgb) / .62);
  --acc: rgb(var(--go-win-rgb));
  --acc-pos: center top;
  --acc-size: 100% 3px;
  --fill: radial-gradient(ellipse 92% 44% at 50% 0%, rgb(var(--go-win-rgb) / .20), transparent 72%), var(--sc-plate);
  filter: drop-shadow(0 0 28px rgb(var(--go-win-rgb) / .22)) drop-shadow(0 22px 48px rgba(0, 0, 0, .62)) !important;
  animation: goModalPop .36s var(--sc-ease-out) both !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .modal-card:not(#sc-f1):not(#sc-f2):not(#sc-f3) {
  --fill: radial-gradient(ellipse 92% 44% at 50% 0%, rgb(var(--go-win-rgb) / .14), transparent 70%), #f0f3ed;
  filter: drop-shadow(0 18px 40px rgba(13, 21, 30, .24)) !important;
}

html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal #go-crest {
  display: block !important;
  position: relative !important;
  z-index: 4 !important;
  width: 112px;
  height: 112px;
  margin: -60px auto 0;
  background: url('../assets/images/BD20_3_BIG.webp') center / contain no-repeat;
  filter: drop-shadow(0 10px 22px rgb(var(--go-win-rgb) / .55));
  animation: goCrestBreath 3.6s ease-in-out infinite;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal[data-winner='P2'] #go-crest {
  background-image: url('../assets/images/VD20_3_BIG.webp');
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal[data-winner='draw'] #go-crest {
  width: 82px;
  height: 82px;
  margin: -44px auto 2px;
  background-image: url('../assets/images/scalar_core_logo.svg');
}

html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal #go-title:not(#sc-d0):not(#sc-d1) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font: 700 12px/1 var(--sc-font-ui) !important;
  letter-spacing: .28em !important;
  color: rgb(var(--sc-fg-rgb) / .76) !important;
  -webkit-text-fill-color: currentColor !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal #go-title::before,
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal #go-title::after {
  content: '';
  width: 24px;
  height: 1px;
  background: rgb(var(--go-win-rgb) / .65);
}

html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal #go-winner:not(#sc-d0):not(#sc-d1) {
  font: 900 clamp(36px, 4.2vw, 46px)/1.02 var(--sc-font-display, Orbitron, sans-serif) !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: var(--go-win-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: 0 0 28px rgb(var(--go-win-rgb) / .48) !important;
  margin: 0 !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal #go-winner:not(#sc-d0):not(#sc-d1) {
  text-shadow: none !important;
}

html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal #go-reason:not(#sc-d0):not(#sc-d1) {
  font: 700 13.5px/1.3 var(--sc-font-ui) !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: rgb(var(--sc-fg-rgb) / .88) !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
  text-align: center !important;
  margin: 0 0 4px !important;
}

/* Visual Control Token Hex Scoreboard Strip */
html:not([data-phone-device='true']) #gameover-modal #go-tokens {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 11px 16px !important;
  margin: 2px 0 6px !important;
  background: rgb(var(--sc-fg-rgb) / .045) !important;
  border-top: 1px solid rgb(var(--sc-fg-rgb) / .11) !important;
  border-bottom: 1px solid rgb(var(--sc-fg-rgb) / .11) !important;
  box-sizing: border-box !important;
}
html[data-theme='light']:not([data-phone-device='true']) #gameover-modal #go-tokens {
  background: rgb(var(--sc-fg-rgb) / .055) !important;
}
#gameover-modal .go-tok-side {
  display: flex;
  align-items: center;
  gap: 9px;
}
#gameover-modal .go-tok-side.go-p1 {
  justify-content: flex-end;
}
#gameover-modal .go-tok-side.go-p2 {
  justify-content: flex-start;
}
#gameover-modal .go-tok-name {
  font: 700 12px/1 var(--sc-font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
}
#gameover-modal .go-tok-score {
  font: 900 20px/1 var(--sc-font-display, Orbitron, sans-serif);
  min-width: 14px;
  text-align: center;
}
#gameover-modal .go-tok-sep {
  font: 700 11px/1 var(--sc-font-ui);
  letter-spacing: .16em;
  color: rgb(var(--sc-fg-rgb) / .52);
}
#gameover-modal .go-tok-pips {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
#gameover-modal .go-hex-pip {
  width: 18px;
  height: 21px;
  display: block;
}
#gameover-modal .go-hex-pip polygon {
  fill: transparent;
  stroke: rgb(var(--sc-fg-rgb) / .26);
  stroke-width: 1.8;
}
#gameover-modal .go-hex-pip.is-earned polygon {
  fill: var(--sc-gold, #f0c867);
  stroke: var(--sc-gold, #f0c867);
}
#gameover-modal .go-hex-pip.is-earned {
  filter: drop-shadow(0 0 6px rgb(var(--sc-gold-rgb) / .55));
}
html[data-theme='light'] #gameover-modal .go-hex-pip.is-earned polygon {
  fill: #c78800;
  stroke: #946300;
}
html[data-theme='light'] #gameover-modal .go-hex-pip.is-earned {
  filter: none;
}

/* Desktop Stat Cards: Larger, Crisp Labels & MVP Banner */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stats-grid:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) {
  gap: 10px !important;
  margin: 0 0 10px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) {
  padding: 14px 10px 12px !important;
  gap: 6px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box .stat-num:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) {
  font-size: 30px !important;
  color: var(--sc-text) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box .stat-lbl {
  font: 700 11.5px/1 var(--sc-font-ui) !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: rgb(var(--sc-fg-rgb) / .76) !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box.go-stat-mvp:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  justify-content: center !important;
  padding: 15px 16px !important;
  gap: 12px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box.go-stat-mvp .stat-lbl:not(#sc-d0) {
  order: -1 !important;
  font: 500 clamp(15px, 1.8vw, 18px)/1.1 var(--sc-font-display, Orbitron, sans-serif) !important;
  letter-spacing: .06em !important;
  color: rgb(var(--sc-fg-rgb) / .76) !important;
  white-space: nowrap !important;
  margin: 0 !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sc-y, body) #gameover-modal .go-stat-box.go-stat-mvp .stat-num:not(#sc-d0):not(#sc-d1):not(#sc-d2):not(#sc-d3):not(#sc-d4):not(#sc-d5):not(#sc-d6):not(#sc-d7):not(#sc-d8):not(#sc-d9) {
  font: 800 clamp(15px, 1.8vw, 18px)/1.1 var(--sc-font-display, Orbitron, sans-serif) !important;
  display: inline-flex !important;
  align-items: baseline !important;
  white-space: nowrap !important;
  gap: 8px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #gameover-modal .go-stat-box.go-stat-mvp .stat-num > span.go-mvp-wins {
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

/* Desktop Buttons: Exact Equal Width, Clean Height & No Inherited Top Band */
html:not([data-phone-device='true']) #gameover-modal :is(#btn-new-game, #btn-go-exit) {
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  font: 800 13px/1 var(--sc-font-ui) !important;
  letter-spacing: .18em !important;
  justify-content: center !important;
  --acc: transparent !important;
  --acc-size: 0px 0px !important;
}
html:not([data-phone-device='true']) #gameover-modal #btn-new-game {
  margin-top: 2px !important;
}
html:not([data-phone-device='true']) #gameover-modal #btn-go-exit {
  margin-top: 0 !important;
}

/* Mobile Polish (inherits right-side split card layout while enlarging labels & fixing MVP/elims contrast) */
html[data-phone-device='true'] #gameover-modal #go-crest {
  display: none !important;
}
html[data-phone-device='true'] #gameover-modal :is(#btn-new-game, #btn-go-exit) {
  --acc: transparent !important;
  --acc-size: 0px 0px !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-stats .stat-lbl {
  font: 700 10.5px/1 var(--sc-font-ui) !important;
  letter-spacing: .13em !important;
  color: rgb(var(--sc-fg-rgb) / .78) !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-stats .go-stat-box.go-stat-mvp {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-stats #go-stat-mvp {
  font: 800 clamp(11px, 1.45vw, 13.5px)/1.15 var(--sc-font-display, Orbitron, sans-serif) !important;
  white-space: normal !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #go-stats .stat-num > span.go-mvp-wins {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  display: block !important;
  margin-top: 1px !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #btn-go-exit.btn {
  --fill: var(--sc-raised) !important;
  --frame: rgb(var(--sc-fg-rgb) / .38) !important;
  color: var(--sc-text) !important;
  -webkit-text-fill-color: var(--sc-text) !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #gameover-modal #btn-go-exit.btn {
  --fill: #e7ece3 !important;
  --frame: rgb(var(--sc-fg-rgb) / .38) !important;
  color: var(--sc-text) !important;
  -webkit-text-fill-color: var(--sc-text) !important;
}

/* =====================================================================
   10.9 ACTIVE STASH GLOW & IMMEDIATE FRAME-0 BACKGROUND PULSE
   ===================================================================== */
@keyframes scStashAuraP1 {
  0%, 100% { filter: drop-shadow(0 0 22px rgb(var(--sc-p1-rgb) / .72)); }
  50% { filter: drop-shadow(0 0 10px rgb(var(--sc-p1-rgb) / .34)); }
}
@keyframes scStashAuraP2 {
  0%, 100% { filter: drop-shadow(0 0 22px rgb(var(--sc-p2-rgb) / .72)); }
  50% { filter: drop-shadow(0 0 10px rgb(var(--sc-p2-rgb) / .34)); }
}
@keyframes scStashAuraLight {
  0%, 100% { filter: drop-shadow(0 4px 16px rgb(var(--sk-turn-rgb) / .42)); }
  50% { filter: drop-shadow(0 2px 6px rgb(var(--sk-turn-rgb) / .18)); }
}
@keyframes scStashBgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.28; }
}
@keyframes scChipGlowDark {
  0%, 100% {
    filter: drop-shadow(0 0 14px rgb(var(--sc-signal-rgb) / .95)) drop-shadow(0 0 26px rgb(var(--sc-signal-rgb) / .52));
    transform: scale(1.03);
  }
  50% {
    filter: drop-shadow(0 0 6px rgb(var(--sc-signal-rgb) / .55));
    transform: scale(1);
  }
}
@keyframes scChipGlowLight {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgb(92 120 0 / .72)) drop-shadow(0 2px 14px rgb(92 120 0 / .42));
    transform: scale(1.03);
  }
  50% {
    filter: drop-shadow(0 0 4px rgb(92 120 0 / .36));
    transform: scale(1);
  }
}
@keyframes scChipBgSweep {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Turn-active Stash Panel: more prominent glow + immediate pulsing background tint */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p1.stash-active {
  --frame: rgb(var(--sc-p1-rgb) / .95);
  animation: scStashAuraP1 1.45s ease-in-out infinite !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-p2.stash-active {
  --frame: rgb(var(--sc-p2-rgb) / .95);
  animation: scStashAuraP2 1.45s ease-in-out infinite !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-active {
  animation: scStashAuraLight 1.45s ease-in-out infinite !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-active::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c, 18px)), calc(100% - var(--c, 18px)) 100%, 0 100%) !important;
  background: radial-gradient(ellipse 95% 75% at 50% 45%, rgb(var(--sk-turn-rgb) / .24), rgb(var(--sk-turn-rgb) / .08) 70%, transparent 100%) !important;
  animation: scStashBgPulse 1.45s ease-in-out infinite !important;
}
html[data-theme='light']:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .side-stash.stash-active::after {
  background: radial-gradient(ellipse 95% 75% at 50% 45%, rgb(var(--sk-turn-rgb) / .18), rgb(var(--sk-turn-rgb) / .06) 72%, transparent 100%) !important;
}

/* Highlighted Stash Die (.tut-beacon-glow): instant frame-0 glow + pulsing chip background (Desktop Dark & Light) */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip.tut-beacon-glow:not(#sc-t0) {
  --acc: transparent !important;
  --frame: var(--sc-signal) !important;
  --fw: 2.5px !important;
  --fill: color-mix(in srgb, var(--sc-signal) 30%, var(--sc-raised)) !important;
  animation: scChipGlowDark 1.35s ease-in-out infinite !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip.tut-beacon-glow:not(#sc-t0)::after {
  content: none !important;
  display: none !important;
}
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip.tut-beacon-glow:not(#sc-t0)::before {
  background: var(--orn, linear-gradient(transparent, transparent)),
    linear-gradient(var(--acc), var(--acc)) var(--acc-pos) / var(--acc-size) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left var(--c) bottom 0 / calc(100% - var(--c)) var(--fw) no-repeat,
    linear-gradient(var(--frame), var(--frame)) left 0 top 0 / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(var(--frame), var(--frame)) right 0 top var(--c) / var(--fw) calc(100% - var(--c)) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) right top / var(--c) var(--c) no-repeat,
    linear-gradient(to top right, transparent calc(50% - var(--fw) * .9), var(--frame) calc(50% - var(--fw) * .9) calc(50% + var(--fw) * .9), transparent calc(50% + var(--fw) * .9)) left bottom / var(--c) var(--c) no-repeat,
    var(--fill) !important;
  animation: scChipBgSweep 1.35s ease-in-out infinite !important;
}
html[data-theme='light']:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip.tut-beacon-glow:not(#sc-t0) {
  --acc: transparent !important;
  --frame: #5c7800 !important;
  --fw: 2.5px !important;
  --fill: color-mix(in srgb, #b6e01c 34%, #ffffff) !important;
  animation: scChipGlowLight 1.35s ease-in-out infinite !important;
}

/* Mobile Stash Glow & Immediate Background Pulse */
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .side-stash .die-chip.tut-beacon-glow {
  --acc: transparent !important;
  --fill: color-mix(in srgb, var(--sc-signal) 34%, var(--rm-tile)) !important;
  --frame: var(--sc-signal) !important;
  --fw: 2.5px !important;
  animation: scChipGlowDark 1.35s ease-in-out infinite !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .side-stash .die-chip.tut-beacon-glow {
  --acc: transparent !important;
  --fill: color-mix(in srgb, #b6e01c 36%, #ffffff) !important;
  --frame: #487300 !important;
  --fw: 2.5px !important;
  animation: scChipGlowLight 1.35s ease-in-out infinite !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .side-stash .die-chip.tut-beacon-glow::after {
  background: var(--orn, linear-gradient(transparent, transparent)),
    radial-gradient(circle at center, rgb(var(--sc-signal-rgb) / .24), rgb(var(--sc-signal-rgb) / .08)) !important;
  animation: scChipBgSweep 1.35s ease-in-out infinite !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .side-stash.stash-active {
  filter: drop-shadow(0 0 18px rgb(var(--sk-turn-rgb) / .52)) !important;
}

/* Mobile Turn Timer integrated inside #phone-match-status below active player's card */
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #online-turn-status-banner {
  display: none !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status .phone-status-title {
  position: relative !important;
  overflow: hidden !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status .phone-turn-rope {
  display: none;
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  pointer-events: none;
  transition: width 0.1s linear;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status.has-turn-timer .phone-status-title {
  padding-bottom: 4px !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status.has-turn-timer .phone-turn-rope {
  display: block !important;
  background: rgb(11 12 16 / .72) !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.ai-turn #phone-match-status.has-turn-timer .phone-turn-rope {
  background: var(--sc-violet) !important;
}
html[data-phone-device='true'][data-theme='light']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.ai-turn #phone-match-status.has-turn-timer .phone-turn-rope {
  background: #a8166a !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status.has-turn-timer.turn-warning .phone-turn-rope {
  background: #ffaa00 !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status.has-turn-timer.turn-urgent .phone-turn-rope {
  background: #ff2b44 !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status.has-turn-timer.turn-urgent .phone-status-title {
  box-shadow: inset 0 0 0 1px rgb(255 43 68 / .85) !important;
}

/* Observer Roll Tooltip: match the main roll popup look on both desktop and mobile (inward beside stash) */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-o0) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.popup-observer {
  --prompt-width: 244px;
  --prompt-height: 204px;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 16px minmax(0, 1fr) 26px !important;
  padding: 12px !important;
  gap: 8px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-o0) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.popup-observer .row-popup-lbl {
  position: static !important;
  grid-area: 1 / 1 !important;
  text-align: center !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-o0) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.popup-observer .popup-big-val {
  grid-area: 2 / 1 !important;
  min-height: 112px !important;
  height: 100% !important;
  font-size: 64px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-o0) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.popup-observer .popup-roll-note {
  position: static !important;
  grid-area: 3 / 1 !important;
  align-self: center !important;
  text-align: center !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen > .row-popup.popup-observer {
  --prompt-width: clamp(184px, 23vw, 206px);
  --prompt-height: 146px;
  width: clamp(184px, 23vw, 206px) !important;
  height: 146px !important;
  min-height: 146px !important;
  max-height: 146px !important;
  padding: 10px !important;
  gap: 8px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: 14px minmax(0, 1fr) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen > .row-popup.popup-observer .row-popup-lbl {
  position: static !important;
  grid-area: 1 / 1 !important;
  inset: auto !important;
  align-self: center !important;
  text-align: left !important;
  font-size: 8.5px !important;
  line-height: 12px !important;
  letter-spacing: .06em !important;
  max-width: none !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen > .row-popup.popup-observer .popup-roll-note {
  position: static !important;
  grid-area: 1 / 2 !important;
  inset: auto !important;
  align-self: center !important;
  display: block !important;
  font-size: 8.5px !important;
  line-height: 12px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  color: var(--sk-muted) !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen > .row-popup.popup-observer .popup-big-val {
  grid-area: 2 / 1 / 3 / 3 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  font-size: 46px !important;
}

/* Mobile Player Plaques: prevent VIOLET/AZURE name ellipsis next to OPPONENT badge */
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-left .hp-main {
  padding: 0 10px 0 calc(var(--rm-die) * .54 + 5px) !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.phone-side-right .hp-main {
  padding: 0 calc(var(--rm-die) * .54 + 5px) 0 10px !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.active.phone-side-left .hp-main {
  padding-right: 14px !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player.active.phone-side-right .hp-main {
  padding-left: 14px !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .hp-name-col {
  gap: 4px !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .hp-name-row {
  flex: 0 0 auto !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .hp-name {
  font-size: clamp(10px, min(3.4dvh, 1.55vw), 13px) !important;
  letter-spacing: .07em !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen .hud-player .player-identity-label {
  font-size: 7px !important;
  letter-spacing: .05em !important;
  padding: 1px 4px 0 4px !important;
}

/* 14. Responsive Polish: Consistent Battle Cards, Clearances, 2K/4K Scaling */
/* Note: .bar-center turn-sliding left/right (responsive.css & viewport-fit.css) is preserved intentionally. */

/* 14.2 Consistent Compact Battle Cards Across Desktop & Tablet (remove 806px stretch & tablet ghost spacer) */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(.phone-match-active).combat-active .side-stash,
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(.phone-match-active).combat-active .side-stash.stash-active {
  min-height: 0 !important;
  height: auto !important;
  max-height: calc(100vh - 112px) !important;
  align-self: flex-start !important;
  justify-content: flex-start !important;
  padding: clamp(14px, 2vh, 24px) 10px clamp(14px, 2vh, 22px) !important;
}
html[data-tablet-menu='true']:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(.phone-match-active).combat-active .stash-grid-wrapper {
  display: none !important;
}
html[data-tablet-menu='true']:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(.phone-match-active).combat-active .combat-stash-content {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 4px 2px !important;
  align-content: start !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(.phone-match-active).combat-active .combat-stash-content {
  flex: 0 0 auto !important;
  padding-block: 4px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(.phone-match-active).combat-active .combat-stash-content > .cb-role-badge {
  margin-bottom: 8px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(.phone-match-active).combat-active .csp-unit {
  margin-bottom: 8px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(.phone-match-active).combat-active .combat-matrix-cell {
  padding: 10px 10px 12px !important;
}
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(.phone-match-active).combat-active .bg3-battle-die-widget {
  min-height: 0 !important;
  padding: 8px 8px 10px !important;
  gap: 6px !important;
}
@media (max-width: 2299px) {
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(.phone-match-active).combat-active .bg3-die-container {
    width: clamp(144px, 16.5vh, 184px) !important;
    height: clamp(144px, 16.5vh, 184px) !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(.phone-match-active).combat-active :is(.bg3-die-body, .bg3-3d-canvas) {
    width: 100% !important;
    height: 100% !important;
  }
}
html[data-tablet-menu='true']:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(.phone-match-active).combat-active .bg3-die-container {
  max-width: min(176px, 18vw) !important;
}

/* 14.3 Mobile & Surface Duo Consistent Battle Card Proportions (no tall void on Duo / Pro Max) */
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active.combat-active {
  --rm-cb-h: min(calc(100dvh - var(--rm-cb-top) - var(--rm-gb) - var(--rm-cb-dec)), calc(var(--rm-cb-w) * 1.26), 226px);
}

/* 14.4 Compact Handheld & Tablet Observer/Roll Popup Sizing */
@media (max-width: 1150px) {
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-o0) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.popup-observer {
    --prompt-width: 178px;
    --prompt-height: 148px;
    padding: 9px !important;
    gap: 5px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-o0) body:is(#sk-x, body):is(#sk-y, body) #game-screen > .row-popup.popup-observer .popup-big-val {
    min-height: 76px !important;
    font-size: 46px !important;
  }
}
@media (max-width: 760px) {
  html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen > .row-popup.popup-observer {
    --prompt-width: clamp(160px, 22.5vw, 178px);
    --prompt-height: 122px;
    width: clamp(160px, 22.5vw, 178px) !important;
    height: 122px !important;
    min-height: 122px !important;
    max-height: 122px !important;
    padding: 8px !important;
    gap: 6px !important;
  }
  html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen > .row-popup.popup-observer .row-popup-lbl {
    font-size: 7.5px !important;
    letter-spacing: .04em !important;
  }
  html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen > .row-popup.popup-observer .popup-roll-note {
    font-size: 7.5px !important;
  }
  html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #game-screen > .row-popup.popup-observer .popup-big-val {
    font-size: 38px !important;
  }
}

/* 14.5 iPhone SE / Narrow Phones: Never Clip "YOUR TURN · 2 ACTIONS" Momentum Ribbon */
@media (max-width: 740px) {
  html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status {
    width: max-content !important;
    min-width: calc(var(--rm-card-in) + 42px) !important;
    max-width: calc(46vw) !important;
  }
  html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #phone-match-status .phone-status-title {
    padding: 1px 11px 0 11px !important;
    font-size: 8.5px !important;
    letter-spacing: .07em !important;
    overflow: visible !important;
  }
}

/* 14.6 Mobile Tutorial Stage 1 (AI_COUNTER_DEPLOY): Reveal Top & Bottom Deploy Rows */
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active:is(.tutorial-active, .tutorial-mode) #phone-tut-bar.is-active.tut-center-avoid-top {
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  min-height: 0 !important;
  padding: 6px 10px 6px 12px !important;
}

/* 14.7 Ultra-Short Landscape Mobile: Keep Core 3D Pyramid Inside Chamber Frame */
@media (orientation: landscape) and (max-width: 1100px) and (max-height: 350px) {
  html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active #core-modal :is(.core-3d-canvas, .core-d4-widget.is-locked .core-3d-canvas) {
    transform: translate(-50%, -50%) scale(1.56) !important;
    transform-origin: center !important;
  }
}

/* 14.8 Codex Mobile/Tablet Bottom Scroll Clearance */
@media (max-width: 1100px) {
  html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #tactical-codex-modal .cx-page {
    padding-bottom: 24px !important;
  }
}

/* 14.8b Desktop Tutorial Board Clearance: keep #hex-board stationary cleanly below #tutorial-banner on widescreen 16:9 displays */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body#top[data-page='play']:not(.phone-match-active):is(.tutorial-active, .tutorial-mode) #board-col {
  padding: 96px 20px 14px !important;
}
@media (max-height: 820px) {
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body#top[data-page='play']:not(.phone-match-active):is(.tutorial-active, .tutorial-mode) #board-col {
    padding: 84px 20px 10px !important;
  }
}

/* 14.8c Desktop Stash Group Header Alignment: match the 2-column die grid width cleanly */
html:not([data-phone-device='true']):not(#sk-z):not(#sc-1) body#top[data-page='play']:not(.phone-match-active) .sg-head {
  width: calc(2 * var(--die-chip-size, 78px) + var(--die-chip-gap, 5px)) !important;
  max-width: calc(100% - 24px) !important;
}

/* 14.9 ~2K (>= 2300px x 1250px) Proportional Desktop Scaling (at 100% Display Scale) */
@media (min-width: 2300px) and (min-height: 1250px) {
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) {
    --hud-w: clamp(400px, 16.5vw, 440px);
    --hud-margin: calc(var(--screen-frame-side, 24px) + 74px);
    --stash-plaque-inset: 18px;
    --stash-w: calc(var(--hud-w) - 2 * var(--stash-plaque-inset));
    --stash-margin: calc(var(--hud-margin) + var(--stash-plaque-inset) - 4px);
    --play-mascot-size: clamp(122px, 5.4vw, 144px);
    --play-bottom-space: calc(var(--screen-frame-inset, 12px) + 52px);
    --die-chip-size: 108px;
    --die-svg-size: 94px;
    --die-chip-gap: 10px;
    --desk-core-die: 340px;
    --sc-h-md: 46px;
    --sc-h-sm: 36px;
    --sc-h-xs: 30px;
    --sc-fs-0: 12px;
    --sc-fs-1: 12.5px;
    --sc-fs-2: 14px;
    --sc-fs-3: 17px;
    --sc-fs-4: 24px;
  }
  /* Keep base token ratios inside scaled lobby & modals so buttons never double-scale */
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) :is(#setup-screen, .modal:not(#setup-screen)) {
    --sc-h-sm: 32px;
    --sc-h-md: 42px;
    --sc-h-lg: 52px;
    --sc-fs-1: 11px;
    --sc-fs-2: 13px;
    --sc-fs-3: 16px;
    --sc-fs-4: 20px;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x):not(.phone-match-active):is(.tutorial-active, .tutorial-mode) #board-col {
    padding: 108px 24px 16px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .hud-player {
    height: 100px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .hud-player .hp-name {
    font-size: 18px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .hud-player .player-identity-label {
    font-size: 11px !important;
    padding: 3px 8px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .token-hex {
    width: 18px !important;
    height: 18px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #game-screen .bar-center .act-btn {
    min-width: 148px !important;
    height: 46px !important;
    font-size: 13px !important;
    padding-inline: 20px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .online-turn-status {
    min-height: 36px !important;
    font-size: 14px !important;
    padding: 8px 20px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .hotseat-momentum-pill {
    font-size: 13px !important;
    padding: 7px 16px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .side-stash:not(.combat-active .side-stash) {
    padding-top: 64px !important;
    padding-bottom: 28px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .stash-grid-wrapper {
    gap: 18px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .stash-group-vert {
    gap: 8px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .sg-title {
    font-size: 13px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) :is(#left-sidebar, #rb-sidebar) {
    width: 58px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #rb-sidebar {
    left: calc(var(--site-header-viewport-width, 100vw) - var(--screen-frame-side, 24px) - 58px) !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #core-tooltip {
    max-width: 420px !important;
    padding: 18px 22px !important;
    font-size: 14.5px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #game-screen > .row-popup {
    --prompt-width: 310px;
    --prompt-height: 256px;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #game-screen > .row-popup .popup-big-val {
    font-size: 76px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #tutorial-banner {
    max-width: 820px !important;
    padding: 14px 22px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #tutorial-banner #tut-instruction-text {
    font-size: 15.5px !important;
    line-height: 1.48 !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #log-panel.collapsed {
    height: 42px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #log-panel :is(.log-toggle, .log-toggle-btn) {
    flex: 0 0 40px !important;
    height: 40px !important;
    font-size: 12px !important;
    padding-inline: 26px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #setup-screen > .subscribe-wrapper {
    transform: scale(1.18) !important;
    transform-origin: center center !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .modal:not(#setup-screen):not(#core-modal) > :is(.modal-card, .tut-intro-card, .tut-modal-card, .confirm-card) {
    transform: scale(1.16) !important;
    transform-origin: center center !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #core-modal > .core-chamber-card {
    transform: scale(1.16) !important;
    transform-origin: center center !important;
  }
}

/* 14.10 4K (>= 3200px x 1700px) Full Desktop Scaling (100% OS DPI Monitor Comfort) */
@media (min-width: 3200px) and (min-height: 1700px) {
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) {
    --hud-w: clamp(520px, 15.2vw, 600px);
    --hud-margin: calc(var(--screen-frame-side, 24px) + 92px);
    --stash-plaque-inset: 24px;
    --stash-w: calc(var(--hud-w) - 2 * var(--stash-plaque-inset));
    --stash-margin: calc(var(--hud-margin) + var(--stash-plaque-inset) - 4px);
    --play-mascot-size: clamp(164px, 4.8vw, 196px);
    --play-bottom-space: calc(var(--screen-frame-inset, 12px) + 64px);
    --die-chip-size: 164px;
    --die-svg-size: 142px;
    --die-chip-gap: 14px;
    --desk-core-die: 460px;
    --sc-h-md: 58px;
    --sc-h-sm: 48px;
    --sc-h-xs: 40px;
    --sc-fs-0: 15px;
    --sc-fs-1: 16px;
    --sc-fs-2: 18px;
    --sc-fs-3: 24px;
    --sc-fs-4: 34px;
  }
  /* Keep base token ratios inside scaled lobby & modals so buttons never double-scale */
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) :is(#setup-screen, .modal:not(#setup-screen)) {
    --sc-h-sm: 32px;
    --sc-h-md: 42px;
    --sc-h-lg: 52px;
    --sc-fs-1: 11px;
    --sc-fs-2: 13px;
    --sc-fs-3: 16px;
    --sc-fs-4: 20px;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x):not(.phone-match-active):is(.tutorial-active, .tutorial-mode) #board-col {
    padding: 132px 32px 20px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #top-bar {
    height: 68px !important;
    padding-inline: 28px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #game-top-bar-mode {
    font-size: 15px !important;
    letter-spacing: .18em !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #game-screen :is(.audio-toggle-btn, .btn-exit-round) {
    width: 52px !important;
    height: 52px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .hud-player {
    height: 136px !important;
    padding-inline: 24px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .hud-player .hp-name {
    font-size: 24px !important;
    letter-spacing: .1em !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .hud-player .player-identity-label {
    font-size: 13px !important;
    padding: 4px 10px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .token-hex {
    width: 24px !important;
    height: 24px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #game-screen .bar-center {
    gap: 16px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #game-screen .bar-center .act-btn {
    min-width: 196px !important;
    height: 58px !important;
    font-size: 16px !important;
    letter-spacing: .14em !important;
    padding-inline: 28px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .online-turn-status {
    min-height: 46px !important;
    font-size: 18px !important;
    letter-spacing: .14em !important;
    padding: 10px 28px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .hotseat-momentum-pill {
    font-size: 16px !important;
    padding: 10px 22px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .side-stash:not(.combat-active .side-stash) {
    padding-top: 84px !important;
    padding-bottom: 36px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .stash-grid-wrapper {
    gap: 28px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .stash-group-vert {
    gap: 12px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .sg-title {
    font-size: 16px !important;
    letter-spacing: .14em !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x).combat-active .combat-stash-content {
    width: calc(var(--stash-w) - 24px) !important;
    padding: 14px 8px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x).combat-active .combat-stash-content > .cb-role-badge {
    font-size: 16px !important;
    padding: 11px 18px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x).combat-active .cb-section-title {
    font-size: 14px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x).combat-active .csp-unit {
    font-size: 26px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x).combat-active .bg3-die-container {
    width: 240px !important;
    height: 240px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x).combat-active .combat-matrix-cell :is(.bg3-effect-text, .bg3-effect-desc) {
    font-size: 17.5px !important;
    line-height: 1.45 !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x).combat-active .bg3-prompt-badge {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) :is(#left-sidebar, #rb-sidebar) {
    width: 74px !important;
    gap: 18px !important;
    padding-block: 18px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #rb-sidebar {
    left: calc(var(--site-header-viewport-width, 100vw) - var(--screen-frame-side, 24px) - 74px) !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) :is(#left-sidebar, #rb-sidebar) :is(span, a, button) {
    font-size: 16px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #core-tooltip {
    max-width: 540px !important;
    padding: 24px 28px !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #game-screen > .row-popup {
    --prompt-width: 390px;
    --prompt-height: 320px;
    padding: 18px !important;
    gap: 12px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #game-screen > .row-popup .row-popup-lbl {
    font-size: 15px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #game-screen > .row-popup .popup-roll-note {
    font-size: 14px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #game-screen > .row-popup .popup-big-val {
    font-size: 98px !important;
    min-height: 170px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #tutorial-banner {
    max-width: 1040px !important;
    padding: 20px 28px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #tutorial-banner #tut-stage-badge {
    font-size: 14px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #tutorial-banner #tut-instruction-text {
    font-size: 19px !important;
    line-height: 1.5 !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #log-panel.collapsed {
    height: 54px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #log-panel :is(.log-toggle, .log-toggle-btn) {
    flex: 0 0 52px !important;
    height: 52px !important;
    min-width: 280px !important;
    font-size: 15px !important;
    padding-inline: 36px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #log-panel.expanded {
    width: 720px !important;
    max-height: 460px !important;
    font-size: 16px !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #setup-screen > .subscribe-wrapper {
    transform: scale(1.52) !important;
    transform-origin: center center !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) .modal:not(#setup-screen):not(#core-modal) > :is(.modal-card, .tut-intro-card, .tut-modal-card, .confirm-card) {
    transform: scale(1.48) !important;
    transform-origin: center center !important;
  }
  html:not([data-phone-device='true']):not(#sk-z):not(#sc-1):not(#sc-f1):not(#sc-f2) body#top[data-page='play']:not(#sk-x) #core-modal > .core-chamber-card {
    transform: scale(1.45) !important;
    transform-origin: center center !important;
  }
}

/* UI Polish (2026-11-29): clear bottom team accent bar when die chip is highlighted/selected,
   hide legacy square ::after radar ring on desktop, keep modal container focus clean */
html:not(#sk-z):not(#sc-1) body:is(#sk-x, body):is(#sk-y, body) #game-screen .die-chip:is(.selected, .pending, .chip-pending, .tut-beacon-glow):not(#sc-c1):not(#sc-c2):not(#sc-c3):not(#sc-c4) {
  --acc: transparent !important;
}
html[data-phone-device='true']:not(#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm#rm) body.phone-match-active .side-stash .die-chip:is(.selected, .pending, .chip-pending, .tut-beacon-glow) {
  --acc: transparent !important;
}
.modal:focus,
.modal-overlay:focus {
  outline: none !important;
}
