/* styles/main.css */
/* Eriband Arena — the interface (Legacy's, with styles/legacy.css; Neon is styles/neon.css on top of it).
   Dark warm backgrounds, copper pixel frames (generated at startup as
   border images: --frame-*), teal accents, red primary buttons.
   Fonts: Press Start 2P (titles), Pixelify Sans (text), Micro 5 (numbers). */

@font-face { font-family: 'Press Start 2P'; src: url('../assets/fonts/press-start-2p.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Pixelify Sans'; src: url('../assets/fonts/pixelify-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pixelify Sans'; src: url('../assets/fonts/pixelify-sans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Micro 5'; src: url('../assets/fonts/micro-5.woff2') format('woff2'); font-display: swap; }
/* Pixelify Sans draws its 2 and 3 almost like an 8 at small sizes: digits in text come from Micro 5 (the
   game's number font), scaled to the letters' height. Only the digits: U+0030-0039. */
@font-face { font-family: 'Eriband Digits'; src: url('../assets/fonts/micro-5.woff2') format('woff2'); font-display: swap; unicode-range: U+0030-0039; size-adjust: 150%; }

/* (Pixelify Sans draws "fi" as one letter that reads as an A: "first" became "Arst"; !important: the font shorthand would reset it) */
*, *::before, *::after { font-variant-ligatures: none !important; }

:root {
  --bg: #120e16;
  --bg-2: #1a141f;
  --panel: #231c29;
  --panel-2: #2c2433;
  --panel-3: #362c3e;
  --inset: #17121b;
  --line: #4b3a3c;
  --copper: #c8692e;
  --copper-hi: #f0a14a;
  --copper-dk: #7a3a1c;
  --teal: #3fe0b8;
  --teal-hi: #8ff5dc;
  --teal-dk: #1d8a72;
  --text: #ece3d6;
  --text-2: #c7b9a8;
  --muted: #8d7f72;
  --red: #b3262c;
  --red-hi: #e0484d;
  --red-dk: #6e1418;
  --gold: #f5c542;
  --good: #5fd068;
  --bad: #e5484d;
  --blue: #3b82f6;
  --blue-hi: #8cc0ff;
  --team-red: #e5484d;
  --team-red-hi: #ff9a9a;
  --rarity-common: #b8b0a4;
  --rarity-rare: #4f9dff;
  --rarity-epic: #b56cff;
  --rarity-legendary: #f5a623;
  --ui-scale: 1;
  --font-title: 'Press Start 2P', monospace;
  --font-text: 'Eriband Digits', 'Pixelify Sans', 'Trebuchet MS', sans-serif;
  --font-num: 'Micro 5', 'Pixelify Sans', monospace;
  /* the copper frames (render/frames.js draws them at startup) */
  --frame-panel: var(--fr-copper-panel, none);
  --frame-button: var(--fr-copper-button, none);
  --frame-button-red: var(--fr-copper-button-red, none);
  --frame-tab: var(--fr-copper-tab, none);
  --frame-inset: var(--fr-copper-inset, none);
  --frame-card: var(--fr-copper-card, none);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --gap: 12px;
  --radius: 0px;
  --fs-xs: calc(12px * var(--ui-scale));
  --fs-s: calc(14px * var(--ui-scale));
  --fs-m: calc(17px * var(--ui-scale));
  --fs-l: calc(21px * var(--ui-scale));
  --fs-xl: calc(28px * var(--ui-scale));
  --fs-title: calc(clamp(18px, 3.4vw, 34px) * var(--ui-scale));
}

/* An iPhone Home Screen app on iOS 26 with a page shorter than the screen (src/platform/ios-fit.js):
   the top inset is the missing height, the bottom one is 0 (the home bar sits on iOS's own strip).
   Only while the page runs under the status bar (env top > 0); when iOS put the page below a solid
   status bar instead (env top = 0), the usual insets stay. */
:root.ios-gap {
  --safe-t: max(env(safe-area-inset-top, 0px), min(var(--ios-top, 0px), env(safe-area-inset-top, 0px) * 100));
  --safe-b: max(0px, env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px) * 100);
}
:root.ios-gap, :root.ios-gap body { background: #1c1723; }
/* The real fix: iOS only gives an installed page the short viewport while the page is shorter than
   the screen, so the page asks for the screen's height (the status bar's height more than 100%);
   iOS then gives it the whole screen and the bottom bar reaches the edge. The min() keeps an opaque
   status bar (top inset 0) at 100%; everywhere else (Android, desktop, a Safari tab) it is 100%.
   (html's overflow is hidden: nothing scrolls by the extra height.) */
@media (display-mode: standalone), (display-mode: fullscreen) {
  html { min-height: min(100lvh, calc(100% + env(safe-area-inset-top, 0px))); }
}

/* Colour-blind friendly: Red turns orange */
:root.cb {
  --team-red: #f08a2b;
  --team-red-hi: #ffc58a;
  --red: #b5651d;
  --red-hi: #f08a2b;
}

* { box-sizing: border-box; }
:root { --avatar-bg: #2b2930; } /* behind a player's picture in its frame (dark grey: the banner doesn't show through) */

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-m);
  line-height: 1.3;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  overscroll-behavior: none;
}

body { position: fixed; inset: 0; }

input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }

#scene, #scene-bg, #scene-gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  z-index: 0;
}
#scene-bg { image-rendering: auto; } /* (the new art's painted background, under #scene: render/renderer.js) */
#scene-gl { pointer-events: none; } /* (the fight on the graphics card, over #scene: render/gl/stage.js) */
/* (an Ultimate's scene, between the arena's background and the board, for a moment: ui/screens/match.js ultScene) */
.ult-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: 50% 50% / cover no-repeat; }
.fx-ult-front.behind { position: fixed; z-index: 0; -webkit-mask-image: none; mask-image: none; } /* (behind the board with the scene: the board covers its middle) */

#app {
  position: fixed;
  inset: 0;
  z-index: 1;
  padding: var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l);
  overflow: hidden;
}

#layer-modal { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#layer-modal > * { pointer-events: auto; }

/* ------------------------------------------------------------------ boot */

#boot {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(ellipse at center, #2a1a14 0%, var(--bg) 70%);
  transition: opacity 0.4s;
}
#boot.gone { opacity: 0; pointer-events: none; }
.boot-spin { display: none; }
/* the art pack's logo over the words (shown once it has loaded) */
.boot-logo { display: none; width: min(560px, 86vw); height: auto; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.5)); }
#boot.has-logo .boot-logo { display: block; }
#boot.has-logo :is(.boot-title, .boot-sub) { display: none; }
.boot-title { font-family: var(--font-title); font-size: clamp(28px, 7vw, 64px); color: var(--copper-hi); text-shadow: 0 4px 0 var(--copper-dk), 0 0 24px rgba(240, 161, 74, 0.35); letter-spacing: 2px; }
.boot-sub { font-family: var(--font-title); font-size: clamp(12px, 2.4vw, 20px); color: var(--teal); letter-spacing: 8px; }
.boot-bar { width: min(260px, 60vw); height: 10px; background: var(--inset); border: 2px solid var(--copper-dk); }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width 0.2s; }
/* the v3 kit's loading sigil under the bar, turning slowly while the game loads (your art and your word, 21 Nov) */
.boot-sigil { width: 64px; height: 64px; margin-top: 6px; animation: boot-turn 6s linear infinite; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.45)); }
@keyframes boot-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .boot-sigil { animation: none; } }
#boot.crashed .boot-sigil { display: none; }
#boot:has(.boot-sigil) .boot-spin { display: none !important; } /* (the sigil is the loading mark now: not the coin as well) */
/* After a start that died (ui/crash-screen.js): its last steps over the loading screen, before anything heavy loads */
#boot.crashed { justify-content: flex-start; overflow-y: auto; padding: calc(var(--safe-t, 0px) + 16px) 16px calc(var(--safe-b, 0px) + 16px); }
#boot.crashed :is(.boot-bar, .boot-spin) { display: none; }
#boot.crashed .boot-logo { width: min(300px, 62vw); }
.boot-crash { box-sizing: border-box; width: min(560px, 100%); padding: 16px 18px; background: rgba(12, 8, 16, 0.94); border: 1px solid rgba(245, 200, 98, 0.4); border-radius: 12px; color: #f0e6d8; font: 14px/1.45 system-ui, sans-serif; }
.boot-crash h2 { margin: 0 0 6px; font: 700 19px/1.2 var(--font-title, Georgia, serif); color: var(--gold, #f5c862); }
.boot-crash p { margin: 0 0 10px; }
.bc-steps { margin: 0 0 10px; padding-left: 26px; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; color: #e2d6c2; overflow-wrap: anywhere; }
.bc-meta, .bc-sent { font-size: 12px; color: #b3a893; overflow-wrap: anywhere; }
.bc-sent.ok { color: #86dba0; }
.bc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.bc-actions .btn { min-height: 44px; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; color: var(--text); }

/* ------------------------------------------------------------- screens */

.screen {
  position: absolute;
  inset: var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: screen-in 0.22s ease-out;
}
.screen.scroll { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
@keyframes screen-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.screen-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-height: 56px;
}
.screen-head .grow { flex: 1; }
.screen-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 6px 14px 18px; -webkit-overflow-scrolling: touch; }
.screen-foot { display: flex; gap: 10px; justify-content: center; padding: 10px 14px 14px; flex-wrap: wrap; }

.vignette::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  z-index: -1;
}

/* ---------------------------------------------------------- typography */

.title {
  font-family: var(--font-title);
  font-size: var(--fs-title);
  color: var(--text);
  letter-spacing: 1px;
  text-shadow: 0 3px 0 #000, 0 0 18px rgba(0, 0, 0, 0.6);
  margin: 0;
  line-height: 1.25;
}
.title.teal { color: var(--teal); text-shadow: 0 3px 0 var(--teal-dk), 0 0 16px rgba(63, 224, 184, 0.3); }
.title.copper { color: var(--copper-hi); text-shadow: 0 3px 0 var(--copper-dk); }
.h2 { font-family: var(--font-title); font-size: calc(13px * var(--ui-scale)); color: var(--teal); letter-spacing: 1px; margin: 0 0 8px; }
.h3 { font-weight: 700; font-size: var(--fs-m); margin: 0 0 6px; color: var(--text); }
.num { font-family: var(--font-num); font-size: 1.35em; line-height: 0.9; letter-spacing: 0.5px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-s); }
.xs { font-size: var(--fs-xs); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.gold { color: var(--gold); }
.teal { color: var(--teal); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rarity-common { color: var(--rarity-common); }
.rarity-rare { color: var(--rarity-rare); }
.rarity-epic { color: var(--rarity-epic); }
.rarity-legendary { color: var(--rarity-legendary); }
.rarity-normal { color: var(--rarity-common); }

/* -------------------------------------------------------------- layout */

.row { display: flex; align-items: center; gap: var(--gap); }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.row.between { justify-content: space-between; }
.row.center { justify-content: center; }
.col { display: flex; flex-direction: column; gap: var(--gap); }
.grow { flex: 1; min-width: 0; }
.gap-s { gap: 6px; }
.gap-l { gap: 20px; }
.grid { display: grid; gap: var(--gap); }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(calc(118px * var(--ui-scale)), 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hidden { display: none !important; }
.mt { margin-top: var(--gap); }
.mb { margin-bottom: var(--gap); }
.max { max-width: 1100px; margin-left: auto; margin-right: auto; width: 100%; }
.max-s { max-width: 640px; margin-left: auto; margin-right: auto; width: 100%; }
.max-m { max-width: 860px; margin-left: auto; margin-right: auto; width: 100%; }

/* --------------------------------------------------------------- panels */

.panel {
  position: relative;
  background: var(--panel);
  border: 12px solid var(--copper-dk);
  border-image: var(--frame-panel) 12 fill / 12px / 0 stretch;
  padding: 10px 12px;
  image-rendering: pixelated;
  box-shadow: var(--panel-shadow, none);
}
.panel.dark { background: var(--bg-2); }
.panel.flat { border-width: 2px; border-image: none; border-color: var(--line); background: var(--panel-2); }
.panel.inset {
  background: var(--inset);
  border: 6px solid #0c090e;
  border-image: var(--frame-inset) 6 fill / 6px / 0 stretch;
}
.panel > .tab {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 20px 5px;
  white-space: nowrap;
  font-weight: 700;
  font-size: var(--fs-s);
  color: var(--text);
  background: var(--panel-2);
  border: 9px solid var(--copper-dk);
  border-image: var(--frame-tab) 9 fill / 9px / 0 stretch;
  z-index: 1;
}
.panel.has-tab { margin-top: 22px; padding-top: 18px; }

.section { margin: 18px 0 8px; }

/* -------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 18px;
  font-family: var(--font-button, var(--font-text));
  font-weight: 700;
  font-size: var(--fs-m);
  letter-spacing: var(--button-spacing, normal);
  color: var(--text);
  background: var(--panel-2);
  border: 9px solid var(--copper-dk);
  border-image: var(--frame-button) 9 fill / 9px / 0 stretch;
  cursor: pointer;
  image-rendering: pixelated;
  outline: none;
  box-shadow: var(--button-shadow, none);
  text-shadow: var(--button-text-shadow, 0 2px 0 rgba(0, 0, 0, 0.6));
  transition: transform 0.06s, filter 0.12s;
  -webkit-appearance: none;
  appearance: none;
}
.btn > * { pointer-events: none; }
.btn:hover:not(:disabled) { filter: brightness(1.18); }
.btn:active:not(:disabled), .btn.pressed { transform: translateY(2px); filter: brightness(0.92); }
.btn:disabled, .btn.disabled { filter: grayscale(0.7) brightness(0.6); cursor: not-allowed; }
.btn.primary { border-image-source: var(--frame-button-red); color: var(--primary-text, #ffe9d6); text-shadow: var(--primary-text-shadow, 0 2px 0 rgba(0, 0, 0, 0.6)); }
.btn.teal { color: var(--teal-hi); }
.btn.small { min-height: 34px; padding: 2px 10px; font-size: var(--fs-s); }
.btn.big { min-height: 58px; padding: 8px 28px; font-size: var(--fs-l); }
.btn.block { width: 100%; }
.btn.icon { padding: 4px; min-width: 44px; }
.btn.icon.small { min-width: 34px; }
.btn img, .btn canvas { image-rendering: pixelated; }
.btn .kbd { margin-left: 4px; }
.btn.active { color: var(--teal); filter: brightness(1.2); }
.btn.selected { box-shadow: 0 0 0 2px var(--teal), 0 0 14px rgba(63, 224, 184, 0.45); }
/* the admin panel's preview is on in this browser */
.tuning-badge { position: fixed; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 8px; padding: 4px 8px; background: #3a1d08; border: 2px solid var(--gold); color: var(--gold); box-shadow: 0 2px 0 #000; }
/* a mode the admin panel closed: shown, not enterable (ui/modes.js) */
.btn.mode-closed { opacity: 0.45; filter: grayscale(0.6); }
/* the background chooser (menu > castle button, Settings > Display) */

/* A focus ring for keyboard and controller only */
.nav-visible :focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  box-shadow: 0 0 16px rgba(63, 224, 184, 0.55);
  z-index: 2;
}
:focus { outline: none; }

.link { color: var(--teal); background: none; border: none; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* Key and button hints */
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-family: var(--font-num);
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  background: #0d0a10;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
}
.kbd.pad { border-radius: 50%; min-width: 22px; height: 22px; padding: 0; border-bottom-width: 1px; }
.kbd.pad.a { background: #1f6f3f; } .kbd.pad.b { background: #8a1f22; } .kbd.pad.x { background: #1e4fa8; } .kbd.pad.y { background: #a8861e; }
.touch .kbd { display: none; }

/* ---------------------------------------------------------------- tabs */

.tabs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.tabs .btn { min-height: 38px; font-size: var(--fs-s); padding: 2px 12px; }
.tabs .btn.on { color: var(--teal); filter: brightness(1.25); }
.tabs .btn.on::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -6px; height: 3px; background: var(--teal); }

/* ------------------------------------------------------------ currencies */

.currencies { display: flex; gap: 8px; align-items: center; }
.cur {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px 2px 4px;
  background: rgba(10, 7, 12, 0.75);
  border: 2px solid var(--line);
  font-family: var(--font-num);
  font-size: 22px;
  line-height: 1;
  min-height: 30px;
}
.cur img { width: 20px; height: 20px; image-rendering: pixelated; }
.icon-img { image-rendering: pixelated; vertical-align: middle; }
canvas.icon-img.painted { image-rendering: auto; } /* (an item's painted picture, shown big: render/pixel.js) */

/* ------------------------------------------------------------- cards */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px 8px;
  background: var(--panel-2);
  border: 9px solid var(--copper-dk);
  border-image: var(--frame-card) 9 fill / 9px / 0 stretch;
  cursor: pointer;
  text-align: center;
  color: var(--text);
  font: inherit;
  min-width: 0;
  image-rendering: pixelated;
}
.card:hover { filter: brightness(1.15); }
.card .portrait { width: 64px; height: 64px; image-rendering: pixelated; }
/* the new art (render/art.js): a portrait drawn at the screen's density takes its size from --pw, unless a
   rule sizes portraits (:where() weighs nothing); an icon <img> of it is scaled smoothly */
:where(canvas.hd) { width: var(--pw); height: auto; }
img.icon-img[src^="assets/art/"] { image-rendering: auto; }
.card .name { font-weight: 700; font-size: var(--fs-s); max-width: 100%; }
.card .sub { font-size: var(--fs-xs); color: var(--muted); }
.card.locked { filter: grayscale(1) brightness(0.55); }
.card.picked { box-shadow: 0 0 0 3px var(--blue), 0 0 12px rgba(59, 130, 246, 0.6); }
/* chosen (a Gauntlet's or a patrol's team, the skin or mascot worn...): a glow, a lift and a tick */
.card.selected { box-shadow: 0 0 0 3px var(--teal), 0 0 16px rgba(63, 224, 184, 0.55); transform: translateY(-2px); background: #2b3a3a; }
.card.selected::after {
  content: '✓';
  position: absolute; right: 4px; bottom: 4px;
  width: 20px; height: 20px; display: grid; place-items: center;
  background: var(--teal); color: #10201c; font-weight: 700; font-size: 13px; line-height: 1;
  border: 2px solid #0b1412; pointer-events: none;
}
/* a team grid with every place taken: the champions left out step back */
.grid.cards.full .card:not(.selected) { opacity: 0.5; filter: grayscale(0.6); }
.grid.cards.full .card:not(.selected):hover { opacity: 0.8; }
.card.picked.red { box-shadow: 0 0 0 3px var(--team-red), 0 0 12px rgba(229, 72, 77, 0.6); }
.card.banned::after {
  content: '';
  position: absolute;
  inset: 6px;
  background:
    linear-gradient(45deg, transparent 46%, var(--bad) 46%, var(--bad) 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--bad) 46%, var(--bad) 54%, transparent 54%);
  opacity: 0.85;
  pointer-events: none;
}
.card .badge-tl, .card .badge-tr { position: absolute; top: 2px; font-size: var(--fs-xs); }
.card .badge-tl { left: 4px; }
.card .badge-tr { right: 4px; }
.card.holo::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 120, 220, 0.25) 35%, rgba(120, 255, 240, 0.25) 50%, rgba(255, 245, 120, 0.25) 65%, transparent 80%);
  background-size: 250% 100%;
  animation: holo 3.5s linear infinite;
  mix-blend-mode: screen;
}
@keyframes holo { from { background-position: 100% 0; } to { background-position: -150% 0; } }

.tier { font-family: var(--font-title); font-size: 9px; color: var(--gold); text-shadow: 0 1px 0 #000; }
.stars { color: var(--gold); letter-spacing: -1px; font-size: var(--fs-xs); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.chip.order { border-color: #d9b45a; color: #f3d58a; }
.chip.wild { border-color: #5fbf4a; color: #9be38a; }
.chip.arcane { border-color: #8a6bff; color: #c3b0ff; }
.chip.shadow { border-color: #8a4b9a; color: #d39be0; }

/* ---------------------------------------------------------------- bars */

.bar {
  position: relative;
  height: 12px;
  background: #0b080d;
  border: 2px solid #000;
  box-shadow: inset 0 0 0 1px var(--copper-dk);
  overflow: hidden;
}
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teal); transition: width 0.25s; }
.bar.hp > i { background: linear-gradient(180deg, #7ff07a, #3fae46); }
.bar.hp.low > i { background: linear-gradient(180deg, #ff8a7a, #c8342c); }
.bar.energy > i { background: linear-gradient(180deg, #ffe066, #e0a020); }
.bar.xp > i { background: linear-gradient(180deg, var(--teal-hi), var(--teal-dk)); }
.bar > b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-num); font-size: 16px; line-height: 1; color: #fff; text-shadow: 0 1px 0 #000; font-weight: normal; }
.cb .bar.hp.low > i { background: repeating-linear-gradient(45deg, #c8342c 0 4px, #8a1f22 4px 8px); }
/* the shield after the HP (pale blue), never striped */
.bar.hp > i.sh, .cb .bar.hp > i.sh { background: linear-gradient(180deg, #ffffff, #9fcfff); }

/* --------------------------------------------------------------- modal */

.modal-back {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, var(--safe-t)) max(12px, var(--safe-r)) max(12px, var(--safe-b)) max(12px, var(--safe-l));
  background: rgba(5, 3, 7, 0.72);
  animation: fade-in 0.15s ease-out;
}
.modal {
  width: min(560px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  animation: pop-in 0.18s ease-out;
}
.modal.wide { width: min(900px, 100%); }
.modal .modal-body { overflow-y: auto; min-height: 0; padding: 4px 2px; }
.modal .modal-foot { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding-top: 12px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- toasts */

#toasts {
  position: fixed;
  z-index: 40;
  left: 50%;
  top: calc(var(--safe-t) + 10px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  width: min(92vw, 480px);
}
.toast {
  padding: 8px 16px;
  background: var(--panel);
  border: 9px solid var(--copper-dk);
  border-image: var(--frame-tab) 9 fill / 9px / 0 stretch;
  font-size: var(--fs-s);
  text-align: center;
  animation: toast 3s ease forwards;
}
/* (under the top bar where there is one: it's drawn over them, so a notice there was hidden, its top lines or all of it) */
html.hub-bar-on #toasts { top: calc(var(--safe-t) + var(--hub-bar-h) + 8px); }
.toast.good { color: var(--good); }
.toast.bad { color: var(--bad); }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px); } 8% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }

/* ------------------------------------------------------------- tooltip */

#tooltip {
  position: fixed;
  z-index: 45;
  max-width: min(340px, 90vw);
  padding: 8px 10px;
  background: rgba(20, 15, 24, 0.97);
  border: 8px solid var(--copper-dk);
  border-image: var(--frame-panel) 12 fill / 8px / 0 stretch;
  font-size: var(--fs-s);
  pointer-events: none;
}
#tooltip .tt-title { font-weight: 700; color: var(--teal); margin-bottom: 2px; }
/* ------------------------------------------------------------- laid-out tips (your word, 21 Nov: "more aesthetic and
   visual, easy to read and understand, with icons, separations"): a head, rows with their icon, a foot; the type's
   (ui/widgets.js typeTip) and the mastery's (ui/champ-halves.js masteryTip). Every theme; Neon's colours below. */
.rt { width: 260px; max-width: 80vw; display: flex; flex-direction: column; gap: 8px; white-space: normal; }
.rt-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.rt-head small { font-size: 12px; opacity: 0.75; }
.rt-title { font-weight: 700; font-size: 15px; }
.rt-chip { flex: none; padding: 3px 10px; font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 4px; }
.rt-rows { display: flex; flex-direction: column; gap: 6px; }
.rt-row { display: grid; grid-template-columns: 16px 30px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); border-left: 3px solid currentColor; }
.rt-row.bad { color: #e0505e; }
.rt-row.good { color: #4fae5a; }
.rt-sign { font-weight: 800; font-size: 18px; text-align: center; }
.rt-ic { display: grid; place-items: center; }
.rt-ic img { image-rendering: pixelated; }
.rt-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rt-tx b { font-size: 14px; color: var(--text, inherit); }
.rt-tx small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.rt-val { font-weight: 800; font-size: 17px; }
.rt-foot { display: flex; align-items: center; gap: 6px; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; opacity: 0.85; }
.rt-stars { display: flex; justify-content: space-between; gap: 2px; padding: 2px 4px; }
.rt-stars span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rt-stars i { font-style: normal; font-size: 22px; line-height: 1; color: rgba(255, 255, 255, 0.18); }
.rt-stars span.on i { color: #e7b94e; text-shadow: 0 0 8px rgba(231, 185, 78, 0.55); }
.rt-stars span.next i { color: rgba(231, 185, 78, 0.45); }
.rt-stars em { width: 7px; height: 7px; transform: rotate(45deg); }
.rt-stars span.pt em { background: rgba(176, 112, 255, 0.35); }
.rt-stars span.pt.on em { background: #b67cff; box-shadow: 0 0 6px #a060ff; }
.rt-bar { display: flex; align-items: center; gap: 8px; }
.rt-bar span { flex: 1; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.rt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c08a2e, #f0cd78); }
.rt-bar small { flex: none; font-size: 12px; font-variant-numeric: tabular-nums; opacity: 0.85; }
.rt-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rt-next > small { font-size: 12px; opacity: 0.75; margin-right: 2px; }
.rt-get { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border-radius: 4px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, 0.06); }
.rt-get i { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; font-style: normal; font-size: 11px; font-weight: 800; }
.rt-get.pt { color: #c9a0ff; }
.rt-get.pt i.gem { background: url(../assets/art/ui-v3/ui/card/skillpoint.webp) 50% 50% / contain no-repeat; image-rendering: pixelated; }
.rt-get.tier { color: #f0cd78; }
.rt-get.tier i { border: 1px solid currentColor; border-radius: 3px; }
.rt-get.story { color: #9fd4ff; }
/* (the Legacy parchment: darker lines and soft fills) */
:root[data-theme='legacy'] .rt-head, :root[data-theme='legacy'] .rt-foot { border-color: rgba(59, 36, 20, 0.25); }
:root[data-theme='legacy'] :is(.rt-row, .rt-get) { background: rgba(59, 36, 20, 0.08); }
:root[data-theme='legacy'] .rt-stars i, :root[data-theme='legacy'] .rt-bar span { color: rgba(59, 36, 20, 0.25); }
:root[data-theme='legacy'] .rt-bar span { background: rgba(59, 36, 20, 0.15); }
/* (Neon) */
html[data-theme='neon'] .rt-head { border-color: var(--line-2); }
html[data-theme='neon'] .rt-foot { border-color: var(--line-2); color: #a79e90; opacity: 1; }
html[data-theme='neon'] .rt-title { color: var(--gold); font-family: var(--nx-ui); }
html[data-theme='neon'] .rt-chip { color: var(--gold); background: rgba(209, 171, 91, 0.1); }
html[data-theme='neon'] .rt-head small { color: #a79e90; opacity: 1; }
html[data-theme='neon'] .rt-row.bad { color: var(--bad); background: rgba(255, 90, 110, 0.08); }
html[data-theme='neon'] .rt-row.good { color: var(--good); background: rgba(114, 222, 108, 0.07); }
html[data-theme='neon'] .rt-tx b { color: #fff6dc; }
html[data-theme='neon'] #tooltip:has(> .rt) { background: linear-gradient(180deg, #221c2c, #120e18); } /* (opaque: nothing under it shows through) */

/* --------------------------------------------------------------- forms */

.input {
  width: 100%;
  min-height: 42px;
  padding: 6px 10px;
  font: inherit;
  color: var(--text);
  background: var(--inset);
  border: 2px solid var(--line);
  outline: none;
}
.input:focus { border-color: var(--teal); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 4px 0; cursor: pointer; }
.switch { position: relative; width: 46px; height: 24px; background: var(--inset); border: 2px solid var(--line); flex: none; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: var(--muted); transition: left 0.12s, background 0.12s; }
.switch.on { border-color: var(--teal-dk); }
.switch.on::after { left: 24px; background: var(--teal); }
input[type='range'] { width: 100%; accent-color: var(--teal); min-height: 28px; }
select.input { -webkit-appearance: none; appearance: none; }
/* New passwords (ui/password.js): the show / hide eye, the strength bar, the repeat note */
.pw-wrap { position: relative; display: flex; }
.pw-wrap .input { flex: 1; min-width: 0; padding-right: 44px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 0; width: 34px; height: 30px; padding: 0; opacity: 0.75; }
.pw-eye:hover, .pw-eye.on { opacity: 1; }
.pw-eye.on::after { content: ''; position: absolute; left: 7px; right: 7px; top: 50%; height: 2px; background: var(--bad); transform: rotate(-35deg); box-shadow: 0 0 0 1px #000; }
.pw-meter { display: flex; flex-direction: column; gap: 4px; }
.pw-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pw-bars i { height: 6px; background: var(--inset); border: 1px solid #000; }
.pw-meter.lv0 .pw-bars i.on { background: var(--bad); }
.pw-meter.lv1 .pw-bars i.on { background: var(--copper-hi); }
.pw-meter.lv2 .pw-bars i.on { background: var(--gold); }
.pw-meter.lv3 .pw-bars i.on { background: var(--good); }
.pw-meter .warn { color: var(--copper-hi); }

/* ------------------------------------------------------------- lists */

.list { display: flex; flex-direction: column; gap: 6px; }
.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--panel-2);
  border: 2px solid var(--line);
  min-height: 48px;
  color: var(--text);
  font: inherit;
  text-align: left;
  width: 100%;
}
button.list-item { cursor: pointer; }
button.list-item:hover { border-color: var(--copper); }
.list-item.done { opacity: 0.6; }

/* ------------------------------------------------------- menu (title) */

.menu-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 12px; min-height: 0; }
.menu-buttons { display: grid; grid-template-columns: repeat(2, minmax(150px, 230px)); gap: 10px; }
.menu-buttons .btn { width: 100%; }
.menu-buttons .btn.wide { grid-column: span 2; }
.menu-corner { position: absolute; display: flex; gap: 8px; align-items: center; }
.menu-corner.tl { top: 10px; left: 12px; }
.menu-corner.tr { top: 10px; right: 12px; }
.menu-corner.bl { bottom: 10px; left: 12px; }
.menu-corner.br { bottom: 10px; right: 12px; }
/* phones: the online box shrinks to one line beside the version row */
@media (max-width: 700px) {
  .menu-corner.br { max-width: calc(100vw - 210px); }
  /* the top row: currencies and the icon buttons, tighter, wrapping rather than running off the screen */
  .menu-corner.tr { left: 8px; right: 8px; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
  .menu-corner.tr .currencies { gap: 4px; }
  .menu-corner.tr .cur { padding: 2px 6px 2px 3px; }
  .menu-corner.tr .btn.icon { min-width: 40px; min-height: 40px; }
}
.version { font-family: var(--font-num); font-size: 18px; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 6px currentColor; vertical-align: middle; }
.dot.on { background: var(--good); color: var(--good); }
.dot.off { background: var(--bad); color: var(--bad); }

/* ------------------------------------------------------- playercard */

.playercard { position: relative; width: 100%; max-width: 520px; aspect-ratio: 4 / 1; image-rendering: pixelated; overflow: hidden; border: 3px solid #000; box-shadow: 0 0 0 2px var(--copper-dk); }
.playercard .card-bg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
/* a new-art picture still on its way (render/pixel.js later): a faint pulse, then it fades in */
canvas.art-wait { background: rgba(255, 255, 255, 0.04); animation: art-wait 1.2s ease-in-out infinite; }
canvas.art-in { animation: art-in 0.25s ease-out; }
@keyframes art-wait { 50% { background: rgba(255, 255, 255, 0.09); } }
@keyframes art-in { from { opacity: 0; } }
/* the art pack's emotes, medals, frames, chests, eggs (render/art.js extraPic): still, or a row of frames stepped through */
.art-pic { display: inline-block; flex: none; vertical-align: middle; object-fit: contain; image-rendering: auto !important; } /* (shown smaller than painted: smoothed, whatever the spot's pixelated rule) */
.art-sprite { aspect-ratio: 1; background-repeat: no-repeat; background-position: 0 0; animation-name: art-sprite; animation-iteration-count: infinite; }
@keyframes art-sprite { to { background-position-x: 100%; } }
/* the new art's small marks: a faction's crest in its chip, a damage type's icon, an arena's thumbnail in the
   setup's picker, the week's rule's badge */
.crest-pic, .dt-pic { display: inline-block; vertical-align: -3px; margin-right: 3px; object-fit: contain; filter: drop-shadow(0 1px 0 #000); }
.list-item > .opt-thumb { flex: none; width: 96px; height: 54px; object-fit: cover; border: 2px solid #000; border-radius: 4px; margin-right: 10px; }
.h3-mod { display: flex; align-items: center; gap: 10px; }
.h3-mod > .mod-pic { flex: none; filter: drop-shadow(0 2px 0 #000); }
/* a champion's collection card in the new art (widgets.js collectedCard): the portrait in the frame's window
   (x 32..352, y 40..360 of 384x512), the name on its plate, the chains over a locked one */
.cc-card { position: relative; flex: none; aspect-ratio: 384 / 512; }
.cc-card > .cc-win { position: absolute; left: 8.3%; top: 7.8%; width: 83.4%; height: 62.5%; display: grid; place-items: end center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #3a3048, #120e17 80%); }
.cc-card > .cc-win > canvas { width: 96% !important; height: auto !important; }
.cc-card > .cc-frame, .cc-card > .cc-lock { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cc-card > .cc-name { position: absolute; left: 12%; right: 12%; top: 76%; height: 15%; display: grid; place-items: center; text-align: center;
  font-family: var(--font-title); color: #f6ecd8; text-shadow: 0 2px 0 #000; }
.cc-card > .cc-foil { position: absolute; inset: 0; width: 100% !important; height: 100% !important; mix-blend-mode: screen; opacity: 0.75; pointer-events: none; }
.cc-card.locked > .cc-win { filter: grayscale(1) brightness(0.45); }
/* an item in its slot frame (widgets.js framedItem) */
.if-slot { position: relative; display: inline-grid; place-items: center; flex: none; }
.if-slot > .if-frame { position: absolute; inset: 0; width: 100% !important; height: 100% !important; pointer-events: none; }
/* the shop's openings in the new art (screens/shop.js): the chest bursting, the egg hatching, a card's flip glow
   over it (gone after a second) and a Holo card's rainbow sheen */
.shop-open { margin: 0 auto; }
/* A chest's cards (ui/screens/shop.js revealChest): dealt face down, then each turns over; the better the card, the more it does */
.cr-card { --cr: var(--rarity-common, #a9afb7); animation: cr-deal 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.cr-rare { --cr: var(--rarity-rare, #4fa8ff); }
.cr-epic { --cr: var(--rarity-epic, #b770ff); }
.cr-legendary { --cr: var(--rarity-legendary, #ffb52f); }
.cr-holo { --cr: #ff9ae0; }
.cr-slot { position: relative; isolation: isolate; perspective: 800px; align-self: center; }
.cr-flip { position: relative; transform-style: preserve-3d; transition: transform 0.42s cubic-bezier(0.3, 0.7, 0.3, 1.15); }
.cr-face, .cr-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cr-back { position: absolute; inset: 0; transform: rotateY(180deg); background-size: 1400% 100%; background-position: 0 0; background-repeat: no-repeat; image-rendering: pixelated; }
.cr-down .cr-flip { transform: rotateY(180deg); }
/* (what's under the card stays hidden until it turns over; its place is kept, so nothing moves) */
.cr-card > :not(.cr-slot) { transition: opacity 0.25s; }
.cr-down > :not(.cr-slot), .cr-hidden > * { opacity: 0; }
.cr-hidden { animation: none; opacity: 0; }
.cr-up { opacity: 1; }
.card.cr-hidden.cr-up, .card:not(.cr-card).cr-up { animation: cr-deal 0.32s ease-out both; }
/* the glow behind it before it turns over */
.cr-tease .cr-slot::after { content: ''; position: absolute; inset: -5px; z-index: -1; border-radius: 10px; background: var(--cr); filter: blur(9px); animation: cr-tease 0.45s ease-in-out infinite alternate; }
.cr-tease.cr-legendary .cr-flip { animation: cr-rattle 0.09s linear infinite; }
/* the flash as it lands, and the light it keeps */
.cr-hit .cr-slot::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 6px; background: #fff; pointer-events: none; animation: cr-flash 0.34s ease-out both; }
.cr-hit .cr-slot::after { content: ''; position: absolute; inset: -3px; z-index: -1; border-radius: 8px; background: var(--cr); filter: blur(6px); opacity: 0; animation: cr-burn 0.7s ease-out both; }
.cr-hit.cr-normal .cr-slot::after { opacity: 0; animation: none; }
.cr-hit.cr-rare .cr-flip, .cr-hit.cr-epic .cr-flip { animation: cr-pop 0.34s cubic-bezier(0.2, 1.4, 0.4, 1); }
.cr-hit.cr-legendary .cr-flip, .cr-hit.cr-holo .cr-flip { animation: cr-pop-big 0.5s cubic-bezier(0.2, 1.5, 0.4, 1); }
/* a legendary: turning rays behind it */
.cr-hit.cr-legendary .cr-slot::after {
  inset: -46%; border-radius: 50%; filter: none; animation: cr-rays-in 0.5s ease-out both, cr-spin 7s linear infinite;
  background: repeating-conic-gradient(rgba(255, 214, 110, 0.55) 0 12deg, transparent 12deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 28%, transparent 68%); mask: radial-gradient(circle, #000 28%, transparent 68%);
}
.cr-shake { animation: cr-shake 0.42s linear; }
@keyframes cr-deal { from { opacity: 0; transform: translateY(-26px) scale(0.72); } to { opacity: 1; transform: none; } }
@keyframes cr-tease { from { opacity: 0.25; } to { opacity: 0.95; } }
@keyframes cr-rattle { 0% { transform: rotateY(180deg) translateX(-1px) rotate(-0.8deg); } 50% { transform: rotateY(180deg) translateX(1px) rotate(0.8deg); } 100% { transform: rotateY(180deg) translateX(-1px) rotate(-0.8deg); } }
@keyframes cr-flash { from { opacity: 0.9; } to { opacity: 0; } }
@keyframes cr-burn { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0.6; } }
@keyframes cr-pop { 50% { transform: scale(1.09); } }
@keyframes cr-pop-big { 45% { transform: scale(1.2); } }
@keyframes cr-rays-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cr-spin { to { transform: rotate(360deg); } }
@keyframes cr-shake { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, -1px); } 80% { transform: translate(2px, 1px); } }
@media (prefers-reduced-motion: reduce) { .cr-card, .cr-shake, .cr-tease .cr-flip, .cr-hit .cr-flip { animation: none !important; } }
/* the match's end in the new art (screens/results.js): the title on its ribbon, the grade's badge, the MVP's crown */
.res-ribbon { position: relative; display: grid; justify-items: center; width: 480px; max-width: 100%; }
.res-ribbon > .res-ribbon-art { grid-area: 1 / 1; width: 100% !important; height: auto !important; aspect-ratio: 10 / 3 !important; }
/* (the word on the ribbon's band: its middle 55 % down the victory's picture, 58 % the draw's, 45 % the defeat's, over its shield) */
.res-ribbon > .title { grid-area: 1 / 1; align-self: start; margin: 12.75% 0 0; padding: 0 20%; font-size: clamp(18px, 5vw, 30px) !important; line-height: 1.2;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; box-sizing: border-box; color: #fff6dc; text-shadow: 0 3px 0 #000, 0 0 10px rgba(0, 0, 0, 0.8); z-index: 1; }
.res-ribbon.draw > .title { margin-top: 13.6%; color: #2a1e14; text-shadow: 0 2px 0 rgba(255, 246, 220, 0.6); }
.res-ribbon.defeat > .title { margin-top: 9.75%; }
.res-grade-art { margin: 4px auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.5)); }
.res-mvp { position: relative; display: inline-block; padding-top: 18px; }
.res-mvp > .res-mvp-crown { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); z-index: 1; }
/* the new art's calling cards (render/banners.js): painted pictures, scaled smoothly whatever the rule above them
   says; an animated card whose picture stands still glints */
img.card-art { object-fit: cover; image-rendering: auto !important; }
img.card-glint { animation: card-glint 3.2s ease-in-out infinite; }
@keyframes card-glint { 0%, 100% { filter: brightness(1) saturate(1); } 50% { filter: brightness(1.18) saturate(1.15); } }
.pf-callcard.locked img.card-glint { animation: none; }
@media (prefers-reduced-motion: reduce) { img.card-glint { animation: none; } }
.playercard .pc-emblem { position: absolute; left: 2.5%; top: 10%; height: 80%; aspect-ratio: 1; image-rendering: pixelated; filter: drop-shadow(0 2px 0 #000); }
.playercard .pc-text { position: absolute; left: 25%; right: 14%; top: 14%; bottom: 14%; display: flex; flex-direction: column; justify-content: center; text-shadow: 0 2px 0 #000, 0 0 6px #000; }
.playercard .pc-name { font-family: var(--font-title); font-size: clamp(10px, 2.4vw, 17px); color: #fff; }
.playercard .pc-clan { color: var(--gold); margin-right: 6px; }
.playercard .pc-sub { font-size: var(--fs-s); color: var(--text-2); margin-top: 4px; }
.playercard .pc-rank { position: absolute; right: 2.5%; top: 12%; height: 76%; aspect-ratio: 1; image-rendering: pixelated; }

/* --------------------------------------------------------- battle HUD */

.battle { position: absolute; inset: 0; }
.battle .hud-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 6px 10px; pointer-events: none; }
.battle .hud-top > * { pointer-events: auto; }
.battle .turn-banner { text-align: center; }
.battle .turn-banner .t { font-family: var(--font-title); font-size: calc(11px * var(--ui-scale)); color: var(--text); text-shadow: 0 2px 0 #000; }
.battle .timer { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; font-family: var(--font-num); font-size: 30px; line-height: 1; color: var(--text); text-shadow: 0 2px 0 #000; }
.battle .timer.idle { visibility: hidden; }
.battle .timer.low .timer-n { color: var(--bad); animation: blink 0.5s steps(2) infinite; }
/* the time left, draining live: green, then gold, then red; framed in the colour of the side whose turn it is */
.battle .timer-bar { width: 64px; height: 8px; background: #120d14; border: 2px solid var(--blue-hi); box-shadow: 0 2px 0 #000; overflow: hidden; }
.battle .timer.red .timer-bar { border-color: var(--team-red-hi); }
.battle .timer-bar i { display: block; height: 100%; width: 100%; background: var(--good); transition: width 0.1s linear, background-color 0.3s; }
.battle .timer[data-level='mid'] .timer-bar i { background: var(--gold); }
.battle .timer[data-level='low'] .timer-bar i { background: var(--bad); }
@keyframes blink { 50% { opacity: 0.4; } }
.cells { position: absolute; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); z-index: 2; }
.cell-btn { position: relative; background: transparent; border: none; padding: 0; margin: 0; cursor: pointer; outline: none; touch-action: none; }
.cell-btn:disabled { cursor: default; }
.nav-visible .cell-btn:focus-visible { outline: none; box-shadow: none; }
/* The rosters (as in the old Tic Tac Tactics): a panel per side beside the board, glowing in its team's
   colour while it acts, dimmed while it waits; a head (mark, name, who plays it, the turn pill) and a row
   per hero (portrait, name, factions, tier, a note, HP and energy, the HP number and its shield, an "i") */
.roster { position: absolute; display: flex; flex-direction: column; gap: 5px; z-index: 3; overflow-y: auto; overflow-x: visible; }
.roster.left { left: 8px; }
.roster.right { right: 8px; }
.battle:not(.narrow) .roster { padding: 8px; background: rgba(20, 15, 24, 0.9); border: 2px solid #000; border-top: 3px solid var(--line); box-shadow: inset 0 0 0 1px var(--line); opacity: 0.86; transition: opacity 0.2s, box-shadow 0.2s; }
.battle:not(.narrow) .roster.p0 { border-top-color: var(--blue); }
.battle:not(.narrow) .roster.p1 { border-top-color: var(--team-red); }
.battle:not(.narrow) .roster.active { opacity: 1; }
.battle:not(.narrow) .roster.p0.active { box-shadow: inset 0 0 0 1px rgba(76, 134, 240, 0.55), 0 0 24px rgba(76, 134, 240, 0.35); }
.battle:not(.narrow) .roster.p1.active { box-shadow: inset 0 0 0 1px rgba(224, 74, 62, 0.55), 0 0 24px rgba(224, 74, 62, 0.35); }
.battle:not(.narrow) .roster.mine.p0 { background: rgba(25, 38, 62, 0.92); }
.battle:not(.narrow) .roster.mine.p1 { background: rgba(62, 31, 25, 0.92); }
.roster-head { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; }
.rh-mark { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; font-weight: 700; color: #fff; border: 2px solid #000; }
.rh-mark.p0 { background: var(--blue); }
.rh-mark.p1 { background: var(--team-red); }
.rh-who { flex: 1; min-width: 0; }
.rh-who .pname { font-family: var(--font-title); font-size: calc(10px * var(--ui-scale)); color: var(--text); }
.roster.p0 .rh-who .pname { color: var(--blue-hi); }
.roster.p1 .rh-who .pname { color: var(--team-red-hi); }
.rh-who .psub { font-size: var(--fs-xs); color: var(--text-2); }
.turn-pill { flex: 0 0 auto; padding: 3px 8px; font-size: var(--fs-xs); font-weight: 700; color: #1c1206; background: linear-gradient(180deg, #ffe7a6, var(--gold) 55%, #c98f2a); border: 2px solid #000; animation: turn-glow 1.4s ease-in-out infinite; }
@keyframes turn-glow { 50% { box-shadow: 0 0 2px rgba(233, 185, 73, 0.2); } 0%, 100% { box-shadow: 0 0 12px rgba(233, 185, 73, 0.55); } }
.roster-hero {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 7px;
  align-items: center;
  width: 100%;
  padding: 5px 22px 5px 6px;
  background: rgba(14, 10, 18, 0.7);
  border: 2px solid #000;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.narrow .roster-hero { width: calc(170px * var(--ui-scale)); }
.roster-hero:hover { box-shadow: inset 0 0 0 1px #6a5e6a; }
.roster-hero canvas { width: 40px; height: 40px; image-rendering: pixelated; grid-row: span 2; }
.rh-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rh-name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.roster-hero .nm { font-size: var(--fs-xs); font-weight: 700; }
.rh-facs { display: flex; gap: 2px; flex: 0 0 auto; }
.rh-facs .ct-fac { position: static; width: 8px; height: 8px; }
.rh-tier { flex: 0 0 auto; font-size: 10px; }
.rh-note { font-size: 11px; color: var(--text-2); }
.rh-note.good { color: var(--good); }
.rh-note.gold { color: var(--gold); }
.rh-note.teal { color: var(--teal-hi); }
.rh-note.ult { color: #ffb066; font-weight: 700; }
.rh-num { font-family: var(--font-num); font-size: 20px; line-height: 1; color: var(--text); text-align: right; }
.rh-shield { margin-left: 3px; font-size: 15px; color: #bfe4ff; }
.rh-bars { grid-column: 2 / 4; display: flex; flex-direction: column; gap: 2px; }
.roster-hero .bar { height: 8px; }
.roster-hero .bar > b { display: none; }
.roster-hero .bar.energy { height: 5px; border-width: 1px; }
.roster-hero .bar.energy.full > i { background: linear-gradient(180deg, #fff1a0, #ff9a3a); animation: blink 0.8s steps(2) infinite; }
.rh-info { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 16px; height: 16px; font: 700 11px/1 var(--font-text); color: var(--text); background: var(--panel-3); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--copper-dk); cursor: help; }
.rh-info:hover { color: #1c1206; background: var(--gold); box-shadow: none; }
.roster-hero.dead { opacity: 0.4; filter: grayscale(1); }
.roster-hero.active { box-shadow: inset 0 0 0 2px var(--gold), 0 0 12px rgba(233, 185, 73, 0.3); }
.roster-hero.blue { border-left: 4px solid var(--blue); }
.roster-hero.red { border-left: 4px solid var(--team-red); }
.narrow .rh-info, .narrow .rh-num, .narrow .rh-note { display: none; }

/* The action bar: square buttons in the game's copper pixel frame on a framed plate, each champion's own
   icons, a count of targets in reach, the cooldown, the Ultimate filling up like a liquid and glowing when full */
.action-bar { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; z-index: 4; padding: 4px 8px; flex-wrap: nowrap; }
.action-bar:not(:empty) { background: var(--panel); border: 12px solid var(--copper-dk); border-image: var(--frame-panel) 12 fill / 12px / 0 stretch; image-rendering: pixelated; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55); }
.act-round {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  color: var(--text);
  background: var(--panel-2);
  border: 9px solid var(--copper-dk);
  border-image: var(--frame-button) 9 fill / 9px / 0 stretch;
  image-rendering: pixelated;
  cursor: pointer;
  transition: transform 0.06s, filter 0.12s;
}
.act-round:hover:not(:disabled) { filter: brightness(1.18); }
.act-round:active:not(:disabled) { transform: translateY(2px); filter: brightness(0.92); }
.act-round:disabled { filter: grayscale(0.7) brightness(0.6); cursor: default; }
.act-ico { position: relative; z-index: 1; display: grid; place-items: center; }
.act-ico canvas, .act-ico img { width: 30px; height: 30px; image-rendering: pixelated; }
/* the action being aimed: the red frame (attack), a purple glow (skill), an ember glow (Ultimate) */
.act-round.on { border-image-source: var(--frame-button-red); }
.act-round.skl.on { box-shadow: 0 0 0 2px #a57cff, 0 0 14px rgba(165, 124, 255, 0.6); }
.act-round.ult.on { box-shadow: 0 0 0 2px #ff8a1e, 0 0 14px rgba(255, 138, 30, 0.6); }
.act-round.ult.full:not(:disabled) { box-shadow: 0 0 0 2px #ff8a1e, 0 0 16px 4px rgba(255, 150, 40, 0.55); animation: ult-pulse 1s steps(2) infinite; }
@keyframes ult-pulse { 50% { box-shadow: 0 0 0 2px #ffd36b, 0 0 6px 1px rgba(255, 150, 40, 0.35); } }
.act-energy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; background: linear-gradient(rgba(255, 190, 70, 0.55), rgba(255, 120, 30, 0.8)); box-shadow: 0 -2px 0 #ffd36b; transition: height 0.4s steps(6); }
.act-badge { position: absolute; right: -14px; top: -14px; z-index: 2; min-width: 18px; height: 18px; padding: 0 3px; display: grid; place-items: center; font-family: var(--font-num); font-size: 15px; line-height: 1; color: #fff; background: var(--red); border: 2px solid #000; }
.act-badge.cd { background: #5a4a7a; }
.act-key { position: absolute; left: 50%; bottom: -15px; z-index: 2; transform: translateX(-50%); pointer-events: none; }
.act-key:empty { display: none; }
.act-key .kbd { font-size: 9px; min-width: 14px; padding: 0 2px; }
.act-round.ghost { width: 46px; height: 46px; border-width: 7px; border-image-width: 7px; }
/* the new art (render/art.js): the spell's picture fills the whole square, the button's frame drawn over its
   edges (on a layer of its own, without its middle); the Ultimate's charge (--fill): a dark veil over what is
   not filled yet, a gold line at its level. --fw: the frame's width. */
.act-round.art { --fw: 9px; border-image: none; border-color: transparent; background: #120e16; }
.narrow .act-round.art { --fw: 7px; }
.act-round.art .act-ico { position: absolute; inset: calc(-1 * var(--fw)); z-index: 0; }
.act-round.art .act-ico canvas, .narrow .act-round.art .act-ico canvas { width: 100%; height: 100%; image-rendering: auto; }
.act-round.art::after { content: ''; position: absolute; inset: calc(-1 * var(--fw)); z-index: 2; pointer-events: none; border: var(--fw) solid transparent; border-image: var(--frame-button) 9 / var(--fw) / 0 stretch; image-rendering: pixelated; }
.act-round.art.on::after { border-image-source: var(--frame-button-red); }
.act-round.art .act-energy { left: calc(-1 * var(--fw)); right: calc(-1 * var(--fw)); bottom: calc(-1 * var(--fw)); z-index: 1; height: calc((100% + 2 * var(--fw)) * var(--fill, 0)) !important; background: none; }
.act-veil { position: absolute; left: calc(-1 * var(--fw)); right: calc(-1 * var(--fw)); top: calc(-1 * var(--fw)); z-index: 1; height: calc((100% + 2 * var(--fw)) * (1 - var(--fill, 0))); background: rgba(10, 6, 14, 0.62); pointer-events: none; transition: height 0.4s steps(6); }
.act-round.art .act-badge, .act-round.art .act-key { z-index: 3; }
.act-round.ghost .act-ico canvas { width: 22px; height: 22px; }
.act-sep { width: 2px; align-self: stretch; margin: 2px 2px; background: linear-gradient(transparent, var(--copper-dk), transparent); }
.narrow .act-round { width: 48px; height: 48px; border-width: 7px; border-image-width: 7px; }
.narrow .act-round .act-ico canvas { width: 26px; height: 26px; }
.narrow .act-round.ghost { width: 40px; height: 40px; }
.narrow .action-bar { gap: 4px; padding: 2px 4px; }
/* an action's bubble: icon, name and kind, what it does, the energy, and whether it can be used now */
.at-tip { width: 250px; max-width: 70vw; white-space: normal; border-left: 6px solid var(--line); margin: -6px -8px; }
.at-tip.a-atk { border-left-color: var(--team-red); }
.at-tip.a-skl { border-left-color: #8f55e0; }
.at-tip.a-ult { border-left-color: #ff8a1e; }
.at-tip.a-def { border-left-color: var(--blue); }
.at-head { display: flex; align-items: center; gap: 8px; padding: 7px 9px; background: var(--panel-3); border-bottom: 2px solid var(--line); }
.at-tip.a-ult .at-head { background: linear-gradient(90deg, #3e1f19, var(--panel-3)); }
.at-tip.a-skl .at-head { background: linear-gradient(90deg, #2a193e, var(--panel-3)); }
.at-tip.a-atk .at-head { background: linear-gradient(90deg, #3e1f19, var(--panel-3)); }
.at-ico { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; background: var(--inset); border: 2px solid #000; }
.at-ico canvas { width: 26px; height: 26px; image-rendering: pixelated; }
.at-head b { display: block; font-size: var(--fs-s); line-height: 1.3; }
.at-head small { font-size: var(--fs-xs); color: var(--text-2); }
.at-text { margin: 0; padding: 6px 9px 4px; font-size: var(--fs-xs); line-height: 1.35; }
.at-energy { height: 8px; margin: 2px 9px 4px; background: var(--inset); border: 2px solid #000; }
.at-energy i { display: block; height: 100%; background: linear-gradient(90deg, #ff8a1e, #ffd36b); }
.at-hint { margin: 2px 9px 8px; padding: 3px 6px; font-size: var(--fs-xs); font-weight: 700; border: 2px solid; background: var(--inset); }
.at-hint.ok { color: #90d59a; border-color: #5a8a5a; }
.at-hint.no { color: #de8f87; border-color: #8a4a44; }
/* a status icon's bubble: what it is and who gave it */
.buff-spot { z-index: 3; cursor: help; }
.bt { min-width: 180px; max-width: 260px; white-space: normal; }
.bt-head b { font-size: var(--fs-s); }
.bt.good .bt-head b { color: var(--good); }
.bt.bad .bt-head b { color: var(--bad); }
.bt-desc { margin: 3px 0; }
.bt-from { display: flex; flex-direction: column; gap: 3px; margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); }
.bt-from small { color: var(--muted); font-size: 11px; }
.bt-src { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; }
.bt-src canvas { width: 22px; height: 22px; image-rendering: pixelated; }
.bt-src.p0 { color: var(--blue-hi); }
.bt-src.p1 { color: var(--team-red-hi); }
/* Auto fight and the speed, in the top bar (vs the CPU) */
.hud-tools { display: flex; gap: 6px; align-items: center; }
.hud-tools[hidden] { display: none; }
.hud-auto.on { color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold), 0 0 10px rgba(245, 197, 66, 0.4); }
.hud-speed { min-width: 44px; font-family: var(--font-num); font-size: 18px; }
.narrow .hud-auto .lbl { display: none; }
.narrow .hud-tools { gap: 4px; }
.narrow .hud-speed { min-width: 34px; font-size: 15px; }

.hint-line { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; font-size: var(--fs-s); color: var(--text-2); text-shadow: 0 2px 0 #000; z-index: 3; pointer-events: none; white-space: nowrap; }

.next-strip { display: flex; gap: 3px; align-items: center; }
/* Arena Rush (a prototype) */
.rush-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 240px; gap: 12px; align-items: start; }
.rush-player { display: flex; flex-direction: column; gap: 3px; padding: 5px 7px; background: var(--panel-3); border: 2px solid #000; }
.rush-player.me { border-color: var(--teal); }
.rush-player.vs { box-shadow: inset 0 0 0 2px var(--red); }
.rush-player.out { opacity: 0.45; }
.rush-board { display: grid; grid-template-columns: repeat(3, 84px); gap: 4px; justify-content: center; padding: 6px; background: #4a3e48; border: 3px solid #1a1220; }
.rush-sq { display: grid; place-items: center; height: 84px; background: #7a6e78; border-top: 2px solid #8e8290; cursor: pointer; }
.rush-sq.dk { background: #6a5e6a; border-top-color: #7e7280; }
.rush-sq:hover { box-shadow: inset 0 0 0 2px var(--teal); }
.rush-unit, .rush-card:not(:disabled), .rush-stash-item { cursor: grab; touch-action: none; }
.rush-dragging, .rush-dragging * { cursor: grabbing !important; }
.rush-over { box-shadow: inset 0 0 0 3px var(--gold) !important; }
.rush-unit { position: relative; display: grid; place-items: center; width: 60px; height: 60px; padding: 0; background: rgba(0, 0, 0, 0.25); border: 2px solid #000; cursor: pointer; }
.rush-unit canvas { width: 48px; height: 48px; image-rendering: pixelated; }
.rush-unit.sel { border-color: var(--teal); box-shadow: 0 0 10px rgba(63, 224, 184, 0.6); }
.rush-unit.t2 { border-color: var(--rarity-rare); }
.rush-unit.t3 { border-color: var(--gold); }
.rush-tier { position: absolute; left: 2px; top: 1px; font: 700 10px var(--font-text); color: var(--gold); text-shadow: 0 1px 0 #000; }
.rush-bench { display: flex; flex-wrap: wrap; gap: 4px; min-height: 64px; padding: 4px; background: var(--inset); border: 2px solid #000; cursor: pointer; }
.rush-slot { width: 60px; height: 60px; border: 2px dashed var(--line); }
.rush-shop { grid-column: 1 / -1; }
.rush-shop-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rush-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; color: var(--text); font: inherit; background: var(--panel-3); border: 2px solid #000; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; }
.rush-card.c2 { box-shadow: inset 0 0 0 2px var(--rarity-rare); }
.rush-card.c3 { box-shadow: inset 0 0 0 2px var(--rarity-epic); }
.rush-card canvas { width: 48px; height: 48px; image-rendering: pixelated; }
.rush-card:disabled { opacity: 0.5; cursor: default; }
.rush-card.empty { justify-content: center; color: var(--muted); }
.chip.faded { opacity: 0.55; }
.rush-rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 900px) {
  .rush-grid { grid-template-columns: 1fr; }
  .rush-board { grid-template-columns: repeat(3, 72px); }
  .rush-sq { height: 72px; }
  .rush-shop-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* maintenance mode (ui/maintenance.js): the screen over the game for players, a banner for admins */
.maint { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 12, 0.92); }
.maint-box { width: min(460px, 100%); text-align: center; }
.maint-banner { position: fixed; left: 50%; top: calc(4px + var(--safe-t)); transform: translateX(-50%); z-index: 95; padding: 3px 10px; color: #fff1d8; background: #8a1f2a; border: 2px solid #000; pointer-events: none; }
/* screen transitions (ui/transition.js): an encounter and a fade through black */
.screen-fx { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.screen-fx.fade { background: #08060c; opacity: 0; transition: opacity 0.3s; }
.screen-fx.fade.on { opacity: 1; }
.screen-fx.flash { background: #fff1d8; opacity: 0; transition: opacity 0.08s; }
.screen-fx.flash.on { opacity: 0.85; }
.screen-fx.bars i { position: absolute; left: 0; width: 100%; height: 12.6%; background: #08060c; animation: fx-bar-l 0.36s steps(6, end) both; }
.screen-fx.bars i.r { animation-name: fx-bar-r; }
.screen-fx.bars.out { transition: opacity 0.35s; opacity: 0; }
@keyframes fx-bar-l { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes fx-bar-r { from { transform: translateX(100%); } to { transform: none; } }
/* the campaign: chapters, each a path of fights */
.camp-chapter.locked { opacity: 0.6; }
.camp-story { font-style: italic; color: var(--text); }
.camp-path { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 6px 0; }
.camp-link { flex: 0 0 22px; height: 4px; background: var(--line); }
.camp-link.on { background: var(--copper); }
.camp-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 112px; padding: 8px 4px 6px; color: var(--text); font: inherit; background: var(--panel-3); border: 2px solid #000; box-shadow: inset 0 0 0 2px var(--copper-dk); cursor: pointer; }
.camp-node:hover:not([disabled]), .camp-node:focus-visible { box-shadow: inset 0 0 0 2px var(--teal); outline: none; }
.camp-node.next { box-shadow: inset 0 0 0 2px var(--teal), 0 0 10px rgba(63, 224, 184, 0.45); }
.camp-node.boss { background: linear-gradient(rgba(138, 31, 42, 0.35), var(--panel-3)); }
.camp-node.locked { cursor: default; opacity: 0.55; }
.camp-pic { display: grid; place-items: center; width: 44px; height: 44px; background: var(--inset); border: 2px solid #000; }
.camp-pic canvas { width: 40px; height: 40px; image-rendering: pixelated; }
.camp-name { text-align: center; line-height: 1.2; min-height: 2.4em; }
.camp-crown { position: absolute; top: -9px; right: -6px; }
.camp-stars i { font-style: normal; color: var(--line); letter-spacing: 1px; }
.camp-stars i.on { color: var(--gold); }
.camp-stars.big { font-size: 22px; }
/* the Daily Challenge */
.daily-champ { gap: 2px; width: 64px; }
.daily-champ canvas { width: 48px; height: 48px; image-rendering: pixelated; background: var(--inset); border: 2px solid #000; }
.daily-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px; background: var(--panel-3); border: 2px solid #000; }
.daily-row.me { border-color: var(--teal); }
.daily-chart { display: flex; align-items: flex-end; gap: 3px; height: 80px; padding: 4px; background: var(--inset); border: 2px solid #000; }
.daily-chart i { flex: 1; min-width: 4px; background: var(--copper); }
.daily-chart i.won { background: var(--teal); }
/* a champion's mastery path (collection) */
.path-step { display: flex; align-items: center; gap: 10px; }
.path-n { display: grid; place-items: center; width: 24px; height: 24px; flex: none; font: 700 12px var(--font-text); color: var(--muted); background: var(--inset); border: 2px solid var(--line); }
.path-step.done .path-n { color: #1a1220; background: var(--teal); border-color: #000; }
.path-lore { margin: 2px 0 0; font-style: italic; }
/* the draft's saved-teams dropdown, and a plan's champions in the pool */
.team-menu { position: relative; }
.team-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; gap: 4px; min-width: 260px; max-height: 320px; overflow-y: auto; padding: 6px; }
.team-menu-row { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 5px 7px; color: var(--text); font: inherit; text-align: left; background: var(--panel-3); border: 2px solid #000; cursor: pointer; }
.team-menu-row:hover, .team-menu-row:focus-visible { border-color: var(--teal); outline: none; }
.team-menu-row canvas { width: 24px; height: 24px; image-rendering: pixelated; background: rgba(0, 0, 0, 0.4); }
.champ-tile.planned { box-shadow: inset 0 0 0 2px var(--gold); }
.ct-plan { position: absolute; left: 4px; bottom: 4px; color: var(--gold); font-size: 14px; text-shadow: 0 1px 0 #000; }
/* the turn timeline under the turn text: this turn and the next four, in their side's colour */
.turn-line { display: flex; gap: 3px; justify-content: center; margin-top: 3px; }
/* the dragon's Seals: blue's from the left, red's from the right, what's left between them */
.seal-strip { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; font-size: 12px; font-weight: 700; color: #ffd98a; }
.seal-strip .pips { display: inline-flex; gap: 3px; }
.seal-strip .pips i { width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid #ffd98a; background: rgba(0, 0, 0, 0.45); }
.seal-strip .pips i.blue { background: #6fb8ff; border-color: #cfe7ff; box-shadow: 0 0 6px #6fb8ff; }
.seal-strip .pips i.red { background: #ff7a6b; border-color: #ffd0ca; box-shadow: 0 0 6px #ff7a6b; }
.seal-strip small { margin-left: 4px; font-weight: 500; color: #cfc7ba; }
.seal-strip.warned { color: #ff9c5a; animation: seal-warn 1s ease-in-out infinite alternate; }
@keyframes seal-warn { from { opacity: 0.65; } to { opacity: 1; } }
.tl-chip { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 32px; height: 22px; padding: 0 5px; font: 700 13px var(--font-text); color: var(--text); background: rgba(16, 12, 22, 0.85); border: 1px solid #000; border-bottom: 3px solid var(--blue); }
.tl-chip.red { border-bottom-color: var(--red); }
.tl-chip.now { outline: 1px solid var(--teal); background: rgba(40, 30, 50, 0.95); }
.tl-chip b { font-weight: 700; }
.tl-chip .icon-img { width: 14px; height: 14px; }
.tl-sd { color: var(--bad); font-size: 10px; }
.narrow .turn-line { display: none; }
.next-strip canvas { width: 26px; height: 26px; image-rendering: pixelated; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line); }
.next-strip canvas.rest { opacity: 0.35; }

.chronicle {
  position: absolute;
  z-index: 5;
  width: min(320px, 92vw);
  max-height: 46vh;
  display: flex;
  flex-direction: column;
}
/* big screens: docked under the arena, always open (match.js layout) */
.chronicle.docked { max-height: none; padding: 6px 10px; }
.chronicle.docked .chron-head { margin-bottom: 2px; }
.chronicle.docked .chron-head .h2 { font-size: var(--fs-xs); }
.chronicle.docked .chron-opts-btn { min-width: 26px; min-height: 26px; width: 26px; height: 26px; padding: 2px; }
.chronicle.docked .chron-opts { top: 34px; }
.chronicle.docked .log { flex: 1 1 auto; min-height: 0; }
.chronicle.docked .chron-voice { flex-direction: row; flex-wrap: wrap; margin-bottom: 4px; padding: 2px 6px; }
.chronicle.docked .chron-chat { margin-top: 4px; }
.chron-docked .chron-btn { display: none; }
/* phones: the other player wrote, a "!" pulses on the chronicle's button */
.chron-btn.badge.alert::after { min-width: 18px; padding: 0; font-weight: 700; animation: chron-alert 0.9s ease-in-out infinite alternate; }
@keyframes chron-alert { from { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.7); } to { transform: scale(1.25); box-shadow: 0 0 0 5px rgba(229, 72, 77, 0); } }
.reduce-motion .chron-btn.badge.alert::after { animation: none; }
.chronicle .log { overflow-y: auto; font-size: var(--fs-xs); display: flex; flex-direction: column; gap: 2px; padding-right: 4px; -webkit-user-select: text; user-select: text; }
/* The chronicle (match.js addLog): sections, times, rich lines, the ⚙ options */
.chron-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.chron-head .h2 { margin: 0; flex: 1; }
.chron-clock { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-num); font-size: 15px; color: var(--muted); }
.chron-clock canvas, .chron-clock img { width: 12px; height: 12px; image-rendering: pixelated; }
.chron-clock.stopped { color: var(--gold); }
.chron-opts-btn.on { box-shadow: inset 0 0 0 2px var(--gold); }
.chron-opts { position: absolute; z-index: 3; right: 8px; top: 38px; width: min(300px, calc(100% - 16px)); max-height: 70%; overflow-y: auto; padding: 8px; background: #17121f; border: 2px solid #000; box-shadow: 0 0 0 2px rgba(255, 246, 220, 0.15), 0 8px 18px rgba(0, 0, 0, 0.6); }
.lo-head { margin: 0 2px 6px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.lo-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 6px; text-align: left; color: var(--text); background: none; border: 2px solid transparent; cursor: pointer; font: inherit; }
.lo-row + .lo-row { margin-top: 2px; }
.lo-row:hover, .lo-row:focus-visible { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 246, 220, 0.15); outline: none; }
.lo-ico { flex-shrink: 0; width: 22px; font-size: 15px; text-align: center; }
.lo-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.lo-text b { font-size: 12px; }
.lo-text small { font-size: 11px; line-height: 1.2; color: var(--muted); }
.lo-sw { position: relative; flex-shrink: 0; width: 34px; height: 18px; background: #5a5266; border: 3px solid #000; }
.lo-sw i { position: absolute; top: 1px; left: 1px; width: 10px; height: 10px; background: #fffbea; box-shadow: inset -2px -2px 0 #b9ae98; transition: left 0.1s steps(2); }
.lo-row.on .lo-sw { background: #3fae5a; }
.lo-row.on .lo-sw i { left: 17px; }
.chronicle .log { gap: 3px; line-height: 1.35; }
.chronicle .log .log-group { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 2px 8px; font-size: 10px; color: var(--text); text-transform: uppercase; letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.06); border-left: 4px solid rgba(255, 246, 220, 0.25); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35); }
.chronicle .log .log-group:first-child { margin-top: 0; }
.chronicle .log .log-group.p0 { border-left-color: var(--blue); background: rgba(70, 120, 255, 0.16); }
.chronicle .log .log-group.p1 { border-left-color: var(--team-red); background: rgba(229, 72, 77, 0.16); }
.chronicle .log .lg-title { font-weight: 700; }
.chronicle .log .log-group.p0 .lg-who { color: var(--blue-hi); }
.chronicle .log .log-group.p1 .lg-who { color: var(--team-red-hi); }
.chronicle .log .lg-time { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--muted); white-space: nowrap; text-transform: none; }
.chronicle .log .lg-time canvas, .chronicle .log .lg-time img { width: 10px; height: 10px; image-rendering: pixelated; }
.chronicle .log .lg { display: flex; align-items: baseline; gap: 8px; margin-left: 10px; padding-left: 6px; border-left: 3px solid rgba(255, 246, 220, 0.12); }
.chronicle .log .lg.p0 { border-left-color: var(--blue); }
.chronicle .log .lg.p1 { border-left-color: var(--team-red); }
.chronicle .log .lg-txt { flex: 1; min-width: 0; }
.chronicle .log .log-time { flex: 0 0 auto; min-width: 38px; font-family: var(--font-num); font-size: 14px; color: var(--text); }
.chronicle .log .log-time.same { opacity: 0.3; }
.chronicle .log .lg-u { font-weight: 700; }
.chronicle .log .lg-u.p0 { color: var(--blue-hi); }
.chronicle .log .lg-u.p1 { color: var(--team-red-hi); }
.chronicle .log .lg-u.p2 { color: #c9a8ff; }
.chronicle .log .lg-num { font-family: var(--font-num); font-size: 15px; font-weight: normal; padding: 0 1px; }
.chronicle .log .lg-num.atk { color: #ff6b5e; }
.chronicle .log .lg-num.spell { color: #ff6bd0; }
.chronicle .log .lg-num.heal { color: #6be07a; }
.chronicle .log .lg-num.shield { color: #8fc2ff; }
.chronicle .log .lg-ab { font-weight: 700; color: #c8a0ff; }
.chronicle .log .lg-ab.ult { color: #ffb15e; }
/* (what caused a blow, with what it does on pointing at it: a dotted line under it says there is more) */
.chronicle .log .lg-ab.lg-why { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.game-cursors .chronicle .log .lg-ab.lg-why { cursor: var(--cur-look), help; }
/* an Ultimate: the line glows */
.chronicle .log .lg.lg-ult { padding: 2px 8px; font-weight: 700; color: #3a1a08; background: linear-gradient(90deg, #ff9a3c, #ffd36b 70%, #fff3b0); box-shadow: inset 0 -2px 0 rgba(140, 60, 10, 0.35); }
.chronicle .log .lg.lg-ult .lg-u.p0 { color: #1c3f9a; }
.chronicle .log .lg.lg-ult .lg-u.p1 { color: #9a1c1c; }
.chronicle .log .lg.lg-ult .lg-ab.ult { color: #6a1a00; }
.chronicle .log .lg.lg-ult .log-time { color: #3a1a08; }
/* sudden death: a dark band */
.chronicle .log .lg.lg-warn { padding: 3px 8px; font-weight: 700; color: #ffd36b; background: #2a1c24; border-left-color: #e0453c; box-shadow: inset 0 0 0 1px #5a2a2a; text-shadow: 1px 1px 0 #000; }
/* a critical hit and a miss */
.chronicle .log .lg-crit { display: inline-block; margin-left: 2px; padding: 0 4px; font-size: 10px; font-weight: 700; color: #fff3a0; text-transform: uppercase;
  background: linear-gradient(#ff9a3c, #d0261a); border: 2px solid #000; transform: rotate(-3deg); animation: lg-crit 1s steps(2) infinite; }
@keyframes lg-crit { 50% { transform: rotate(-3deg) scale(1.08); filter: brightness(1.2); } }
.chronicle .log .lg-miss { display: inline-block; position: relative; margin-left: 4px; padding: 0 6px 0 18px; font-size: 10px; letter-spacing: 1px; color: #c8dcf0; text-transform: uppercase;
  background: linear-gradient(90deg, transparent, rgba(120, 160, 210, 0.45) 35%, rgba(150, 190, 235, 0.6)); border-right: 3px solid #8aa8c8; transform: skewX(-14deg);
  text-shadow: -3px 0 rgba(200, 220, 240, 0.3), -7px 0 rgba(200, 220, 240, 0.12); animation: lg-miss 1.6s ease-in-out infinite; }
.chronicle .log .lg-miss::before { content: '💨'; position: absolute; left: 1px; top: 50%; transform: translateY(-50%) skewX(14deg); font-size: 10px; text-shadow: none; }
@keyframes lg-miss { 50% { transform: skewX(-14deg) translateX(3px); opacity: 0.8; } }
.reduce-motion .chronicle .log .lg-crit, .reduce-motion .chronicle .log .lg-miss { animation: none; }
.chronicle .log .lg.lg-death .lg-txt::before { content: '💀 '; }
/* the announcer, the mascots, the chat */
.chronicle .log .lg.lg-banner { padding: 1px 8px; background: linear-gradient(90deg, rgba(242, 193, 78, 0.28), rgba(242, 193, 78, 0.05) 70%); border-left-color: var(--gold); }
.chronicle .log .lg-ann { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.chronicle .log .lg.lg-banner.p0 .lg-ann { color: var(--blue-hi); }
.chronicle .log .lg.lg-banner.p1 .lg-ann { color: var(--team-red-hi); }
.chronicle .log .lg.lg-emote { color: var(--muted); }
.chronicle .log .lg-ll { display: inline-block; width: 18px; height: 18px; margin-right: 4px; vertical-align: -4px; image-rendering: pixelated; }
.chronicle .log .lg.lg-chat { font-weight: 700; }
.chronicle .log .lg.lg-notice { color: var(--muted); font-style: italic; }
/* the ⚙'s choices */
.chronicle .log.no-times .log-time { display: none; }
.chronicle .log.no-damage .lg.lg-dmg { display: none; }
.chronicle .log.no-deaths .lg.lg-death { display: none; }
.chronicle .log.no-banners .lg.lg-banner { display: none; }
.chronicle .log.no-turns .log-group { display: none; }
.chronicle .log.no-turns .lg { margin-left: 0; }
.chronicle .log.no-emotes .lg.lg-emote { display: none; }

.announce {
  position: absolute;
  left: 50%;
  top: 32%;
  transform: translate(-50%, -50%);
  z-index: 8;
  font-family: var(--font-title);
  font-size: clamp(18px, 4.6vw, 44px);
  color: var(--gold);
  text-shadow: 0 4px 0 #6b3a10, 0 7px 0 #000, 0 0 30px rgba(245, 197, 66, 0.5);
  white-space: nowrap;
  pointer-events: none;
  animation: announce 1.6s ease-out forwards;
}
.announce.red { color: var(--team-red-hi); text-shadow: 0 4px 0 var(--red-dk), 0 7px 0 #000; }
.announce.teal { color: var(--teal-hi); text-shadow: 0 4px 0 var(--teal-dk), 0 7px 0 #000; }
@keyframes announce { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.2); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }

/* ------------------------------------------------------- draft screen */

/* The champion select: header with the turn tracker, the choice bar, then
   your team | the champion pool | the other team + the preview. */
.dr { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; padding: 0 10px 10px; }
.dr-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 14px; }
.dr.p0 .dr-head { box-shadow: inset 4px 0 0 var(--blue); }
.dr.p1 .dr-head { box-shadow: inset 4px 0 0 var(--team-red); }
.dr.banning .dr-head { background: linear-gradient(90deg, rgba(200, 40, 30, 0.22), transparent 60%), var(--panel); }
.dr-title { min-width: 0; }
.dr-title .t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-title); font-size: calc(12px * var(--ui-scale)); line-height: 1.5; color: var(--text); text-shadow: 0 2px 0 #000; }
.dr-title .sub { font-size: var(--fs-s); color: var(--text-2); margin-top: 3px; }
.dr-rand { display: none; }
.dr-count-step { font-family: var(--font-num); font-size: 20px; color: var(--muted); margin-left: 4px; }
.dr-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; font-family: var(--font-text); font-size: 14px; font-weight: 700; color: #fff; border: 2px solid #000; }
.dr-mark.p0 { background: var(--blue); }
.dr-mark.p1 { background: var(--team-red); }

/* Turn tracker */
.dr-steps { display: flex; align-items: center; gap: 3px; padding: 4px 6px; background: rgba(0, 0, 0, 0.35); border: 2px solid #000; }
.ds { position: relative; display: grid; place-items: center; width: 28px; height: 28px; font-family: var(--font-num); font-size: 18px; line-height: 1; color: var(--muted); background: var(--inset); border: 2px solid var(--line); }
.ds.p0 { border-color: #2a5aa8; }
.ds.p1 { border-color: #9b2a30; }
.ds.ban { background: #2e1416; font-size: 12px; }
.ds.done { background: radial-gradient(circle at 50% 40%, #3a3044, #1d1724); color: var(--text); }
.ds.done.ban canvas { filter: grayscale(1) brightness(0.75); }
.ds canvas { width: 22px; height: 22px; image-rendering: pixelated; }
.ds.now { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 12px rgba(245, 197, 66, 0.6); animation: turn-glow 1.2s ease-in-out infinite; }
.ds .chip { padding: 0 3px; font-size: 11px; }
.ds-gap { width: 3px; }
@keyframes turn-glow { 50% { box-shadow: 0 0 4px rgba(245, 197, 66, 0.25); } }

/* Choice bar */
.dr-choice-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 10px; background: rgba(20, 15, 24, 0.92); }
.dr-choice { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dc-icon { display: grid; place-items: center; width: 50px; height: 50px; flex: none; background: radial-gradient(circle at 50% 40%, #3a3044, #1d1724); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--copper-dk); }
.dc-icon canvas { width: 42px; height: 42px; }
.dc-icon.ban { background: #2e1416; }
.dc-icon.ban canvas { filter: grayscale(1) brightness(0.8); }
.dc-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dc-text b { font-size: var(--fs-l); line-height: 1.1; }
.dr-buttons { flex: none; }

/* Three columns */
.dr-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 236px minmax(0, 1fr) 300px; gap: 10px; align-items: stretch; }
.dr-team { display: flex; flex-direction: column; gap: 8px; align-self: start; padding: 8px 10px 10px; }
.dr-team.p0 { box-shadow: inset 0 3px 0 var(--blue); }
.dr-team.p1 { box-shadow: inset 0 3px 0 var(--team-red); }
.dr-team.active { box-shadow: inset 0 3px 0 var(--gold), 0 0 0 2px var(--gold), 0 0 18px rgba(245, 197, 66, 0.35); }
.dr-team-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dr-team-head b { min-width: 0; }
.dr-team-head small { margin-left: auto; }
.dr-bans { display: flex; align-items: center; gap: 8px; }
.dr-ban { position: relative; display: grid; place-items: center; width: 40px; height: 40px; background: var(--inset); border: 2px dashed var(--line); font-size: 14px; }
.dr-ban.filled { border: 2px solid #000; background: #2e1416; }
.dr-ban.filled canvas { width: 32px; height: 32px; filter: grayscale(1) brightness(0.75); }
.dr-ban.filled::after { content: ''; position: absolute; inset: 2px; background: linear-gradient(45deg, transparent 44%, var(--bad) 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--bad) 44% 56%, transparent 56%); pointer-events: none; }
.dr-ban .chip { padding: 0 4px; font-size: 11px; }
.dr-ban .ghost { width: 32px; height: 32px; opacity: 0.45; filter: grayscale(1); image-rendering: pixelated; }
.dr-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dr-slot { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 0; background: var(--inset); border: 2px dashed var(--line); color: var(--muted); font: inherit; }
.dr-slot canvas { width: 82%; height: 82%; image-rendering: pixelated; }
.dr-slot.filled { border: 2px solid #000; background: radial-gradient(circle at 50% 38%, #3e3448, #1d1724 75%); box-shadow: inset 0 0 0 1px var(--copper-dk); }
.dr-slot.next { border: 2px solid var(--gold); animation: slot-blink 1s steps(1) infinite; }
.dr-slot .ghost { opacity: 0.42; }
.dr-slot.removable { cursor: pointer; }
.dr-slot.removable:hover { border-color: var(--bad); }
.dr-slot.secret { font-family: var(--font-num); font-size: 26px; }
.dr-slot.secret.ready { color: var(--good); border: 2px solid #2f7d3b; background: #1e2e18; }
.dr-slot.incoming > * { visibility: hidden; }
.dr-slot.land { animation: slot-land 0.36s ease-out; }
.dr-slot-tier { position: absolute; left: 3px; top: 2px; }
.dr-syn { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.dr-syn .chip { opacity: 0.65; }
.dr-syn .chip.on { opacity: 1; box-shadow: 0 0 8px rgba(255, 255, 255, 0.15); }
@keyframes slot-blink { 50% { border-color: rgba(245, 197, 66, 0.25); } }
@keyframes slot-land { 0% { transform: scale(1.22); } 55% { transform: scale(0.9); } 100% { transform: scale(1); } }

/* The pool */
.dr-pool { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; padding: 8px 10px; }
.dr-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dr-search { width: auto; flex: 1 1 150px; min-width: 120px; min-height: 36px; padding: 4px 10px; }
.dr-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fac-btn.on { color: #1c1206; filter: brightness(1.25); }
.fac-btn.order.on { color: #f3d58a; } .fac-btn.wild.on { color: #9be38a; } .fac-btn.arcane.on { color: #c3b0ff; } .fac-btn.shadow.on { color: #d39be0; }
.fac-btn.all.on { color: var(--teal); }
.dr-count { margin-left: auto; white-space: nowrap; }
.chip-btn.order { color: #f3d58a; } .chip-btn.wild { color: #9be38a; } .chip-btn.arcane { color: #c3b0ff; } .chip-btn.shadow { color: #d39be0; }
.dr-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); gap: 14px 10px; padding: 12px 8px 6px; align-content: start; background: rgba(10, 7, 12, 0.45); border: 2px solid #000; }
.champ-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; color: var(--text); font: inherit; text-align: center; cursor: pointer; background: var(--panel-2); border: 9px solid var(--copper-dk); border-image: var(--frame-card) 9 fill / 9px / 0 stretch; transition: transform 0.12s, box-shadow 0.12s; }
.champ-tile:not(.disabled):hover { transform: translateY(-3px); filter: brightness(1.12); }
.nav-visible .champ-tile:focus-visible { transform: translateY(-3px); }
.champ-tile.disabled { cursor: default; }
.champ-tile.disabled:not(.chosen):not(.banned) > .ct-icon, .champ-tile.disabled:not(.chosen):not(.banned) > .ct-name { opacity: 0.45; }
.ct-icon { display: grid; place-items: center; width: 62px; height: 62px; background: radial-gradient(circle at 50% 38%, #3e3448, #1d1724 75%); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--copper-dk); }
.ct-icon canvas { width: 54px; height: 54px; image-rendering: pixelated; }
.ct-icon.big { width: 80px; height: 80px; flex: none; }
.ct-icon.big canvas { width: 72px; height: 72px; }
.ct-name { min-height: 18px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: calc(13px * var(--ui-scale)); line-height: 1.1; color: #f1e6cc; overflow-wrap: normal; word-break: normal; }
.ct-facs { display: flex; gap: 3px; }
.ct-fac { width: 9px; height: 9px; border: 1px solid #000; }
.ct-fac.order { background: #d9b45a; } .ct-fac.wild { background: #5fbf4a; } .ct-fac.arcane { background: #8a6bff; } .ct-fac.shadow { background: #8a4b9a; }
.ct-tier { position: absolute; top: -10px; left: -10px; padding: 3px 4px; background: #1a1220; border: 2px solid var(--copper-dk); }
.ct-lock { position: absolute; top: -12px; left: -10px; font-size: 15px; }
.champ-tile.locked .ct-icon, .champ-tile.locked .ct-name { opacity: 0.5; filter: grayscale(0.8); }
.champ-tile.banned > :not(.ct-ban) { opacity: 0.35; filter: grayscale(1); }
/* exclusive picks (ranked): the other side has it */
.champ-tile.taken > :not(.ct-ban):not(.ct-picks) { opacity: 0.4; filter: grayscale(0.8); }
.ct-ban.ct-taken { color: var(--text-2); border-color: var(--muted); }
.ct-ban { position: absolute; left: 50%; top: 36%; z-index: 1; transform: translate(-50%, -50%) rotate(-14deg); padding: 2px 6px; font-weight: 700; font-size: var(--fs-xs); color: var(--bad); background: rgba(20, 8, 10, 0.85); border: 2px solid var(--bad); letter-spacing: 1px; text-transform: uppercase; }
.ct-picks { position: absolute; top: -12px; right: -10px; display: flex; gap: 2px; }
.ct-picks i { display: grid; place-items: center; width: 20px; height: 20px; font-style: normal; font-weight: 700; font-size: 12px; color: #fff; border: 2px solid #000; }
.ct-picks i.p0 { background: var(--blue); }
.ct-picks i.p1 { background: var(--team-red); }
.ct-order { position: absolute; top: -12px; right: -10px; display: grid; place-items: center; width: 22px; height: 22px; font-family: var(--font-num); font-size: 18px; color: #1c1206; background: var(--gold); border: 2px solid #000; }
.ct-go { display: none; }
.champ-tile.chosen { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(245, 197, 66, 0.45); }
.dr.banning .champ-tile.chosen { box-shadow: 0 0 0 3px var(--bad), 0 0 16px rgba(229, 72, 77, 0.45); }
.champ-tile.fx-hit { box-shadow: 0 0 0 3px var(--bad); }
.champ-tile.holo .ct-icon { box-shadow: inset 0 0 0 1px #c8a0ff, 0 0 10px rgba(200, 160, 255, 0.5); }

/* The other team + the preview */
.dr-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }
.dr-preview { padding: 10px 12px; }
.dr-preview.empty { display: flex; align-items: center; justify-content: center; min-height: 90px; }
.dr-hint { margin-top: 8px; padding: 6px 8px; color: var(--gold); background: rgba(0, 0, 0, 0.3); box-shadow: inset 3px 0 0 var(--gold); }
.dr-fly { position: fixed; z-index: 30; pointer-events: none; image-rendering: pixelated; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6)); }

/* Tablets: both teams on the left, the pool on the right */
@media (max-width: 1100px) {
  .dr-body { grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
  .dr-side { display: contents; }
  .dr-body > .dr-team { grid-column: 1; grid-row: 1; }
  .dr-side > .dr-team { grid-column: 1; grid-row: 2; }
  .dr-side > .dr-preview { grid-column: 1; grid-row: 3; align-self: start; max-height: 100%; overflow-y: auto; }
  .dr-pool { grid-column: 2; grid-row: 1 / span 3; }
}

/* Phones: the two teams side by side, the pool below; the page scrolls, the choice bar stays on top */
@media (max-width: 700px) {
  .dr { overflow-y: auto; padding: 0 6px 6px; gap: 6px; }
  /* Header: title + the Random dice on one line, the tracker below */
  .dr-head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'title rand' 'steps steps'; gap: 6px; padding: 6px 8px; }
  .dr-title { grid-area: title; }
  .dr-steps { grid-area: steps; overflow-x: auto; }
  .dr-rand { display: inline-flex; grid-area: rand; align-self: start; }
  .dr-title .sub { display: none; }
  .ds { width: 24px; height: 24px; flex: none; font-size: 16px; }
  .ds canvas { width: 18px; height: 18px; }
  /* No "Picking X" box: the chosen card and the ghost in the slot say it, a second tap locks in.
     What stays (Fast match, No ban) is just the buttons. */
  .dr-choice-bar.quiet, .dr-choice, .dr-rand-txt, .dr-choice-bar.k-blind .dr-lock { display: none; }
  .dr-choice-bar { position: sticky; top: 0; z-index: 4; padding: 4px 6px; justify-content: flex-end; }
  .dr-buttons { flex: 1 1 100%; justify-content: flex-end; }
  .ct-go { display: block; position: absolute; left: 50%; bottom: -11px; z-index: 2; transform: translateX(-50%); padding: 1px 5px; white-space: nowrap; font-weight: 700; font-size: 9px; color: #1c1206; background: var(--gold); border: 2px solid #000; animation: turn-glow 1.2s ease-in-out infinite; }
  .dr.banning .ct-go { color: #fff; background: var(--bad); }
  .dr-ban .ghost { width: 22px; height: 22px; }
  .dr-title .t { font-size: 10px; flex-wrap: nowrap; align-items: flex-start; }
  .dr-title .tt { flex: 1 1 auto; min-width: 0; }
  .dr-count-step { flex: none; font-size: 16px; }
  .dr-buttons .btn { padding: 2px 8px; }
  /* Teams as full-width strips, one on top of the other: six slots in a row */
  .dr-body { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; gap: 6px; flex: none; }
  .dr-body > .dr-team { grid-column: 1; grid-row: 1; }
  .dr-side > .dr-team { grid-column: 1; grid-row: 2; }
  .dr-pool { grid-column: 1; grid-row: 3; padding: 6px; }
  .dr-side > .dr-preview { grid-column: 1; grid-row: 4; }
  .dr-side > .dr-preview.empty { display: none; }
  .dr-team { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'head ban' 'slots slots' 'syn syn'; align-items: center; padding: 5px 6px 6px; gap: 4px 8px; }
  .dr-team-head { grid-area: head; }
  .dr-bans { grid-area: ban; gap: 6px; }
  .dr-slots { grid-area: slots; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
  .dr-syn { grid-area: syn; min-height: 0; }
  .dr-syn:empty { display: none; }
  .dr-team.raid-box { display: flex; flex-direction: column; gap: 4px; }
  .dr-syn .chip { font-size: 10px; padding: 0 5px; }
  .dr-slot-tier { font-size: 7px; padding: 0 1px; left: 1px; top: 1px; }
  .dr-ban { width: 28px; height: 28px; }
  .dr-ban.filled canvas { width: 22px; height: 22px; }
  .dr-bans small { font-size: 10px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dr-grid { flex: none; overflow: visible; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; padding: 10px 6px 4px; }
  .champ-tile { padding: 6px 2px 4px; }
  .ct-icon { width: 44px; height: 44px; }
  .ct-icon canvas { width: 38px; height: 38px; }
  .ct-name { font-size: 10px; min-height: 14px; letter-spacing: -0.2px; }
  .dr-search { flex-basis: 100%; min-height: 32px; }
  .dr-filters { flex: 1 1 100%; flex-wrap: wrap; gap: 4px; padding-bottom: 2px; } /* (wraps: nothing scrolls sideways on phones) */
  .dr-filters .btn.small { flex: none; min-height: 30px; padding: 0 7px; font-size: 11px; }
  .dr-count { display: none; }
}

/* ----------------------------------------------------- emblem editor */

.emblem-editor { display: grid; grid-template-columns: 1fr 300px; gap: 12px; flex: 1; min-height: 0; padding: 0 12px 12px; }
.emblem-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 0; }
.emblem-hint { margin: 0; max-width: 560px; }
.screen-emblem .screen-head .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .screen-emblem .screen-head .title { display: none; }
  .screen-emblem .screen-head { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
  .screen-emblem .screen-head .btn.small { padding: 2px 6px; }
  .emblem-hint { font-size: 11px; }
}
.emblem-stage canvas { width: min(100%, 56vh); aspect-ratio: 1; image-rendering: auto; background: repeating-conic-gradient(#1b1520 0 25%, #221a28 0 50%) 0 0 / 24px 24px; border: 3px solid #000; box-shadow: 0 0 0 2px var(--copper-dk); touch-action: none; }
.emblem-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; }
.shape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; }
.shape-grid button { aspect-ratio: 1; padding: 4px; background: var(--inset); border: 2px solid var(--line); cursor: pointer; }
.shape-grid button canvas { width: 100%; height: 100%; }
.layer-list .list-item { min-height: 40px; padding: 4px 8px; }
.layer-list .list-item.sel { border-color: var(--teal); }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.swatches button { aspect-ratio: 1; border: 2px solid #000; cursor: pointer; padding: 0; }
.swatches button.sel { outline: 2px solid #fff; }

/* ------------------------------------------- match on narrow screens */

.narrow .hud-top { flex-wrap: wrap; padding: 4px 6px; gap: 4px; }
.narrow .hud-top .turn-banner { min-width: 0; order: 10; flex: 1 1 100%; } /* (its own row under the buttons: squeezed between them it wrapped word by word) */
.narrow .hud-top .turn-banner .t { font-size: 9px; line-height: 1.4; }
.narrow .hud-top .turn-banner .xs { font-size: 10px; }
.narrow .next-strip { display: none; }
.narrow .timer { font-size: 24px; min-width: 48px; }
.narrow .timer-bar { width: 48px; height: 6px; }
.narrow .roster { flex-wrap: nowrap !important; gap: 4px; }
/* phones: the rosters are just the champions' square portraits (HP, energy and the rest are on the board
   and in the champion's bubble) */
.narrow .roster-hero { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; padding: 1px; grid-template-columns: 1fr; gap: 0; }
.narrow .roster-hero canvas { width: 40px; height: 40px; grid-row: auto; }
.narrow .roster-hero > :not(canvas) { display: none; }
.narrow .roster-hero.blue { border-left-width: 2px; border-bottom: 3px solid var(--blue); }
.narrow .roster-hero.red { border-left-width: 2px; border-bottom: 3px solid var(--team-red); }
.narrow .action-bar { gap: 3px; padding: 3px; }
.narrow .hint-line { font-size: 12px; max-width: 96vw; overflow: hidden; text-overflow: ellipsis; }

/* -------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .emblem-editor { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .emblem-stage canvas { width: min(100%, 38vh); }
}

@media (max-width: 560px) {
  :root { --gap: 8px; }
  .menu-buttons { grid-template-columns: 1fr 1fr; gap: 6px; }
  .menu-buttons .btn { font-size: var(--fs-s); min-height: 46px; padding: 4px 8px; }
  .screen-head { min-height: 48px; padding: 6px 8px; }
  .screen-body { padding: 4px 8px 14px; }
  .roster-hero { width: auto; grid-template-columns: 30px 1fr; padding: 2px 4px; }
  .roster-hero canvas { width: 30px; height: 30px; }
  .action-btn { min-width: 52px; min-height: 54px; }
  .action-btn .lbl { display: none; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .menu-wrap { gap: 8px; }
}

/* ----------------------------------------------- comfort and motion */

.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

.screen-body::-webkit-scrollbar, .modal-body::-webkit-scrollbar, .log::-webkit-scrollbar, .pool::-webkit-scrollbar { width: 10px; height: 10px; }
.screen-body::-webkit-scrollbar-thumb, .modal-body::-webkit-scrollbar-thumb, .log::-webkit-scrollbar-thumb, .pool::-webkit-scrollbar-thumb { background: var(--copper-dk); border: 2px solid var(--bg); }
.screen-body::-webkit-scrollbar-track, .modal-body::-webkit-scrollbar-track, .log::-webkit-scrollbar-track, .pool::-webkit-scrollbar-track { background: var(--bg-2); }
* { scrollbar-color: var(--copper-dk) var(--bg-2); scrollbar-width: thin; }

/* ------------------------------------------------------------------ online */
[hidden] { display: none !important; }
.badge { position: relative; }
.badge::after { content: attr(data-badge); position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; font-family: var(--font-num); font-size: 15px; line-height: 1; color: #fff; background: var(--bad); border: 2px solid #000; border-radius: 9px; pointer-events: none; }
.btn.left { justify-content: flex-start; text-align: left; }
.btn.link { background: none; border: none; border-image: none; box-shadow: none; padding: 0 2px; min-height: 0; color: var(--teal); text-decoration: underline; max-width: 100%; }
.mk-row { padding: 3px 4px; border-bottom: 1px solid rgba(75, 58, 60, 0.5); min-height: 34px; }
.mk-row:last-child { border-bottom: none; }
.rarity-common { color: #d8d2c6; } .rarity-rare { color: #8cc0ff; } .rarity-epic { color: #d39be0; } .rarity-legendary { color: var(--gold); }
.lobby-code { font-size: calc(30px * var(--ui-scale)); letter-spacing: 8px; margin: 4px 0; user-select: all; -webkit-user-select: all; }
.lobby-team.p0 { box-shadow: inset 0 3px 0 var(--blue); }
.lobby-team.p1 { box-shadow: inset 0 3px 0 var(--team-red); }
.lobby-seat { min-height: 34px; }
.spinner { width: 34px; height: 34px; border: 4px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.live-tag { color: var(--bad); font-weight: 700; font-size: var(--fs-xs); margin-right: 6px; animation: turn-glow 1.2s ease-in-out infinite; }
.bracket { display: flex; gap: 10px; overflow-x: auto; align-items: center; padding-bottom: 6px; }
.bracket-round { min-width: 150px; }
.bracket-match { padding: 4px 6px; position: relative; }
.bracket-match .lost { opacity: 0.45; text-decoration: line-through; }
/* phones: the rounds one under the other (round 1, the semis, the final), each round's matches two by two */
@media (max-width: 760px) {
  .bracket { flex-direction: column; align-items: stretch; overflow-x: visible; gap: 12px; }
  .bracket-round { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .bracket-round > :first-child { grid-column: 1 / -1; }
}
/* the tutorial's coach */
.coach { position: absolute; left: 12px; bottom: 12px; z-index: 30; width: clamp(220px, 17.5vw, 340px); display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; box-shadow: 0 6px 0 #000, 0 0 0 2px var(--gold); }
.coach-head { display: flex; align-items: center; gap: 8px; }
.coach-text { margin: 0; line-height: 1.45; }
.coach-buttons { align-items: center; flex-wrap: wrap; }
.coach.min { width: auto; }
.coach-hl { outline: 3px solid var(--gold) !important; outline-offset: 2px; animation: coach-pulse 1.2s ease-in-out infinite; }
@keyframes coach-pulse { 50% { outline-color: rgba(245, 197, 66, 0.25); } }
@media (max-width: 700px) {
  .coach { left: 50%; transform: translateX(-50%); width: 94vw; bottom: 8px; padding: 6px 8px; gap: 4px; }
  .coach:not([data-phase='fast']) { bottom: auto; top: 56px; }
  .coach .coach-text { font-size: var(--fs-xs); }
}
/* the snake mini-game */
.snake-body { display: flex; justify-content: center; }
.snake-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.snake-hud { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 640px; }
.snake-hud .bar { min-width: 120px; }
.snake-wrap { position: relative; }
.snake-xp { width: 70px; }
.snake-xp .bar, .snake-hud .snake-xp .bar { height: 8px; min-width: 0; }
.snake-perks { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -45%); z-index: 5; width: min(560px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 6px; text-align: center; }
.snake-perk-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.snake-perk { flex-direction: column; gap: 4px; padding: 8px 6px; min-height: 120px; white-space: normal; text-align: center; }
.snake-perk .kbd { align-self: center; }
@media (max-width: 700px) {
  .snake-perk-list { grid-template-columns: 1fr; }
  .snake-perk { min-height: 0; }
  .snake-hud { flex-wrap: wrap; row-gap: 4px; }
  .snake-hud > .grow { order: 9; flex: 1 1 100%; }
}
.snake-canvas { border: 3px solid var(--copper-dk); box-shadow: 0 4px 0 #000; image-rendering: pixelated; touch-action: none; background: #2a2622; }
.snake-pad { display: none; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(2, 48px); gap: 6px; }
.snake-pad .btn { font-size: 20px; padding: 0; min-height: 0; }
.snake-pad .snake-up { grid-column: 2; grid-row: 1; }
.snake-pad .snake-left { grid-column: 1; grid-row: 2; }
.snake-pad .snake-down { grid-column: 2; grid-row: 2; }
.snake-pad .snake-right { grid-column: 3; grid-row: 2; }
@media (pointer: coarse), (max-width: 700px) { .snake-pad { display: grid; } }
/* the patrol */
.patrol-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.patrol-route { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; padding: 10px 6px; text-align: center; }
.patrol-route.selected { box-shadow: 0 0 0 3px var(--teal), 0 0 16px rgba(63, 224, 184, 0.45), inset 0 3px 0 var(--teal); }
.patrol-route-icon { font-size: 28px; }
/* the gauntlet */
.gaunt-floors { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.gaunt-floor { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; background: rgba(20, 15, 24, 0.85); border: 2px solid var(--line); min-width: 0; }
.gaunt-floor b { font-family: var(--font-title); font-size: 18px; }
.gaunt-floor.done { border-color: var(--teal); opacity: 0.75; }
.gaunt-floor.now { border-color: var(--gold); box-shadow: 0 0 12px rgba(245, 197, 66, 0.35); }
.gaunt-floor.boss b { color: var(--team-red); }
.gaunt-team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.gaunt-hero { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.gaunt-hero .bar { width: 100%; }
.gaunt-hero.fallen canvas, .gaunt-hero.fallen img { filter: grayscale(1) brightness(0.55); }
.gaunt-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.gaunt-choice { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; padding: 12px 10px; }
.gaunt-choice:hover:not([disabled]) { border-color: var(--gold); }
.gaunt-choice[disabled] { opacity: 0.5; cursor: default; }
.gaunt-choice-icon { font-size: 30px; }
.chip.relic { background: rgba(126, 87, 194, 0.25); border-color: #9a7ad8; }
@media (max-width: 700px) {
  .gaunt-floor span { display: none; }
  .gaunt-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bracket-match .bracket-watch { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); min-height: 0; min-width: 0; padding: 3px; }
.cup.running { box-shadow: inset 3px 0 0 var(--teal); }
.cup.done, .cup.cancelled { opacity: 0.75; }

/* The online status bar in a game (the other player left, reconnecting) */
.online-status { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); z-index: 7; display: flex; gap: 8px; align-items: center; padding: 6px 10px; font-size: var(--fs-s); background: rgba(20, 15, 24, 0.94); border: 2px solid var(--copper-dk); box-shadow: 0 4px 0 #000; max-width: 94vw; }
.online-status.hidden { display: none; }
.chronicle .chron-chat { margin-top: 6px; }
.chronicle .chron-chat .input { min-height: 32px; padding: 3px 8px; }
.chronicle .log .chat { font-weight: 700; }
/* voice chat: my microphone, the other player's state, a glow while they talk */
.chronicle .chron-voice { display: flex; flex-direction: column; gap: 4px; padding: 4px 6px; margin-bottom: 6px; border: 2px solid rgba(255, 255, 255, 0.12); border-radius: 4px; }
.chron-voice .vrow { display: flex; align-items: center; gap: 6px; min-height: 28px; }
.chron-voice .vpeer.talking { color: var(--teal); }
.chron-voice .vpeer.talking canvas { filter: drop-shadow(0 0 3px var(--teal)); }
.chron-voice .btn.muted-mic { border-color: var(--bad); }
.btn.voice-talk { box-shadow: 0 0 0 2px var(--teal), 0 0 10px var(--teal); }

/* Invitations (top of the screen, over everything but windows) */
#layer-pop { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 25; display: flex; flex-direction: column; gap: 8px; width: min(380px, 94vw); pointer-events: none; }
#layer-pop > * { pointer-events: auto; }
.invite-pop { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; animation: pop-in 0.25s ease-out; }
.invite-bar { height: 6px; }
@keyframes pop-in { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* The chat dock (full screen on phones) */
#layer-dock { position: fixed; right: 12px; bottom: 12px; z-index: 15; pointer-events: none; }
#layer-dock > * { pointer-events: auto; }
.chat-dock { width: min(360px, 94vw); height: min(480px, 70vh); display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; }
.chat-head { flex: none; }
.chat-older { align-self: center; flex: none; }
.chat-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 4px; background: var(--inset); border: 2px solid #000; -webkit-user-select: text; user-select: text; }
.chat-day { margin: 6px 0 2px; }
.chat-msg { align-self: flex-start; max-width: 82%; padding: 5px 8px; font-size: var(--fs-s); background: var(--panel-3); border: 2px solid #000; border-radius: 2px 10px 10px 10px; overflow-wrap: anywhere; }
.chat-msg.mine { align-self: flex-end; background: #1d4a40; border-radius: 10px 2px 10px 10px; }
.chat-emote { font-size: 26px; line-height: 1.1; }
.chat-meta { display: flex; gap: 4px; justify-content: flex-end; align-items: center; margin-top: 2px; }
.chat-unsend { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; padding: 0 2px; }
.chat-unsend:hover { color: var(--bad); }
.chat-send { flex: none; }
.chat-send .input { min-height: 34px; }
@media (max-width: 700px) {
  #layer-dock { inset: 0; }
  .chat-dock { width: 100%; height: 100%; }
  /* (between the client bar and the bottom bar, which sit above it: its header and its box always show) */
  .hub-bar-on #layer-dock { top: calc(var(--safe-t) + var(--hub-bar-h)); bottom: calc(var(--safe-b) + var(--hub-bottom-h)); }
}

/* 2v2: which teammate plays a champion */
.dr-owner { position: absolute; left: 2px; right: 2px; bottom: 1px; font-size: 9px; line-height: 1.1; color: var(--text-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 #000; pointer-events: none; }
.dr-owner.me { color: var(--teal); }

/* ------------------------------------------------ match stats (ui/match-stats.js) */

.ms { display: flex; flex-direction: column; gap: 14px; }
.ms .s0 { --side: var(--blue); --side-hi: var(--blue-hi); }
.ms .s1 { --side: var(--team-red); --side-hi: var(--team-red-hi); }
.ms-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ms-result { font-family: var(--font-title); font-size: calc(16px * var(--ui-scale)); line-height: 1.4; }
.ms-sec { display: flex; flex-direction: column; gap: 8px; }
.ms-sec > .h2 { margin: 0; }
.ms-ico { width: 14px; height: 14px; vertical-align: -2px; image-rendering: pixelated; flex: none; }
.ms-pic { position: relative; display: inline-grid; place-items: center; flex: none; background: radial-gradient(circle at 50% 38%, #3e3448, #1d1724 75%); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--side, var(--copper-dk)); }
.ms-pic canvas { display: block; image-rendering: pixelated; }
.ms-pic.dead canvas, .mh-hero.dead > canvas { filter: grayscale(1) brightness(0.75); opacity: 0.8; }
.ms-pic.empty { width: 44px; height: 44px; color: var(--muted); }
/* momentum */
.ms-chips { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
.ms-chip { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 4px 8px; background: var(--well, rgba(0, 0, 0, 0.25)); border: 2px solid var(--line); box-shadow: inset 3px 0 0 var(--side, var(--gold)); }
.ms-chip b { color: var(--side-hi, var(--text)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-chip small { font-size: var(--fs-xs); color: var(--muted); }
.ms-chip.mid { align-items: center; text-align: center; box-shadow: none; }
.ms-chip.mid b { color: var(--gold); font-size: 22px; }
.ms-plot { --text: #ece3d6; --muted: #8d7f72; position: relative; height: 190px; margin-right: 34px; color: var(--text); background: linear-gradient(180deg, #161224, #0b0a12); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line); touch-action: pan-y; cursor: crosshair; }
.ms-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ms-stop.s0.hi { stop-color: var(--blue); stop-opacity: 0.55; }
.ms-stop.s0.lo { stop-color: var(--blue); stop-opacity: 0.05; }
.ms-stop.s1.hi { stop-color: var(--team-red); stop-opacity: 0.55; }
.ms-stop.s1.lo { stop-color: var(--team-red); stop-opacity: 0.05; }
.ms-mid { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ms-tp { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.ms-line { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ms-line-shadow { fill: none; stroke: #000; stroke-width: 5; opacity: 0.6; vector-effect: non-scaling-stroke; }
.ms-tick { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ms-tag { position: absolute; left: 8px; font-size: var(--fs-xs); color: var(--side-hi); text-shadow: 0 1px 0 #000; pointer-events: none; }
.ms-tag.top { top: 6px; }
.ms-tag.bottom { bottom: 10px; }
.ms-even { position: absolute; right: 8px; top: 50%; transform: translateY(-120%); font-size: var(--fs-xs); color: var(--muted); pointer-events: none; }
.ms-end { position: absolute; right: -4px; transform: translate(100%, -50%); padding: 0 4px; font-family: var(--font-num); font-size: 18px; line-height: 1.2; color: #fff; background: #2a2433; border: 2px solid #000; pointer-events: none; }
.ms-end.s0 { background: var(--blue); }
.ms-end.s1 { background: var(--team-red); }
.ms-pin { position: absolute; width: 0; height: 0; pointer-events: none; }
.ms-pin-dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; background: var(--gold); border: 2px solid #000; transform: rotate(45deg); }
.ms-flag { position: absolute; left: 8px; bottom: 6px; white-space: nowrap; padding: 1px 5px; font-size: var(--fs-xs); color: #1c1206; background: var(--gold); border: 2px solid #000; }
.ms-pin.left .ms-flag { left: auto; right: 8px; }
.ms-pin.below .ms-flag { bottom: auto; top: 6px; }
.ms-plot.hovering .ms-pin { opacity: 0.45; }
.ms-cursor { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid rgba(255, 255, 255, 0.6); pointer-events: none; }
.ms-cursor-dot { position: absolute; left: -5px; width: 10px; height: 10px; margin-top: -5px; background: #fff; border: 2px solid #000; }
.ms-tip { position: absolute; top: 8px; z-index: 2; width: max-content; max-width: min(280px, 70vw); display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; font-size: var(--fs-s); color: #ece3d6; background: rgba(16, 12, 22, 0.96); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--copper-dk), 0 4px 0 rgba(0, 0, 0, 0.5); pointer-events: none; }
.ms-tip-head { display: flex; justify-content: space-between; gap: 10px; }
.ms-lead { color: #c8c2d4; }
.ms-lead.s0 { color: #8cc0ff; }
.ms-lead.s1 { color: #ff9a9a; }
.ms-tip-move { display: flex; align-items: center; gap: 6px; }
.ms-tip-move .ms-pic { border-width: 1px; }
.ms-tip-why { color: #f5c542; }
.ms-tip-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 4px; }
.ms-tip-sides > div { display: flex; flex-direction: column; min-width: 0; }
.ms-tip-sides b { font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-tip-sides .s0 b { color: #8cc0ff; }
.ms-tip-sides .s1 b { color: #ff9a9a; }
.ms-tip-sides small { font-size: var(--fs-xs); color: #b4ac9b; }
.ms-hint { position: absolute; right: 8px; bottom: 10px; color: var(--muted); pointer-events: none; }
.ms-plot.hovering .ms-hint { display: none; }
.ms-turns { position: relative; height: 16px; margin-right: 34px; }
.ms-turns span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ms-turns span:first-child { transform: none; }
.ms-turns span:last-child { transform: translateX(-100%); }
.ms-note { margin: 0; color: var(--gold); }
/* highlights */
.ms-awards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ms-award { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; text-align: center; background: var(--well, rgba(0, 0, 0, 0.22)); border: 2px solid var(--line); box-shadow: inset 0 3px 0 var(--side, var(--line)); min-width: 0; }
.ms-award-top { display: flex; align-items: center; gap: 4px; color: var(--text-2); }
.ms-award-n { font-size: 26px; color: var(--side-hi, var(--text)); }
.ms-award small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* team against team */
.ms-vs { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ms-vs .s0 { color: var(--blue-hi); }
.ms-vs .s1 { color: var(--team-red-hi); }
.ms-tugs { display: flex; flex-direction: column; gap: 4px; }
.ms-tug { display: grid; grid-template-columns: minmax(110px, 160px) 56px minmax(0, 1fr) 56px; align-items: center; gap: 8px; }
.ms-tug.zero { opacity: 0.45; }
.ms-tug-label { display: flex; align-items: center; gap: 5px; color: var(--text-2); }
.ms-n { font-size: 20px; }
.ms-n.s0 { text-align: right; color: var(--blue-hi); }
.ms-n.s1 { color: var(--team-red-hi); }
.ms-n { display: inline-flex; align-items: center; gap: 3px; }
.ms-n.s0 { justify-content: flex-end; }
/* the side ahead on that number: a gold crown, before the number on the blue side and after it on the red */
.ms-n.s0.lead::before, .ms-n.s1.lead::after { content: ''; flex: none; width: 15px; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M2 6l5 4.5L12 2l5 8.5L22 6l-2 11H4z' fill='%23f5c542' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M4.6 14.5h14.8' stroke='%23b8862b' stroke-width='1.4'/%3E%3Ccircle cx='12' cy='2.4' r='1.6' fill='%23f5c542' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat; }
.ms-tug-bar { display: flex; height: 12px; background: #0b080d; border: 2px solid #000; overflow: hidden; }
.ms-tug-bar i { display: block; height: 100%; }
.ms-tug-bar i.s0 { background: var(--blue); }
.ms-tug-bar i.s1 { background: var(--team-red); }
/* every champion */
.ms-legend { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-2); }
.ms-key { display: inline-flex; align-items: center; gap: 4px; }
.ms-key i { width: 12px; height: 10px; border: 1px solid #000; }
.ms-key.basic i, .ms-dmgbar i.basic { background: #c8c2d4; }
.ms-key.skill i, .ms-dmgbar i.skill { background: #3fe0b8; }
.ms-key.ult i, .ms-dmgbar i.ult { background: #f5a623; }
.ms-key.other i, .ms-dmgbar i.other { background: #b56cff; }
.ms-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ms-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ms-side-head { font-weight: 700; color: var(--side-hi); box-shadow: inset 0 -2px 0 var(--side); padding-bottom: 2px; }
.ms-hero { display: flex; gap: 8px; align-items: center; min-width: 0; }
.ms-hero.dead .ms-hero-name b:first-child { text-decoration: line-through; opacity: 0.7; }
.ms-hero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ms-hero-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.ms-hero-name b:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-hero-dmg { margin-left: auto; font-size: 20px; color: var(--side-hi); }
.ms-dmgbar { display: flex; height: 14px; background: #0b080d; border: 2px solid #000; overflow: hidden; }
.ms-dmgbar i { display: grid; place-items: center; height: 100%; font-style: normal; font-family: var(--font-num); font-size: 14px; line-height: 1; color: #1c1206; overflow: hidden; }
.ms-minis { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--text-2); }
.ms-mini { display: inline-flex; align-items: center; gap: 3px; }
.ms-mini.zero { opacity: 0.4; }
@media (max-width: 700px) {
  .ms-awards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ms-sides { grid-template-columns: 1fr; }
  .ms-tug { grid-template-columns: 84px 40px minmax(0, 1fr) 40px; gap: 4px; }
  .ms-n { font-size: 17px; }
  .ms-plot { height: 160px; }
  .ms-chips { grid-template-columns: 1fr 1fr; }
  .ms-chip.mid { grid-column: span 2; grid-row: 2; flex-direction: row; gap: 6px; justify-content: center; }
  .ms-hint { display: none; }
}

/* ------------------------------------------------ the match history's details (profile) */

.mh-row { cursor: pointer; }
.mh-unit { position: relative; display: inline-block; line-height: 0; }
.mh-unit.dead canvas { filter: grayscale(1) brightness(0.6); opacity: 0.75; }
.mh-unit.mvp canvas { filter: drop-shadow(0 0 3px var(--gold)); }
.mh-unit.mvp.dead canvas { filter: grayscale(1) brightness(0.6) drop-shadow(0 0 3px var(--gold)); }
.mh-row .mh-chev { flex: none; color: var(--muted); transition: transform 0.15s; }
.mh-row.open { border-color: var(--teal); }
.mh-row.open .mh-chev { transform: rotate(180deg); color: var(--teal); }
.mh-detail { margin: -2px 0 4px; display: flex; flex-direction: column; gap: 8px; animation: fade-in 0.15s ease-out; }
.mh-detail .s0 { --side: var(--blue); --side-hi: var(--blue-hi); }
.mh-detail .s1 { --side: var(--team-red); --side-hi: var(--team-red-hi); }
.mh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mh-head .chip { gap: 4px; }
.mh-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mh-team { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; background: var(--well, rgba(0, 0, 0, 0.18)); border: 2px solid var(--line); box-shadow: inset 0 3px 0 var(--side); min-width: 0; }
.mh-team.won { border-color: var(--gold); }
.mh-team-head { display: flex; align-items: center; gap: 6px; color: var(--side-hi); }
.mh-hero { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.mh-hero.dead .mh-hero-name b { text-decoration: line-through; opacity: 0.7; }
.mh-hero canvas { image-rendering: pixelated; }
.mh-hero-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.mh-hero-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-mvp { padding: 0 4px; color: #1c1206; background: var(--gold); border: 1px solid #000; }
.mh-nums, .mh-total { display: flex; gap: 8px; align-items: center; }
.mh-nums span, .mh-total span { display: inline-flex; align-items: center; gap: 3px; }
.mh-total { justify-content: flex-end; padding-top: 4px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 700px) {
  .mh-teams { grid-template-columns: 1fr; }
  .mh-row { flex-wrap: wrap; }
  .mh-row > .row.grow { order: 9; flex: 1 1 100%; }
}

/* The patrol at a glance (ui/patrol-widget.js): bottom right, on the screens that aren't the patrol's */
.patrol-widget { position: fixed; right: calc(12px + var(--safe-r)); bottom: calc(12px + var(--safe-b)); z-index: 14; width: min(250px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 3px; padding: 5px 8px; text-align: left; color: var(--text); font: inherit; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45); }
.patrol-widget:hover { border-color: var(--teal); }
.pw-head { display: flex; justify-content: space-between; gap: 8px; }
.pw-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.pw-row .bar { height: 10px; }
.pw-row .bar > b { font-size: 13px; }
.pw-row.s0 .pw-name { color: var(--blue-hi); }
.pw-row.s1 .pw-name { color: var(--team-red-hi); }
.pw-foot { text-align: right; }
.bar.hp.team.mine > i { background: linear-gradient(180deg, #8cc0ff, #3b82f6); }
.bar.hp.team.theirs > i { background: linear-gradient(180deg, #ff9a9a, #c8342c); }

/* The replay controls (match.js): over the board, as wide as the screen allows */
.replay-bar { position: absolute; left: 50%; transform: translateX(-50%); top: 58px; z-index: 6; display: flex; flex-direction: column; gap: 6px; padding: 4px 8px; width: min(980px, calc(100vw - 12px)); }
/* the replay's box (the old game's controls): first, back, play, forward, last, speed, chronicle | where it is and what happened | Exit */
.rp-top { display: flex; align-items: center; gap: 10px; }
.rp-controls { display: flex; gap: 4px; flex: 0 0 auto; }
.rp-btn { min-width: 40px; min-height: 36px; padding: 2px 6px; font-size: 16px; }
.rp-btn.play { min-width: 48px; }
.rp-btn.play.on, .rp-btn.chron.on { color: var(--gold); }
.rp-btn.speed { font-family: var(--font-num); font-size: 18px; }
.rp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rp-pos { font-size: var(--fs-xs); color: var(--text-2); }
.rp-caption { font-size: var(--fs-s); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-caption.p0 { color: var(--blue-hi); }
.rp-caption.p1 { color: var(--team-red-hi); }
.rp-exit { flex: 0 0 auto; }
.narrow .rp-top { flex-wrap: wrap; gap: 4px; }
.narrow .rp-info { order: 3; flex-basis: 100%; }
.narrow .rp-btn { min-width: 32px; min-height: 32px; padding: 1px 4px; font-size: 14px; }
/* the replay's timeline: a mark per move, in the side's colour; a skull where someone fell */
.replay-timeline { flex: 1 1 100%; width: min(900px, calc(100vw - 40px)); overflow-x: auto; overflow-y: hidden; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.6); scrollbar-width: thin; }
/* the old Eriband's replay line: blue moves above the axis, red below, the fallen on the outer rows */
.tl-track { position: relative; height: 104px; margin: 0 14px; }
.tl-zone { position: absolute; top: 0; bottom: 0; border-left: 2px dashed rgba(255, 246, 220, 0.22); }
.tl-zone:first-child { border-left: 0; }
.tl-zone span { position: absolute; z-index: 2; top: 50%; left: 4px; transform: translateY(-50%); padding: 1px 4px; font-size: 8px; line-height: 1.2; color: #f6e2b4; background: rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 246, 220, 0.25); white-space: nowrap; pointer-events: none; }
.tl-zone.draft { background: rgba(120, 140, 255, 0.07); }
.tl-zone.place { background: rgba(242, 193, 78, 0.1); }
.tl-zone.battle { background: rgba(208, 70, 60, 0.08); }
.tl-axis { position: absolute; left: -14px; right: -14px; top: 50%; height: 6px; margin-top: -3px; background: repeating-linear-gradient(90deg, #6b4a2e 0 12px, #3d2a1b 12px 14px); box-shadow: 0 0 0 2px #000; }
.tl-head { position: absolute; top: 0; bottom: 0; z-index: 4; width: 4px; margin-left: -2px; background: linear-gradient(#ffe48a, var(--gold)); box-shadow: 0 0 0 1px #000, 0 0 10px var(--gold); pointer-events: none; transition: left 0.15s; }
.reduce-motion .tl-head { transition: none; }
.tl-head::before, .tl-head::after { content: ''; position: absolute; left: 50%; width: 10px; height: 10px; margin-left: -5px; background: var(--gold); box-shadow: 0 0 0 1px #000; transform: rotate(45deg); }
.tl-head::before { top: -5px; }
.tl-head::after { bottom: -5px; }
.tl-mark { position: absolute; z-index: 3; width: 24px; height: 24px; min-width: 0; min-height: 0; margin-left: -12px; padding: 1px; background: #2a2230; border: 2px solid #6b6478; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); cursor: pointer; opacity: 0.55; }
.tl-mark canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.tl-mark.s0 { top: 20px; }
.tl-mark.s1 { bottom: 20px; }
/* the stick to the axis, in the team's colour */
.tl-mark::after { content: ''; position: absolute; left: 50%; width: 2px; height: 5px; margin-left: -1px; pointer-events: none; }
.tl-mark.s0::after { top: 100%; margin-top: 2px; background: var(--blue); }
.tl-mark.s1::after { bottom: 100%; margin-bottom: 2px; background: var(--team-red); }
.tl-mark.k-atk { border-color: #e0453c; }
.tl-mark.k-skl { border-color: #a070ff; }
.tl-mark.k-ult { border-color: #ff8a1e; box-shadow: 0 0 8px rgba(255, 138, 30, 0.8); }
.tl-mark.k-mov { border-color: #5fcf6e; }
.tl-mark.k-place { border-color: var(--gold); }
.tl-mark.k-def { border-color: #9fe6ff; }
.tl-mark.k-pick { border-color: #f6e2b4; }
.tl-mark.k-ban { border-color: #3a3a3a; }
.tl-mark.k-ban canvas { filter: grayscale(1) brightness(0.6); }
.tl-mark.past { opacity: 0.8; }
.tl-mark.has-kill { box-shadow: 0 0 0 2px #ff3b3b, 0 0 10px rgba(255, 59, 59, 0.8); }
.tl-mark.now { z-index: 5; opacity: 1; transform: scale(1.3); box-shadow: 0 0 0 2px #fff, 0 0 12px var(--gold); }
.tl-mark:hover, .tl-mark:focus-visible, .tl-victim:hover, .tl-victim:focus-visible { opacity: 1; z-index: 6; transform: scale(1.2); }
.tl-glyph { display: grid; place-items: center; height: 100%; font-size: 13px; line-height: 1; color: #f6e2b4; }
.tl-ban { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; font-style: normal; color: #ff5a5a; text-shadow: 0 1px 0 #000; pointer-events: none; }
.tl-ult { position: absolute; top: -10px; right: -9px; font-size: 11px; font-style: normal; filter: drop-shadow(1px 1px 0 #000); pointer-events: none; }
.tl-victim { position: absolute; z-index: 2; width: 18px; height: 18px; min-width: 0; min-height: 0; margin-left: -9px; padding: 1px; background: #1d1724; border: 2px solid; opacity: 0.4; cursor: pointer; }
.tl-victim canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.tl-victim.s0 { top: 0; border-color: var(--blue); }
.tl-victim.s1 { bottom: 0; border-color: var(--team-red); }
.tl-victim.seen { opacity: 0.85; }
.tl-victim i { position: absolute; right: -6px; bottom: -5px; font-size: 9px; font-style: normal; color: #fff; text-shadow: 0 1px 0 #000, 0 0 2px #000; pointer-events: none; }
.narrow .replay-timeline { width: auto; }
.narrow .tl-track { height: 84px; }
.narrow .tl-mark { width: 20px; height: 20px; margin-left: -10px; }
.narrow .tl-mark.s0 { top: 16px; }
.narrow .tl-mark.s1 { bottom: 16px; }
.narrow .tl-victim { width: 15px; height: 15px; margin-left: -7px; }
.narrow .replay-bar { width: calc(100vw - 12px); top: 54px; }
.narrow .replay-bar .btn.small { min-width: 38px; padding: 2px 6px; }
.narrow .replay-bar .btn .kbd { display: none; }

/* ------------------------------------------------ looks (meta/cosmetics.js): faction frames, the Looks tab */

.playercard.frame-order, .card.frame-order, .look-frame.frame-order { box-shadow: 0 0 0 2px #fff6dc, 0 0 0 4px #d9b45a, 0 0 12px rgba(245, 197, 66, 0.45); }
.playercard.frame-wild, .card.frame-wild, .look-frame.frame-wild { box-shadow: 0 0 0 2px #2f7a3a, 0 0 0 4px #7fd35f, 0 0 12px rgba(95, 191, 74, 0.45); }
.playercard.frame-arcane, .card.frame-arcane, .look-frame.frame-arcane { box-shadow: 0 0 0 2px #4a2a8a, 0 0 0 4px #b48cff, 0 0 14px rgba(181, 108, 255, 0.55); }
.playercard.frame-shadow, .card.frame-shadow, .look-frame.frame-shadow { box-shadow: 0 0 0 2px #0c0a10, 0 0 0 4px #8a4b9a, 0 0 14px rgba(60, 20, 80, 0.8); }
.look-emoji { font-size: 40px; line-height: 1; }
.look-frame { display: block; width: 52px; height: 36px; background: linear-gradient(160deg, #3a3044, #1d1724); border: 2px solid #000; }


/* The profile's numbers per mode (profile.js record) */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.stat-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; background: var(--well, rgba(0, 0, 0, 0.22)); border: 2px solid var(--line); text-align: center; min-width: 0; }
.stat-tile b { font-size: 22px; line-height: 1; }
.role-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 36px; align-items: center; gap: 6px; }
.role-row .bar { height: 8px; }

/* Saved teams (profile > Teams) */
.team-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.team-slot { aspect-ratio: 1; display: grid; place-items: center; padding: 0; background: var(--inset); border: 2px dashed var(--line); cursor: pointer; }
.team-slot.filled { border-style: solid; border-color: #000; background: radial-gradient(circle at 50% 38%, #3e3448, #1d1724 75%); }
.team-slot canvas { width: 80%; height: 80%; image-rendering: pixelated; }
.team-row canvas { image-rendering: pixelated; }

/* The emote wheel (match.js): a sphere around your mascot, the 12 emotes on its rim */
.modal-back:has(.emote-wheel-modal) { background: rgba(5, 3, 7, 0.25); }
.modal.emote-wheel-modal { width: auto; background: none; border: 0; border-image: none; box-shadow: none; padding: 0; }
.modal.emote-wheel-modal::before, .modal.emote-wheel-modal::after { display: none; }
.emote-wheel-modal .modal-body { overflow: visible; padding: 0; }
.emote-wheel {
  /* a ring: a stone band rimmed in copper, hollow in the middle (the mascot shows through) */
  position: relative; width: 216px; height: 216px; border-radius: 50%; box-sizing: border-box;
  border: 52px solid #262030; background: none;
  box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--copper-dk), 0 0 0 8px #000, 0 12px 26px rgba(0, 0, 0, 0.5),
    inset 0 0 0 3px #000, inset 0 0 0 6px var(--copper-dk), inset 0 0 0 8px #000;
  animation: wheel-in 0.16s ease-out;
}
@keyframes wheel-in { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
/* the emotes on the band, no boxes (positions are from the wheel's outer corner) */
.emote-orb {
  position: absolute; width: 44px; height: 44px; margin: -74px 0 0 -74px; padding: 0;
  display: grid; place-items: center; font-size: 26px; line-height: 1;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.7)); transition: transform 0.1s;
}
.emote-orb:hover, .emote-orb:focus-visible { transform: scale(1.3); background: radial-gradient(circle, rgba(245, 197, 66, 0.5), rgba(245, 197, 66, 0) 70%); outline: none; }
/* the hollow middle: a click closes the wheel */
.emote-hub { position: absolute; left: 50%; top: 50%; width: 100px; height: 100px; margin: -50px 0 0 -50px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.emote-hub:focus-visible { outline: 2px dashed rgba(245, 197, 66, 0.7); }
/* the pointed emote's name, on a tag under the ring */
.emote-name {
  position: absolute; left: 50%; top: calc(100% + 52px + 10px); transform: translateX(-50%); white-space: nowrap;
  padding: 3px 10px; font-size: 12px; color: var(--gold); background: #17121d; border: 2px solid #000; box-shadow: 0 0 0 2px var(--copper-dk);
  pointer-events: none;
}
/* the wheel's two pages (emotes, the chat wheel's phrases): two tabs over the ring */
.wheel-pages { position: absolute; left: 50%; bottom: calc(100% + 52px + 10px); transform: translateX(-50%); display: flex; gap: 4px; }
.wheel-page { width: 34px; height: 28px; padding: 0; font-size: 16px; line-height: 1; cursor: pointer; background: #17121d; border: 2px solid #000; box-shadow: 0 0 0 2px var(--copper-dk); opacity: 0.65; }
.wheel-page.on { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }
.wheel-page:hover, .wheel-page:focus-visible { opacity: 1; outline: none; }
/* the phrases: pills beside the ring, their words outward */
.phrase-pill {
  position: absolute; margin: -52px 0 0 -52px; padding: 5px 10px; white-space: nowrap; cursor: pointer;
  font: inherit; font-size: 12px; color: var(--text, #ece3d6); background: #17121d; border: 2px solid #000; box-shadow: 0 0 0 2px var(--copper-dk), 0 4px 0 rgba(0, 0, 0, 0.45);
  animation: wheel-in 0.16s ease-out;
}
.phrase-pill.r { transform: translate(0, -50%); }
.phrase-pill.l { transform: translate(-100%, -50%); }
.phrase-pill:hover, .phrase-pill:focus-visible { color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 4px 0 rgba(0, 0, 0, 0.45); outline: none; }
.mascot-btn { padding: 0; background: none; border: 0; border-radius: 6px; cursor: pointer; }
.mascot-btn:hover, .mascot-btn:focus-visible { outline: 2px dashed rgba(242, 193, 78, 0.8); outline-offset: -2px; }

/* The game's cursors (platform/cursors.js; Settings > Display). Without them: the system's. */
.game-cursors body { cursor: var(--cur-arrow), auto; }
.game-cursors :is(button, a, select, summary, label, [role="tab"], .toggle, input[type="range"], input[type="checkbox"], .champ-tile, .card, .list-item):not(:disabled) { cursor: var(--cur-hand), pointer; }
.game-cursors :is(button, .champ-tile, .card):disabled, .game-cursors .champ-tile.disabled { cursor: var(--cur-forbid, var(--cur-arrow)), not-allowed; }
.game-cursors .chron-grip, .game-cursors .emblem-stage canvas { cursor: var(--cur-grab, var(--cur-hand)), grab; }
.game-cursors .chron-grip:active, .game-cursors .emblem-stage canvas:active { cursor: var(--cur-grabbing, var(--cur-hand)), grabbing; }
.game-cursors :is(input[type="text"], input[type="email"], input[type="password"], input:not([type]), textarea) { cursor: text; }
.game-cursors [data-tip]:not(button):not(.cell-btn) { cursor: var(--cur-look), help; }
.game-cursors .cell-btn:disabled, .game-cursors .cell-btn[data-cur=""] { cursor: var(--cur-arrow), default; }
.game-cursors .cell-btn[data-cur="hand"] { cursor: var(--cur-hand), pointer; }
.game-cursors .cell-btn[data-cur="look"] { cursor: var(--cur-look), help; }
.game-cursors .cell-btn[data-cur="sword"] { cursor: var(--cur-sword), crosshair; }
.game-cursors .cell-btn[data-cur="wand"] { cursor: var(--cur-wand), pointer; }
.game-cursors .cell-btn[data-cur="ult"] { cursor: var(--cur-ult), pointer; }
.game-cursors .cell-btn[data-cur="boot"] { cursor: var(--cur-boot), pointer; }
.game-cursors .cell-btn[data-cur="ally"] { cursor: var(--cur-ally), pointer; }
.game-cursors .cell-btn[data-cur="place"] { cursor: var(--cur-place), pointer; }
.game-cursors .ms-plot { cursor: var(--cur-look), crosshair; }
/* the walking boots over a square to move to (platform/cursors.js) */
.walk-cursor { position: fixed; left: 0; top: 0; z-index: 100000; width: 32px; height: 32px; pointer-events: none; image-rendering: pixelated; }
.walk-cursor.painted { width: 24px; height: 24px; image-rendering: auto; } /* (Neon's cursors are 24 px) */
.walking .cell-btn[data-cur="boot"] { cursor: none; }

/* the docked chronicle's grip (drag to resize, double click to reset) */
.chron-grip { display: none; }
.chronicle.docked { position: absolute; }
.chronicle.docked .chron-grip { display: grid; place-items: center; position: absolute; left: 50%; top: -9px; width: 72px; height: 14px; margin-left: -36px; z-index: 2; cursor: ns-resize; touch-action: none;
  background: #17121f; border: 2px solid #000; box-shadow: 0 0 0 1px rgba(255, 246, 220, 0.15); }
.chronicle.docked .chron-grip i { width: 34px; height: 4px; background: repeating-linear-gradient(90deg, var(--copper-hi) 0 4px, transparent 4px 7px); }
.chronicle.docked .chron-grip:hover i { background: repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 7px); }
.game-cursors .chronicle.docked .chron-grip { cursor: ns-resize; }
/* "X's Ultimate is ready" and the auto fight lines */
.chronicle .log .lg.lg-ultready { padding: 1px 8px; color: #ffe2b0; background: linear-gradient(90deg, rgba(255, 154, 60, 0.22), rgba(255, 211, 107, 0.06) 70%); border-left-color: #ffb15e; }
.chronicle .log .lg.lg-ultready .lg-txt::before { content: '⚡ '; }
.chronicle .log .lg.lg-auto { padding: 2px 8px; font-weight: 700; color: #e8fbff; text-shadow: 1px 1px 0 #0a3a48;
  background: repeating-linear-gradient(90deg, rgba(42, 138, 160, 0.55) 0 10px, rgba(47, 150, 173, 0.55) 10px 20px); border-left-color: #7ff0ff; }
.chronicle .log .lg.lg-auto .lg-txt::before { content: '🤖 '; }
.chronicle .log .lg.lg-warn[data-tip] { cursor: help; }
.game-cursors .chronicle .log .lg.lg-warn[data-tip] { cursor: var(--cur-look), help; }
/* the sudden death bubble */
.sd-tip { display: flex; flex-direction: column; gap: 3px; min-width: 220px; }
.sd-head { display: flex; align-items: center; gap: 6px; color: #ffd36b; }
.sd-skull { font-size: 18px; }
.sd-step { display: flex; justify-content: space-between; gap: 12px; padding: 1px 6px; font-size: 12px; background: rgba(229, 72, 77, 0.1); border-left: 3px solid rgba(229, 72, 77, 0.5); }
.sd-step b { color: #ff8a80; font-family: var(--font-num); font-size: 15px; font-weight: normal; }
.sd-step.now { background: rgba(229, 72, 77, 0.3); border-left-color: #ff4a3a; }
/* the game's length at the end */
.res-length { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-family: var(--font-num); font-size: 18px; }
.res-length canvas, .res-length img { width: 16px; height: 16px; image-rendering: pixelated; }

/* Big desktop windows: with Settings > Display > "Screens in a window" (.screen-box), every screen (but
   the menu, a match and the snake) is one centred window over the city, the city dimmed around it, its
   head a band; with it off, the panels alone. Either way the content is centred */
@media (min-width: 1100px) and (min-height: 620px) {
  .screen-box .screen.win {
    inset: calc(14px + var(--safe-t)) 0 calc(14px + var(--safe-b));
    width: min(1240px, calc(100vw - 56px));
    margin: 0 auto;
    background: rgba(20, 15, 24, 0.95);
    border: 3px solid #000;
    box-shadow: inset 0 0 0 2px var(--copper-dk), inset 0 0 0 4px #000, 0 0 0 100vmax rgba(8, 6, 12, 0.42), 0 14px 40px rgba(0, 0, 0, 0.6);
  }
  .screen-box .screen.win > .screen-head {
    padding: 10px 20px;
    min-height: 64px;
    background: linear-gradient(rgba(46, 33, 44, 0.95), rgba(28, 20, 32, 0.95));
    border-bottom: 2px solid var(--copper-dk);
    box-shadow: 0 2px 0 #000;
    margin-bottom: 10px;
  }
  .screen-box .screen.win .screen-body { padding: 8px 28px 26px; }
  .screen-box .screen.win .screen-foot { border-top: 2px solid var(--copper-dk); background: rgba(28, 20, 32, 0.9); }
  .screen.win .grid.wide { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  /* the menu's lower panels and a match's rosters come in from the edges, around a centred column */
  .menu-corner.bl { left: max(12px, calc(50% - 720px)); }
  .menu-corner.br { right: max(12px, calc(50% - 720px)); }
  .roster.left { left: max(8px, calc(50% - 720px)); }
  .roster.right { right: max(8px, calc(50% - 720px)); }
  .draft-layer .dr { width: min(1480px, 100%); margin: 0 auto; }
  /* the hub page (inde2.html): its bars stay full width, the windows and its home sit centred between them */
  .screen-box.hub-bar-on #app > .screen.win { top: calc(var(--safe-t) + var(--hub-bar-h) + 14px); bottom: calc(var(--safe-b) + var(--hub-bottom-h) + 14px); }
  .hub-bar-on #app > .screen-menu.hub { left: 0; right: 0; width: min(1480px, 100%); margin: 0 auto; }
}

/* the CPU thinking (match header): three dots that come and go */
.think-dots i { font-style: normal; animation: think-dot 1.2s steps(1) infinite; }
.think-dots i:nth-child(2) { animation-delay: 0.2s; }
.think-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes think-dot { 0%, 100% { opacity: 0.15; } 30%, 70% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .think-dots i { animation: none; } }
.reduce-motion .think-dots i { animation: none; }

/* Mascots on patrol: a slot per mascot (its picture, name, rarity and boost), and the picker */
.pet-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pet-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; max-height: 60vh; overflow-y: auto; padding: 2px; }
.pet-tile { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 8px; color: var(--text); font: inherit; text-align: left; background: var(--panel-3); border: 2px solid #000; box-shadow: inset 0 0 0 2px var(--line); }
button.pet-tile { cursor: pointer; }
button.pet-tile:hover { filter: brightness(1.12); }
.pet-tile.r-rare { box-shadow: inset 0 0 0 2px var(--rarity-rare); }
.pet-tile.r-epic { box-shadow: inset 0 0 0 2px var(--rarity-epic); }
.pet-tile.r-legendary { box-shadow: inset 0 0 0 2px var(--rarity-legendary), 0 0 10px rgba(245, 166, 35, 0.35); }
.pet-tile.empty { border-style: dashed; border-color: var(--line); box-shadow: none; background: rgba(20, 15, 24, 0.6); }
.pet-tile.selected { outline: 2px solid var(--teal); }
.pet-tile.taken { opacity: 0.5; cursor: default; }
.pet-taken { position: absolute; right: 6px; top: 4px; color: var(--muted); }
.pet-pic { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; background: var(--inset); border: 2px solid #000; }
.pet-pic canvas { width: 44px; height: 44px; image-rendering: pixelated; }
.pet-pic.empty { font-size: 24px; color: var(--muted); }
.pet-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pet-info b { font-size: var(--fs-s); }
.pet-info small { font-size: var(--fs-xs); }

/* Daily quests with the week (like Dragonscape Idle's): the time left, the week's bar and its chests, the days, a card per quest */
.week-left { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-family: var(--font-num); font-size: 18px; color: var(--gold); background: var(--inset); border: 2px solid #000; }
.wk-box { gap: 10px; }
.wk-pct { font-family: var(--font-title); font-size: calc(16px * var(--ui-scale)); color: var(--gold); text-shadow: 0 2px 0 #000; }
.wk-bar { position: relative; height: 118px; margin: 0 4px; }
.wk-track { position: absolute; left: 0; right: 0; top: 23px; height: 8px; background: #0b080d; border: 2px solid #000; }
.wk-fill { display: block; height: 100%; background: linear-gradient(90deg, #c98f2a, var(--gold)); }
.wk-nodes { position: absolute; inset: 0; }
.wk-node { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; color: var(--text); font: inherit; background: none; border: none; cursor: default; }
.wk-node.ready { cursor: pointer; }
/* each chest on its own framed square tile (the game's copper frame): dimmed until reached, then a gold
   glow and a little hop; opened, a green frame and a check */
.wk-chest { position: relative; display: grid; place-items: center; width: 54px; height: 54px; background: linear-gradient(180deg, #3a2f44, #1e1826); border: 9px solid var(--copper-dk); border-image: var(--frame-button) 9 fill / 9px / 0 stretch; image-rendering: pixelated; filter: grayscale(0.75) brightness(0.65); }
.wk-chest canvas { width: 30px; height: 30px; image-rendering: pixelated; }
.wk-node.ready .wk-chest { filter: none; box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(245, 197, 66, 0.55); animation: wk-hop 1.2s steps(2) infinite; }
.wk-node.ready:hover .wk-chest { filter: brightness(1.2); }
.wk-node.claimed .wk-chest { filter: none; box-shadow: 0 0 0 2px var(--good); }
.wk-node.claimed .wk-chest canvas { opacity: 0.75; }
@keyframes wk-hop { 50% { transform: translateY(-3px); } }
.wk-check { position: absolute; right: -14px; bottom: -14px; display: grid; place-items: center; width: 20px; height: 20px; font-size: 13px; font-weight: 700; color: #fff; background: #3f9e3a; border: 2px solid #000; }
.wk-at { color: var(--text-2); }
.wk-prize { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.wk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; background: var(--panel-3); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.wk-day b { font-size: var(--fs-xs); white-space: nowrap; }
.wk-day small { font-size: 11px; color: var(--text-2); }
.wk-day.full b { color: var(--good); }
.wk-day.today { box-shadow: inset 0 0 0 2px var(--gold); }
.wk-day.today b { color: var(--gold); }
.wk-day.later { opacity: 0.6; }
.quest-card { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; background: var(--panel-3); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line); }
.quest-card.done { box-shadow: inset 0 0 0 2px var(--gold); }
.quest-card.claimed { opacity: 0.6; }
.qc-pic { display: grid; place-items: center; width: 62px; height: 62px; background: var(--inset); border: 2px solid #000; }
.qc-pic canvas { width: 36px; height: 36px; image-rendering: pixelated; }
.qc-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qc-title { font-weight: 700; }
.qc-prog { display: flex; align-items: center; gap: 10px; }
.qc-prog .bar { flex: 1; height: 10px; }
.qc-prog .bar > b { display: none; }
.qc-n { font-family: var(--font-num); font-size: 18px; color: var(--text-2); white-space: nowrap; }
.qc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.qc-rewards { display: flex; gap: 6px; flex-wrap: wrap; }
.qchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-family: var(--font-num); font-size: 17px; color: var(--text); background: var(--inset); border: 2px solid #000; white-space: nowrap; }
.qchip canvas { width: 16px; height: 16px; image-rendering: pixelated; }
.qchip.xp { color: var(--teal-hi); box-shadow: inset 0 0 0 1px var(--teal-dk); }
.qchip.gems { color: #9fd8ff; }
.qchip.coins { color: var(--gold); }
.qc-go { min-width: 110px; }
@media (max-width: 700px) {
  .wk-bar { margin: 0; height: 128px; }
  .wk-prize { flex-direction: column; gap: 1px; }
  .wk-chest { width: 44px; height: 44px; border-width: 7px; border-image-width: 7px; }
  .wk-chest canvas { width: 24px; height: 24px; }
  .wk-track { top: 18px; }
  .wk-prize .qchip { font-size: 13px; padding: 1px 4px; }
  .wk-days { gap: 3px; }
  .wk-day b { font-size: 10px; }
  .quest-card { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .qc-pic { width: 48px; height: 48px; }
}

/* A roster row's card (battle): its numbers, each with where it comes from, and its items */
.st-tip { width: 300px; max-width: 80vw; display: flex; flex-direction: column; gap: 8px; white-space: normal; }
.st-head { display: flex; align-items: center; gap: 8px; }
.st-head canvas { width: 32px; height: 32px; image-rendering: pixelated; }
.st-head b { display: block; font-size: var(--fs-s); }
.st-head small { color: var(--gold); font-size: var(--fs-xs); }
.st-rows { display: flex; flex-direction: column; gap: 3px; }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; align-items: baseline; padding: 2px 0; border-bottom: 1px solid var(--line); }
.st-l { font-size: var(--fs-xs); color: var(--text-2); }
.st-v { font-family: var(--font-num); font-size: 18px; color: var(--text); text-align: right; }
.st-parts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.st-part { font-size: 11px; color: var(--muted); }
.st-part.item { color: var(--teal-hi); }
.st-part.rally { color: var(--gold); }
.st-part.other { color: #c8a8ff; }
.st-items { display: flex; flex-direction: column; gap: 4px; }
.st-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; align-items: center; }
.st-pic { width: 28px; height: 28px; image-rendering: pixelated; background: var(--inset); border: 1px solid #000; }
.st-item b { font-size: var(--fs-xs); }
.st-hint { border-top: 1px solid var(--line); padding-top: 4px; }

/* The Gauntlets: a card each (difficulty, fights, resistances, what opens it), the chosen one's detail and chest */
.gx-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.gx-card { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.gx-card.selected { box-shadow: 0 0 0 2px var(--teal), 0 0 14px rgba(63, 224, 184, 0.35); }
.gx-card.locked { filter: grayscale(0.6) brightness(0.75); }
.gx-top { display: flex; align-items: center; gap: 6px; }
.gx-top b { flex: 1; min-width: 0; }
.gx-diff { padding: 1px 6px; font-size: 11px; font-weight: 700; border: 2px solid #000; }
.gx-diff.d-easy { color: #1c1206; background: var(--good); }
.gx-diff.d-normal { color: #1c1206; background: var(--gold); }
.gx-diff.d-hard { color: #fff; background: var(--red); }
.gx-diff.d-nightmare { color: #fff; background: #5a2a8a; box-shadow: 0 0 8px rgba(180, 120, 255, 0.5); }
.gx-event { padding: 1px 6px; font-size: 11px; font-weight: 700; color: #1c1206; background: var(--teal); border: 2px solid #000; }
.gx-resist { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.chip.resist { font-size: 11px; padding: 1px 6px; }
.chip.r-fire { color: #ffb066; } .chip.r-ice { color: #9fe0f0; } .chip.r-shadow { color: #c8a8ff; }
.chip.r-arcane { color: #d0a0ff; } .chip.r-holy { color: #ffe08a; } .chip.r-physical { color: #d8cce0; }
.gx-detail.d-nightmare { box-shadow: inset 0 3px 0 #a070ff; }
.gx-detail.d-hard { box-shadow: inset 0 3px 0 var(--red); }
.gx-rivals canvas { width: 26px; height: 26px; image-rendering: pixelated; }
.gx-chest { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; background: var(--inset); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--copper-dk); }
.gx-chest-head { display: flex; align-items: center; gap: 8px; }
.gx-chest-head canvas { image-rendering: pixelated; }
.gx-pool { display: flex; flex-wrap: wrap; gap: 4px; }
.gx-pool-item { display: grid; place-items: center; width: 32px; height: 32px; background: var(--panel-3); border: 2px solid #000; cursor: help; }
.gx-pool-item canvas { width: 24px; height: 24px; image-rendering: pixelated; }
.gx-opened { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; background: var(--inset); border: 2px solid #000; box-shadow: inset 0 0 0 2px var(--gold), 0 0 18px rgba(245, 197, 66, 0.3); }
.gx-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--panel-3); border: 2px solid #000; min-width: 240px; }
.gx-item canvas { width: 40px; height: 40px; image-rendering: pixelated; }
.gx-item.r-rare { box-shadow: inset 0 0 0 2px var(--rarity-rare); }
.gx-item.r-epic { box-shadow: inset 0 0 0 2px var(--rarity-epic); }
.gx-item.r-legendary { box-shadow: inset 0 0 0 2px var(--rarity-legendary); }


/* champion types (rules 10): its type, what hurts it more and less, what it deals */
.ty-box { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--fs-xs); }
.ty-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border: 1px solid currentColor; font-weight: 700; }
.ty-steel { color: #c9d3de; } .ty-earth { color: #c9a06a; } .ty-wild { color: #8fd16a; } .ty-snow { color: #a8e4ff; }
.ty-flame { color: #ff9a4a; } .ty-shadow { color: #b48cff; } .ty-light { color: #ffe27a; } .ty-arcane { color: #7fb8ff; }
.ty-weak { color: var(--bad); }
.ty-resist { color: var(--good); }
.ty-deals { color: var(--text-2); flex-basis: 100%; }
.st-part.weak { color: var(--bad); }
.tt-items { margin-top: 2px; padding-top: 4px; border-top: 1px solid var(--line, #3a3346); }
/* the mascot's perk in games: on its card, and its line on the results screen */
.card .sub.mperk { color: var(--teal-hi); font-size: 10px; line-height: 1.2; white-space: normal; text-align: center; }
.mperk-line { color: var(--gold); gap: 6px; align-items: center; }
.mperk-line canvas { width: 22px; height: 22px; image-rendering: pixelated; }

/* the patrol's stage: the team marching, fighting or resting, in pixels three times as big */
.patrol-stage-wrap { position: relative; margin: -4px -4px 2px; border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.08); background: #120e16; }
.patrol-stage { display: block; width: 100%; height: 126px; image-rendering: pixelated; }
.ps-label { padding: 3px 8px; color: var(--text); background: #1d1724; border-top: 2px solid #000; }
@media (max-width: 760px) { .patrol-stage { height: 104px; } }

/* the camp as a timeline: a square per battle (the rivals' face), a red line filling as they are fought */
.camp-track { position: relative; padding: 2px 0; }
.ct-line { position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 26px; height: 8px; background: #0b080d; border: 2px solid #000; }
.ct-line i { display: block; height: 100%; width: var(--fill); background: linear-gradient(90deg, #8f1f24, var(--team-red)); }
.ct-cells { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.ct-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.ct-face { position: relative; display: grid; place-items: center; width: min(52px, 100%); aspect-ratio: 1; background: linear-gradient(180deg, #3a2f44, #1e1826); border: 2px solid #000;
  box-shadow: inset 0 0 0 2px var(--copper-dk); filter: grayscale(0.85) brightness(0.55); }
.ct-face canvas { width: 70%; height: 70%; image-rendering: pixelated; }
.ct-cell small { font-size: 11px; color: var(--text-2); }
.ct-cell.fought .ct-face { filter: none; box-shadow: inset 0 0 0 2px var(--team-red), 0 0 10px rgba(229, 72, 77, 0.45); }
.ct-cell.now .ct-face { filter: none; box-shadow: inset 0 0 0 2px var(--gold), 0 0 14px rgba(245, 197, 66, 0.55); animation: wk-hop 1.2s steps(2) infinite; }
.ct-cell.now small { color: var(--gold); }
.ct-check { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 16px; height: 16px; font-size: 11px; font-weight: 700; color: #fff; background: var(--team-red); border: 2px solid #000; }
@media (max-width: 760px) {
  .ct-cells { gap: 2px; }
  .ct-line { top: 14px; height: 6px; }
  .ct-face { border-width: 1px; }
  .ct-check { width: 12px; height: 12px; font-size: 9px; right: -4px; bottom: -4px; }
}

/* the patrol box's little stage: the champions only, on the box itself (minimized: the lines alone) */
.pw-head { align-items: center; }
.pw-head .grow { flex: 1; text-align: right; }
.pw-min { min-height: 0; width: 20px; height: 18px; padding: 0; font-size: 11px; line-height: 1; color: var(--text-2); background: #120e16; border: 1px solid #000; cursor: pointer; }
.pw-min:hover { color: var(--gold); }
.pw-body { display: flex; flex-direction: column; gap: 3px; }
/* the game pass's season scene (screens/shop.js) */
.ps-season-art { display: block; width: 100%; max-height: 220px; object-fit: cover; border: 2px solid #000; border-radius: 6px; margin-bottom: 10px; }
.patrol-stage-wrap.bare { margin: 0; border: 0; box-shadow: none; background: none; }
/* the patrol in the new art (ui/patrol-stage.js): the route's painted layers behind the canvas, each 1920 px of a
   360 px picture wide, scrolling at its own speed on the march (cqh: the scene's height, so a layer's width is
   533cqh whatever the stage's size); the camp's painting when it is full */
.ps-scene { position: absolute; left: 0; right: 0; top: 0; height: 126px; overflow: hidden; container-type: size; pointer-events: none; }
.ps-scene > i { position: absolute; left: 0; right: 0; bottom: 0; background-repeat: repeat-x; background-size: auto 100%; background-position: 0 100%; image-rendering: auto; }
.ps-scene > .ps-sky { top: 0; }
.ps-scene > .ps-far { height: 55.6%; }
.ps-scene > .ps-near { height: 44.4%; }
.ps-scene > .ps-ground { height: 22.2%; }
.ps-scene > .ps-camp { top: 0; background-size: cover; background-position: 50% 70%; background-repeat: no-repeat; opacity: 0; transition: opacity 0.6s; }
.ps-camping .ps-scene > .ps-camp { opacity: 1; }
.ps-moving .ps-scene > i { animation: ps-pan linear infinite; }
.ps-moving .ps-scene > .ps-camp { animation: none; }
.ps-moving .ps-scene > .ps-sky { animation-duration: 160s; }
.ps-moving .ps-scene > .ps-far { animation-duration: 48s; }
.ps-moving .ps-scene > .ps-near { animation-duration: 21s; }
.ps-moving .ps-scene > .ps-ground { animation-duration: 14s; }
@keyframes ps-pan { to { background-position-x: -533.33cqh; } }
.ps-art .patrol-stage { position: relative; }
@media (max-width: 760px) { .ps-scene { height: 104px; } }
.pw-stage .ps-scene { height: 52px; }
.patrol-widget.docked .pw-stage .ps-scene { height: 88px; }
.pw-stage .patrol-stage { height: 52px; }
.patrol-widget.min .pw-stage { display: none; }

/* another player's name you can click: their card opens by it (ui/player-pop.js) */
.is-player { cursor: pointer; }
.pname-link { color: var(--teal-hi); text-decoration: underline dotted; text-underline-offset: 2px; }
.is-player:hover, .pname-link:hover { color: var(--gold); }
.player-pop { position: fixed; z-index: 46; width: min(340px, calc(100vw - 16px)); display: flex; flex-direction: column; gap: 8px; padding: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55); }
.player-pop .playercard { width: 100%; }
.pp-acts { flex-wrap: wrap; }
.pp-acts .btn { flex: 1 1 auto; }

/* the coin toss over the board (the old game's, in this one's look) */
.coin-toss { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(10, 6, 14, 0.82), rgba(10, 6, 14, 0.55) 70%); transition: opacity 0.25s; }
.coin-toss.out { opacity: 0; }
.coin-stage { position: relative; width: 224px; height: 224px; margin-top: 150px; perspective: 900px; }
.coin3d { position: absolute; inset: 0; transform-style: preserve-3d; }
.coin-face { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; backface-visibility: hidden; }
.coin-face.back { transform: rotateY(180deg); }
.coin-shadow { position: absolute; left: 24%; right: 24%; bottom: -30px; height: 14px; background: rgba(0, 0, 0, 0.5); }
.coin-result { min-height: 32px; padding: 4px 14px; font-family: var(--font-title); font-size: 24px; color: var(--text);
  text-shadow: 0 3px 0 #000; opacity: 0; text-align: center; }
.coin-result.show { opacity: 1; }
.coin-result.s0 { color: #9fc0ff; }
.coin-result.s1 { color: #ffa497; }
@media (max-width: 760px) { .coin-stage { width: 160px; height: 160px; margin-top: 110px; } .coin-result { font-size: 18px; } }

/* online Fast match: the other side's picks live (faded while they choose, a tick once locked in) */
.dr-slot.live-pick.picking canvas { opacity: 0.55; filter: grayscale(0.35); }
.dr-slot.live-pick.picking { box-shadow: inset 0 0 0 2px rgba(255, 246, 220, 0.18); animation: lp-pulse 1.4s ease-in-out infinite; }
@keyframes lp-pulse { 50% { box-shadow: inset 0 0 0 2px rgba(245, 197, 66, 0.55); } }
.dr-slot.live-pick { position: relative; }
.lp-lock { position: absolute; right: 2px; bottom: 2px; display: grid; place-items: center; width: 16px; height: 16px; font-size: 11px; font-weight: 700; color: #fff; background: #3f9e3a; border: 2px solid #000; }

/* what a champion can hit (the old game's three little boards): its square gold, the squares in reach red */
.reach-row { display: flex; align-items: center; gap: 10px; }
.reach-set { display: flex; gap: 8px; flex-shrink: 0; }
.reach-spot { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.reach-spot span { font-size: 10px; color: var(--text-2); font-weight: 700; }
.reach-spot.here .reach-grid { box-shadow: 0 0 0 2px var(--gold), 0 0 8px rgba(242, 193, 78, 0.8); }
.reach-spot.here span { color: var(--gold); }
.reach-grid { display: grid; grid-template-columns: repeat(3, 10px); gap: 2px; padding: 3px; background: #120e17; border: 2px solid #000; }
.reach-grid i { width: 10px; height: 10px; background: #4f8a3d; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3); }
.reach-grid i.hit { background: var(--bad); }
.reach-grid i.me { background: var(--gold); }
/* the patrol box minimized: just its head line (the stage and the HP bars hidden) */
.patrol-widget.min .pw-body { display: none; }
/* the patch notes */
.news { gap: 8px; }
.news-patch { background: rgba(0, 0, 0, 0.22); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.07); }
.news-patch > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 12px; cursor: pointer; list-style: none; }
.news-patch > summary::-webkit-details-marker { display: none; }
.news-patch > summary b { color: var(--copper-hi); }
.news-patch[open] > summary { border-bottom: 1px solid rgba(255, 246, 220, 0.08); }
.news-body { display: flex; flex-direction: column; gap: 10px; padding: 10px 14px 12px; }
.news-kind { display: inline-block; margin-bottom: 4px; padding: 1px 8px; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: 1px solid currentColor; }
.news-sec.new .news-kind { color: var(--teal); }
.news-sec.balance .news-kind { color: var(--gold); }
.news-sec.fixes .news-kind { color: var(--blue-hi); }
.news-sec ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-s); line-height: 1.4; }
.violet { color: #c8a0ff; }
.craft-head { align-items: center; margin-bottom: 10px; }
.craft-funds { align-items: center; }
.craft-perk { font-size: 11px; text-align: center; }
.chip-btn.on { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
.card .surplus { max-width: 120px; white-space: normal; text-align: center; line-height: 1.25; }
/* the stats window: over the game (each team's HP, the damage per turn) */
.ms-legend { display: flex; gap: 14px; }
.ms-legend span { display: flex; align-items: center; gap: 6px; }
.ms-legend i { width: 14px; height: 4px; background: var(--side); }
.ms-plot.ms-hp { height: 150px; margin-right: 0; }
.ms-hp-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ms-hp-line.s0 { stroke: #8cc0ff; }
.ms-hp-line.s1 { stroke: #ff9a9a; }
.ms-hp-area.s0 { fill: var(--blue); opacity: 0.1; }
.ms-hp-area.s1 { fill: var(--team-red); opacity: 0.1; }
.ms-tip-row.s0 b { color: #8cc0ff; }
.ms-tip-row.s1 b { color: #ff9a9a; }
.ms-dpt { display: flex; align-items: stretch; gap: 2px; height: 130px; padding: 6px 6px 0; background: linear-gradient(180deg, #161224, #0b0a12); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line); }
.ms-dpt-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; cursor: help; }
.ms-dpt-col:hover { background: rgba(255, 255, 255, 0.05); }
.ms-dpt-bars { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 1px; }
.ms-dpt-bars i { display: block; min-height: 1px; background: var(--side); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.ms-dpt-n { height: 14px; font-size: 9px; text-align: center; color: var(--muted); overflow: visible; white-space: nowrap; }
/* the ready check: "Match found!", the countdown ring, who accepted */
.q-foot { margin-top: 10px; }
.q-found-title { font-family: var(--font-title); font-size: 22px; color: var(--gold, #f5c542); text-shadow: 0 2px 0 #000; }
.q-found-title.pop { animation: pop-in 0.25s ease-out; }
.q-ring { --q: 100; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--teal, #3fe0b8) calc(var(--q) * 1%), rgba(255, 255, 255, 0.08) 0); transition: background 0.9s linear; }
.q-ring b { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: #120e17; box-shadow: inset 0 0 0 2px #000; }
.q-dots { display: flex; gap: 6px; }
.q-dots i { width: 14px; height: 14px; border: 2px solid #000; background: rgba(255, 255, 255, 0.12); }
.q-dots i.on { background: var(--good, #5fd068); box-shadow: 0 0 8px rgba(95, 208, 104, 0.6); }
.q-found .q-accept { min-width: 160px; font-size: 16px; }
/* ranked: the progress to the next rank, the promotion series, a season's reward */
.rk-bar { height: 8px; background: rgba(0, 0, 0, 0.4); border: 1px solid #000; }
.rk-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--copper-dk), var(--gold, #f5c542)); }
.rk-promo { display: flex; gap: 4px; }
.rk-promo i { width: 14px; height: 14px; border: 2px solid #000; background: rgba(255, 255, 255, 0.12); }
.rk-promo i.w { background: var(--good, #5fd068); }
.rk-promo i.l { background: var(--bad, #e5484d); }
.rk-season { padding: 8px 10px; background: rgba(245, 197, 66, 0.08); border: 1px solid rgba(245, 197, 66, 0.35); }
/* the ranked season frames */
.playercard.frame-rkSilver, .card.frame-rkSilver, .look-frame.frame-rkSilver { box-shadow: 0 0 0 2px #3a3f4a, 0 0 0 4px #c9d1dc, 0 0 10px rgba(201, 209, 220, 0.45); }
.playercard.frame-rkGold, .card.frame-rkGold, .look-frame.frame-rkGold { box-shadow: 0 0 0 2px #6a4a12, 0 0 0 4px #f5c542, 0 0 12px rgba(245, 197, 66, 0.55); }
.playercard.frame-rkStar, .card.frame-rkStar, .look-frame.frame-rkStar { box-shadow: 0 0 0 2px #123a5a, 0 0 0 4px #5ab4ff, 0 0 0 6px #f5c542, 0 0 14px rgba(90, 180, 255, 0.55); }
.playercard.frame-rkTrophy, .card.frame-rkTrophy, .look-frame.frame-rkTrophy { box-shadow: 0 0 0 2px #4a1a5a, 0 0 0 4px #ff9ae0, 0 0 0 6px #f5c542, 0 0 16px rgba(255, 154, 224, 0.55); }
.playercard.frame-rkMythic, .card.frame-rkMythic, .look-frame.frame-rkMythic { box-shadow: 0 0 0 2px #000, 0 0 0 4px #e8d0ff, 0 0 0 6px #9a5ae8, 0 0 0 8px #000, 0 0 22px rgba(190, 120, 255, 0.8); animation: crown-glow 2.4s ease-in-out infinite; }
.playercard.frame-rkCrown, .card.frame-rkCrown, .look-frame.frame-rkCrown { box-shadow: 0 0 0 2px #000, 0 0 0 4px #fff1a0, 0 0 0 6px #f5a623, 0 0 0 8px #000, 0 0 20px rgba(255, 220, 120, 0.75); animation: crown-glow 2.4s ease-in-out infinite; }
/* the new art: the frame's picture round the playercard's picture (icons.js frameCard) instead of round the card */
.playercard.art-framed { box-shadow: none; animation: none; }
.playercard.art-framed .pc-emblem { transform: scale(0.68); background: var(--avatar-bg); }
.framed { position: relative; display: inline-grid; place-items: center; line-height: 0; flex: none; }
.framed > :first-child { transform: scale(0.7); background: var(--avatar-bg); } /* (under the frame's opening: not see-through) */
.framed > .frame-pic { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* a box round an avatar gives way to the frame: the frame takes its place, the picture inside it */
.hub-me .hub-pic:has(> .framed), html .hub-me.with-banner .hub-pic:has(> .framed), .roster-head .rh-avatar:has(> .framed) { border: 0; background: none; box-shadow: none; overflow: visible; }
.hub-pic > .framed, .rh-avatar > .framed { width: 100%; height: 100%; }
.playercard .pc-frame { position: absolute; left: 2.5%; top: 10%; height: 80%; width: auto; aspect-ratio: 1; pointer-events: none; filter: drop-shadow(0 2px 0 #000); }
@keyframes crown-glow { 50% { filter: brightness(1.15); } }
/* celebration banners (ui/celebrate.js): top centre, over everything */
#layer-celebrate { position: fixed; left: 0; right: 0; top: 10px; z-index: 90; display: flex; justify-content: center; pointer-events: none; padding: 0 12px; }
.celebrate {
  --cb: #f5c542; --cb-soft: rgba(245, 197, 66, 0.35);
  position: relative; pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 16px;
  width: min(560px, 100%); padding: 12px 22px 12px 12px; overflow: hidden; color: #fff6dc;
  background: linear-gradient(115deg, rgba(40, 32, 52, 0.97), rgba(24, 19, 31, 0.97) 60%, rgba(46, 38, 60, 0.97));
  border: 2px solid #000; box-shadow: 0 0 0 2px var(--copper-dk), 0 0 0 4px #000, 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 246, 220, 0.12);
  animation: cb-in 0.42s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.celebrate.out { animation: cb-out 0.3s ease-in forwards; }
@keyframes cb-in { from { transform: translateY(-120%) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cb-out { to { transform: translateY(-60%); opacity: 0; } }
.celebrate.tone-teal { --cb: #3fe0b8; --cb-soft: rgba(63, 224, 184, 0.32); }
.celebrate.tone-violet { --cb: #c8a0ff; --cb-soft: rgba(200, 160, 255, 0.35); }
.celebrate.tone-red { --cb: #ff7a5a; --cb-soft: rgba(255, 122, 90, 0.35); }
.cb-pic { position: relative; flex: 0 0 auto; width: 76px; height: 76px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #3a3048, #17121d 75%); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--cb-soft); }
.cb-pic > canvas, .cb-pic > img, .cb-pic > svg { position: relative; z-index: 1; width: 60px; height: 60px; image-rendering: pixelated; }
.cb-pic > .cb-emoji { position: relative; z-index: 1; font-size: 40px; line-height: 1; }
/* the light coming out of the box, across the banner */
.cb-rays { position: absolute; left: 50%; top: 50%; width: 520px; height: 140px; transform: translate(-6%, -50%) rotate(-8deg); transform-origin: 0 50%;
  background: conic-gradient(from 75deg at 0 50%, transparent 0deg, var(--cb-soft) 8deg, transparent 18deg, var(--cb-soft) 26deg, transparent 34deg);
  opacity: 0.55; pointer-events: none; animation: cb-rays 3.6s ease-in-out infinite; }
@keyframes cb-rays { 50% { opacity: 0.85; } }
/* the new art's burst (celebrate/<id>): round the box, its empty middle on the picture */
.cb-pic > .cb-burst { position: absolute; left: 50%; top: 50%; z-index: 0; width: 150px !important; height: 150px !important; transform: translate(-50%, -50%); pointer-events: none; }
.cb-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cb-kicker { font-family: var(--font-title); font-size: 13px; letter-spacing: 5px; color: var(--cb); text-transform: uppercase; }
.cb-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cb-title { font-family: var(--font-title); font-size: 26px; color: #fff; text-shadow: 0 2px 0 #000; overflow-wrap: anywhere; }
.cb-value { font-size: 42px; line-height: 1; color: var(--cb); text-shadow: 0 3px 0 #000, 0 0 16px var(--cb-soft); }
.cb-note { font-size: 12px; color: #d8cfc0; }
.cb-spark { position: absolute; z-index: 2; font-style: normal; color: #fff1a0; font-size: 13px; pointer-events: none; animation: cb-twinkle 1.6s ease-in-out infinite; }
.cb-spark.s0 { left: 10px; top: 6px; }
.cb-spark.s1 { left: 84px; bottom: 6px; animation-delay: 0.4s; }
.cb-spark.s2 { right: 18px; top: 8px; animation-delay: 0.8s; }
.cb-spark.s3 { right: 64px; bottom: 10px; font-size: 9px; animation-delay: 1.1s; }
.cb-spark.s4 { right: 40%; top: 4px; font-size: 10px; animation-delay: 0.2s; }
@keyframes cb-twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.15); } }
@media (max-width: 600px) {
  .celebrate { gap: 10px; padding: 8px 14px 8px 8px; }
  .cb-pic { width: 58px; height: 58px; }
  .cb-pic > canvas, .cb-pic > img { width: 46px; height: 46px; }
  .cb-kicker { font-size: 11px; letter-spacing: 3px; }
  .cb-title { font-size: 20px; }
  .cb-value { font-size: 32px; }
}

/* ===================================================== the Raid's tab cards */
.raid-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.raid-tab { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: linear-gradient(180deg, #2a2234, #1a1520); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.1); }
.raid-tab:hover { box-shadow: inset 0 0 0 1px var(--copper-hi); }
.raid-tab.on { background: linear-gradient(180deg, #3a2e22, #241c16); box-shadow: 0 0 0 2px var(--gold), inset 0 0 0 1px rgba(245, 197, 66, 0.5); }
.raid-tab b { font-size: 15px; color: #fff6dc; }
.raid-tab.on b { color: var(--gold); }
.raid-tab small { color: var(--muted); }
.raid-tab-pic { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; background: #120e17; border: 1px solid #000; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6); }
.raid-tab-pic canvas, .raid-tab-pic img { width: 40px; height: 40px; image-rendering: pixelated; }
.raid-tab-dot { position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%; background: #e5484d; border: 2px solid #000; }

/* ===================================================== the world boss */
.wb { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.wb-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 900px) {
  .wb { grid-template-columns: minmax(0, 1fr); }
  .raid-tabs { gap: 6px; }
  .raid-tab { padding: 8px; gap: 8px; }
  .raid-tab b { font-size: 13px; }
}
.wb-card { display: flex; flex-direction: column; gap: 10px; }
.wb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wb-name { font-family: var(--font-title); font-size: 22px; color: var(--copper-hi); text-shadow: 0 2px 0 var(--copper-dk); }
.wb-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 12px; color: #ece3d6; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 246, 220, 0.18); border-radius: 999px; }
.wb-chip.hot { color: #ffd0a0; background: rgba(120, 40, 10, 0.55); border-color: rgba(255, 140, 60, 0.5); }
.wb-info { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; padding: 0; font: inherit; font-weight: bold; color: var(--muted); background: none; border: 2px solid currentColor; cursor: pointer; }
.wb-info:hover { color: var(--gold); }
.wb-stats { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 12px; }
.wb-stat { display: flex; flex-direction: column; gap: 2px; }
.wb-stat b { font-size: 28px; color: #fff6dc; line-height: 1; }
.wb-stat small { font-size: 11px; color: var(--muted); }
.wb-stat.big { align-items: center; }
.wb-stat.big b { font-size: 46px; color: var(--gold); text-shadow: 0 3px 0 #000, 0 0 18px rgba(245, 197, 66, 0.3); }
.wb-stat.right { align-items: flex-end; text-align: right; }
.wb-scene { position: relative; height: 190px; overflow: hidden; border: 2px solid #000; box-shadow: 0 0 0 2px #6a2a14, inset 0 0 30px rgba(0, 0, 0, 0.6); }
.wb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.wb-me { position: absolute; left: 6%; bottom: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wb-me-pic { width: 74px; height: 74px; display: grid; place-items: center; background: rgba(20, 30, 20, 0.75); border: 2px solid #000; box-shadow: 0 0 0 2px #5fd068; }
.wb-me-pic canvas { width: 64px; height: 64px; image-rendering: pixelated; }
.wb-me small { color: #fff; text-shadow: 0 1px 0 #000; font-size: 12px; }
.wb-dragon { position: absolute; right: 4%; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wb-dragon > canvas { width: 140px; height: 140px; image-rendering: pixelated; filter: drop-shadow(0 0 12px rgba(255, 110, 40, 0.55)); animation: wb-breathe 2.8s ease-in-out infinite; }
@keyframes wb-breathe { 50% { transform: translateY(-3px) scale(1.02); } }
.wb-scene.fallen .wb-dragon > canvas { filter: grayscale(1) brightness(0.6); animation: none; transform: rotate(12deg) translateY(16px); }
.wb-lvtag { padding: 1px 8px; font-size: 11px; color: #fff; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 246, 220, 0.25); }
.wb-bar { height: 8px; width: 100%; background: rgba(0, 0, 0, 0.5); border: 1px solid #000; overflow: hidden; }
.wb-bar i { display: block; height: 100%; }
.wb-bar.green { width: 90px; }
.wb-bar.green i { background: #5fd068; }
.wb-dragon .wb-bar.orange { width: 120px; }
.wb-bar.orange i { background: linear-gradient(90deg, #ff6a2a, #ffb347); }
.wb-bar.thin { height: 6px; }
.wb-bar.gold i { background: linear-gradient(90deg, var(--copper-dk), var(--gold)); }
.wb-server { font-size: 13px; font-weight: bold; }
.wb-fallen { text-align: center; color: var(--gold); font-size: 15px; }
.wb-fight { font-size: 17px; }
.wb-hitters { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 246, 220, 0.07); }
.wb-hitter { display: grid; place-items: center; width: 38px; height: 38px; background: #120e17; border: 1px solid #000; box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.35); }
.wb-hitter canvas { width: 32px; height: 32px; image-rendering: pixelated; }
/* the rewards ready */
.wb-ready { display: flex; flex-direction: column; gap: 8px; }
.wb-ready-title { font-family: var(--font-title); letter-spacing: 2px; color: #fff6dc; }
.wb-ready-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: linear-gradient(180deg, #3a3022, #2a2218); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.4); }
.wb-ready-row:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.wb-ready-row b { text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.wb-ico { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; }
.wb-ico canvas, .wb-ico img { width: 30px; height: 30px; image-rendering: pixelated; }
.wb-collect { margin-left: auto; font-family: var(--font-title); font-size: 12px; letter-spacing: 1px; color: var(--gold); background: none; border: 0; cursor: pointer; white-space: nowrap; }
/* Server | Top */
.wb-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: rgba(0, 0, 0, 0.3); border: 2px solid #000; }
.wb-seg-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; font: inherit; color: var(--muted); background: none; border: 1px solid transparent; cursor: pointer; }
.wb-seg-btn b { font-size: 15px; }
.wb-seg-btn.on { color: #fff6dc; background: rgba(245, 197, 66, 0.1); border-color: rgba(245, 197, 66, 0.6); }
.wb-sec { font-family: var(--font-title); letter-spacing: 2px; font-size: 13px; color: var(--teal, #3fe0b8); }
.wb-goal, .wb-top { display: flex; flex-direction: column; gap: 6px; }
.wb-total b { font-size: 34px; color: var(--gold); text-shadow: 0 2px 0 #000; }
.wb-lv { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px; overflow: hidden; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 246, 220, 0.06); }
.wb-lv > * { position: relative; }
.wb-lv.reached { background: linear-gradient(180deg, #3a3022, #2a2218); box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.35); }
.wb-lv.next { box-shadow: 0 0 0 2px var(--gold); }
.wb-lv.next::before { content: ""; position: absolute; inset: 0; width: var(--fill, 0%); background: rgba(245, 197, 66, 0.22); }
.wb-lv.later { opacity: 0.6; }
.wb-lv-at { width: 46px; flex: 0 0 auto; text-align: right; color: var(--muted); font-size: 13px; }
.wb-top-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; background: rgba(0, 0, 0, 0.25); }
.wb-top-row.me { color: var(--good, #5fd068); box-shadow: inset 0 0 0 1px rgba(95, 208, 104, 0.6); background: rgba(20, 60, 30, 0.35); }
.celebrate .cb-value.num { font-size: 50px; line-height: 0.9; }
@media (max-width: 600px) { .celebrate .cb-value.num { font-size: 36px; } }
.cb-pic > .cb-card { width: 68px; height: 34px; }
/* (the v3 look, your word 22 Nov) the picture's box holds the whole burst: no square box, the burst at the box's size, the
   picture in its empty middle; a champion's or skin's face round with a thin gold edge (something new has no burst) */
.cb-pic.v3 { width: 104px; height: 104px; margin: -6px 0; background: none; border: 0; box-shadow: none; }
.cb-pic.v3 > .cb-burst { width: 100% !important; height: 100% !important; }
.cb-pic.v3 > canvas, .cb-pic.v3 > img:not(.cb-burst), .cb-pic.v3 > svg { width: 52px; height: 52px; }
.cb-pic.v3 > .cb-card { width: 60px; height: 30px; }
.cb-face { position: relative; z-index: 1; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #4a3a5c, #17121d 75%); box-shadow: 0 0 0 2px #000, 0 0 0 4px #d1ab5b, 0 0 0 6px #000; }
.cb-face > canvas { width: 46px; height: 46px; image-rendering: pixelated; }
.cb-face > .cb-face-pic { width: 100%; height: 100%; image-rendering: auto; }
@media (max-width: 600px) {
  .cb-pic.v3 { width: 84px; height: 84px; margin: -4px 0; }
  .cb-pic.v3 > canvas, .cb-pic.v3 > img:not(.cb-burst), .cb-pic.v3 > svg { width: 42px; height: 42px; }
  .cb-face { width: 68px; height: 68px; }
  .cb-face > canvas { width: 38px; height: 38px; }
}
.tabs .btn.tab-badge, .hub-tab.badge, .hub-btab.badge { position: relative; overflow: visible; }
.card .new-mark, .it-tile .new-mark { position: absolute; left: 50%; top: -7px; transform: translateX(-50%); z-index: 2; padding: 1px 6px; font-size: 9px; letter-spacing: 1px; color: #fff; background: var(--bad, #e5484d); border: 2px solid #000; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); pointer-events: none; }
.hub-tab.badge::after { top: 2px; right: 0; }
.hub-btab.badge::after { top: 2px; right: 6px; }

/* ===================================================== the leaderboard: your card on top, players as cards */
.lb2-head { display: flex; flex-direction: column; gap: 12px; }
.lb2-title { display: flex; align-items: center; gap: 14px; font-family: var(--font-title); font-size: 26px; color: #fff6dc; text-shadow: 0 2px 0 #000; }
.lb2-title canvas { width: 40px; height: 40px; image-rendering: pixelated; }
.lb2-pick { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(0, 0, 0, 0.3); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.15); }
.lb2-pick canvas { width: 24px; height: 24px; image-rendering: pixelated; }
.lb2-select { font: inherit; font-size: 15px; font-weight: bold; color: #fff6dc; background: transparent; border: 0; padding: 2px 4px; cursor: pointer; }
.lb2-select option { background: #1d1724; color: #fff6dc; }
.lb2-mebox:empty { display: none; }
.lb2-list { display: flex; flex-direction: column; gap: 8px; }
.lb2-row { display: grid; grid-template-columns: 56px 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(180deg, #241d2c, #1a1520); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.07); }
.lb2-row.me { grid-template-columns: 56px 48px minmax(0, 1fr) auto auto; background: linear-gradient(180deg, #3a2a1c, #2a1e14); box-shadow: 0 0 0 2px var(--copper-dk), inset 0 0 0 1px rgba(245, 197, 66, 0.45); margin-bottom: 4px; }
.lb2-row.mine { box-shadow: inset 0 0 0 1px rgba(63, 224, 184, 0.6); }
.lb2-pos { font-size: 20px; color: var(--muted); text-align: center; }
.lb2-row.me .lb2-pos { color: var(--gold); }
.lb2-row.top1 .lb2-pos, .lb2-row.top2 .lb2-pos, .lb2-row.top3 .lb2-pos { font-size: 26px; }
.lb2-row.top1 { box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.55); }
.lb2-row.top2 { box-shadow: inset 0 0 0 1px rgba(201, 209, 220, 0.45); }
.lb2-row.top3 { box-shadow: inset 0 0 0 1px rgba(205, 127, 50, 0.5); }
.set-sec { margin: 10px 0 0; font-family: var(--font-title); font-size: 16px; color: var(--gold); }
.lb2-ava { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.lb2-who { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.lb2-who > b, .lb2-row.me .lb2-who > b { font-size: 18px; color: var(--gold); }
.lb2-name.btn { padding: 0; font-size: 17px; color: #fff6dc; background: none; border: 0; border-image: none; box-shadow: none; max-width: 100%; text-align: left; }
.lb2-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #c8a0ff; background: rgba(120, 80, 200, 0.15); border: 1px solid rgba(200, 160, 255, 0.6); }
.lb2-chip.clan { color: var(--gold); background: rgba(245, 197, 66, 0.1); border-color: rgba(245, 197, 66, 0.6); }
.lb2-val { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.lb2-val b { font-size: 24px; color: var(--gold); }
.lb2-val small { font-size: 12px; color: var(--muted); }
.lb2-edit.btn { width: 46px; height: 46px; padding: 0; display: grid; place-items: center; }
@media (max-width: 600px) {
  .lb2-row { grid-template-columns: 34px 44px minmax(0, 1fr) auto; padding: 10px; gap: 8px; }
  .lb2-row.me { grid-template-columns: 34px 44px minmax(0, 1fr) auto auto; }
  .lb2-title { font-size: 21px; }
  .lb2-val b { font-size: 20px; }
}
.lb2-row .lb2-val b.num { font-size: 44px; }
.lb2-row .lb2-pos.num { font-size: 36px; }
@media (max-width: 600px) { .lb2-row .lb2-val b.num { font-size: 36px; } .lb2-row .lb2-pos.num { font-size: 30px; } }
/* the notification centre */
.nc-bell { position: relative; overflow: visible; }
.nc-bell.badge::after { top: -4px; right: -4px; }
.nc { min-width: min(420px, 82vw); }
.nc-sec { font-family: var(--font-title); font-size: 12px; letter-spacing: 2px; color: var(--teal); text-transform: uppercase; margin-top: 4px; }
.nc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 246, 220, 0.07); }
.nc-row.unread { box-shadow: inset 3px 0 0 var(--gold); background: rgba(245, 197, 66, 0.06); }
.nc-ico { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; background: #120e17; border: 1px solid #000; }
.nc-ico canvas { image-rendering: pixelated; }
/* a player's banner behind their row (online-ui.js withBanner), fading toward the numbers */
.row-bannered { position: relative; overflow: hidden; isolation: isolate; flex-shrink: 0; }
.row-banner { position: absolute; left: 0; top: 0; width: 72%; height: 100%; object-fit: cover; image-rendering: pixelated; z-index: -1; opacity: 0.75; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%); }
.row-bannered .lb2-name.btn, .row-bannered b, .row-bannered .lb2-pos { text-shadow: 0 2px 0 #000, 0 0 6px rgba(0, 0, 0, 0.8); }
.roster-head.row-bannered { padding: 4px 6px; margin: -4px -4px 0; }
.roster-head.row-bannered .pname, .roster-head.row-bannered .psub { text-shadow: 0 2px 0 #000, 0 0 6px rgba(0, 0, 0, 0.8); }
.it-pick { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.it-select { font: inherit; font-size: 12px; color: #fff6dc; background: #17121d; border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.15); padding: 3px 6px; }
/* a mode that opens with a level (new players): its level on a tag */
/* (the demo, meta/demo.js: a mode of the full game wears its tag, as a mode that opens with a level wears its level) */
[data-full] { position: relative; }
[data-full]::before { content: "🔒 " attr(data-full); position: absolute; top: 4px; right: 4px; z-index: 2; padding: 2px 7px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: #2a1802; background: #f2c14e; border: 1px solid #5a3a06; pointer-events: none; white-space: nowrap; }
.btn[data-full]::before, .hub-tab[data-full]::before { top: -9px; right: -6px; font-size: 9px; padding: 0 4px; }
.full-game-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.full-game-list li { display: flex; align-items: flex-start; gap: 8px; }
.full-game-list li > :first-child { flex: none; margin-top: 3px; color: var(--gold); }
html[data-theme='neon'] .ar .ar-foot .ar-demo-tag { padding: 3px 10px; font: 800 13px/1 var(--ar-cap); letter-spacing: 0.14em; text-transform: uppercase; color: #2a1802; background: var(--ar-gold); cursor: pointer; }
.cm-chapter.full small { color: #f2c14e; }
.set-gift-row { align-items: stretch; }
.set-gift-row .set-gift-code { flex: 1 1 200px; min-width: 0; max-width: 360px; text-transform: uppercase; letter-spacing: 0.08em; }
[data-lv] { position: relative; }
[data-lv]::before { content: "🔒 Lv " attr(data-lv); position: absolute; top: 4px; right: 4px; z-index: 2; padding: 1px 6px; font-size: 10px; color: #fff6dc; background: rgba(0, 0, 0, 0.75); border: 1px solid rgba(255, 246, 220, 0.3); pointer-events: none; }
.btn[data-lv]::before, .hub-tab[data-lv]::before { top: -9px; right: -6px; font-size: 9px; padding: 0 4px; }
/* the battle: each team's banner stronger behind X · avatar · name */
.roster-head.row-bannered .row-banner { opacity: 1; width: 100%; -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.35) 100%); mask-image: linear-gradient(90deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.35) 100%); }
.rh-avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; background: rgba(10, 8, 14, 0.7); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.25); }
.rh-avatar canvas { width: 34px; height: 34px; image-rendering: pixelated; }
/* how many of an item: the number on a little card, a second card behind when there are more */
.it-stack { position: absolute; top: 6px; left: 6px; width: 30px; height: 36px; z-index: 1; pointer-events: auto; }
.it-stack::before, .it-stack b { position: absolute; inset: 0; border: 2px solid #000; border-radius: 3px; }
.it-stack::before { content: ""; display: none; transform: translate(7px, -5px) rotate(12deg); background: linear-gradient(180deg, #7a6248, #4a3a28); box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.25); }
.it-stack.more::before { display: block; }
.it-stack b { display: grid; place-items: center; font-size: 22px; color: #fff6dc; text-shadow: 0 2px 0 #000;
  background: linear-gradient(180deg, #5a4630, #3a2c1c); box-shadow: inset 0 0 0 1px var(--gold), 0 2px 0 rgba(0, 0, 0, 0.5); }
.ui3 .it-tile { padding-top: 12px; }
/* "1× EQUIPPED": a tag drawn like the battle's HIT tags (plum outline, lit top, shaded bottom) */
.eq-tag { display: inline-block; margin-top: 2px; padding: 4px 6px 3px; font-family: "Press Start 2P", monospace; font-size: 8px; line-height: 1; letter-spacing: 0.5px; text-transform: uppercase;
  color: #fff1d8; background: #3f9a52; outline: 2px solid #1a1220; box-shadow: inset 0 2px 0 rgba(255, 241, 216, 0.35), inset 0 -2px 0 rgba(26, 18, 32, 0.3); }
.eq-tag.inline { align-self: flex-start; margin: 4px 0 2px 2px; }
/* the tag in its item's quality colour */
.eq-tag.q-common { background: #8a8278; }
.eq-tag.q-rare { background: #3a7fd6; }
.eq-tag.q-epic { background: #8e4fd6; }
.eq-tag.q-legendary { background: #e0902a; }
/* items' banners and count cards in their quality's colour */
.celebrate.tone-common { --cb: #c9c1b4; --cb-soft: rgba(201, 193, 180, 0.3); }
.celebrate.tone-rare { --cb: #6fb0ff; --cb-soft: rgba(79, 157, 255, 0.35); }
.celebrate.tone-epic { --cb: #c08bff; --cb-soft: rgba(176, 110, 255, 0.35); }
.celebrate.tone-legendary { --cb: #ffb347; --cb-soft: rgba(245, 166, 35, 0.4); }
.it-stack.q-common b { background: linear-gradient(180deg, #5e5850, #3e3a34); box-shadow: inset 0 0 0 1px #b8b0a4, 0 2px 0 rgba(0, 0, 0, 0.5); }
.it-stack.q-rare b { background: linear-gradient(180deg, #2e5a96, #1c3a66); box-shadow: inset 0 0 0 1px #6fb0ff, 0 2px 0 rgba(0, 0, 0, 0.5); }
.it-stack.q-epic b { background: linear-gradient(180deg, #5e3a96, #3c2466); box-shadow: inset 0 0 0 1px #c08bff, 0 2px 0 rgba(0, 0, 0, 0.5); }
.it-stack.q-legendary b { background: linear-gradient(180deg, #8a5a1c, #5a3a12); box-shadow: inset 0 0 0 1px #ffb347, 0 2px 0 rgba(0, 0, 0, 0.5); }
.it-stack.q-common::before { background: linear-gradient(180deg, #4a4640, #2e2b27); }
.it-stack.q-rare::before { background: linear-gradient(180deg, #23467a, #142c50); }
.it-stack.q-epic::before { background: linear-gradient(180deg, #4a2e7a, #2e1c50); }
.it-stack.q-legendary::before { background: linear-gradient(180deg, #6e4816, #48300e); }
.ui3 .it-pic { position: relative; overflow: visible; }
.eq-tag.over { position: absolute; left: 50%; top: -9px; transform: translateX(-50%); margin: 0; white-space: nowrap; z-index: 2; font-size: 7px; padding: 3px 5px 2px; }
.eq-tag.over::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 4px solid transparent; border-top-color: #1a1220; border-bottom: 0; }
.arena-pic { width: 64px; height: 68px; image-rendering: pixelated; }
.rush-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.rush-mode { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; text-align: center; font: inherit; color: var(--text); cursor: pointer; background: linear-gradient(180deg, #2e2638, #1d1724); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.12); }
.rush-mode:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 0 12px rgba(245, 197, 66, 0.25); }
.rush-mode b { font-size: 16px; color: var(--gold); }
.rush-mode small { font-size: 12px; color: var(--muted); }
.rush-mode-ico canvas { width: 30px; height: 30px; image-rendering: pixelated; }
.rush-augs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.rush-aug { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; text-align: center; font: inherit; color: var(--text); cursor: pointer; background: linear-gradient(180deg, #3a2e48, #221a2c); border: 2px solid #000; box-shadow: inset 0 0 0 1px #c8a0ff; }
.rush-aug.k-fight { box-shadow: inset 0 0 0 1px #ff8a6a; }
.rush-aug.k-now { box-shadow: inset 0 0 0 1px var(--gold); }
.rush-aug:hover { transform: translateY(-2px); filter: brightness(1.15); }
.rush-aug b { font-size: 15px; color: #fff6dc; }
.rush-aug small { font-size: 12px; color: var(--text-2, #c7b9a8); }
.rush-aug-ico canvas { width: 30px; height: 30px; image-rendering: pixelated; }
.rush-aug-chip { padding: 1px 6px; font-size: 10px; color: #c8a0ff; border: 1px solid rgba(200, 160, 255, 0.5); background: rgba(120, 80, 200, 0.15); }
.rush-team { margin-top: 4px; letter-spacing: 1px; text-transform: uppercase; }
.rush-player.ally { box-shadow: inset 3px 0 0 var(--teal); }
/* the EQUIPPED tag astride the tile's top border (as HIT sits on a square's top) */
.it-tile > .eq-tag.over { top: 0; left: 50%; transform: translate(-50%, -50%); font-size: 8px; padding: 4px 6px 3px; z-index: 3; }
.ui3 .it-grid { padding-top: 10px; row-gap: 16px; }
/* (higher: resting on the border, clear of the count card and the wearer) */
.it-tile > .eq-tag.over { top: 3px; transform: translate(-50%, -100%); }
.ui3 .it-grid { padding-top: 20px; row-gap: 26px; }
.rush-sq.centre { box-shadow: inset 0 0 0 2px rgba(245, 197, 66, 0.55); }
.rush-sq.centre::after { content: "🪙"; position: absolute; right: 2px; bottom: 1px; font-size: 10px; opacity: 0.7; pointer-events: none; }
.rush-sq { position: relative; }
.rush-item-on { position: absolute; left: 2px; bottom: 2px; width: 18px; height: 18px; display: grid; place-items: center; background: #120e17; border: 1px solid #000; }
.rush-item-on canvas { width: 16px; height: 16px; image-rendering: pixelated; }
.rush-unit { position: relative; }
.rush-stash { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rush-stash-item { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; background: #120e17; border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.15); cursor: pointer; }
.rush-stash-item.sel { box-shadow: 0 0 0 2px var(--gold); }
.rush-stash-item canvas { width: 28px; height: 28px; image-rendering: pixelated; }
.rush-creeps { padding: 6px 8px; color: #ffb08a; background: rgba(120, 40, 10, 0.3); border: 1px solid rgba(255, 140, 60, 0.4); }
/* Settings > Sound: a channel on one row (its name and value, the slider, a mute button) */
.vol-line { display: flex; align-items: center; gap: 10px; padding: 2px 0; border-bottom: 1px solid rgba(255, 246, 220, 0.05); }
.vol-line .vol-row { flex: 1; min-width: 0; }
.vol-line .vol-mute { flex: 0 0 auto; }
.vol-line .vol-mute[aria-pressed="true"] { color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.vol-row.muted-ch { opacity: 0.45; }
/* the account: what it gives you */
.acc-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 10px; }
.acc-perk { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 246, 220, 0.08); }
.acc-perk-ico { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; background: #120e17; border: 1px solid #000; }
.acc-perk-ico canvas { width: 26px; height: 26px; image-rendering: pixelated; }
@media (max-width: 600px) { .acc-perks { grid-template-columns: minmax(0, 1fr); } }

/* ===================================================== the Patrol: an expedition planner, then a dashboard */
.pt-screen { max-width: 1160px; }
.pt-plan { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.pt-main { gap: 12px; min-width: 0; }
.pt-side { position: sticky; top: 0; }
@media (max-width: 900px) {
  .pt-plan { grid-template-columns: minmax(0, 1fr); }
  .pt-side { position: static; }
}
/* the routes, as landscapes */
.pt-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 600px) { .pt-routes { grid-template-columns: minmax(0, 1fr); } }
.pt-route { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: #17121d; border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.12), 0 4px 10px rgba(0, 0, 0, 0.4); transition: transform 0.1s; }
.pt-route:hover { transform: translateY(-2px); }
.pt-route.on { box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(245, 197, 66, 0.35); }
.pt-route-art { display: block; width: 100%; height: 72px; image-rendering: pixelated; border-bottom: 2px solid #000; }
.pt-route-info { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; }
.pt-route-info b { font-size: 15px; color: #fff6dc; }
.pt-route.on .pt-route-info b { color: var(--gold); }
.pt-pips { display: flex; gap: 3px; }
.pt-pips i { width: 14px; height: 6px; background: rgba(255, 255, 255, 0.12); border: 1px solid #000; }
.r-easy .pt-pips i.on { background: #5fd068; }
.r-normal .pt-pips i.on { background: #f5c542; }
.r-hard .pt-pips i.on { background: #e5484d; }
.pt-coins { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gold); }
.pt-coins img, .pt-coins canvas { width: 16px; height: 16px; image-rendering: pixelated; }
.pt-chosen { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; display: grid; place-items: center; color: #241405; background: var(--gold); border: 2px solid #000; font-weight: bold; }
/* the squad */
.pt-count { font-size: 18px; color: var(--gold); }
.pt-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) { .pt-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pt-slot { aspect-ratio: 1 / 1.1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; font: inherit; color: var(--text); cursor: default;
  background: rgba(0, 0, 0, 0.3); border: 2px dashed rgba(255, 246, 220, 0.18); }
.pt-slot.full { cursor: pointer; border: 2px solid #000; background: radial-gradient(circle at 50% 40%, #3d3249, #1e1826 75%); box-shadow: inset 0 0 0 1px var(--gold); }
.pt-slot.full:hover { box-shadow: inset 0 0 0 1px var(--bad); }
.pt-slot canvas { width: 48px; height: 48px; image-rendering: pixelated; }
.pt-slot small { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-plus { font-size: 22px; color: var(--muted); }
.pt-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.pt-pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 4px; font: inherit; color: var(--text); cursor: pointer;
  background: linear-gradient(180deg, #2e2638, #1d1724); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.1); }
.pt-pick:hover { box-shadow: inset 0 0 0 1px var(--copper-hi); }
.pt-pick.on { box-shadow: 0 0 0 2px var(--gold), inset 0 0 0 1px var(--gold); background: linear-gradient(180deg, #3a2e22, #241c16); }
.pt-pool.full .pt-pick:not(.on) { opacity: 0.5; }
.pt-pick canvas { width: 40px; height: 40px; image-rendering: pixelated; }
.pt-pick small { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-tier { position: absolute; top: 2px; left: 4px; font-size: 10px; color: var(--gold); }
/* the summary */
.pt-summary { gap: 8px; }
.pt-sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255, 246, 220, 0.07); font-size: 13px; }
.pt-sum-row span { color: var(--muted); }
.pt-sum-row b { text-align: right; }
.pt-go { margin-top: 6px; }
/* on patrol: the dashboard */
.pt-hero { position: relative; overflow: hidden; border: 2px solid #000; }
.pt-hero-tag { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; padding: 6px 12px; background: rgba(10, 8, 14, 0.75); border: 1px solid rgba(255, 246, 220, 0.2); }
.pt-hero-tag b { font-size: 15px; color: var(--gold); }
.pt-hero-tag small { font-size: 11px; color: var(--muted); }
.pt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pt-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; background: rgba(0, 0, 0, 0.3); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.08); }
.pt-stat b { font-size: 30px; color: #fff6dc; line-height: 1; }
.pt-stat small { font-size: 11px; color: var(--muted); text-align: center; }
.pt-actions { display: grid; gap: 8px; }
/* a patrol's report: as the game over shows what you won */
.pt-rp-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; min-height: 62px; padding: 10px 14px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 999px rgba(8, 7, 12, 0.5); border: 1px solid rgba(255, 255, 255, 0.12); }
.pt-rp-top b { font-family: var(--font-title); font-size: 20px; color: #fff6dc; text-shadow: 0 2px 0 #000; }
.pt-rp-top span { font-size: 14px; color: #fff6dc; text-shadow: 0 1px 2px #000; }
html[data-theme] .modal.pt-rp-modal { width: min(860px, 100%); }
.pt-rp-tiles, html[data-theme='neon'] .pt-rp .pt-rp-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.pt-rew { padding: 10px 6px 8px; text-align: center; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.12); }
.pt-rew img, .pt-rew canvas { display: block; width: 40px; height: 40px; margin: 0 auto 6px; }
.pt-rew b { display: block; font-size: 22px; }
.pt-rew small { display: block; font-size: 11px; color: var(--muted); }
html[data-theme='neon'] .pt-rp .nx-rew small { overflow: visible; white-space: normal; line-height: 1.2; }
.pt-rp-level .nx-bar-label { align-items: baseline; }
html[data-theme='neon'] .pt-rp-level .num { font-size: 20px; }
.pt-rp-level .num { font-size: 16px; }
html[data-theme='neon'] .pt-rp-level .nx-bar-label b { font-size: 24px; color: var(--gold); }
html[data-theme='neon'] .pt-rp .nx-rew { width: auto; animation-delay: 0s; }
html[data-theme='neon'] .pt-rp.fresh .nx-rew { animation-delay: calc(0.15s + var(--i) * 0.15s); }
html[data-theme='neon'] .pt-rp:not(.fresh) .nx-rew { animation: none; }
.pt-rp-sec { margin: 4px 0 0; }
.pt-loots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.pt-loot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px 8px; text-align: center; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.12); }
.pt-loot .pic { display: grid; place-items: center; min-height: 60px; }
.pt-loot small { font-size: 12px; line-height: 1.25; color: var(--teal); }
.pt-ms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pt-ms { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px 6px 6px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.12); }
.pt-ms .pic, html[data-theme='neon'] .pt-ms.nx-rt-card .pic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; }
.pt-ms .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pt-ms .top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; }
.pt-ms .gain { display: flex; align-items: baseline; gap: 8px; }
.pt-ms .gain b { font-family: var(--font-num); font-size: 18px; line-height: 1; color: var(--gold); }
.pt-ms .gain .stars { font-size: 12px; color: var(--muted); }
html[data-theme='neon'] .pt-ms .nx-bar { height: 6px; }
.pt-last .pt-ms-grid { grid-template-columns: minmax(0, 1fr); }
.pt-last .pt-rp-tiles, html[data-theme='neon'] .pt-last .pt-rp .pt-rp-tiles { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* on a computer: the whole team on one row, upright cards */
@media (min-width: 761px) {
  .modal .pt-loot { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 8px 14px; text-align: left; }
  .modal .pt-loot small { font-size: 14px; }
  .modal .pt-ms-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .modal .pt-ms, html[data-theme='neon'] .modal .pt-ms.nx-rt-card { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }
  .modal .pt-ms .pic, html[data-theme='neon'] .modal .pt-ms.nx-rt-card .pic { align-self: center; width: 60px; height: 60px; }
  .modal .pt-ms .top { flex-wrap: wrap; gap: 2px 6px; min-height: 18px; }
}
@media (max-width: 760px) {
  .pt-ms .pic, html[data-theme='neon'] .pt-ms.nx-rt-card .pic { width: 44px; height: 44px; }
}
.pt-slot { aspect-ratio: auto; height: 92px; }
@media (max-width: 600px) { .pt-slot { height: 80px; } }
/* the patrol docked on the main screen (open, in the side column), and sliding in to the corner elsewhere */
.pw-dock:empty { display: none; }
.patrol-widget.docked { position: static; width: auto; margin-top: 2px; box-shadow: inset 0 0 0 1px var(--v3-rim, rgba(200, 105, 46, 0.4)); }
.patrol-widget.docked .pw-min { display: none; }
.patrol-widget.enter { animation: pw-enter 0.42s cubic-bezier(0.2, 1.2, 0.4, 1); }
@keyframes pw-enter { from { transform: translateY(140%); opacity: 0; } to { transform: none; opacity: 1; } }
/* the tutorial's spotlight: the screen dims except what the coach talks about (none: all of it dims) */
.coach-spot { position: absolute; inset: 0; z-index: 28; pointer-events: none; animation: coach-spot-in 0.3s ease-out; }
.coach-spot[hidden] { display: none; }
.coach-dim { position: absolute; background: rgba(4, 3, 8, 0.78); transition: all 0.25s; }
.coach-ring { position: absolute; border: 3px solid var(--gold); border-radius: 6px; box-shadow: 0 0 18px 4px rgba(245, 197, 66, 0.45), inset 0 0 12px rgba(245, 197, 66, 0.25);
  transition: left 0.25s, top 0.25s, width 0.25s, height 0.25s; }
.coach-spot.none .coach-ring { display: none; }
@keyframes coach-spot-in { from { opacity: 0; } }
.patrol-widget.docked { gap: 6px; padding: 8px 10px; }
.patrol-widget.docked .pw-body:empty { display: none; }
.patrol-widget.docked .pw-stage .patrol-stage { height: 88px; }
.patrol-widget.docked .pw-stage .patrol-stage-wrap { margin: 0 -4px; }
.patrol-widget.docked .ps-label { padding: 3px 6px; }

/* ============================================ the Inventory's Mascots, Skins and Looks (and the Shop's lists): a browser */
.ib-bar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ib-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ib-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; background: rgba(0, 0, 0, 0.28); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.07); }
.ib-pick { display: inline-flex; align-items: center; gap: 6px; }
.ib-search { font: inherit; font-size: 12px; color: #fff6dc; background: #17121d; border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.15); padding: 4px 8px; width: 180px; max-width: 100%; }
.ib-search:focus { outline: none; box-shadow: inset 0 0 0 1px var(--gold); }
/* the grid / list switch */
.ib-views { display: inline-flex; border: 2px solid #000; }
.ib-view { width: 32px; height: 28px; display: grid; place-items: center; padding: 0; cursor: pointer; background: #1d1724; border: 0; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.08); }
.ib-view + .ib-view { border-left: 2px solid #000; }
.ib-view.on { background: #3a2e22; box-shadow: inset 0 0 0 1px var(--gold); }
.ib-glyph { display: grid; gap: 2px; }
.ib-glyph i { display: block; background: var(--muted); }
.ib-view.on .ib-glyph i { background: var(--gold); }
.ib-glyph.g-grid { grid-template-columns: 6px 6px; }
.ib-glyph.g-grid i { width: 6px; height: 6px; }
.ib-glyph.g-list { grid-template-columns: 14px; }
.ib-glyph.g-list i { width: 14px; height: 2px; }
.ib-glyph.g-list i:nth-child(4) { display: none; }
/* the entries and the chosen one */
.ib-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ib-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ib-count { text-align: right; }
.ib-none { padding: 18px; text-align: center; }
@media (max-width: 900px) {
  .ib-layout { grid-template-columns: minmax(0, 1fr); }
  .ib-detail { position: static !important; }
  .ib-search { width: 100%; }
  .ib-tools .grow { display: none; }
}
.ib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.ib-tile, .ib-row { position: relative; font: inherit; color: var(--text); cursor: pointer; text-align: left;
  background: linear-gradient(180deg, #2e2638, #1d1724); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.1); transition: transform 0.08s; }
.ib-tile:hover, .ib-row:hover { box-shadow: inset 0 0 0 1px var(--copper-hi, #e08a4a); }
.ib-tile.selected, .ib-row.selected { box-shadow: 0 0 0 2px var(--gold), inset 0 0 0 1px var(--gold); background: linear-gradient(180deg, #3a2e22, #241c16); }
.ib-tile { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px 8px; text-align: center; }
.ib-tile:hover { transform: translateY(-1px); }
.ib-pic { display: grid; place-items: center; flex-shrink: 0; background: #120e17; border: 1px solid #000; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6); overflow: hidden; }
.ib-tile .ib-pic { width: 76px; height: 76px; }
.ib-row .ib-pic { width: 46px; height: 46px; }
.ib-pic canvas, .ib-pic img { image-rendering: pixelated; max-width: 100%; max-height: 100%; }
.ib-tile .ib-pic canvas, .ib-tile .ib-pic img { width: 64px; height: auto; }
.ib-row .ib-pic canvas, .ib-row .ib-pic img { width: 40px; height: auto; }
.ib-pic .look-frame { transform: scale(0.8); }
.ib-row .ib-pic .look-frame { width: 36px !important; height: 36px !important; }
.ib-name { font-size: 12px; line-height: 1.2; }
.ib-sub { font-size: 10px; color: var(--muted); }
.ib-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 2px; }
.ib-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; font-size: 9px; letter-spacing: 0.5px; color: var(--muted); background: rgba(0, 0, 0, 0.45); border: 1px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.12); white-space: nowrap; }
.ib-tag.teal { color: var(--teal, #4fd1c5); box-shadow: inset 0 0 0 1px rgba(79, 209, 197, 0.5); }
.ib-tag.gold { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.5); }
.ib-tag.gem { color: #9fe3ff; }
.ib-tag canvas, .ib-tag img { width: 12px; height: 12px; image-rendering: pixelated; }
.ib-lock { position: absolute; top: 5px; right: 5px; opacity: 0.85; }
.ib-tile.locked .ib-pic > *, .ib-row.locked .ib-pic > * { filter: grayscale(1) brightness(0.55); }
.ib-tile.locked .ib-name, .ib-row.locked .ib-name { opacity: 0.7; }
.ib-list { display: flex; flex-direction: column; gap: 4px; }
.ib-row { display: grid; grid-template-columns: 46px minmax(110px, 1.1fr) minmax(0, 2fr) auto; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; }
.ib-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ib-txt .ib-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-line { color: var(--muted); line-height: 1.3; min-width: 0; }
.ib-row .ib-tags { margin: 0; justify-content: flex-end; align-items: center; }
@media (max-width: 600px) {
  .ib-row { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .ib-row .ib-line { display: none; }
  .ib-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}
/* the panel */
.ib-detail { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.ib-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 246, 220, 0.08); }
.ib-big { width: 148px; height: 148px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #3d3249, #17121d 72%); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.12), 0 4px 0 rgba(0, 0, 0, 0.4); }
.ib-big canvas, .ib-big img { image-rendering: pixelated; max-width: 128px; max-height: 128px; }
.ib-big .look-emoji { line-height: 1; }
.ib-title { font-family: var(--font-title, inherit); font-size: 17px; color: #fff6dc; text-shadow: 0 2px 0 #000; }
.ib-block { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; background: rgba(0, 0, 0, 0.3); border: 2px solid #000; }
.ib-label { letter-spacing: 1px; text-transform: uppercase; }
.ib-price-row { flex-direction: row; align-items: center; justify-content: space-between; }
.ib-compare { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ib-cmp { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ib-cmp canvas { width: 56px; height: 56px; image-rendering: pixelated; background: #120e17; border: 1px solid #000; }
.ib-arrow { color: var(--gold); font-size: 18px; }

/* the view switch's track glyph (the pass) */
.ib-glyph.g-track { grid-template-columns: 4px 4px 4px; align-items: end; }
.ib-glyph.g-track i { width: 4px; height: 10px; }
.ib-glyph.g-track i:nth-child(2) { height: 6px; }
.ib-glyph.g-track i:nth-child(4) { display: none; }
.ib-tools .ib-chips { flex: 0 1 auto; }

/* =========================================================== the Shop: patrol supplies as three cards */
.sp-status { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 12px; }
.sp-dot { width: 12px; height: 12px; flex-shrink: 0; background: #5a5060; border: 2px solid #000; }
.sp-dot.on { background: #5fd068; box-shadow: 0 0 8px rgba(95, 208, 104, 0.6); }
.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 800px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }
.sp-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 14px 12px; text-align: center; }
.sp-art { width: 104px; height: 104px; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, #3d3249, #17121d 72%); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.12), 0 4px 0 rgba(0, 0, 0, 0.4); }
.sp-pic { width: 72px; height: 72px; image-rendering: pixelated; }
.sp-name { font-family: var(--font-title, inherit); font-size: 16px; color: #fff6dc; text-shadow: 0 2px 0 #000; }
.sp-desc { margin: 0; color: var(--muted); min-height: 2.8em; }
.sp-big { font-size: 15px; color: var(--gold); }
.sp-big.num { font-size: 30px; line-height: 1; }
.sp-steps { display: flex; gap: 6px; }
.sp-step { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); }
.sp-step i { width: 26px; height: 8px; background: rgba(255, 255, 255, 0.1); border: 1px solid #000; }
.sp-step.on { color: var(--gold); }
.sp-step.on i { background: var(--gold); }
.sp-step.next i { background: rgba(245, 197, 66, 0.3); animation: coach-pulse 1.2s ease-in-out infinite; }
.sp-foot { margin-top: auto; width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding-top: 8px; border-top: 1px solid rgba(255, 246, 220, 0.08); }
.sp-buy { justify-content: center; font-size: 16px; }
.sp-state { padding: 8px; font-size: 13px; }

/* =========================================================== the Shop: the game pass */
.ps-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 16px; }
@media (max-width: 700px) { .ps-head { grid-template-columns: auto minmax(0, 1fr); } .ps-side { grid-column: 1 / -1; flex-direction: row !important; } }
.ps-tier { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 78px; height: 78px; background: radial-gradient(circle at 50% 40%, #4a3a22, #1d1610 75%); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--gold), 0 4px 0 rgba(0, 0, 0, 0.4); }
.ps-tier b { font-size: 34px; line-height: 1; color: var(--gold); text-shadow: 0 2px 0 #000; }
.ps-tier small { font-size: 9px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.ps-mid { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ps-title { font-family: var(--font-title, inherit); font-size: 16px; color: #fff6dc; }
.ps-side { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ps-prem { padding: 6px 12px; text-align: center; color: #241405; background: linear-gradient(180deg, #ffd96a, #d99a1e); border: 2px solid #000; font-weight: bold; }
.ps-note { margin: 6px 2px 0; }
.ps-tools { margin: 12px 0 10px; }
/* the track: lanes across, one column a tier */
.ps-track { display: grid; grid-template-columns: 74px minmax(0, 1fr); background: rgba(0, 0, 0, 0.3); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.07); }
.ps-lanes { display: grid; grid-template-rows: 34px 112px 112px; gap: 6px; padding: 8px 0 12px 8px; }
.ps-lane-name { display: flex; align-items: center; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ps-lane-name.gold { color: var(--gold); }
.ps-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 8px 8px 12px; scroll-behavior: smooth; }
.ps-col { flex: 0 0 104px; display: grid; grid-template-rows: 34px 112px 112px; gap: 6px; }
.ps-num { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; background: #17121d; border: 2px solid #000; }
.ps-num b { font-size: 18px; color: var(--muted); }
.ps-col.reached .ps-num { background: linear-gradient(180deg, #4a3a22, #2a2014); }
.ps-col.reached .ps-num b { color: var(--gold); }
.ps-col.next .ps-num { box-shadow: 0 0 0 2px var(--teal, #4fd1c5); }
.ps-here { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 1px 5px; font-size: 8px; letter-spacing: 1px; color: #062a26; background: var(--teal, #4fd1c5); border: 1px solid #000; white-space: nowrap; }
.ps-col.big .ps-num::after { content: '★'; color: var(--gold); font-size: 11px; }
.ps-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px; font: inherit; color: var(--text); text-align: center;
  background: linear-gradient(180deg, #2e2638, #1d1724); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.1); }
.ps-cell.prem { background: linear-gradient(180deg, #3a2e1c, #221a12); box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.3); }
.ps-pic canvas, .ps-pic img { width: 28px; height: 28px; image-rendering: pixelated; }
.ps-what { line-height: 1.2; max-height: 2.5em; overflow: hidden; color: #e8dcc4; }
.ps-state { min-height: 1.1em; color: var(--muted); }
.ps-cell.ready { cursor: pointer; box-shadow: 0 0 0 2px var(--teal, #4fd1c5), inset 0 0 0 1px var(--teal, #4fd1c5); animation: ps-glow 1.6s ease-in-out infinite; }
.ps-cell.ready .ps-state { color: var(--teal, #4fd1c5); font-weight: bold; }
.ps-cell.ready:hover { transform: translateY(-1px); }
@keyframes ps-glow { 50% { box-shadow: 0 0 0 2px var(--teal, #4fd1c5), 0 0 12px rgba(79, 209, 197, 0.5); } }
.ps-cell.got { opacity: 0.55; }
.ps-cell.got .ps-state { color: var(--good, #5fd068); }
.ps-cell.locked .ps-pic { filter: grayscale(0.7) brightness(0.7); }
.ps-lock { position: absolute; top: 4px; right: 4px; opacity: 0.8; }
/* the list: a row a tier */
.ps-list { display: flex; flex-direction: column; gap: 4px; }
.ps-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.ps-row .ps-cell { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 6px 10px; text-align: left; }
.ps-row .ps-what { flex: 1; max-height: none; }
.ps-row .ps-lock { position: static; }
.ps-row.reached .ps-num { background: linear-gradient(180deg, #4a3a22, #2a2014); }
.ps-row.reached .ps-num b { color: var(--gold); }
.ps-row.next .ps-num { box-shadow: 0 0 0 2px var(--teal, #4fd1c5); }

/* =========================================================== the Profile */
.screen-profile .max.col { gap: 12px; }
.pf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pf-head .h2 { margin: 0; }
/* the playercard and what makes it up */
.pf-card { display: flex; flex-direction: column; gap: 6px; justify-content: center; min-width: 0; }
.pf-card .playercard { width: 100%; max-width: none; }
.pf-ident { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; }
.pf-id-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255, 246, 220, 0.07); }
.pf-id-row:last-child { border-bottom: 0; }
.pf-switch { display: flex; padding: 2px; background: none; border: 0; cursor: pointer; }
.pf-switch:disabled { opacity: 0.4; cursor: default; }
.pf-id-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
/* level, rank, pass */
.pf-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 800px) { .pf-badges { grid-template-columns: minmax(0, 1fr); } }
.pf-badge { display: flex; align-items: center; gap: 14px; padding: 12px 14px; text-align: left; font: inherit; color: var(--text); }
.pf-badge > canvas, .pf-badge > img { width: 56px; height: 56px; image-rendering: pixelated; flex-shrink: 0; }
.pf-badge-ico { width: 56px; height: 56px; display: grid; place-items: center; flex-shrink: 0; background: rgba(0, 0, 0, 0.3); border: 2px solid #000; }
.pf-badge-ico canvas, .pf-badge-ico img { width: 40px; height: 40px; image-rendering: pixelated; }
.pf-badge-txt { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.pf-badge-big { font-family: var(--font-title, inherit); font-size: 18px; color: #fff6dc; text-shadow: 0 2px 0 #000; line-height: 1.1; }
.pf-badge-big.num { font-family: inherit; font-size: 32px; color: var(--gold); }
.pf-link { cursor: pointer; }
.pf-link:hover { box-shadow: inset 0 0 0 1px var(--copper-hi, #e08a4a); }
.pf-pips { display: flex; gap: 4px; }
.pf-pips i { width: 16px; height: 8px; background: rgba(255, 255, 255, 0.1); border: 1px solid #000; }
.pf-pips i.on { background: var(--teal, #4fd1c5); }
/* the headline numbers */
.pf-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; padding: 0; }
@media (max-width: 900px) { .pf-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pf-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-num { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 6px; text-align: center; border-right: 1px solid rgba(255, 246, 220, 0.07); }
.pf-num:last-child { border-right: 0; }
.pf-num b { font-size: 26px; line-height: 1; color: #fff6dc; }
.pf-num.good b { color: var(--good, #5fd068); }
.pf-num.gold b { color: var(--gold); }
/* records | form, favourites, grades */
.pf-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 12px; align-items: start; }
@media (max-width: 900px) { .pf-cols { grid-template-columns: minmax(0, 1fr); } }
.pf-side { display: flex; flex-direction: column; gap: 12px; }
.pf-records { padding: 12px 14px; }
.pf-seg { display: inline-flex; border: 2px solid #000; }
.pf-seg-btn { padding: 5px 12px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; background: #1d1724; border: 0; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.08); }
.pf-seg-btn + .pf-seg-btn { border-left: 2px solid #000; }
.pf-seg-btn.on { color: var(--gold); background: #3a2e22; box-shadow: inset 0 0 0 1px var(--gold); }
.pf-form-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.pf-res { width: 24px; height: 24px; display: grid; place-items: center; font-size: 11px; font-weight: bold; border: 2px solid #000; color: #fff; }
button.pf-res { padding: 0; font-family: inherit; cursor: pointer; transition: transform 0.06s, filter 0.12s; }
button.pf-res:hover, button.pf-res:focus-visible { filter: brightness(1.25); transform: translateY(-1px); outline: 2px solid var(--gold); outline-offset: 1px; }
.pf-res.win { background: #2f7a3a; }
.pf-res.loss { background: #8a2a2e; }
.pf-res.draw { background: #5a5060; }
.pf-podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin-top: 6px; }
.pf-pod { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; text-align: center; }
.pf-pod canvas { image-rendering: pixelated; }
.pf-step { display: grid; place-items: center; width: 100%; margin-top: 4px; font-size: 16px; color: #241405; font-weight: bold; border: 2px solid #000; }
.pf-pod.p1 .pf-step { height: 40px; background: linear-gradient(180deg, #ffd96a, #d99a1e); }
.pf-pod.p2 .pf-step { height: 28px; background: linear-gradient(180deg, #e8e8f0, #9a9aaa); }
.pf-pod.p3 .pf-step { height: 20px; background: linear-gradient(180deg, #e0a070, #9a5a2a); }
.pf-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; height: 120px; align-items: end; margin-top: 6px; }
.pf-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; }
.pf-bar i { display: block; width: 100%; min-height: 3px; background: #6a5e78; border: 1px solid #000; }
.pf-bar b { font-size: 12px; }
.pf-bar.g-sp i { background: linear-gradient(180deg, #ffe08a, #f5a623); }
.pf-bar.g-s i { background: #f5c542; }
.pf-bar.g-a i { background: #5fd068; }
.pf-bar.g-b i { background: #4f9dff; }
.pf-bar.g-c i { background: #b56cff; }
.pf-bar.g-f i { background: #e5484d; }
/* achievements */
.pf-ach { padding: 12px 14px; }
.pf-ach-top { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 8px; }
.pf-ach-n { font-size: 24px; color: var(--gold); }
.pf-ach-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
@media (max-width: 800px) { .pf-ach-list { grid-template-columns: minmax(0, 1fr); } }
.pf-ach-row { display: flex; align-items: center; gap: 10px; padding: 8px; background: rgba(0, 0, 0, 0.3); border: 2px solid #000; min-width: 0; }
.pf-ach-head { display: flex; align-items: center; gap: 16px; padding: 12px 16px; margin-bottom: 4px; }
.pf-ring { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, 0.1) 0); border: 2px solid #000; }
.pf-ring.done { background: conic-gradient(var(--teal, #4fd1c5) 100%, transparent 0); }
.pf-ring-in { display: grid; place-items: center; width: 74%; height: 74%; border-radius: 50%; background: #17121d; border: 2px solid #000; }
.pf-ring-in canvas, .pf-ring-in img { image-rendering: pixelated; }
.ib-pic .pf-ring { width: 56px !important; height: 56px !important; }
.ib-row .ib-pic .pf-ring { width: 38px !important; height: 38px !important; }
.ib-big .pf-ring-in canvas, .ib-big .pf-ring-in img { width: 48px; height: 48px; }
.pf-reward-card { width: 100%; height: auto; aspect-ratio: 4 / 1; image-rendering: pixelated; border: 2px solid #000; }
/* history filters */
.pf-hist-tools { margin-bottom: 8px; }
/* calling cards */
.pf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pf-callcard { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 8px; font: inherit; color: var(--text); text-align: left; cursor: pointer;
  background: linear-gradient(180deg, #2e2638, #1d1724); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.1); }
.pf-callcard:hover { box-shadow: inset 0 0 0 1px var(--copper-hi, #e08a4a); }
.pf-callcard.selected { box-shadow: 0 0 0 2px var(--gold), inset 0 0 0 1px var(--gold); }
.pf-card-frame { position: relative; display: block; border: 2px solid #000; }
.pf-card-pic { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; image-rendering: pixelated; }
.pf-callcard.locked .pf-card-pic { filter: grayscale(1) brightness(0.45); }
.pf-card-lock { position: absolute; inset: 0; display: grid; place-items: center; }
.pf-card-row { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 2px; }
.pf-card-row b { flex: 1; min-width: 0; }
.pf-callcard.locked .pf-card-row b { color: var(--muted); }
.pf-card-how { padding: 0 2px; }
/* teams */
.pf-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pf-team { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.pf-team-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.pf-team-head b { font-size: 15px; color: #fff6dc; }
.pf-team-pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.pf-team-pic { display: grid; place-items: center; aspect-ratio: 1; background: #120e17; border: 1px solid #000; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6); }
.pf-team-pic canvas { width: 44px; height: 44px; image-rendering: pixelated; }
.pf-team-syn { min-height: 22px; }
.pf-team-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.pf-team-new { align-items: center; justify-content: center; min-height: 200px; font: inherit; color: var(--muted); cursor: pointer; background: rgba(0, 0, 0, 0.25); border: 2px dashed rgba(255, 246, 220, 0.2); }
.pf-team-new:hover { color: var(--gold); border-color: var(--gold); }
.pf-plus { font-size: 36px; line-height: 1; }

/* the profile's playercard across the top, its pencil and the box that edits it */
.pf-hero { position: relative; }
.pf-hero > .playercard { width: 100%; max-width: none; }
.pf-pencil { position: absolute; top: -14px; right: -14px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: rgba(14, 10, 18, 0.82); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.25), 0 3px 0 rgba(0, 0, 0, 0.5); transition: transform 0.1s; }
.pf-pencil:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--gold), 0 3px 0 rgba(0, 0, 0, 0.5); }
.pf-pencil.on { background: #3a2e22; box-shadow: inset 0 0 0 1px var(--gold), 0 0 12px rgba(245, 197, 66, 0.4); }
.pf-pencil-pic { width: 24px; height: 24px; image-rendering: pixelated; }
.pf-pop { position: absolute; top: 36px; right: -14px; z-index: 20; width: min(380px, calc(100% - 20px)); box-shadow: 0 0 0 2px #000, 0 10px 24px rgba(0, 0, 0, 0.6) !important; animation: pf-pop-in 0.16s ease-out; }
.pf-pop[hidden] { display: none; }
.pf-pop::before { content: ''; position: absolute; top: -9px; right: 12px; width: 14px; height: 14px; transform: rotate(45deg); background: inherit; border-left: 2px solid #000; border-top: 2px solid #000; }
@keyframes pf-pop-in { from { opacity: 0; transform: translateY(-6px); } }
/* history: the grade, the MVP */
.mh-grade { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; }
.mh-grade.none { color: var(--muted); font-size: 14px; }
.grade-badge .gb-letter { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 4%; font-family: var(--font-title, inherit); line-height: 1; color: #fff; text-shadow: 0 2px 0 #000, 0 0 3px #000; pointer-events: none; }
.mh-unit { position: relative; }
.mh-unit.mvp { outline: 2px solid var(--gold); outline-offset: 1px; box-shadow: 0 0 8px rgba(245, 197, 66, 0.45); }
.mh-unit .mvp-tag { position: absolute; top: -10px; right: -9px; z-index: 1; padding: 1px 3px; font-size: 8px; line-height: 1.2; letter-spacing: 0.5px; font-weight: bold;
  color: #1c1206; background: var(--gold); border: 2px solid #000; pointer-events: none; }
/* achievement badges */
.ach-badge { position: relative; display: inline-block; flex-shrink: 0; line-height: 0; }
.ach-badge-pic { display: block; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55)); }
.ach-badge.locked .ach-badge-pic { filter: grayscale(1) brightness(0.42) contrast(1.1); }
/* the new art's badges (render/ach-badges.js artBadge): painted, filling the box; locked ones darkened the same way */
.ach-badge > .ach-badge-art { width: 100% !important; height: 100% !important; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55)); }
.ach-badge.locked > .ach-badge-art { filter: grayscale(1) brightness(0.42) contrast(1.1); }
.ach-badge.anim .ach-badge-pic { animation: ach-glow 2.4s ease-in-out infinite; }
@keyframes ach-glow { 50% { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 0 6px var(--glow)); } }
.ach-shine { position: absolute; inset: 0; pointer-events: none; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; image-rendering: pixelated;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.75) 47%, rgba(255, 255, 255, 0.15) 53%, transparent 62%) no-repeat; background-size: 300% 100%;
  animation: ach-shine 3s ease-in-out infinite; }
@keyframes ach-shine { 0% { background-position: 120% 0; } 45%, 100% { background-position: -40% 0; } }
.ach-spark { position: absolute; width: 14%; height: 14%; pointer-events: none; opacity: 0; animation: ach-twinkle 2.2s ease-in-out infinite;
  background: linear-gradient(#fff, #fff) center / 100% 30% no-repeat, linear-gradient(#fff, #fff) center / 30% 100% no-repeat; }
.ach-spark.s0 { top: 2%; right: 6%; }
.ach-spark.s1 { bottom: 10%; left: 2%; animation-delay: 0.8s; }
.ach-spark.s2 { top: 30%; left: -4%; animation-delay: 1.5s; width: 10%; height: 10%; }
@keyframes ach-twinkle { 0%, 100% { opacity: 0; transform: scale(0.4); } 40% { opacity: 1; transform: scale(1); } 60% { opacity: 0; transform: scale(0.6); } }
@media (prefers-reduced-motion: reduce) { .ach-shine, .ach-spark, .ach-badge.anim .ach-badge-pic { animation: none; } }
.reduce-motion .ach-shine, .reduce-motion .ach-spark, .reduce-motion .ach-badge.anim .ach-badge-pic { animation: none; }
.pf-ach-pic { display: inline-grid; place-items: center; flex-shrink: 0; }
.ib-pic .pf-ach-pic, .ib-pic .pf-ach-pic .ach-badge, .ib-pic .pf-ach-pic .ach-badge-pic { width: 56px !important; height: 56px !important; }
.ib-row .ib-pic .pf-ach-pic, .ib-row .ib-pic .pf-ach-pic .ach-badge, .ib-row .ib-pic .pf-ach-pic .ach-badge-pic { width: 38px !important; height: 38px !important; }
.ib-pic .pf-ring .ach-badge, .ib-pic .pf-ring .ach-badge-pic { width: 34px !important; height: 34px !important; }
.ib-row .ib-pic .pf-ring .ach-badge, .ib-row .ib-pic .pf-ring .ach-badge-pic { width: 22px !important; height: 22px !important; }
.ib-big .ach-badge-pic, .ib-big .ach-badge { max-width: none; }
.ib-pic .ach-badge-pic, .ib-big .ach-badge-pic { width: auto; }
body:has(.pf-pop:not([hidden])) > .patrol-widget { visibility: hidden; }

/* =========================================================== social: friends, chat, players, invitations */
/* a player's face in a list: their mascot (or initial) and an online dot */
.so-ava { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; overflow: visible;
  background: radial-gradient(circle at 50% 40%, #3d3249, #17121d 75%); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.12); }
.so-ava canvas { image-rendering: pixelated; }
.so-initial { font-family: var(--font-title, inherit); font-size: 16px; color: var(--copper-hi, #e08a4a); }
.so-dot { position: absolute; right: -4px; bottom: -4px; width: 11px; height: 11px; border: 2px solid #000; background: #5a5060; }
.so-dot.on { background: #5fd068; box-shadow: 0 0 6px rgba(95, 208, 104, 0.7); }
.so-dot.on.match { background: #f5c542; box-shadow: 0 0 6px rgba(245, 197, 66, 0.7); }
.so-dot.on.queue { background: #4fd1c5; }
/* the friends tab */
.so-page { max-width: 1160px; }
.so-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
@media (max-width: 900px) { .so-grid { grid-template-columns: minmax(0, 1fr); } .so-side { order: -1; } }
.so-main { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.so-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.so-head .h2 { margin: 0; }
.so-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.so-search-box { display: flex; align-items: center; gap: 6px; padding: 0 8px; background: #17121d; border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.15); }
.so-search-box:focus-within { box-shadow: inset 0 0 0 1px var(--gold); }
.so-search-box canvas { opacity: 0.6; }
.so-search { flex: 1; min-width: 0; font: inherit; font-size: 13px; color: #fff6dc; background: none; border: 0; padding: 6px 0; outline: none; }
.so-search.big { font-size: 14px; padding: 9px 0; }
.so-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.so-groups { display: flex; flex-direction: column; gap: 12px; }
.so-group { display: flex; flex-direction: column; gap: 4px; }
.so-group-title { display: flex; align-items: center; gap: 8px; padding: 0 2px 2px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.so-group-title b { padding: 0 6px; font-size: 10px; color: #fff6dc; background: rgba(0, 0, 0, 0.4); border: 1px solid #000; }
.so-group.on .so-group-title span { color: #5fd068; }
.so-group.incoming .so-group-title span { color: var(--gold); }
.so-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; min-width: 0;
  background: linear-gradient(90deg, rgba(46, 38, 56, 0.95), rgba(29, 23, 36, 0.9)); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.07); }
.so-row:hover { box-shadow: inset 0 0 0 1px var(--copper-hi, #e08a4a); }
.so-row.compact { padding: 6px 8px; gap: 10px; }
.so-row:not(.online) .so-ava canvas { filter: grayscale(0.6) brightness(0.8); }
.so-who { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.so-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.so-name b { font-size: 14px; color: #fff6dc; }
.so-lvl { padding: 0 5px; font-size: 10px; line-height: 15px; color: #241405; background: var(--gold); border: 1px solid #000; }
.so-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.so-msg.unread { box-shadow: inset 0 0 0 1px var(--teal, #4fd1c5), 0 0 8px rgba(79, 209, 197, 0.5); color: var(--teal, #4fd1c5); }
.so-rel { color: var(--muted); }
.so-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 10px; text-align: center; opacity: 0.85; }
.so-none { padding: 8px; }
.so-side { display: flex; flex-direction: column; gap: 12px; }
.so-add { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.so-add-head { display: flex; gap: 10px; align-items: center; }
.so-add-head .h2 { margin: 0 0 2px; }
.so-add-head p { margin: 0; }
.so-add-ico { width: 48px; height: 48px; display: grid; place-items: center; flex-shrink: 0; background: rgba(79, 209, 197, 0.12); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(79, 209, 197, 0.4); }
.so-add-row { display: flex; gap: 8px; }
.so-results { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow-y: auto; }
.so-myname { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(0, 0, 0, 0.3); border: 2px dashed rgba(255, 246, 220, 0.15); }
.so-myname b { flex: 1; min-width: 0; color: var(--gold); overflow: hidden; text-overflow: ellipsis; }
.so-invite-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.so-invite-card:hover { box-shadow: inset 0 0 0 1px var(--copper-hi, #e08a4a); }
.so-invite-card p { margin: 2px 0 0; }
/* the chat */
.chat-dock { display: flex; flex-direction: column; gap: 0; padding: 0 !important; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; background: linear-gradient(180deg, #2e2638, #1d1724); border-bottom: 2px solid #000; }
.chat-who { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.chat-who b { font-size: 15px; color: #fff6dc; }
.chat-tools { display: flex; gap: 6px; }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #120e17; }
.chat-body .chat-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 14px; background: none; border: 0; }
.chat-older { align-self: center; margin-top: 8px; }
.chat-day { display: flex; justify-content: center; margin: 10px 0 6px; }
.chat-day span { padding: 2px 10px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 246, 220, 0.1); }
.chat-line { display: flex; align-items: flex-end; gap: 6px; }
.chat-line.first { margin-top: 6px; }
.chat-line .so-ava canvas { width: 20px; height: 20px; }
.chat-ava-gap { width: 28px; flex-shrink: 0; }
.chat-msg { max-width: 78%; padding: 7px 10px 5px; font-size: 13px; line-height: 1.35; color: #fff6dc; background: #2e2638; border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.08); overflow-wrap: anywhere; }
.chat-msg.mine { align-self: flex-end; background: #1f4a46; box-shadow: inset 0 0 0 1px rgba(79, 209, 197, 0.35); }
.chat-msg.mine.first { margin-top: 6px; }
.chat-msg.emote { background: none; box-shadow: none; border-color: transparent; }
.chat-msg .chat-emote { font-size: 30px; line-height: 1; }
.chat-meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 2px; font-size: 9px; opacity: 0.75; }
.chat-unsend { padding: 0 3px; font: inherit; color: var(--muted); background: none; border: 0; cursor: pointer; opacity: 0; }
.chat-msg:hover .chat-unsend, .chat-unsend:focus-visible { opacity: 1; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; }
.chat-replay { display: flex; align-items: center; gap: 10px; padding: 4px 2px; min-width: 180px; }
.chat-replay-ico { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; background: rgba(0, 0, 0, 0.4); border: 2px solid #000; }
.chat-msg .chat-replay + .btn, .chat-msg > .chat-replay ~ .btn { margin-top: 6px; }
.chat-tray { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 8px; background: #1d1724; border-top: 2px solid #000; animation: pf-pop-in 0.14s ease-out; }
.chat-tray[hidden] { display: none; }
.chat-tray-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font: inherit; color: var(--text); cursor: pointer; background: rgba(0, 0, 0, 0.3); border: 2px solid #000; }
.chat-tray-btn:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.chat-tray-btn span { font-size: 22px; line-height: 1; }
.chat-tray-btn small { font-size: 9px; color: var(--muted); }
.chat-send { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: linear-gradient(180deg, #2e2638, #1d1724); border-top: 2px solid #000; }
.chat-field { position: relative; display: flex; align-items: center; min-width: 0; background: #17121d; border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.15); }
.chat-field:focus-within { box-shadow: inset 0 0 0 1px var(--teal, #4fd1c5); }
.chat-input { flex: 1; min-width: 0; font: inherit; font-size: 13px; color: #fff6dc; background: none; border: 0; outline: none; padding: 8px 10px; }
.chat-count { padding-right: 8px; }
.chat-go { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; padding: 0; cursor: pointer; background: linear-gradient(180deg, #3aa89e, #1f6f68); border: 2px solid #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 0 rgba(0, 0, 0, 0.45); }
.chat-go:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
/* a player's card by their name */
.player-pop { display: flex; flex-direction: column; gap: 8px; padding: 8px !important; width: min(360px, calc(100vw - 16px)); box-shadow: 0 0 0 2px #000, 0 12px 26px rgba(0, 0, 0, 0.6) !important; animation: pf-pop-in 0.14s ease-out; }
.player-pop .playercard { width: 100%; }
.pp-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 2px; }
.pp-chip { padding: 2px 7px; font-size: 10px; color: #e8dcc4; background: rgba(0, 0, 0, 0.4); border: 1px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.12); }
.pp-chip.good { color: #5fd068; box-shadow: inset 0 0 0 1px rgba(95, 208, 104, 0.4); }
.player-pop .pp-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 6px; }
.player-pop .pp-acts .btn { justify-content: center; }
/* another player's profile */
.op-modal { width: min(820px, calc(100vw - 24px)) !important; }
.op-body { display: flex; flex-direction: column; gap: 10px; }
.op-hero .playercard { width: 100%; max-width: none; }
.op-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 2px; }
.op-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: rgba(0, 0, 0, 0.3); border: 2px solid #000; }
.op-acts, .op-more { display: flex; flex-wrap: wrap; gap: 6px; }
.op-more .btn { opacity: 0.85; }
.op-hidden { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; }
.op-strip { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.op-strip .pf-num b { font-size: 18px; }
@media (max-width: 640px) { .op-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.op-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.op-box { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.op-box .h2 { margin: 0; }
.op-best { display: flex; gap: 12px; justify-content: center; }
.op-champ { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.op-champ canvas { image-rendering: pixelated; background: #120e17; border: 2px solid #000; }
.pf-res.small { width: 18px; height: 18px; font-size: 9px; }
/* an invitation */
.invite-pop { display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 20px)); padding: 12px 14px !important; box-shadow: 0 0 0 2px var(--teal, #4fd1c5), 0 12px 26px rgba(0, 0, 0, 0.6) !important; animation: pf-pop-in 0.2s ease-out; }
.ip-kicker { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal, #4fd1c5); }
.ip-kicker b { font-size: 15px; letter-spacing: 0; color: #fff6dc; font-family: inherit; }
.ip-main { display: flex; align-items: center; gap: 12px; }
.ip-main .so-ava canvas { width: 40px; height: 40px; }
.ip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ip-name { font-family: var(--font-title, inherit); font-size: 17px; color: #fff6dc; }
.ip-what { align-self: flex-start; margin-top: 2px; padding: 2px 7px; color: var(--gold); background: rgba(0, 0, 0, 0.4); border: 1px solid #000; }
.ip-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.ip-btns .btn { justify-content: center; }
.invite-bar { height: 6px; }
.iw-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 6px 0; }
.iw-faces { display: flex; align-items: center; gap: 14px; }
.iw-dots { display: flex; gap: 5px; }
.iw-dots i { width: 7px; height: 7px; background: var(--teal, #4fd1c5); border: 1px solid #000; animation: iw-dot 1.2s ease-in-out infinite; }
.iw-dots i:nth-child(2) { animation-delay: 0.2s; }
.iw-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes iw-dot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.iw-body .invite-bar { width: 100%; }
/* the ready check */
.q-kicker { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--teal, #4fd1c5); }
.q-seats { display: flex; justify-content: center; gap: 10px; margin: 4px 0; }
.q-seat { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 70px; }
.q-seat i { width: 46px; height: 46px; display: grid; place-items: center; font-style: normal; font-size: 20px; font-weight: bold; color: var(--muted);
  background: #17121d; border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.12); transition: background 0.2s, transform 0.2s; }
.q-seat.ok i { color: #062a12; background: linear-gradient(180deg, #7ae08a, #3aa84a); box-shadow: 0 0 10px rgba(95, 208, 104, 0.55); animation: q-seat-ok 0.3s ease-out; }
.q-seat.me small { color: var(--gold); }
.q-seat small { font-size: 10px; color: var(--muted); }
@keyframes q-seat-ok { from { transform: scale(0.6); } }
.q-found .q-accept { min-width: 180px; font-size: 18px; }
.chat-dock { width: min(390px, 94vw); height: min(560px, 76vh); }
@media (max-width: 600px) { .chat-dock { width: 100%; height: 100%; } }
/* another player's match history */
.rh { gap: 10px; }
.rh-list { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow-y: auto; padding-top: 10px; }
.rh-row { display: grid; grid-template-columns: 38px 92px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px 6px 6px;
  background: linear-gradient(90deg, rgba(46, 38, 56, 0.95), rgba(29, 23, 36, 0.9)); border: 2px solid #000; border-left-width: 4px; }
.rh-row.win { border-left-color: #3aa84a; }
.rh-row.loss { border-left-color: #b03a3e; }
.rh-row.draw { border-left-color: #6a6070; }
.rh-row .mh-grade { width: 34px; height: 34px; }
.rh-res { font-size: 13px; }
.rh-teams { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; padding-top: 8px; }
.rh-meta { text-align: right; line-height: 1.4; }
@media (max-width: 600px) { .rh-row { grid-template-columns: 34px minmax(0, 1fr) auto; } .rh-teams { grid-column: 1 / -1; } }

/* ------------------------------------------------- phones: everything fits the width (only vertical scrolling) */
@media (max-width: 760px) {
  /* the game over screen: the grade and the MVP side by side, the rewards in a row of their own under them */
  .screen-results .res-top > .panel { flex: 1 1 0; min-width: 0; }
  .screen-results .res-top > .res-rew { flex: 1 1 100%; }
  /* the game over screen's big title fits the width */
  .screen-results .res-head > .col { min-width: 0; max-width: 100%; }
  .screen-results .res-head .title { font-size: clamp(30px, 11vw, 44px); overflow-wrap: anywhere; }
  /* a cup's bracket: the rounds one under the other (the first round, the semi-finals, the final), each round's
     games two by two, instead of side by side scrolling sideways */
  .bracket { flex-direction: column; align-items: stretch; overflow-x: visible; }
  .bracket-round { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .bracket-round > :first-child { grid-column: 1 / -1; }
  .bracket-round:last-child { grid-template-columns: minmax(0, 1fr); }
  /* the profile's pencil stays inside the screen */
  .pf-pencil { right: -4px; }
}
/* the battle's action bar on phones: as wide as the screen at most, the buttons a little smaller when they need to be */
.narrow .action-bar { left: 0; right: 0; transform: none; width: fit-content; max-width: 100%; margin: 0 auto; }
.narrow .action-bar .act-round { flex: 0 1 48px; min-width: 34px; }

/* Settings > Display > Theme: Neon, Legacy (screens/settings.js) */
.theme-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 2px 0 6px; }
.theme-pick .theme-opt { height: auto; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; white-space: normal; text-align: left; }
.theme-pick .theme-opt small { font-size: 12px; opacity: 0.8; line-height: 1.3; }
.theme-pick .theme-opt.selected { box-shadow: 0 0 0 2px var(--teal); }

/* Colour-blind friendly (Settings > Accessibility): Red turns orange */
:root.cb {
  --team-red: #f08a2b;
  --team-red-hi: #ffc58a;
  --red: #b5651d;
  --red-hi: #f08a2b;
}

/* ================================================================== commending: after a matchmade online game, and a player's honor on their card */
.commend-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.commend-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.honor-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 6px 0; }
.honor-row[hidden] { display: none; }
.honor-level, .honor-kind { display: inline-flex; align-items: center; gap: 5px; }
.honor-level.bronze b { color: #d39a6a; }
.honor-level.silver b { color: #d9dee8; }
.honor-level.gold b { color: var(--gold, #f5c862); }

/* ================================================================== a challenge's verdict: its ribbon with the words on it (the art has no text) */
.duel-verdict { position: relative; display: grid; place-items: center; width: min(420px, 100%); min-height: 40px; }
.duel-verdict > * { grid-area: 1 / 1; }
.duel-verdict-art { width: 100% !important; height: auto !important; }
.duel-verdict-burst { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.duel-verdict-words { position: relative; z-index: 1; padding: 0 16%; text-align: center; font-family: var(--font-title); font-size: 20px; line-height: 1.1; color: var(--gold, #f5c862); }
.duel-verdict-words.win { color: #fff3cf; }
.duel-verdict-words.lose { color: #ff8a98; }
.duel-verdict-words.tie { color: #a8fff1; }
.duel-verdict.has-art .duel-verdict-words { text-shadow: 0 2px 0 rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6); }

/* ================================================================== the champions' voices */
.nx-res-quote, .tt-quote { display: block; margin-top: 4px; font-style: italic; color: var(--gold, #f5c862); font-size: 12px; line-height: 1.25; text-align: center; max-width: 200px; }
.tt-quote { text-align: left; max-width: none; }

/* ================================================================== What's new: its header and what's coming */
.news-head { display: block; width: 100% !important; height: auto !important; border-radius: 8px; margin-bottom: 8px; }
.news-soon ul { margin: 6px 0 0; padding-left: 18px; }
.news-soon li { margin: 2px 0; }

/* ================================================================== clans */
.clan-crest { position: relative; display: inline-grid; place-items: center; flex: none; }
.clan-crest > * { grid-area: 1 / 1; }
.clan-crest > b { position: relative; z-index: 1; color: #fff3cf; letter-spacing: 0.04em; text-shadow: 0 1px 0 #000, 0 0 4px #000; }
.clan-hero { background-size: cover; background-position: center; }
.clan-hero-row { align-items: center; }
.clan-row { gap: 10px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.clan-goal { align-items: center; }
.clan-goal > :first-child { flex: none; }
.clan-war { background-size: cover; background-position: center; display: flex; flex-direction: column; gap: 10px; }
.clan-war-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.clan-war-x { font-size: 20px; color: var(--gold, #f5c862); }
.clan-war-n { font-size: 28px; }
.clan-war-n.ahead { color: var(--good, #72de6c); }
.clan-war-n.behind { color: #ff8a98; }
.clan-member { gap: 8px; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.clan-dot { width: 8px; height: 8px; border-radius: 50%; background: #5a5364; flex: none; }
.clan-dot.on { background: #72de6c; }
.clan-chat { height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 8px; background: rgba(0, 0, 0, 0.25); border-radius: 6px; word-break: break-word; }
.clan-crests { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.clan-crest-opt { padding: 4px; background: rgba(255, 255, 255, 0.04); border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.clan-crest-opt.on { border-color: var(--gold, #f5c862); background: rgba(245, 200, 98, 0.12); }
.clan-crest-opt img { width: 100% !important; height: auto !important; display: block; }
button.link { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
@media (max-width: 760px) { .clan-hero-row { flex-direction: column; align-items: flex-start; } .clan-chat { height: 160px; } }

/* ------------------------------------------------------------------ the story (ui/story.js)
   The scene's world is 2400 x 1600 px, scaled by the script to cover the screen; its pictures are stored at their art
   pixels and enlarged with sharp pixels. Layers drift at their own speeds over a 1.1 overscan, so no edge shows; the
   camera eases in on every shot; each place has its own light, fires and glow. */
.story-scene { position: fixed; inset: 0; z-index: 90; overflow: hidden; background: #050409; cursor: pointer; opacity: 0; transition: opacity 0.35s; outline: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.story-scene.on { opacity: 1; }
.ss-view { position: absolute; inset: 0; overflow: hidden; }
.ss-world { position: absolute; left: 0; top: 0; width: 2400px; height: 1600px; transform-origin: 0 0; }
.ss-push { position: absolute; left: 0; top: 0; width: 2400px; height: 1600px; transform-origin: var(--fx, 1200px) var(--fy, 760px); }
.ss-push.go { animation: ss-push 16s cubic-bezier(0.2, 0.6, 0.3, 1) forwards; }
@keyframes ss-push { from { transform: scale(1); } to { transform: scale(1.055); } }
.ss-cam, .ss-cam > * { position: absolute; left: 0; top: 0; width: 2400px; height: 1600px; }
.ss-cam { transform-origin: 1200px 760px; transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.ss-world.close .ss-cam { transform: scale(1.12); }
.ss-pic { position: absolute; display: block; max-width: none; image-rendering: pixelated; pointer-events: none; }
.ss-layer { transform: scale(1.1); transform-origin: 1200px 800px; transition: filter 0.8s; }
.ss-layer > .ss-set { position: absolute; left: 0; top: 0; width: 2400px; height: 1600px; transition: opacity 0.9s; animation: ss-in 0.9s ease-out; }
.ss-layer > .ss-set.out { opacity: 0; }
.ss-layer .ss-place { left: 0; top: 0; width: 2400px; height: 1600px; }
.ss-world.dark .ss-layer { filter: brightness(0.38) saturate(0.8); }
.ss-layer.back { animation: ss-drift-back 26s ease-in-out infinite alternate; }
.ss-layer.mid { animation: ss-drift-mid 26s ease-in-out infinite alternate; }
.ss-layer.front { animation: ss-drift-front 26s ease-in-out infinite alternate; }
@keyframes ss-drift-back { from { transform: scale(1.1) translateX(-18px); } to { transform: scale(1.1) translateX(18px); } }
@keyframes ss-drift-mid { from { transform: scale(1.1) translateX(-66px); } to { transform: scale(1.1) translateX(66px); } }
@keyframes ss-drift-front { from { transform: scale(1.1) translateX(-100px); } to { transform: scale(1.1) translateX(100px); } }
/* what glows in a place (tools/story-glow.py): soft, over its own layer; a sky breathes, fire flickers */
.ss-layer .ss-glow { left: 0; top: 0; width: 2400px; height: 1600px; image-rendering: auto; mix-blend-mode: screen; opacity: 0.75; }
.ss-glow.breathe { animation: ss-breathe 7s ease-in-out infinite; }
.ss-glow.flicker { animation: ss-flicker 3.2s linear infinite; }
@keyframes ss-breathe { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.95; } }
@keyframes ss-flicker { 0% { opacity: 0.62; } 9% { opacity: 0.9; } 17% { opacity: 0.7; } 31% { opacity: 1; } 44% { opacity: 0.6; } 57% { opacity: 0.88; } 70% { opacity: 0.68; } 84% { opacity: 0.96; } 100% { opacity: 0.62; } }
/* a soft light: round a fire, a lantern, the Sunstone, the Book */
.ss-halo { position: absolute; display: block; pointer-events: none; border-radius: 50%; mix-blend-mode: screen; background: radial-gradient(circle, rgba(var(--tint), 0.55) 0, rgba(var(--tint), 0.22) 35%, rgba(var(--tint), 0) 70%); }
.ss-halo.breathe { animation: ss-breathe 6s ease-in-out infinite; }
.ss-halo.flicker { animation: ss-flicker 2.4s linear infinite; }
.ss-halo.throb { animation: ss-throb 1.6s ease-in-out infinite; }
.ss-halo.catch { opacity: 0; animation: ss-catch 2.4s ease-out forwards; }
@keyframes ss-throb { 0%, 100% { opacity: 0.45; transform: scale(0.94); } 40% { opacity: 1; transform: scale(1.06); } }
.ss-prop.ss-catch { opacity: 0; animation: ss-catch 2.4s ease-out forwards; }
@keyframes ss-catch { 0%, 22% { opacity: 0; } 28% { opacity: 1; } 33% { opacity: 0.3; } 39% { opacity: 0.95; } 52% { opacity: 0; } 100% { opacity: 0; } }
.ss-strip.ss-fire { filter: drop-shadow(0 0 6px rgba(255, 170, 70, 0.7)); }
.ss-prop { animation: ss-in 0.45s ease-out; transition: opacity 0.45s; }
.ss-props > .out { opacity: 0; transition: opacity 0.45s; animation: none; }
/* who speaks: someone new rises in; the same one in another position dissolves quickly; the old one fades */
.ss-figure { transition: filter 0.3s, transform 0.3s, opacity 0.25s; transform-origin: 50% 100%; }
.ss-figure.enter { animation: ss-enter 0.6s cubic-bezier(0.2, 0.8, 0.3, 1); }
.ss-figure.swap { animation: ss-in 0.2s ease-out; }
.ss-figure.out { opacity: 0; }
@keyframes ss-enter { from { opacity: 0; translate: 0 60px; } }
.ss-figure.speaking { transform: translateY(-12px); filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.5)); }
.ss-figure.silent { filter: brightness(0.62) saturate(0.85); }
.ss-light { opacity: 0; transition: opacity 1s; background: url(../assets/art/story/fx/light-shafts.webp) 0 0 / 2400px 1599px no-repeat; image-rendering: pixelated; mix-blend-mode: screen; pointer-events: none; animation: ss-shafts 9s ease-in-out infinite; }
.ss-light.on { opacity: 0.8; }
@keyframes ss-shafts { 0%, 100% { filter: brightness(0.85); } 50% { filter: brightness(1.15); } }
/* the place's sun or moon: a glow where it is and, outdoors by day, rays turning slowly */
.ss-cam > .ss-sun { opacity: 0; transition: opacity 1.4s; pointer-events: none; mix-blend-mode: screen; overflow: hidden;
  background: radial-gradient(circle 1000px at var(--lx, 1200px) var(--ly, 400px), rgba(var(--tint, 255, 214, 150), 0.42) 0, rgba(var(--tint, 255, 214, 150), 0.14) 38%, rgba(var(--tint, 255, 214, 150), 0) 72%); }
.ss-sun.on { opacity: 1; }
.ss-rays { position: absolute; left: calc(var(--lx, 1200px) - 2000px); top: calc(var(--ly, 400px) - 2000px); width: 4000px; height: 4000px; opacity: 0; transition: opacity 1.4s;
  background: repeating-conic-gradient(from 0deg, rgba(var(--tint, 255, 214, 150), 0.2) 0deg 2.5deg, rgba(var(--tint, 255, 214, 150), 0) 2.5deg 9deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.55) 22%, transparent 52%); mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.55) 22%, transparent 52%);
  animation: ss-rays 140s linear infinite; }
.ss-sun.rays .ss-rays { opacity: 0.75; }
@keyframes ss-rays { to { transform: rotate(360deg); } }
.ss-cam > .ss-fog { top: 260px; height: 1023px; opacity: 0; transition: opacity 1.2s; background: url(../assets/art/story/fx/fog-thin.webp) 0 0 / 2046px 1023px repeat-x; image-rendering: pixelated; pointer-events: none; animation: ss-fog 70s linear infinite; }
.ss-cam > .ss-fog.low { top: 1090px; height: 510px; background-image: url(../assets/art/story/fx/fog-low.webp); background-size: 2046px 510px; animation-duration: 45s; }
.ss-fog.on { opacity: 0.55; }
.ss-fog.low.on { opacity: 0.8; }
@keyframes ss-fog { to { background-position-x: -2046px; } }
.ss-strip { position: absolute; display: block; background-repeat: no-repeat; background-position: 0 0; image-rendering: pixelated; animation-name: art-sprite; animation-iteration-count: infinite; pointer-events: none; }
.ss-motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ss-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 55%, rgba(3, 2, 8, 0.55) 100%); }
.ss-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: radial-gradient(ellipse at 50% 45%, rgba(var(--tint, 255, 214, 150), 0.95), rgba(var(--tint, 255, 214, 150), 0.35) 45%, rgba(var(--tint, 255, 214, 150), 0) 85%); }
.ss-flash.go { animation: ss-flash 1s ease-out; }
@keyframes ss-flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.ss-dip { position: absolute; inset: 0; pointer-events: none; background: #050409; opacity: 0; transition: opacity 0.32s ease-in; }
.ss-dip.on { opacity: 1; }
.ss-view.shake { animation: ss-shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes ss-shake { 10% { transform: translate(-7px, 3px); } 22% { transform: translate(8px, -4px); } 36% { transform: translate(-6px, 2px); } 52% { transform: translate(5px, -2px); } 70% { transform: translate(-3px, 1px); } 86% { transform: translate(2px, 0); } }
.ss-bar { position: absolute; left: 0; right: 0; height: 6vh; background: #000; pointer-events: none; }
.ss-bar.top { top: 0; }
.ss-bar.bottom { bottom: 0; }
.ss-title { position: absolute; left: 0; right: 0; top: 30%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; opacity: 0; pointer-events: none; text-shadow: 0 3px 0 #000, 0 0 24px rgba(0, 0, 0, 0.8); }
.ss-title small { font: 700 14px/1 var(--font-title, Georgia, serif); letter-spacing: 0.4em; text-transform: uppercase; color: #d7c7a8; }
.ss-title b { font: 700 clamp(30px, 5vw, 60px)/1.1 var(--font-title, Georgia, serif); color: var(--gold, #f5c862); }
.ss-title.on { animation: ss-title 3.6s ease-in-out forwards; }
.ss-title.on small { animation: ss-spread 3.6s ease-out forwards; }
.ss-title.on.out { animation: none; opacity: 0; transition: opacity 0.4s; }
@keyframes ss-title { 0% { opacity: 0; transform: translateY(8px); } 18%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ss-spread { from { letter-spacing: 0.15em; } to { letter-spacing: 0.4em; } }
.ss-box { transition: opacity 0.3s; }
.ss-box.hidden { opacity: 0; pointer-events: none; }
.ss-box.in { animation: ss-box-in 0.4s cubic-bezier(0.2, 0.8, 0.3, 1); }
@keyframes ss-box-in { from { opacity: 0; translate: 0 16px; } }
.ss-box { position: absolute; left: 50%; bottom: calc(6vh + 14px); transform: translateX(-50%); width: min(940px, calc(100vw - 24px)); padding: 24px 32px 22px; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(34, 26, 46, 0.95), rgba(11, 9, 16, 0.97)); border: 2px solid #c9a24a; box-shadow: inset 0 0 0 5px rgba(11, 9, 16, 0.9), inset 0 0 0 6px rgba(201, 162, 74, 0.35), 0 10px 30px rgba(0, 0, 0, 0.6); }
.ss-name { position: absolute; top: -16px; left: 24px; padding: 5px 16px; background: #c9a24a; color: #1a1206; font: 700 15px/1.2 var(--font-title, Georgia, serif); letter-spacing: 0.06em; box-shadow: 0 2px 0 #5a3b10; }
.ss-name.pop { animation: ss-pop 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.4); }
@keyframes ss-pop { from { opacity: 0; transform: translateY(6px) scale(0.92); } }
.ss-text { margin: 0; min-height: 2.9em; font: 22px/1.45 'Pixelify Sans', sans-serif; color: #f3e9d2; }
.ss-box.narrator { background: linear-gradient(90deg, rgba(6, 5, 10, 0), rgba(6, 5, 10, 0.8) 18%, rgba(6, 5, 10, 0.8) 82%, rgba(6, 5, 10, 0)); border: 0; box-shadow: none; text-align: center; width: min(1100px, 100vw); }
.ss-box.narrator::before, .ss-box.narrator::after { content: ''; position: absolute; left: 22%; right: 22%; height: 1px; background: linear-gradient(90deg, transparent, #c9a24a, transparent); }
.ss-box.narrator::before { top: 8px; }
.ss-box.narrator::after { bottom: 8px; }
.ss-box.narrator .ss-name { display: none; }
.ss-box.narrator .ss-text { font-style: italic; font-size: 25px; text-shadow: 0 2px 0 #07060d; }
.ss-more { position: absolute; right: 18px; bottom: 10px; font-style: normal; font-size: 12px; color: #f2c14e; opacity: 0; }
.ss-box.ready .ss-more { opacity: 1; animation: ss-bob 1s ease-in-out infinite; }
@keyframes ss-bob { 50% { transform: translateY(3px); } }
.ss-skip { position: absolute; top: calc(6vh + 10px); right: 14px; padding: 7px 14px; border: 1px solid rgba(201, 162, 74, 0.6); background: rgba(11, 9, 16, 0.75); color: #e9dcc2; font: 700 13px/1 var(--font-title, Georgia, serif); letter-spacing: 0.08em; cursor: pointer; }
.ss-skip:hover, .ss-skip:focus-visible { border-color: #f2c14e; color: #fff; }
@keyframes ss-in { from { opacity: 0; } }
@media (max-width: 760px) {
  .ss-box { padding: 20px 18px 18px; bottom: calc(6vh + 8px); }
  .ss-text { font-size: 17px; }
  .ss-box.narrator .ss-text { font-size: 19px; }
  .ss-name { font-size: 13px; left: 14px; }
}
/* Reduce motion: the scenes stand still (no drift, push, rays, flicker or shake; the words appear whole) */
.story-scene.still .ss-layer, .story-scene.still .ss-push, .story-scene.still .ss-rays, .story-scene.still .ss-glow, .story-scene.still .ss-halo,
.story-scene.still .ss-light, .story-scene.still .ss-cam > .ss-fog,
.ss-backdrop.still .ss-layer, .ss-backdrop.still .ss-rays, .ss-backdrop.still .ss-glow, .ss-backdrop.still .ss-halo { animation: none; }
@media (prefers-reduced-motion: reduce) { .ss-layer, .ss-cam > .ss-fog, .ss-rays, .ss-push.go { animation: none; } }
/* a champion's last words in a campaign fight: the fight holds and darkens, their hurt portrait comes in big from their side */
.ss-fall { position: fixed; inset: 0; z-index: 85; cursor: pointer; display: flex; align-items: flex-end; gap: 0; padding: 0 3vw 9vh; box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.ss-fall.theirs { flex-direction: row-reverse; }
.ssf-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(5, 4, 10, 0.45), rgba(5, 4, 10, 0.82)); opacity: 0; transition: opacity 0.35s; }
.ss-fall.on .ssf-shade { opacity: 1; }
.ssf-face { position: relative; width: min(60vh, 46vw, 520px); height: min(60vh, 46vw, 520px); image-rendering: pixelated; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(0, 0, 0, 0.6)); opacity: 0; transition: opacity 0.4s, transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1); }
.ss-fall.mine .ssf-face { transform: translateX(-90px); }
.ss-fall.theirs .ssf-face { transform: translateX(90px) scaleX(-1); }
.ss-fall.on .ssf-face { opacity: 1; transform: none; }
.ss-fall.theirs.on .ssf-face { transform: scaleX(-1); }
.ssf-words { position: relative; flex: 0 1 560px; margin: 0 0 4vh; padding: 26px 30px 24px; box-sizing: border-box; background: linear-gradient(180deg, rgba(34, 26, 46, 0.96), rgba(11, 9, 16, 0.98)); border: 2px solid #c9a24a;
  box-shadow: inset 0 0 0 5px rgba(11, 9, 16, 0.9), inset 0 0 0 6px rgba(201, 162, 74, 0.35), 0 10px 30px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(16px); transition: opacity 0.35s 0.15s, transform 0.45s 0.15s cubic-bezier(0.2, 0.8, 0.3, 1); }
.ss-fall.on .ssf-words { opacity: 1; transform: none; }
.ssf-name { position: absolute; top: -16px; left: 24px; padding: 5px 16px; background: #c9a24a; color: #1a1206; font: 700 16px/1.2 var(--font-title, Georgia, serif); letter-spacing: 0.06em; box-shadow: 0 2px 0 #5a3b10; }
.ssf-text { margin: 0; min-height: 1.45em; font: 24px/1.45 'Pixelify Sans', sans-serif; color: #f3e9d2; }
.ss-fall.ready .ss-more { opacity: 1; animation: ss-bob 1s ease-in-out infinite; }
@media (max-width: 760px) {
  .ss-fall, .ss-fall.theirs { flex-direction: column; align-items: stretch; justify-content: flex-end; padding: 0 12px 12vh; }
  .ssf-face { width: min(78vw, 46vh); height: min(78vw, 46vh); align-self: flex-start; margin-bottom: -10px; }
  .ss-fall.theirs .ssf-face { align-self: flex-end; }
  .ssf-words { flex: 0 0 auto; margin: 0; }
  .ssf-text { font-size: 19px; }
}

/* ------------------------------------------------------------------ the campaign's gifts (meta/gifts.js, ui/gift.js)
   A rival's gift: its card (picture in a soft light, name in its rarity's colour, slot, what it does), then "Who wears
   it?" (the champions who can, each with what's in that slot now). In the story, its card comes up over the shot. */
/* the gift in the story: its card at the top of the shot */
.ss-gift { position: absolute; left: 50%; top: calc(6vh + 22px); z-index: 3; display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 14px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(34, 26, 46, 0.95), rgba(11, 9, 16, 0.96)); border: 2px solid #c9a24a; box-shadow: 0 0 40px rgba(255, 200, 90, 0.35), 0 10px 30px rgba(0, 0, 0, 0.6);
  pointer-events: none; animation: ss-gift-in 0.7s cubic-bezier(0.2, 0.8, 0.3, 1.2); transition: opacity 0.3s; }
.ss-gift.out { opacity: 0; }
@keyframes ss-gift-in { from { opacity: 0; transform: translate(-50%, -18px) scale(0.9); } }
.ss-gift-pic { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, 0.45), transparent 70%); }
.ss-gift.r-epic .ss-gift-pic { background: radial-gradient(circle, rgba(211, 155, 224, 0.5), transparent 70%); }
.ss-gift.r-legendary .ss-gift-pic { background: radial-gradient(circle, rgba(255, 200, 70, 0.7), transparent 70%); }
.ss-gift-pic canvas { image-rendering: pixelated; }
.ss-gift-in { display: flex; flex-direction: column; gap: 3px; }
.ss-gift-in small { font: 700 12px/1 var(--font-title, Georgia, serif); letter-spacing: 0.2em; text-transform: uppercase; color: #c9a24a; }
.ss-gift-in b { font: 700 24px/1.1 var(--font-title, Georgia, serif); color: #f7e7bd; }
.ss-gift-in span { font-size: 13px; color: #cfc5b3; }
@media (max-width: 760px) { .ss-gift { top: calc(6vh + 52px); padding: 8px 14px 8px 8px; } .ss-gift-pic { width: 68px; height: 68px; } .ss-gift-in b { font-size: 18px; } }
/* a fight's card: Prepare */
.camp-prep { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line-2, rgba(201, 162, 74, 0.35)); background: rgba(0, 0, 0, 0.22); }
.camp-prep-head { font: 700 13px/1 var(--font-label, Georgia, serif); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold, #f5c862); }
.camp-prep-sub { margin-top: 4px; font-size: 12px; color: var(--muted, #a99f8f); }
.camp-prep-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid rgba(201, 162, 74, 0.25); background: rgba(0, 0, 0, 0.2); }
.camp-prep-item.worn { border-color: rgba(245, 200, 98, 0.6); }
.camp-prep-item.missing { opacity: 0.7; }
.camp-prep-pic { display: grid; place-items: center; width: 40px; height: 40px; }
.camp-prep-pic canvas { image-rendering: pixelated; }
.camp-prep-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.camp-prep-gear { align-self: flex-start; margin-top: 2px; padding: 2px 0; border: 0; background: none; color: var(--gold, #f5c862); font-size: 13px; cursor: pointer; }
.camp-prep-gear:hover { text-decoration: underline; }
/* Practice, 6 v 6: Dummy autoplay and its note in the panel beside the board; a champion's items window */
.practice-auto { width: 100%; }
.practice-note { display: block; margin: -2px 0 4px; line-height: 1.3; }
/* (the items as a grid of their pictures with a search and rarity filters, your words 22 Nov: ui/item-grid.js, the
   Practice's items and the Inventory's slots) */
.ig-window { width: min(580px, 86vw); gap: 10px; }
.ig-filters { display: flex; flex-direction: column; gap: 8px; }
.ig-find { width: 100%; box-sizing: border-box; }
.ig-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-chip { padding: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #cfc6d8; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 3px; cursor: pointer; }
.ig-chip.on { color: #1a1220; background: #e2c27c; border-color: #e2c27c; }
.ig-chip.q-rare:not(.on) { color: #7db8ff; } .ig-chip.q-epic:not(.on) { color: #cf9bff; } .ig-chip.q-legendary:not(.on) { color: #ffb347; }
.ig-none { margin: 0; opacity: 0.75; font-size: 13px; }
.ig-body { max-height: min(60vh, 560px); overflow-x: hidden; overflow-y: auto; gap: 14px; padding-right: 4px; min-width: 0; }
.ig-slot { min-width: 0; }
.ig-slot.ig-empty .ig-grid > .ig-it.none ~ * { display: none; }
.ig-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.ig-now { opacity: 0.8; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, 54px); gap: 6px; }
.ig-it { position: relative; width: 54px; height: 54px; box-sizing: border-box; display: grid; place-items: center; padding: 2px; background: rgba(0, 0, 0, 0.35); border: 2px solid rgba(255, 255, 255, 0.08); border-radius: 4px; cursor: pointer; }
.ig-it[hidden] { display: none; }
.ig-it:hover, .ig-it:focus-visible { border-color: rgba(255, 255, 255, 0.35); }
.ig-it.on { border-color: #e2c27c; box-shadow: 0 0 0 1px #e2c27c, 0 0 10px rgba(226, 194, 124, 0.55); }
.ig-it.dim > :not(.ig-note) { opacity: 0.45; }
.ig-it.off { cursor: not-allowed; border-color: rgba(255, 255, 255, 0.04); }
.ig-it.off > * { filter: grayscale(1) brightness(0.55); opacity: 0.6; }
.ig-it.off:hover { border-color: rgba(255, 255, 255, 0.12); }
.ig-it.none span { font-size: 22px; opacity: 0.55; }
.ig-it :is(img, canvas) { image-rendering: pixelated; }
.ig-note { position: absolute; right: -3px; bottom: -4px; max-width: 64px; padding: 1px 4px; font: 700 10px/1.2 var(--font-text, sans-serif); font-style: normal; color: #fff4dc; background: rgba(12, 8, 16, 0.92); border: 1px solid rgba(226, 194, 124, 0.6); border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.practice-body > .practice-auto, .practice-body > .practice-note { grid-column: 1 / -1; }

/* ---- the coin toss with its own art (ui/screens/match.js coinTossArt; assets/art/coin): the coin's drawings are 256 px
   with the coin 224 across in their middle, so the stage's 224 square shows it at its own size ---- */
.coin-toss.art .coin-stage { perspective: none; }
.coin-fly { position: absolute; inset: 0; z-index: 2; }
.coin-pic { position: absolute; left: 50%; top: 50%; width: 114.3%; height: 114.3%; transform: translate(-50%, -50%); background: 0 0 / 1200% 100% no-repeat; image-rendering: pixelated; }
.coin-pic.face { background-size: 100% 100%; background-position: 0 0 !important; }
/* the flick: under the coin, from its foot; the landing: over its foot, wider than the coin */
.coin-fx { position: absolute; left: 50%; bottom: -7.15%; width: 150%; height: 150%; transform: translateX(-50%); background: 0 0 / 800% 100% no-repeat; image-rendering: pixelated; opacity: 0; pointer-events: none; }
.coin-fx.on { opacity: 1; }
.coin-fx.toss { z-index: 1; }
.coin-fx.land { z-index: 3; width: 170%; height: 170%; bottom: -16%; }
.coin-toss.art .coin-shadow { z-index: 0; border-radius: 50%; left: 18%; right: 18%; bottom: -22px; height: 16px; background: rgba(0, 0, 0, 0.55); }
/* who places first: the side's plate under the coin, the words on its dark middle */
.coin-plate { --w: min(600px, 92vw); box-sizing: border-box; width: var(--w); aspect-ratio: 1024 / 192; display: grid; place-items: center; padding: 0 calc(var(--w) * 0.16); /* (of its own width: a % would be the window's) */ background: center / 100% 100% no-repeat; image-rendering: pixelated; opacity: 0; transform: translateY(14px) scale(0.92); transition: opacity 0.22s, transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.coin-plate.show { opacity: 1; transform: none; }
.coin-plate span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-title); font-size: 24px; line-height: 1.1; color: var(--text); text-shadow: 0 3px 0 #000; }
.coin-plate.s0 span { color: #cfe0ff; }
.coin-plate.s1 span { color: #ffd0c8; }
html.reduce-motion .coin-plate { transition: none; }
@media (max-width: 520px) {
  .coin-toss.art .coin-stage { width: 168px; height: 168px; }
  .coin-plate span { font-size: 17px; }
}

/* Who runs the game (17 Nov): a crown beside an admin's name, and a pill of their own on their card and profile.
   Ruby with a gold rim: no other tag in the game is red, so it cannot be taken for a level, a rank or a clan. */
.staff-crown { display: inline-flex; vertical-align: -0.12em; margin-left: 0.3em; flex: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.7)); }
.staff-crown img { display: block; image-rendering: pixelated; }
.staff-name::after { content: ''; display: inline-block; width: 1em; height: 1em; margin-left: 0.3em; vertical-align: -0.12em; background: var(--staff-crown) center / contain no-repeat; image-rendering: pixelated; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.7)); }
.staff-pill { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 22px; padding: 0 9px 0 6px; border: 1px solid #f2c94c; border-radius: 999px; background: linear-gradient(180deg, #a8222f, #6b0f1b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 0 rgba(0, 0, 0, 0.6); color: #ffe9a8; font: 700 11px/1 var(--font-label, inherit); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.staff-pill img { display: block; image-rendering: pixelated; }
.full-game-price { margin: 2px 0 0; font-size: 1.15em; font-weight: 700; color: var(--gold-2, #ffd866); }
/* The Emblem editor on a tablet held upright: its title whole ("Emblem edi…" at 768 px wide). */
@media (min-width: 561px) and (max-width: 920px) { html .screen-emblem .screen-head .title { font-size: 21px !important; letter-spacing: 0.02em !important; } }
/* The results' "Also this game" (17 Nov, your word: the list of plain lines did not show it well): a row for each
   thing that happened beside the game itself (a level gift, a quest, an achievement, a rank), with its picture, what
   it is in small capitals over its name, and what it gave as chips. Two across where there is room, one on a phone. */
.res-also { display: flex; flex-direction: column; gap: 10px; }
.res-also-hd { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2, #f2c94c); }
.res-also-hd::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.res-also-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.res-also-row { --k: #f2c94c; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 60px; padding: 8px 12px 8px 10px; background: rgba(13, 10, 20, 0.6); border: 1px solid rgba(255, 255, 255, 0.09); border-left: 3px solid var(--k); }
.res-also-row.k-quest { --k: #58d6a4; } .res-also-row.k-ach { --k: #c08bff; } .res-also-row.k-rank { --k: #5aa7ff; } .res-also-row.k-level { --k: #ffd866; }
.res-also-row.k-star, .res-also-row.k-path { --k: #ff9d5c; }
.res-also-row.k-held { --k: #ffd23f; } /* (the chests and eggs won: they wait in the Inventory) */
.res-also-row .pic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; }
.res-also-row .pic canvas, .res-also-row .pic img { max-width: 44px; max-height: 44px; image-rendering: pixelated; }
.res-also-row .tx { flex: 1 1 110px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.res-also-row .tx small { font-size: 10.5px; font-weight: 700; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase; color: var(--k); opacity: 0.9; }
.res-also-row .tx b { font-size: 16px; line-height: 1.15; overflow-wrap: anywhere; }
.res-also-row .gets { flex: 0 1 auto; margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.res-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px 0 6px; background: rgba(8, 5, 14, 0.72); border: 1px solid rgba(242, 201, 76, 0.32); font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--text, #f3ead8); }
.res-chip img, .res-chip canvas { flex: none; width: 18px; height: 18px; image-rendering: pixelated; }
.res-chip > span { font-variant-numeric: tabular-nums; }
/* On a phone no keyboard keys are shown (your word, 17 Nov) unless a keyboard or a controller is really in use (then
   .nav-visible is on): a phone whose browser reports a tap as a mouse showed F10, Q, W, E beside the fight's buttons. */
html.ar-phone:not(.nav-visible) .kbd { display: none !important; }
@media (max-width: 760px) and (pointer: coarse) { html:not(.nav-visible) .kbd { display: none !important; } }
/* A rank's medal with its division over it (src/ui/rank.js): one picture a rank, the numeral written by the game. */
.rank-badge { position: relative; display: inline-grid; place-items: center; flex: none; vertical-align: middle; }
.rank-badge .rank-div { position: absolute; right: -2px; bottom: -2px; min-width: 1.5em; padding: 1px 2px; box-sizing: border-box; background: #14101c; color: #ffe08a; border: 1px solid rgba(255, 224, 138, 0.55); border-radius: 5px; font-family: Georgia, 'Times New Roman', serif; font-style: normal; font-weight: 700; line-height: 1.05; letter-spacing: 0; text-align: center; white-space: nowrap; pointer-events: none; }

/* ------------------------------------------------------------------------------------------------------------------
 * The Skill tree (ui/tree-page.js, ui/tree-bits.js): a champion's three branches of three skills, its points, "Your
 * Knight" and its bonds. Here its shape and the look outside Arena (Legacy's parchment, by the theme's own colours);
 * Arena's sheet is styles/arena-heroes.css. A press moves nothing: every box that changes on a press has a set size
 * (a skill's mark, the sockets, the sheet's value column), and every name wraps rather than being cut.
 * --sk-a/b/c: the three branches' colours (first, second, third), light and dark. */
:root { --sk-a: #4f8fe8; --sk-a2: #173a78; --sk-b: #e2603f; --sk-b2: #6e1f12; --sk-c: #3fae6e; --sk-c2: #12512c; }
.b-a { --bc: var(--sk-a); --bd: var(--sk-a2); } .b-b { --bc: var(--sk-b); --bd: var(--sk-b2); } .b-c { --bc: var(--sk-c); --bd: var(--sk-c2); }

/* a skill's tile: its picture edge to edge, or the badge drawn in the branch's colour with a glyph */
.sk-ico { position: relative; display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; box-sizing: border-box; overflow: hidden; color: #fff3cf;
  background: radial-gradient(circle at 50% 40%, var(--bc, #6a5a80) 0%, var(--bd, #2a2236) 72%, #100c16 100%); border: 2px solid #1a1008; box-shadow: inset 0 0 0 2px rgba(255, 246, 220, 0.22), inset 0 -4px 0 rgba(0, 0, 0, 0.3); }
.sk-ico svg { width: 54%; height: 54%; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55)); }
.sk-ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sk-ico.art svg { visibility: hidden; }
.sk-ico.mid { width: 40px; height: 40px; }
.sk-ico.small { width: 24px; height: 24px; border-width: 1px; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.22); }
.sk-ico.sk-empty { color: var(--muted); background: rgba(0, 0, 0, 0.16); border: 2px dashed var(--line); box-shadow: none; }
.sk-ico.sk-empty.small { border-width: 1px; }
.sk-ico.sk-empty.free { border-color: var(--gold); border-style: solid; background: rgba(245, 197, 66, 0.16); }
.sk-ico.sk-empty small { font-family: var(--font-text); font-size: 11px; line-height: 1; white-space: nowrap; }
.sk-ico.sk-empty.small small { font-size: 0; }
.sk-sockets { display: inline-flex; gap: 4px; flex: none; }
.sk-sockets.big { display: flex; gap: 8px; }

/* the seven mastery stars; the ones that give a skill point carry a mark under them */
.sk-ladder { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sk-ladder-row { display: flex; gap: 3px; }
.sk-ladder .st { display: grid; justify-items: center; width: 22px; }
.sk-ladder .st i { font-style: normal; font-size: 18px; line-height: 1; color: var(--muted); opacity: 0.45; }
.sk-ladder .st.on i { color: var(--gold); opacity: 1; }
.sk-ladder .st em { height: 10px; font-style: normal; font-size: 9px; line-height: 10px; color: var(--muted); opacity: 0.6; }
.sk-ladder .st.on em { color: var(--teal); opacity: 1; }
.sk-ladder small { font-size: 12px; line-height: 1.25; color: var(--muted); }

/* the way to a champion's tree, on its page; lit while points wait */
.sk-entry { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; box-sizing: border-box; margin: 8px 0; padding: 6px 10px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--panel-2); border: 2px solid var(--line); border-radius: 0; }
.sk-entry:hover, .sk-entry:focus-visible { border-color: var(--gold); filter: brightness(1.06); outline: none; }
.sk-entry .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sk-entry .tx b { font-family: var(--font-title); font-size: 11px; letter-spacing: 1px; color: var(--teal); }
.sk-entry .tx small { font-size: 13px; color: var(--muted); }
.sk-entry .go { flex: none; font-size: 22px; line-height: 1; color: var(--gold); }
.sk-entry.unspent { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.3); }
.sk-entry.unspent .tx small { color: var(--gold); font-weight: 700; }
/* points not spent, on a champion's card in a roster */
.sk-mark { position: absolute; right: 2px; top: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 2px; padding: 2px 5px; font: 700 12px/1 var(--font-text); color: #2a1802; background: #ffd23f; border: 1px solid #5a3a06; border-radius: 9px; pointer-events: none; }
.sk-mark i { font-style: normal; font-size: 9px; }

/* the page */
.sk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; padding-bottom: 12px; }
.sk h2, .sk h3, .sk p { margin: 0; }
.sk-who { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "fig id ladder" "points next next" "hint hint reset"; align-items: center; gap: 10px 18px; }
.sk-fig { grid-area: fig; display: grid; place-items: center; }
.sk-id { grid-area: id; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sk-id h2 { font-family: var(--font-title); font-size: 16px; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.sk-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.sk-who .sk-ladder { grid-area: ladder; }
.sk-points { grid-area: points; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sk-points-hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 13px; color: var(--muted); }
.sk-spent { font-size: 14px; color: var(--text); min-height: 1.3em; }
.sk-spent.free { color: var(--gold); }
.sk-next { grid-area: next; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 10px; min-width: 0; font-size: 14px; }
.sk-next small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sk-bar { grid-column: 1 / -1; height: 8px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); box-sizing: border-box; overflow: hidden; }
.sk-bar i { display: block; height: 100%; background: linear-gradient(180deg, var(--teal-hi), var(--teal-dk)); }
.sk-hint { grid-area: hint; font-size: 13px; line-height: 1.3; color: var(--muted); }
.sk-who .sk-reset { grid-area: reset; justify-self: end; }
.sk-preview .sk-who { grid-template-areas: "fig id ladder" "points next next"; }

.sk-tree { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; min-width: 0; }
.sk-branch { display: flex; flex-direction: column; min-width: 0; border-top: 4px solid var(--bc); }
.sk-bhead { margin-bottom: 10px; }
.sk-bhead .nm { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sk-bhead h3 { font-family: var(--font-title); font-size: 12px; line-height: 1.4; letter-spacing: 1px; color: var(--text); overflow-wrap: anywhere; }
.sk-bhead .n { flex: none; font: 400 20px/1 var(--font-num); color: var(--muted); }
.sk-bhead p { margin-top: 3px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.sk-link { display: block; width: 4px; height: 12px; margin-left: 34px; background: var(--line); }
.sk-link.got { background: var(--gold); }
.sk-node { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico nm" "ico d"; grid-template-rows: auto 1fr; align-items: start; gap: 3px 10px; width: 100%; box-sizing: border-box; margin: 0; padding: 8px; text-align: left; font: inherit; color: inherit;
  background: rgba(0, 0, 0, 0.06); border: 2px solid var(--line); border-radius: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sk-node .sk-ico { grid-area: ico; }
.sk-node .nm { grid-area: nm; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.sk-node .nm b { min-width: 0; font-size: 15px; line-height: 1.25; overflow-wrap: break-word; }
.sk-node .d { grid-area: d; min-width: 0; font-size: 13px; line-height: 1.32; color: var(--text-2); }
.sk-state { flex: none; display: grid; place-items: center; width: 22px; height: 22px; box-sizing: border-box; font: 700 15px/1 var(--font-text); color: var(--muted); border: 2px solid var(--line); }
.sk-state.got { color: #2a1802; background: #f2c14e; border-color: #1a1008; }
.sk-state.can { color: var(--gold); border-color: var(--gold); }
.sk-node:hover, .sk-node:focus-visible { outline: none; border-color: var(--copper); }
.sk-node.can { background: rgba(245, 197, 66, 0.1); }
.sk-node.got { border-color: #c08a1e; background: rgba(245, 197, 66, 0.26); box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.35); }
.sk-node.no:not(.got) .sk-ico { opacity: 0.5; }
.sk-node.no:not(.got) .nm b, .sk-node.no:not(.got) .d { opacity: 0.62; }
.sk-preview .sk-node { cursor: default; }
.sk-preview .sk-node.no:not(.got) .sk-ico, .sk-preview .sk-node.no:not(.got) .nm b, .sk-preview .sk-node.no:not(.got) .d { opacity: 1; }
/* a phone's bar of points, in sight over the branches as the page goes down (it takes the place of the ones in the head) */
.sk-pin { display: none; position: sticky; top: 0; z-index: 5; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; margin: 0; }
.sk-pin .tx { display: flex; flex-direction: column; min-width: 0; }
.sk-pin .tx small { font-size: 12px; color: var(--muted); }
.sk-preview .sk-state, .sk-preview .sk-bhead .n { visibility: hidden; }

.sk-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; min-width: 0; }
.sk-note { font-size: 13px; line-height: 1.3; color: var(--muted); }
.sk-sheet, .sk-bonds { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sk-rows { display: flex; flex-direction: column; }
.sk-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px; align-items: center; gap: 8px; min-height: 30px; padding: 3px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sk-row .l { min-width: 0; line-height: 1.2; overflow-wrap: anywhere; }
.sk-row .v { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: baseline; gap: 6px; text-align: right; }
.sk-row .was { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sk-row .now { font: 400 22px/1 var(--font-num); }
.sk-row.chg .now { color: var(--gold); }
.sk-slots-hd { margin-top: 4px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.sk-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.sk-slot { display: flex; align-items: center; gap: 8px; min-height: 28px; min-width: 0; font-size: 13px; line-height: 1.15; }
.sk-slot span:last-child { min-width: 0; overflow-wrap: anywhere; }
.sk-slot.locked { color: var(--muted); }
.sk-slot.free { color: var(--gold); }
.sk-none { font-size: 14px; color: var(--muted); }
.sk-bond { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.sk-bond .pic { display: grid; place-items: center; width: 40px; height: 40px; background: #120e17; border: 1px solid #000; overflow: hidden; }
.sk-bond .pic canvas, .sk-bond .pic img { image-rendering: pixelated; }
.sk-bond .tx { display: flex; flex-direction: column; min-width: 0; }
.sk-bond .tx b { font-size: 14px; overflow-wrap: anywhere; }
.sk-bond .tx small { font-size: 12px; color: var(--muted); }
.sk-bond .lv { display: flex; gap: 5px; padding-right: 3px; }
.sk-bond .lv i { width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--line); box-sizing: border-box; }
.sk-bond .lv i.on { background: var(--gold); border-color: #1a1008; }

/* a narrow window: one column, the branches one under the other */
@media (max-width: 760px) {
  .sk-who { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "fig id" "ladder ladder" "next next" "hint hint" "reset reset"; gap: 10px 12px; }
  .sk-preview .sk-who { grid-template-areas: "fig id" "ladder ladder" "points points" "next next"; }
  .sk-own .sk-who .sk-points { display: none; }
  .sk-pin { display: flex; }
  .sk-who .sk-reset { justify-self: stretch; }
  .sk-tree, .sk-side { grid-template-columns: minmax(0, 1fr); }
  .sk-slots { grid-template-columns: minmax(0, 1fr); }
}

/* the skills a hero fights with, on its info card in a fight (both sides': the opponent's Knight may be another one) */
.sk-taken { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; padding-top: 5px; border-top: 1px solid var(--line); }
.sk-taken-hd { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.sk-taken-row { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.25; }
.sk-taken-row .tx { min-width: 0; }
.sk-taken-row .tx b { margin-right: 5px; }
.sk-taken.compact { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; }
.sk-taken.compact .sk-taken-hd { flex: 0 0 100%; }
.sk-taken.compact .sk-taken-row { align-items: center; }
.st-part.tree { color: var(--blue-hi); }

/* over the board in a fight: the link between two bonded champions on touching squares, and ground a Scorch left burning */
.bond-mark { position: absolute; z-index: 3; display: grid; place-items: center; box-sizing: border-box; pointer-events: auto; cursor: help; color: #2a1802; background: radial-gradient(circle at 50% 35%, #ffe680, #f0b429 70%, #b9781a); border: 2px solid #1a1008; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 240, 180, 0.7), 0 0 10px rgba(255, 200, 60, 0.75); animation: bond-pulse 2.4s ease-in-out infinite; }
.bond-mark svg { width: 72%; height: 72%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.bond-mark i { position: absolute; right: -5px; bottom: -5px; min-width: 13px; height: 13px; display: grid; place-items: center; font: 700 10px/1 var(--font-text); font-style: normal; color: #fff3cf; background: #1a1008; border: 1px solid #f0b429; border-radius: 7px; }
@keyframes bond-pulse { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 240, 180, 0.7), 0 0 6px rgba(255, 200, 60, 0.5); } 50% { box-shadow: 0 0 0 1px rgba(255, 240, 180, 0.9), 0 0 14px rgba(255, 200, 60, 0.95); } }
.scorch-mark { position: absolute; z-index: 1; box-sizing: border-box; pointer-events: none; border: 2px solid rgba(255, 138, 58, 0.85);
  background: radial-gradient(ellipse at 50% 80%, rgba(255, 196, 80, 0.5) 0%, rgba(255, 110, 30, 0.34) 45%, rgba(160, 30, 10, 0.12) 78%, transparent 100%); box-shadow: inset 0 0 18px rgba(255, 110, 30, 0.6); animation: scorch-flicker 0.9s ease-in-out infinite alternate; }
@keyframes scorch-flicker { from { opacity: 0.62; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bond-mark, .scorch-mark { animation: none; } }
html.reduce-motion .bond-mark, html.reduce-motion .scorch-mark { animation: none; }

/* the results: a skill point earned (with the way to its tree), and the bonds that grew: one row, a chip a pair */
.res-also-row.k-tree { --k: #ffd23f; } .res-also-row.k-bonds { --k: #ff9ad0; grid-column: 1 / -1; }
.res-also-row .gets .btn.res-tree-go { min-height: 32px; white-space: nowrap; }
.res-chip.res-bond { padding: 0 8px 0 5px; gap: 3px; color: #f3ead8; }
.res-chip.res-bond canvas + canvas, .res-chip.res-bond img + img, .res-chip.res-bond canvas + img, .res-chip.res-bond img + canvas { margin-left: -4px; }
.res-chip.res-bond > span { margin-left: 3px; }
.res-chip.res-bond.up { color: #2a1802; background: linear-gradient(180deg, #ffe680, #ffc928 55%, #e89a12); border-color: #fff2b0; }

/* ------------------------------------------------------------------ two halves of one champion (19 Nov: ui/champ-halves.js)
   Its tier from cards in chests, its mastery from fighting; a tier needs both. Side by side; a narrow window, one over
   the other. Legacy's and the older Neon pages' look; Arena's own in arena-heroes.css. */
.hv-halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; min-width: 0; }
.hv-half { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 8px 10px; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 6px; background: rgba(0, 0, 0, 0.06); }
.hv-half.waits { border-color: #c99a2e; }
.hv-head { display: flex; align-items: center; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.hv-from { font-size: 11px; opacity: 0.75; overflow-wrap: anywhere; }
.hv-note { font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.hv-bar { height: 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.25); overflow: hidden; }
.hv-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e9b949, #ffd978); }
.hv-mastery .hv-bar i { background: linear-gradient(90deg, #3fb6a8, #7fe0d0); }
@media (max-width: 520px) { .hv-halves { grid-template-columns: minmax(0, 1fr); } }
.hv-ladder { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hv-rungs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.hv-rung { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 0; border-radius: 4px; background: rgba(0, 0, 0, 0.08); opacity: 0.6; text-align: center; min-width: 0; }
.hv-rung.on { opacity: 1; background: rgba(233, 185, 73, 0.22); }
.hv-rung i { font-style: normal; font-weight: 700; font-size: 13px; color: #b8862b; }
.hv-rung.on i { color: #e9a400; }
.hv-rung em { font-style: normal; font-size: 10px; line-height: 1.1; overflow-wrap: anywhere; }
.hv-rung small { min-height: 12px; font-size: 10px; font-weight: 700; color: #3fb6a8; }
.hv-legend { font-size: 11px; opacity: 0.75; overflow-wrap: anywhere; }
.hv-story { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hv-line { margin: 0; font-size: 13px; font-style: italic; overflow-wrap: anywhere; }
.hv-line.shut { font-style: normal; opacity: 0.6; }
/* ★7: every star earned, its gold mark (a card's own corner, nothing on the board) */
.star7 { display: inline-grid; place-items: center; width: 20px; height: 20px; font: 900 14px/1 var(--font-text, sans-serif); color: #2a1802; background: radial-gradient(circle at 40% 35%, #fff1a0, #ffc83d 55%, #b8862b); border: 1px solid #5a3a06; border-radius: 50%; box-shadow: 0 0 8px rgba(255, 200, 60, 0.6); }
.star7.small { width: 16px; height: 16px; font-size: 11px; }
.card > .star7 { position: absolute; left: 2px; top: 2px; z-index: 2; pointer-events: none; }
.tt-title .star7 { margin-left: 6px; vertical-align: middle; }

/* ------------------------------------------------------------------ the level road (19 Nov: ui/level-road.js)
   The game pass's place: your level, its bar, the next levels' gifts (the big ones marked), what each level gave.
   Legacy's panels and the older Neon pages; Arena's own in arena-items.css. Phone: one column, nothing sideways. */
.lr-road { width: 100%; min-width: 0; }
.lr-level { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.lr-sec { margin: 12px 0 6px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.lr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; min-width: 0; }
.lr-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 18px 6px 8px; text-align: center; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 6px; background: rgba(0, 0, 0, 0.05); }
.lr-tile.big { border-color: #c99a2e; background: rgba(233, 185, 73, 0.16); }
.lr-tile.next { border: 2px solid #3fb6a8; }
.lr-tile.got { opacity: 0.7; }
.lr-n { position: absolute; left: 6px; top: 4px; font-size: 13px; }
.lr-pics { display: flex; gap: 2px; min-height: 34px; align-items: center; justify-content: center; }
.lr-what { display: flex; flex-direction: column; gap: 1px; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.lr-part.k-coins { opacity: 0.8; }
.lr-got { position: absolute; right: 6px; top: 4px; font-style: normal; color: #2e9e5b; font-weight: 700; }
.lr-here { position: absolute; right: 6px; top: 4px; font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #3fb6a8; }
@media (max-width: 520px) { .lr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nx-ccard > .star7 { position: absolute; left: 4px; top: 24px; z-index: 2; pointer-events: none; }

/* (your word, 22 Nov: a purchase or a craft you can't miss) the show's "Bought!" / "Crafted!" stamping down over what you got,
   and what you got rising in with a glow of its rarity (chest-show.js playBuyShow, playCraftShow) */
.cf-got-kick { font: 700 34px/1 var(--font-title, serif); letter-spacing: 0.08em; text-transform: uppercase; color: #f0d9a0;
  text-shadow: 0 3px 0 #000, 0 0 18px rgba(240, 217, 160, 0.55); animation: cf-stamp 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.cf-got > :not(.cf-got-kick) { animation: cf-rise 0.6s cubic-bezier(0.2, 1.3, 0.4, 1) 0.08s both; }
.cf-got.r-common { --got: rgba(220, 220, 230, 0.45); } .cf-got.r-rare { --got: rgba(90, 160, 255, 0.55); }
.cf-got.r-epic { --got: rgba(190, 110, 255, 0.6); } .cf-got.r-legendary { --got: rgba(255, 200, 80, 0.7); }
.cf-got > :nth-child(2) { filter: drop-shadow(0 0 22px var(--got, rgba(240, 217, 160, 0.5))); }
@keyframes cf-stamp { from { transform: scale(2.4); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes cf-rise { from { transform: translateY(40px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) { .cf-got-kick { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .cf-got-kick, .cf-got > :not(.cf-got-kick) { animation: none; } }

/* (the purchase's light centred on what was bought: the table it stands on stops above the Continue row) */
.cf-bought :is(.cf-back-fx, .cf-front-fx) { bottom: 76px; }

/* ---------------------------------------------------------------- the skill trees v2 (ui/tree-page.js, 22 Nov)
   each branch a grid of its six nodes: rows that open with points (a dashed line, "4 pts"), arrows from a node to the
   one that needs it full, a rank on each node, the capstone round; under it the node pointed at or pressed. */
:is(.ar-on .ar, body) .sk-tree.v2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
:is(.ar-on .ar, body) .sk-tree.v2 > .sk-branch { align-self: stretch; } /* (a phone's column of branches: each the full width) */
:is(.ar-on .ar, body) .sk-tree.v2 .sk-branch { overflow: visible; display: flex; flex-direction: column; gap: 10px; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-bhead .nm { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 0; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-arrows .ln { fill: none; stroke: #4a4058; stroke-width: 5; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-arrows .hd { fill: #4a4058; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-arrows .ln.on { stroke: #e2c27c; filter: drop-shadow(0 0 4px rgba(226, 194, 124, 0.55)); }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-arrows .hd.on { fill: #e2c27c; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-tier { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(154, 144, 168, 0.35); pointer-events: none; text-align: right; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-tier small { position: relative; top: -15px; font-size: 11px; color: #8d829c; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-node { position: relative; z-index: 1; display: block; justify-self: center; align-self: center; width: 60px; height: 60px; padding: 0; background: none; border: 0; cursor: pointer; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-node .sk-ico { width: 60px; height: 60px; transition: filter 0.12s, box-shadow 0.12s; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-node.cap .sk-ico, :is(.ar-on .ar, body) .sk-tree.v2 .sk-node.cap .sk-ico img { border-radius: 50%; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-node.cap .sk-ico { overflow: hidden; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-node.no .sk-ico, :is(.ar-on .ar, body) .sk-tree.v2 .sk-node.open .sk-ico { filter: saturate(0.25) brightness(0.5); }
:is(.ar-on .ar, body) .sk-preview .sk-tree.v2 .sk-node .sk-ico { filter: none; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-node.can:hover .sk-ico, :is(.ar-on .ar, body) .sk-tree.v2 .sk-node.can:focus-visible .sk-ico { filter: brightness(1.18); }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-node.some .sk-ico { box-shadow: 0 0 0 2px #b48d3e, 0 0 10px rgba(226, 194, 124, 0.3); }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-node.max .sk-ico { box-shadow: 0 0 0 2px #e2c27c, 0 0 16px 2px rgba(226, 194, 124, 0.55); }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-node.cap.some .sk-ico, :is(.ar-on .ar, body) .sk-tree.v2 .sk-node.cap.max .sk-ico { border-radius: 50%; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-rk { position: absolute; right: -10px; bottom: -8px; min-width: 32px; padding: 1px 4px; font: 700 12px/1.3 Georgia, serif; text-align: center; color: #cfc6d8; background: #0d0a12; border: 1px solid #4a4058; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-node.some .sk-rk, :is(.ar-on .ar, body) .sk-tree.v2 .sk-node.max .sk-rk { color: #1a1220; background: #e2c27c; border-color: #e2c27c; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-node:focus-visible { outline: 2px solid #e2c27c; outline-offset: 3px; }
/* the detail box keeps its height whatever it says (a press never moves the page) */
:is(.ar-on .ar, body) .sk-tree.v2 .sk-detail { min-height: 112px; padding: 10px 12px; background: rgba(13, 10, 20, 0.62); border: 1px solid rgba(154, 144, 168, 0.25); font-size: 14px; line-height: 1.3; color: #cfc5da; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-detail:not(.on)::before { content: '·'; opacity: 0; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-detail .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-detail .hd .sk-ico { width: 28px; height: 28px; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-detail .hd b { color: #e2c27c; font-size: 15px; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-detail .hd small { margin-left: auto; color: #9a90a8; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-detail p { margin: 3px 0 0; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-detail .next { color: #72de6c; }
:is(.ar-on .ar, body) .sk-tree.v2 .sk-detail .need { color: #ff7a6a; font-size: 13px; }
/* the points as a bar */
:is(.ar-on .ar, body) .sk .sk-meter { position: relative; height: 10px; background: #15111d; border: 1px solid #4a4058; overflow: hidden; }
:is(.ar-on .ar, body) .sk .sk-meter.big { height: 14px; }
:is(.ar-on .ar, body) .sk .sk-meter > i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #b48d3e, #f0d9a0); transition: width 0.2s; }
:is(.ar-on .ar, body) .sk-entry .sk-more { align-self: center; color: #e2c27c; font-weight: 700; }
@media (max-width: 760px) {
  :is(.ar-on .ar, body) .sk-tree.v2 { grid-template-columns: minmax(0, 1fr); }
  :is(.ar-on .ar, body) .sk-tree.v2 .sk-node, :is(.ar-on .ar, body) .sk-tree.v2 .sk-node .sk-ico { width: 54px; height: 54px; }
}
:is(.ar-on.ar-phone .ar) .sk-tree.v2 { grid-template-columns: minmax(0, 1fr); }

/* (your word, 22 Nov) the emote wheel: no box round it, only the ring; the phrases a plain list, no box and no ring */
.modal-back .panel.modal.emote-wheel-modal { background: none !important; border: 0 !important; border-image: none !important; box-shadow: none !important; }
.emote-wheel.phrases-list { width: auto; height: auto; min-width: 220px; border: 0; border-radius: 0; box-shadow: none; background: none; display: flex; flex-direction: column; gap: 6px; padding-top: 46px; }
.emote-wheel.phrases-list .emote-name, .emote-wheel.phrases-list .emote-hub { display: none; }
.emote-wheel.phrases-list .wheel-pages { top: 0; bottom: auto; }
.emote-wheel.phrases-list .phrase-pill { position: static; transform: none; margin: 0; width: 100%; min-height: 40px; text-align: left; }
html[data-theme='neon'] .emote-wheel.phrases-list .phrase-pill { padding: 6px 14px; font: 600 15px/1.2 var(--nx-ui); color: #fff6dc; }
/* (a chest opening at a little more than its Shop size, standing on the vault's dais: chest-show.js onDais) */
.cf-centre.cf-chest > * { translate: 0 var(--on-dais, 0px); }
.cf-back-fx > .cf-on-dais, .cf-back-fx > .cf-pillar { translate: 0 var(--on-dais, 0px); transition: translate 0.4s, width 0.4s, height 0.4s; }

/* styles/legacy.css */
/* The Legacy theme (Settings > Display > Theme): the first Eriband, Tic Tac Tactics. Parchment cards with ink
   outlines and hard shadows, little wooden blocks for buttons, gold for the main action, the old village behind
   it (render/village.js) and the pixel art drawn in code. Only the look: every screen keeps its layout. The
   frames are render/frames.js's legacy set (--fr-legacy-*). */

:root[data-theme='legacy'] {
  /* outside the parchment (the screen, the battle's HUD): dark wood and light text */
  --bg: #1e120a;
  --bg-2: #2a1a0e;
  --panel: #4a2e1a;
  --panel-2: #5a3a22;
  --panel-3: #6a4528;
  --inset: #2a1a0e;
  --line: #7a4f2c;
  --copper: #c08a52;
  --copper-hi: #f2c14e;
  --copper-dk: #5a3a22;
  --teal: #8ad86a;
  --teal-hi: #bdf0a0;
  --teal-dk: #3a7a2a;
  --text: #f3e6c4;
  --text-2: #dcc8a0;
  --muted: #b89a72;
  --red: #d0463c;
  --red-hi: #e86a5e;
  --red-dk: #8a2420;
  --gold: #f2c14e;
  --good: #7fd068;
  --bad: #f06a5a;
  --blue: #3f74e0;
  --blue-hi: #8fb0f0;
  --team-red: #d0463c;
  --team-red-hi: #f09a90;
  --button-shadow: 0 4px 0 #1e120a;
  --button-text-shadow: 2px 2px 0 #3b2414;
  --primary-text: #3b2414;
  --primary-text-shadow: 1px 1px 0 #ffe9a8;
  --panel-shadow: 6px 6px 0 rgba(20, 10, 4, 0.55);
  --frame-panel: var(--fr-legacy-panel, none);
  --frame-button: var(--fr-legacy-button, none);
  --frame-button-red: var(--fr-legacy-button-red, none);
  --frame-tab: var(--fr-legacy-tab, none);
  --frame-inset: var(--fr-legacy-inset, none);
  --frame-card: var(--fr-legacy-card, none);
}

/* On the parchment: ink, and darker accents that read on it */
:where(:root[data-theme='legacy']) :where(.panel, .card, .champ-tile, .toast, #tooltip, .roster-hero) {
  --text: #3b2414;
  --text-2: #5a3a22;
  --muted: #7a5a3a;
  --panel: #ecd9a8;
  --panel-2: #e4cc96;
  --panel-3: #dcc48c;
  --inset: #e2cd98;
  --bg-2: #dcc48c;
  --line: #b89a60;
  --copper: #7a4f2c;
  --copper-hi: #9a5a1a;
  --copper-dk: #7a4f2c;
  --teal: #2f7a3a;
  --teal-hi: #24602c;
  --teal-dk: #1a4a20;
  --gold: #9a6a12;
  --good: #2e7d32;
  --bad: #b02a22;
  --blue-hi: #23479a;
  --team-red-hi: #8a2420;
  --rarity-common: #6a5a48;
  --rarity-rare: #1f5fbf;
  --rarity-epic: #7a3ab8;
  --rarity-legendary: #b06a0a;
  --well: rgba(59, 36, 20, 0.08);
}
:where(:root[data-theme='legacy']) :where(.panel, .toast, #tooltip) { color: var(--text); }
/* On the wooden blocks: parchment-coloured text and bright accents; ink on the gold one */
:where(:root[data-theme='legacy']) .btn {
  --text: #f3e6c4;
  --text-2: #ecd9a8;
  --muted: #e0c89a;
  --teal: #bdf0a0;
  --teal-hi: #d4f8c0;
  --gold: #ffd866;
  --good: #b4ec98;
  --bad: #ffb0a0;
}
:where(:root[data-theme='legacy']) .btn.primary { --text: #3b2414; --muted: #7a5a3a; --teal: #2f7a3a; --teal-hi: #24602c; --gold: #7a4a0a; --good: #2e7d32; --bad: #8a2420; }
:where(:root[data-theme='legacy']) .btn:active:not(:disabled), :where(:root[data-theme='legacy']) .btn.pressed { transform: translateY(3px); box-shadow: 0 1px 0 #1e120a; }
:where(:root[data-theme='legacy']) .btn.link { box-shadow: none; text-shadow: none; }
:where(:root[data-theme='legacy']) .btn.selected { box-shadow: 0 0 0 3px var(--gold), 0 4px 0 #1e120a; }

/* titles on the parchment: ink, no pixel drop */
:where(:root[data-theme='legacy']) :is(.panel, .card) :is(.title, .dr-title .t) { text-shadow: 1px 1px 0 #fff6dc; }
:where(:root[data-theme='legacy']) .title.teal { color: #f2c14e; text-shadow: 0 3px 0 #8a5a1c, 0 5px 0 #1e120a; }
:where(:root[data-theme='legacy']) .ct-name { color: var(--text); }
:where(:root[data-theme='legacy']) :is(.panel, .card, .champ-tile, .toast) .chip:not(.relic) { background: rgba(59, 36, 20, 0.1); border-color: #7a5a3a; }
:where(:root[data-theme='legacy']) :is(.panel, .card, .champ-tile) .chip.order { color: #7a5a08; border-color: #b4801f; }
:where(:root[data-theme='legacy']) :is(.panel, .card, .champ-tile) .chip.wild { color: #2f6a24; border-color: #4caf50; }
:where(:root[data-theme='legacy']) :is(.panel, .card, .champ-tile) .chip.arcane { color: #4a2ab0; border-color: #8f55e0; }
:where(:root[data-theme='legacy']) :is(.panel, .card, .champ-tile) .chip.shadow { color: #6a2a7a; border-color: #8a4b9a; }
:where(:root[data-theme='legacy']) :is(.panel, .card, .champ-tile) .rarity-common { color: var(--rarity-common); }
:where(:root[data-theme='legacy']) :is(.panel, .card, .champ-tile) .rarity-rare { color: var(--rarity-rare); }
:where(:root[data-theme='legacy']) :is(.panel, .card, .champ-tile) .rarity-epic { color: var(--rarity-epic); }
:where(:root[data-theme='legacy']) :is(.panel, .card, .champ-tile) .rarity-legendary { color: var(--rarity-legendary); }
/* the coins and gems: little parchment labels */
:where(:root[data-theme='legacy']) .cur { color: #3b2414; background: #ecd9a8; border: 2px solid #3b2414; box-shadow: inset 2px 2px 0 #fff6dc, 2px 2px 0 rgba(20, 10, 4, 0.5); }
:where(:root[data-theme='legacy']) .kbd:not(.pad) { color: #f3e6c4; background: #3b2414; border-color: #1e120a; }
/* the portraits sit in dark wooden wells */
:where(:root[data-theme='legacy']) :is(.ct-icon, .dc-icon:not(.ban), .dr-slot.filled, .ds.done:not(.ban)) { background: radial-gradient(circle at 50% 38%, #7a4f2c, #3b2414 78%); border-color: #1e120a; box-shadow: inset 2px 2px 0 rgba(255, 246, 220, 0.18); }
:where(:root[data-theme='legacy']) :is(.dr-slot, .dr-ban) { background: rgba(59, 36, 20, 0.12); }
:where(:root[data-theme='legacy']) .ds { --text: #f3e6c4; }
:where(:root[data-theme='legacy']) .roster-hero { background: #ecd9a8; border: 3px solid #3b2414; box-shadow: inset 2px 2px 0 #fff6dc, 3px 3px 0 rgba(20, 10, 4, 0.55); }
:where(:root[data-theme='legacy']) .roster-hero.active { border-color: #b4801f; box-shadow: inset 2px 2px 0 #fff6dc, 0 0 0 3px #f2c14e, 3px 3px 0 3px rgba(20, 10, 4, 0.55); }
:where(:root[data-theme='legacy']) .bar { background: #2a1a0e; border: 2px solid #3b2414; box-shadow: inset 0 0 0 1px #5a3a22; }
:where(:root[data-theme='legacy']) .input { border: 3px solid #3b2414; box-shadow: inset 2px 2px 0 #c3a66b; }
:where(:root[data-theme='legacy']) .input:focus { border-color: #b4801f; }
:where(:root[data-theme='legacy']) .switch { border: 3px solid #3b2414; }
:where(:root[data-theme='legacy']) .switch.on { border-color: #3b2414; background: #4caf50; }
:where(:root[data-theme='legacy']) .switch.on::after { background: #fff6dc; }
:where(:root[data-theme='legacy']) .list-item { box-shadow: inset 2px 2px 0 rgba(255, 246, 220, 0.5); }
:where(:root[data-theme='legacy']) .tabs .btn.on { filter: brightness(1.15); }
:where(:root[data-theme='legacy']) .tabs .btn.on::after { background: #f2c14e; height: 4px; box-shadow: 0 2px 0 #3b2414; }
:where(:root[data-theme='legacy']) .chat-list { background: #e2cd98; border-color: #3b2414; }
:where(:root[data-theme='legacy']) .chat-msg { background: #f4e6bc; border-color: #3b2414; color: #3b2414; }
:where(:root[data-theme='legacy']) .chat-msg.mine { background: #c9e0b0; }
:where(:root[data-theme='legacy']) .playercard { border-color: #3b2414; box-shadow: 0 0 0 3px #9c6a3c, 6px 6px 0 3px rgba(20, 10, 4, 0.5); }
:where(:root[data-theme='legacy']) .modal-back { background: rgba(20, 10, 4, 0.62); }
:where(:root[data-theme='legacy']) * { scrollbar-color: #7a4f2c #2a1a0e; }
:where(:root.cb[data-theme='legacy']) :where(.panel, .card, .champ-tile, .toast, #tooltip, .roster-hero) { --team-red-hi: #9a4a0a; }

/* the first Eriband's textures (render/legacy-art.js applyTextures: --tile-*): grain in the parchment, planks in the
   wooden blocks, grass behind the champions (their pictures stand on a little lawn, as on the old board) */
:root[data-theme='legacy'] body { background: var(--tile-grass) 0 0 / 48px 48px, #5d9e3c; }
:where(:root[data-theme='legacy']) :is(.panel:not(.inset), .modal, .toast, #tooltip) { border-image: var(--frame-panel) 12 / 12px / 0 stretch; background: var(--tile-parchment) 0 0 / 64px 64px, #ecd9a8; background-clip: padding-box; }
:where(:root[data-theme='legacy']) :is(.card, .champ-tile) { border-image: var(--frame-card) 9 / 9px / 0 stretch; background: var(--tile-parchment) 0 0 / 64px 64px, #ecd9a8; background-clip: padding-box; }
:where(:root[data-theme='legacy']) .btn:not(.primary):not(.link):not(.danger) { border-image: var(--frame-button) 9 / 9px / 0 stretch; background: var(--tile-wood) 0 0 / 64px 64px, #5a3a22; background-clip: padding-box; }
:where(:root[data-theme='legacy']) .action-bar:not(:empty) { border-image: var(--frame-panel) 12 / 12px / 0 stretch; background: var(--tile-wood) 0 0 / 64px 64px, #5a3a22; background-clip: padding-box; }
:where(:root[data-theme='legacy']) :is(.ct-icon, .dc-icon:not(.ban), .dr-slot.filled, .ds.done:not(.ban), .card > canvas.portrait, .roster-hero .portrait, .cc-win) {
  background: var(--tile-grass) 0 0 / 48px 48px, #5d9e3c; border-color: #3b2414; box-shadow: inset 0 0 0 2px rgba(20, 40, 10, 0.25); }
:where(:root[data-theme='legacy']) .card > canvas.portrait { border: 3px solid #3b2414; }
/* the soft vignette over the village */
:root[data-theme='legacy'] #app::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at center, transparent 60%, rgba(10, 15, 5, 0.45) 100%); }

/* ---------------------------------------------------------------- the main page's window and bars (styles/ui3.css),
   as the first Eriband had them: every screen one big parchment card over the village (dimmed round it), a
   wooden plank for its head and for the bar on top, ink outlines and hard shadows */
.ui3[data-theme='legacy'] #app > .screen.win {
  background: var(--tile-parchment) 0 0 / 64px 64px, #ecd9a8; border: 4px solid #3b2414;
  box-shadow: inset 3px 3px 0 #fff6dc, inset -3px -3px 0 #c3a66b, 0 0 0 100vmax rgba(20, 10, 4, 0.42), 8px 8px 0 rgba(20, 10, 4, 0.55);
  --text: #3b2414; --text-2: #5a3a22; --muted: #7a5a3a; color: var(--text); }
.ui3[data-theme='legacy'] .screen.win > .screen-head { background: var(--tile-wood) 0 0 / 64px 64px, #5a3a22; border-bottom: 4px solid #3b2414; box-shadow: inset 0 2px 0 rgba(255, 246, 220, 0.15); --text: #f3e6c4; color: var(--text); }
.ui3[data-theme='legacy'] .screen-head .title { color: #f2c14e; text-shadow: 0 3px 0 #8a5a1c, 0 5px 0 #1e120a; }
.ui3[data-theme='legacy'] .screen-head > .btn.icon:first-child { background: var(--tile-wood) 0 0 / 64px 64px, #5a3a22; border: 3px solid #1e120a; box-shadow: inset 2px 2px 0 rgba(255, 246, 220, 0.2), 0 3px 0 #1e120a; }
.ui3[data-theme='legacy'] .tabs { border-bottom: 3px dashed #b89a60; }
.ui3[data-theme='legacy'] .tabs .btn { color: #f3e6c4; background: var(--tile-wood) 0 0 / 64px 64px, #6a4528; border: 3px solid #3b2414; border-bottom-width: 0; margin-right: 4px; box-shadow: inset 2px 2px 0 rgba(255, 246, 220, 0.18); }
.ui3[data-theme='legacy'] .tabs .btn.on { color: #3b2414; background: var(--tile-parchment) 0 0 / 64px 64px, #f2c14e; border-color: #3b2414; text-shadow: 1px 1px 0 #fff6dc; }
.ui3[data-theme='legacy'] .panel { background: var(--tile-parchment) 0 0 / 64px 64px, #f2e2b6; border: 3px solid #3b2414; box-shadow: inset 2px 2px 0 #fff6dc, inset -2px -2px 0 #c3a66b, 4px 4px 0 rgba(20, 10, 4, 0.35); color: #3b2414; }
.ui3[data-theme='legacy'] .panel.flat { background: rgba(59, 36, 20, 0.08); box-shadow: inset 0 0 0 2px rgba(59, 36, 20, 0.25); }
.ui3[data-theme='legacy'] .panel.inset { background: #e2cd98; border: 3px solid #3b2414; box-shadow: inset 2px 2px 0 #c3a66b; }
.ui3[data-theme='legacy'] .btn { color: #f3e6c4; background: var(--tile-wood) 0 0 / 64px 64px, #5a3a22; border: 3px solid #1e120a; box-shadow: inset 2px 2px 0 rgba(255, 246, 220, 0.2), inset -2px -3px 0 rgba(0, 0, 0, 0.3), 0 4px 0 #1e120a; text-shadow: 2px 2px 0 #3b2414; }
.ui3[data-theme='legacy'] .btn.primary { color: #3b2414; background: #f2c14e; border-color: #3b2414; box-shadow: inset 2px 2px 0 #ffe9a8, inset -2px -3px 0 #b4801f, 0 4px 0 #1e120a; text-shadow: 1px 1px 0 #ffe9a8; }
.ui3[data-theme='legacy'] .btn.teal { color: #fff6dc; background: #4caf50; border-color: #1e3a12; box-shadow: inset 2px 2px 0 #9be08a, inset -2px -3px 0 #2e7d32, 0 4px 0 #1e120a; }
.ui3[data-theme='legacy'] .btn.link { background: none; border: 0; box-shadow: none; color: #7a4f2c; text-shadow: none; }
.ui3[data-theme='legacy'] .btn.selected { box-shadow: 0 0 0 3px #f2c14e, 0 4px 0 #1e120a; }
.ui3[data-theme='legacy'] .card { background: var(--tile-parchment) 0 0 / 64px 64px, #ecd9a8; border: 3px solid #3b2414; box-shadow: inset 2px 2px 0 #fff6dc, 3px 3px 0 rgba(20, 10, 4, 0.45); color: #3b2414; }
.ui3[data-theme='legacy'] .card:hover { box-shadow: inset 2px 2px 0 #fff6dc, 0 0 0 3px #f2c14e, 3px 3px 0 3px rgba(20, 10, 4, 0.45); }
.ui3[data-theme='legacy'] :is(.input, select.input) { background: #fff8e6; color: #3b2414; border: 3px solid #3b2414; box-shadow: inset 2px 2px 0 #c3a66b; }
.ui3[data-theme='legacy'] .modal { background: var(--tile-parchment) 0 0 / 64px 64px, #ecd9a8; border: 4px solid #3b2414; box-shadow: inset 3px 3px 0 #fff6dc, inset -3px -3px 0 #c3a66b, 8px 8px 0 rgba(20, 10, 4, 0.55); color: #3b2414; }
.ui3[data-theme='legacy'] #tooltip { background: #fff8e6; border: 3px solid #3b2414; box-shadow: 3px 3px 0 rgba(20, 10, 4, 0.45); color: #3b2414; }
.ui3[data-theme='legacy'] .hub-bar { background: var(--tile-wood) 0 0 / 64px 64px, #5a3a22; border-bottom: 4px solid #1e120a; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 4px 0 rgba(20, 10, 4, 0.4); }
.ui3[data-theme='legacy'] :is(.hub-tab, .hub-btab) { color: #f3e6c4; text-shadow: 2px 2px 0 #1e120a; }
.ui3[data-theme='legacy'] .hub-tab.on { color: #ffd866; border-bottom-color: #f2c14e; background: rgba(0, 0, 0, 0.18); }
.ui3[data-theme='legacy'] :is(.hub-play, .hub-bplay) { color: #3b2414; background: #f2c14e; border: 3px solid #3b2414; box-shadow: inset 2px 2px 0 #ffe9a8, inset -2px -4px 0 #b4801f, 0 4px 0 #1e120a; text-shadow: 1px 1px 0 #ffe9a8; }
.ui3[data-theme='legacy'] .hub-tools .btn { background: var(--tile-wood) 0 0 / 64px 64px, #6a4528; border: 3px solid #1e120a; }
.ui3[data-theme='legacy'] .hub-me { background: var(--tile-parchment) 0 0 / 64px 64px, #ecd9a8; border: 3px solid #3b2414; --text: #3b2414; color: #3b2414; }
.ui3[data-theme='legacy'] .hub-bar .currencies .cur { color: #3b2414; background: #ecd9a8; border: 2px solid #3b2414; box-shadow: inset 2px 2px 0 #fff6dc; }
.ui3[data-theme='legacy'] :is(.dr-head, .dr-choice-bar) { background: var(--tile-wood) 0 0 / 64px 64px, #5a3a22; border: 3px solid #1e120a; color: #f3e6c4; }
.ui3[data-theme='legacy'] .dr-team { background: var(--tile-parchment) 0 0 / 64px 64px, #ecd9a8; border: 3px solid #3b2414; color: #3b2414; }
.ui3[data-theme='legacy'] .dr-team.p0 { box-shadow: inset 0 5px 0 #3f74e0, 4px 4px 0 rgba(20, 10, 4, 0.4); }
.ui3[data-theme='legacy'] .dr-team.p1 { box-shadow: inset 0 5px 0 #d0463c, 4px 4px 0 rgba(20, 10, 4, 0.4); }
.ui3[data-theme='legacy'] .dr-slot { background: rgba(59, 36, 20, 0.1); border: 2px dashed #b89a60; }
.ui3[data-theme='legacy'] .dr-slot.filled { border: 3px solid #3b2414; background: var(--tile-grass) 0 0 / 48px 48px, #5d9e3c; }
.ui3[data-theme='legacy'] .champ-tile { background: var(--tile-parchment) 0 0 / 64px 64px, #ecd9a8; border: 3px solid #3b2414; box-shadow: inset 2px 2px 0 #fff6dc, 3px 3px 0 rgba(20, 10, 4, 0.45); color: #3b2414; }
.ui3[data-theme='legacy'] .champ-tile .ct-icon { background: var(--tile-grass) 0 0 / 48px 48px, #5d9e3c; border: 3px solid #3b2414; box-shadow: none; }
/* the main page's Home (styles/hub3.css): its dark wells and labels, on parchment */
.ui3[data-theme='legacy'] :is(.h3-tile-ico, .h3-faces canvas) { background: var(--tile-grass) 0 0 / 48px 48px, #5d9e3c; border: 3px solid #3b2414; box-shadow: none; }
.ui3[data-theme='legacy'] :is(.h3-evg, .h3-status, .h3-quests, .h3-line) { color: #3b2414; background: rgba(59, 36, 20, 0.08); border: 2px solid #b89a60; }

/* ================================================================ the village behind it (render/village.js, the
   first Eriband's css/style.css): the town and its folk, the floating island under a board, the screen's tints */
/* ---------- The village (generated in js/village.js) ---------- */
.village { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.village[hidden], .village-scene[hidden] { display: none; }
.village-canvas { display: block; image-rendering: pixelated; }
.village-critters { position: absolute; inset: 0; }
.critter { position: absolute; left: 0; top: 0; will-change: transform; }
/* townsfolk speech bubbles (village.js: chats, quarrels, thieves...) */
.city-bubble {
  position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, -100%);
  padding: 1px 4px; font-size: 15px; line-height: 1.2; background: #fffbea; border: 2px solid #2a1c24;
  box-shadow: 2px 2px 0 rgba(20, 10, 4, .3);
}
.city-bubble::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; width: 6px; height: 6px; margin-left: -3px;
  background: #fffbea; border-right: 2px solid #2a1c24; border-bottom: 2px solid #2a1c24; transform: rotate(45deg);
}
.city-bubble.pop { animation: bubble-pop .18s steps(3); }
@keyframes bubble-pop { from { transform: translate(-50%, -80%) scale(.4); } }
.critter-layer { position: absolute; left: 0; top: 0; pointer-events: none; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 rgba(20, 30, 10, .3)); }
/* the city's moving water and waving flags (js/village.js) */
/* ⚙ Settings → Display → Background animations off: everything in the scenery holds still */
.village.still *, .village.still *::before, .village.still *::after,
.village.still + .village-scene *, .village.still + .village-scene *::before, .village.still + .village-scene *::after { animation-play-state: paused !important; }
.village.still + .village-scene .scene-bits { display: none; }
.water-layer { position: absolute; pointer-events: none; image-rendering: pixelated; background-repeat: repeat; }
.water-layer.a { animation: water-a 8s steps(48) infinite; }
.water-layer.b { animation: water-b 12s steps(48) infinite, water-shimmer 3s steps(3) infinite; }
@keyframes water-a { from { background-position: 0 0; } to { background-position: var(--tw) 0; } }
@keyframes water-b { from { background-position: 0 0; } to { background-position: calc(-1 * var(--tw)) 0; } }
@keyframes water-shimmer { 50% { opacity: .45; } }
.sea-glint { position: absolute; pointer-events: none; background: #fff; opacity: 0; animation: sea-glint 3.4s steps(1) infinite; animation-delay: var(--delay); }
@keyframes sea-glint { 0%, 84%, 100% { opacity: 0; } 86%, 94% { opacity: .9; } }
.city-flag { position: absolute; pointer-events: none; image-rendering: pixelated; background-repeat: no-repeat; animation: flag-wave .6s steps(3) infinite; }
@keyframes flag-wave { from { background-position: 0 0; } to { background-position: calc(-3 * var(--fw)) 0; } }
.critter img { display: block; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 rgba(20, 30, 10, .3)); }
.chimney-smoke, .chimney-smoke::before {
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(235, 235, 235, .85);
  animation: chimney 3.2s steps(8) infinite;
}
.chimney-smoke::before { content: ''; left: 0; top: 0; animation-delay: -1.6s; }
@keyframes chimney {
  0% { transform: translate(0, 0) scale(1); opacity: .9; }
  100% { transform: translate(12px, -36px) scale(2.2); opacity: 0; }
}
/* ---------- The match background: the floating island (js/village.js) ---------- */
.isle-fall { position: absolute; pointer-events: none; opacity: .9;
  background: repeating-linear-gradient(180deg, #e8f8ff 0 6px, #8fd8ff 6px 14px, #5ab8f0 14px 22px, #c8f0ff 22px 26px);
  background-size: 100% 26px; animation: fall-flow var(--d, .7s) linear infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent);
  box-shadow: 0 0 10px rgba(127, 240, 255, .5); }
.isle-fall.small { opacity: .8; }
@keyframes fall-flow { to { background-position: 0 26px; } }
.rune-ring { position: absolute; pointer-events: none; box-shadow: 0 0 0 3px rgba(127, 240, 255, .25), 0 0 18px 4px rgba(127, 240, 255, .35); animation: rune-pulse 3s ease-in-out infinite; }
@keyframes rune-pulse { 50% { box-shadow: 0 0 0 3px rgba(185, 140, 255, .35), 0 0 26px 8px rgba(185, 140, 255, .45); } }
.crystal-glow { position: absolute; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(185, 140, 255, .55), transparent 65%); animation: glow-pulse 2.2s ease-in-out infinite; animation-delay: var(--delay); }
.crystal-glow.cyan { background: radial-gradient(circle, rgba(127, 240, 255, .55), transparent 65%); }
.lantern-glow { position: absolute; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(255, 211, 107, .6), transparent 65%); animation: glow-pulse 1.4s steps(3) infinite; }
@keyframes glow-pulse { 50% { opacity: .45; transform: scale(.85); } }
.sky-whale img, .sky-bird img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; image-rendering: pixelated; }
@keyframes pet-hop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-14px); } 80% { transform: translateY(-18px) rotate(-6deg); } 90% { transform: translateY(-6px); } }
@keyframes pet-squash { 0%, 55% { opacity: 0; } 56%, 66% { opacity: 1; } 67%, 92% { opacity: 0; } 93%, 99% { opacity: 1; } }
.float-isle { position: absolute; pointer-events: none; animation: isle-bob var(--bob, 4s) ease-in-out infinite; animation-delay: var(--delay); filter: drop-shadow(0 10px 12px rgba(30, 10, 60, .45)); }
.float-isle-art { position: absolute; left: 0; top: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.float-isle .isle-fall { z-index: -1; }
@keyframes isle-bob { 50% { transform: translateY(-8px); } }
.sky-whale, .sky-bird { position: absolute; pointer-events: none; animation: sky-cross var(--dur, 60s) linear infinite; animation-delay: var(--delay); }
.sky-whale img.b, .sky-bird img.b { opacity: 0; animation: flap 1.2s steps(1) infinite; }
.sky-bird img.b { animation-duration: .4s; }
@keyframes sky-cross { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 120px)); } }
@keyframes flap { 50% { opacity: 1; } }
/* ---------- Screen themes (js/village.js: Village.theme) ----------
   One layer between the village and the game. Only its class changes between screens, so the
   clouds and particles keep moving instead of restarting on every turn. */
.village-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.scene-tint { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; }
.tint-menu { background: linear-gradient(160deg, rgba(255, 236, 170, .32), transparent 55%); }
.tint-draft { background: linear-gradient(180deg, rgba(255, 150, 60, .32), rgba(150, 40, 100, .22)); }
.tint-battle { background: radial-gradient(ellipse at center, transparent 45%, rgba(80, 0, 20, .42)), linear-gradient(180deg, rgba(70, 20, 90, .38), rgba(200, 70, 20, .2)); }
.tint-sudden { background: radial-gradient(ellipse at center, rgba(70, 0, 10, .2), rgba(40, 0, 10, .62)); }
.tint-over { background: linear-gradient(180deg, rgba(8, 12, 45, .68), rgba(25, 30, 80, .5)); }
.village-scene.theme-menu .tint-menu, .village-scene.theme-draft .tint-draft, .village-scene.theme-battle .tint-battle,
.village-scene.theme-sudden .tint-battle, .village-scene.theme-sudden .tint-sudden, .village-scene.theme-over .tint-over { opacity: 1; }
.village-scene.theme-sudden .tint-sudden { animation: sudden-pulse 2.4s steps(6) infinite; }
.scene-rays {
  position: absolute; inset: -20%;
  background: repeating-linear-gradient(115deg, transparent 0 70px, rgba(255, 246, 205, .13) 70px 120px, transparent 120px 240px);
  opacity: 0; transition: opacity 1.2s;
  animation: rays-sway 9s ease-in-out infinite alternate;
}
.village-scene.theme-menu .scene-rays { opacity: 1; }
.village-scene.theme-draft .scene-rays { opacity: .55; }
.scene-cloud {
  position: absolute; left: 0; top: var(--top);
  width: var(--size); height: calc(var(--size) * .42);
  border-radius: 50%;
  background: rgba(10, 30, 5, .17);
  filter: blur(16px);
  opacity: 0; transition: opacity 1.5s;
  animation: cloud-drift var(--speed) linear infinite;
  animation-delay: var(--delay);
}
.village-scene.theme-menu .scene-cloud, .village-scene.theme-placement .scene-cloud { opacity: 1; }
.village-scene.theme-sudden .scene-cloud { opacity: 1; background: rgba(0, 0, 0, .3); }
.scene-bits i {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(var(--s) * 2px); height: calc(var(--s) * 2px);
  opacity: 0; transition: opacity 1s;
}
/* menu: petals drifting down */
.village-scene.theme-menu .scene-bits i { top: -12px; opacity: .9; background: #ffc6d6; animation: bit-fall var(--d) linear infinite var(--delay); }
.village-scene.theme-menu .scene-bits i:nth-child(3n) { background: #fff6f0; }
/* champion select: festival sparkles rising */
.village-scene.theme-draft .scene-bits i { top: 100%; opacity: 1; background: #ffe36b; box-shadow: 0 0 6px #ffd23a; animation: bit-rise calc(var(--d) * 1.3) linear infinite var(--delay); }
.village-scene.theme-draft .scene-bits i:nth-child(4n) { background: #ff9ad0; box-shadow: 0 0 6px #ff6fb6; }
/* battle: embers */
.village-scene.theme-battle .scene-bits i { top: 100%; opacity: 1; background: #ff9a3c; box-shadow: 0 0 6px #ff5c1c; animation: bit-rise var(--d) linear infinite var(--delay); }
.village-scene.theme-battle .scene-bits i:nth-child(3n) { background: #ffe36b; }
/* sudden death: rain */
.village-scene.theme-sudden .scene-bits i { top: -30px; width: 2px; height: 16px; opacity: .6; background: #b8d4ff; rotate: 14deg; animation: bit-rain calc(var(--d) * .12) linear infinite var(--delay); }
/* game over: stars and fireflies */
.village-scene.theme-over .scene-bits i { top: calc(var(--y) * .65); opacity: 1; background: #fff; animation: twinkle calc(var(--d) * .4) steps(2) infinite var(--delay); }
.village-scene.theme-over .scene-bits i:nth-child(4n) { top: auto; bottom: calc(var(--y) * .35); background: #e2ff7a; box-shadow: 0 0 8px #b8ff4a; animation: firefly var(--d) ease-in-out infinite alternate var(--delay); }
@keyframes bit-fall { 0% { transform: translate(0, 0) rotate(0); } 100% { transform: translate(var(--drift), 108vh) rotate(540deg); } }
@keyframes bit-rise { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(var(--drift), -108vh); opacity: 0; } }
@keyframes bit-rain { to { transform: translate(-40px, 112vh); } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes firefly { 0% { transform: translate(0, 0); opacity: .2; } 100% { transform: translate(var(--drift), -40px); opacity: 1; } }
@keyframes cloud-drift { from { transform: translateX(-60vw); } to { transform: translateX(120vw); } }
@keyframes rays-sway { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
@keyframes sudden-pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

/* styles/hub.css */
/* The hub (inde2.html, src/ui/hub/): a client bar on top, the Home and Play views, the social
   column. The game's own look (panels, copper, teal, the themes); only the layout is new. */

:root { --hub-bar-h: 60px; --hub-bottom-h: 0px; }

/* ------------------------------------------------------------ the client bar */
.hub-bar {
  position: fixed; z-index: 40; left: 0; right: 0; top: 0;
  height: calc(var(--hub-bar-h) + var(--safe-t)); padding: var(--safe-t) max(10px, var(--safe-r)) 0 max(10px, var(--safe-l));
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, rgba(18, 14, 22, 0.97), rgba(29, 23, 36, 0.94));
  border-bottom: 3px solid #000; box-shadow: 0 2px 0 var(--copper-dk), 0 8px 18px rgba(0, 0, 0, 0.45);
}
.hub-bar[hidden], .hub-bottom[hidden] { display: none; }
.hub-brand .t1 { font-family: var(--font-title); font-size: 14px; letter-spacing: 2px; color: var(--copper-hi); text-shadow: 0 2px 0 var(--copper-dk); }
/* PLAY: the big angled button, as in a game client */
.hub-play {
  position: relative; min-width: 128px; height: 42px; padding: 0 22px;
  font-family: var(--font-title); font-size: 15px; letter-spacing: 2px; color: #241405;
  background: linear-gradient(180deg, var(--copper-hi), var(--copper)); border: 3px solid #000;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow: inset 0 -4px 0 var(--copper-dk), inset 0 3px 0 rgba(255, 246, 220, 0.4);
}
.hub-play:hover, .hub-play:focus-visible, .hub-play.on { filter: brightness(1.12); }
.hub-play.on { background: linear-gradient(180deg, #ffe48a, var(--gold)); }
.hub-tabs { display: flex; gap: 2px; height: 100%; align-items: stretch; margin-left: 6px; }
.hub-tab {
  height: 100%; min-height: 0; padding: 0 12px; gap: 6px; border: 0; border-radius: 0;
  background: none; box-shadow: none; color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 3px solid transparent;
}
.hub-tab:hover, .hub-tab:focus-visible { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.hub-tab.on { color: var(--gold); border-bottom-color: var(--gold); background: linear-gradient(0deg, rgba(245, 197, 66, 0.14), transparent); }
.hub-tab canvas, .hub-tab img { opacity: 0.8; }
.hub-tab.on canvas, .hub-tab.on img { opacity: 1; }
.hub-bar .grow { flex: 1; }
.hub-bar .currencies { flex-wrap: nowrap; }
.hub-me {
  display: grid; grid-template-columns: 40px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  min-width: 150px; max-width: 200px; height: 46px; padding: 3px 10px 3px 3px; text-align: left;
  background: var(--panel-2); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.12);
}
.hub-me .hub-pic { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; background: #120e16; border: 2px solid var(--copper-dk); overflow: hidden; }
.hub-me .hub-pic canvas { width: 34px; height: 34px; image-rendering: pixelated; }
.hub-me .hub-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.hub-me .hub-who b { font-size: var(--fs-xs); color: var(--text); }
.hub-me .hub-who small { font-size: 11px; color: var(--muted); }
.hub-me .hub-xp { grid-column: 2; height: 4px; background: #000; overflow: hidden; }
.hub-me .hub-xp i { display: block; height: 100%; background: var(--teal); }
.hub-tools { display: flex; gap: 4px; }

/* the screens sit under the bar (and on phones above the bottom tabs) */
.hub-bar-on #app > .screen { top: calc(var(--safe-t) + var(--hub-bar-h)); bottom: calc(var(--safe-b) + var(--hub-bottom-h)); }
.hub-bar-on .screen-head .currencies { display: none; }
.hub-bar-on .vignette::after { top: var(--hub-bar-h); }

/* ------------------------------------------------------------ the hub screen */
.screen-menu.hub { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; padding: 14px; overflow: hidden; }
.hub-main { min-width: 0; min-height: 0; overflow-y: auto; padding-right: 4px; }
.hub-social { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }
.hub-side .h2 { margin-bottom: 6px; }
.hub-side .btn.block { margin-top: 8px; }
.hub-version { margin-top: auto; text-align: right; }

/* Home: the featured banner */
.hub-home { display: flex; flex-direction: column; gap: 14px; }
.hub-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: center; min-height: 240px; padding: 22px 24px;
  background: radial-gradient(ellipse at 80% 40%, rgba(200, 105, 46, 0.28), transparent 60%), linear-gradient(135deg, rgba(29, 23, 36, 0.96), rgba(18, 14, 22, 0.92)); }
.hub-kicker { font-size: var(--fs-xs); letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.hub-title { margin: 0 0 8px; font-family: var(--font-title); font-size: clamp(18px, 2.4vw, 28px); line-height: 1.2; color: var(--copper-hi); text-shadow: 0 3px 0 var(--copper-dk); }
.hub-sub { margin: 0 0 16px; color: var(--text); max-width: 56ch; }
.hub-cta { min-width: 180px; }
.hub-hero-art { text-align: center; }
.hub-faces { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.hub-faces canvas { width: 76px; height: 76px; image-rendering: pixelated; background: radial-gradient(circle at 50% 38%, #3e3448, #1d1724 75%); border: 3px solid #000; box-shadow: 0 0 0 2px var(--copper-dk); }
.hub-faces canvas:nth-child(odd) { transform: translateY(-8px); }

/* Home: today's cards */
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hub-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 130px; padding: 12px 14px; text-align: left; color: var(--text); font: inherit; }
button.hub-card { cursor: pointer; }
button.hub-card:hover, button.hub-card:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--gold), 0 8px 16px rgba(0, 0, 0, 0.4); }
.hub-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--teal); text-transform: uppercase; letter-spacing: 1px; font-size: var(--fs-xs); }
.hub-card-head img, .hub-card-head canvas { width: 20px; height: 20px; image-rendering: pixelated; }
.hub-big { font-family: var(--font-num); font-size: 34px; line-height: 1; }
.hub-quest { width: 100%; }
.hub-card .btn { margin-top: auto; }

/* Play: the lobby */
.hub-lobby { display: flex; flex-direction: column; gap: 8px; }
.hub-kind { align-self: flex-start; margin: 10px 0 2px; padding: 3px 10px; font-size: var(--fs-xs); letter-spacing: 2px; text-transform: uppercase; color: var(--teal);
  background: rgba(18, 14, 22, 0.88); border: 2px solid #000; border-left: 4px solid var(--teal); }
.hub-lobby > .row .hub-title { padding: 2px 12px; background: rgba(18, 14, 22, 0.8); border: 2px solid #000; }
.hub-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.hub-mode { position: relative; display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 12px 14px; text-align: left; color: var(--text); font: inherit; cursor: pointer;
  border-left: 5px solid var(--copper); transition: transform 0.1s, box-shadow 0.1s; }
.hub-mode.adventure { border-left-color: var(--team-red); }
.hub-mode.daily { border-left-color: var(--gold); }
.hub-mode.learn { border-left-color: var(--teal); }
.hub-mode:hover, .hub-mode:focus-visible { transform: translateX(3px); box-shadow: 0 0 0 2px var(--gold), 0 8px 16px rgba(0, 0, 0, 0.4); outline: none; }
.hub-mode-ico { flex-shrink: 0; width: 52px; height: 52px; display: grid; place-items: center; background: #120e16; border: 2px solid #000; box-shadow: inset 0 0 0 2px rgba(255, 246, 220, 0.08); }
.hub-mode-ico canvas, .hub-mode-ico img { width: 34px; height: 34px; image-rendering: pixelated; }
.hub-mode-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hub-mode-text b { font-size: var(--fs-sm, 14px); color: var(--copper-hi); text-transform: uppercase; letter-spacing: 1px; }
.hub-mode-text small { font-size: 12px; line-height: 1.3; color: var(--muted); }
.hub-mode.mode-closed { filter: grayscale(0.8) brightness(0.7); }

/* ------------------------------------------------------------ narrower screens */
@media (max-width: 1500px) {
  .hub-brand { display: none; }
}
@media (max-width: 1280px) {
  .hub-tab .lbl { display: none; }
  .hub-tab { padding: 0 12px; }
}
@media (max-width: 1100px) {
  .screen-menu.hub { grid-template-columns: minmax(0, 1fr); }
  .hub-social { display: none; }
}
.hub-bottom { display: none; }
@media (max-width: 760px) {
  :root { --hub-bar-h: 52px; --hub-bottom-h: 64px; }
  .hub-tabs, .hub-tools > :not(:last-child):not(.nc-bell), .hub-me .hub-who, .hub-me .hub-xp { display: none; }
  .hub-me { min-width: 0; width: 46px; padding: 3px; grid-template-columns: 40px; }
  .hub-play { display: none; }
  .hub-bar { gap: 6px; }
  .hub-bar .currencies .cur { padding: 2px 6px; }
  .hub-bottom {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--hub-bottom-h) + var(--safe-b)); padding: 0 6px var(--safe-b);
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 2px;
    background: linear-gradient(0deg, rgba(18, 14, 22, 0.98), rgba(29, 23, 36, 0.95)); border-top: 3px solid #000; box-shadow: 0 -2px 0 var(--copper-dk);
  }
  .hub-btab { flex-direction: column; gap: 2px; height: 58px; min-height: 0; padding: 4px 2px; border: 0; background: none; box-shadow: none; color: var(--muted); font-size: 10px; }
  .hub-btab.on { color: var(--gold); }
  .hub-bplay { flex-direction: column; gap: 2px; height: 70px; margin-bottom: 4px; padding: 4px; font-family: var(--font-title); font-size: 10px; letter-spacing: 1px; color: #241405;
    background: linear-gradient(180deg, var(--copper-hi), var(--copper)); border: 3px solid #000; border-radius: 50% 50% 8px 8px; box-shadow: inset 0 -4px 0 var(--copper-dk); }
  .hub-bplay.on { background: linear-gradient(180deg, #ffe48a, var(--gold)); }
  .screen-menu.hub { padding: 10px; }
  .hub-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 16px; }
  .hub-faces canvas { width: 52px; height: 52px; }
  .hub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-modes { grid-template-columns: minmax(0, 1fr); }
  .hub-mode { min-height: 62px; padding: 8px 10px; }
  .hub-mode-ico { width: 42px; height: 42px; }
  .hub-mode-ico canvas, .hub-mode-ico img { width: 28px; height: 28px; }
  .hub-bar-on .patrol-widget { bottom: calc(var(--hub-bottom-h) + 10px); }
}
/* windows open above the client bar (their titles were under it) */
.hub-ui #layer-modal { z-index: 42; }

/* styles/hub3.css */
/* The hub, take 3 (index.html, src/ui/hub3/): on top of hub.css. A fuller Home and a simpler Play,
   the game's own look (panels, copper, teal). */

/* Play has no social column: the lobby takes the whole width */
.screen-menu.hub3.h3-playing { grid-template-columns: minmax(0, 1fr); }
.screen-menu.hub3.h3-playing .hub-social { display: none; }

/* ------------------------------------------------------------ Home */
.h3-home { gap: 10px; }
/* your corner: who you are on the left, your best champion and your mascot on a little stage */
.h3-corner { min-height: 0; padding: 18px 22px; }
.h3-who { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.h3-who .chip.gold { color: var(--gold); }
.h3-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; max-width: 520px; }
.h3-bars small { display: block; margin-bottom: 2px; font-size: 11px; }
.h3-stage { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(63, 224, 184, 0.14), transparent 65%); }
/* the showcase: sharp pixels (its size is set from the screen's own pixels; no filters) */
.h3-showcase-wrap { width: 100%; display: flex; justify-content: center; }
.h3-showcase { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.h3-names { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; text-align: center; }
.h3-name { display: flex; flex-direction: column; align-items: center; gap: 1px; max-width: 170px; }
.h3-name small { font-size: 11px; color: var(--muted); }
.h3-name b { font-size: var(--fs-xs); }
.h3-name .teal { line-height: 1.2; }

/* pick up where you left off */
.h3-continue { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.h3-cont { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 12px; text-align: left; color: var(--text); font: inherit; cursor: pointer;
  border-left: 5px solid var(--teal); transition: transform 0.1s, box-shadow 0.1s; }
.h3-cont:hover, .h3-cont:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--gold), 0 8px 16px rgba(0, 0, 0, 0.4); outline: none; }
.h3-cont.hot { border-left-color: var(--gold); }
.h3-cont.empty { cursor: default; justify-content: center; }
.h3-cont .hub-mode-ico { width: 48px; height: 48px; }
.h3-cont-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.h3-cont-text b { font-size: var(--fs-xs); color: var(--copper-hi); text-transform: uppercase; letter-spacing: 1px; }
.h3-cont-text small { font-size: 12px; color: var(--text); }
.h3-cont-text .bar { height: 8px; margin-top: 2px; }
.h3-cta { flex-shrink: 0; font-size: var(--fs-xs); color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }

/* this week | today */
.h3-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; margin-top: 4px; }
.h3-week, .h3-today { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.h3-week .hub-card-head, .h3-today .hub-card-head { width: 100%; }
.h3-event { padding: 4px 8px; color: #241405; font-weight: 700; background: linear-gradient(180deg, #ffe48a, var(--gold)); border: 2px solid #000; }
.h3-evg, .h3-linkline, .h3-quests { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; text-align: left; font: inherit; color: var(--text);
  background: rgba(18, 14, 22, 0.6); border: 2px solid #000; cursor: pointer; }
.h3-evg { color: var(--copper-hi); }
.h3-evg span:nth-child(2) { flex: 1; }
.h3-evg:hover, .h3-linkline:hover, .h3-quests:hover { box-shadow: 0 0 0 2px var(--gold); }
.h3-faces { display: flex; gap: 6px; flex-wrap: wrap; }
.h3-faces canvas { width: 56px; height: 56px; image-rendering: pixelated; background: radial-gradient(circle at 50% 38%, #3e3448, #1d1724 75%); border: 2px solid #000; box-shadow: 0 0 0 2px var(--copper-dk); }
.h3-line { display: flex; align-items: center; gap: 8px; }
.h3-line img, .h3-line canvas, .h3-evg img, .h3-evg canvas { width: 18px; height: 18px; image-rendering: pixelated; }
.h3-quests { flex-direction: column; align-items: stretch; gap: 6px; }
.h3-weekbar { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; padding-top: 6px; border-top: 1px solid var(--line); }
.h3-weekbar .bar { height: 8px; }

/* ------------------------------------------------------------ Play */
.h3-lobby { gap: 8px; }
.h3-tiles { display: grid; gap: 12px; }
.h3-tiles.versus { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.h3-tiles.adventure { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.h3-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 196px; padding: 18px 14px 14px; text-align: center; color: var(--text); font: inherit; cursor: pointer;
  border-top: 5px solid var(--copper); transition: transform 0.1s, box-shadow 0.1s; }
.h3-tile.adventure { border-top-color: var(--team-red); }
.h3-tile:hover, .h3-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--gold), 0 10px 20px rgba(0, 0, 0, 0.45); outline: none; }
.h3-tile-ico { width: 76px; height: 76px; display: grid; place-items: center; background: #120e16; border: 2px solid #000; box-shadow: inset 0 0 0 2px rgba(255, 246, 220, 0.08); }
.h3-tile-ico canvas, .h3-tile-ico img { width: 48px; height: 48px; image-rendering: pixelated; }
/* the new art: the place's thumbnail across the top, the icon over its lower edge */
.h3-tile.has-thumb { padding-top: 0; overflow: hidden; }
.h3-thumb { display: block; width: calc(100% + 28px); margin: 0 -14px; aspect-ratio: 16 / 7; object-fit: cover; border-bottom: 2px solid #000; image-rendering: pixelated; }
.h3-tile.has-thumb .h3-tile-ico { position: relative; margin-top: -38px; }
.h3-tile b { font-size: var(--fs-s); color: var(--copper-hi); text-transform: uppercase; letter-spacing: 1px; }
.h3-tile small { font-size: 12px; line-height: 1.3; color: var(--muted); max-width: 30ch; }
.h3-status { margin-top: auto; padding: 2px 8px; font-size: 11px; color: var(--gold); background: rgba(18, 14, 22, 0.8); border: 1px solid var(--copper-dk); }
.h3-quick { margin-top: auto; }
.h3-status + .h3-quick { margin-top: 4px; }
.h3-tile.mode-closed { filter: grayscale(0.8) brightness(0.7); }
.h3-extras { display: flex; flex-wrap: wrap; gap: 8px; }
.h3-extra { position: relative; }

/* ------------------------------------------------------------ narrower screens */
@media (max-width: 1280px) {
  .h3-tiles.adventure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .h3-row { grid-template-columns: minmax(0, 1fr); }
  .h3-corner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .h3-bars { grid-template-columns: minmax(0, 1fr); }
  .h3-tiles.versus, .h3-tiles.adventure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h3-tile { min-height: 0; padding: 12px 8px 10px; }
  .h3-tile small { display: none; }
  .h3-tile-ico { width: 56px; height: 56px; }
  .h3-tile-ico canvas, .h3-tile-ico img { width: 36px; height: 36px; }
  .h3-thumb { width: calc(100% + 16px); margin: 0 -8px; }
  .h3-tile.has-thumb .h3-tile-ico { margin-top: -28px; }
}
/* the Tutorial's "!" sits clear of its label */
.h3-extra.badge { padding-right: 30px; }
@media (max-width: 760px) {
  /* phones: PLAY is in the bottom bar already */
  .h3-corner .hub-cta { display: none; }
}

/* styles/ui3.css */
/* The interface, take 3 (index.html only: <html class="ui3">, set by src/hub3.js). Every screen in one
   window under the client bar, the city dimmed around it; a compact head (icon, title, back) over a strip
   of underlined tabs; lighter panels, buttons and cards in one set of bevels and colours, the same family
   as the new Home and Play.  */

.ui3 {
  --v3-bg: #15111a;
  --v3-win: rgba(21, 17, 26, 0.97);
  --v3-panel: #201a27;
  --v3-panel-2: #2a2232;
  --v3-panel-3: #342a3d;
  --v3-edge: #000;
  --v3-rim: rgba(200, 105, 46, 0.55);
  --v3-rim-soft: rgba(255, 246, 220, 0.08);
  --v3-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  --v3-radius: 0px;
}

/* ------------------------------------------------------------------ the window */
.ui3 #app > .screen.win {
  top: calc(var(--safe-t) + var(--hub-bar-h) + 12px);
  bottom: calc(var(--safe-b) + var(--hub-bottom-h) + 12px);
  left: 0;
  right: 0;
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  background: var(--v3-win);
  border: 3px solid var(--v3-edge);
  box-shadow: inset 0 0 0 1px var(--v3-rim), 0 0 0 100vmax rgba(8, 6, 12, 0.5), 0 16px 44px rgba(0, 0, 0, 0.6);
}
@media (max-width: 760px) {
  .ui3 #app > .screen.win { width: 100%; top: calc(var(--safe-t) + var(--hub-bar-h)); bottom: calc(var(--safe-b) + var(--hub-bottom-h)); border-width: 0; box-shadow: none; }
}

/* ------------------------------------------------------------------ the head: back, title, (its own buttons) */
.ui3 .screen.win > .screen-head {
  min-height: 0;
  padding: 12px 22px 10px;
  gap: 12px;
  background: linear-gradient(180deg, rgba(52, 38, 50, 0.9), rgba(30, 23, 36, 0.9));
  border-bottom: 1px solid #000;
  box-shadow: 0 1px 0 var(--v3-rim);
}
.ui3 .screen-head .title {
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--copper-hi);
  text-shadow: 0 3px 0 var(--copper-dk), 0 0 14px rgba(240, 161, 74, 0.18);
}
.ui3 .screen-head > .btn.icon:first-child {
  min-width: 36px; min-height: 36px; width: 36px; height: 36px; padding: 0;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--v3-rim); box-shadow: none;
}
.ui3 .screen-head > .btn.icon:first-child [data-hint] { display: none; }
.ui3 .screen-head > .btn.icon:first-child:hover { background: rgba(240, 161, 74, 0.15); }
.ui3 .screen-body { padding: 14px 26px 26px; }
@media (max-width: 760px) {
  .ui3 .screen.win > .screen-head { padding: 8px 12px; }
  .ui3 .screen-head .title { font-size: 15px; }
  .ui3 .screen-body { padding: 10px 12px 18px; }
}

/* ------------------------------------------------------------------ tabs: an underlined strip */
.ui3 .tabs {
  justify-content: flex-start;
  gap: 0;
  border-bottom: 1px solid rgba(255, 246, 220, 0.1);
  margin-bottom: 14px;
}
.ui3 .tabs .btn {
  min-height: 40px;
  padding: 4px 16px;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  box-shadow: none;
  text-shadow: none;
}
.ui3 .tabs .btn:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.04); filter: none; }
.ui3 .tabs .btn.on { color: var(--gold); border-bottom-color: var(--gold); background: linear-gradient(0deg, rgba(245, 197, 66, 0.12), transparent); filter: none; }
.ui3 .tabs .btn.on::after { display: none; }
.ui3 .tabs .btn canvas, .ui3 .tabs .btn img { opacity: 0.75; }
.ui3 .tabs .btn.on canvas, .ui3 .tabs .btn.on img { opacity: 1; }
.ui3 .tabs .kbd, .ui3 .tabs > .hint { opacity: 0.55; }

/* ------------------------------------------------------------------ panels */
.ui3 .panel {
  background: linear-gradient(180deg, var(--v3-panel-2), var(--v3-panel));
  border: 2px solid var(--v3-edge);
  border-image: none;
  box-shadow: inset 0 0 0 1px var(--v3-rim), inset 0 1px 0 rgba(255, 246, 220, 0.06), var(--v3-shadow);
  padding: 12px 14px;
}
.ui3 .panel.flat { box-shadow: inset 0 0 0 1px var(--v3-rim-soft); background: var(--v3-panel); }
.ui3 .panel.inset { background: #120e17; border: 2px solid #000; border-image: none; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 246, 220, 0.04); }
.ui3 .panel > .tab { border: 2px solid #000; border-image: none; background: var(--v3-panel-3); box-shadow: inset 0 0 0 1px var(--v3-rim); }
.ui3 .h2 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }

/* ------------------------------------------------------------------ buttons: a bevel, one look */
.ui3 .btn {
  min-height: 40px;
  padding: 6px 16px;
  background: linear-gradient(180deg, #3d3247, #2a2232);
  border: 2px solid #000;
  border-image: none;
  box-shadow: inset 0 1px 0 rgba(255, 246, 220, 0.14), inset 0 -3px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(200, 105, 46, 0.35);
}
.ui3 .btn:hover:not(:disabled) { filter: brightness(1.15); }
.ui3 .btn.primary {
  background: linear-gradient(180deg, #d8463e, #9c2229);
  box-shadow: inset 0 1px 0 rgba(255, 220, 200, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.ui3 .btn.teal { color: var(--teal-hi); box-shadow: inset 0 1px 0 rgba(255, 246, 220, 0.14), inset 0 -3px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(63, 224, 184, 0.45); }
.ui3 .btn.small { min-height: 32px; padding: 2px 10px; }
.ui3 .btn.big { min-height: 54px; padding: 8px 26px; }
.ui3 .btn.link { background: none; border: 0; box-shadow: none; }
.ui3 .btn.selected { box-shadow: 0 0 0 2px var(--teal), 0 0 14px rgba(63, 224, 184, 0.45); }

/* ------------------------------------------------------------------ cards (champions, mascots, skins...) */
.ui3 .card {
  border: 2px solid #000;
  border-image: none;
  background: radial-gradient(ellipse at 50% 34%, #3d3249 0, #2a2232 46%, #1e1826 100%);
  box-shadow: inset 0 0 0 1px var(--v3-rim), inset 0 1px 0 rgba(255, 246, 220, 0.07), 0 4px 10px rgba(0, 0, 0, 0.4);
  padding: 10px 6px 8px;
  transition: transform 0.1s, box-shadow 0.1s;
}
.ui3 .card:hover { transform: translateY(-2px); filter: none; box-shadow: inset 0 0 0 1px var(--copper-hi), 0 0 0 1px rgba(240, 161, 74, 0.5), 0 8px 16px rgba(0, 0, 0, 0.5); }
.ui3 .card .name { margin-top: 2px; }
.ui3 .card.locked { filter: grayscale(1) brightness(0.5); }
.ui3 .card.locked:hover { transform: none; }

/* ------------------------------------------------------------------ inputs, chips, windows, tooltips */
.ui3 .input, .ui3 select.input { background: #120e17; border: 2px solid #000; border-image: none; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.08), inset 0 2px 4px rgba(0, 0, 0, 0.5); }
.ui3 .chip { border-radius: 0; }
.ui3 .modal {
  background: linear-gradient(180deg, #2a2232, #1c1723);
  border: 3px solid #000;
  border-image: none;
  box-shadow: inset 0 0 0 1px var(--v3-rim), 0 18px 48px rgba(0, 0, 0, 0.65);
}
.ui3 .modal::before, .ui3 .modal::after { display: none; }
.ui3 #tooltip {
  border: 2px solid #000;
  border-image: none;
  background: rgba(24, 19, 30, 0.97);
  box-shadow: inset 0 0 0 1px var(--v3-rim), 0 8px 20px rgba(0, 0, 0, 0.55);
}
/* the client bar: a little calmer, a copper hairline under it */
.ui3 .hub-bar { box-shadow: 0 1px 0 var(--v3-rim), 0 8px 18px rgba(0, 0, 0, 0.45); border-bottom: 2px solid #000; }

/* ================================================================== the client bar */
.ui3 .hub-bar { background: linear-gradient(180deg, #1c1622, #141018); }
.ui3 .hub-tab, .ui3 .hub-btab {
  background: none; border: 0; box-shadow: none; text-shadow: none;
  border-bottom: 3px solid transparent; min-height: 0;
}
.ui3 .hub-tab { height: 100%; padding: 0 14px; }
.ui3 .hub-tab:hover:not(:disabled) { background: rgba(255, 255, 255, 0.05); filter: none; }
.ui3 .hub-tab.on { color: var(--gold); border-bottom-color: var(--gold); background: linear-gradient(0deg, rgba(245, 197, 66, 0.14), transparent); }
/* PLAY: the gold angled button */
.ui3 .hub-play {
  min-height: 0; height: 42px; padding: 0 26px;
  color: #241405; text-shadow: 0 1px 0 rgba(255, 240, 200, 0.5);
  background: linear-gradient(180deg, #ffe08a 0%, #f0a14a 55%, #c8692e 100%);
  border: 2px solid #000;
  box-shadow: inset 0 2px 0 rgba(255, 250, 230, 0.7), inset 0 -4px 0 rgba(122, 58, 28, 0.6);
}
.ui3 .hub-play:hover:not(:disabled) { filter: brightness(1.1); }
.ui3 .hub-play.on { background: linear-gradient(180deg, #fff1b8, #f5c542 60%, #c98f2a); }
.ui3 .hub-bplay {
  background: linear-gradient(180deg, #ffe08a, #f0a14a 55%, #c8692e); border: 2px solid #000;
  box-shadow: inset 0 2px 0 rgba(255, 250, 230, 0.7), inset 0 -4px 0 rgba(122, 58, 28, 0.6);
}
.ui3 .hub-tools .btn { min-width: 34px; min-height: 34px; padding: 2px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--v3-rim); box-shadow: none; }
.ui3 .hub-me { background: linear-gradient(180deg, #2a2232, #1c1723); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--v3-rim); }
.ui3 .hub-bar .currencies .cur { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 246, 220, 0.1); box-shadow: none; }

/* ================================================================== champion select (draft, Fast) */
.ui3 .dr-head, .ui3 .dr-choice-bar {
  background: linear-gradient(180deg, rgba(52, 38, 50, 0.95), rgba(28, 22, 34, 0.95));
  border: 2px solid #000; border-image: none;
}
.ui3 .dr-title .t { font-size: 13px; letter-spacing: 1px; }
.ui3 .dr-steps { border-width: 1px; background: rgba(0, 0, 0, 0.4); }
.ui3 .dr-team { background: linear-gradient(180deg, var(--v3-panel-2), var(--v3-panel)); }
.ui3 .dr-team.p0 { box-shadow: inset 0 3px 0 var(--blue), inset 0 0 0 1px rgba(76, 134, 240, 0.35), var(--v3-shadow); }
.ui3 .dr-team.p1 { box-shadow: inset 0 3px 0 var(--team-red), inset 0 0 0 1px rgba(224, 74, 62, 0.35), var(--v3-shadow); }
.ui3 .dr-team-head b { font-family: var(--font-title); font-size: 11px; letter-spacing: 1px; }
.ui3 .dr-slot { background: #120e17; border: 1px dashed rgba(255, 246, 220, 0.15); }
.ui3 .dr-slot.filled { border: 2px solid #000; background: radial-gradient(circle at 50% 36%, #43374f, #1d1724 74%); box-shadow: inset 0 0 0 1px var(--v3-rim); }
.ui3 .dr-team.p0 .dr-slot.filled { box-shadow: inset 0 -3px 0 rgba(76, 134, 240, 0.7), inset 0 0 0 1px rgba(76, 134, 240, 0.4); }
.ui3 .dr-team.p1 .dr-slot.filled { box-shadow: inset 0 -3px 0 rgba(224, 74, 62, 0.7), inset 0 0 0 1px rgba(224, 74, 62, 0.4); }
/* the pool's tiles: a plinth for the portrait, the name under it */
.ui3 .champ-tile {
  border: 2px solid #000; border-image: none;
  background: linear-gradient(180deg, #2e2638, #201a27);
  box-shadow: inset 0 0 0 1px var(--v3-rim-soft), 0 3px 8px rgba(0, 0, 0, 0.4);
  padding: 8px 4px 6px;
}
.ui3 .champ-tile:not(.disabled):hover { box-shadow: inset 0 0 0 1px var(--copper-hi), 0 6px 14px rgba(0, 0, 0, 0.5); filter: none; }
.ui3 .ct-icon { border: 0; background: radial-gradient(ellipse at 50% 60%, #4a3d58 0, #2a2232 62%, transparent 72%); box-shadow: none; }
.ui3 .ct-tier { border: 1px solid #000; background: #2a2232; box-shadow: inset 0 0 0 1px var(--v3-rim); }
.ui3 .champ-tile.chosen { box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(245, 197, 66, 0.45); }
.ui3 .pool, .ui3 .dr-pool { background: rgba(14, 11, 18, 0.6); }

/* ================================================================== the battle: rosters, action bar, chronicle */
.ui3 .battle:not(.narrow) .roster {
  background: linear-gradient(180deg, rgba(34, 27, 42, 0.94), rgba(20, 16, 26, 0.94));
  border: 2px solid #000; border-top: 3px solid var(--line);
  box-shadow: inset 0 0 0 1px var(--v3-rim-soft), var(--v3-shadow);
}
.ui3 .battle:not(.narrow) .roster.p0 { border-top-color: var(--blue); }
.ui3 .battle:not(.narrow) .roster.p1 { border-top-color: var(--team-red); }
.ui3 .roster-hero { background: rgba(10, 8, 14, 0.55); border: 1px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.06); }
.ui3 .roster-hero:hover { box-shadow: inset 0 0 0 1px var(--copper-hi); }
.ui3 .action-bar:not(:empty) {
  background: linear-gradient(180deg, #2a2232, #1c1723); border: 2px solid #000; border-image: none;
  box-shadow: inset 0 0 0 1px var(--v3-rim), 0 10px 24px rgba(0, 0, 0, 0.55);
}
.ui3 .chronicle { border-image: none; }
.ui3 .chronicle.panel, .ui3 .panel.chronicle { background: linear-gradient(180deg, rgba(34, 27, 42, 0.95), rgba(20, 16, 26, 0.95)); }

/* ================================================================== results */
.ui3 .screen-results .title { letter-spacing: 3px; }

/* ================================================================== the Inventory: grid | panel */
.ui3 .inv { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.ui3 .inv-grid { grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); gap: 8px; }
.ui3 .inv-grid .card { padding: 8px 4px 6px; }
.ui3 .inv-grid .card .name { font-size: 12px; }
.ui3 .inv-grid .card .sub { font-size: 10px; }
.ui3 .inv-detail { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.ui3 .inv-hero { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center; }
.ui3 .inv-pic { width: 128px; height: 128px; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 70%, rgba(63, 224, 184, 0.16), transparent 62%), radial-gradient(circle at 50% 42%, #43374f, #1d1724 72%);
  border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--v3-rim); }
.ui3 .inv-pic canvas { width: 128px; height: 128px; image-rendering: pixelated; }
.ui3 .inv-pic.holo { box-shadow: inset 0 0 0 1px #c8a0ff, 0 0 14px rgba(200, 160, 255, 0.45); }
.ui3 .inv-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ui3 .inv-name { font-family: var(--font-title); font-size: 16px; color: var(--copper-hi); text-shadow: 0 2px 0 var(--copper-dk); }
.ui3 .inv-stats { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.ui3 .inv-stats > span { display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 3px 8px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 246, 220, 0.08); }
.ui3 .inv-stats small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.ui3 .inv-stats b.num { font-size: 22px; }
.ui3 .inv-bar { display: flex; flex-direction: column; gap: 2px; }
.ui3 .inv-tabs { margin: 4px 0 0; }
.ui3 .inv-tabs .btn { padding: 4px 10px; }
/* the paper doll: three gear slots */
.ui3 .inv-doll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ui3 .inv-slot { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px 8px; text-align: center; font: inherit; color: var(--text); cursor: pointer;
  background: linear-gradient(180deg, #2e2638, #1d1724); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--v3-rim-soft); }
.ui3 .inv-slot:hover { box-shadow: inset 0 0 0 1px var(--copper-hi); }
.ui3 .inv-slot.on { box-shadow: 0 0 0 2px var(--gold), inset 0 0 0 1px var(--gold); }
.ui3 .inv-slot-ico { width: 52px; height: 52px; display: grid; place-items: center; background: #120e17; border: 1px solid #000; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6); }
.ui3 .inv-slot-ico canvas, .ui3 .inv-slot-ico img { width: 40px; height: 40px; image-rendering: pixelated; }
.ui3 .inv-plus { font-size: 22px; color: var(--muted); }
.ui3 .inv-slot b { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui3 .inv-fits { max-height: 280px; overflow-y: auto; }
.ui3 .inv-fits .list-item.on { box-shadow: inset 0 0 0 1px var(--gold); }
@media (max-width: 900px) {
  .ui3 .inv { grid-template-columns: minmax(0, 1fr); }
  .ui3 .inv-detail { position: static; }
}
/* the numbers with their items' bonus; the gear's effects under them */
.ui3 .inv-buff { font-style: normal; font-size: 11px; color: var(--good); cursor: help; border-bottom: 1px dotted rgba(95, 208, 104, 0.6); }
.ui3 .inv-gearfx { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 246, 220, 0.07); }
.ui3 .inv-gearfx canvas, .ui3 .inv-gearfx img { width: 18px; height: 18px; image-rendering: pixelated; }
.ui3 .inv-stats > span.inv-reach { align-items: flex-start; gap: 4px; flex: 1 1 100%; }
.ui3 .inv-reach .reach-grid { grid-template-columns: repeat(3, 12px); }
.ui3 .inv-reach .reach-grid i { width: 12px; height: 12px; }

/* ================================================================== widths, sections */
.ui3 .max-s { max-width: 820px; }
.ui3 .max-m { max-width: 980px; }
/* a panel's tab: a heading inside it, not a label floating on its edge */
.ui3 .panel.has-tab { margin-top: 0; padding-top: 12px; }
.ui3 .panel > .tab {
  position: static; transform: none; display: inline-block; align-self: flex-start;
  margin: 0 0 8px; padding: 2px 10px 2px 8px;
  font-family: var(--font-title); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--teal);
  background: none; border: 0; border-left: 3px solid var(--teal); box-shadow: none;
  white-space: normal; max-width: 100%; overflow-wrap: anywhere; /* (a long title wraps instead of running off a phone) */
}
/* lists and rows */
.ui3 .list-item { background: linear-gradient(180deg, #2a2232, #211b28); border: 2px solid #000; border-image: none; box-shadow: inset 0 0 0 1px var(--v3-rim-soft); }
.ui3 .list-item:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--copper-hi); }
/* the toggles and sliders of Settings */
.ui3 .toggle { background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 246, 220, 0.08); border-image: none; box-shadow: none; }
.ui3 .toggle:hover { background: rgba(255, 255, 255, 0.04); }
/* currencies in a head (the bar has them already) */
.ui3 .screen.win .screen-head .currencies { display: none; }

/* ================================================================== a window with no bar above it (results, a game's own screens) */
.ui3:not(.hub-bar-on) #app > .screen.win { top: calc(var(--safe-t) + 12px); bottom: calc(var(--safe-b) + 12px); }
/* (phones: the whole screen, top to bottom, its content clear of the notch and the home bar) */
@media (max-width: 760px) {
  .ui3:not(.hub-bar-on) #app > .screen.win { top: 0; bottom: 0; padding-top: var(--safe-t); padding-bottom: var(--safe-b); }
}

/* ================================================================== Profile: the playercard as the page's hero */
.ui3 .screen-profile .playercard { max-width: none; width: 100%; aspect-ratio: auto; height: 150px; box-shadow: inset 0 0 0 1px var(--v3-rim), 0 8px 20px rgba(0, 0, 0, 0.45); }
.ui3 .screen-profile .playercard .pc-emblem, .ui3 .screen-profile .playercard .pc-frame { left: 24px; top: 15px; height: 120px; }
.ui3 .screen-profile .playercard .pc-text { left: 170px; right: 160px; }
.ui3 .screen-profile .playercard .pc-name { font-size: 22px; }
.ui3 .screen-profile .playercard .pc-sub { font-size: 14px; }
.ui3 .screen-profile .playercard .pc-rank { right: 24px; top: 15px; height: 120px; }
@media (max-width: 760px) {
  .ui3 .screen-profile .playercard { height: 96px; }
  .ui3 .screen-profile .playercard .pc-emblem, .ui3 .screen-profile .playercard .pc-frame, .ui3 .screen-profile .playercard .pc-rank { height: 72px; top: 12px; left: 10px; }
  .ui3 .screen-profile .playercard .pc-rank { left: auto; right: 10px; }
  .ui3 .screen-profile .playercard .pc-text { left: 92px; right: 88px; }
  .ui3 .screen-profile .playercard .pc-name { font-size: 14px; }
}

/* ================================================================== results */
.ui3 .screen-results .title { font-size: 40px; letter-spacing: 4px; }

/* ================================================================== the Shop: product tiles */
.ui3 .screen-shop .panel { transition: transform 0.1s, box-shadow 0.1s; }
.ui3 .screen-shop .grid .panel:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--copper-hi), 0 10px 22px rgba(0, 0, 0, 0.5); }
.ui3 .screen-shop .btn.small { min-width: 70px; }

/* ================================================================== phones: the bottom bar as a box of square buttons
   (like the battle's action bar): each tab a framed square, its icon and its name inside; PLAY a gold square.
   The bar sits flush on the screen's sides and bottom (down through the phone's safe area), and the screens
   end where it starts, so nothing of the background shows around it. */
@media (max-width: 760px) {
  .ui3 { --hub-bottom-h: 74px; }
  .ui3 .hub-bottom {
    left: 0; right: 0; bottom: 0; height: auto; padding: 6px 6px calc(6px + var(--safe-b));
    grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 6px;
    background: linear-gradient(180deg, #2a2232, #1c1723);
    border: 0; border-top: 2px solid #000;
    box-shadow: inset 0 1px 0 var(--v3-rim), 0 -6px 18px rgba(0, 0, 0, 0.5);
  }
  .ui3 .hub-btab, .ui3 .hub-bplay {
    height: 60px; min-height: 0; margin: 0; padding: 4px 2px 3px;
    flex-direction: column; justify-content: center; gap: 3px;
    border-radius: 0; font-size: 10px; line-height: 1.1;
    border: 2px solid #000;
  }
  .ui3 .hub-btab {
    color: var(--text-2);
    background: linear-gradient(180deg, #3d3247, #2a2232);
    box-shadow: inset 0 1px 0 rgba(255, 246, 220, 0.14), inset 0 -3px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(200, 105, 46, 0.35);
  }
  .ui3 .hub-btab.on { color: var(--gold); box-shadow: 0 0 0 2px var(--gold), inset 0 0 0 1px var(--gold), inset 0 -3px 0 rgba(0, 0, 0, 0.35); }
  .ui3 .hub-btab canvas, .ui3 .hub-btab img { width: 22px; height: 22px; image-rendering: pixelated; }
  .ui3 .hub-btab .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* PLAY: a gold square, a little taller than the others */
  .ui3 .hub-bplay {
    height: 68px; margin-top: -8px;
    font-family: var(--font-title); font-size: 10px; letter-spacing: 1px; color: #241405;
    background: linear-gradient(180deg, #ffe08a 0%, #f0a14a 55%, #c8692e 100%);
    box-shadow: inset 0 2px 0 rgba(255, 250, 230, 0.7), inset 0 -4px 0 rgba(122, 58, 28, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.3);
  }
  .ui3 .hub-bplay.on { background: linear-gradient(180deg, #fff1b8, #f5c542 60%, #c98f2a); }
  .ui3 .hub-bplay canvas, .ui3 .hub-bplay img { width: 26px; height: 26px; }
}

/* ================================================================== the bar's player box: your calling card behind
   your picture, clan tag, name and level (as on your profile), the same sizes, the box wider to fit the card */
.ui3 .hub-me.with-banner {
  position: relative; overflow: hidden; isolation: isolate;
  width: 236px; min-width: 236px; max-width: 236px; height: 50px; padding: 4px 10px 4px 5px;
  grid-template-columns: 40px minmax(0, 1fr);
}
.ui3 .hub-me .hub-banner { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.ui3 .hub-me.with-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 8, 14, 0.55), rgba(10, 8, 14, 0.15) 70%); }
.ui3 .hub-me.with-banner .hub-pic { background: rgba(10, 8, 14, 0.55); }
.ui3 .hub-me.with-banner .hub-who b { color: #fff; text-shadow: 0 2px 0 #000, 0 0 4px #000; }
.ui3 .hub-me.with-banner .hub-who small { color: #e8dcc8; text-shadow: 0 1px 0 #000, 0 0 4px #000; }
.ui3 .hub-me .hub-clan { color: var(--gold); }
.ui3 .hub-me.with-banner .hub-xp { background: rgba(0, 0, 0, 0.6); }
@media (max-width: 760px) {
  /* phones: the avatar alone, no box around it */
  .ui3 .hub-me, .ui3 .hub-me.with-banner { width: 44px; min-width: 0; max-width: none; height: 44px; padding: 0; grid-template-columns: 44px; background: none; border: 0; box-shadow: none; }
  .ui3 .hub-me.with-banner .hub-banner, .ui3 .hub-me.with-banner::after { display: none; }
  .ui3 .hub-me .hub-pic, .ui3 .hub-me.with-banner .hub-pic { width: 44px; height: 44px; background: none; border: 0; }
  .ui3 .hub-me .hub-pic canvas { width: 40px; height: 40px; }
}
/* the medal on the right of the bar's player box (desktop), as on the profile's card */
.ui3 .hub-me.with-banner { width: 270px; min-width: 270px; max-width: 270px; grid-template-columns: 40px minmax(0, 1fr) 36px; }
.ui3 .hub-me .hub-medal { grid-column: 3; grid-row: 1 / 3; width: 36px; height: 36px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 #000); }
@media (max-width: 760px) { .ui3 .hub-me .hub-medal { display: none; } }
@media (max-width: 760px) {
  .ui3 .hub-me.with-banner { width: 44px; min-width: 0; max-width: none; grid-template-columns: 44px; }
}
/* the Inventory's items: tiles (picture, name, what it gives, ×count, a badge when worn) | the panel */
.ui3 .chip-btn.on { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
.ui3 .it-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ui3 .it-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 8px; text-align: center; font: inherit; color: var(--text); cursor: pointer;
  background: linear-gradient(180deg, #2e2638, #1d1724); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--v3-rim-soft); }
.ui3 .it-tile:hover { box-shadow: inset 0 0 0 1px var(--copper-hi); }
.ui3 .it-tile.r-rare { box-shadow: inset 0 0 0 1px var(--rarity-rare); }
.ui3 .it-tile.r-epic { box-shadow: inset 0 0 0 1px var(--rarity-epic); }
.ui3 .it-tile.r-legendary { box-shadow: inset 0 0 0 1px var(--rarity-legendary), 0 0 8px rgba(245, 166, 35, 0.25); }
.ui3 .it-tile.selected { box-shadow: 0 0 0 2px var(--gold), inset 0 0 0 1px var(--gold); }
.ui3 .it-pic { width: 56px; height: 56px; display: grid; place-items: center; background: #120e17; border: 1px solid #000; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6); }
.ui3 .it-pic canvas, .ui3 .it-pic img { width: 48px; height: 48px; image-rendering: pixelated; }
.ui3 .it-name { font-size: 12px; line-height: 1.2; }
.ui3 .it-perk { font-size: 10.5px; line-height: 1.25; color: var(--muted); }
.ui3 .it-eq { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; display: grid; place-items: center; cursor: help;
  background: #120e17; border: 1px solid var(--gold); border-radius: 50%; overflow: hidden; }
.ui3 .it-eq canvas, .ui3 .it-eq img { width: 18px; height: 18px; image-rendering: pixelated; }
.ui3 .inv-pic.it-big canvas, .ui3 .inv-pic.it-big img { width: 96px; height: 96px; }
.ui3 .it-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; }
.ui3 .it-champ { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font: inherit; color: var(--text); cursor: pointer;
  background: rgba(0, 0, 0, 0.25); border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--v3-rim-soft); }
.ui3 .it-champ:hover { box-shadow: inset 0 0 0 1px var(--copper-hi); }
.ui3 .it-champ.on { box-shadow: inset 0 0 0 2px var(--gold); }
.ui3 .it-champ small { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui3 .it-check { position: absolute; top: 2px; right: 4px; color: var(--gold); font-size: 12px; }
@media (max-width: 600px) { .ui3 .it-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); } }
.ui3 .it-head { font-family: var(--font-title); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--copper-hi); margin-top: 4px; }
/* the Shop's Crafting */
.ui3 .craft-head { align-items: center; margin-bottom: 10px; }
.ui3 .craft-funds { align-items: center; padding: 4px 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(200, 160, 255, 0.35); }
.ui3 .craft-funds b { font-size: 20px; color: #c8a0ff; }
.ui3 .craft-items .card { gap: 4px; }
.ui3 .craft-perk { font-size: 10.5px; line-height: 1.25; text-align: center; }

/* ================================================================== phones: the tabs as a burger menu, the patrol on top */
.tabs-burger { display: none; }
.tabs-menu { position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 2px; padding: 6px; max-height: 70vh; overflow-y: auto;
  background: linear-gradient(180deg, #2a2232, #1c1723); border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--v3-rim, rgba(200, 105, 46, 0.4)), 0 12px 28px rgba(0, 0, 0, 0.6); }
.tabs-menu-item { position: relative; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 12px; text-align: left; font: inherit; font-size: 14px; color: var(--text-2, #c7b9a8); background: none; border: 0; cursor: pointer; }
.tabs-menu-item canvas, .tabs-menu-item img { width: 20px; height: 20px; image-rendering: pixelated; }
.tabs-menu-item:hover, .tabs-menu-item:focus-visible { background: rgba(255, 246, 220, 0.06); outline: none; }
.tabs-menu-item.on { color: var(--gold); background: rgba(245, 197, 66, 0.08); box-shadow: inset 3px 0 0 var(--gold); }
.tabs-menu-item .tb-check { margin-left: auto; color: var(--gold); }
.tabs-menu-item.badge::after { top: 50%; right: 12px; transform: translateY(-50%); }
@media (max-width: 760px) {
  .ui3 .tabs > .btn, .ui3 .tabs > [data-hint] { display: none; }
  .ui3 .tabs { display: block; overflow: visible; }
  .ui3 .tabs-burger {
    position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 12px;
    font: inherit; font-size: 14px; color: var(--gold); cursor: pointer; text-align: left;
    background: linear-gradient(180deg, #3d3247, #2a2232); border: 2px solid #000;
    box-shadow: inset 0 1px 0 rgba(255, 246, 220, 0.14), inset 0 -3px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(200, 105, 46, 0.35);
  }
  .ui3 .tabs-burger canvas { width: 18px; height: 18px; image-rendering: pixelated; }
  .ui3 .tabs-burger .tb-ico { font-size: 18px; color: var(--text-2, #c7b9a8); }
  .ui3 .tabs-burger .tb-lbl { flex: 1; }
  .ui3 .tabs-burger .tb-caret { color: var(--text-2, #c7b9a8); }
  .ui3 .tabs-burger.badge::after { top: -6px; right: -6px; }

  /* the patrol: a strip under the top bar (head line, its HP bars when open), the screens below it */
  .ui3.hub-bar-on body > .patrol-widget {
    left: 6px; right: 6px; top: calc(var(--safe-t) + var(--hub-bar-h) + 6px); bottom: auto; width: auto; z-index: 39;
  }
  .ui3.hub-bar-on body > .patrol-widget .pw-stage { display: none; }
  .ui3.hub-bar-on.pw-strip #app > .screen { top: calc(var(--safe-t) + var(--hub-bar-h) + var(--pw-h, 92px)); }
  /* (html.pw-strip: ui/patrol-widget.js says it's a strip; no :has() here, suspected in an iPhone's crash on load. Neon's menu, Home and
     Play, pins itself under the bar with a rule as strong: it moves down for the strip too, or the strip lay over Play's
     tabs, your report) */
  .ui3.hub-bar-on.pw-strip #app > .screen.screen-menu.nx-menu { top: calc(var(--safe-t) + var(--hub-bar-h) + var(--pw-h, 92px)); }
}
.ui3 .it-grid { padding-top: 20px; row-gap: 26px; }
/* the count cards and the wearer lower in the tile: clear of its top border and of the EQUIPPED tag */
.ui3 .it-tile .it-stack { top: 16px; left: 8px; }
.ui3 .it-tile .it-eq { top: 14px; right: 8px; }
.ui3 .it-tile { padding-top: 16px; }
/* comparing two items */
.it-compare { padding: 8px 10px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 246, 220, 0.07); }
.it-cmp { width: 100%; border-collapse: collapse; }
.it-cmp th, .it-cmp td { padding: 4px 6px; text-align: center; border-bottom: 1px solid rgba(255, 246, 220, 0.06); }
.it-cmp td:first-child { text-align: left; color: var(--text-2, #c7b9a8); }
.it-cmp td.good { color: var(--good); font-weight: bold; }
.it-cmp-pic canvas { width: 32px; height: 32px; image-rendering: pixelated; }

/* the paper doll (the equipment preview): the champion in the middle, the weapon left, the trinket right, the armour below */
.ui3 .inv-doll.doll2 { position: relative; display: grid; grid-template-columns: 1fr 120px 1fr; grid-template-rows: auto auto; gap: 10px; justify-items: center; align-items: center;
  padding: 16px 10px; background: rgba(0, 0, 0, 0.25); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.06); }
.ui3 .doll2 .doll-champ { grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 120px; height: 120px;
  background: radial-gradient(circle at 50% 60%, rgba(245, 197, 66, 0.12), transparent 65%); }
.ui3 .doll2 .doll-champ canvas { width: 96px; height: 96px; image-rendering: pixelated; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6)); }
.ui3 .doll2 .inv-slot { width: 100%; max-width: 128px; }
.ui3 .doll2 .inv-slot.at-w { grid-column: 1; grid-row: 1; }
.ui3 .doll2 .inv-slot.at-t { grid-column: 3; grid-row: 1; }
.ui3 .doll2 .inv-slot.at-a { grid-column: 2; grid-row: 2; }
.ui3 .doll2 .inv-slot.full.q-rare { box-shadow: inset 0 0 0 2px var(--rarity-rare); }
.ui3 .doll2 .inv-slot.full.q-epic { box-shadow: inset 0 0 0 2px var(--rarity-epic); }
.ui3 .doll2 .inv-slot.full.q-legendary { box-shadow: inset 0 0 0 2px var(--rarity-legendary), 0 0 10px rgba(245, 166, 35, 0.35); }
.ui3 .doll2 .inv-slot.on { box-shadow: 0 0 0 2px var(--gold), inset 0 0 0 1px var(--gold); }
.doll-bonus { display: flex; flex-direction: column; gap: 0; padding: 10px 12px; background: rgba(0, 0, 0, 0.25); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.35); }
.doll-bonus-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255, 246, 220, 0.07); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.doll-bonus-row canvas { width: 18px; height: 18px; image-rendering: pixelated; }
.doll-bonus-row small { text-transform: none; letter-spacing: 0; }
/* the boosts (every item that fits the champion) */
.boost-sec { font-family: var(--font-title); font-size: 11px; letter-spacing: 3px; color: var(--teal); text-transform: uppercase; margin-top: 4px; }
.boost-sec.miss { color: var(--muted); }
.boost { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: rgba(0, 0, 0, 0.25); border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.07); }
.boost-head { display: flex; gap: 10px; align-items: center; }
.boost-pic { width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; background: #120e17; border: 2px solid #000; box-shadow: inset 0 0 0 1px rgba(255, 246, 220, 0.12); }
.boost-pic canvas { width: 40px; height: 40px; image-rendering: pixelated; }
.boost.missing .boost-pic canvas { filter: grayscale(1) brightness(0.7); }
.boost-tag { align-self: flex-start; padding: 2px 8px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; border: 1px solid; }
.boost-tag.miss { color: var(--muted); border-color: rgba(255, 246, 220, 0.25); }
.boost-tag.eq { color: var(--good); border-color: rgba(95, 208, 104, 0.6); background: rgba(95, 208, 104, 0.1); }
.boost-tag.own { color: var(--gold); border-color: rgba(245, 197, 66, 0.55); background: rgba(245, 197, 66, 0.08); }
.boost-perk { font-size: 12px; color: var(--good); }
.boost-perk::before { content: "✦ "; color: #fff1a0; }
.boost-how { font-family: var(--font-title); font-size: 10px; letter-spacing: 2px; color: #8cc0ff; text-transform: uppercase; }
.boost-src { display: flex; align-items: center; gap: 8px; }
.boost-src canvas { width: 20px; height: 20px; image-rendering: pixelated; }
.boost-locked { color: var(--muted); white-space: nowrap; }

/* ================================================================== the battle's HUD: the turn on a plate */
.ui3 .battle .turn-banner {
  flex: 0 1 auto; margin: 0 auto; padding: 6px 18px 5px; max-width: min(560px, 60vw);
  background: linear-gradient(180deg, rgba(42, 34, 50, 0.94), rgba(26, 21, 32, 0.94));
  border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--v3-rim), 0 6px 14px rgba(0, 0, 0, 0.45);
}
.ui3 .battle .turn-banner .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui3 .battle .turn-banner .gold { font-size: 10px; opacity: 0.85; }
.ui3 .narrow .hud-top { row-gap: 6px; }
.ui3 .narrow .hud-top .turn-banner { order: 10; flex: 1 1 100%; max-width: none; padding: 4px 10px; }
.ui3 .narrow .hud-top .turn-banner .t { font-size: 10px; line-height: 1.3; }
.ui3 .narrow .hud-top .turn-banner .gold { display: none; }

/* ================================================================== Patrol, Gauntlet, the emblem editor */
.ui3 .patrol-route, .ui3 .gx-card { font: inherit; color: var(--text); }
.ui3 .patrol-route { gap: 4px; padding: 12px 8px; transition: transform 0.1s; }
.ui3 .patrol-route:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--copper-hi), var(--v3-shadow); }
.ui3 .patrol-route.selected { box-shadow: 0 0 0 2px var(--gold), inset 0 0 0 1px var(--gold), 0 0 14px rgba(245, 197, 66, 0.3); background: linear-gradient(180deg, #3a2e22, #241c16); }
.ui3 .patrol-route b { font-size: 14px; color: #fff6dc; }
.ui3 .patrol-route-icon { font-size: 32px; filter: drop-shadow(0 2px 0 #000); }
.ui3 .gx-card { text-align: left; transition: transform 0.1s; }
.ui3 .gx-card:not(.locked):hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--copper-hi), var(--v3-shadow); }
.ui3 .gx-card.selected { box-shadow: 0 0 0 2px var(--gold), inset 0 0 0 1px var(--gold); }
.ui3 .gx-card.locked { opacity: 0.55; filter: saturate(0.4); }
.ui3 .gx-card.locked:hover { opacity: 0.75; }
.ui3 .emblem-side { padding: 12px; background: linear-gradient(180deg, var(--v3-panel-2), var(--v3-panel)); border: 2px solid var(--v3-edge, #000); box-shadow: inset 0 0 0 1px var(--v3-rim), var(--v3-shadow); }

/* styles/neon.css */
/* The Neon theme (Settings > Display > Theme; the default): the redesign's language (redesign/, the preview) over
   the game's own screens. Forged-ink glass panels, gold for prestige and yellow for "go" (PLAY), teal for information; a
   display serif for titles, the pixel sans for the interface, pixel digits for numbers; chamfered buttons, thin
   warm hairlines instead of copper frames, the painted places behind it all under a vignette and a little grain.
   Everything here is under html[data-theme='neon']: Legacy (main.css, ui3.css, legacy.css) never
   see it. Loaded last on every page. */

@font-face { font-family: 'Alegreya SC'; src: url('../assets/fonts/alegreya-sc-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

html[data-theme='neon'] {
  /* the redesign's tokens */
  --ink-0: #060509;
  --ink-1: #0d0b12;
  --ink-2: #15121b;
  --ink-3: #1e1926;
  --ink-4: #2a2334;
  --glass: rgba(20, 16, 26, 0.78);
  --glass-hi: rgba(36, 29, 46, 0.86);
  --line-1: rgba(255, 232, 196, 0.08);
  --line-2: rgba(255, 232, 196, 0.16);
  --line-3: rgba(255, 232, 196, 0.28);
  --gold-2: #b48d3e;
  --gold-3: #6b5124;
  --ember: #ff6b2c;
  --ember-2: #e2401a;
  --ember-3: #8f1f0c;
  --teal-2: #239d8c;
  --cut: 4px;
  --chamfer: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --n-radius: 2px;
  /* the game's own names, on those tokens (every screen reads these) */
  --bg: var(--ink-0);
  --bg-2: var(--ink-1);
  --panel: var(--ink-2);
  --panel-2: var(--ink-3);
  --panel-3: var(--ink-4);
  --inset: var(--ink-1);
  --line: rgba(255, 232, 196, 0.16);
  --copper: #b48d3e;
  --copper-hi: #d1ab5b;
  --copper-dk: #8a5c22;
  --teal: #4fdcc6;
  --teal-hi: #a8fff1;
  --teal-dk: #239d8c;
  --gold: #d1ab5b;
  --text: #f3ebde;
  --text-2: #bfb3a3;
  --muted: #8f8476;
  --good: #72de6c;
  --bad: #ff5a6e;
  --rarity-common: #a9afb7;
  --rarity-rare: #4fa8ff;
  --rarity-epic: #b770ff;
  --rarity-legendary: #ffb52f;
  --font-title: 'Alegreya SC', Georgia, serif;
  --font-label: 'Eriband Digits', 'Alegreya SC', Georgia, serif; /* the small capitals: Pixelify's bold C reads as an O */
  --font-num: 'Micro 5', 'Pixelify Sans', monospace;
  /* no copper frames */
  --frame-panel: none;
  --frame-button: none;
  --frame-button-red: none;
  --frame-tab: none;
  --frame-inset: none;
  --frame-card: none;
  --radius: 8px;
  --avatar-bg: #1e1926;
  /* the main page's own set (ui3.css), on the same tokens */
  --v3-bg: var(--ink-1);
  --v3-win: rgba(13, 11, 18, 0.9);
  --v3-panel: rgba(20, 16, 26, 0.82);
  --v3-panel-2: rgba(36, 29, 46, 0.86);
  --v3-panel-3: var(--ink-4);
  --v3-edge: rgba(255, 232, 196, 0.16);
  --v3-rim: rgba(255, 232, 196, 0.1);
  --v3-rim-soft: rgba(255, 232, 196, 0.06);
  --v3-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}
:root.cb[data-theme='neon'] { --team-red: #f08a2b; --team-red-hi: #ffc58a; }
html[data-theme='neon'] ::selection { background: var(--gold); color: var(--ink-0); }
html[data-theme='neon'] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-theme='neon'] ::-webkit-scrollbar-thumb { background: var(--ink-4); border: 3px solid transparent; background-clip: padding-box; border-radius: 10px; }
html[data-theme='neon'] ::-webkit-scrollbar-track { background: transparent; }

/* ================================================================== the world behind: a grade, a vignette, grain */
html[data-theme='neon'] body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 35%, rgba(6, 5, 9, 0.72) 100%),
    linear-gradient(180deg, rgba(6, 5, 9, 0.5) 0%, rgba(6, 5, 9, 0.1) 30%, rgba(6, 5, 9, 0.3) 70%, rgba(6, 5, 9, 0.85) 100%);
}
html[data-theme='neon'] body::before {
  content: ''; position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* (the board in a fight: no grade over it) */
html[data-theme='neon'] body:has(.screen.battle)::after { background: radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(6, 5, 9, 0.6) 100%); }
html[data-theme='neon'] #boot { background: linear-gradient(rgba(12, 8, 16, 0.5), rgba(12, 8, 16, 0.85)), url(../assets/art/ui-v3/brand/loading-wide.webp) center / cover no-repeat, var(--ink-0); }
@media (orientation: portrait) {
  html[data-theme='neon'] #boot { background: linear-gradient(rgba(12, 8, 16, 0.5), rgba(12, 8, 16, 0.85)), url(../assets/art/ui-v3/brand/loading-tall.webp) center / cover no-repeat, var(--ink-0); }
}
/* (the logo from the first paint, no words before it) */
html[data-theme='neon'] .boot-logo { display: block; transform: translateX(-12.49%); } /* (its words in the middle of the screen, the mark to their left) */
/* (a phone: the whole logo in the middle, your report 8 Nov; shifted, its mark ran against the screen's edge) */
@media (max-width: 760px) { html[data-theme='neon'] .boot-logo { transform: none; } }
html[data-theme='neon'] #boot:has(.boot-logo) :is(.boot-title, .boot-sub) { display: none; }
html[data-theme='neon'] .boot-spin { display: block; width: 56px; height: 56px; background: url(../assets/art/brand/loading-spinner-anim.webp) 0 0 / 672px 56px no-repeat; animation: boot-spin 0.96s steps(12) infinite; }
@keyframes boot-spin { to { background-position: -672px 0; } }
html[data-theme='neon'] .boot-title { font-family: var(--font-title); letter-spacing: 4px; color: var(--gold); text-shadow: 0 4px 0 var(--gold-3), 0 0 30px rgba(209, 171, 91, 0.35); }
html[data-theme='neon'] .boot-bar { height: 8px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-1); overflow: hidden; }
html[data-theme='neon'] .boot-bar i { border-radius: inherit; background: linear-gradient(180deg, #ffe7a3, var(--gold) 45%, var(--gold-2)); box-shadow: 0 0 10px var(--gold); }

/* ================================================================== type */
html[data-theme='neon'] .title {
  font-family: var(--font-title); font-weight: 700; letter-spacing: 0.04em; line-height: 1.05;
  background: linear-gradient(180deg, #fff6dc 0%, var(--gold) 55%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5));
}
html[data-theme='neon'] .title.teal { background: linear-gradient(180deg, #e2fffa, var(--teal) 60%, var(--teal-2)); -webkit-background-clip: text; background-clip: text; }
html[data-theme='neon'] .h2 { font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 10px; }
html[data-theme='neon'] .h2::before { content: ''; width: 16px; height: 2px; flex: none; background: currentColor; box-shadow: 0 0 8px currentColor; }
html[data-theme='neon'] .tier { font-family: var(--font-num); font-size: 16px; }

/* ================================================================== panels */
html[data-theme='neon'] .panel {
  border: 1px solid var(--line-2); border-image: none; border-radius: var(--n-radius);
  background: #120f17;
  box-shadow: none;
  image-rendering: auto;
}
html[data-theme='neon'] .panel.dark { background: rgba(6, 5, 9, 0.7); }
html[data-theme='neon'] .panel.flat { border: 1px solid var(--line-1); background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); }
html[data-theme='neon'] .panel.inset { border: 1px solid var(--line-1); border-image: none; background: rgba(0, 0, 0, 0.38); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6); }
/* a panel's tab: a teal kicker inside it */
html[data-theme='neon'] .panel > .tab {
  position: static; transform: none; display: flex; align-items: center; gap: 10px; align-self: flex-start;
  margin: 0 0 10px; padding: 0; white-space: normal; max-width: 100%; overflow-wrap: anywhere;
  font: 700 12px/1.2 var(--font-label); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
  background: none; border: 0; border-image: none; box-shadow: none;
}
html[data-theme='neon'] .panel > .tab::before { content: ''; width: 16px; height: 2px; flex: none; background: currentColor; box-shadow: 0 0 8px currentColor; }
html[data-theme='neon'] .panel.has-tab { margin-top: 0; padding-top: 14px; }

/* ================================================================== buttons: chamfered, a shine sweeps across on hover */
html[data-theme='neon'] .btn {
  /* (the buttons' colours, 19 Nov: dark iron with a steel edge, gold on hover; the primary in the new gold) */
  --bg: linear-gradient(180deg, rgba(201, 206, 214, 0.07), transparent 38px), #19191f;
  --edge: #575b61;
  isolation: isolate; min-height: 40px; padding: 6px 20px;
  font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); background: none; border: 0; border-image: none; border-radius: 0;
  box-shadow: none; text-shadow: none; image-rendering: auto;
  filter: none;
  transition: transform 0.12s var(--ease-out), filter 0.2s, color 0.15s;
}
html[data-theme='neon'] .btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; clip-path: var(--chamfer); pointer-events: none;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--edge);
  transition: box-shadow 0.15s, background 0.15s;
}
html[data-theme='neon'] .btn:hover:not(:disabled) { --edge: var(--gold); color: var(--gold); transform: translateY(-1px); filter: drop-shadow(0 0 8px rgba(209, 171, 91, 0.28)); }
html[data-theme='neon'] .btn:active:not(:disabled), html[data-theme='neon'] .btn.pressed { transform: translateY(1px) scale(0.98); filter: brightness(0.95); }
html[data-theme='neon'] .btn:disabled, html[data-theme='neon'] .btn.disabled { filter: grayscale(1) brightness(0.6); }
html[data-theme='neon'] .btn.primary { --bg: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); --edge: #f0d9a0; color: #1a1309; }
html[data-theme='neon'] .btn.primary:hover:not(:disabled) { --bg: linear-gradient(180deg, #f0d391 0%, #d6ab55 55%, #b48a3b 100%); --edge: #f0d9a0; color: #1a1309; filter: drop-shadow(0 0 10px rgba(226, 194, 124, 0.35)); }
html[data-theme='neon'] :is(.btn.gold, .btn.teal) { --bg: rgba(209, 171, 91, 0.1); --edge: var(--gold-2); color: #f0d9a0; }
html[data-theme='neon'] :is(.btn.gold, .btn.teal):hover:not(:disabled) { --bg: var(--gold); --edge: var(--gold); color: #1a1206; }
html[data-theme='neon'] .btn.danger, html[data-theme='neon'] .btn.red { --bg: rgba(255, 90, 110, 0.1); --edge: var(--bad); color: #ff9aa6; }
html[data-theme='neon'] :is(.btn.danger, .btn.red):hover:not(:disabled) { --bg: var(--bad); --edge: var(--bad); color: #fff; }
/* (the main page's own variants set a bevel and a fill of their own: none of it here, the plate is the ::before) */
html[data-theme='neon'] .btn:is(.primary, .teal, .gold, .danger, .red, .small, .big, .icon, .selected, .active, .block) { background: none; border: 0; box-shadow: none; }
html[data-theme='neon'] .btn.small { --cut: 3px; min-height: 30px; padding: 2px 12px; font-size: 11px; letter-spacing: 0.1em; }
html[data-theme='neon'] .btn.big { --cut: 5px; min-height: 50px; padding: 8px 28px; font-size: 16px; }
html[data-theme='neon'] .btn.icon { --cut: 3px; padding: 4px; letter-spacing: 0; }
html[data-theme='neon'] .btn.active { color: var(--gold); }
html[data-theme='neon'] .btn.selected { filter: drop-shadow(0 0 1px var(--gold)) drop-shadow(0 0 8px rgba(209, 171, 91, 0.55)); }
html[data-theme='neon'] .btn.selected::before { box-shadow: inset 0 0 0 2px var(--gold), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
html[data-theme='neon'] .btn.link { filter: none; text-transform: none; letter-spacing: 0; color: var(--gold); }
html[data-theme='neon'] .btn.link::before { display: none; }

/* ================================================================== tabs: a strip, the open one inked in gold */
html[data-theme='neon'] .tabs { gap: 2px; border-bottom: 1px solid var(--line-1); }
html[data-theme='neon'] .tabs .btn {
  min-height: 42px; padding: 4px 16px; filter: none; transform: none;
  font-size: 13px; letter-spacing: 0.08em; color: #a79e91; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; transition: color 0.15s, border-color 0.2s;
  box-shadow: none; text-shadow: none;
}
html[data-theme='neon'] .tabs .btn::before { display: none; }
html[data-theme='neon'] .tabs .btn:hover:not(:disabled) { color: #f3ebde; background: none; border-bottom-color: rgba(209, 171, 91, 0.45); filter: none; transform: none; }
html[data-theme='neon'] .tabs .btn.on { color: var(--gold); border-bottom-color: var(--gold); background: none; box-shadow: none; }
html[data-theme='neon'] .tabs .btn.on::after { display: none; }
html[data-theme='neon'] .tabs .btn:has(.lbl) :is(canvas, img) { display: none; } /* (words, as in the bar) */
html[data-theme='neon'] .tabs-burger { border-radius: var(--n-radius); }
html[data-theme='neon'] .tabs-menu { border: 1px solid var(--line-3); border-radius: var(--n-radius); background: linear-gradient(180deg, rgba(34, 28, 44, 0.98), rgba(18, 14, 24, 0.98)); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7); }
html[data-theme='neon'] .tabs-menu-item { border-radius: 6px; }

/* ================================================================== cards (champions, mascots, skins...) */
html[data-theme='neon'] .card {
  border: 1px solid var(--line-2); border-image: none; border-radius: var(--n-radius);
  background: radial-gradient(ellipse at 50% 30%, #2f2739 0, #1b1622 58%, #120f17 100%);
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}
html[data-theme='neon'] .card:hover { transform: translateY(-3px); filter: none; border-color: var(--line-3); box-shadow: 0 22px 40px -22px rgba(0, 0, 0, 1), 0 0 0 1px rgba(209, 171, 91, 0.18); }
html[data-theme='neon'] .card.locked:hover { transform: none; }
html[data-theme='neon'] .card.selected { background: radial-gradient(ellipse at 50% 30%, #23413c 0, #15201f 60%, #0e1414 100%); border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 0 18px -2px rgba(79, 220, 198, 0.55); }
html[data-theme='neon'] .card .name { letter-spacing: 0.02em; }

/* ================================================================== chips, tags, bars */
html[data-theme='neon'] .chip { gap: 6px; padding: 2px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); color: var(--text-2); letter-spacing: 0.04em; }
html[data-theme='neon'] .chip.order { color: #9cb8ff; border-color: rgba(100, 146, 255, 0.45); background: rgba(100, 146, 255, 0.12); }
html[data-theme='neon'] .chip.wild { color: #9be8a0; border-color: rgba(107, 214, 114, 0.45); background: rgba(107, 214, 114, 0.12); }
html[data-theme='neon'] .chip.arcane { color: #d2b4ff; border-color: rgba(185, 138, 255, 0.45); background: rgba(185, 138, 255, 0.12); }
html[data-theme='neon'] .chip.shadow { color: #ff9cb8; border-color: rgba(255, 99, 144, 0.45); background: rgba(255, 99, 144, 0.12); }
html[data-theme='neon'] .chip.gold { color: var(--gold); border-color: rgba(209, 171, 91, 0.45); background: rgba(209, 171, 91, 0.1); }
html[data-theme='neon'] .bar { border: 0; border-radius: 6px; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-1); }
html[data-theme='neon'] .bar > i { border-radius: inherit; background: linear-gradient(180deg, #ffe9a8, var(--gold) 45%, var(--gold-2)); }
html[data-theme='neon'] .bar.xp > i { background: linear-gradient(180deg, #e0c8ff, #b98aff 45%, #6c3fc9); }
html[data-theme='neon'] .bar.xp > i { background: url(../assets/art/ui-v3/ui/bars/xp-fill.webp) 0 0 / auto 100% repeat-x; image-rendering: pixelated; } /* (the v3 art's gold XP fill, 21 Nov) */
html[data-theme='neon'] .bar.energy > i { background: linear-gradient(180deg, #ffe7a3, var(--gold) 45%, var(--gold-2)); }
html[data-theme='neon'] .bar.hp > i { background: linear-gradient(180deg, #b8f5b4, var(--good) 45%, #2f9c39); }
html[data-theme='neon'] .bar.hp.low > i { background: linear-gradient(180deg, #ffb0ba, var(--bad) 45%, #a8213a); }
html[data-theme='neon'] .bar.hp > i.sh { background: linear-gradient(180deg, #ffffff, #9fcfff); }
html[data-theme='neon'] .cur { gap: 6px; padding: 2px 12px 2px 4px; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
html[data-theme='neon'] .kbd { border-radius: 0; border-color: var(--line-2); background: rgba(0, 0, 0, 0.35); }
html[data-theme='neon'] .badge::after { border: 0; box-shadow: 0 0 0 2px var(--ink-1); }

/* ================================================================== inputs, switches, lists */
html[data-theme='neon'] .input { border: 1px solid var(--line-2); border-image: none; border-radius: var(--n-radius); background: rgba(0, 0, 0, 0.4); box-shadow: none; transition: border-color 0.25s, box-shadow 0.25s; }
html[data-theme='neon'] .input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(209, 171, 91, 0.12); }
html[data-theme='neon'] .switch { width: 46px; height: 26px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--ink-4); transition: background 0.3s; }
html[data-theme='neon'] .switch::after { top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(180deg, #fff, #c9bfb1); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); transition: left 0.35s var(--ease-back); }
html[data-theme='neon'] .switch.on { border-color: transparent; background: linear-gradient(180deg, #d1ab5b, #b48d3e); box-shadow: 0 0 12px -2px rgba(209, 171, 91, 0.7); }
html[data-theme='neon'] .switch.on::after { left: 22px; background: linear-gradient(180deg, #fff, #c9bfb1); }
html[data-theme='neon'] input[type='range'] { accent-color: var(--gold); }
html[data-theme='neon'] .toggle { padding: 4px 10px; border: 1px solid var(--line-1); border-image: none; border-radius: var(--n-radius); background: rgba(0, 0, 0, 0.22); box-shadow: none; }
html[data-theme='neon'] .toggle:hover { background: rgba(255, 255, 255, 0.04); }
html[data-theme='neon'] .list-item {
  position: relative; border: 1px solid var(--line-1); border-image: none; border-radius: var(--n-radius);
  background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); transition: background 0.25s, border-color 0.25s;
}
html[data-theme='neon'] button.list-item:hover, html[data-theme='neon'] .list-item:hover:not(:disabled) { border-color: var(--line-2); background: linear-gradient(90deg, rgba(209, 171, 91, 0.08), rgba(0, 0, 0, 0.28) 70%); box-shadow: inset 3px 0 0 var(--gold); }

/* ================================================================== modal, tooltip, toasts */
html[data-theme='neon'] .modal-back { background: rgba(6, 5, 9, 0.66); backdrop-filter: blur(3px); }
html[data-theme='neon'] .modal {
  border: 1px solid var(--line-3); border-image: none; border-radius: 2px;
  background: #15111b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}
html[data-theme='neon'] .modal::before, html[data-theme='neon'] .modal::after { display: none; }
html[data-theme='neon'] .modal.emote-wheel-modal { padding: 0; background: none; border: 0; box-shadow: none; }
/* the emote wheel: the game stays in sight behind it, the mascot in its hollow; flat like the rest */
html[data-theme='neon'] .modal-back:has(.emote-wheel-modal) { background: rgba(5, 3, 7, 0.25); backdrop-filter: none; }
html[data-theme='neon'] .emote-wheel { border-color: #17131d; box-shadow: 0 0 0 1px var(--line-3), 0 12px 26px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--line-3); }
html[data-theme='neon'] .wheel-page { display: grid; place-items: center; background: rgba(13, 10, 18, 0.95); border: 1px solid var(--line-2); box-shadow: none; opacity: 1; }
html[data-theme='neon'] .wheel-page.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
html[data-theme='neon'] .wheel-page:hover { border-color: var(--gold); }
html[data-theme='neon'] .emote-name, html[data-theme='neon'] .phrase-pill { background: rgba(13, 10, 18, 0.95); border: 1px solid var(--line-2); border-radius: 0; box-shadow: none; }
html[data-theme='neon'] .phrase-pill:hover, html[data-theme='neon'] .phrase-pill:focus-visible { border-color: var(--gold); color: var(--gold); }
/* the phrases: no stone ring, a thin circle round the mascot and two even columns of the same buttons beside it */
html[data-theme='neon'] .emote-wheel.nx-phrases { border: 0; box-shadow: none; }
html[data-theme='neon'] .nx-phrases .emote-name { display: none; }
html[data-theme='neon'] .nx-phrases .emote-hub { width: 112px; height: 112px; margin: -56px 0 0 -56px; background: rgba(13, 10, 18, 0.35); box-shadow: 0 0 0 1px var(--line-3); }
html[data-theme='neon'] .nx-phrases .wheel-pages { bottom: calc(100% - 44px); }
html[data-theme='neon'] .nx-phrases .phrase-pill { width: 160px; min-height: 40px; margin: 0; padding: 4px 10px; display: grid; place-items: center; font: 600 14px/1.15 var(--nx-ui); color: #fff6dc; text-align: center; white-space: normal; }
html[data-theme='neon'] .nx-phrases .phrase-pill:hover, html[data-theme='neon'] .nx-phrases .phrase-pill:focus-visible { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
html[data-theme='neon'] #tooltip {
  border: 1px solid var(--line-3); border-image: none; border-radius: var(--n-radius);
  background: linear-gradient(180deg, rgba(34, 28, 44, 0.98), rgba(18, 14, 24, 0.98));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
html[data-theme='neon'] #tooltip .tt-title { color: var(--gold); }
html[data-theme='neon'] .toast {
  border: 1px solid var(--line-3); border-image: none; border-radius: 10px; padding: 10px 18px;
  background: linear-gradient(180deg, rgba(40, 32, 50, 0.97), rgba(20, 16, 26, 0.97)); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* ================================================================== the main page's window (ui3): glass over the place */
html[data-theme='neon'] #app > .screen.win {
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 16, 26, 0.88), rgba(10, 8, 14, 0.92));
  box-shadow: 0 0 0 100vmax rgba(6, 5, 9, 0.28), 0 40px 90px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
@media (max-width: 760px) {
  html[data-theme='neon'] #app > .screen.win { border-width: 0; border-radius: 0; box-shadow: none; background: rgba(10, 8, 14, 0.86); }
}
html[data-theme='neon'] .screen.win > .screen-head {
  padding: 14px 24px 12px; gap: 14px;
  background: linear-gradient(180deg, rgba(255, 232, 196, 0.04), transparent); border-bottom: 1px solid var(--line-1); box-shadow: none;
}
html[data-theme='neon'] .screen.win > .screen-head::after { content: ''; position: absolute; left: 24px; right: 24px; height: 1px; margin-top: 0; pointer-events: none; }
html[data-theme='neon'] .screen-head .title { font-size: 26px; letter-spacing: 0.04em; }
html[data-theme='neon'] .screen-head > .btn.icon:first-child {
  width: 38px; height: 38px; min-width: 38px; min-height: 38px; padding: 0; filter: none;
  border: 1px solid var(--line-1); border-radius: 10px; background: rgba(255, 255, 255, 0.03); box-shadow: none;
}
html[data-theme='neon'] .screen-head > .btn.icon:first-child::before { display: none; }
html[data-theme='neon'] .screen-head > .btn.icon:first-child:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-3); }
@media (max-width: 760px) { html[data-theme='neon'] .screen-head .title { font-size: 19px; } }

/* ================================================================== the bar on top (hub.css, ui3.css) */
html[data-theme='neon'] .hub-bar {
  background: linear-gradient(180deg, rgba(8, 6, 11, 0.94), rgba(8, 6, 11, 0.62));
  border-bottom: 1px solid var(--line-1); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}
html[data-theme='neon'] .hub-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(209, 171, 91, 0.45) 30%, rgba(209, 171, 91, 0.45) 70%, transparent); opacity: 0.5; }
html[data-theme='neon'] .hub-brand .t1 { font-family: var(--font-title); font-size: 20px; letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff3cf 10%, var(--gold) 50%, var(--gold-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
html[data-theme='neon'] .hub-tab {
  padding: 0 15px; filter: none; transform: none;
  font-size: 12px; letter-spacing: 0.14em; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; box-shadow: none; text-shadow: none;
}
html[data-theme='neon'] .hub-tab::before { display: none; }
html[data-theme='neon'] .hub-tab:hover:not(:disabled) { color: var(--text); background: none; transform: none; filter: none; }
html[data-theme='neon'] .hub-tab.on { color: var(--gold); border-bottom-color: var(--gold); background: radial-gradient(80% 120% at 50% 100%, rgba(209, 171, 91, 0.16), transparent 70%); box-shadow: 0 2px 12px -4px var(--gold); }
html[data-theme='neon'] .hub-tab canvas, html[data-theme='neon'] .hub-tab img { opacity: 1; filter: grayscale(0.7) brightness(0.8); transition: filter 0.3s, transform 0.35s var(--ease-back); }
html[data-theme='neon'] .hub-tab:hover canvas, html[data-theme='neon'] .hub-tab:hover img { filter: none; transform: translateY(-2px) scale(1.08); }
html[data-theme='neon'] .hub-tab.on canvas, html[data-theme='neon'] .hub-tab.on img { filter: drop-shadow(0 0 6px rgba(209, 171, 91, 0.6)); }
/* PLAY: the yellow call to action, its stripes moving (the open one lit brighter, a glow round it) */
html[data-theme='neon'] .hub-play {
  --cut: 10px; height: 44px; padding: 0 28px; filter: drop-shadow(0 8px 16px rgba(209, 171, 91, 0.28));
  font-family: var(--font-title); font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase; color: #2a1a06; text-shadow: 0 1px 0 rgba(255, 250, 220, 0.6);
  border: 0; clip-path: var(--chamfer);
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, 0.14) 22px 26px), radial-gradient(120% 140% at 20% 0%, #fff6c8 0%, transparent 45%), linear-gradient(180deg, #e2c27c 0%, #d1ab5b 40%, #b48d3e 78%, #b48d3e 100%);
  background-size: 52px 100%, auto, auto;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 -5px 0 rgba(120, 70, 0, 0.45);
  animation: n-stripes 2.4s linear infinite;
}
html[data-theme='neon'] .hub-play::before { display: none; }
html[data-theme='neon'] .hub-play:hover:not(:disabled) { filter: drop-shadow(0 10px 20px rgba(209, 171, 91, 0.4)) brightness(1.08); transform: translateY(-1px); }
html[data-theme='neon'] .hub-play.on { filter: drop-shadow(0 0 12px rgba(226, 194, 124, 0.7)); background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, 0.2) 22px 26px), radial-gradient(120% 140% at 20% 0%, #fffbe6 0%, transparent 50%), linear-gradient(180deg, #fff3a8 0%, #e2c27c 45%, #d1ab5b 100%); background-size: 52px 100%, auto, auto; }
@keyframes n-stripes { to { background-position: 52px 0, 0 0, 0 0; } }
html[data-theme='neon'] .hub-tools .btn { --cut: 0px; width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; filter: none; border: 1px solid var(--line-1); border-radius: 10px; background: rgba(255, 255, 255, 0.03); box-shadow: none; }
html[data-theme='neon'] .hub-tools .btn::before { display: none; }
html[data-theme='neon'] .hub-tools .btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); border-color: var(--line-3); transform: none; }
html[data-theme='neon'] .hub-bar .currencies .cur { border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
html[data-theme='neon'] .hub-me { border: 1px solid var(--line-1); border-radius: 26px; background: rgba(255, 255, 255, 0.03); box-shadow: none; }
html[data-theme='neon'] .hub-me:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); }
html[data-theme='neon'] .hub-me .hub-pic { border: 0; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3a3046, #1a1520); }
html[data-theme='neon'] .hub-me .hub-xp { border-radius: 2px; background: rgba(0, 0, 0, 0.6); }
html[data-theme='neon'] .hub-me .hub-xp i { background: linear-gradient(90deg, var(--gold-2), var(--gold)); box-shadow: 0 0 6px var(--gold); }
html[data-theme='neon'] .hub-me.with-banner { border-radius: 12px; }
html[data-theme='neon'] .hub-me.with-banner .hub-pic { border-radius: 8px; }

/* phones: the bottom bar as glass, each tab a rounded square, PLAY the yellow one */
@media (max-width: 760px) {
  html[data-theme='neon'] .hub-bottom { background: linear-gradient(180deg, rgba(20, 16, 26, 0.9), rgba(8, 6, 11, 0.98)); border-top: 1px solid var(--line-2); box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); }
  html[data-theme='neon'] .hub-btab { filter: none; border: 1px solid var(--line-1); border-radius: 12px; background: rgba(255, 255, 255, 0.03); box-shadow: none; color: var(--muted); padding: 4px 2px 3px; font-size: 10px; letter-spacing: 0; text-transform: none; }
  html[data-theme='neon'] .hub-btab::before { display: none; }
  html[data-theme='neon'] .hub-btab.on { color: var(--gold); border-color: rgba(209, 171, 91, 0.5); background: radial-gradient(90% 100% at 50% 100%, rgba(209, 171, 91, 0.2), rgba(255, 255, 255, 0.03)); box-shadow: 0 0 14px -4px var(--gold); }
  html[data-theme='neon'] .hub-bplay { filter: drop-shadow(0 6px 14px rgba(209, 171, 91, 0.3)); border: 0; border-radius: 14px; font-family: var(--font-title); font-size: 13px; color: #2a1a06; text-shadow: 0 1px 0 rgba(255, 250, 220, 0.6);
    background: radial-gradient(120% 140% at 20% 0%, #fff6c8 0%, transparent 45%), linear-gradient(180deg, #e2c27c 0%, #d1ab5b 40%, #b48d3e 78%, #b48d3e 100%);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 -5px 0 rgba(120, 70, 0, 0.45); }
  html[data-theme='neon'] .hub-bplay::before { display: none; }
  html[data-theme='neon'] .hub-bplay.on { filter: drop-shadow(0 0 12px rgba(226, 194, 124, 0.7)); background: radial-gradient(120% 140% at 20% 0%, #fffbe6 0%, transparent 50%), linear-gradient(180deg, #fff3a8 0%, #e2c27c 45%, #d1ab5b 100%); }
  html[data-theme='neon'] .hub-me, html[data-theme='neon'] .hub-me.with-banner { border: 0; background: none; }
}

/* ================================================================== Home and Play (hub3.css) */
html[data-theme='neon'] .h3-cont { border-left: 1px solid var(--line-2); box-shadow: inset 3px 0 0 var(--teal), 0 24px 50px -28px rgba(0, 0, 0, 0.9); }
html[data-theme='neon'] .h3-cont.hot { box-shadow: inset 3px 0 0 var(--gold), 0 24px 50px -28px rgba(0, 0, 0, 0.9); }
html[data-theme='neon'] .h3-cont:hover, html[data-theme='neon'] .h3-cont:focus-visible { border-color: var(--line-3); box-shadow: inset 3px 0 0 var(--gold), 0 30px 60px -30px #000, 0 0 0 1px rgba(209, 171, 91, 0.18); }
html[data-theme='neon'] .h3-cont-text b, html[data-theme='neon'] .h3-tile b { color: var(--text); letter-spacing: 0.1em; }
html[data-theme='neon'] .h3-cta { color: var(--gold); letter-spacing: 0.14em; }
html[data-theme='neon'] .h3-tile { border-top: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
html[data-theme='neon'] .h3-tile:hover, html[data-theme='neon'] .h3-tile:focus-visible { border-color: rgba(209, 171, 91, 0.45); box-shadow: 0 30px 60px -30px #000, 0 0 0 1px rgba(209, 171, 91, 0.3), 0 0 30px -10px rgba(209, 171, 91, 0.35); }
html[data-theme='neon'] .h3-tile-ico { border: 1px solid var(--line-2); border-radius: 14px; background: radial-gradient(circle at 50% 40%, #2f2739, #120f17 75%); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.8); }
html[data-theme='neon'] .h3-thumb { border-bottom: 1px solid var(--line-2); }
html[data-theme='neon'] .h3-status { font-family: var(--font-label); border: 1px solid rgba(209, 171, 91, 0.45); border-radius: 4px; background: rgba(209, 171, 91, 0.1); letter-spacing: 0.08em; text-transform: uppercase; }
html[data-theme='neon'] .h3-event { border: 0; border-radius: 4px; color: #2a1a06; background: linear-gradient(180deg, #ffe7a3, var(--gold) 45%, var(--gold-2)); }
html[data-theme='neon'] :is(.h3-evg, .h3-linkline, .h3-quests) { border: 1px solid var(--line-1); border-radius: var(--n-radius); background: rgba(0, 0, 0, 0.28); }
html[data-theme='neon'] :is(.h3-evg, .h3-linkline, .h3-quests):hover { border-color: var(--line-2); box-shadow: inset 3px 0 0 var(--gold); background: linear-gradient(90deg, rgba(209, 171, 91, 0.08), rgba(0, 0, 0, 0.28) 70%); }
html[data-theme='neon'] .h3-evg { color: var(--gold); }
html[data-theme='neon'] .h3-faces canvas { border: 1px solid var(--line-2); border-radius: 10px; background: radial-gradient(circle at 50% 38%, #2f2739, #120f17 75%); box-shadow: none; }
html[data-theme='neon'] .h3-weekbar { border-top-color: var(--line-1); }
html[data-theme='neon'] .h3-stage { background: radial-gradient(ellipse at 50% 85%, rgba(209, 171, 91, 0.16), transparent 62%); }

/* ================================================================== champion select (draft) */
html[data-theme='neon'] :is(.dr-head, .dr-choice-bar) { border: 1px solid var(--line-2); border-image: none; border-radius: var(--n-radius); background: linear-gradient(180deg, var(--glass-hi), var(--glass)); }
html[data-theme='neon'] .dr-team { border-radius: var(--n-radius); }
html[data-theme='neon'] .dr-team.p0 { box-shadow: inset 0 2px 0 var(--blue), 0 0 24px -12px var(--blue), var(--v3-shadow); }
html[data-theme='neon'] .dr-team.p1 { box-shadow: inset 0 2px 0 var(--team-red), 0 0 24px -12px var(--team-red), var(--v3-shadow); }
html[data-theme='neon'] .dr-team-head b { font-size: 14px; letter-spacing: 0.06em; }
html[data-theme='neon'] .dr-slot { border: 1px dashed var(--line-2); border-radius: var(--n-radius); background: rgba(0, 0, 0, 0.3); }
html[data-theme='neon'] .dr-slot.filled { border: 1px solid var(--line-2); background: radial-gradient(circle at 50% 36%, #2f2739, #120f17 74%); }
html[data-theme='neon'] .champ-tile { border: 1px solid var(--line-1); border-image: none; border-radius: var(--n-radius); background: radial-gradient(ellipse at 50% 30%, #2a2334 0, #17131d 70%); box-shadow: 0 10px 20px -14px #000; }
html[data-theme='neon'] .champ-tile:not(.disabled):hover { border-color: var(--line-3); box-shadow: 0 0 0 1px rgba(209, 171, 91, 0.25), 0 14px 26px -14px #000; }
html[data-theme='neon'] .champ-tile.chosen { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(209, 171, 91, 0.45); }
html[data-theme='neon'] .ct-tier { border: 1px solid var(--line-2); border-radius: 4px; background: rgba(10, 8, 13, 0.85); box-shadow: none; }
html[data-theme='neon'] :is(.pool, .dr-pool) { border-radius: var(--n-radius); background: rgba(6, 5, 9, 0.45); }

/* ================================================================== the fight's HUD */
html[data-theme='neon'] .battle:not(.narrow) .roster { border: 1px solid var(--line-2); border-top: 2px solid var(--line-2); border-radius: var(--n-radius); background: linear-gradient(180deg, var(--glass-hi), var(--glass)); box-shadow: var(--v3-shadow); }
html[data-theme='neon'] .battle:not(.narrow) .roster.p0 { border-top-color: var(--blue); }
html[data-theme='neon'] .battle:not(.narrow) .roster.p1 { border-top-color: var(--team-red); }
html[data-theme='neon'] .roster-hero { border: 1px solid var(--line-1); border-radius: 6px; background: rgba(0, 0, 0, 0.32); box-shadow: none; }
html[data-theme='neon'] .roster-hero:hover { border-color: var(--line-3); box-shadow: none; }
html[data-theme='neon'] .action-bar:not(:empty) { border: 1px solid var(--line-1); border-image: none; border-radius: 0; background: rgba(13, 10, 18, 0.95); box-shadow: none; }
html[data-theme='neon'] .battle .turn-banner { border: 1px solid var(--line-1); border-radius: 0; background: rgba(13, 10, 18, 0.95); box-shadow: none; }
html[data-theme='neon'] .battle .tl-chip.now { outline-color: var(--gold); }
html[data-theme='neon'] .chronicle { border-image: none; }

/* ================================================================== Inventory, shop, profile, patrol, gauntlet (ui3.css) */
html[data-theme='neon'] :is(.inv-pic, .inv-slot, .inv-slot-ico, .it-tile, .it-pic, .it-eq, .it-champ, .boost, .boost-pic, .doll-bonus, .inv-doll.doll2, .emblem-side, .craft-funds, .it-compare, .inv-gearfx, .inv-stats > span) {
  border: 1px solid var(--line-1); border-radius: var(--n-radius);
}
html[data-theme='neon'] :is(.inv-slot, .it-tile, .it-champ, .boost) { background: radial-gradient(ellipse at 50% 25%, #2a2334 0, #15121b 75%); }
html[data-theme='neon'] :is(.inv-pic, .inv-slot-ico, .it-pic, .boost-pic) { background: radial-gradient(circle at 50% 40%, #2f2739, #0d0b12 75%); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5); }
html[data-theme='neon'] :is(.inv-slot, .it-tile, .it-champ):hover { border-color: var(--line-3); box-shadow: 0 0 0 1px rgba(209, 171, 91, 0.2); }
html[data-theme='neon'] .it-eq { border-color: var(--gold); border-radius: 50%; }
html[data-theme='neon'] :is(.inv-name, .it-head) { font-size: 20px; color: var(--gold); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); }
html[data-theme='neon'] .boost-sec { font-family: var(--font-text); font-weight: 700; font-size: 12px; letter-spacing: 0.24em; }
html[data-theme='neon'] .boost-tag { border-radius: 4px; }
html[data-theme='neon'] :is(.patrol-route, .gx-card) { border-radius: var(--n-radius); }
html[data-theme='neon'] .patrol-route.selected { background: linear-gradient(180deg, rgba(209, 171, 91, 0.16), rgba(20, 16, 26, 0.85)); }
html[data-theme='neon'] .screen-profile .playercard { border-radius: 12px; overflow: hidden; }
html[data-theme='neon'] .screen-results .title { letter-spacing: 0.06em; }
html[data-theme='neon'] .theme-opt { border-radius: var(--n-radius); }

/* ================================================================== the hub's Home and Play (hub.css) */
html[data-theme='neon'] .hub-title {
  font-family: var(--font-title); font-size: clamp(24px, 2.6vw, 34px); letter-spacing: 0.03em; line-height: 1.05;
  background: linear-gradient(180deg, #fff6dc 0%, var(--gold) 55%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5));
}
html[data-theme='neon'] .hub-lobby > .row .hub-title { padding: 0; border: 0; background: linear-gradient(180deg, #fff6dc 0%, var(--gold) 55%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; }
html[data-theme='neon'] :is(.hub-kicker, .hub-kind, .hub-card-head) { font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .hub-kind { display: flex; align-items: center; gap: 10px; align-self: stretch; margin: 14px 0 4px; padding: 0; background: none; border: 0; color: var(--text-2); }
html[data-theme='neon'] .hub-kind::before { content: ''; width: 16px; height: 2px; flex: none; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
html[data-theme='neon'] .hub-kind::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
html[data-theme='neon'] .hub-kicker { display: flex; align-items: center; gap: 10px; }
html[data-theme='neon'] .hub-kicker::before { content: ''; width: 16px; height: 2px; flex: none; background: currentColor; box-shadow: 0 0 8px currentColor; }
html[data-theme='neon'] .hub-hero { background: radial-gradient(ellipse at 78% 50%, rgba(209, 171, 91, 0.14), transparent 60%), linear-gradient(135deg, var(--glass-hi), var(--glass)); }
html[data-theme='neon'] .hub-faces canvas { border: 1px solid var(--line-2); border-radius: 12px; background: radial-gradient(circle at 50% 38%, #2f2739, #120f17 75%); box-shadow: none; }
html[data-theme='neon'] .hub-mode { border-left: 1px solid var(--line-2); box-shadow: inset 3px 0 0 var(--gold-2), 0 24px 50px -28px rgba(0, 0, 0, 0.9); }
html[data-theme='neon'] .hub-mode.adventure { box-shadow: inset 3px 0 0 var(--team-red), 0 24px 50px -28px rgba(0, 0, 0, 0.9); }
html[data-theme='neon'] .hub-mode.daily { box-shadow: inset 3px 0 0 var(--gold), 0 24px 50px -28px rgba(0, 0, 0, 0.9); }
html[data-theme='neon'] .hub-mode.learn { box-shadow: inset 3px 0 0 var(--teal), 0 24px 50px -28px rgba(0, 0, 0, 0.9); }
html[data-theme='neon'] .hub-mode:hover, html[data-theme='neon'] .hub-mode:focus-visible { border-color: var(--line-3); box-shadow: inset 3px 0 0 var(--gold), 0 0 0 1px rgba(209, 171, 91, 0.25), 0 30px 60px -30px #000; }
html[data-theme='neon'] .hub-mode-ico { border: 1px solid var(--line-2); border-radius: 12px; background: radial-gradient(circle at 50% 40%, #2f2739, #120f17 75%); box-shadow: none; }
html[data-theme='neon'] .hub-mode-text b { color: var(--text); letter-spacing: 0.1em; }
html[data-theme='neon'] .hub-big { color: var(--gold); }

/* ================================================================== Snake (screens/snake.js: .snake-neon, its own art) */
html[data-theme='neon'] .screen-snake.snake-neon { background: var(--ink-0) var(--sk-bd) center / cover no-repeat; }
html[data-theme='neon'] .screen-snake.snake-neon::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(110% 90% at 50% 50%, transparent 40%, rgba(6, 5, 9, 0.7) 100%); }
html[data-theme='neon'] .snake-neon > * { position: relative; }
html[data-theme='neon'] .snake-neon .sk-title { display: block; width: min(420px, 100%); height: auto; margin: -6px auto 2px; image-rendering: pixelated; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6)); }
html[data-theme='neon'] .snake-neon .sk-over-art { display: block; width: min(200px, 50vw); height: auto; margin: 0 auto; image-rendering: pixelated; }
html[data-theme='neon'] .snake-neon .snake-hud {
  max-width: 820px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 12px;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass)); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
}
html[data-theme='neon'] .snake-neon .snake-hud b.gold { font: 400 24px/1 var(--font-num); }
html[data-theme='neon'] .snake-neon .snake-wave { color: var(--ember); letter-spacing: 0.06em; }
html[data-theme='neon'] .snake-neon .snake-canvas { border: 0; background: none; box-shadow: 0 40px 80px -30px #000, 0 0 60px -20px rgba(255, 140, 60, 0.25); }
/* the stage: the field, a brazier at each corner of its frame */
html[data-theme='neon'] .sk-stage { position: relative; line-height: 0; }
html[data-theme='neon'] .sk-brazier {
  position: absolute; z-index: 2; width: var(--cell, 48px); aspect-ratio: var(--bar, 48 / 72); pointer-events: none;
  background: var(--bz) 0 0 / calc(var(--bn, 6) * 100%) 100% no-repeat; image-rendering: pixelated;
  animation: n-steps var(--bd, 720ms) steps(calc(var(--bn, 6) - 1), jump-none) infinite;
  filter: drop-shadow(0 0 10px rgba(255, 140, 50, 0.45));
}
html[data-theme='neon'] .sk-brazier { width: calc(var(--cell, 48px) * 1.3); }
html[data-theme='neon'] .sk-brazier.tl { left: calc(var(--cell, 48px) * -1.45); top: calc(var(--cell, 48px) * 0.2); }
html[data-theme='neon'] .sk-brazier.tr { right: calc(var(--cell, 48px) * -1.45); top: calc(var(--cell, 48px) * 0.2); }
html[data-theme='neon'] .sk-brazier.bl { left: calc(var(--cell, 48px) * -1.45); bottom: calc(var(--cell, 48px) * 0.1); }
html[data-theme='neon'] .sk-brazier.br { right: calc(var(--cell, 48px) * -1.45); bottom: calc(var(--cell, 48px) * 0.1); }
@keyframes n-steps { from { background-position-x: 0; } to { background-position-x: 100%; } }
/* a level up: the perks as cards */
html[data-theme='neon'] .snake-neon .snake-perks { width: min(700px, calc(100vw - 24px)); padding: 18px; border-color: rgba(209, 171, 91, 0.45); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(209, 171, 91, 0.35); }
html[data-theme='neon'] .snake-neon .snake-perk-list { gap: 12px; }
html[data-theme='neon'] .snake-neon .snake-perk {
  --cut: 0px; aspect-ratio: 240 / 340; min-height: 0; padding: 14% 10% 10%; justify-content: flex-start; gap: 6px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6));
  text-transform: none; letter-spacing: 0.02em; background: var(--sk-card) center / 100% 100% no-repeat; image-rendering: pixelated;
}
html[data-theme='neon'] .snake-neon .snake-perk::before { display: none; }
html[data-theme='neon'] .snake-neon .snake-perk:hover, html[data-theme='neon'] .snake-neon .snake-perk:focus-visible { background-image: var(--sk-card-hover); transform: translateY(-4px); }
html[data-theme='neon'] .snake-neon .snake-perk b { font-family: var(--font-title); font-size: 17px; color: var(--gold); }
html[data-theme='neon'] .snake-neon .sk-perk-ico { width: 46%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)); }
html[data-theme='neon'] .snake-neon .snake-perk .kbd { position: absolute; top: 6%; left: 8%; }
@media (max-width: 700px) {
  html[data-theme='neon'] .snake-neon .snake-perk-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-theme='neon'] .snake-neon .snake-perk { padding: 12% 6% 6%; }
  html[data-theme='neon'] .snake-neon .snake-perk .xs { font-size: 9px; line-height: 1.2; }
  html[data-theme='neon'] .snake-neon .snake-perk b { font-size: 12px; }
}
/* (phones: the field takes the width, no room for the braziers) */
@media (max-width: 700px) { html[data-theme='neon'] .sk-brazier { display: none; } }
/* phones: the field across the width at the top, the score, health and pause under it, the arrow pad at the
   bottom (a finger dragged anywhere steers too: screens/snake.js), so the screen doesn't scroll or zoom under it */
@media (max-width: 700px) {
  html[data-theme='neon'] .screen-snake.snake-neon:has(.snake-wrap) { touch-action: none; }
  html[data-theme='neon'] .snake-neon .snake-body:has(.snake-wrap) { display: flex; flex-direction: column; padding: 4px 2px calc(10px + var(--safe-b)); overflow: hidden; }
  html[data-theme='neon'] .snake-neon .snake-wrap { flex: 1; min-height: 0; width: 100%; gap: 10px; }
  html[data-theme='neon'] .snake-neon .snake-wrap > .sk-stage { order: 1; }
  html[data-theme='neon'] .snake-neon .snake-hud { order: 2; width: calc(100% - 12px); }
  html[data-theme='neon'] .snake-neon .snake-hud .btn { min-width: 48px; min-height: 44px; }
  html[data-theme='neon'] .snake-neon .snake-pad { order: 3; display: grid; margin-top: auto; grid-template-columns: repeat(3, 76px); grid-template-rows: repeat(2, 60px); gap: 8px; }
  html[data-theme='neon'] .snake-neon .snake-pad .btn { --cut: 10px; min-height: 0; font-size: 22px; letter-spacing: 0; }
}

/* styles/neon-ui.css */
/* The Neon theme's own screens (src/ui/neon/: the redesign prototype, redesign/, built into the game): its top
   bar and phone bottom bar, its window-less Home and the pieces they share. Only under html[data-theme='neon'];
   styles/neon.css gives every other screen the same tokens, panels and buttons. Loaded after it. */

html[data-theme='neon'] {
  /* a game client's scale: above 1920 x 1080 the bar and Home grow with the window (ui/neon/kit.js sets it) and look as they do at 1080p */
  --nx-zoom: 1;
  --nx-bar: 64px;
  --hub-bar-h: calc(var(--nx-bar) * var(--nx-zoom));
  --nx-ui: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif; /* the client's small text: the pixel font reads as a phone game */
  --nx-cap: 'Alegreya SC', Georgia, serif;
  --nx-frame: #0b0910;
  --nx-dim: radial-gradient(ellipse 70% 90% at 50% 30%, rgba(11, 9, 16, 0.78), rgba(11, 9, 16, 0.94)); /* the place behind the column, so it stays quiet */
  --nx-panel: #110e16;
  --nx-side: clamp(270px, 22vw, 340px);
  --nx-rail: 400px; /* the modes' list (ui/neon/lobby.js) */
  --nx-col-left: max(0px, calc((100vw - var(--nx-page)) / 2)); /* where the page's column starts */
  --font-text: var(--nx-ui);
  --font-label: var(--nx-cap);
  /* Home's column: all of a laptop; on a big screen a column under the bar, stuck to it, the bar's things over it too, the
     place showing at its sides and under it. Narrower than it was (your call, 7 Nov: too wide, empty on a 4K screen): at
     most 72 % of the window (1920: 1382 px), 1640 px past 1440p (ui/neon/kit.js COLUMN_4K), less tall (your call: too long; shape 2, was 1.94) */
  --nx-shape: 2;
  --nx-page: max(1366px, min(72vw, calc((100vh - var(--hub-bar-h)) * var(--nx-shape)), var(--nx-page-max, 99999px)));
}
@media (max-width: 760px) { html[data-theme='neon'] { --nx-bar: 56px; --hub-bottom-h: 74px; } }

/* ================================================================== shared pieces */
html[data-theme='neon'] .nx-kicker { display: flex; align-items: center; gap: 10px; font: 700 12px/1.2 var(--font-label); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .nx-kicker::before { content: ''; width: 18px; height: 2px; flex: none; background: currentColor; box-shadow: 0 0 8px currentColor; }
html[data-theme='neon'] .nx-kicker.gold { color: var(--gold); }
html[data-theme='neon'] .nx-title {
  margin: 8px 0 0; font: 700 44px/1 var(--font-title); letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff6dc 0%, var(--gold) 55%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5));
}
html[data-theme='neon'] .nx-tag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 4px; white-space: nowrap;
  font: 700 11px/1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
  background: linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)), rgba(10, 8, 13, 0.78); border: 1px solid var(--line-2);
}
html[data-theme='neon'] .nx-tag.gold { color: var(--gold); border-color: rgba(209, 171, 91, 0.45); background: linear-gradient(rgba(209, 171, 91, 0.14), rgba(209, 171, 91, 0.14)), rgba(10, 8, 13, 0.8); }
html[data-theme='neon'] .nx-tag.live { color: #ff8a98; border-color: rgba(255, 90, 110, 0.5); background: linear-gradient(rgba(255, 90, 110, 0.16), rgba(255, 90, 110, 0.16)), rgba(10, 8, 13, 0.8); }
html[data-theme='neon'] .nx-tag.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: nx-blink 1.2s infinite; }
@keyframes nx-blink { 50% { opacity: 0.25; } }
html[data-theme='neon'] .nx-tag.order { color: #6492ff; border-color: rgba(100, 146, 255, 0.4); background: rgba(100, 146, 255, 0.14); }
html[data-theme='neon'] .nx-tag.wild { color: #6bd672; border-color: rgba(107, 214, 114, 0.4); background: rgba(107, 214, 114, 0.14); }
html[data-theme='neon'] .nx-tag.arcane { color: #b98aff; border-color: rgba(185, 138, 255, 0.4); background: rgba(185, 138, 255, 0.14); }
html[data-theme='neon'] .nx-tag.shadow { color: #ff6390; border-color: rgba(255, 99, 144, 0.4); background: rgba(255, 99, 144, 0.14); }
html[data-theme='neon'] .nx-tag.nx-fac-tag { height: 24px; padding: 0 9px 0 7px; border-color: currentColor; border-radius: 0; font: 700 12px/1 var(--nx-ui); letter-spacing: 0; text-transform: none; }
html[data-theme='neon'] .nx-bar { position: relative; height: 10px; border-radius: 6px; overflow: hidden; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-1); }
html[data-theme='neon'] .nx-bar > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(180deg, #ffe7a3, var(--gold) 45%, var(--gold-2)); transition: width 1.2s var(--ease-out); }
html[data-theme='neon'] .nx-bar > i::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 8px, rgba(255, 255, 255, 0.16) 8px 12px); animation: nx-bar-move 1.2s linear infinite; }
@keyframes nx-bar-move { to { background-position: 28px 0; } }
html[data-theme='neon'] .nx-bar.teal > i { background: linear-gradient(180deg, #ffe9a8, var(--gold) 45%, var(--gold-2)); }
html[data-theme='neon'] .nx-bar.xp > i { background: linear-gradient(180deg, #e0c8ff, #b98aff 45%, #6c3fc9); }
html[data-theme='neon'] .nx-bar.xp > i { background: url(../assets/art/ui-v3/ui/bars/xp-fill.webp) 0 0 / auto 100% repeat-x; image-rendering: pixelated; } /* (the v3 art's gold XP fill, 21 Nov) */
html[data-theme='neon'] .nx-bar.hp > i { background: linear-gradient(180deg, #b8f5b4, var(--good) 45%, #2f9c39); }
html[data-theme='neon'] .nx-bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
html[data-theme='neon'] .nx-bar-label b { font: 400 18px/1 var(--font-num); color: var(--text); letter-spacing: 0.04em; }
html[data-theme='neon'] .nx-sec { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 13px/1 var(--font-label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); }
html[data-theme='neon'] .nx-sec::after { content: ''; flex: 1; order: 2; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
html[data-theme='neon'] .nx-sec .meta, html[data-theme='neon'] .nx-sec .nx-link { order: 3; font-weight: 400; letter-spacing: 0.08em; text-transform: none; color: var(--muted); font-size: 13px; }
html[data-theme='neon'] .nx-link { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--gold) !important; }
html[data-theme='neon'] .nx-muted { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
html[data-theme='neon'] .nx-row { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background 0.25s; }
html[data-theme='neon'] .nx-row + .nx-row { box-shadow: 0 -1px 0 var(--line-1); }
html[data-theme='neon'] .nx-row::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--gold); transform: scaleY(0); transition: transform 0.3s var(--ease-out); box-shadow: 0 0 8px var(--gold); }
html[data-theme='neon'] .nx-row:hover, html[data-theme='neon'] .nx-row.sel { background: linear-gradient(90deg, rgba(209, 171, 91, 0.08), transparent 70%); }
html[data-theme='neon'] .nx-row:hover::before, html[data-theme='neon'] .nx-row.sel::before { transform: scaleY(1); }
html[data-theme='neon'] .nx-row .ri { width: 40px; height: 40px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-1); }
html[data-theme='neon'] .nx-row .ri.round { border-radius: 50%; }
html[data-theme='neon'] .nx-row .rt { flex: 1; min-width: 0; }
html[data-theme='neon'] .nx-row .rt b { display: block; }
html[data-theme='neon'] .nx-row .rt small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
html[data-theme='neon'] .panel.ornate::before, html[data-theme='neon'] .panel.ornate::after { content: ''; position: absolute; z-index: 2; width: 14px; height: 14px; border: 2px solid var(--gold-2); pointer-events: none; opacity: 0.85; }
html[data-theme='neon'] .panel.ornate::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
html[data-theme='neon'] .panel.ornate::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
html[data-theme='neon'] .btn.ghost { --bg: rgba(255, 255, 255, 0.04); filter: none; }
html[data-theme='neon'] .btn.ghost::before { box-shadow: inset 0 0 0 1px var(--line-3); }
html[data-theme='neon'] .btn.ghost:hover:not(:disabled) { filter: none; --bg: rgba(255, 255, 255, 0.08); }
html[data-theme='neon'] .nx-dot { position: absolute; top: 9px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 10px/16px var(--font-text); text-align: center; letter-spacing: 0; box-shadow: 0 0 0 2px var(--ink-1); }

/* ================================================================== the top bar: a desktop client's. One row, flat, sharp;
   yellow only on PLAY, words instead of icons, the wallet plain numbers in one quiet tone */
html[data-theme='neon'] .hub-bar.nx-topbar {
  /* (its things over the page's column, from its left edge to its right, the bar's line still the window's width: your call) */
  gap: 0; padding: var(--safe-t) calc(var(--nx-col-left) / var(--nx-zoom)) 0 max(14px, var(--safe-l), calc(var(--nx-col-left) / var(--nx-zoom) + 14px));
  zoom: var(--nx-zoom); height: calc(var(--safe-t) + var(--nx-bar));
  background: var(--nx-frame); border-bottom: 1px solid rgba(209, 171, 91, 0.2); box-shadow: none; backdrop-filter: none; font-family: var(--nx-ui);
}
html[data-theme='neon'] .nx-brand { flex: none; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
html[data-theme='neon'] .nx-mark { display: block; width: 42px; height: 42px; }
html[data-theme='neon'] .nx-playbtn {
  position: relative; isolation: isolate; flex: none; height: 42px; margin: 0 22px 0 14px; padding: 0 34px; border: 0; background: none; cursor: pointer;
  color: #1a1206; font: 700 19px/1 var(--nx-cap); letter-spacing: 0.14em; text-transform: uppercase; transition: transform 0.12s var(--ease-out), filter 0.2s;
}
html[data-theme='neon'] .nx-playbtn::before, html[data-theme='neon'] .nx-playbtn::after { content: ''; position: absolute; inset: 0; z-index: -1; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
html[data-theme='neon'] .nx-playbtn::before { background: linear-gradient(180deg, #d1ab5b, #b48d3e); transition: background 0.15s; }
html[data-theme='neon'] .nx-playbtn::after { background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.75) 50%, transparent 58%) no-repeat; background-size: 300% 100%; animation: nx-sheen 5.5s ease-in-out infinite; }
html[data-theme='neon'] .nx-playbtn.on::before { background: linear-gradient(180deg, #fff0a8, #d1ab5b); }
html[data-theme='neon'] .nx-playbtn.on { filter: drop-shadow(0 0 8px rgba(226, 194, 124, 0.45)); }
html[data-theme='neon'] .nx-playbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html[data-theme='neon'] .nx-nav { position: relative; display: flex; height: 100%; min-width: 0; }
html[data-theme='neon'] .nx-nav-item {
  position: relative; height: 100%; padding: 0 15px; border: 0; background: none; cursor: pointer; white-space: nowrap;
  color: #a79e91; font: 700 14px/1 var(--nx-cap); letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.15s;
}
html[data-theme='neon'] .nx-nav-item.on { color: var(--gold); }
/* a tab's bubble, as the bar's: inside its tab, where nothing cuts it */
html[data-theme='neon'] .tabs .btn.tab-badge::after { display: block; box-sizing: border-box; top: 5px; right: 0; left: auto; min-width: 14px; height: 14px; padding: 0 3px; border: 0; border-radius: 7px; background: var(--gold); color: #1a1206; font: 700 10px/14px var(--nx-ui); letter-spacing: 0; text-align: center; box-shadow: none; }
html[data-theme='neon'] .nx-nav-item .nx-dot { top: 13px; right: 1px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--gold); color: #1a1206; font: 700 10px/14px var(--nx-ui); letter-spacing: 0; box-shadow: none; animation: none; }
html[data-theme='neon'] .nx-top-right { margin-left: auto; height: 100%; display: flex; align-items: center; min-width: 0; }
html[data-theme='neon'] .nx-wallet { display: flex; align-items: center; gap: 14px; padding: 0 14px; }
html[data-theme='neon'] .nx-cur { display: flex; align-items: center; gap: 5px; padding: 4px 0; border: 0; background: none; cursor: pointer; color: #cfc7ba; transition: color 0.15s; }
html[data-theme='neon'] .nx-cur > img { width: 16px; height: 16px; filter: grayscale(0.9) brightness(1.15); transition: filter 0.15s; }
html[data-theme='neon'] .nx-cur b { font: 600 13px/1 var(--nx-ui); font-variant-numeric: tabular-nums; }
html[data-theme='neon'] .nx-tools { display: flex; align-items: center; padding: 0 6px; border-left: 1px solid var(--line-1); height: 28px; }
html[data-theme='neon'] .btn.nx-icon-btn { --cut: 0px; width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0; filter: none; border: 0; border-radius: 0; background: none; box-shadow: none; opacity: 0.72; transition: opacity 0.15s; }
html[data-theme='neon'] .btn.nx-icon-btn::before { display: none; }
html[data-theme='neon'] .btn.nx-icon-btn :is(img, canvas) { width: 22px; height: 22px; }
html[data-theme='neon'] .btn.nx-icon-btn.badge::after { top: 3px; right: 2px; left: auto; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--gold); color: #1a1206; font: 700 10px/14px var(--nx-ui); box-shadow: none; animation: none; }
html[data-theme='neon'] .nx-me { position: relative; isolation: isolate; overflow: hidden; flex: none; width: var(--nx-side); height: 100%; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 0; border-left: 1px solid var(--line-2); border-radius: 0; background: var(--nx-panel); cursor: pointer; text-align: left; color: var(--text); font-family: var(--nx-ui); }
html[data-theme='neon'] .nx-me-banner { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
html[data-theme='neon'] .nx-me::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 9, 16, 0.72), rgba(11, 9, 16, 0.42) 65%, rgba(11, 9, 16, 0.2)); transition: background 0.15s; }
html[data-theme='neon'] .nx-me:hover::after, html[data-theme='neon'] .nx-me.on::after { background: linear-gradient(90deg, rgba(11, 9, 16, 0.6), rgba(11, 9, 16, 0.28) 65%, rgba(11, 9, 16, 0.08)); }
html[data-theme='neon'] .nx-ava-wrap { position: relative; flex: none; display: block; }
html[data-theme='neon'] .nx-ava { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 0; border: 1px solid var(--gold-2); background: var(--ink-1); }
html[data-theme='neon'] .nx-ava :is(canvas, img, .framed) { max-width: 42px; max-height: 42px; }
/* a player's picture: a square gold line, or their frame in its place, filling the box */
html[data-theme='neon'] :is(.nx-ava, .nx-pf-ava, .lb2-ava):has(> .framed), html[data-theme='neon'] .nx-fr-face.framed { border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
html[data-theme='neon'] :is(.nx-ava, .nx-pf-ava, .lb2-ava) > .framed { width: 100%; height: 100%; max-width: none !important; max-height: none !important; }
html[data-theme='neon'] :is(.nx-ava, .nx-pf-ava, .nx-fr-face, .lb2-ava) .framed > :first-child, html[data-theme='neon'] .nx-fr-face.framed > :first-child { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; }
html[data-theme='neon'] .lb2-row .lb2-name.btn { min-width: 0; min-height: 0; padding: 0; justify-content: flex-start; }
html[data-theme='neon'] .lb2-ava { border: 1px solid var(--gold-2); background: var(--ink-1); }
html[data-theme='neon'] .lb2-ava > :is(canvas, img) { width: 76% !important; height: 76% !important; }
html[data-theme='neon'] .lb2-ava .framed > :first-child { transform: scale(0.76); }
/* (a frame's picture has empty margins: drawn bigger, its body is the size of the gold square, the picture inside as big in both) */
html[data-theme='neon'] :is(.nx-ava, .nx-pf-ava, .lb2-ava) .frame-pic, html[data-theme='neon'] .nx-fr-face.framed > .frame-pic { inset: -9%; width: 118% !important; height: 118% !important; max-width: none !important; max-height: none !important; }
html[data-theme='neon'] .nx-ava > :is(canvas, img) { width: 76% !important; height: 76% !important; }
html[data-theme='neon'] .nx-ava .framed > :first-child { transform: scale(0.76); }
html[data-theme='neon'] .nx-ava-lv { position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); min-width: 20px; height: 15px; padding: 0 4px; border: 1px solid var(--gold-2); background: #0b0910; color: var(--gold); font: 700 10px/13px var(--nx-ui); text-align: center; font-variant-numeric: tabular-nums; }
html[data-theme='neon'] .nx-me-name .tag { color: var(--gold); }
html[data-theme='neon'] .nx-me-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html[data-theme='neon'] .nx-me-name b { font: 600 14px/1.15 var(--nx-ui); text-shadow: 0 1px 3px #000; }
html[data-theme='neon'] .nx-me-name small { font: 400 12px/1.15 var(--nx-ui); color: #d6cfc2; text-shadow: 0 1px 3px #000; }
html[data-theme='neon'] .nx-me-xp { display: block; height: 2px; margin-top: 2px; background: rgba(255, 255, 255, 0.18); }
html[data-theme='neon'] .nx-me-xp > i { display: block; height: 100%; background: var(--gold); }
@media (max-width: 1180px) {
  html[data-theme='neon'] { --nx-rail: 320px; }
  html[data-theme='neon'] .nx-help { display: none; }
  html[data-theme='neon'] .nx-me { width: 190px; }
  html[data-theme='neon'] .nx-nav-item { padding: 0 11px; }
    html[data-theme='neon'] .nx-playbtn { margin-right: 12px; padding: 0 26px; }
}
@media (max-width: 1000px) {
  html[data-theme='neon'] .nx-me { width: 170px; padding: 0 10px; gap: 10px; }
  html[data-theme='neon'] .nx-cur[data-cur='fragments'] { display: none; }
  html[data-theme='neon'] .nx-wallet { gap: 10px; padding: 0 10px; }
  html[data-theme='neon'] .nx-nav-item { padding: 0 8px; font-size: 13px; letter-spacing: 0.06em; }
    html[data-theme='neon'] .nx-playbtn { margin: 0 8px 0 10px; padding: 0 20px; font-size: 17px; }
}
@media (max-width: 920px) and (min-width: 761px) {
  html[data-theme='neon'] .nx-me { width: 72px; justify-content: center; }
  html[data-theme='neon'] .nx-me-name { display: none; }
}
@media (max-width: 760px) {
  html[data-theme='neon'] :is(.nx-brand, .nx-playbtn, .nx-nav, .nx-help, .nx-me-xp) { display: none; }
  html[data-theme='neon'] .hub-bar.nx-topbar { padding-left: 0; }
  html[data-theme='neon'] .nx-top-right { flex: 1; }
  html[data-theme='neon'] .nx-tools { margin-left: auto; border-left: 0; padding: 0; }
  html[data-theme='neon'] .nx-me { width: 150px; padding: 0 8px; gap: 8px; }
  html[data-theme='neon'] .nx-ava { width: 36px; height: 36px; }
  html[data-theme='neon'] .nx-ava :is(canvas, img, .framed) { max-width: 34px; max-height: 34px; }
  html[data-theme='neon'] .nx-me-name b { font-size: 12px; }
  html[data-theme='neon'] .nx-me-name small { font-size: 11px; }
}

/* (the fight keeps its pixel words: its board is settled) */
html[data-theme='neon'] .screen-match { --font-text: 'Eriband Digits', 'Pixelify Sans', 'Trebuchet MS', sans-serif; --font-label: 'Eriband Digits', 'Alegreya SC', Georgia, serif; font-family: var(--font-text); }

/* (a banner comes down under the bar, so the places stay reachable) */
html[data-theme='neon'].hub-bar-on #layer-celebrate { top: calc(var(--safe-t) + var(--hub-bar-h) + 10px); }

/* ================================================================== phones: the bottom bar */
@media (max-width: 760px) {
  html[data-theme='neon'] .hub-bottom.nx-bnav {
    display: flex; align-items: stretch; gap: 0; left: 0; right: 0; bottom: 0; height: calc(74px + var(--safe-b)); padding: 0 6px var(--safe-b);
    background: linear-gradient(0deg, rgba(8, 6, 11, 0.98), rgba(8, 6, 11, 0.86)); border: 0; border-top: 1px solid var(--line-2); box-shadow: none; backdrop-filter: blur(12px);
  }
  html[data-theme='neon'] :is(.nx-btab, .nx-bplay) {
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer;
    color: var(--muted); font: 700 10px/1 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase;
  }
  html[data-theme='neon'] .nx-btab :is(img, canvas) { width: 32px; height: 32px; image-rendering: auto; filter: grayscale(0.8) brightness(0.7); transition: all 0.3s var(--ease-back); }
  html[data-theme='neon'] .nx-btab.on { color: var(--gold); }
  html[data-theme='neon'] .nx-btab.on :is(img, canvas) { filter: drop-shadow(0 0 6px rgba(209, 171, 91, 0.6)); transform: translateY(-3px); }
  html[data-theme='neon'] .nx-btab.on::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
  html[data-theme='neon'] .nx-btab .nx-dot { top: 6px; right: 18%; }
  html[data-theme='neon'] .nx-bplay { flex: 1.3; color: #d1ab5b; }
  html[data-theme='neon'] .nx-bplay .orb { width: 64px; height: 64px; margin-top: -30px; display: grid; place-items: center; border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #fff6c8, #d1ab5b 45%, #b48d3e); box-shadow: 0 0 0 4px var(--ink-1), 0 0 24px rgba(209, 171, 91, 0.55), inset 0 -4px 0 rgba(120, 70, 0, 0.4); }
  html[data-theme='neon'] .nx-bplay .orb :is(img, canvas) { width: 32px; height: 32px; image-rendering: auto; }
  html[data-theme='neon'] .nx-bplay .orb .nx-gold { filter: brightness(0.22); }
  html[data-theme='neon'] .nx-bplay.on .orb { box-shadow: 0 0 0 4px var(--ink-1), 0 0 30px rgba(226, 194, 124, 0.85), inset 0 -4px 0 rgba(120, 70, 0, 0.4); }
}

/* ================================================================== the menu (Home, Play) has no window: the place shows */
html[data-theme='neon'] #app > .screen.screen-menu.nx-menu {
  top: calc(var(--safe-t) + var(--hub-bar-h)); bottom: calc(var(--safe-b) + var(--hub-bottom-h)); left: 0; right: 0; width: auto; margin: 0;
  display: block; padding: 26px 28px 36px; overflow-y: auto; overflow-x: hidden; border: 0; border-radius: 0; background: rgba(8, 6, 11, 0.18); box-shadow: none;
}
html[data-theme='neon'] .screen-menu.nx-menu > .hub-main { max-width: 1480px; margin: 0 auto; padding: 0; overflow: visible; }
html[data-theme='neon'] .screen-menu.nx-menu > .hub-social { display: none; }
html[data-theme='neon'] .screen-menu.nx-menu.vignette::after { display: none; }
@media (max-width: 760px) { html[data-theme='neon'] #app > .screen.screen-menu.nx-menu { padding: 18px 16px 30px; } }

/* ================================================================== the menu: Home under the bar, as tall as its shape allows */
html[data-theme='neon'] #app > .screen.screen-menu.nx-menu { padding: 0; overflow: hidden; background: var(--nx-dim); }
html[data-theme='neon'] #app > .screen.screen-menu.nx-menu > .hub-main { width: 100%; max-width: none; height: 100%; margin: 0; padding: 0; }
@media (max-width: 960px) { html[data-theme='neon'] #app > .screen.screen-menu.nx-menu { overflow-y: auto; } html[data-theme='neon'] #app > .screen.screen-menu.nx-menu > .hub-main { height: auto; min-height: 100%; } }

/* ================================================================== Home: the banner, three tiles, the side. Solid, sharp, one colour */
html[data-theme='neon'] .nx-home { display: grid; grid-template-columns: minmax(0, 1fr) var(--nx-side); zoom: var(--nx-zoom); width: 100%; max-width: calc(var(--nx-page) / var(--nx-zoom)); height: 100%; margin: 0 auto; background: var(--nx-frame); box-shadow: 0 0 0 1px var(--line-1), 0 0 70px rgba(0, 0, 0, 0.65); color: #d9d2c6; font: 400 13px/1.35 var(--nx-ui); }
html[data-theme='neon'] .nx-home.solo { grid-template-columns: minmax(0, 1fr); }
html[data-theme='neon'] .nx-home button { font-family: inherit; color: inherit; cursor: pointer; }
html[data-theme='neon'] .nx-h-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(280px, 1fr) auto; gap: 12px; padding: 12px; overflow-y: auto; }
html[data-theme='neon'] .nx-feature { position: relative; min-height: 0; overflow: hidden; border: 1px solid var(--line-2); background: #000; }
html[data-theme='neon'] .nx-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0.45s; }
html[data-theme='neon'] .nx-slide.on { opacity: 1; visibility: visible; }
html[data-theme='neon'] .nx-slide > .art { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(0.8) brightness(0.82); }
html[data-theme='neon'] .nx-slide::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(8, 7, 12, 0.96), rgba(8, 7, 12, 0.84) 34%, rgba(8, 7, 12, 0.18) 66%, rgba(8, 7, 12, 0.4)), linear-gradient(0deg, rgba(8, 7, 12, 0.72), transparent 42%); }
html[data-theme='neon'] .nx-slide-in { position: absolute; z-index: 3; left: 32px; bottom: 54px; width: min(46%, 500px); }
html[data-theme='neon'] .nx-slide-in .k { display: flex; align-items: center; gap: 10px; font: 700 13px/1.2 var(--nx-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .nx-slide-in .fresh { padding: 2px 6px; border: 1px solid var(--gold-2); font: 600 10px/1.2 var(--nx-ui); letter-spacing: 0.04em; }
html[data-theme='neon'] .nx-slide-in h2 { margin: 8px 0 10px; font: 700 clamp(30px, 3.5vw, 48px)/1.05 var(--nx-cap); color: #f3ebde; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
html[data-theme='neon'] .nx-slide-in p { margin: 0; font-size: 15px; line-height: 1.4; color: #c9c1b4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html[data-theme='neon'] .nx-f-go { display: inline-block; margin-top: 16px; height: 38px; padding: 0 28px; border: 1px solid var(--gold-2); background: rgba(209, 171, 91, 0.08); color: #f0d9a0 !important; font: 700 14px/1 var(--nx-cap) !important; letter-spacing: 0.12em; text-transform: uppercase; transition: background 0.15s, color 0.15s; }
html[data-theme='neon'] .nx-f-go:disabled { opacity: 0.5; cursor: default; }
html[data-theme='neon'] .nx-f-go.main { border-color: #d1ab5b; background: linear-gradient(180deg, #d1ab5b, #b48d3e); color: #1c1206 !important; }
html[data-theme='neon'] .nx-f-earn { display: block; margin-top: 8px; font: 600 13px/1.3 var(--nx-ui); color: var(--gold); }
/* (PLAY while the tutorial waits: still there, gold ink on dark, so the tutorial's START is the one yellow thing) */
html[data-theme='neon'] .nx-playbtn.quiet, html[data-theme='neon'] .nx-playbtn.quiet.on { filter: none; color: var(--gold); }
html[data-theme='neon'] .nx-playbtn.quiet::before, html[data-theme='neon'] .nx-playbtn.quiet.on::before { background: linear-gradient(180deg, var(--gold-2), var(--gold-3)); }
html[data-theme='neon'] .nx-playbtn.quiet::after { animation: none; background: var(--ink-2); inset: 2px 3px; }
html[data-theme='neon'] .nx-bplay.quiet .orb, html[data-theme='neon'] .nx-bplay.quiet.on .orb { box-shadow: 0 0 0 4px var(--ink-1), inset 0 -4px 0 rgba(120, 70, 0, 0.4); }
html[data-theme='neon'] .nx-f-go.small { margin-top: 8px; height: auto; min-height: 32px; padding: 7px 18px; font-size: 13px !important; line-height: 1.15 !important; }
html[data-theme='neon'] .nx-f-pages { position: absolute; z-index: 4; left: 32px; bottom: 16px; display: flex; gap: 6px; }
html[data-theme='neon'] .nx-f-pages > button { width: 34px; height: 18px; padding: 0; border: 0; background: none; }
html[data-theme='neon'] .nx-f-pages > button::before { content: ''; display: block; height: 3px; background: rgba(255, 255, 255, 0.28); transition: background 0.15s; }
html[data-theme='neon'] .nx-f-pages > button.on::before { background: var(--gold); }
html[data-theme='neon'] .nx-showcase { position: absolute; z-index: 2; right: 4%; top: 0; bottom: 0; width: 46%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 54px; pointer-events: none; }
html[data-theme='neon'] .nx-hero { position: relative; flex: none; display: flex; justify-content: center; }
html[data-theme='neon'] .nx-hero-pet canvas { display: block; image-rendering: pixelated; }
html[data-theme='neon'] .nx-plate { position: absolute; right: 18px; bottom: 12px; padding: 4px 8px; border: 0; background: none; pointer-events: auto; text-align: right; }
html[data-theme='neon'] .nx-plate .nm { display: flex; flex-direction: column; gap: 1px; }
html[data-theme='neon'] .nx-plate .nm b { font: 700 18px/1.1 var(--nx-cap); letter-spacing: 0.04em; color: #f3ebde; text-shadow: 0 1px 6px #000; }
html[data-theme='neon'] .nx-plate .nm small { font: 400 12px/1.2 var(--nx-ui); color: #bdb4a6; text-shadow: 0 1px 4px #000; }

html[data-theme='neon'] .nx-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
html[data-theme='neon'] .nx-tile { min-width: 0; min-height: 168px; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-1); background: var(--nx-panel); text-align: left; }
html[data-theme='neon'] button.nx-tile { transition: border-color 0.15s, background 0.15s; }
html[data-theme='neon'] .nx-t-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; font: 700 13px/1.2 var(--nx-cap); letter-spacing: 0.1em; text-transform: uppercase; color: #e8dfd0; }
html[data-theme='neon'] .nx-t-head .meta { font: 400 12px/1.2 var(--nx-ui); letter-spacing: 0; text-transform: none; color: var(--muted); }
html[data-theme='neon'] .nx-t-head .meta.gold { color: var(--gold); font-weight: 600; }
html[data-theme='neon'] .nx-thin { height: 3px; background: rgba(255, 255, 255, 0.09); }
html[data-theme='neon'] .nx-thin > i { display: block; height: 100%; background: var(--gold); }
html[data-theme='neon'] .nx-jumps { display: flex; flex-direction: column; gap: 2px; margin: -2px -6px; }
html[data-theme='neon'] .nx-jump { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 6px; border: 0; background: none; text-align: left; transition: background 0.15s; }
html[data-theme='neon'] .nx-jump .tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
html[data-theme='neon'] .nx-jump .tx b { font-weight: 600; font-size: 13px; color: #f3ebde; }
html[data-theme='neon'] .nx-jump .tx small { font-size: 12px; color: var(--muted); }
html[data-theme='neon'] .nx-jump > i { font-style: normal; color: var(--muted); font-size: 16px; }
html[data-theme='neon'] .nx-qs { display: flex; flex-direction: column; gap: 9px; }
html[data-theme='neon'] .nx-q { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 4px; }
html[data-theme='neon'] .nx-q .mk { width: 10px; height: 10px; border: 1px solid var(--line-3); }
html[data-theme='neon'] .nx-q.done .mk { border-color: var(--gold); background: var(--gold); }
html[data-theme='neon'] .nx-q small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
html[data-theme='neon'] .nx-q b { font-size: 12px; font-weight: 600; color: var(--gold); }
html[data-theme='neon'] .nx-q .nx-thin { grid-column: 2 / -1; height: 2px; }
html[data-theme='neon'] .nx-pass-tier b { font: 700 26px/1.1 var(--nx-cap); color: #f3ebde; }
html[data-theme='neon'] .nx-pass-line { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }

html[data-theme='neon'] .nx-side { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line-1); background: var(--nx-panel); }
html[data-theme='neon'] .nx-side-ev { flex: none; border-bottom: 1px solid var(--line-2); }
/* a computer's widgets, one under the other, the column scrolling only if they don't fit */
html[data-theme='neon'] .nx-side.widgets { overflow-y: auto; scrollbar-width: thin; }
html[data-theme='neon'] .nx-side.widgets .nx-side-ev > .art { height: 60px; }
html[data-theme='neon'] .nx-wg-patrol .pw-body { display: none; } /* (its stage has the HP bars over their heads) */
html[data-theme='neon'] .nx-wg-holder small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[data-theme='neon'] .nx-wg-holder { flex: none; }
html[data-theme='neon'] .nx-wg { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line-1); border-radius: 0; background: none; text-align: left; font: 400 13px/1.3 var(--nx-ui); letter-spacing: 0; text-transform: none; }
html[data-theme='neon'] button.nx-wg { transition: background 0.15s; }
html[data-theme='neon'] button.nx-wg:hover { background: rgba(209, 171, 91, 0.06); }
html[data-theme='neon'] .nx-wg-row { display: flex; flex-direction: row; align-items: center; gap: 10px; }
html[data-theme='neon'] .nx-wg .in { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html[data-theme='neon'] .nx-wg .k { font: 700 12px/1.2 var(--nx-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .nx-wg b { font-size: 14px; font-weight: 600; color: #f3ebde; }
html[data-theme='neon'] .nx-wg small { font-size: 12px; line-height: 1.3; color: var(--muted); }
html[data-theme='neon'] .nx-wg small.gold { color: var(--gold); }
html[data-theme='neon'] .nx-wg .pic { flex: none; width: 64px; height: 64px; border: 1px solid var(--line-1); background-size: cover; background-position: center; }
html[data-theme='neon'] .nx-wg .clock { font: 400 18px/1.1 var(--font-num); letter-spacing: 0.04em; color: var(--gold); }
html[data-theme='neon'] .nx-wg-line { padding: 4px 6px; margin: 0 -6px; width: calc(100% + 12px); border: 0; }
html[data-theme='neon'] .nx-wg-faces { display: flex; gap: 6px; }
html[data-theme='neon'] .nx-wg-faces .face { flex: 1; min-width: 0; display: grid; place-items: center; height: 50px; border: 1px solid var(--line-1); background: #17131d; overflow: hidden; }
/* the patrol's box, docked: it lives in the widget, no box of its own */
html[data-theme='neon'] .nx-wg-patrol { padding: 0; }
html[data-theme='neon'] .nx-wg-patrol .patrol-widget { position: static; width: 100%; max-width: none; margin: 0; padding: 10px 14px; border: 0; border-image: none; border-radius: 0; background: none; box-shadow: none; animation: none; transform: none; cursor: pointer; }
html[data-theme='neon'] .nx-wg-patrol .patrol-widget:hover { background: rgba(209, 171, 91, 0.06); }
html[data-theme='neon'] .nx-side-ev > .art { height: 84px; background-size: cover; background-position: center; filter: saturate(0.8); }
html[data-theme='neon'] .nx-side-ev > .in { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 14px 12px; }
html[data-theme='neon'] .nx-side-ev .k { font: 700 12px/1.2 var(--nx-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .nx-side-ev b { font-size: 14px; font-weight: 600; color: #f3ebde; }
html[data-theme='neon'] .nx-side-ev small { font-size: 12px; color: var(--muted); }
html[data-theme='neon'] .nx-friends { flex: 1; min-height: 0; display: flex; flex-direction: column; }
html[data-theme='neon'] .nx-friends > .nx-t-head { flex: none; padding: 14px 14px 10px; }
html[data-theme='neon'] .nx-friends > .nx-t-head > :first-child { flex: 1; }
html[data-theme='neon'] .nx-side-link { padding: 0; border: 0; background: none; color: var(--gold) !important; font: 600 12px/1.2 var(--nx-ui); letter-spacing: 0; text-transform: none; }
html[data-theme='neon'] .nx-fr-list { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 8px; }
html[data-theme='neon'] .nx-fr-group { padding: 10px 14px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
html[data-theme='neon'] .nx-fr { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; padding: 5px 14px; border: 0; background: none; text-align: left; transition: background 0.15s; }
html[data-theme='neon'] .nx-fr.off { opacity: 0.55; }
html[data-theme='neon'] .nx-fr .who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
html[data-theme='neon'] .nx-fr .who b { font-weight: 600; font-size: 13px; color: #f3ebde; }
html[data-theme='neon'] .nx-fr-req { width: calc(100% - 28px); margin: 0 14px 6px; padding: 7px 10px; border: 1px solid var(--gold-2); background: rgba(209, 171, 91, 0.08); color: var(--gold) !important; font-size: 12px; font-weight: 600; text-align: left; }
html[data-theme='neon'] .nx-fr-none { margin: 2px 14px 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
html[data-theme='neon'] .nx-fr-go { padding: 0 14px; }
html[data-theme='neon'] .nx-side-foot { flex: none; display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 0; border-top: 1px solid var(--line-1); background: none; text-align: left; font-size: 13px; font-weight: 600; color: #cfc7ba !important; transition: background 0.15s; }
@media (max-width: 960px) {
  html[data-theme='neon'] .nx-home { display: block; height: auto; box-shadow: none; }
  html[data-theme='neon'] .nx-h-main { display: flex; flex-direction: column; overflow: visible; }
  html[data-theme='neon'] .nx-feature { flex: none; height: min(62vh, 440px); }
  html[data-theme='neon'] .nx-side { border-left: 0; border-top: 1px solid var(--line-1); }
}
@media (max-width: 760px) {
  html[data-theme='neon'] .nx-h-main { padding: 8px; gap: 8px; }
  html[data-theme='neon'] .nx-feature { height: 430px; }
  html[data-theme='neon'] .nx-slide::before { background: linear-gradient(180deg, rgba(8, 7, 12, 0.94), rgba(8, 7, 12, 0.7) 44%, rgba(8, 7, 12, 0.1) 72%, rgba(8, 7, 12, 0.6)); }
  html[data-theme='neon'] .nx-slide-in { left: 16px; right: 16px; top: 16px; bottom: auto; width: auto; }
  html[data-theme='neon'] .nx-slide-in h2 { font-size: 28px; margin: 6px 0 6px; }
  html[data-theme='neon'] .nx-slide-in p { font-size: 14px; -webkit-line-clamp: 2; }
  html[data-theme='neon'] .nx-f-go { margin-top: 10px; height: 34px; padding: 0 20px; }
  html[data-theme='neon'] .nx-f-pages { left: 16px; bottom: 10px; }
  html[data-theme='neon'] .nx-f-pages > button { width: 22px; }
  html[data-theme='neon'] .nx-showcase { right: 0; width: 70%; padding-bottom: 44px; }
  html[data-theme='neon'] .nx-plate { right: 8px; bottom: 6px; }
  html[data-theme='neon'] .nx-tiles { grid-auto-flow: row; gap: 8px; }
  html[data-theme='neon'] .nx-tile { min-height: 0; }
}

/* ================================================================== Home and the bar, alive: what answers the mouse, what moves by
   itself. Light and small moves in the one gold; everything here stops with Reduce motion (the end of this block) */
@keyframes nx-sheen { 0%, 62% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes nx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nx-from-side { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes nx-breathe { 50% { box-shadow: 0 0 14px rgba(209, 171, 91, 0.32), inset 0 0 8px rgba(209, 171, 91, 0.1); } }
@keyframes nx-ping { 0% { box-shadow: 0 0 0 0 rgba(106, 214, 110, 0.55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(106, 214, 110, 0); } }
@keyframes nx-fill { from { transform: scaleX(0); } to { transform: none; } }
@keyframes nx-bump { 0% { transform: scale(1); color: var(--gold); } 35% { transform: scale(1.28); color: #fff0a8; } 100% { transform: scale(1); } }
@keyframes nx-bell { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(14deg); } 92% { transform: rotate(-11deg); } 95% { transform: rotate(7deg); } 98% { transform: rotate(-4deg); } }

/* the bar */
html[data-theme='neon'] .nx-brand .nx-mark { transition: transform 0.6s var(--ease-back), filter 0.2s; }
html[data-theme='neon'] .nx-playbtn:active { transform: translateY(1px) scale(0.97); }
html[data-theme='neon'] .nx-playbtn .lbl { display: inline-block; transition: letter-spacing 0.25s var(--ease-out); }
html[data-theme='neon'] .nx-nav-item .lbl { display: inline-block; transition: transform 0.18s var(--ease-out); }
html[data-theme='neon'] .nx-nav-item::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: rgba(209, 171, 91, 0.7); transition: left 0.22s var(--ease-out), right 0.22s var(--ease-out); }
html[data-theme='neon'] .nx-nav-item:active .lbl { transform: translateY(1px) scale(0.96); }
html[data-theme='neon'] .nx-ink { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--gold); box-shadow: 0 0 10px rgba(209, 171, 91, 0.8); pointer-events: none; transition: transform 0.38s var(--ease-out), width 0.38s var(--ease-out); }
html[data-theme='neon'] .nx-cur > img { transition: filter 0.15s, transform 0.3s var(--ease-back); }
html[data-theme='neon'] .nx-cur:active { transform: translateY(1px); }
html[data-theme='neon'] .nx-cur.bump b, html[data-theme='neon'] .nx-cur.bump > img { display: inline-block; animation: nx-bump 0.7s var(--ease-out); }
html[data-theme='neon'] .btn.nx-icon-btn :is(img, canvas) { transition: transform 0.35s var(--ease-back), filter 0.2s; }
html[data-theme='neon'] .btn.nx-icon-btn:active :is(img, canvas) { transform: scale(0.86); }
html[data-theme='neon'] .btn.nx-bell.badge :is(img, canvas) { animation: nx-bell 6s ease-in-out infinite; transform-origin: 50% 15%; }
html[data-theme='neon'] .nx-me-banner { scale: 1.1; animation: nx-banner-drift 36s ease-in-out infinite alternate; transition: scale 1.1s var(--ease-out); }
@keyframes nx-banner-drift { from { translate: -4% 0; } to { translate: 4% 0; } }
html[data-theme='neon'] .nx-ava { transition: box-shadow 0.25s, border-color 0.25s; }
html[data-theme='neon'] .nx-ava-lv { transition: transform 0.3s var(--ease-back), background 0.2s, color 0.2s; }
html[data-theme='neon'] .nx-me:active .nx-ava-wrap { transform: scale(0.96); }
html[data-theme='neon'] .nx-me-xp { position: relative; overflow: hidden; }
html[data-theme='neon'] .nx-me-xp::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.85) 50%, transparent 58%) no-repeat; background-size: 300% 100%; animation: nx-sheen 7s ease-in-out infinite; }

/* the banner: it comes in, the picture drifts and leans with the mouse, the words rise one after another */
html[data-theme='neon'] .nx-feature { animation: nx-rise 0.45s var(--ease-out) both; }
html[data-theme='neon'] .nx-slide > .art { scale: 1.06; translate: calc(var(--px, 0) * -12px) calc(var(--py, 0) * -7px); transition: translate 0.6s var(--ease-out); }
html[data-theme='neon'] .nx-slide.on > .art { animation: nx-drift 18s ease-out both; }
@keyframes nx-drift { from { scale: 1.06; } to { scale: 1.15; } }
html[data-theme='neon'] .nx-dust { position: absolute; z-index: 1; left: 0; bottom: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0.5; image-rendering: pixelated; aspect-ratio: 1; }
html[data-theme='neon'] .nx-sparks { position: absolute; z-index: 1; inset: 0; display: flex; flex-wrap: wrap; align-content: flex-end; overflow: hidden; pointer-events: none; mix-blend-mode: screen; opacity: 0.5; }
html[data-theme='neon'] .nx-sparks > * { flex: none; image-rendering: pixelated; }
html[data-theme='neon'] .nx-slide.on .nx-slide-in > * { animation: nx-rise 0.5s var(--ease-out) both; }
html[data-theme='neon'] .nx-slide.on .nx-slide-in > :nth-child(2) { animation-delay: 0.07s; }
html[data-theme='neon'] .nx-slide.on .nx-slide-in > :nth-child(3) { animation-delay: 0.14s; }
html[data-theme='neon'] .nx-slide.on .nx-slide-in > :nth-child(4) { animation-delay: 0.21s; }
html[data-theme='neon'] .nx-slide-in h2 { text-shadow: none; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7)); background: linear-gradient(105deg, #f3ebde 44%, #fff2c4 50%, #f3ebde 56%) no-repeat; background-size: 300% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme='neon'] .nx-slide.on .nx-slide-in h2 { animation: nx-rise 0.5s var(--ease-out) 0.07s both, nx-title-light 1.5s ease-out 0.35s both; }
@keyframes nx-title-light { from { background-position: 100% 0; } to { background-position: 0 0; } }
html[data-theme='neon'] .nx-slide-in .fresh { animation: nx-breathe 2.4s ease-in-out infinite; }
/* the main button of a turn: gold fills it from the left */
html[data-theme='neon'] .nx-f-go { background-image: linear-gradient(90deg, #d1ab5b, #ffe29a); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 0.26s var(--ease-out), color 0.16s, transform 0.12s var(--ease-out), box-shadow 0.2s; }
html[data-theme='neon'] .nx-slide.on .nx-f-go { animation: nx-rise 0.5s var(--ease-out) 0.21s both, nx-breathe 3s ease-in-out 1s infinite; }
html[data-theme='neon'] .nx-f-go:active:not(:disabled) { transform: translateY(1px) scale(0.97); }
/* the pager: its bar fills while the turn lasts (ui/neon/home.js goes on when it's full), and waits while you're over it */
html[data-theme='neon'] .nx-f-pages > button { position: relative; transition: transform 0.15s; }
html[data-theme='neon'] .nx-f-pages > button::before { background: rgba(255, 255, 255, 0.28); }
html[data-theme='neon'] .nx-f-pages > button.on::before { background: rgba(255, 255, 255, 0.28); }
html[data-theme='neon'] .nx-f-pages > button.on::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); box-shadow: 0 0 8px rgba(209, 171, 91, 0.8); transform-origin: left; animation: nx-page-fill 8s linear both; }
@keyframes nx-page-fill { from { transform: scaleX(0); } to { transform: none; } }
html[data-theme='neon'] .nx-feature:hover .nx-f-pages > button.on::after, html[data-theme='neon'] .nx-feature:has(:focus-visible) .nx-f-pages > button.on::after { animation-play-state: paused; }
/* your champion and your mascot */
html[data-theme='neon'] .nx-hero { translate: calc(var(--px, 0) * 10px) calc(var(--py, 0) * 4px); transition: translate 0.6s var(--ease-out); animation: nx-hero-in 0.7s var(--ease-back) 0.15s both; }
@keyframes nx-hero-in { from { opacity: 0; transform: translateX(46px) scale(0.94); } to { opacity: 1; transform: none; } }
html[data-theme='neon'] .nx-hero canvas { position: relative; pointer-events: none; transition: filter 0.25s; }
/* (drawn pixel for pixel: never smoothed over, wherever it lands) */
html[data-theme='neon'] .nx-fig { image-rendering: pixelated; }
html[data-theme='neon'] .nx-fig.painted { image-rendering: auto; } /* (a painted figure: drawn smooth, render/art.js paintedFigure) */
/* a phone sprite stays still on the page while the scene leans with the mouse: moved a part of a pixel, its pixels came out
   uneven (your report, 7 Nov: render problems); its own drawing moves it, in whole pixels */
html[data-theme='neon'] .nx-hero:has(> .nx-fig:not(.painted)) { translate: none; }
/* (the painting is smaller than Home's picture on these screens: its pixels kept sharp, not blown up soft) */
@media (min-resolution: 2.5dppx), (min-width: 2400px), (min-resolution: 2dppx) and (min-width: 1200px) {
  html[data-theme='neon'] .nx-slide > .art { image-rendering: pixelated; }
}
html[data-theme='neon'] .nx-hero::before { content: ''; position: absolute; left: 50%; bottom: -10px; width: 56%; height: 30px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(209, 171, 91, 0.32), rgba(209, 171, 91, 0.1) 62%, transparent); animation: nx-ground 3.6s ease-in-out infinite; }
@keyframes nx-ground { 50% { opacity: 0.55; scale: 1.12 1; } }
html[data-theme='neon'] .nx-hero-hit { position: absolute; left: 26%; right: 26%; top: 8%; bottom: 0; padding: 0; border: 0; background: none; pointer-events: auto; }
html[data-theme='neon'] .nx-hero:has(.nx-hero-hit:active) canvas { filter: brightness(1.25); }
html[data-theme='neon'] .nx-say { position: absolute; z-index: 4; right: 66%; top: 6%; width: max-content; max-width: 240px; padding: 8px 12px; border: 1px solid var(--gold-2); background: rgba(13, 10, 18, 0.94); color: #f3ebde; font: italic 400 14px/1.3 var(--nx-ui); pointer-events: none; opacity: 0; transform: translateY(8px) scale(0.92); transform-origin: right bottom; transition: opacity 0.2s, transform 0.3s var(--ease-back); }
html[data-theme='neon'] .nx-say::after { content: ''; position: absolute; right: -6px; bottom: 10px; width: 10px; height: 10px; background: inherit; border: 1px solid var(--gold-2); border-left: 0; border-bottom: 0; transform: rotate(45deg); }
html[data-theme='neon'] .nx-say.on { opacity: 1; transform: none; }
html[data-theme='neon'] .nx-hero-pet { position: absolute; right: 0; bottom: 50px; padding: 0; border: 0; background: none; pointer-events: auto; translate: calc(var(--px, 0) * 18px) calc(var(--py, 0) * 6px); transition: translate 0.6s var(--ease-out), scale 0.25s var(--ease-back); animation: nx-pet-in 0.6s var(--ease-back) 0.5s both; }
@keyframes nx-pet-in { from { opacity: 0; transform: translateY(26px) scale(0.6); } to { opacity: 1; transform: none; } }
html[data-theme='neon'] .nx-f-earn-in { display: inline-flex; align-items: center; gap: 8px; }
html[data-theme='neon'] .nx-f-earn-in .num { font: inherit; }
html[data-theme='neon'] .nx-showcase .nx-hero-pet { left: 0; right: auto; }
html[data-theme='neon'] .nx-hero-pet.hop { animation: nx-pet-hop 0.6s var(--ease-out); }
@keyframes nx-pet-hop { 0% { transform: none; } 18% { transform: scale(1.14, 0.84); } 48% { transform: translateY(-34px) scale(0.92, 1.1); } 76% { transform: scale(1.1, 0.9); } 100% { transform: none; } }
html[data-theme='neon'] .nx-pet-emote { position: absolute; left: 50%; bottom: 92%; width: 44px; height: 44px; pointer-events: none; animation: nx-emote-up 1.6s var(--ease-out) both; }
@keyframes nx-emote-up { 0% { opacity: 0; transform: translate(-50%, 14px) scale(0.5); } 18% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 80% { opacity: 1; transform: translate(-50%, -18px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -30px) scale(0.9); } }
html[data-theme='neon'] .nx-plate .nm b { transition: color 0.15s; }
html[data-theme='neon'] .nx-plate .nm { transition: transform 0.2s var(--ease-out); }
html[data-theme='neon'] .nx-plate:active .nm { transform: translateY(1px); }

/* the tiles: they come in one by one; gold corners and a soft light under the mouse */
html[data-theme='neon'] .nx-tile { position: relative; overflow: hidden; animation: nx-rise 0.5s var(--ease-out) calc(0.12s + var(--i, 0) * 0.07s) both; transition: border-color 0.2s, background 0.2s, transform 0.12s var(--ease-out); }
html[data-theme='neon'] .nx-tile::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--gold), var(--gold)) left top no-repeat, linear-gradient(var(--gold), var(--gold)) left top no-repeat, linear-gradient(var(--gold), var(--gold)) right bottom no-repeat, linear-gradient(var(--gold), var(--gold)) right bottom no-repeat; background-size: 0 1px, 1px 0, 0 1px, 1px 0; transition: background-size 0.28s var(--ease-out); }
html[data-theme='neon'] .nx-tile::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(209, 171, 91, 0.1), transparent 70%); transition: opacity 0.25s; }
html[data-theme='neon'] .nx-tile > * { position: relative; z-index: 1; }
html[data-theme='neon'] button.nx-tile:active { transform: translateY(1px) scale(0.995); }
html[data-theme='neon'] .nx-t-head .meta { transition: transform 0.2s var(--ease-out), color 0.15s; }
/* a thin bar: it fills when the page opens, a light runs along it */
html[data-theme='neon'] .nx-thin > i { position: relative; transform-origin: left; overflow: hidden; animation: nx-fill 0.9s var(--ease-out) 0.3s both; }
html[data-theme='neon'] .nx-thin > i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%) no-repeat; background-size: 300% 100%; animation: nx-sheen 4.5s ease-in-out infinite; }
html[data-theme='neon'] .nx-t-head .meta.gold::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--gold); vertical-align: 1px; animation: nx-dot-pulse 1.6s ease-in-out infinite; }
@keyframes nx-dot-pulse { 50% { box-shadow: 0 0 0 4px rgba(209, 171, 91, 0.22); } }
html[data-theme='neon'] .nx-q.done .mk { animation: nx-breathe 2.6s ease-in-out infinite; }
html[data-theme='neon'] .nx-q b { background: linear-gradient(105deg, var(--gold) 42%, #fff6d6 50%, var(--gold) 58%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nx-sheen 3.2s ease-in-out infinite; }
html[data-theme='neon'] .nx-pass-tier b { display: inline-block; transition: transform 0.25s var(--ease-out), color 0.2s; }
/* jump back in: light runs over each picture in turn; the one you point at wakes up */
html[data-theme='neon'] .nx-jump { position: relative; transition: background 0.18s, transform 0.18s var(--ease-out); }
html[data-theme='neon'] .nx-jump .th { position: relative; display: block; width: 54px; height: 34px; overflow: hidden; border: 1px solid var(--line-2); transition: border-color 0.18s, box-shadow 0.2s; }
html[data-theme='neon'] .nx-jump .th img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75); scale: 1.02; transition: scale 0.4s var(--ease-out), filter 0.25s; }
html[data-theme='neon'] .nx-jump .th::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 38%, rgba(255, 236, 180, 0.7) 50%, transparent 62%) no-repeat; background-size: 300% 100%; animation: nx-sheen 4.8s ease-in-out calc(var(--i, 0) * 1.3s) infinite; }
html[data-theme='neon'] .nx-jump.hot .th { border-color: var(--gold-2); animation: nx-breathe 1.8s ease-in-out infinite; }
html[data-theme='neon'] .nx-jump .tx b { transition: color 0.15s; }
html[data-theme='neon'] .nx-jump > i { transition: transform 0.2s var(--ease-back), color 0.15s; }
html[data-theme='neon'] .nx-jump:active { transform: scale(0.985); }

/* the side: it slides in; a gold edge on the friend you point at; those online pulse */
html[data-theme='neon'] .nx-side { animation: nx-from-side 0.5s var(--ease-out) 0.1s both; }
html[data-theme='neon'] .nx-fr { position: relative; transition: background 0.15s, padding-left 0.18s var(--ease-out); }
html[data-theme='neon'] .nx-fr::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold); transform: scaleY(0); transition: transform 0.2s var(--ease-out); }
html[data-theme='neon'] .nx-fr-list.first .nx-fr { animation: nx-from-side 0.35s var(--ease-out) calc(var(--i, 0) * 0.05s) both; }
html[data-theme='neon'] .nx-fr .dot.on { animation: nx-ping 2.2s ease-out infinite; }
html[data-theme='neon'] .nx-fr .dot.off { background: #6d6673; box-shadow: none; }
html[data-theme='neon'] .nx-fr .so-dot:not(.on) { display: none; }
html[data-theme='neon'] .nx-fr:active { background: rgba(255, 255, 255, 0.09); }
html[data-theme='neon'] .nx-side-link { position: relative; }
html[data-theme='neon'] .nx-side-link::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--gold); transition: right 0.2s var(--ease-out); }
html[data-theme='neon'] .nx-side-foot :is(img, canvas) { transition: transform 0.3s var(--ease-back); }
html[data-theme='neon'] .nx-side-ev { position: relative; animation: nx-rise 0.5s var(--ease-out) 0.2s both; }
html[data-theme='neon'] .nx-side-ev > .art { animation: nx-ev-drift 14s ease-in-out infinite alternate; }
@keyframes nx-ev-drift { from { background-position: 30% 50%; } to { background-position: 70% 50%; } }
html[data-theme='neon'] .nx-side-ev .k::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--gold); vertical-align: 1px; animation: nx-dot-pulse 1.3s ease-in-out infinite; }

/* what only a mouse can do (a finger would leave it stuck on) */
@media (hover: hover) {
  html[data-theme='neon'] .nx-brand:hover .nx-mark { transform: rotate(360deg); filter: brightness(1.2); }
  html[data-theme='neon'] .nx-playbtn:hover { filter: drop-shadow(0 0 12px rgba(226, 194, 124, 0.65)); transform: translateY(-1px); }
  html[data-theme='neon'] .nx-playbtn:hover::before { background: linear-gradient(180deg, #e2c27c, #d1ab5b); }
  html[data-theme='neon'] .nx-playbtn:hover::after { animation-duration: 1.1s; }
  html[data-theme='neon'] .nx-playbtn:hover .lbl { letter-spacing: 0.2em; }
  html[data-theme='neon'] .nx-nav-item:hover { color: #f3ebde; }
  html[data-theme='neon'] .nx-nav-item:hover .lbl { transform: translateY(-1px); }
  html[data-theme='neon'] .nx-nav-item:hover::after { left: 26%; right: 26%; }
  html[data-theme='neon'] .nx-cur:hover { color: #fff; }
  html[data-theme='neon'] .nx-cur:hover > img { filter: none; transform: scale(1.3) rotate(-10deg); }
  html[data-theme='neon'] .btn.nx-icon-btn:hover:not(:disabled) { background: none; opacity: 1; transform: none; filter: none; }
  html[data-theme='neon'] .btn.nx-icon-btn:hover :is(img, canvas) { transform: translateY(-2px) scale(1.1); filter: drop-shadow(0 0 5px rgba(209, 171, 91, 0.6)); }
  html[data-theme='neon'] .btn.nx-gear:hover :is(img, canvas) { transform: rotate(75deg) scale(1.1); }
  html[data-theme='neon'] .nx-me:hover .nx-me-banner { scale: 1.2; }
  html[data-theme='neon'] .nx-me:hover .nx-ava { border-color: var(--gold); box-shadow: 0 0 12px rgba(209, 171, 91, 0.55); }
  html[data-theme='neon'] .nx-me:hover .nx-ava-lv { background: var(--gold); color: #1a1206; transform: translateX(-50%) scale(1.14); }
  html[data-theme='neon'] .nx-f-go:hover:not(:disabled) { background-size: 100% 100%; color: #1a1206 !important; box-shadow: 0 0 16px rgba(209, 171, 91, 0.45); animation-play-state: running, paused; }
  html[data-theme='neon'] .nx-f-pages > button:hover::before { background: rgba(255, 255, 255, 0.65); }
  html[data-theme='neon'] .nx-f-pages > button:hover { transform: scaleY(1.5); }
  html[data-theme='neon'] .nx-hero:has(.nx-hero-hit:hover) canvas { filter: brightness(1.1) drop-shadow(0 0 16px rgba(209, 171, 91, 0.4)); }
  html[data-theme='neon'] .nx-hero-pet:hover { scale: 1.08; }
  html[data-theme='neon'] .nx-plate:hover .nm b { color: var(--gold); }
  html[data-theme='neon'] .nx-plate:hover .nm { transform: translateX(-3px); }
  html[data-theme='neon'] .nx-tile:hover { border-color: var(--line-3); }
  html[data-theme='neon'] .nx-tile:hover::before { background-size: 26px 1px, 1px 26px, 26px 1px, 1px 26px; }
  html[data-theme='neon'] .nx-tile:hover::after { opacity: 1; }
  html[data-theme='neon'] button.nx-tile:hover { background: #15111b; }
  html[data-theme='neon'] button.nx-tile:hover .nx-t-head .meta { transform: translateX(3px); color: var(--gold); }
  html[data-theme='neon'] button.nx-tile:hover .nx-pass-tier b { transform: translateX(3px); color: var(--gold); }
  html[data-theme='neon'] .nx-jump:hover { background: rgba(209, 171, 91, 0.07); transform: translateX(3px); }
  html[data-theme='neon'] .nx-jump:hover .th { border-color: var(--gold); box-shadow: 0 0 12px rgba(209, 171, 91, 0.45); }
  html[data-theme='neon'] .nx-jump:hover .th img { scale: 1.22; filter: saturate(1.1) brightness(1.08); }
  html[data-theme='neon'] .nx-jump:hover .th::after { animation-duration: 1.2s; animation-delay: 0s; }
  html[data-theme='neon'] .nx-jump:hover .tx b { color: var(--gold); }
  html[data-theme='neon'] .nx-jump:hover > i { transform: translateX(4px); color: var(--gold); }
  html[data-theme='neon'] .nx-fr:hover { background: rgba(209, 171, 91, 0.06); padding-left: 18px; opacity: 1; }
  html[data-theme='neon'] .nx-fr:hover::before { transform: none; }
  html[data-theme='neon'] .nx-side-link:hover::after { right: 0; }
  html[data-theme='neon'] .nx-side-foot:hover { background: rgba(209, 171, 91, 0.06); color: var(--gold) !important; }
  html[data-theme='neon'] .nx-side-foot:hover :is(img, canvas) { transform: scale(1.18) rotate(-6deg); }
}
/* Reduce motion: everything stands still, only what's needed to read it stays */
html[data-theme='neon'].reduce-motion :is(.nx-topbar, .nx-home, .nx-play, .nx-pl-rail) *, html[data-theme='neon'].reduce-motion :is(.nx-topbar, .nx-home, .nx-play, .nx-pl-rail) *::before, html[data-theme='neon'].reduce-motion :is(.nx-topbar, .nx-home, .nx-play, .nx-pl-rail) *::after { animation: none !important; transition-duration: 0.01ms !important; }
html[data-theme='neon'].reduce-motion :is(.nx-home, .nx-play, .nx-pl-rail) { animation: none !important; }
html[data-theme='neon'].reduce-motion .nx-slide > .art { translate: none; }

/* (still used by Heroes and the Shop) */
html[data-theme='neon'] .nx-stat { display: flex; align-items: center; gap: 10px; min-width: 170px; padding: 8px 14px 8px 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line-1); backdrop-filter: blur(6px); }
html[data-theme='neon'] .nx-stat > img { width: 30px; height: 30px; }
html[data-theme='neon'] .nx-stat small { font-family: var(--font-label); display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
html[data-theme='neon'] .nx-stat b { font: 400 24px/1 var(--font-num); letter-spacing: 0.04em; }
html[data-theme='neon'] .nx-pass { display: flex; align-items: stretch; gap: 6px; margin: 14px 0 18px; }
html[data-theme='neon'] .nx-pass .tier { position: relative; flex: 1; aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line-1); }
html[data-theme='neon'] .nx-pass .tier img { width: 60%; height: auto; }
html[data-theme='neon'] .nx-pass .tier.got { border-color: var(--good); }
html[data-theme='neon'] .nx-pass .tier.got::after { content: '✓'; position: absolute; right: -4px; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--good); color: #062006; font: 700 11px/16px var(--font-text); text-align: center; }
html[data-theme='neon'] .nx-pass .tier.ready { border-color: var(--gold); box-shadow: 0 0 16px -4px var(--gold); }
html[data-theme='neon'] .nx-pass .tier.next { border-color: var(--gold); box-shadow: 0 0 16px -4px var(--gold); animation: nx-glow 2s ease-in-out infinite; }
html[data-theme='neon'] .nx-pass .tier.lock img { filter: grayscale(1) brightness(0.5); }
html[data-theme='neon'] .nx-pass .tier small { position: absolute; bottom: -18px; font: 400 14px/1 var(--font-num); color: var(--muted); }
html[data-theme='neon'] .nx-stat { min-width: 0; padding: 6px 10px 6px 6px; }
html[data-theme='neon'] .nx-stat > img { width: 24px; height: 24px; }
html[data-theme='neon'] .nx-stat b { font-size: 20px; }

/* ================================================================== only the center scrolls (ui/neon/kit.js fadeScroll): what leaves fades out at the top, what's coming fades in from the bottom */
html[data-theme='neon'] .nx-fade {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-t, 0px), #000 calc(100% - var(--fade-b, 0px)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-t, 0px), #000 calc(100% - var(--fade-b, 0px)), transparent 100%);
  scrollbar-width: thin; scrollbar-color: rgba(209, 171, 91, 0.32) transparent;
}
html[data-theme='neon'] .nx-fade::-webkit-scrollbar { width: 6px; }
html[data-theme='neon'] .nx-fade::-webkit-scrollbar-track { background: transparent; }
html[data-theme='neon'] .nx-fade::-webkit-scrollbar-thumb { background: rgba(209, 171, 91, 0.32); border-radius: 3px; }

/* ================================================================== a mode beside the list: as much as fits, nothing wasted */
@media (min-width: 1001px) {
  html[data-theme='neon'].nx-lobby .screen.win { display: flex; flex-direction: column; }
  html[data-theme='neon'].nx-lobby .screen.win > .screen-head { flex: none; padding: 12px 24px 6px; }
  html[data-theme='neon'].nx-lobby .screen.win > .screen-head .title { font-size: 26px; }
  /* (no back arrow beside the modes' list, your call 7 Nov: the list and the bar are the way about) */
  html[data-theme='neon'].nx-lobby .screen.win > .screen-head > .btn.icon:first-child:has([data-hint="back"]) { display: none; }
  html[data-theme='neon'].nx-lobby .screen.win > .nx-head { flex: none; margin: 0; padding: 12px 24px 4px; }
  html[data-theme='neon'].nx-lobby .screen.win > .nx-head .nx-title { font-size: 26px; }
  html[data-theme='neon'].nx-lobby .screen.win > .nx-head.nx-so-head { display: none; } /* (the list already says Online; you're top right) */
  html[data-theme='neon'].nx-lobby .screen-online > div:not(.screen-body) { padding-top: 8px; }
  html[data-theme='neon'].nx-lobby .screen.win > .screen-body { flex: 1; min-height: 0; padding: 6px 24px 14px; }
  html[data-theme='neon'].nx-lobby .screen.win > div:not(.screen-head):not(.screen-body) { padding-left: 24px; padding-right: 24px; }
  html[data-theme='neon'].nx-lobby .screen.win .screen-body :is(.max, .max-s, .max-m) { max-width: none; }
  html[data-theme='neon'].nx-lobby .screen.win .screen-body .col { gap: 10px; }
  html[data-theme='neon'].nx-lobby .screen.win .screen-body .panel { padding: 10px 14px; }
  html[data-theme='neon'].nx-lobby .screen.win .screen-body .panel.has-tab { padding-top: 8px; }
}
html[data-theme='neon'] .nx-foot { flex: none; padding-top: 8px; padding-bottom: 14px; }
html[data-theme='neon'] .nx-foot .btn { max-width: 460px; }
html[data-theme='neon'] .nx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
html[data-theme='neon'] .nx-two > .panel { margin: 0; display: flex; flex-direction: column; }
html[data-theme='neon'] .nx-two > .panel > .btn { margin-top: auto; }
/* vs CPU, 2 Players */
html[data-theme='neon'] .nx-setup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
html[data-theme='neon'] .nx-setup > .col { min-width: 0; gap: 12px; }
html[data-theme='neon'] .nx-opts { display: grid; grid-template-columns: repeat(min(var(--n), 3), minmax(0, 1fr)); gap: 6px; }
html[data-theme='neon'] .nx-opts.pics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-theme='neon'] .nx-opt { position: relative; min-width: 0; min-height: 36px; padding: 6px 8px; border: 1px solid var(--line-2); background: #17131d; color: #cfc7ba; font: 700 13px/1.1 var(--nx-cap); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.12s var(--ease-out); }
html[data-theme='neon'] .nx-opt.on { border-color: var(--gold); background: rgba(209, 171, 91, 0.12); color: var(--gold); box-shadow: 0 0 10px rgba(209, 171, 91, 0.2); }
html[data-theme='neon'] .nx-opt:active { transform: scale(0.97); }
html[data-theme='neon'] .nx-opts.pics .nx-opt { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
html[data-theme='neon'] .nx-opts.pics .nx-opt img { display: block; width: 100%; height: 44px; object-fit: cover; filter: saturate(0.75) brightness(0.85); transition: filter 0.2s, scale 0.35s var(--ease-out); }
html[data-theme='neon'] .nx-opts.pics .nx-opt.on img { filter: none; }
html[data-theme='neon'] .nx-opts.pics .nx-opt span { display: block; padding: 4px 4px 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
html[data-theme='neon'] .nx-opt-line { min-height: 32px; margin-top: 6px; font-size: 12px; line-height: 1.3; color: var(--muted); }
html[data-theme='neon'] .nx-setup .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
html[data-theme='neon'] .nx-setup .toggle { margin: 0; padding: 6px 8px; font-size: 13px; }
html[data-theme='neon'] .nx-setup .toggle .xs { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* the Campaign */
html[data-theme='neon'] .nx-chaps { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
html[data-theme='neon'] .nx-chap { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding: 8px 12px; border: 1px solid var(--line-2); background: #17131d; color: #cfc7ba; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
html[data-theme='neon'] .nx-chap small { grid-column: 1; font: 700 11px/1.2 var(--nx-cap); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
html[data-theme='neon'] .nx-chap b { grid-column: 1; font: 700 15px/1.2 var(--nx-cap); }
html[data-theme='neon'] .nx-chap i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 12px; color: var(--gold); }
html[data-theme='neon'] .nx-chap > :is(img, canvas) { grid-column: 2; grid-row: 1 / span 2; }
html[data-theme='neon'] .nx-chap.on { border-color: var(--gold); background: rgba(209, 171, 91, 0.1); }
html[data-theme='neon'] .nx-chap.on b { color: var(--gold); }
html[data-theme='neon'] .nx-chap.locked { opacity: 0.55; }
html[data-theme='neon'] .nx-chap-story { max-width: 78ch; font-size: 15px; font-style: italic; line-height: 1.45; color: #d2cabd; }
html[data-theme='neon'] .nx-camp-path { justify-content: center; gap: 0; padding: 18px 0; flex-wrap: nowrap; }
html[data-theme='neon'] .nx-camp-path .camp-link { flex: 1 1 18px; max-width: 46px; height: 2px; background: var(--line-2); }
html[data-theme='neon'] .nx-camp-path .camp-link.on { background: var(--gold-2); }
html[data-theme='neon'] .nx-camp-path .camp-node { flex: 0 1 164px; min-width: 0; width: auto; gap: 6px; padding: 12px 8px 10px; border: 1px solid var(--line-2); background: #15111b; box-shadow: none; transition: border-color 0.15s, transform 0.18s var(--ease-out), box-shadow 0.2s; }
html[data-theme='neon'] .nx-camp-path .camp-node:not(.locked):hover { border-color: var(--gold); box-shadow: 0 0 14px rgba(209, 171, 91, 0.3); transform: translateY(-3px); }
html[data-theme='neon'] .nx-camp-path .camp-node.next { border-color: var(--gold); animation: nx-breathe 2.4s ease-in-out infinite; }
html[data-theme='neon'] .nx-camp-path .camp-node.boss { background: linear-gradient(180deg, rgba(138, 31, 42, 0.28), #15111b); }
html[data-theme='neon'] .nx-camp-path .camp-pic { width: 84px; height: 84px; border: 1px solid var(--line-2); background: #0d0b12; }
html[data-theme='neon'] .nx-camp-path .camp-pic canvas { width: 76px !important; height: 76px !important; }
html[data-theme='neon'] .nx-camp-path .camp-name { font: 700 13px/1.2 var(--nx-cap); text-align: center; }
/* the Gauntlet */
html[data-theme='neon'] .nx-gx-intro { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
html[data-theme='neon'] .nx-gx { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; align-items: start; }
html[data-theme='neon'] .nx-gx .gx-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
html[data-theme='neon'] .nx-gx .gx-card { margin: 0; padding: 7px 10px !important; gap: 2px; min-height: 0; }
html[data-theme='neon'] .nx-gx .gx-card > .xs.muted, html[data-theme='neon'] .nx-gx .gx-card > .gx-resist { display: none; }
html[data-theme='neon'] .nx-gx .gx-card .gx-top b { font: 700 14px/1.2 var(--nx-cap); }
html[data-theme='neon'] .nx-gx .gx-detail { margin: 0; }
html[data-theme='neon'] .nx-gx .gx-pool :is(img, canvas) { max-width: 30px; max-height: 30px; }
html[data-theme='neon'] .gx-start { max-width: 460px; margin: 2px auto 0; }
html[data-theme='neon'] .nx-gx-head { display: flex; align-items: center; gap: 12px; }
html[data-theme='neon'] .nx-gx-head > b:first-of-type { font: 700 18px/1.1 var(--nx-cap); color: var(--gold); }
html[data-theme='neon'] .nx-gx-team .grid.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
html[data-theme='neon'] .nx-gx-team .card { min-width: 0; padding: 4px; }
html[data-theme='neon'] .nx-fill > .gx-start { margin-top: 4px; }
/* Online's Play */
html[data-theme='neon'] .nx-cols { display: block; columns: 2; column-gap: 10px; }
html[data-theme='neon'] .nx-cols > .panel { min-width: 0; margin: 0 0 10px; break-inside: avoid; }
/* the Patrol: the plan and the routes shorter, the champions smaller, what's extra beside it */
html[data-theme='neon'] .pt-plan { grid-template-columns: minmax(0, 1fr) 290px; gap: 10px; }
html[data-theme='neon'] .pt-sidecol { min-width: 0; gap: 8px; }
html[data-theme='neon'] .pt-panes { flex: 1; min-height: 0; overflow-y: auto; gap: 8px; }
html[data-theme='neon'] .nx-sidetabs { flex: none; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); }
html[data-theme='neon'] .nx-sidetab { min-width: 0; height: 32px; padding: 0 4px; overflow: hidden; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: #a79e91; font: 700 12px/1 var(--nx-cap); white-space: nowrap; text-overflow: ellipsis; cursor: pointer; transition: color 0.15s, border-color 0.2s; }
html[data-theme='neon'] .nx-sidetab.on { color: var(--gold); border-bottom-color: var(--gold); }
html[data-theme='neon'] .nx-sidetab:not(.on):hover { color: #f3ebde; border-bottom-color: rgba(209, 171, 91, 0.45); }
html[data-theme='neon'] .pt-side { position: static; }
html[data-theme='neon'] .pt-main { gap: 10px; }
html[data-theme='neon'] .pt-route-art { display: block; width: 100% !important; height: auto !important; aspect-ratio: 8 / 3 !important; border-bottom: 1px solid #000; }
html[data-theme='neon'] .pt-route { border: 1px solid var(--line-2); box-shadow: none; transition: border-color 0.15s, box-shadow 0.2s, transform 0.18s var(--ease-out); }
html[data-theme='neon'] .pt-route.on { border-color: var(--gold); box-shadow: 0 0 14px rgba(209, 171, 91, 0.32); }
html[data-theme='neon'] .pt-route:not(.on):hover { border-color: var(--gold-2); transform: translateY(-2px); }
html[data-theme='neon'] .pt-chosen { display: none; } /* (the gold frame says it) */
/* the road (ui/patrol-stage.js): six layers at their true shape, every one of them a tile three times the scene's height wide */
html[data-theme='neon'] .ps-v2 .patrol-stage { height: var(--ps-h); }
html[data-theme='neon'] .ps-v2 .ps-scene { height: var(--ps-h); }
html[data-theme='neon'] .ps-v2 .ps-scene > i { --tile: 300cqh; background-size: var(--tile) 100%; }
html[data-theme='neon'] .ps-v2 .ps-scene > .ps-sky { --tile: max(100cqw, 300cqh); top: 0; background-size: var(--tile) auto; background-position: 0 0; } /* (from its top: the moon's up there, the far layers cover its bottom) */
html[data-theme='neon'] .ps-v2 .ps-scene > .ps-far { height: 56.25%; }
html[data-theme='neon'] .ps-v2 .ps-scene > .ps-mid { height: 46.875%; }
html[data-theme='neon'] .ps-v2 .ps-scene > .ps-near { height: 37.5%; }
html[data-theme='neon'] .ps-v2 .ps-scene > .ps-ground { height: 18.75%; }
html[data-theme='neon'] .ps-v2 .ps-scene > .ps-front { height: 21.875%; }
html[data-theme='neon'] .ps-v2 .ps-scene > .ps-camp { background-size: cover; }
html[data-theme='neon'] .ps-v2.ps-moving .ps-scene > i { animation-name: nx-ps-pan; }
html[data-theme='neon'] .ps-v2.ps-moving .ps-scene > .ps-camp { animation: none; }
html[data-theme='neon'] .ps-v2.ps-moving .ps-scene > .ps-sky { animation-duration: 420s; }
html[data-theme='neon'] .ps-v2.ps-moving .ps-scene > .ps-far { animation-duration: 150s; }
html[data-theme='neon'] .ps-v2.ps-moving .ps-scene > .ps-mid { animation-duration: 80s; }
html[data-theme='neon'] .ps-v2.ps-moving .ps-scene > .ps-near { animation-duration: 36s; }
html[data-theme='neon'] .ps-v2.ps-moving .ps-scene > .ps-ground { animation-duration: 18s; }
html[data-theme='neon'] .ps-v2.ps-moving .ps-scene > .ps-front { animation-duration: 11s; }
@keyframes nx-ps-pan { to { background-position-x: calc(var(--tile) * -1); } }
html[data-theme='neon'] .ps-v2 .ps-fronts { z-index: 1; transition: opacity 0.6s; }
html[data-theme='neon'] .ps-v2.ps-camping .ps-fronts { opacity: 0; }
html[data-theme='neon'] .ps-v2 .ps-label { position: relative; z-index: 2; padding: 5px 10px; border-top: 1px solid var(--line-2); background: #15111b; font: 400 13px/1.3 var(--nx-ui); }
/* a patrol that's out: the road across the center, under it what's going on and the side's tabs */
html[data-theme='neon'] .pt-dash { padding: 8px !important; }
html[data-theme='neon'] .pt-hero { border: 1px solid var(--line-2); }
html[data-theme='neon'] .pt-hero .patrol-stage-wrap { margin: 0; border: 0; box-shadow: none; }
html[data-theme='neon'] .pt-hero-tag { z-index: 3; }
html[data-theme='neon'] .pt-out { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 10px; align-items: start; }
html[data-theme='neon'] .pt-out-main { min-width: 0; }
/* the Supplies' pictures */
html[data-theme='neon'] .pt-sup-pic { flex: none; image-rendering: auto; }
html[data-theme='neon'] .pt-more > .panel > .h2:first-child { display: none; } /* (the tab already says it) */
html[data-theme='neon'] .pt-route-info { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 1px; padding: 4px 8px 5px; }
html[data-theme='neon'] .pt-route-info b { width: 100%; font: 700 14px/1.2 var(--nx-cap); }
html[data-theme='neon'] .pt-coins { font-size: 12px; }
html[data-theme='neon'] .pt-slot { aspect-ratio: auto; height: 62px; }
html[data-theme='neon'].nx-dock-on .pt-route-art { max-height: 62px; object-fit: cover; }
html[data-theme='neon'] .pt-slot canvas { width: 40px !important; height: 40px !important; }
html[data-theme='neon'] .pt-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; }
/* a list of champions that can grow (ui/neon/kit.js champList): it scrolls in its own box, what's around it stays */
html[data-theme='neon'] .nx-fill { height: 100%; min-height: 0; display: flex; flex-direction: column; }
html[data-theme='neon'] .nx-fill > * { flex: none; }
html[data-theme='neon'] .nx-champs { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
html[data-theme='neon'] input.nx-input.nx-champ-search { flex: none; align-self: flex-start; width: min(280px, 100%); height: 30px; padding: 0 10px; border-radius: 0; font: 400 13px var(--nx-ui); }
html[data-theme='neon'] .nx-champs-box { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 4px 2px 2px; }
html[data-theme='neon'] .nx-champs-box [hidden] { display: none !important; }
html[data-theme='neon'] .nx-fill > .nx-gx-team { flex: 1; min-height: 0; display: flex; flex-direction: column; }
html[data-theme='neon'] .nx-slots { display: flex; gap: 6px; }
html[data-theme='neon'] .nx-slot { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px dashed var(--line-3); background: rgba(0, 0, 0, 0.25); cursor: default; transition: border-color 0.15s, box-shadow 0.15s; }
html[data-theme='neon'] .nx-slot.full { border: 1px solid var(--gold-2); background: #1b1722; cursor: pointer; animation: pop-in 0.2s; }
html[data-theme='neon'] .nx-slot.full:hover { border-color: var(--bad); box-shadow: 0 0 8px rgba(255, 90, 110, 0.4); }
html[data-theme='neon'] .nx-slot canvas { width: 38px !important; height: 38px !important; }
@media (min-width: 1101px) {
  /* the Patrol and Practice fill their place, their lists taking what's left */
  html[data-theme='neon'].nx-lobby .screen-patrol .screen-body > * { height: 100%; }
  html[data-theme='neon'].nx-lobby .pt-screen { height: 100%; }
  html[data-theme='neon'].nx-lobby .pt-plan { height: 100%; grid-template-rows: minmax(0, 1fr); }
  html[data-theme='neon'].nx-lobby .pt-main { min-height: 0; height: 100%; display: flex; flex-direction: column; }
  html[data-theme='neon'].nx-lobby .pt-main > .panel { flex: none; }
  html[data-theme='neon'].nx-lobby .pt-main > .pt-squad { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  html[data-theme='neon'].nx-lobby .pt-squad > * { flex: none; }
  html[data-theme='neon'].nx-lobby .pt-squad > .nx-champs { flex: 1; }
  html[data-theme='neon'].nx-lobby .pt-sidecol { min-height: 0; height: 100%; display: flex; flex-direction: column; }
  html[data-theme='neon'].nx-lobby .practice-setup { display: flex; flex-direction: column; }
  html[data-theme='neon'].nx-lobby .practice-setup > * { flex: none; }
  html[data-theme='neon'].nx-lobby .practice-setup > .practice-pick { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  html[data-theme='neon'].nx-lobby .practice-pick > .panel { min-height: 0; display: flex; flex-direction: column; }
  html[data-theme='neon'].nx-lobby .practice-pick > .panel > * { flex: none; }
  html[data-theme='neon'].nx-lobby .practice-pick > .panel > .nx-champs { flex: 1; }
}
@media (max-width: 1100px) { html[data-theme='neon'] .pt-squad .nx-champs-box, html[data-theme='neon'] .practice-pick .nx-champs-box { max-height: 300px; } }
html[data-theme='neon'] .pt-summary .pt-sum-row { font-size: 13px; }
html[data-theme='neon'] .pt-summary p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
/* the Raid */
html[data-theme='neon'] .raid-hero :is(.title) { font-size: 24px; }
html[data-theme='neon'] .raid-hero p { margin: 0; }
html[data-theme='neon'] .raid-hero canvas { width: 60px !important; height: 60px !important; }
html[data-theme='neon'].nx-lobby .raid-hero { padding: 8px 14px; }
html[data-theme='neon'].nx-lobby .screen-raid .raid-tabs { margin-bottom: 8px; }
html[data-theme='neon'].nx-lobby .screen-raid .panel p { margin: 2px 0; }
@media (hover: hover) {
  html[data-theme='neon'] .nx-opt:not(.on):hover { border-color: var(--gold-2); color: #f3ebde; background: #1d1825; }
  html[data-theme='neon'] .nx-opts.pics .nx-opt:hover img { filter: none; scale: 1.08; }
  html[data-theme='neon'] .nx-chap:not(.on):hover { border-color: var(--gold-2); }
}
@media (max-width: 1100px) {
  html[data-theme='neon'] :is(.nx-setup, .nx-gx, .nx-two) { grid-template-columns: minmax(0, 1fr); }
  html[data-theme='neon'] .nx-cols { columns: 1; }
  html[data-theme='neon'] .pt-plan, html[data-theme='neon'] .pt-out { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  html[data-theme='neon'] .nx-camp-path { flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
  html[data-theme='neon'] .nx-camp-path .camp-node { flex: 1 1 40%; }
  html[data-theme='neon'] .nx-camp-path .camp-link { display: none; }
  html[data-theme='neon'] .nx-chaps { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================================== a screen's head: kicker, title, ornament | its controls */
html[data-theme='neon'] .nx-head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
html[data-theme='neon'] .nx-head .grow { flex: 1; min-width: 0; }
html[data-theme='neon'] .nx-ornament { height: 12px; display: flex; align-items: center; gap: 8px; max-width: 520px; margin: 14px 0 0; }
html[data-theme='neon'] .nx-ornament::before, html[data-theme='neon'] .nx-ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-3), transparent); }
html[data-theme='neon'] .nx-ornament i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); box-shadow: 0 0 8px rgba(209, 171, 91, 0.5); }

/* ================================================================== Play: a client's lobby. Tabs and a list on the left, the chosen mode big on the right, one yellow PLAY */
html[data-theme='neon'] .nx-play { zoom: var(--nx-zoom); display: grid; grid-template-columns: var(--nx-rail) minmax(0, 1fr); width: 100%; max-width: calc(var(--nx-page) / var(--nx-zoom)); height: 100%; margin: 0 auto; background: var(--nx-frame); box-shadow: 0 0 0 1px var(--line-1), 0 0 70px rgba(0, 0, 0, 0.65); color: #d9d2c6; font: 400 13px/1.35 var(--nx-ui); }
html[data-theme='neon'] .nx-play button { font-family: inherit; color: inherit; cursor: pointer; }
html[data-theme='neon'] .nx-pl-rail { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--nx-panel); border-right: 1px solid var(--line-1); color: #d9d2c6; font: 400 13px/1.35 var(--nx-ui); animation: nx-from-left 0.45s var(--ease-out) both; }
html[data-theme='neon'] .nx-pl-rail button { font-family: inherit; color: inherit; cursor: pointer; }
html[data-theme='neon'] .nx-pl-rail.still, html[data-theme='neon'] .nx-pl-rail.still .nx-mode { animation: none; }
/* a mode open from Play: its own screen fills what's beside the list, which stays where it was */
html[data-theme='neon'] .nx-pl-rail.fixed { position: fixed; z-index: 12; zoom: var(--nx-zoom); left: calc(var(--nx-col-left) / var(--nx-zoom)); top: calc(var(--safe-t) + var(--nx-bar)); bottom: calc(var(--hub-bottom-h, 0px) / var(--nx-zoom, 1)); width: var(--nx-rail); box-shadow: 0 0 0 1px var(--line-1), 0 0 70px rgba(0, 0, 0, 0.65); clip-path: inset(0 0 -100px -100px); } /* (the column's shadow, as on Home; none on the mode beside it) */
@media (min-width: 1001px) {
  html[data-theme='neon'].nx-lobby #app > .screen.win { left: calc(var(--nx-col-left) + var(--nx-rail) * var(--nx-zoom)); right: var(--nx-col-left); background: linear-gradient(180deg, rgba(8, 6, 11, 0.95) 0, rgba(8, 6, 11, 0.9) 28%, rgba(8, 6, 11, 0.66) 54%, rgba(8, 6, 11, 0.88) 100%), var(--nx-place, none) center / cover #08060b; box-shadow: 0 0 0 1px var(--line-1), 0 0 70px rgba(0, 0, 0, 0.65); }
  html[data-theme='neon'].nx-lobby #app > .screen.win > * { zoom: var(--nx-zoom); max-width: none; }
}
@media (min-width: 1001px) {
  /* never taller than the column's shape, a mode beside the list too: nothing jumps going from one to the other */
  html[data-theme='neon'] :is(.nx-home, .nx-play, .nx-pl-rail.fixed) { max-height: calc(var(--nx-page) / var(--nx-shape) / var(--nx-zoom)); }
  html[data-theme='neon'].nx-lobby #app > .screen.win { max-height: calc(var(--nx-page) / var(--nx-shape)); }
  /* (the very same page as behind Home and Play: the same box and dim as their screen, or it jumps on opening a mode) */
  html[data-theme='neon']:is(.nx-lobby, .nx-framed) #app::before { content: ''; position: fixed; inset: calc(var(--safe-t) + var(--hub-bar-h)) 0 0; pointer-events: none; background: var(--nx-dim); }
}
/* over a mode's place: nothing lets it through its words. What's locked stays solid, only what's on it dims */
@media (min-width: 1001px) {
  html[data-theme='neon'].nx-lobby .nx-chap, html[data-theme='neon'].nx-lobby .camp-node.locked, html[data-theme='neon'].nx-lobby .gx-card.locked { background: var(--nx-panel); opacity: 1; }
  html[data-theme='neon'].nx-lobby .nx-chap.on { background: linear-gradient(rgba(209, 171, 91, 0.1), rgba(209, 171, 91, 0.1)), var(--nx-panel); }
  html[data-theme='neon'].nx-lobby :is(.nx-chap, .camp-node, .gx-card).locked > * { opacity: 0.7; }
}
/* ================================================================== the client's own pages (Heroes first): in the column, nothing but their lists and panels scrolling, nothing coming in */
@media (min-width: 1001px) {
  html[data-theme='neon'] { --nx-roster: 470px; }
  html[data-theme='neon'] #app > .screen.win.nx-client { left: var(--nx-col-left); right: var(--nx-col-left); max-height: calc(var(--nx-page) / var(--nx-shape)); display: flex; flex-direction: column; background: var(--nx-frame); box-shadow: 0 0 0 1px var(--line-1), 0 0 70px rgba(0, 0, 0, 0.65); color: #d9d2c6; font: 400 13px/1.35 var(--nx-ui); animation: none; }
  html[data-theme='neon'] #app > .screen.win.nx-client > * { zoom: var(--nx-zoom); max-width: none; flex: none; }
  html[data-theme='neon'] #app > .screen.win.nx-client > .screen-head { display: none; } /* (the bar says where you are, and has the wallet) */
  html[data-theme='neon'] #app > .screen.win.nx-client > div:not(.screen-body) { padding: 0 !important; }
  html[data-theme='neon'] #app > .screen.win.nx-client > .screen-body { flex: 1; min-height: 0; padding: 0; overflow: hidden; }
  html[data-theme='neon'] .nx-client > div > .tabs { min-height: 44px; margin: 0; padding: 0 12px; }
  html[data-theme='neon'] .nx-client .screen-body > .max { height: 100%; max-width: none; margin: 0; }

  /* the list on the left, the chosen one beside it: at the same place on every tab */
  html[data-theme='neon'] .nx-client .nx-deck { display: grid; grid-template-columns: var(--nx-roster) minmax(0, 1fr); gap: 0; height: 100%; align-items: stretch; color: inherit; font: inherit; }
  html[data-theme='neon'] .nx-client .nx-deck-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--nx-panel); border-right: 1px solid var(--line-1); }
  html[data-theme='neon'] .nx-client .nx-toolbar { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0; padding: 12px 12px 8px; }
  html[data-theme='neon'] .nx-client .nx-toolbar > .grow { display: none; }
  html[data-theme='neon'] .nx-client .nx-toolbar input.nx-input { width: 100%; height: 32px; padding: 0 10px; border-radius: 0; font: 400 13px var(--nx-ui); }
  html[data-theme='neon'] .nx-client .nx-toolbar > .nx-select { grid-column: 2; grid-row: 1; width: auto; height: 32px; padding-top: 0; padding-bottom: 0; border-radius: 0; font: 400 13px var(--nx-ui); }
  html[data-theme='neon'] .nx-client .nx-chips { grid-column: 1; grid-row: 2; gap: 2px; flex-wrap: nowrap; }
  html[data-theme='neon'] .nx-client .nx-chip { height: 26px; padding: 0 8px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: #a79e91; font: 700 12px/1 var(--nx-cap); letter-spacing: 0.06em; box-shadow: none; transition: color 0.15s, border-color 0.15s; }
  html[data-theme='neon'] .nx-client .nx-chip:hover { color: #f3ebde; border-color: rgba(209, 171, 91, 0.45); }
  html[data-theme='neon'] .nx-client .nx-chip.on { color: var(--gold); border-color: var(--gold); background: none; box-shadow: none; }
  html[data-theme='neon'] .nx-client .nx-owned { grid-column: 2; grid-row: 2; flex-direction: row; align-items: center; justify-content: flex-end; gap: 5px; }
  html[data-theme='neon'] .nx-client .nx-owned b { font: 700 13px/1 var(--nx-ui); color: var(--gold); }

  /* the roster: however many there are, it scrolls in its own box */
  html[data-theme='neon'] .nx-client .nx-cgrid { flex: 1; min-height: 0; overflow-y: auto; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); grid-auto-rows: 106px; gap: 6px; padding: 4px 12px 12px; align-content: start; }
  html[data-theme='neon'] .nx-client .nx-ccard { aspect-ratio: auto; border: 1px solid var(--line-1); border-radius: 0; background: #17131d; box-shadow: none; animation: none; transition: transform 0.14s var(--ease-out), border-color 0.14s, background 0.14s; }
  html[data-theme='neon'] .nx-client .nx-ccard .pic { top: 8px; width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.6)); }
  html[data-theme='neon'] .nx-client .nx-ccard .foot { padding: 0 3px 6px; background: none; text-align: center; }
  html[data-theme='neon'] .nx-client .nx-ccard .foot b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 12px/1.1 var(--nx-cap); color: #d9d2c6; }
  html[data-theme='neon'] .nx-client .nx-ccard .foot :is(small, .stars) { display: none; }
  html[data-theme='neon'] .nx-client .nx-ccard .tier { left: 3px; top: 3px; min-width: 0; height: auto; padding: 1px 3px; border: 0; border-radius: 0; background: none; box-shadow: none; font: 700 11px/1 var(--nx-cap); color: var(--gold); }
  html[data-theme='neon'] .nx-client .nx-ccard .facs { right: 3px; top: 3px; gap: 1px; }
  html[data-theme='neon'] .nx-client .nx-ccard .facs i { width: 14px; height: 14px; border: 0; background: none; font-size: 9px; }
  html[data-theme='neon'] .nx-client .nx-ccard:hover { transform: translateY(-2px); border-color: var(--line-3); background: #1f1a27; box-shadow: none; }
  html[data-theme='neon'] .nx-client .nx-ccard:hover .pic { transform: translateX(-50%) translateY(-2px) scale(1.06); }
  html[data-theme='neon'] .nx-client .nx-ccard:active { transform: scale(0.97); }
  html[data-theme='neon'] .nx-client .nx-ccard.sel { border-color: var(--gold); background: linear-gradient(0deg, rgba(209, 171, 91, 0.16), rgba(209, 171, 91, 0.03) 60%), #17131d; box-shadow: inset 0 0 0 1px rgba(209, 171, 91, 0.5); }
  html[data-theme='neon'] .nx-client .nx-ccard.sel .foot b { color: var(--gold); }
  html[data-theme='neon'] .nx-client .nx-none { grid-column: 1 / -1; padding: 24px 0; text-align: center; }

  /* the chosen one */
  html[data-theme='neon'] .nx-client .nx-detail { position: relative; top: auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: hidden; }
  html[data-theme='neon'] .nx-dt-stage { flex: 0 0 44%; min-height: 0; }
  html[data-theme='neon'] .nx-dt-info { position: absolute; z-index: 2; left: 24px; top: 0; bottom: 0; width: min(46%, 430px); display: flex; flex-direction: column; justify-content: center; }
  html[data-theme='neon'] .nx-dt-fig { position: absolute; z-index: 1; left: 58%; right: 6%; bottom: 6px; display: flex; justify-content: center; }
  html[data-theme='neon'] .nx-client .nx-detail .inv-tabs { flex: none; margin: 0; padding: 0 12px; }
  html[data-theme='neon'] .nx-client .nx-dt-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 14px; }
  /* (the abilities as tall as what's beside them, sharing it evenly) */
  html[data-theme='neon'] .nx-abs-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: stretch; }
  html[data-theme='neon'] .nx-abs > .nx-ab { flex: 1 1 0; align-items: center; }

  /* the panes under the champion: no second frame or heading, what's long in two columns */
  html[data-theme='neon'] .nx-client .nx-dt-pane > .panel { padding: 0; border: 0; border-image: none; background: none; box-shadow: none; }
  html[data-theme='neon'] .nx-client .nx-dt-pane > .panel:not(.mastery-path) > .h2:first-child { display: none; }
  /* Equipment: what it wears on the left, all that fits the slot on the right, only that list scrolling */
  html[data-theme='neon'] .nx-client .nx-dt-pane.nx-own-scroll { overflow: hidden; }
  html[data-theme='neon'] .nx-kit { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; height: 100%; min-height: 0; }
  html[data-theme='neon'] .nx-kit-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; overflow-y: auto; }
  html[data-theme='neon'] .nx-kit-list { min-width: 0; min-height: 0; overflow-y: auto; }
  html[data-theme='neon'] .nx-client .it-head { font: 700 13px/1.2 var(--nx-cap); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); text-shadow: none; }
  html[data-theme='neon'] .nx-abs-side .nx-sec { flex-wrap: wrap; gap: 2px 8px; }
  html[data-theme='neon'] .nx-abs-side .nx-sec .meta { flex-basis: 100%; font: 400 12px/1.3 var(--nx-ui); letter-spacing: 0; text-transform: none; color: #a79e91; }

  html[data-theme='neon'] .nx-client .nx-dt-pane .row.wrap { gap: 6px; }
  html[data-theme='neon'] .nx-client .nx-dt-pane .row.wrap > .card { width: 108px; height: 112px; min-width: 0; padding: 8px 4px 6px; border: 1px solid var(--line-1); border-image: none; border-radius: 0; background: #17131d; box-shadow: none; transition: transform 0.14s var(--ease-out), border-color 0.14s, background 0.14s; }
  html[data-theme='neon'] .nx-client .nx-dt-pane .row.wrap > .card:hover { transform: translateY(-2px); border-color: var(--line-3); background: #1f1a27; }
  html[data-theme='neon'] .nx-client .nx-dt-pane .row.wrap > .card.selected { border-color: var(--gold); background: linear-gradient(0deg, rgba(209, 171, 91, 0.16), rgba(209, 171, 91, 0.03) 60%), #17131d; box-shadow: inset 0 0 0 1px rgba(209, 171, 91, 0.5); }
  html[data-theme='neon'] .nx-client .nx-dt-pane .row.wrap > .card.selected::after { display: none; }
  html[data-theme='neon'] .nx-client .nx-dt-pane .row.wrap > .card .name { width: 100%; font: 700 11px/1.15 var(--nx-cap); text-align: center; white-space: normal; }

  /* filters, on every tab: words with a gold line, plain selects */
  html[data-theme='neon'] .nx-client .chip-btn { height: 26px; min-height: 0; padding: 0 7px; border: 0; border-bottom: 2px solid transparent; border-image: none; border-radius: 0; background: none; box-shadow: none; color: #a79e91; font: 700 12px/1 var(--nx-cap); letter-spacing: 0.04em; filter: none; transform: none; }
  html[data-theme='neon'] .nx-client .chip-btn::before, html[data-theme='neon'] .nx-client .chip-btn::after { display: none; }
  html[data-theme='neon'] .nx-client .chip-btn:hover:not(:disabled) { color: #f3ebde; background: none; border-bottom-color: rgba(209, 171, 91, 0.45); filter: none; transform: none; }
  html[data-theme='neon'] .nx-client .chip-btn.on { color: var(--gold); background: none; border-bottom-color: var(--gold); box-shadow: none; }
  html[data-theme='neon'] .nx-client .it-pick { display: flex; align-items: center; gap: 5px; font: 400 12px/1.2 var(--nx-ui); }
  html[data-theme='neon'] .nx-client .it-filters .it-select { height: 30px; padding-top: 0; padding-bottom: 0; border-radius: 0; font: 400 13px var(--nx-ui); }

  /* items */
  html[data-theme='neon'] .nx-client .nx-deck-main > .it-filters { flex: none; align-items: center; gap: 2px 4px; margin: 0; padding: 12px 12px 8px; }
  html[data-theme='neon'] .nx-client .nx-deck-main > .it-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); grid-auto-rows: 106px; gap: 6px; row-gap: 6px; padding: 4px 12px 12px; align-content: start; }
  html[data-theme='neon'] .nx-client .it-tile { position: relative; min-height: 0; padding: 8px 3px 4px; border: 1px solid var(--line-1); border-radius: 0; background: #17131d; box-shadow: none; display: flex; flex-direction: column; align-items: center; gap: 4px; overflow: hidden; transition: transform 0.14s var(--ease-out), border-color 0.14s, background 0.14s; }
  html[data-theme='neon'] .nx-client .it-tile:hover { transform: translateY(-2px); border-color: var(--line-3); background: #1f1a27; box-shadow: none; }
  html[data-theme='neon'] .nx-client .it-tile:active { transform: scale(0.97); }
  html[data-theme='neon'] .nx-client .it-tile.selected { border-color: var(--gold); background: linear-gradient(0deg, rgba(209, 171, 91, 0.16), rgba(209, 171, 91, 0.03) 60%), #17131d; box-shadow: inset 0 0 0 1px rgba(209, 171, 91, 0.5); }
  html[data-theme='neon'] .nx-client .it-tile .it-perk, html[data-theme='neon'] .nx-client .it-tile .eq-tag { display: none; }
  html[data-theme='neon'] .nx-client .it-tile .it-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; text-align: center; font: 700 11px/1.1 var(--nx-cap); }
  html[data-theme='neon'] .nx-client .it-tile .it-stack { position: absolute; left: 3px; top: 3px; width: auto; height: auto; min-width: 0; padding: 0 2px; border: 0; background: none; box-shadow: none; transform: none; }
  html[data-theme='neon'] .nx-client .it-tile .it-stack:not(.more) { display: none; } /* (only when there's more than one) */
  html[data-theme='neon'] .nx-client .it-tile .it-stack b { font: 700 11px/1 var(--nx-ui); color: var(--gold); text-shadow: none; }
  html[data-theme='neon'] .nx-client .it-tile .it-stack::before, html[data-theme='neon'] .nx-client .it-tile .it-stack::after { display: none; }
  html[data-theme='neon'] .nx-client .it-tile .it-eq { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; }
  html[data-theme='neon'] .nx-it-stage { flex-basis: 40%; }
  html[data-theme='neon'] .nx-it-stage .nx-dt-fig { top: 0; bottom: 0; align-items: center; }
  html[data-theme='neon'] .nx-client .nx-it-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 28px; align-content: start; }
  html[data-theme='neon'] .nx-client .nx-it-body > :is(.it-compare, .row.wrap) { grid-column: 1 / -1; }

  /* mascots, skins, looks: the same two columns from the browser's own pieces */
  html[data-theme='neon'] .nx-client :is(.nx-tab-mascots, .nx-tab-skins, .nx-tab-looks) { display: grid; grid-template-columns: var(--nx-roster) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  html[data-theme='neon'] .nx-client .ib-bar { grid-column: 1; grid-row: 1; gap: 8px; margin: 0; padding: 12px 12px 8px; background: var(--nx-panel); border-right: 1px solid var(--line-1); }
  html[data-theme='neon'] .nx-client .ib-chips { gap: 2px 4px; }
  html[data-theme='neon'] .nx-client .ib-tools { gap: 6px; padding: 0; border: 0; background: none; box-shadow: none; }
  html[data-theme='neon'] .nx-client .ib-tools { flex-wrap: wrap; }
  html[data-theme='neon'] .nx-client .ib-tools > .grow { display: none; }
  html[data-theme='neon'] .nx-client .ib-tools > .btn { flex: 1 0 100%; order: 3; }
  html[data-theme='neon'] .nx-client .ib-pick { flex: 1 1 28%; min-width: 0; flex-direction: column; align-items: stretch; gap: 2px; font: 400 11px/1.2 var(--nx-ui); }
  html[data-theme='neon'] .nx-client .ib-pick .it-select { width: 100%; height: 30px; border-radius: 0; font: 400 13px var(--nx-ui); }
  html[data-theme='neon'] .nx-client .ib-search { flex: 1 1 60%; min-width: 0; height: 30px; border-radius: 0; }
  html[data-theme='neon'] .nx-client .ib-layout { display: contents; }
  html[data-theme='neon'] .nx-client .ib-main { grid-column: 1; grid-row: 2; min-height: 0; overflow-y: auto; gap: 4px; padding: 0 12px 12px; background: var(--nx-panel); border-right: 1px solid var(--line-1); }
  html[data-theme='neon'] .nx-client .ib-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); grid-auto-rows: 112px; gap: 6px; }
  html[data-theme='neon'] .nx-client .ib-tile .ib-pic { width: 60px; height: 60px; flex: none; display: grid; place-items: center; padding: 0; border: 0; background: none; box-shadow: none; overflow: hidden; }
  html[data-theme='neon'] .nx-client .ib-tile .ib-pic > :is(canvas, img) { max-width: 60px; max-height: 60px; }
  html[data-theme='neon'] .nx-client .ib-tile { min-height: 0; padding: 6px 3px 4px; border: 1px solid var(--line-1); border-radius: 0; background: #17131d; box-shadow: none; display: flex; flex-direction: column; align-items: center; gap: 2px; overflow: hidden; text-align: center; transition: transform 0.14s var(--ease-out), border-color 0.14s, background 0.14s; }
  html[data-theme='neon'] .nx-client .ib-tile:hover { transform: translateY(-2px); border-color: var(--line-3); background: #1f1a27; box-shadow: none; }
  html[data-theme='neon'] .nx-client .ib-tile:active { transform: scale(0.97); }
  html[data-theme='neon'] .nx-client .ib-tile.selected { border-color: var(--gold); background: linear-gradient(0deg, rgba(209, 171, 91, 0.16), rgba(209, 171, 91, 0.03) 60%), #17131d; box-shadow: inset 0 0 0 1px rgba(209, 171, 91, 0.5); }
  html[data-theme='neon'] .nx-client .ib-tile .ib-name { flex: none; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 11px/1.2 var(--nx-cap); }
  html[data-theme='neon'] .nx-client .ib-tile .ib-tags { flex: none; }
  html[data-theme='neon'] .nx-client .ib-tile .ib-tag.muted { display: none; } /* (its page says it) */
  html[data-theme='neon'] .nx-client .ib-tile .ib-tag { max-width: 76px; overflow: hidden; padding: 1px 4px; white-space: nowrap; text-overflow: ellipsis; font: 600 10px/1.2 var(--nx-ui); }
  html[data-theme='neon'] .nx-client .ib-tile .ib-sub { display: none; }
  html[data-theme='neon'] .nx-client .ib-tile .ib-tags { justify-content: center; }
  html[data-theme='neon'] .nx-client .ib-detail { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; min-height: 0; margin: 0; padding: 18px 40px; border: 0; border-radius: 0; box-shadow: none; overflow-y: auto; background: linear-gradient(180deg, rgba(8, 6, 11, 0.5), rgba(8, 6, 11, 0.9) 70%), var(--nx-place, none) center / cover #0b0910; }
  html[data-theme='neon'] .nx-client .ib-detail > * { width: min(100%, 460px); flex: none; }
  html[data-theme='neon'] .nx-client .ib-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
  html[data-theme='neon'] .nx-client .ib-big { width: auto; height: auto; padding: 0; border: 0; background: none; box-shadow: none; display: flex; justify-content: center; overflow: visible; }
  html[data-theme='neon'] .nx-client .ib-big canvas, html[data-theme='neon'] .nx-client .ib-big img { max-width: none; max-height: none; }
  html[data-theme='neon'] .nx-client .ib-detail p { text-shadow: 0 1px 3px #000; }
  html[data-theme='neon'] .nx-client .ib-block { padding: 8px 12px; border: 1px solid var(--line-1); border-radius: 0; background: rgba(8, 6, 11, 0.86); box-shadow: none; }
  html[data-theme='neon'] .nx-client .ib-title { font: 700 30px/1.05 var(--nx-cap); }
}
/* a plain sheet: what it is on the left, what it says on the right, no boxes or colours */
html[data-theme='neon'] .nx-sheet { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; font: 400 13px/1.35 var(--nx-ui); }
html[data-theme='neon'] .nx-sheet dt { color: #8f877b; }
html[data-theme='neon'] .nx-sheet dd { margin: 0; color: #e4ddd0; }
html[data-theme='neon'] .nx-sheet dd em { margin-left: 6px; font-style: normal; color: #a79e91; }
html[data-theme='neon'] .nx-sheet .dt-label { white-space: nowrap; }
/* what must stand out on a sheet: in a box. How many are free; a level, in that level's colour */
html[data-theme='neon'] .nx-have { display: inline-flex; align-items: center; gap: 8px; }
html[data-theme='neon'] .nx-box { padding: 2px 7px; border: 1px solid var(--gold-2); background: rgba(209, 171, 91, 0.1); color: var(--gold); font: 600 11px/1.2 var(--nx-ui); }
html[data-theme='neon'] .nx-box.off { border-color: var(--line-2); background: none; color: #8f877b; }
html[data-theme='neon'] .nx-drops { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }
html[data-theme='neon'] .nx-drop { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
html[data-theme='neon'] .nx-drop .gx-diff { padding: 2px 7px; border: 0; font: 700 11px/1.2 var(--nx-ui); }
/* a champion's reach, beside its abilities: one gold, nothing else asking to be looked at */
html[data-theme='neon'] .nx-abs-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
html[data-theme='neon'] .nx-abs-side p { margin: 0; font-size: 12px; line-height: 1.35; color: #a79e91; }
html[data-theme='neon'] .nx-abs-side .nx-sheet { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-1); }
html[data-theme='neon'] .nx-detail .nx-abs-side .reach-set { display: flex; gap: 14px; margin: 2px 0 0; }
html[data-theme='neon'] .nx-detail .nx-abs-side .reach-spot { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 400 11px/1 var(--nx-ui); color: #8f877b; }
html[data-theme='neon'] .nx-detail .nx-abs-side .reach-grid { grid-template-columns: repeat(3, 13px); gap: 2px; padding: 0; border: 0; background: none; box-shadow: none; }
html[data-theme='neon'] .nx-detail .nx-abs-side .reach-grid i { width: 13px; height: 13px; background: rgba(255, 255, 255, 0.07); box-shadow: none; }
html[data-theme='neon'] .nx-detail .nx-abs-side .reach-grid i.hit { background: rgba(209, 171, 91, 0.6); }
html[data-theme='neon'] .nx-detail .nx-abs-side .reach-grid i.me { background: #f3ebde; box-shadow: none; }
/* ================================================================== the Shop's pages, on every size */
html[data-theme='neon'] .nx-t-pics { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
html[data-theme='neon'] .nx-t-pics > :is(canvas, img) { width: 52px !important; height: 52px !important; object-fit: contain; image-rendering: pixelated; }
html[data-theme='neon'] .nx-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html[data-theme='neon'] .nx-pay .btn { min-height: 38px; gap: 10px; }
html[data-theme='neon'] .nx-pay .btn > .row, html[data-theme='neon'] .nx-pay .btn > .row > .row { gap: 4px; }
html[data-theme='neon'] .nx-pay .btn :is(canvas, img) { width: 16px; height: 16px; }
/* an opening or a crafting playing inside its page */
html[data-theme='neon'] .cf-stage.in-box { z-index: 6; background: #07050b; }
html[data-theme='neon'] .cf-stage.in-box .cf-tap { padding-bottom: 84px; }
html[data-theme='neon'] .nx-deck-main[inert] { opacity: 0.45; transition: opacity 0.2s; }
html[data-theme='neon'] .cf-made .nx-hero { animation: none; }
html[data-theme='neon'] .cf-made :is(canvas, img) { image-rendering: pixelated; }
/* what a tile says about itself: one word, in gold */
html[data-theme='neon'] .nx-client .ib-tile .ib-tag:is(.teal, .gold) { border: 1px solid var(--gold-2); border-radius: 0; background: rgba(209, 171, 91, 0.1); color: var(--gold); }
/* ================================================================== Quests */
html[data-theme='neon'] .nx-tab-quests { display: flex; flex-direction: column; gap: 10px; }
html[data-theme='neon'] .nx-q-stage { flex: 1 1 auto; min-height: 330px; }
/* a computer: the week's picture no taller than it needs, everything up, room under the quests (your call, 7 Nov: they
   touched the box's edge) */
@media (min-width: 761px) {
  html[data-theme='neon'] .nx-q-stage { flex: 0 1 470px; }
  html[data-theme='neon'] .nx-tab-quests { padding-bottom: 24px; }
}
html[data-theme='neon'] .nx-q-stage > .art { animation: none; scale: 1.05; }
html[data-theme='neon'] .nx-q-stage::after { background: linear-gradient(0deg, rgba(8, 7, 12, 0.97) 0, rgba(8, 7, 12, 0.86) 46%, rgba(8, 7, 12, 0.1) 78%), linear-gradient(90deg, rgba(8, 7, 12, 0.9), rgba(8, 7, 12, 0.5) 34%, transparent 58%); }
html[data-theme='neon'] .nx-q-stage .nx-dt-info { top: 16px; bottom: auto; justify-content: flex-start; width: min(46%, 470px); }
html[data-theme='neon'] .nx-q-stage .nx-dt-info h2 { margin-bottom: 4px; }
html[data-theme='neon'] .nx-wk-pct { display: flex; align-items: center; gap: 10px; }
html[data-theme='neon'] .nx-wk-pct b { font: 700 34px/1 var(--nx-ui); color: var(--gold); }
html[data-theme='neon'] .nx-wk-pct .nx-box { display: inline-flex; align-items: center; gap: 3px; }
html[data-theme='neon'] .nx-wk-pct .nx-box :is(canvas, img, svg) { width: 14px; height: 14px; }
html[data-theme='neon'] .nx-q-stage .nx-dt-fig { left: auto; right: 3%; top: 8px; bottom: auto; }
html[data-theme='neon'] .nx-q-stage .nx-hero-pet { position: relative; right: auto; bottom: auto; }
html[data-theme='neon'] .nx-wk { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
html[data-theme='neon'] .nx-wk .wk-bar { height: 112px; margin: 0 76px 0 0; }
html[data-theme='neon'] .nx-wk .wk-track { top: 34px; height: 6px; border: 0; background: rgba(255, 255, 255, 0.14); box-shadow: none; }
html[data-theme='neon'] .nx-wk .wk-fill { background: var(--gold); box-shadow: 0 0 10px rgba(209, 171, 91, 0.7); }
html[data-theme='neon'] .nx-wk .wk-node { gap: 3px; border: 0; background: none; box-shadow: none; }
html[data-theme='neon'] .nx-wk .wk-chest { width: 76px; height: 76px; border: 0; border-image: none; background: none; box-shadow: none; filter: grayscale(0.7) brightness(0.65); transition: transform 0.14s var(--ease-out); }
html[data-theme='neon'] .nx-wk .wk-chest :is(canvas, img) { width: 72px; height: 72px; object-fit: contain; }
html[data-theme='neon'] .nx-wk .wk-node.ready .wk-chest { filter: drop-shadow(0 0 10px rgba(209, 171, 91, 0.9)); box-shadow: none; animation: wk-hop 1.2s steps(2) infinite; }
html[data-theme='neon'] .nx-wk .wk-node.ready:hover .wk-chest { transform: scale(1.1); }
html[data-theme='neon'] .nx-wk .wk-node.claimed .wk-chest { filter: grayscale(0.2) brightness(0.8); box-shadow: none; }
html[data-theme='neon'] .nx-wk .wk-check { right: 2px; bottom: 2px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--gold); color: #1a1206; box-shadow: none; font: 700 12px/18px var(--nx-ui); }
html[data-theme='neon'] .nx-wk .wk-days { gap: 6px; }
html[data-theme='neon'] .nx-wk .wk-day { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; border: 1px solid var(--line-1); background: rgba(8, 7, 12, 0.8); box-shadow: none; }
html[data-theme='neon'] .nx-wk .wk-day b { font: 600 12px/1 var(--nx-ui); color: #a79e91; }
html[data-theme='neon'] .nx-wk .wk-day .nx-steps { flex: 0 1 54px; height: 8px; }
html[data-theme='neon'] .nx-wk .wk-day.today { border-color: var(--gold); box-shadow: none; }
html[data-theme='neon'] .nx-wk .wk-day.today b { color: var(--gold); }
html[data-theme='neon'] .nx-wk .wk-day.later { opacity: 0.55; }
html[data-theme='neon'] .nx-wk .wk-day:not(.today) .nx-steps > i.next { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); animation: none; } /* (only today has a next one) */
html[data-theme='neon'] .nx-wk .qchip, html[data-theme='neon'] .nx-quests .qchip { gap: 3px; padding: 1px 6px; border: 0; border-radius: 0; background: rgba(8, 7, 12, 0.8); box-shadow: none; color: #e4ddd0; font: 700 12px/1.3 var(--nx-ui); }
html[data-theme='neon'] .nx-quests .qchip.coins, html[data-theme='neon'] .nx-wk .qchip.coins { color: var(--gold); }
html[data-theme='neon'] .nx-quests { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 12px; }
html[data-theme='neon'] .nx-quests .quest-card { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line-1); border-radius: 0; background: var(--nx-panel); box-shadow: none; transition: border-color 0.15s; }
html[data-theme='neon'] .nx-quests .quest-card:hover { border-color: var(--line-3); }
html[data-theme='neon'] .nx-quests .quest-card.done { border-color: var(--gold); background: linear-gradient(0deg, rgba(209, 171, 91, 0.12), rgba(209, 171, 91, 0.02) 60%), var(--nx-panel); }
html[data-theme='neon'] .nx-quests .quest-card.claimed { opacity: 1; }
/* a quest claimed: the card jumps, light runs across it, its picture is stamped, its rewards go up to the wallet */
html[data-theme='neon'] .nx-quests .quest-card.claiming { position: relative; overflow: hidden; z-index: 2; border-color: var(--gold); animation: nx-q-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); }
html[data-theme='neon'] .nx-quests .quest-card.claiming::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 232, 170, 0.5) 50%, transparent 70%); animation: nx-q-sweep 0.62s ease-out both; }
html[data-theme='neon'] .nx-quests .quest-card.claiming .qc-pic { animation: nx-q-stamp 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); box-shadow: 0 0 18px 2px rgba(226, 194, 124, 0.6); }
html[data-theme='neon'] .nx-quests .quest-card.claiming .qchip { animation: nx-q-up 0.7s ease-in both; }
html[data-theme='neon'] .nx-quests .quest-card.claiming .qchip:nth-child(2) { animation-delay: 0.07s; }
html[data-theme='neon'] .nx-quests .quest-card.claiming .qchip:nth-child(3) { animation-delay: 0.14s; }
html[data-theme='neon'] .nx-quests .quest-card.claiming .nx-bar > i { box-shadow: 0 0 10px 1px rgba(226, 194, 124, 0.9); }
html[data-theme='neon'] .nx-quests .quest-card.claiming .qc-go { filter: brightness(1.15); }
@keyframes nx-q-pop { 0% { transform: scale(1); } 30% { transform: scale(1.035) translateY(-3px); box-shadow: 0 0 26px 2px rgba(226, 194, 124, 0.45); } 100% { transform: none; } }
@keyframes nx-q-sweep { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@keyframes nx-q-stamp { 0% { transform: scale(1); } 35% { transform: scale(1.3) rotate(-6deg); filter: brightness(1.6); } 100% { transform: none; } }
@keyframes nx-q-up { 0% { transform: none; opacity: 1; } 25% { transform: translateY(2px) scale(1.15); opacity: 1; } 100% { transform: translateY(-34px) scale(0.9); opacity: 0; } }
html[data-theme='neon'].reduce-motion .nx-quests .quest-card.claiming, html[data-theme='neon'].reduce-motion .nx-quests .quest-card.claiming * { animation: none; }
html[data-theme='neon'] .nx-quests .quest-card.claimed > * { opacity: 0.55; }
html[data-theme='neon'] .nx-quests .qc-pic { width: 52px; height: 52px; border: 0; border-radius: 0; background: #17131d; box-shadow: none; }
html[data-theme='neon'] .nx-quests .qc-main { height: 100%; }
html[data-theme='neon'] .nx-quests .qc-title { font: 700 14px/1.25 var(--nx-cap); color: #f3ebde; }
html[data-theme='neon'] .nx-quests .qc-prog .nx-bar { flex: 1; height: 4px; border-radius: 0; box-shadow: none; background: rgba(255, 255, 255, 0.1); }
html[data-theme='neon'] .nx-quests .qc-prog .nx-bar > i { border-radius: 0; background: var(--gold); }
html[data-theme='neon'] .nx-quests .qc-prog .nx-bar > i::after { display: none; }
html[data-theme='neon'] .nx-quests .qc-n { font: 700 12px/1 var(--nx-ui); color: #c9c1b4; }
html[data-theme='neon'] .nx-quests .qc-foot { flex-wrap: nowrap; margin-top: auto; }
html[data-theme='neon'] .nx-quests .qc-rewards { min-width: 0; gap: 3px; }
html[data-theme='neon'] .nx-quests .qc-go { min-width: 72px; min-height: 30px; }
html[data-theme='neon'] .nx-quests .qc-swap { width: 30px; height: 30px; min-height: 0; padding: 0; }
html[data-theme='neon'] .nx-q-tiles { flex: none; display: grid; gap: 8px; padding: 0 12px 12px; }
html[data-theme='neon'] button.nx-q-tile { min-height: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; animation: none; color: inherit; font: inherit; }
html[data-theme='neon'] .nx-q-tile:disabled { cursor: default; }
html[data-theme='neon'] .nx-q-tile .th { display: grid; place-items: center; width: 76px; height: 46px; object-fit: cover; background: #17131d; }
html[data-theme='neon'] .nx-q-tile .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; }
html[data-theme='neon'] .nx-q-tile .tx b { font: 700 14px/1.15 var(--nx-cap); color: #f3ebde; }
html[data-theme='neon'] .nx-q-tile .tx small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 12px/1.2 var(--nx-ui); color: #a79e91; }
html[data-theme='neon'] .nx-q-tile .nx-bar { height: 3px; border-radius: 0; box-shadow: none; background: rgba(255, 255, 255, 0.1); }
html[data-theme='neon'] .nx-q-tile .nx-bar > i { border-radius: 0; background: var(--gold); }
html[data-theme='neon'] .nx-q-tile .nx-bar > i::after { display: none; }
@media (max-width: 1000px) {
  html[data-theme='neon'] .nx-quests { grid-template-columns: minmax(0, 1fr); }
  html[data-theme='neon'] .nx-q-stage { display: flex; flex-direction: column; min-height: 0; }
  html[data-theme='neon'] .nx-q-stage .nx-dt-fig { display: none; }
  html[data-theme='neon'] .nx-q-stage .nx-dt-info { position: relative; top: 0; width: auto; padding: 12px 16px 0; }
  html[data-theme='neon'] .nx-wk { position: relative; left: auto; right: auto; bottom: auto; padding: 8px 12px 12px; }
  html[data-theme='neon'] .nx-wk .wk-chest { width: 48px; height: 48px; }
  html[data-theme='neon'] .nx-wk .wk-chest :is(canvas, img) { width: 46px !important; height: 46px !important; }
  html[data-theme='neon'] .nx-wk .wk-bar { margin: 0 24px 0 0; height: 120px; }
  html[data-theme='neon'] .nx-wk .wk-prize { flex-direction: column; gap: 1px; }
  html[data-theme='neon'] .nx-wk .wk-track { top: 22px; }
  html[data-theme='neon'] .nx-wk .wk-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* ================================================================== Social: a page of the client on a computer */
@media (min-width: 1001px) {
  html[data-theme='neon'] .nx-client > .nx-so-head { display: none; }
  html[data-theme='neon'] :is(.screen-online, .screen-settings, .screen-profile).nx-client :is(.num, .bar b) { font-family: var(--nx-ui); }
  html[data-theme='neon'] .screen-online.nx-client small.num { font-size: 12px; }
  html[data-theme='neon'] :is(.screen-online, .screen-profile).nx-client .bar { min-height: 14px; }
  html[data-theme='neon'] :is(.screen-online, .screen-profile).nx-client .bar > b { font-size: 11px; line-height: 1; }
  html[data-theme='neon'] .nx-clan-claim { align-self: flex-start; min-width: 120px; }
  html[data-theme='neon'] :is(.screen-online, .screen-settings, .screen-profile, .screen-how).nx-client .panel { margin: 0; padding: 12px 14px; border: 1px solid var(--line-1); border-image: none; border-radius: 0; background: var(--nx-panel); box-shadow: none; }
  html[data-theme='neon'] :is(.screen-online, .screen-settings, .screen-profile).nx-client .h2 { margin: 0; font: 700 13px/1.2 var(--nx-cap); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); text-shadow: none; }
  html[data-theme='neon'] :is(.screen-online, .screen-settings, .screen-profile).nx-client .h2::before { display: none; }
  html[data-theme='neon'] .screen-online.nx-client :not(.lb2-row) > .row-banner { display: none; }
  html[data-theme='neon'] .screen-online.nx-client .max { display: grid; grid-template-columns: var(--nx-roster) minmax(0, 1fr); align-items: stretch; gap: 0; }
  /* the clan */
  html[data-theme='neon'] .nx-clan-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; padding: 12px; background: var(--nx-panel); border-right: 1px solid var(--line-1); overflow-y: auto; }
  html[data-theme='neon'] .nx-clan-box { flex: 1; min-height: 0; border: 0 !important; padding: 0 !important; overflow-y: auto; }
  html[data-theme='neon'] .nx-clan-list { flex: 1; min-height: 0; overflow-y: auto; }
  html[data-theme='neon'] .nx-clan-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; padding: 12px; }
  html[data-theme='neon'] .nx-clan-main > .clan-hero { flex: 0 0 auto; }
  /* a member: name and points, what you can do to them under it */
  html[data-theme='neon'] .nx-clan-box .clan-member { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 7px 0; border-top: 1px solid var(--line-1); }
  html[data-theme='neon'] .nx-clan-box .clan-member > span:last-child { display: contents; }
  html[data-theme='neon'] .nx-clan-box .clan-member > span:last-child > span { grid-column: 1 / -1; }
  html[data-theme='neon'] .nx-clan-box .clan-member > span:last-child > span:empty { display: none; }
  html[data-theme='neon'] .nx-clan-box .clan-member .btn { min-height: 26px; padding: 2px 8px; font-size: 11px; }
  html[data-theme='neon'] .nx-clan-pair { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html[data-theme='neon'] .nx-clan-pair > .panel { min-width: 0; }
  html[data-theme='neon'] .nx-clan-chat { flex: 1 1 0; min-height: 120px; display: flex; flex-direction: column; }
  html[data-theme='neon'] .nx-clan-chat .clan-chat { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
  html[data-theme='neon'] .nx-clan-main > .clan-hero:only-child { flex: 1; display: flex; align-items: center; padding: 28px; }
  /* the leaderboards: one line each, position, name, clan or level, number */
  html[data-theme='neon'] .screen-online .lb2-head { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  html[data-theme='neon'] .screen-online .lb2-title { font: 700 18px/1.2 var(--nx-cap); }
  html[data-theme='neon'] .screen-online .lb2-tools { align-items: center; flex-wrap: nowrap; }
  html[data-theme='neon'] .lb2-search { width: 220px; min-height: 34px; }
  html[data-theme='neon'] .screen-online .lb2-row { padding: 7px 12px; border: 1px solid var(--line-1); border-radius: 0; background: var(--nx-panel); box-shadow: none; }
  html[data-theme='neon'] .screen-online .lb2-row.me { border-color: var(--gold-2); background: linear-gradient(0deg, rgba(209, 171, 91, 0.12), rgba(209, 171, 91, 0.02)), var(--nx-panel); }
  html[data-theme='neon'] .screen-online .lb2-row.top1 { border-color: var(--gold); }
  html[data-theme='neon'] .screen-online .lb2-row .lb2-val b.num { font: 700 20px/1 var(--nx-ui); color: var(--gold); text-shadow: none; }
  html[data-theme='neon'] .screen-online .lb2-row .lb2-pos.num { font: 700 16px/1 var(--nx-ui); color: #c9c1b4; }
  html[data-theme='neon'] .screen-online .lb2-row.top1 .lb2-pos.num, html[data-theme='neon'] .screen-online .lb2-row.top2 .lb2-pos.num, html[data-theme='neon'] .screen-online .lb2-row.top3 .lb2-pos.num { color: var(--gold); }
  html[data-theme='neon'] .screen-online .lb2-who { flex-direction: row; align-items: center; gap: 10px; }
  html[data-theme='neon'] .screen-online .lb2-name.btn { font: 700 15px/1.2 var(--nx-ui); color: #f1ead9; text-decoration: none; }
  html[data-theme='neon'] .screen-online .lb2-name.btn:hover { color: var(--gold); }
  html[data-theme='neon'] .screen-online .lb2-val { flex-direction: row; align-items: baseline; gap: 8px; }
  html[data-theme='neon'] .screen-online .lb2-row.me .lb2-who { flex-direction: column; align-items: flex-start; gap: 3px; }
  /* ================================================================ your Profile: who you are, the rest beside it */
  html[data-theme='neon'] .screen-profile.nx-client .screen-body > .max { display: flex; flex-direction: column; gap: 10px; padding: 12px; overflow: hidden; }
  html[data-theme='neon'] .screen-profile.nx-client .screen-body > .nx-pf-tab-overview { padding: 0; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-prof { flex: 1; min-height: 0; margin: 0; display: grid; grid-template-columns: var(--nx-roster) minmax(0, 1fr); gap: 0; align-items: stretch; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-left { gap: 10px; padding: 12px; background: var(--nx-panel); border-right: 1px solid var(--line-1); overflow-y: auto; }
  /* every column reaches the bottom: what has a list takes what's left and scrolls in itself */
  html[data-theme='neon'] .nx-pf-main { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 10px; padding: 12px; align-items: stretch; overflow: hidden; }
  html[data-theme='neon'] .nx-pf-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
  html[data-theme='neon'] .nx-pf-col > .panel { flex: none; margin: 0; }
  html[data-theme='neon'] .nx-pf-col > :is(.nx-pf-recent, .pf-ach) { flex: 1 1 0; min-height: 120px; display: flex; flex-direction: column; }
  html[data-theme='neon'] .nx-pf-rows, html[data-theme='neon'] .nx-pf-col .pf-ach-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
  html[data-theme='neon'] .nx-pf-col .pf-ach-row, html[data-theme='neon'] .nx-pf-rows > .nx-match { flex: none; }
  html[data-theme='neon'] .nx-pf-left > .pf-grades { flex: 1 1 auto; min-height: 120px; margin: 0; display: flex; flex-direction: column; }
  html[data-theme='neon'] .nx-pf-left > .pf-grades .pf-chart { flex: 1; min-height: 74px; }
  html[data-theme='neon'] .nx-pf-main .nx-match { display: grid; grid-template-columns: 4px minmax(70px, 1fr) auto 30px; align-items: center; gap: 10px; }
  html[data-theme='neon'] .nx-pf-main .nx-match .mteam { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-card { flex: none; border-radius: 0; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-card::before, html[data-theme='neon'] .screen-profile.nx-client .nx-pf-card::after { display: none; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-bg { height: 112px !important; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-ava { left: 12px; top: 56px; width: 100px; height: 100px; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-ava :is(canvas, img, .framed) { max-width: 78px; max-height: 78px; }
  /* your name and level beside your picture, the level's bottom on the picture's (your call: they hung below it, too close) */
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-who { min-height: 0; margin-top: -16px; padding: 8px 96px 12px 136px; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-who .nx-kicker { display: none; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-who h2 { margin: 0; font-size: 24px; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-who .tags { margin-top: 6px; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-rank { top: 50px; right: 10px; } /* (above your level, now beside your picture) */
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-rank :is(img, canvas) { width: 52px !important; height: 52px !important; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-rank b { font-size: 13px; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-rank small { font: 400 11px/1 var(--nx-ui); }
  html[data-theme='neon'] .nx-pf-fact { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
  html[data-theme='neon'] .nx-pf-fact .nx-bar { flex: 1; min-width: 80px; height: 6px; margin: 0; }
  html[data-theme='neon'] .nx-pf-fact b { color: var(--gold); white-space: nowrap; }
  html[data-theme='neon'] .nx-pf-fact.link-row { cursor: pointer; }
  html[data-theme='neon'] .nx-pf-fact.link-row:hover b { color: #fff6dc; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-tile { padding: 8px 8px; border-radius: 0; background: rgba(0, 0, 0, 0.3); }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-tile small { font-size: 9px; letter-spacing: 0.08em; min-height: 22px; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-tile b { margin-top: 2px; font: 700 20px/1 var(--nx-ui); }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-season { gap: 14px; flex-wrap: nowrap; padding: 10px 12px; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-season .ringbox { flex: none; transform: scale(0.82); margin: -6px; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-medals { margin-top: 8px; gap: 4px; flex-wrap: nowrap; }
  html[data-theme='neon'] .nx-pf-main .nx-sec { margin: 0 0 6px; }
  html[data-theme='neon'] .nx-pf-main .pf-head { margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
  html[data-theme='neon'] .nx-pf-main .nx-match { padding: 6px 8px; min-height: 42px; }
  html[data-theme='neon'] .nx-pf-main .nx-match .mt small { font-size: 11px; }
  /* the records: three to a row, in plain numbers, wide enough for a long K/D/A */
  html[data-theme='neon'] .nx-pf-main .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  html[data-theme='neon'] .nx-pf-main .stat-tile { padding: 6px 4px; border: 1px solid var(--line-1); border-image: none; border-radius: 0; background: rgba(0, 0, 0, 0.3); box-shadow: none; }
  html[data-theme='neon'] .nx-pf-main .stat-tile b.num { font: 700 17px/1.1 var(--nx-ui); color: #f1ead9; text-shadow: none; white-space: nowrap; }
  html[data-theme='neon'] .nx-pf-main .pf-seg-btn.on { color: var(--gold); }
  /* the achievements nearly done: one to a line, their names whole */
  html[data-theme='neon'] .nx-pf-main .pf-ach-list { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 2px; }
  html[data-theme='neon'] .nx-pf-main .pf-ach-row { padding: 5px 8px; border: 1px solid var(--line-1); border-radius: 0; background: rgba(0, 0, 0, 0.25); }
  html[data-theme='neon'] .nx-pf-main .pf-ach-top { display: flex; align-items: center; gap: 10px; }
  html[data-theme='neon'] .nx-pf-main .pf-ach-n { font: 700 18px/1 var(--nx-ui); color: var(--gold); text-shadow: none; }
  html[data-theme='neon'] .nx-pf-left .pf-chart { height: auto; margin-top: 4px; }
  html[data-theme='neon'] .screen-profile.nx-client :is(.nx-bar-label b, .ringbox .rv b) { font-family: var(--nx-ui); font-weight: 700; }
  html[data-theme='neon'] .screen-profile.nx-client .ringbox .rv b { font-size: 18px; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-bar-label b { font-size: 13px; color: var(--gold); }
  /* the filters on one line */
  html[data-theme='neon'] .screen-profile.nx-client .ib-bar { grid-column: auto; grid-row: auto; padding: 0; background: none; border: 0; display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 8px 12px; }
  html[data-theme='neon'] .screen-profile.nx-client .ib-bar > .ib-chips { flex: none; }
  html[data-theme='neon'] .screen-profile.nx-client .ib-tools { flex: 1; flex-wrap: nowrap; justify-content: flex-end; align-items: center; }
  html[data-theme='neon'] .screen-profile.nx-client .ib-tools > .grow { display: block; }
  html[data-theme='neon'] .screen-profile.nx-client .ib-pick { flex: none; flex-direction: row; align-items: center; gap: 6px; }
  html[data-theme='neon'] .screen-profile.nx-client .ib-pick .it-select { width: auto; min-width: 130px; }
  html[data-theme='neon'] .screen-profile.nx-client .ib-search { width: 180px; flex: none; }
  html[data-theme='neon'] .screen-profile.nx-client .pf-hist-tools { justify-content: space-between; flex-wrap: nowrap; }
  html[data-theme='neon'] .nx-pf-main .pf-ach { gap: 6px; }
  html[data-theme='neon'] .nx-pf-main .nx-row { padding: 4px 0; }
  /* a champion: name and games over how much you've played it, its win rate under that */
  html[data-theme='neon'] .nx-pf-most .rt { display: block; min-width: 0; flex: 1; }
  html[data-theme='neon'] :is(.nx-mp-top, .nx-mp-wr) { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  html[data-theme='neon'] .nx-mp-wr { margin-top: 3px; }
  html[data-theme='neon'] .nx-mp-stars { display: flex; gap: 1px; margin-top: 1px; font-size: 12px; line-height: 1; }
  html[data-theme='neon'] .nx-mp-stars i { font-style: normal; color: rgba(255, 255, 255, 0.16); }
  html[data-theme='neon'] .nx-mp-stars i.on { color: var(--gold); }
  html[data-theme='neon'] .nx-pf-most .nx-row .rt .nx-bar { margin-top: 4px; }
  html[data-theme='neon'] .nx-mp-wr b { font: 700 13px/1.2 var(--nx-ui); color: var(--gold); }
  html[data-theme='neon'] .nx-mp-top small, html[data-theme='neon'] .nx-mp-wr small { font-size: 12px; color: #a79e90; }
  /* the other tabs: their filters stay, their lists scroll */
  html[data-theme='neon'] .screen-profile.nx-client :is(.pf-hist-tools, .ib-bar, .pf-ach-head) { flex: none; margin: 0; }
  html[data-theme='neon'] .screen-profile.nx-client .mh-list { flex: 1; min-height: 0; overflow-y: auto; }
  /* a game: room for its three lines of mode, K/D/A and date */
  html[data-theme='neon'] .screen-profile.nx-client .mh-row { flex: none; min-height: 76px; padding-top: 9px; padding-bottom: 9px; }
  html[data-theme='neon'] .screen-profile.nx-client .mh-row > .xs.muted { font-size: 12px; line-height: 1.55; }
  html[data-theme='neon'] .screen-profile.nx-client .pf-cards { flex: 1; min-height: 0; overflow-y: auto; align-content: start; }
  html[data-theme='neon'] .screen-profile.nx-client .pf-teams { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-pf-tab-teams > .nx-set-stage { flex: 1 0 150px; min-height: 150px; }
  /* the teams in the box with the picture: the words on the left, the teams beside them */
  html[data-theme='neon'] .nx-set-stage.has-teams .nx-dt-info { width: 300px; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-set-stage .pf-teams { position: absolute; z-index: 2; top: 16px; bottom: 130px; left: 340px; right: 16px; overflow-y: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: center; gap: 12px; }
  html[data-theme='neon'] .screen-profile.nx-client .nx-set-stage .pf-team { padding: 14px; gap: 14px; }
  html[data-theme='neon'] .nx-set-stage .pf-team-pics { gap: 6px; }
  html[data-theme='neon'] .nx-set-stage .pf-team-syn { gap: 5px; min-height: 26px; }
  html[data-theme='neon'] .nx-set-stage .pf-team-syn .nx-fac-tag { padding: 2px 6px; font-size: 11px; }
  html[data-theme='neon'] .nx-set-stage .pf-team-btns { gap: 8px; margin-top: auto; }
  html[data-theme='neon'] .nx-set-stage .pf-team { background: rgba(13, 10, 18, 0.94); }
  html[data-theme='neon'] .screen-profile.nx-client .pf-ach-head { padding: 8px 12px; }
  html[data-theme='neon'] .screen-profile.nx-client .ib-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 10px; margin: 0; align-items: stretch; }
  /* (one row, the list beside its detail: the client's second row, under its header, left an empty row above a list
     shorter than the detail, the list dropped to the bottom: Achievements' Done with a few done) */
  html[data-theme='neon'] .screen-profile.nx-client .ib-main { grid-row: 1; min-height: 0; overflow-y: auto; }
  html[data-theme='neon'] .screen-profile.nx-client .ib-detail { grid-row: 1; position: static; min-height: 0; max-height: none; overflow-y: auto; }

  /* ================================================================ another player's profile */
  html[data-theme='neon'] .modal.op-modal:has(.nx-op) { width: min(1120px, 94vw) !important; max-width: none; border-radius: 0; }
  html[data-theme='neon'] .nx-op { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 14px; height: min(600px, 76vh); }
  html[data-theme='neon'] .nx-op-left { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
  html[data-theme='neon'] .nx-op-right { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
  html[data-theme='neon'] .nx-op-right > .rh { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; padding: 10px 12px; border: 1px solid var(--line-1); border-image: none; border-radius: 0; background: var(--nx-panel); box-shadow: none; }
  html[data-theme='neon'] .nx-op-right .rh-list { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
  html[data-theme='neon'] .nx-op-right .op-hidden, html[data-theme='neon'] .nx-op-none { margin: auto; color: #a79e90; }
  html[data-theme='neon'] .nx-op .nx-op-card { flex: none; border-radius: 0; }
  html[data-theme='neon'] .nx-op .nx-op-card::before, html[data-theme='neon'] .nx-op .nx-op-card::after { display: none; }
  html[data-theme='neon'] .nx-op .h2 { margin: 0 0 6px; font: 700 13px/1.2 var(--nx-cap); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); text-shadow: none; }
  html[data-theme='neon'] .nx-op .h2::before { display: none; }
  html[data-theme='neon'] .nx-op .pf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
  html[data-theme='neon'] .nx-op .rh-row { grid-template-columns: 34px 74px minmax(0, 1fr) auto; gap: 8px; padding: 5px 8px 5px 6px; border: 1px solid var(--line-1); border-left-width: 3px; border-radius: 0; background: rgba(0, 0, 0, 0.25); box-shadow: none; }
  html[data-theme='neon'] .nx-op .rh-row.win { border-left-color: #6bdc78; }
  html[data-theme='neon'] .nx-op .rh-row.loss { border-left-color: #e0555a; }
  html[data-theme='neon'] .nx-op .rh-teams { flex-wrap: nowrap; gap: 3px; padding-top: 8px; }
  html[data-theme='neon'] .nx-op .rh-list { gap: 4px; }
  html[data-theme='neon'] .nx-op .rh-meta { font-size: 12px; line-height: 1.5; }
  html[data-theme='neon'] .nx-op .op-champ canvas { border: 1px solid var(--line-1); background: rgba(0, 0, 0, 0.3); }
  html[data-theme='neon'] .nx-op .op-best { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  html[data-theme='neon'] .nx-op .nx-best { flex-direction: row; align-items: center; gap: 6px; min-width: 0; text-align: left; }
  html[data-theme='neon'] .nx-op .nx-best canvas { flex: none; }
  html[data-theme='neon'] .nx-op .nx-best .who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  html[data-theme='neon'] .nx-op .nx-best .who > b { font-size: 12px; line-height: 1.2; }
  html[data-theme='neon'] .nx-op .nx-best .nx-mp-stars { font-size: 9px; gap: 0; }
  html[data-theme='neon'] .nx-op .nx-best .who > small { font-size: 11px; color: var(--gold); }
  /* both sides end at the same level: what's last on the left takes what's left of its height */
  html[data-theme='neon'] .nx-op-left > * { flex: none; margin: 0; }
  html[data-theme='neon'] .nx-op-left > :last-child { flex: 1 0 auto; }
  html[data-theme='neon'] .nx-op-left .op-cols { display: flex; flex-direction: column; margin: 0; }
  html[data-theme='neon'] .nx-op-left .op-cols > .op-box { flex: 1; margin: 0; }
  html[data-theme='neon'] .nx-op-left .op-box:not(.rh) { padding: 6px 10px; }
  html[data-theme='neon'] .nx-op-left .op-champ canvas { width: 44px !important; height: 44px !important; }
  html[data-theme='neon'] .nx-op-left .nx-sheet { margin: 0; row-gap: 0; }
  html[data-theme='neon'] .nx-op-left .nx-sheet :is(dt, dd) { padding-top: 1px; padding-bottom: 1px; font-size: 13px; }
  html[data-theme='neon'] .nx-op-left .nx-op-show .nx-show { min-height: 58px; padding: 3px; gap: 2px; }
  html[data-theme='neon'] .nx-op-left .nx-op-show .nx-show :is(canvas, img) { width: 32px !important; height: 32px !important; }
  html[data-theme='neon'] .nx-op-left .h2 { margin-bottom: 4px; }
  html[data-theme='neon'] .nx-op-card .nx-pf-bg { height: 90px !important; }
  html[data-theme='neon'] .nx-op-card .nx-pf-ava { left: 10px; top: 36px; width: 96px; height: 96px; }
  html[data-theme='neon'] .nx-op-card .nx-pf-ava :is(canvas, img, .framed) { max-width: 72px; max-height: 72px; }
  html[data-theme='neon'] .nx-op-card .nx-pf-who { min-height: 0; margin-top: -15px; padding: 8px 74px 10px 128px; }
  html[data-theme='neon'] .nx-op-card .nx-pf-who h2 { margin: 0; font-size: 22px; }
  html[data-theme='neon'] .nx-op-card .nx-pf-who .tags { margin-top: 5px; }
  html[data-theme='neon'] .nx-op-card .nx-pf-rank { top: 62px; right: 10px; }
  html[data-theme='neon'] .nx-op .op-bar { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; border: 0; border-image: none; background: none; box-shadow: none; }
  html[data-theme='neon'] .nx-op :is(.op-acts, .op-more) { display: flex; flex-wrap: wrap; gap: 6px; }
  html[data-theme='neon'] .nx-op .op-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; }
  html[data-theme='neon'] .nx-op .op-box:not(.rh) { padding: 8px 10px; border: 1px solid var(--line-1); border-image: none; border-radius: 0; background: var(--nx-panel); box-shadow: none; }

  /* inviting, in Settings */
  html[data-theme='neon'] :is(.nx-inv-side, .nx-inv-main) { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  html[data-theme='neon'] .nx-inv-side .lobby-code { font: 700 26px/1.1 var(--nx-ui); color: var(--gold); text-shadow: none; }

  /* ================================================================ Settings: categories, rows */
  html[data-theme='neon'] #app > .screen.win.nx-client:is(.screen-settings, .screen-how) { display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  html[data-theme='neon'] #app > .screen.win.nx-client:is(.screen-settings, .screen-how) > div:not(.screen-body) { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px 10px !important; min-height: 0; background: var(--nx-panel); border-right: 1px solid var(--line-1); }
  html[data-theme='neon'] .nx-set-name { padding: 0 10px 8px; font: 700 22px/1.1 var(--nx-cap); color: #fff6dc; }
  html[data-theme='neon'] :is(.screen-settings, .screen-how).nx-client > div > .tabs { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 1px; padding: 0; overflow-y: auto; border: 0; }
  html[data-theme='neon'] :is(.screen-settings, .screen-how).nx-client > div > .tabs > .btn { flex: none; width: 100%; min-height: 38px; justify-content: flex-start; padding: 0 10px; border: 0; border-left: 2px solid transparent; }
  html[data-theme='neon'] :is(.screen-settings, .screen-how).nx-client > div > .tabs > .btn:hover:not(:disabled) { border-left-color: rgba(209, 171, 91, 0.45); background: rgba(255, 255, 255, 0.03); }
  html[data-theme='neon'] :is(.screen-settings, .screen-how).nx-client > div > .tabs > .btn.on { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(209, 171, 91, 0.14), transparent 85%); }
  html[data-theme='neon'] .nx-set-back { flex: none; align-self: flex-start; margin-left: 8px; }
  html[data-theme='neon'] .nx-set-page { display: flex; flex-direction: column; min-height: 0; gap: 0; }
  html[data-theme='neon'] .nx-client .nx-set-page > .nx-set-stage { flex: 0 0 130px; min-height: 130px; } /* (always a slim band: a short page left it a screen-high picture, 14 Nov) */
  html[data-theme='neon'] .nx-set-stage .nx-dt-fig { left: auto; right: 5%; bottom: 4px; }
  html[data-theme='neon'] .nx-set-stage .nx-dt-info { width: min(60%, 560px); }
  html[data-theme='neon'] .nx-set-stage .nx-sub { margin: 6px 0 0; max-width: 44ch; color: #d8d0c2; }
  html[data-theme='neon'] .nx-set-stage .nx-pay { margin-top: 18px; }
  /* Account: two columns on a computer */
  html[data-theme='neon'] .screen-account .nx-acc-two { max-width: 1040px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
  html[data-theme='neon'] .screen-account .nx-acc-two > :first-child { grid-column: 1 / -1; }
  html[data-theme='neon'] .nx-set-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px; }
  /* the boxes in two columns that fill up evenly, no holes between them; a part's title and a long list across both */
  html[data-theme='neon'] .nx-set-flow { column-count: 2; column-gap: 10px; }
  html[data-theme='neon'] .nx-set-flow > .panel { break-inside: avoid; margin: 0 0 10px !important; }
  html[data-theme='neon'] .nx-set-flow > :is(.set-sec, .set-sec-note) { column-span: all; margin-bottom: 6px; }
  html[data-theme='neon'] .nx-set-flow > .set-sec:not(:first-child) { margin-top: 8px; }
  /* one list: its rows in two columns across the page */
  html[data-theme='neon'] .nx-set-flow > .panel:only-child, html[data-theme='neon'] .nx-set-flow > .panel.nx-wide { column-span: all; display: block; column-count: 2; column-gap: 28px; }
  html[data-theme='neon'] .nx-set-flow > :is(.panel:only-child, .panel.nx-wide) > * { break-inside: avoid; }
  html[data-theme='neon'] .nx-set-list .h2 { margin: 0 0 6px; }
  /* a row: the name on the left, what it's set to on the right */
  html[data-theme='neon'] .nx-set-list .toggle { width: 100%; min-height: 36px; margin: 0; padding: 5px 2px; border: 0; border-bottom: 1px solid var(--line-1); border-radius: 0; background: none; font-size: 14px; }
  html[data-theme='neon'] .nx-set-list .toggle:hover { background: rgba(255, 255, 255, 0.03); }
  html[data-theme='neon'] .nx-set-list label.col:has(> input[type='range']) { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
  html[data-theme='neon'] .nx-set-list label.col:has(> input[type='range']) > .row { display: contents; }
  html[data-theme='neon'] .nx-set-list label.col:has(> input[type='range']) > input { grid-row: 1; grid-column: 2; width: 100%; }
  html[data-theme='neon'] .nx-set-list label.col:has(> input[type='range']) .num { grid-column: 3; text-align: right; color: var(--gold); }
  html[data-theme='neon'] .nx-set-list .set-choice { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; border-bottom: 1px solid var(--line-1); }
  html[data-theme='neon'] .nx-set-list .set-choice > .row { justify-content: flex-end; gap: 4px; }
  html[data-theme='neon'] .nx-set-list .set-choice .btn { min-height: 28px; padding: 2px 10px; }
  html[data-theme='neon'] .nx-set-game .row.between { min-height: 36px; border-bottom: 1px solid var(--line-1); }
  html[data-theme='neon'] .nx-set-game .row.between .btn { min-height: 28px; padding: 2px 10px; }
  html[data-theme='neon'] .nx-set-list .theme-pick { margin: 4px 0 8px; }
  html[data-theme='neon'] .nx-set-list .theme-opt small { font: 400 12px/1.35 var(--nx-ui); letter-spacing: 0; text-transform: none; }
}
/* phones: the same rows, stacked, as before */
@media (max-width: 1000px) {
  html[data-theme='neon'] .nx-dt-stage.nx-set-stage, html[data-theme='neon'] .nx-set-name, html[data-theme='neon'] .nx-set-back { display: none; }
  html[data-theme='neon'] :is(.nx-set-list, .nx-set-flow, .nx-inv-side, .nx-inv-main) { display: flex; flex-direction: column; gap: 10px; }
}
/* a member's rank, first on the row: an icon and a word in boxes of one size, gold for who leads, silver for officers */
html[data-theme='neon'] .nx-clan-role { flex: none; box-sizing: border-box; width: 84px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border: 1px solid var(--line-2); font: 600 11px/1.3 var(--nx-ui); color: #a79e90; text-decoration: none; }
html[data-theme='neon'] .nx-clan-role :is(canvas, img) { flex: none; width: 14px; height: 14px; }
html[data-theme='neon'] .nx-clan-role.leader { color: var(--gold); border: 1px solid var(--gold); background: rgba(209, 171, 91, 0.16); font-weight: 700; }
html[data-theme='neon'] .nx-clan-role.officer { color: #f1ead9; border: 1px solid #b9c2cf; background: rgba(185, 194, 207, 0.14); }
html[data-theme='neon'] .clan-member > .link:has(.nx-clan-role) { min-width: 0; text-decoration: none; }
@media (min-width: 1001px) and (max-width: 1280px) {
  html[data-theme='neon'] .nx-pf-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; align-items: start; overflow-y: auto; }
  html[data-theme='neon'] .nx-pf-col > :is(.nx-pf-recent, .pf-ach) { flex: none; }
  html[data-theme='neon'] .nx-pf-rows, html[data-theme='neon'] .nx-pf-col .pf-ach-list { max-height: 260px; }
  html[data-theme='neon'] .screen-profile.nx-client .ib-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}
/* the achievements shown off: three places, the empty ones a dashed way to choose */
html[data-theme='neon'] .nx-ach-show { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
html[data-theme='neon'] .nx-show { min-width: 0; min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px; border: 1px solid var(--gold-2); background: linear-gradient(0deg, rgba(209, 171, 91, 0.1), rgba(209, 171, 91, 0.02)); color: #f1ead9; font: inherit; text-align: center; }
html[data-theme='neon'] button.nx-show { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
html[data-theme='neon'] button.nx-show:hover { border-color: var(--gold); box-shadow: 0 0 14px 1px rgba(226, 194, 124, 0.35); }
html[data-theme='neon'] .nx-show small { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 11px/1.2 var(--nx-ui); }
html[data-theme='neon'] .nx-show.empty { position: relative; border: 1px dashed var(--line-3); background: rgba(0, 0, 0, 0.25); }
html[data-theme='neon'] .nx-show.empty::before, html[data-theme='neon'] .nx-show.empty::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--line-3); }
html[data-theme='neon'] .nx-show.empty::after { transform: rotate(90deg); }
html[data-theme='neon'] .nx-show.empty:hover::before, html[data-theme='neon'] .nx-show.empty:hover::after { background: var(--gold); }
html[data-theme='neon'] .nx-pf-col .nx-show { min-height: 62px; padding: 4px; gap: 2px; }
html[data-theme='neon'] .nx-pf-col .nx-show :is(canvas, img) { width: 34px !important; height: 34px !important; }
html[data-theme='neon'] .nx-pf-col .pf-ach { gap: 5px; padding-top: 8px; padding-bottom: 8px; }
html[data-theme='neon'] .nx-pf-col .pf-ach .pf-head { margin-bottom: 0; }
html[data-theme='neon'] .nx-pf-col .pf-ach .pf-head .btn { min-height: 26px; padding: 1px 8px; font-size: 11px; }
html[data-theme='neon'] .nx-pf-col .pf-ach > .xs.muted { display: none; }
html[data-theme='neon'] .nx-pf-col .pf-ach-row { padding: 3px 8px; }
html[data-theme='neon'] .nx-pf-col .pf-ach-row .pf-ring, html[data-theme='neon'] .nx-pf-col .pf-ach-row .pf-ach-pic { width: 30px !important; height: 30px !important; }
html[data-theme='neon'] .nx-pf-most .nx-row { padding: 2px 0; }
html[data-theme='neon'] .nx-pf-most .nx-mp-wr { margin-top: 1px; }
html[data-theme='neon'] .nx-show-btn { margin-top: 8px; }
html[data-theme='neon'] .btn.nx-off { filter: grayscale(1) brightness(0.62); cursor: not-allowed; }
/* what deletes: a dark red, in tone with the buttons around it */
html[data-theme='neon'] .btn.nx-off { opacity: 0.5; cursor: not-allowed; }
html[data-theme='neon'] .btn.nx-del { --bg: #3a1418; --edge: #7c2b30; color: #f0b9b4; }
html[data-theme='neon'] .btn.nx-del:hover:not(:disabled) { --bg: #54191f; --edge: #a83a40; color: #ffd9d4; }
/* More stats: its top stays put, so the tabs don't move as each one's height changes */
html[data-theme='neon'] .modal-back:has(> .ms-modal) { align-items: flex-start; }
html[data-theme='neon'] .modal.ms-modal { margin-top: clamp(0px, 7vh, 70px); max-height: calc(100% - clamp(0px, 7vh, 70px)); }
/* what's rarely wanted on a player's profile: behind a gear */
html[data-theme='neon'] .nx-more-box { position: relative; display: inline-flex; }
html[data-theme='neon'] .nx-more-btn.on { border-color: var(--gold-2); color: var(--gold); }
html[data-theme='neon'] .op-more.nx-more { position: absolute; z-index: 5; top: calc(100% + 4px); right: 0; min-width: 170px; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 4px; border: 1px solid var(--line-2); background: #15111b; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7); animation: nx-dock-in 0.13s ease-out; }
html[data-theme='neon'] .op-more.nx-more[hidden] { display: none; }
html[data-theme='neon'] .op-more.nx-more .btn { width: 100%; justify-content: flex-start; min-height: 30px; border: 0; background: none; filter: none; }
html[data-theme='neon'] .op-more.nx-more .btn::before { display: none; }
html[data-theme='neon'] .op-more.nx-more .btn:hover:not(:disabled) { background: rgba(209, 171, 91, 0.12); color: #fff6dc; }
html[data-theme='neon'] .nx-name-btn { gap: 8px; }
html[data-theme='neon'] .nx-cost { display: inline-flex; align-items: center; gap: 3px; font-family: var(--nx-ui); }
html[data-theme='neon'] .nx-show-tip { display: flex; flex-direction: column; gap: 3px; max-width: 240px; font: 400 13px/1.35 var(--nx-ui); }
html[data-theme='neon'] .nx-show-tip b { font: 700 14px/1.2 var(--nx-cap); color: var(--gold); }
html[data-theme='neon'] .nx-show-hint { margin: 8px 0 0; }
html[data-theme='neon'] .nx-op-show .nx-show { min-height: 72px; }
/* ================================================================== How to Play: themes, each with its own boxes */
html[data-theme='neon'] .nx-g-page { display: flex; flex-direction: column; gap: 22px; padding: 16px; font-size: 14px; line-height: 1.5; color: #e6dfd1; }
html[data-theme='neon'] .nx-g-page b { color: #fff6dc; font-weight: 700; }
html[data-theme='neon'] .nx-g-col { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
html[data-theme='neon'] .nx-g-sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
html[data-theme='neon'] .nx-g-head { display: flex; align-items: center; gap: 12px; margin: 0; font: 700 15px/1.2 var(--nx-cap); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .nx-g-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-2), transparent); }
html[data-theme='neon'] .nx-g-p { margin: 0; }
html[data-theme='neon'] .nx-g-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
html[data-theme='neon'] .nx-g-list li { position: relative; padding-left: 16px; }
html[data-theme='neon'] .nx-g-list li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; rotate: 45deg; background: var(--gold-2); }
html[data-theme='neon'] .nx-g-sub { font: 700 12px/1.2 var(--nx-cap); letter-spacing: 0.05em; text-transform: uppercase; color: #c9c1b4; }
html[data-theme='neon'] .nx-g-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
html[data-theme='neon'] .nx-g-gap { width: 14px; }
html[data-theme='neon'] .nx-g-pill { padding: 3px 10px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); font: 700 12px/1.3 var(--nx-ui); color: #e6dfd1; }
html[data-theme='neon'] .nx-g-pill.rar.rare { color: #7fb4ff; border-color: #7fb4ff; }
html[data-theme='neon'] .nx-g-pill.rar.epic { color: #c49aff; border-color: #c49aff; }
html[data-theme='neon'] .nx-g-pill.rar.legendary { color: #ffb84d; border-color: #ffb84d; }
html[data-theme='neon'] .nx-g-faces { display: flex; flex-wrap: wrap; gap: 3px; }
html[data-theme='neon'] .nx-g-face { display: grid; place-items: center; padding: 2px; border: 1px solid var(--line-1); background: rgba(0, 0, 0, 0.35); }
/* two columns: the steps and the controls */
html[data-theme='neon'] .nx-g-two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
/* the five steps: one open at a time */
html[data-theme='neon'] .nx-g-steps { display: flex; flex-direction: column; gap: 6px; }
html[data-theme='neon'] .nx-g-step { border: 1px solid var(--line-1); background: var(--nx-panel); transition: border-color 0.15s; }
html[data-theme='neon'] .nx-g-step.open { border-color: var(--gold-2); }
html[data-theme='neon'] .nx-g-step-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background 0.15s; }
html[data-theme='neon'] .nx-g-step-head:hover { background: rgba(209, 171, 91, 0.07); }
html[data-theme='neon'] .nx-g-step-head .n { flex: none; width: 28px; height: 28px; display: grid; place-items: center; rotate: 45deg; font: 700 14px/1 var(--nx-ui); color: #1b1408; background: linear-gradient(180deg, #d1ab5b, #b48d3e); }
html[data-theme='neon'] .nx-g-step-head .n { rotate: 0deg; border-radius: 50%; }
html[data-theme='neon'] .nx-g-step-head b { flex: 1; font: 700 16px/1.2 var(--nx-cap); }
html[data-theme='neon'] .nx-g-step.open .nx-g-step-head b { color: var(--gold); }
html[data-theme='neon'] .nx-g-step-head .chev { flex: none; width: 9px; height: 9px; margin-right: 4px; border: solid var(--gold); border-width: 0 2px 2px 0; rotate: 45deg; transition: rotate 0.2s, translate 0.2s; translate: 0 -2px; }
html[data-theme='neon'] .nx-g-step.open .chev { rotate: -135deg; translate: 0 2px; }
html[data-theme='neon'] .nx-g-step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.22s ease-out; }
html[data-theme='neon'] .nx-g-step.open .nx-g-step-body { grid-template-rows: 1fr; }
html[data-theme='neon'] .nx-g-step-body > div { min-height: 0; overflow: hidden; }
html[data-theme='neon'] .nx-g-step-body .nx-g-list { padding: 2px 14px 14px 52px; }
html[data-theme='neon'].reduce-motion .nx-g-step-body, html[data-theme='neon'].reduce-motion .chev { transition: none; }
/* the keys */
html[data-theme='neon'] .nx-g-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
html[data-theme='neon'] .nx-g-key { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; }
html[data-theme='neon'] .nx-g-key kbd { flex: none; min-width: 30px; padding: 4px 8px; text-align: center; font: 700 13px/1.1 var(--nx-ui); color: var(--gold); background: #0c0a10; border: 1px solid var(--line-3); border-bottom-width: 3px; }
html[data-theme='neon'] .nx-g-sec > .btn { align-self: flex-start; }
/* the factions, each in its colour */
html[data-theme='neon'] .nx-g-facs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html[data-theme='neon'] .nx-g-fac { --c: #6f9bff; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-left: 4px solid var(--c); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 15%, transparent), transparent 70%), var(--nx-panel); }
html[data-theme='neon'] .nx-g-fac.wild { --c: #6bd672; }
html[data-theme='neon'] .nx-g-fac.arcane { --c: #b98aff; }
html[data-theme='neon'] .nx-g-fac.shadow { --c: #ff6390; }
html[data-theme='neon'] .nx-g-fac b { color: var(--c); }
/* the types, each in its colour */
html[data-theme='neon'] .nx-g-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
html[data-theme='neon'] .nx-g-type { --c: #aab7c8; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line-1); border-top: 3px solid var(--c); background: var(--nx-panel); }
html[data-theme='neon'] .nx-g-type.earth { --c: #c79a62; }
html[data-theme='neon'] .nx-g-type.wild { --c: #6bd672; }
html[data-theme='neon'] .nx-g-type.snow { --c: #9fd8ff; }
html[data-theme='neon'] .nx-g-type.flame { --c: #ff8a4a; }
html[data-theme='neon'] .nx-g-type.shadow { --c: #ff6390; }
html[data-theme='neon'] .nx-g-type.light { --c: #e2c27c; }
html[data-theme='neon'] .nx-g-type.arcane { --c: #b98aff; }
html[data-theme='neon'] .nx-g-type .name { font: 700 15px/1.2 var(--nx-cap); color: var(--c); }
html[data-theme='neon'] .nx-g-chip { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 2px 8px; font-size: 12px; }
html[data-theme='neon'] .nx-g-chip small { color: #c9c1b4; font-size: 11px; }
html[data-theme='neon'] .nx-g-chip.bad { background: rgba(224, 85, 90, 0.14); }
html[data-theme='neon'] .nx-g-chip.bad b { color: #ff9a9e; }
html[data-theme='neon'] .nx-g-chip.good { background: rgba(107, 220, 120, 0.12); }
html[data-theme='neon'] .nx-g-chip.good b { color: #8fe89a; }
/* the ladders: tiers and mastery */
html[data-theme='neon'] .nx-g-ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
html[data-theme='neon'] .nx-g-rung { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; text-align: center; border: 1px solid var(--line-2); border-bottom: 3px solid var(--gold-2); background: var(--nx-panel); font-size: 12px; }
html[data-theme='neon'] .nx-g-rung .big { font: 700 24px/1.1 var(--nx-cap); color: var(--gold); }
html[data-theme='neon'] .nx-g-rung small { color: #c9c1b4; font-size: 12px; }
html[data-theme='neon'] .nx-g-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
html[data-theme='neon'] .nx-g-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; text-align: center; border: 1px solid var(--line-1); background: rgba(209, 171, 91, 0.06); }
html[data-theme='neon'] .nx-g-tile b { font: 700 20px/1.1 var(--nx-ui); color: var(--gold); }
html[data-theme='neon'] .nx-g-tile small { color: #c9c1b4; font-size: 12px; }
html[data-theme='neon'] .nx-g-stars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
html[data-theme='neon'] .nx-g-star { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 5px 4px; border: 1px solid var(--line-1); background: var(--nx-panel); }
html[data-theme='neon'] .nx-g-page .nx-g-star b { color: var(--gold); }
html[data-theme='neon'] .nx-g-star small { font-size: 13px; color: #e6dfd1; }
/* cards: one subject each */
html[data-theme='neon'] .nx-g-cards { display: grid; gap: 12px; grid-auto-rows: 1fr; }
html[data-theme='neon'] .nx-g-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[data-theme='neon'] .nx-g-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-theme='neon'] .nx-g-card { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-1); border-top: 3px solid var(--gold-2); background: var(--nx-panel); }
html[data-theme='neon'] .nx-g-card-head { display: flex; align-items: center; gap: 10px; }
html[data-theme='neon'] .nx-g-card h4 { margin: 0; font: 700 17px/1.2 var(--nx-cap); color: var(--gold); }
html[data-theme='neon'] .nx-g-medals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
/* the arena's squares */
html[data-theme='neon'] .nx-g-squares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html[data-theme='neon'] .nx-g-square { --c: #6bd672; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line-1); border-left: 4px solid var(--c); background: var(--nx-panel); }
html[data-theme='neon'] .nx-g-square.sq-bad { --c: #e0555a; }
html[data-theme='neon'] .nx-g-square.sq-gold { --c: var(--gold); }
html[data-theme='neon'] .nx-g-square > b { font: 700 15px/1.2 var(--nx-cap); color: var(--c); }
/* all the champions */
html[data-theme='neon'] .nx-g-find { flex: none; align-self: flex-start; width: 320px; }
html[data-theme='neon'] .nx-g-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; align-items: stretch; }
html[data-theme='neon'] .nx-g-champ { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line-1); background: var(--nx-panel); font-size: 13px; line-height: 1.4; }
html[data-theme='neon'] .nx-g-champ[hidden] { display: none; }
html[data-theme='neon'] .nx-g-champ .top { display: flex; align-items: center; gap: 12px; }
html[data-theme='neon'] .nx-g-champ .top canvas { flex: none; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); }
html[data-theme='neon'] .nx-g-champ h4 { margin: 0; font: 700 17px/1.1 var(--nx-cap); color: #fff6dc; }
html[data-theme='neon'] .nx-g-champ .who small { color: #a79e90; }
html[data-theme='neon'] .nx-g-champ .stats { display: flex; gap: 12px; margin-top: 2px; }
html[data-theme='neon'] .nx-g-champ .reach { color: #a79e90; }
html[data-theme='neon'] .nx-g-ab { display: flex; flex-direction: column; padding: 5px 8px; border-left: 2px solid #8a8378; background: rgba(0, 0, 0, 0.25); }
html[data-theme='neon'] .nx-g-ab.skill { border-left-color: #7fb4ff; }
html[data-theme='neon'] .nx-g-ab.ult { border-left-color: var(--gold); }
html[data-theme='neon'] .nx-g-page .nx-g-ab.ult b { color: var(--gold); }
@media (min-width: 1001px) {
  html[data-theme='neon'] .nx-client .nx-set-page.nx-g > .nx-g-stage { flex: 0 0 118px; min-height: 118px; }
  html[data-theme='neon'] .nx-g .nx-g-page { flex: 1; min-height: 0; overflow-y: auto; }
  /* a theme with few words: as tall as they need, the picture filling the rest */
  html[data-theme='neon'] .nx-client .nx-set-page.nx-g:has(> :is(.nx-g-collect, .nx-g-arena)) > .nx-g-stage { flex: 1 1 118px; }
  html[data-theme='neon'] .nx-g .nx-g-page:is(.nx-g-collect, .nx-g-arena) { flex: 0 1 auto; }
  html[data-theme='neon'] .nx-g-stage .nx-dt-info { width: min(70%, 680px); }
  html[data-theme='neon'] .nx-g-stage .nx-dt-info h2 { margin: 0; font-size: 26px; }
  html[data-theme='neon'] .nx-g-stage .nx-sub { margin-top: 2px; }
  html[data-theme='neon'] .nx-g-stage .nx-hero-pet { bottom: 0; }
  html[data-theme='neon'] .screen-how.nx-client > div > .tabs > .btn { text-align: left; }
}
@media (max-width: 1100px) {
  html[data-theme='neon'] :is(.nx-g-two, .nx-g-facs, .nx-g-cards.three, .nx-g-cards.two, .nx-g-squares) { grid-template-columns: minmax(0, 1fr); }
  html[data-theme='neon'] .nx-g-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme='neon'] :is(.nx-g-tiles, .nx-g-stars) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-theme='neon'] .nx-g-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-theme='neon'] .nx-g-find { width: 100%; }
}
/* notifications: a list hanging from the bell, a whole row the way to what it says */
html[data-theme='neon'] .nx-nc-pop { position: fixed; z-index: 30; width: 380px; max-height: min(560px, calc(100vh - var(--hub-bar-h) - var(--hub-bottom-h) - 24px)); display: flex; flex-direction: column; background: #0d0a12; border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7); animation: nx-nc-in 0.16s ease-out; transition: opacity 0.13s ease-in, transform 0.13s ease-in; }
html[data-theme='neon'] .nx-nc-pop.leaving { opacity: 0; transform: translateY(-6px); }
html[data-theme='neon'].reduce-motion .nx-nc-pop { animation: none; transition: none; }
@keyframes nx-nc-in { from { opacity: 0; transform: translateY(-8px); } }
html[data-theme='neon'] .nx-nc-title { flex: none; padding: 12px 14px 10px; font: 700 16px/1.1 var(--nx-cap); color: #fff6dc; border-bottom: 1px solid var(--line-1); }
html[data-theme='neon'] .nx-nc-pop .nc { flex: 1; min-width: 0; min-height: 0; overflow: hidden auto; padding: 8px 8px 10px; gap: 2px; }
html[data-theme='neon'] .nx-nc-pop .nc-sec { margin: 6px 6px 2px; font: 700 11px/1 var(--nx-cap); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .nx-nc-pop .row.between { align-items: center; }
html[data-theme='neon'] .nx-nc-pop .row.between .btn { min-height: 24px; padding: 1px 8px; font-size: 11px; }
html[data-theme='neon'] .nx-nc-pop p { margin: 4px 6px 8px; }
html[data-theme='neon'] .nx-nc-row { position: relative; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; background: none; color: #e6dfd1; font: 400 13px/1.3 var(--nx-ui); text-align: left; transition: background 0.12s; }
html[data-theme='neon'] button.nx-nc-row { cursor: pointer; }
html[data-theme='neon'] button.nx-nc-row:hover { background: rgba(209, 171, 91, 0.1); }
html[data-theme='neon'] .nx-nc-row.unread { box-shadow: inset 2px 0 0 var(--gold); background: rgba(209, 171, 91, 0.05); }
html[data-theme='neon'] .nx-nc-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html[data-theme='neon'] .nx-nc-txt small { font-size: 11px; color: #8e8678; }
html[data-theme='neon'] .nc-bell.on { filter: drop-shadow(0 0 6px rgba(226, 194, 124, 0.7)); }
/* the clan's chest: waiting for you, it glows and the button breathes; claimed, it bursts */
html[data-theme='neon'] .clan-goal.ready > :is(img, canvas) { animation: nx-chest-wait 1.5s ease-in-out infinite; }
html[data-theme='neon'] .clan-goal.ready .nx-clan-claim { animation: nx-claim-wait 1.5s ease-in-out infinite; }
html[data-theme='neon'] .clan-goal.opened > :is(img, canvas) { animation: nx-chest-open 0.62s ease-out forwards; }
html[data-theme='neon'] .clan-goal.opened .nx-clan-claim { animation: none; opacity: 0.5; pointer-events: none; }
html[data-theme='neon'].reduce-motion .clan-goal > :is(img, canvas), html[data-theme='neon'].reduce-motion .nx-clan-claim { animation: none; }
@keyframes nx-chest-wait { 50% { transform: translateY(-3px) rotate(-1.5deg); filter: drop-shadow(0 0 14px rgba(226, 194, 124, 0.85)); } }
@keyframes nx-claim-wait { 50% { box-shadow: 0 0 16px 1px rgba(226, 194, 124, 0.65); } }
@keyframes nx-chest-open { 0% { transform: scale(1); } 18% { transform: scale(0.88) rotate(-5deg); } 36% { transform: scale(1.22) rotate(5deg); filter: brightness(1.7) drop-shadow(0 0 24px #d1ab5b); } 62% { transform: scale(1.08) rotate(-2deg); filter: brightness(1.25) drop-shadow(0 0 14px #d1ab5b); } 100% { transform: scale(1); filter: none; } }

/* ================================================================== the bottom bar: friends and conversations */
html[data-theme='neon'].nx-dock-on { --nx-dock-h: 40px; --hub-bottom-h: calc(var(--nx-dock-h) * var(--nx-zoom, 1)); }
html[data-theme='neon'] .nx-dock { position: fixed; z-index: 16; left: 0; right: 0; bottom: var(--safe-b); height: calc(var(--nx-dock-h, 40px) * var(--nx-zoom, 1)); background: linear-gradient(180deg, #16121c, #0d0a12); border-top: 1px solid var(--line-2); }
html[data-theme='neon'] .nx-dock[hidden] { display: none; }
html[data-theme='neon'] .nx-dock-in { zoom: var(--nx-zoom, 1); position: relative; height: var(--nx-dock-h, 40px); width: calc(min(var(--nx-page), 100vw) / var(--nx-zoom, 1)); margin: 0 auto; display: flex; align-items: stretch; justify-content: flex-end; }
html[data-theme='neon'] .nx-dock-tabs { display: flex; align-items: stretch; min-width: 0; }
html[data-theme='neon'] .nx-dock-slot { position: relative; display: flex; align-items: stretch; border-left: 1px solid var(--line-1); }
html[data-theme='neon'] .nx-dock-tab, html[data-theme='neon'] .nx-dock-friends { display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 0; background: none; color: #d8d0c2; font: 600 13px/1 var(--nx-ui); cursor: pointer; transition: background 0.12s, color 0.12s; }
html[data-theme='neon'] .nx-dock-tab { width: 150px; padding-right: 26px; }
html[data-theme='neon'] .nx-dock-tab > span { min-width: 0; }
html[data-theme='neon'] :is(.nx-dock-tab, .nx-dock-friends):hover { background: rgba(255, 255, 255, 0.05); color: #fff6dc; }
html[data-theme='neon'] :is(.nx-dock-tab, .nx-dock-friends).on { color: var(--gold); background: linear-gradient(0deg, rgba(209, 171, 91, 0.16), rgba(209, 171, 91, 0.03)); box-shadow: inset 0 -2px 0 var(--gold); }
html[data-theme='neon'] .nx-dock-tab.fresh { color: #fff6dc; animation: nx-dock-fresh 1.4s ease-in-out infinite; }
html[data-theme='neon'].reduce-motion .nx-dock-tab.fresh { animation: none; background: rgba(209, 171, 91, 0.18); }
@keyframes nx-dock-fresh { 50% { background: rgba(209, 171, 91, 0.24); } }
html[data-theme='neon'] .nx-dock-friends { flex: none; width: 260px; justify-content: flex-start; gap: 10px; padding: 0 16px; border-left: 1px solid var(--line-2); font: 700 14px/1 var(--nx-cap); letter-spacing: 0.08em; text-transform: uppercase; background: linear-gradient(0deg, rgba(209, 171, 91, 0.1), rgba(209, 171, 91, 0.02)); transition: background 0.15s, color 0.15s, box-shadow 0.15s; }
html[data-theme='neon'] .nx-dock-friends .nx-dock-count { margin-left: auto; font-size: 13px; }
html[data-theme='neon'] .nx-dock-friends:hover { color: var(--gold); background: linear-gradient(0deg, rgba(209, 171, 91, 0.26), rgba(209, 171, 91, 0.06)); box-shadow: 0 0 18px 2px rgba(226, 194, 124, 0.55), inset 0 0 0 1px rgba(226, 194, 124, 0.7); }
html[data-theme='neon'] .nx-dock-count { display: inline-flex; align-items: center; gap: 5px; font: 600 12px/1 var(--nx-ui); letter-spacing: 0; color: #c9c1b4; }
html[data-theme='neon'] .nx-dock-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #5a5560; }
html[data-theme='neon'] .nx-dock-dot.on { background: #6bdc78; }
html[data-theme='neon'] .nx-dock-dot.on.queue { background: #b48d3e; }
html[data-theme='neon'] .nx-dock-dot.on.match { background: var(--gold); }
html[data-theme='neon'] .nx-dock-n { flex: none; min-width: 16px; padding: 2px 4px; font: 700 11px/1 var(--nx-ui); text-align: center; color: #1b1408; background: var(--gold); }
html[data-theme='neon'] .nx-dock-x { position: absolute; top: 0; bottom: 0; right: 2px; width: 22px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: #8e8678; cursor: pointer; opacity: 0; transition: opacity 0.12s; }
html[data-theme='neon'] .nx-dock-slot:hover .nx-dock-x, html[data-theme='neon'] .nx-dock-x:focus-visible { opacity: 1; }
html[data-theme='neon'] .nx-dock-x:hover { color: #fff6dc; }
/* what opens above it */
html[data-theme='neon'] .nx-dock-box { position: absolute; right: 0; bottom: 100%; }
html[data-theme='neon'] .nx-dock-win { position: absolute; bottom: 0; display: flex; flex-direction: column; min-height: 0; background: #0d0a12; border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6); animation: nx-dock-in 0.2s ease-out; transition: opacity 0.13s ease-in, transform 0.13s ease-in; }
html[data-theme='neon'] .nx-dock-win.leaving { opacity: 0; transform: translateY(8px); }
html[data-theme='neon'].reduce-motion .nx-dock-win { animation: none; transition: none; }
@keyframes nx-dock-in { from { opacity: 0; transform: translateY(10px); } }
html[data-theme='neon'] .nx-dock-list { width: 340px; height: min(600px, calc((100vh - var(--hub-bar-h) - var(--hub-bottom-h)) / var(--nx-zoom, 1) - 16px)); gap: 8px; padding: 10px; }
html[data-theme='neon'] .nx-dock-rows { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
html[data-theme='neon'] .nx-dock-group { flex: none; display: flex; justify-content: space-between; padding: 8px 4px 4px; font: 700 11px/1 var(--nx-cap); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .nx-dock-group small { color: #8e8678; }
html[data-theme='neon'] .nx-dock-row { flex: none; width: 100%; display: flex; align-items: center; gap: 9px; padding: 5px 6px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background 0.12s; }
html[data-theme='neon'] .nx-dock-row:not(.plain):hover { background: rgba(209, 171, 91, 0.09); }
html[data-theme='neon'] .nx-dock-row.plain { cursor: default; }
html[data-theme='neon'] .nx-dock-row:not(.on):not(.plain) .so-ava { opacity: 0.7; }
html[data-theme='neon'] .nx-dock-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
html[data-theme='neon'] .nx-dock-row .name { display: flex; align-items: center; gap: 6px; min-width: 0; }
html[data-theme='neon'] .nx-dock-row small { font-size: 11px; }
html[data-theme='neon'] .nx-dock-results:not(:empty) { border-top: 1px solid var(--line-1); padding-top: 4px; }
html[data-theme='neon'] .nx-dock-findrow { position: relative; flex: none; display: flex; align-items: stretch; gap: 6px; }
html[data-theme='neon'] .nx-dock-findrow .so-search-box { flex: 1; min-width: 0; }
/* the +: the search box's own shape beside it, its two strokes drawn so they sit dead centre */
html[data-theme='neon'] .nx-dock-plus { position: relative; flex: none; width: 36px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(0, 0, 0, 0.4); color: var(--gold); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
html[data-theme='neon'] .nx-dock-plus::before, html[data-theme='neon'] .nx-dock-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; border-radius: 1px; background: currentColor; }
html[data-theme='neon'] .nx-dock-plus::after { transform: rotate(90deg); }
html[data-theme='neon'] .nx-dock-plus:hover, html[data-theme='neon'] .nx-dock-plus.on { border-color: var(--gold-2); background: rgba(209, 171, 91, 0.1); }
/* adding a friend and inviting one: the same box, in gold words, glowing under the mouse */
html[data-theme='neon'] .nx-dock-add, html[data-theme='neon'] .nx-dock-invite { flex: none; width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); background: linear-gradient(0deg, rgba(209, 171, 91, 0.1), rgba(209, 171, 91, 0.02)), var(--nx-panel); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
html[data-theme='neon'] .nx-dock-add { position: absolute; z-index: 3; top: calc(100% + 6px); left: 0; right: 0; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(0deg, rgba(209, 171, 91, 0.1), rgba(209, 171, 91, 0.02)), #15111b; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7); animation: nx-dock-in 0.14s ease-out; }
html[data-theme='neon'] .nx-dock-add[hidden] { display: none; }
html[data-theme='neon'] .nx-dock-add > b, html[data-theme='neon'] .nx-dock-invite { font: 700 14px/1.1 var(--nx-cap); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .nx-dock-add > .row { display: flex; align-items: stretch; gap: 6px; }
html[data-theme='neon'] .nx-dock-add .so-search { flex: 1; min-width: 0; min-height: 36px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 0; background: #0a0810; color: #f1ead9; font: 400 14px/1.2 var(--nx-ui); }
html[data-theme='neon'] .nx-dock-add .so-search:focus { outline: 0; border-color: var(--gold-2); }
html[data-theme='neon'] .nx-dock-add .btn { flex: none; min-height: 36px; padding: 2px 16px; }
html[data-theme='neon'] .nx-dock-field { position: relative; flex: 1; min-width: 0; display: flex; }
html[data-theme='neon'] .nx-dock-field .so-search { width: 100%; }
html[data-theme='neon'] .nx-dock-note { position: absolute; inset: 1px; display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: #0a0810; font: 600 12px/1.2 var(--nx-ui); pointer-events: none; animation: nx-dock-in 0.14s ease-out; }
html[data-theme='neon'] .nx-dock-note[hidden] { display: none; }
html[data-theme='neon'] .nx-dock-note.good { color: #6bdc78; }
html[data-theme='neon'] .nx-dock-note.bad { color: #ff8a7a; }
html[data-theme='neon'] .nx-dock-invite { display: flex; align-items: center; gap: 10px; min-height: 44px; text-align: left; cursor: pointer; }
html[data-theme='neon'] .nx-dock-invite:hover { border-color: rgba(226, 194, 124, 0.7); box-shadow: 0 0 16px 1px rgba(226, 194, 124, 0.4); }
html[data-theme='neon'] .nx-dock-none { margin: 12px 4px; font-size: 13px; color: #a79e90; }
/* a conversation: their banner, then what you've said */
html[data-theme='neon'] .nx-dock-chat { width: 420px; height: min(620px, calc((100vh - var(--hub-bar-h) - var(--hub-bottom-h)) / var(--nx-zoom, 1) - 16px)); }
html[data-theme='neon'] .nx-fr-top { position: relative; flex: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 148px; padding: 12px; overflow: hidden; background: #000; border-bottom: 1px solid var(--line-2); }
html[data-theme='neon'] .nx-fr-top .nx-fr-card { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; background-size: cover; background-position: center; }
html[data-theme='neon'] .nx-fr-top::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(8, 7, 12, 0.94), rgba(8, 7, 12, 0.2) 85%); }
html[data-theme='neon'] .nx-fr-top > :not(.nx-fr-card) { position: relative; z-index: 1; }
html[data-theme='neon'] .nx-fr-head { display: flex; align-items: flex-end; gap: 12px; min-width: 0; }
html[data-theme='neon'] .nx-fr-pic { position: relative; flex: none; width: 58px; height: 58px; }
html[data-theme='neon'] .nx-fr-pic .nx-fr-face { width: 58px !important; height: 58px !important; border: 1px solid var(--gold-2); border-radius: 0; background: #0c0a10; overflow: hidden; }
html[data-theme='neon'] .nx-fr-lv { position: absolute; left: 50%; bottom: -5px; translate: -50% 0; min-width: 22px; padding: 1px 4px; font: 700 11px/1.25 var(--nx-ui); text-align: center; color: var(--gold); background: #0c0a10; border: 1px solid var(--gold-2); }
html[data-theme='neon'] .nx-fr-words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
html[data-theme='neon'] .nx-fr-words h2 { margin: 0; font: 700 22px/1.1 var(--nx-cap); color: #fff6dc; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); }
html[data-theme='neon'] .nx-fr-btns { display: flex; gap: 6px; }
html[data-theme='neon'] .nx-fr-btns .btn { min-height: 30px; }
html[data-theme='neon'] .nx-fr-top > .nx-fr-close { position: absolute; z-index: 1; top: 8px; right: 8px; }
html[data-theme='neon'] .nx-fr-chat { flex: 1; min-height: 0; display: flex; }
html[data-theme='neon'] .chat-inline { flex: 1; width: 100% !important; height: auto !important; min-width: 0; padding: 0 !important; margin: 0; border: 0; border-image: none; border-radius: 0; background: none; box-shadow: none; }
html[data-theme='neon'] .chat-inline .chat-body { background: none; }
html[data-theme='neon'] .chat-inline .chat-list { padding: 10px 12px 12px; }
html[data-theme='neon'] .chat-inline .chat-msg { border: 1px solid var(--line-1); border-radius: 0; background: var(--nx-panel); box-shadow: none; font-size: 14px; }
html[data-theme='neon'] .chat-inline .chat-msg.mine { border-color: var(--gold-2); background: linear-gradient(0deg, rgba(209, 171, 91, 0.14), rgba(209, 171, 91, 0.06)), var(--nx-panel); }
html[data-theme='neon'] .chat-inline .chat-msg.emote { border-color: transparent; background: none; }
html[data-theme='neon'] .chat-inline .chat-input:focus { outline: 0; border-color: var(--gold-2); box-shadow: none; }
html[data-theme='neon'] .chat-inline .chat-field:focus-within { border-color: var(--gold-2); box-shadow: none; outline: 0; }
html[data-theme='neon'] .chat-inline .chat-send { padding: 8px 10px; background: var(--nx-panel); border-top: 1px solid var(--line-1); }
html[data-theme='neon'] .chat-inline .chat-tray { background: var(--nx-panel); border-top: 1px solid var(--line-1); }
html[data-theme='neon'] .chat-inline .chat-go { border: 0; border-radius: 0; background: linear-gradient(180deg, #d1ab5b, #b48d3e); box-shadow: none; }
/* a card of the Bazaar's storefront: its place, the offer big in it, its name and Buy along the bottom */
html[data-theme='neon'] .nx-offer { position: relative; min-width: 0; min-height: 240px; overflow: hidden; border: 1px solid var(--line-2); background: #000; transition: border-color 0.15s; }
html[data-theme='neon'] .nx-offer.wide { grid-column: span 2; }
html[data-theme='neon'] .nx-offer > .art { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(0.85) brightness(0.62); transition: filter 0.2s, scale 0.5s var(--ease-out); }
html[data-theme='neon'] .nx-offer::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%) no-repeat; background-size: 300% 100%; background-position: 130% 0; }
html[data-theme='neon'] .nx-offer:hover { border-color: var(--gold-2); }
html[data-theme='neon'] .nx-offer:hover > .art { filter: saturate(1) brightness(0.8); scale: 1.04; }
html[data-theme='neon'] .nx-offer:hover::after { background-position: -30% 0; transition: background-position 0.8s var(--ease-out); }
html[data-theme='neon'] .nx-offer > .fig { position: absolute; left: 0; right: 0; bottom: 58px; display: flex; justify-content: center; }
html[data-theme='neon'] .nx-offer.wide > .fig { left: 42%; bottom: 8px; }
html[data-theme='neon'] .nx-offer.thing > .fig { top: 0; align-items: center; }
html[data-theme='neon'] .nx-offer.thing > .fig :is(canvas, img) { image-rendering: pixelated; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.75)); }
html[data-theme='neon'] .nx-offer .nx-hero { animation: none; }
html[data-theme='neon'] .nx-offer .nx-say { left: 50%; right: auto; top: 2%; max-width: 92%; transform: translateX(-50%); }
html[data-theme='neon'] .nx-offer > .foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 22px 10px 8px; background: linear-gradient(0deg, rgba(8, 7, 12, 0.97) 55%, transparent); }
html[data-theme='neon'] .nx-offer.wide > .foot { top: 0; right: 40%; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 16px 20px; background: linear-gradient(90deg, rgba(8, 7, 12, 0.96) 60%, transparent); }
html[data-theme='neon'] .nx-offer .foot .tx { min-width: 0; }
html[data-theme='neon'] .nx-offer .foot b { display: block; font: 700 15px/1.15 var(--nx-cap); color: #f3ebde; }
html[data-theme='neon'] .nx-offer.wide .foot b { font-size: 30px; }
html[data-theme='neon'] .nx-offer .foot small { display: block; margin-top: 2px; font: 400 12px/1.2 var(--nx-ui); color: #a79e91; }
html[data-theme='neon'] .nx-offer .foot p { margin: 8px 0 0; font-size: 13px; font-style: italic; line-height: 1.35; color: #c9c1b4; }
html[data-theme='neon'] .nx-offer .nx-pay .btn { min-height: 32px; padding: 0 10px; }
html[data-theme='neon'] .nx-offer.have > :is(.art, .fig) { filter: grayscale(0.8) brightness(0.45); }
/* prices in the client's clean text: the pixel font is the fight's */
html[data-theme='neon'] .nx-client :is(.nx-pay, .ib-tags, .nx-odds) .num { font: 700 13px/1 var(--nx-ui); letter-spacing: 0; }
html[data-theme='neon'] .nx-client .ib-tags .row { gap: 3px; }
html[data-theme='neon'] .nx-client .ib-tags :is(canvas, img) { width: 13px; height: 13px; }
html[data-theme='neon'] .nx-client .ib-tags .num { font-size: 11px; }
html[data-theme='neon'] .nx-note { margin: 10px 0 0; font-size: 12px; line-height: 1.35; color: #8f877b; }
html[data-theme='neon'] .nx-list-head { flex: none; margin: 8px 8px 2px; font: 700 12px/1.2 var(--nx-cap); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .nx-list-note { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 12px 12px 8px; font-size: 12px; color: #a79e91; }
html[data-theme='neon'] .nx-shop-body { display: flex; flex-direction: column; gap: 12px; }
html[data-theme='neon'] .nx-odds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
html[data-theme='neon'] .nx-odd { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 8px; border: 1px solid var(--rc); font: 400 12px/1.2 var(--nx-ui); color: #d9d2c6; }
html[data-theme='neon'] .nx-odd b { font-weight: 700; color: var(--rc); }
html[data-theme='neon'] .nx-shop-big { display: grid; place-items: center; }
html[data-theme='neon'] .nx-shop-big :is(canvas, img, span) { image-rendering: pixelated; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.75)); }
/* (the banner's painting is squeezed in its file, 4:1 from what was about 2.4:1, a moon 38 x 23: drawn at its true shape) */
html[data-theme='neon'] .nx-tab-pass { container-type: inline-size; }
html[data-theme='neon'] .nx-pass-top { position: relative; background-repeat: no-repeat; background-size: 100cqw 41.25cqw; background-position: center 26%; }
html[data-theme='neon'] .nx-pass-top::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 7, 12, 0.96) 16%, rgba(8, 7, 12, 0.5) 62%, rgba(8, 7, 12, 0.12)); }
html[data-theme='neon'] .nx-pass-top > * { position: relative; }
html[data-theme='neon'] .nx-pass-top .ps-mid > .xs { font-family: var(--nx-ui); letter-spacing: 0; }
html[data-theme='neon'] .nx-pass-top .ps-mid .bar { height: 16px; border-radius: 0; }
html[data-theme='neon'] .nx-pass-top .ps-mid .bar > b { display: flex; align-items: center; justify-content: center; height: 100%; font: 700 11px/1 var(--nx-ui); letter-spacing: 0; text-shadow: 0 1px 2px #000; }
html[data-theme='neon'] .nx-pass-top .ps-tier b { font: 700 30px/1 var(--nx-ui); }
html[data-theme='neon'] .nx-pass-top .ps-title { font: 700 18px/1.2 var(--nx-cap); }
html[data-theme='neon'] .nx-client .ps-head, html[data-theme='neon'] .nx-pass-top .ps-head { border: 0; border-image: none; border-radius: 0; background: none; box-shadow: none; }
@media (min-width: 1001px) {
  html[data-theme='neon'] .nx-client .nx-deck-main > .nx-shop-list { flex: 1; min-height: 0; overflow-y: auto; }
  html[data-theme='neon'] .nx-client .nx-deck-main > .ib-grid.nx-shop-list { padding: 4px 12px 12px; align-content: start; }
  html[data-theme='neon'] .nx-client .nx-mode { animation: none; }
  html[data-theme='neon'] .nx-client .nx-shop-list .nx-mode .th { display: grid; place-items: center; background: #0b0910; }
  html[data-theme='neon'] .nx-client .nx-shop-list .nx-mode .th :is(canvas, img) { width: 48px !important; height: 48px !important; object-fit: contain; image-rendering: pixelated; }
  html[data-theme='neon'] .nx-open-stage { flex-basis: 66%; }
  /* the vault (your call: the chest wasn't on its dais): the picture spread wider, so the dais in its middle comes under
     the chest (both at 76 % across), and the chest set on the dais's top. Worked out from the stage's size: the picture
     (1920 x 1080, the dais's top at 72 % down) covers a box 1.52 stages wide, so it shows max(85.5cqw, 100cqh) tall, its
     top at 63 % of what's left over; the slow zoom grows from the dais, which stays put */
  html[data-theme='neon'] .nx-open-stage { container-type: size; }
  html[data-theme='neon'] .nx-dt-stage.nx-open-stage > .art { right: -52%; background-position: 50% 63%; transform-origin: 50% calc(63cqh + 0.09 * max(85.5cqw, 100cqh)); }
  html[data-theme='neon'] .nx-open-stage .nx-dt-fig { top: auto; bottom: calc(37cqh - 0.09 * max(85.5cqw, 100cqh)); align-items: flex-end; }
  html[data-theme='neon'] .nx-full-stage { flex: 1 1 auto; }
  html[data-theme='neon'] .nx-full-stage .nx-dt-info .nx-sheet { margin: 12px 0; }
  html[data-theme='neon'] .nx-full-stage .nx-it-fx { margin-bottom: 4px; }
  /* Crafting's list: bigger, so it's as tall as the page */
  html[data-theme='neon'] .nx-tab-craft .ib-grid.nx-shop-list { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 114px; }
  html[data-theme='neon'] .nx-tab-craft .ib-tile .ib-pic { width: 66px; height: 66px; }
  html[data-theme='neon'] .nx-tab-craft .ib-tile .ib-pic > :is(canvas, img) { max-width: 66px; max-height: 66px; }
  /* the Bazaar: a storefront */
  html[data-theme='neon'] .nx-tab-featured { display: flex; flex-direction: column; padding-bottom: 12px; }
  html[data-theme='neon'] .nx-wall { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 8px; padding: 0 12px; }
  /* Featured: the offer, the tiles under it */
  /* the Game Pass: its banner with where you stand, the track filling the rest */
  html[data-theme='neon'] .nx-tab-pass { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
  html[data-theme='neon'] .nx-pass-top { flex: 1 1 0; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 16px; }
  html[data-theme='neon'] .nx-pass-top .ps-head { padding: 0; }
  html[data-theme='neon'] .nx-pass-top .ps-note { margin: 4px 0 0; }
  html[data-theme='neon'] .nx-tab-pass > .ps-tools { flex: none; margin: 0 16px; padding: 0; border: 0; background: none; box-shadow: none; }
  html[data-theme='neon'] .nx-tab-pass > .ps-track { flex: none; margin: 0 16px; border: 1px solid var(--line-1); border-image: none; border-radius: 0; background: var(--nx-panel); box-shadow: none; }
  html[data-theme='neon'] .nx-tab-pass > .ps-list { flex: 1 1 0; min-height: 0; overflow-y: auto; margin: 0 16px; }
  /* what's left: the gems, when they're on */
  html[data-theme='neon'] .nx-tab-gems { padding: 16px; overflow-y: auto; }
}
/* a champion's tabs on a phone too: no burger folds these, they'd be out of reach */
html[data-theme='neon'] .nx-detail .inv-tabs { display: flex; flex-wrap: wrap; }
html[data-theme='neon'] .nx-detail .inv-tabs > .btn { display: inline-flex; flex: none; }
/* copies toward a tier, as boxes like the camp's steps */
html[data-theme='neon'] .nx-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; height: 9px; min-width: 0; }
html[data-theme='neon'] .nx-steps > i { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
html[data-theme='neon'] .nx-steps > i.on { background: var(--gold); box-shadow: none; }
html[data-theme='neon'] .nx-steps > i.next { background: rgba(209, 171, 91, 0.3); box-shadow: inset 0 0 0 1px rgba(209, 171, 91, 0.55); animation: coach-pulse 1.2s ease-in-out infinite; }
html[data-theme='neon'].reduce-motion .nx-steps > i.next { animation: none; }
html[data-theme='neon'] .nx-tier-val { display: flex; flex-direction: column; gap: 5px; min-width: 200px; }
/* Patrol: how far the camp can still grow */
html[data-theme='neon'] .pt-more .sp-steps { margin-top: 4px; gap: 4px; }
html[data-theme='neon'] .pt-more .sp-step { font: 400 11px/1 var(--nx-ui); }
html[data-theme='neon'] .pt-more .sp-step b { font-weight: 600; }
html[data-theme='neon'] .pt-more .sp-step i { width: 24px; height: 4px; border: 0; }
/* Equipment, on every size */
html[data-theme='neon'] .nx-kit-list { max-height: none; }
html[data-theme='neon'] .nx-kit .inv-doll.doll2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; gap: 6px; padding: 0; border: 0; background: none; box-shadow: none; justify-items: stretch; }
html[data-theme='neon'] .nx-kit .inv-slot { grid-column: auto; grid-row: auto; width: 100%; max-width: none; min-width: 0; padding: 6px 4px; border: 1px solid var(--line-1); border-radius: 0; background: #17131d; box-shadow: none; transition: transform 0.14s var(--ease-out), border-color 0.14s, background 0.14s; }
html[data-theme='neon'] .nx-kit .inv-slot:hover { transform: translateY(-2px); border-color: var(--line-3); background: #1f1a27; box-shadow: none; }
html[data-theme='neon'] .nx-kit .inv-slot:active { transform: scale(0.97); }
html[data-theme='neon'] .nx-kit .inv-slot.on { border-color: var(--gold); background: linear-gradient(0deg, rgba(209, 171, 91, 0.16), rgba(209, 171, 91, 0.03) 60%), #17131d; box-shadow: inset 0 0 0 1px rgba(209, 171, 91, 0.5); }
html[data-theme='neon'] .nx-kit .inv-slot-ico { width: 44px; height: 44px; border-radius: 0; }
html[data-theme='neon'] .nx-kit .inv-slot small { font: 400 11px/1.2 var(--nx-ui); }
html[data-theme='neon'] .nx-kit .inv-slot b { font: 600 11px/1.2 var(--nx-ui); }
html[data-theme='neon'] .nx-kit .builds-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
html[data-theme='neon'] .nx-kit .builds-bar > .xs { display: none; } /* (each says Build) */
html[data-theme='neon'] .nx-kit .builds-one { display: inline-flex; gap: 1px; }
html[data-theme='neon'] .nx-kit .builds-one .btn { min-width: 0; height: 26px; min-height: 0; padding: 0 6px; font-size: 11px; }
html[data-theme='neon'] .nx-kit .it-head { font: 700 13px/1.2 var(--nx-cap); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); text-shadow: none; }
html[data-theme='neon'] .nx-kit .doll-bonus { padding: 0; border: 0; background: none; box-shadow: none; }
html[data-theme='neon'] .nx-kit .doll-bonus-row { padding: 4px 0; font: 400 12px/1.25 var(--nx-ui); letter-spacing: 0; text-transform: none; }
html[data-theme='neon'] .nx-kit .doll-bonus-row b { font: 700 12px/1 var(--nx-ui); color: var(--gold); }
html[data-theme='neon'] .nx-kit .boost-sec { margin: 8px 0 6px; font: 700 12px/1.2 var(--nx-cap); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .nx-kit .boost-sec:first-child { margin-top: 0; }
html[data-theme='neon'] .nx-kit .boost-sec.miss { color: #8f877b; }
html[data-theme='neon'] .nx-kit-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: start; margin: 0 0 6px; padding: 8px 10px; border: 1px solid var(--line-1); border-image: none; border-radius: 0; background: var(--nx-panel); box-shadow: none; }
html[data-theme='neon'] .nx-kit-row.on { border-color: var(--gold-2); }
html[data-theme='neon'] .nx-kit-row .boost-pic { width: 48px; height: 48px; border: 0; border-radius: 0; }
html[data-theme='neon'] .nx-kit-row .tx { min-width: 0; font: 400 13px/1.35 var(--nx-ui); }
html[data-theme='neon'] .nx-kit-row .nm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 3px; }
html[data-theme='neon'] .nx-kit-row .nm b { font: 700 14px/1.15 var(--nx-cap); }
html[data-theme='neon'] .nx-kit-row .boost-tag { padding: 2px 6px; border-radius: 0; font: 600 10px/1.2 var(--nx-ui); letter-spacing: 0; text-transform: none; }
html[data-theme='neon'] .nx-kit-row .boost-perk { color: #e4ddd0; font-size: 13px; }
html[data-theme='neon'] .nx-kit-row .boost-perk::before { content: none; }
html[data-theme='neon'] .nx-kit-row .boost-next { margin-top: 2px; font-size: 12px; color: #8f877b; }
html[data-theme='neon'] .nx-kit-row .boost-next b { font-weight: 600; color: #c9c1b4; }
html[data-theme='neon'] .nx-kit-row .boost-how { margin-top: 5px; font: 400 12px/1.2 var(--nx-ui); letter-spacing: 0; text-transform: none; color: #8f877b; }
html[data-theme='neon'] .nx-kit-row .boost-src { margin-top: 4px; }
html[data-theme='neon'] .nx-kit-row .acts { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
html[data-theme='neon'] .btn.nx-unequip { border: 1px solid #7fe07a; border-image: none; background: #2f9c39; color: #f0fff0 !important; box-shadow: none; }
html[data-theme='neon'] .btn.nx-unequip:hover:not(:disabled) { background: #39b545; filter: none; }
html[data-theme='neon'] .btn.nx-unequip::before, html[data-theme='neon'] .btn.nx-unequip::after { display: none; }
html[data-theme='neon'] .nx-kit-row.missing { grid-template-columns: 48px minmax(0, 1fr); }
html[data-theme='neon'] .nx-kit-row.missing .boost-perk { color: #a79e91; }
/* an item's page */
html[data-theme='neon'] .nx-it-fx { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; font: 400 15px/1.3 var(--nx-ui); color: #e4ddd0; }
html[data-theme='neon'] .nx-it-fx b { font: 700 19px/1.2 var(--nx-ui); color: var(--gold); }
html[data-theme='neon'] .nx-it-stage .nx-dt-fig :is(canvas, img) { width: 170px; height: 170px; image-rendering: pixelated; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.75)); }
html[data-theme='neon'] .nx-it-stage::after { background: linear-gradient(90deg, rgba(8, 7, 12, 0.96), rgba(8, 7, 12, 0.84) 50%, rgba(8, 7, 12, 0.3) 78%), linear-gradient(0deg, rgba(8, 7, 12, 0.7), transparent 30%); }
html[data-theme='neon'] .nx-it-body .it-compare { padding: 0; border: 0; background: none; }
html[data-theme='neon'] .nx-it-body .it-compare .row.between { align-items: center; justify-content: flex-start; gap: 14px; }
html[data-theme='neon'] .nx-it-body .it-select { height: 30px; padding-top: 0; padding-bottom: 0; border-radius: 0; font: 400 13px var(--nx-ui); }
html[data-theme='neon'] .nx-it-body .it-champs { max-height: none; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
html[data-theme='neon'] .nx-it-body .it-champ { border-radius: 0; }
html[data-theme='neon'] .nx-it-body .row.wrap { align-items: center; gap: 8px; }
html[data-theme='neon'] .nx-cost { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font: 700 12px/1 var(--nx-ui); letter-spacing: 0; }
html[data-theme='neon'] .nx-cost > :is(canvas, img, svg) { width: 14px; height: 14px; }
html[data-theme='neon'] .nx-cost > :nth-child(2) { margin-left: 6px; }
/* the stage and the abilities, on every size: a narrow window has them one over the other */
html[data-theme='neon'] .nx-dt-stage { position: relative; overflow: hidden; background: #000; }
html[data-theme='neon'] .nx-dt-stage > .art { position: absolute; inset: 0; background-size: cover; background-position: center; scale: 1.05; translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -8px); filter: saturate(0.85) brightness(0.8); transition: translate 0.6s var(--ease-out); animation: nx-drift 18s ease-out both; }
html[data-theme='neon'] .nx-dt-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(8, 7, 12, 0.95), rgba(8, 7, 12, 0.8) 42%, rgba(8, 7, 12, 0.08) 68%), linear-gradient(0deg, rgba(8, 7, 12, 0.7), transparent 30%); }
html[data-theme='neon'] .nx-dt-stage .nx-hero { animation: none; }
html[data-theme='neon'] .nx-dt-info h2 { margin: 0 0 8px; font: 700 clamp(30px, 3vw, 40px)/1.03 var(--nx-cap); color: #f3ebde; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }
html[data-theme='neon'] .nx-dt-info .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
html[data-theme='neon'] .nx-dt-quote { margin: 10px 0; font-size: 13px; font-style: italic; line-height: 1.35; color: #c9c1b4; }
html[data-theme='neon'] .nx-dt-stats .nx-stat-row { grid-template-columns: 92px 1fr 44px; gap: 8px; margin: 4px 0; font: 400 12px/1.2 var(--nx-ui); letter-spacing: 0; color: #a79e91; }
html[data-theme='neon'] .nx-dt-stats .nx-stat-row b { font: 700 13px/1 var(--nx-ui); }
html[data-theme='neon'] .nx-dt-stats .nx-bar { height: 4px; border-radius: 0; box-shadow: none; background: rgba(255, 255, 255, 0.1); }
html[data-theme='neon'] .nx-dt-stats .nx-bar > i { border-radius: 0; background: var(--gold); }
html[data-theme='neon'] .nx-dt-stats .nx-bar > i::after { display: none; }
html[data-theme='neon'] .nx-dt-stage .nx-skins { z-index: 3; right: 10px; top: 10px; gap: 4px; }
html[data-theme='neon'] .nx-dt-stage .nx-skins[hidden] { display: none; }
html[data-theme='neon'] .nx-dt-stage .nx-skins .sk { width: 40px; height: 40px; border-radius: 0; background: rgba(8, 7, 12, 0.8); }
html[data-theme='neon'] .nx-abs { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
html[data-theme='neon'] .nx-ab { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; padding: 7px 10px; border: 1px solid var(--line-1); background: var(--nx-panel); color: inherit; font: inherit; text-align: left; transition: border-color 0.14s, background 0.14s, transform 0.14s var(--ease-out); }
html[data-theme='neon'] button.nx-ab { cursor: pointer; }
html[data-theme='neon'] button.nx-ab:hover { border-color: var(--gold-2); background: rgba(209, 171, 91, 0.06); }
html[data-theme='neon'] button.nx-ab:active { transform: scale(0.99); }
html[data-theme='neon'] .nx-ab :is(img, canvas) { width: 48px; height: 48px; image-rendering: pixelated; }
html[data-theme='neon'] .nx-ab .tx { display: block; min-width: 0; }
html[data-theme='neon'] .nx-ab .nm { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
html[data-theme='neon'] .nx-ab .nm b { font: 700 15px/1.15 var(--nx-cap); color: #f3ebde; }
html[data-theme='neon'] .nx-ab .nm small { flex: none; font: 600 11px/1 var(--nx-ui); color: #a79e91; }
html[data-theme='neon'] .nx-ab.ult .nm small { color: var(--gold); }
html[data-theme='neon'] .nx-ab .dsc { display: block; margin-top: 3px; font: 400 13px/1.35 var(--nx-ui); color: #b9b1a4; }
@media (max-width: 1000px) {
  html[data-theme='neon'] .nx-dt-stage { display: flex; flex-direction: column; }
  html[data-theme='neon'] .nx-dt-fig { position: relative; z-index: 1; order: -1; display: flex; justify-content: center; padding-top: 10px; }
  html[data-theme='neon'] .nx-dt-info { position: relative; z-index: 2; padding: 10px 16px 14px; }
  html[data-theme='neon'] .nx-dt-stage::after { background: linear-gradient(0deg, rgba(8, 7, 12, 0.95), rgba(8, 7, 12, 0.7) 50%, rgba(8, 7, 12, 0.1)); }
  /* the vault: the chest on top stands on its dais too (its feet about 205px down: the dais's top, 70 % down the picture,
     put there; the picture at least 420px tall and always as wide as the stage) */
  html[data-theme='neon'] .nx-open-stage { container-type: inline-size; }
  html[data-theme='neon'] .nx-dt-stage.nx-open-stage > .art { background-size: auto max(420px, 56.25cqw); background-position: 50% calc(205px - 0.7 * max(420px, 56.25cqw)); background-repeat: no-repeat; transform-origin: 50% 205px; }
  html[data-theme='neon'] .nx-dt-pane { padding: 12px 16px; }
  html[data-theme='neon'] .nx-abs-side { margin-top: 14px; }
  html[data-theme='neon'] .nx-kit-side { margin-bottom: 12px; }
  html[data-theme='neon'] .nx-kit-row { grid-template-columns: 48px minmax(0, 1fr); }
  html[data-theme='neon'] .nx-kit-row .acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  html[data-theme='neon'] .nx-kit-row .acts > .btn { flex: 1 1 auto; }
}
/* changing mode is instant: no screen comes in, the list was already there */
html[data-theme='neon'].nx-lobby #app > .screen.win, html[data-theme='neon'] #app > .screen.h3-playing { animation: none; }
@media (max-width: 1000px) { html[data-theme='neon'] .nx-pl-rail.fixed { display: none; } }
@keyframes nx-from-left { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
/* (your wallet is in the bar: no second one on every screen) */
html[data-theme='neon'] .screen.win > .screen-head .currencies { display: none; }
html[data-theme='neon'] .nx-pl-tabs { position: relative; flex: none; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border-bottom: 1px solid var(--line-1); }
html[data-theme='neon'] .nx-pl-tab { position: relative; height: 50px; padding: 0 6px; border: 0; background: none; color: #a79e91 !important; font: 700 13px/1 var(--nx-cap) !important; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.15s, background 0.15s; }
html[data-theme='neon'] .nx-pl-tab.on { color: var(--gold) !important; }
html[data-theme='neon'] .nx-pl-tab:active { background: rgba(209, 171, 91, 0.06); }
html[data-theme='neon'] .nx-pl-tabs .ink { position: absolute; left: 0; bottom: -1px; width: calc(100% / var(--n)); height: 2px; background: var(--gold); box-shadow: 0 0 10px rgba(209, 171, 91, 0.8); transform: translateX(calc(var(--at, 0) * 100%)); transition: transform 0.32s var(--ease-out); pointer-events: none; }
html[data-theme='neon'] .nx-pl-list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
/* one column, no tabs (your call, 7 Nov): each group under a line with its name in the middle, ——— Versus ———, the rows
   compact so every mode fits at once */
html[data-theme='neon'] .nx-pl-sep { flex: none; display: flex; align-items: center; gap: 10px; margin: 7px 6px 3px; color: var(--gold); font: 700 11px/1 var(--nx-cap); letter-spacing: 0.22em; text-transform: uppercase; }
html[data-theme='neon'] .nx-pl-sep:first-child { margin-top: 0; }
html[data-theme='neon'] .nx-pl-sep::before, html[data-theme='neon'] .nx-pl-sep::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-3)); }
html[data-theme='neon'] .nx-pl-sep::after { background: linear-gradient(90deg, var(--line-3), transparent); }
html[data-theme='neon'] .nx-pl-list .nx-mode { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 11px; padding: 4px 10px 4px 8px; }
html[data-theme='neon'] .nx-pl-list .nx-mode .th { width: 70px; height: 40px; }
html[data-theme='neon'] .nx-pl-list .nx-mode .tx b { font-size: 15px; }
html[data-theme='neon'] .nx-mode { position: relative; flex: none; display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 10px 7px 8px; border: 0; background: none; text-align: left; transition: background 0.16s, transform 0.16s var(--ease-out); animation: nx-from-left 0.34s var(--ease-out) calc(var(--i, 0) * 0.045s) both; }
html[data-theme='neon'] .nx-mode.off { display: none; }
/* a mode a level just opened: glowing, NEW until it's pressed; its tab and PLAY say how many */
html[data-theme='neon'] .nx-mode.is-new { border-color: var(--gold); animation: nx-breathe 2.4s ease-in-out infinite; }
html[data-theme='neon'].reduce-motion .nx-mode.is-new { animation: none; }
html[data-theme='neon'] .nx-mode .new-mark { position: absolute; top: 6px; right: 6px; }
html[data-theme='neon'] .nx-tab-new { display: inline-block; min-width: 15px; height: 15px; margin-left: 6px; padding: 0 3px; background: var(--gold); color: #1a1206; font: 700 10px/15px var(--nx-ui); font-style: normal; text-align: center; vertical-align: 1px; }
html[data-theme='neon'] .nx-playbtn .nx-dot { top: -5px; right: -3px; background: var(--gold); color: #1a1206; }
html[data-theme='neon'] .nx-bplay { position: relative; }
html[data-theme='neon'] .nx-bplay .nx-dot { top: -26px; right: calc(50% - 34px); background: var(--gold); color: #1a1206; z-index: 2; }
html[data-theme='neon'] .nx-gift { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 28px; }
html[data-theme='neon'] .nx-gift b { font: 700 26px/1.1 var(--nx-ui); color: var(--gold); }
html[data-theme='neon'] .nx-gift small { font: 500 13px/1.2 var(--nx-ui); }
/* the Shop, below level 3: what you can open right now */
html[data-theme='neon'] .nx-mode .nx-can { display: block; margin-top: 2px; font: 700 11px/1.2 var(--nx-ui); color: var(--gold); }
html[data-theme='neon'] .nx-mode[hidden] { display: none; }
html[data-theme='neon'] .nx-mode::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold); box-shadow: 0 0 10px rgba(209, 171, 91, 0.8); transform: scaleY(0); transition: transform 0.22s var(--ease-out); }
html[data-theme='neon'] .nx-mode .th { position: relative; display: block; width: 82px; height: 50px; overflow: hidden; border: 1px solid var(--line-2); transition: border-color 0.18s, box-shadow 0.2s; }
html[data-theme='neon'] .nx-mode .th img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) brightness(0.85); scale: 1.02; transition: scale 0.4s var(--ease-out), filter 0.25s; }
html[data-theme='neon'] .nx-mode .th::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 38%, rgba(255, 236, 180, 0.55) 50%, transparent 62%) no-repeat; background-size: 300% 100%; background-position: 130% 0; }
html[data-theme='neon'] .nx-mode .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html[data-theme='neon'] .nx-mode .tx b { font: 700 16px/1.15 var(--nx-cap); letter-spacing: 0.02em; color: #e8dfd0; transition: color 0.15s; }
html[data-theme='neon'] .nx-mode .tx small { font-size: 12px; line-height: 1.3; color: var(--muted); }
html[data-theme='neon'] .nx-mode.live .tx small { color: var(--gold); }
html[data-theme='neon'] .nx-mode .lk { display: none; opacity: 0.7; }
html[data-theme='neon'] .nx-mode .lk :is(img, canvas) { display: block; width: 14px; height: 14px; }
html[data-theme='neon'] .nx-mode.mode-closed { filter: none; opacity: 0.5; }
html[data-theme='neon'] .nx-mode.mode-closed .lk { display: block; }
html[data-theme='neon'] .nx-mode.mode-closed .th img { filter: grayscale(1) brightness(0.6); }
html[data-theme='neon'] .nx-mode:active { transform: scale(0.985); }
html[data-theme='neon'] .nx-mode.sel { background: linear-gradient(90deg, rgba(209, 171, 91, 0.13), rgba(209, 171, 91, 0.02)); }
html[data-theme='neon'] .nx-mode.sel::before { transform: none; }
html[data-theme='neon'] .nx-mode.sel .th { border-color: var(--gold); box-shadow: 0 0 12px rgba(209, 171, 91, 0.35); }
html[data-theme='neon'] .nx-mode.sel .th img { filter: none; }
html[data-theme='neon'] .nx-mode.sel .th::after { animation: nx-sheen 4s ease-in-out infinite; }
html[data-theme='neon'] .nx-mode.sel .tx b { color: var(--gold); }
/* the chosen mode */
html[data-theme='neon'] .hud-surrender[hidden] { display: none; }
/* Play with friends: its two main choices side by side */
html[data-theme='neon'] .nx-room-new, html[data-theme='neon'] .nx-room-join { flex: 1 1 0; min-width: 150px; white-space: nowrap; }
/* a room's code: solid, never gradient text (a phone's browser can leave that transparent, and then there's no code to share) */
html[data-theme='neon'] .lobby-code { background: none; color: var(--gold); -webkit-text-fill-color: var(--gold); text-shadow: none; font: 700 32px/1.2 var(--nx-ui); letter-spacing: 6px; -webkit-user-select: text; user-select: text; }
/* Snake's box: its tabs, what it is or the week's leaderboard, PLAY always there */
html[data-theme='neon'] .nx-sb { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 12px 16px 16px; border: 1px solid var(--line-1); background: rgba(13, 10, 18, 0.96); }
/* on Play's page: the same picture as every mode, its words over it at the bottom left, the same PLAY; its tabs across the top */
html[data-theme='neon'] .nx-sb.in-lobby { position: absolute; inset: 0; z-index: 3; gap: 0; padding: 0; border: 0; background: none; }
html[data-theme='neon'] .nx-sb.in-lobby .nx-sidetabs { flex: none; background: rgba(8, 7, 12, 0.72); }
html[data-theme='neon'] .nx-sb.in-lobby .nx-sb-who { flex: none; margin: 14px 36px 0; }
html[data-theme='neon'] .nx-sb.in-lobby .nx-sb-pane { flex: 1 1 0; display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 18px 36px 0; font-size: 14px; color: #d2cabd; text-shadow: 0 1px 4px #000; }
/* (the words sit at the bottom, as every mode's; when they don't fit they scroll) */
html[data-theme='neon'] .nx-sb.in-lobby .nx-sb-pane > :first-child { margin-top: auto; }
html[data-theme='neon'] .nx-sb.in-lobby .nx-sb-pane > * { flex: none; max-width: 620px; }
html[data-theme='neon'] .nx-sb.in-lobby .k { font: 700 13px/1.2 var(--nx-cap); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .nx-sb.in-lobby .sk-title { width: min(300px, 60%); margin: 6px 0 12px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75)); }
html[data-theme='neon'] .nx-sb.in-lobby .nx-sb-lead { font-size: 15px; color: #f3ebde; }
html[data-theme='neon'] .nx-sb.in-lobby .nx-sb-pane p { margin: 0 0 8px; }
html[data-theme='neon'] .nx-sb.in-lobby .nx-sb-row { width: 100%; max-width: 360px; padding: 2px 0; }
/* (the leaderboard: from the top, over a darker picture) */
html[data-theme='neon'] .nx-sb.in-lobby .nx-sb-pane:has(.nx-sb-rows) > :first-child { margin-top: 0; }
html[data-theme='neon'] .nx-sb.in-lobby .nx-sb-pane:has(.nx-sb-rows) > * { max-width: none; }
html[data-theme='neon'] .nx-sb.in-lobby .nx-sb-act { flex: none; padding: 16px 36px 30px; }
html[data-theme='neon'] .nx-sb.in-lobby .nx-sb-act .nx-sb-go { position: relative; }
html[data-theme='neon'] .screen-snake .nx-sb { max-height: calc(100dvh - 150px); }
html[data-theme='neon'] .nx-sb-pane { flex: 1 1 0; min-height: 120px; overflow-y: auto; font-size: 14px; line-height: 1.45; color: #a79e90; }
html[data-theme='neon'] .screen-snake .nx-sb-pane { flex-basis: auto; }
html[data-theme='neon'] .nx-sb-pane p { margin: 0 0 12px; }
html[data-theme='neon'] .nx-sb-pane .nx-sb-lead { font-size: 15px; color: #f3ebde; }
html[data-theme='neon'] .nx-sb-pane h3 { margin: 0 0 10px; font: 700 13px/1.2 var(--nx-cap); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .nx-sb-pane .sk-title { display: block; width: min(320px, 70%); height: auto; margin: 0 auto 12px; }
html[data-theme='neon'] .nx-sb-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; color: #d8d0c2; }
html[data-theme='neon'] .nx-sb-pane small { display: block; margin-top: 4px; font-size: 12px; }
html[data-theme='neon'] .nx-sb-who { display: flex; gap: 6px; }
html[data-theme='neon'] .nx-sb-rows { display: flex; flex-direction: column; gap: 4px; }
html[data-theme='neon'] .nx-sb-note { margin: 8px 0; font-size: 13px; }
html[data-theme='neon'] .nx-sb-go { flex: none; }
html[data-theme='neon'] .nx-sb .daily-row { font: 600 14px/1.3 var(--nx-ui); }
html[data-theme='neon'] .nx-sb .daily-row .num { font: 700 14px/1.3 var(--nx-ui); }
html[data-theme='neon'] .nx-sb .daily-row.me { border-color: var(--gold); }
html[data-theme='neon'] .nx-pl-detail { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #000; }
html[data-theme='neon'] .nx-pl-pics { position: absolute; inset: 0; }
html[data-theme='neon'] .nx-pl-pics > .art { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; scale: 1.05; translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -8px); filter: saturate(0.85) brightness(0.9); transition: translate 0.6s var(--ease-out); }
html[data-theme='neon'] .nx-pl-pics > .art.on { opacity: 1; animation: nx-drift 18s ease-out both; }
html[data-theme='neon'] .nx-pl-pics::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 7, 12, 0.97), rgba(8, 7, 12, 0.72) 30%, rgba(8, 7, 12, 0.05) 62%), linear-gradient(90deg, rgba(8, 7, 12, 0.55), transparent 55%); }
html[data-theme='neon'] .nx-pl-info { position: absolute; z-index: 3; left: 36px; right: 36px; bottom: 112px; max-width: 620px; pointer-events: none; }
html[data-theme='neon'] .nx-pl-info .k { font: 700 13px/1.2 var(--nx-cap); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .nx-pl-info h2 { margin: 8px 0 10px; font: 700 clamp(34px, 4vw, 54px)/1.03 var(--nx-cap); color: #f3ebde; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75)); }
html[data-theme='neon'] .nx-pl-info p { margin: 0; font-size: 15px; line-height: 1.45; color: #d2cabd; text-shadow: 0 1px 4px #000; }
html[data-theme='neon'] .nx-pl-info .st { display: inline-block; margin-top: 12px; padding: 4px 10px; border: 1px solid var(--gold-2); background: rgba(13, 10, 18, 0.7); color: var(--gold); font-size: 12px; font-weight: 600; }
html[data-theme='neon'] .nx-pl-act { position: absolute; z-index: 3; left: 36px; bottom: 30px; display: flex; align-items: center; gap: 14px; }
html[data-theme='neon'] .nx-pl-go { position: relative; isolation: isolate; height: 62px; min-width: 280px; padding: 0 46px; border: 0; background: none; color: #1a1206 !important; font: 700 24px/1 var(--nx-cap) !important; letter-spacing: 0.16em; text-transform: uppercase; transition: transform 0.12s var(--ease-out), filter 0.2s; }
html[data-theme='neon'] .nx-pl-go::before, html[data-theme='neon'] .nx-pl-go::after { content: ''; position: absolute; inset: 0; z-index: -1; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
html[data-theme='neon'] .nx-pl-go::before { background: linear-gradient(180deg, #d1ab5b, #b48d3e); transition: background 0.15s; }
html[data-theme='neon'] .nx-pl-go::after { background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.75) 50%, transparent 58%) no-repeat; background-size: 300% 100%; animation: nx-sheen 5.5s ease-in-out infinite; }
html[data-theme='neon'] .nx-pl-go .lbl { display: inline-block; transition: letter-spacing 0.25s var(--ease-out); }
html[data-theme='neon'] .nx-pl-go:active { transform: translateY(1px) scale(0.97); }
html[data-theme='neon'] .nx-pl-go:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
html[data-theme='neon'] .nx-pl-go.mode-closed { filter: grayscale(1) brightness(0.6); }
html[data-theme='neon'] .nx-pl-detail .nx-hero-pet { z-index: 2; right: 30px; bottom: 26px; animation: none; } /* (already there, like everything on this page) */
html[data-theme='neon'] .nx-pl-detail .nx-hero-pet canvas { width: 130px !important; height: 130px !important; }
/* (the bar's PLAY rests while you're here: the yellow one is this page's) */
html[data-theme='neon'] .nx-playbtn.on { color: var(--gold); filter: none; }
html[data-theme='neon'] .nx-playbtn.on::before { background: rgba(209, 171, 91, 0.14); }
html[data-theme='neon'] .nx-playbtn.on::after { display: none; }
@media (hover: hover) {
  html[data-theme='neon'] .nx-pl-tab:not(.on):hover { color: #f3ebde !important; background: rgba(255, 255, 255, 0.03); }
  html[data-theme='neon'] .nx-mode:not(.sel):hover { background: rgba(209, 171, 91, 0.06); transform: translateX(3px); }
  html[data-theme='neon'] .nx-mode:hover .th { border-color: var(--gold); box-shadow: 0 0 12px rgba(209, 171, 91, 0.4); }
  html[data-theme='neon'] .nx-mode:hover .th img { scale: 1.2; filter: saturate(1.1) brightness(1.05); }
  html[data-theme='neon'] .nx-mode:hover .th::after { animation: nx-sheen 1.3s ease-in-out infinite; }
  html[data-theme='neon'] .nx-mode:hover .tx b { color: var(--gold); }
  html[data-theme='neon'] .nx-pl-go:hover { filter: drop-shadow(0 0 16px rgba(226, 194, 124, 0.7)); transform: translateY(-2px); }
  html[data-theme='neon'] .nx-pl-go:hover::before { background: linear-gradient(180deg, #e2c27c, #d1ab5b); }
  html[data-theme='neon'] .nx-pl-go:hover::after { animation-duration: 1.1s; }
  html[data-theme='neon'] .nx-pl-go:hover .lbl { letter-spacing: 0.22em; }
}
@media (max-width: 960px) {
  html[data-theme='neon'] .nx-play { height: auto; min-height: 100%; box-shadow: none; }
  html[data-theme='neon'] .nx-pl-info { left: 24px; right: 24px; bottom: 100px; }
  html[data-theme='neon'] .nx-pl-act { left: 24px; bottom: 24px; }
  html[data-theme='neon'] .nx-pl-go { min-width: 220px; height: 56px; }
}
@media (max-width: 760px) {
  html[data-theme='neon'] .nx-play { display: block; }
  html[data-theme='neon'] .nx-pl-rail { border-right: 0; background: none; }
  html[data-theme='neon'] .nx-pl-detail { display: none; }
  html[data-theme='neon'] .nx-pl-list { padding: 10px; gap: 6px; overflow: visible; }
  html[data-theme='neon'] .nx-mode { grid-template-columns: 96px minmax(0, 1fr) auto; padding: 8px; border: 1px solid var(--line-1); background: var(--nx-panel); }
  html[data-theme='neon'] .nx-mode.sel { background: var(--nx-panel); }
  html[data-theme='neon'] .nx-mode.sel::before { transform: scaleY(0); }
  html[data-theme='neon'] .nx-mode.sel .th { border-color: var(--line-2); box-shadow: none; }
  html[data-theme='neon'] .nx-mode.sel .tx b { color: #e8dfd0; }
  html[data-theme='neon'] .nx-mode .th { width: 96px; height: 64px; }
}

@keyframes nx-card-in { from { opacity: 0; transform: translateY(16px); } }
/* ================================================================== every screen: no window, as the prototype's (the place under a dim) */
html[data-theme='neon'] #app > .screen.win {
  top: calc(var(--safe-t) + var(--hub-bar-h)); bottom: calc(var(--safe-b) + var(--hub-bottom-h)); left: 0; right: 0; width: auto; margin: 0;
  border: 0; border-radius: 0; box-shadow: none; overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 6, 11, 0.8), rgba(8, 6, 11, 0.9));
}
html[data-theme='neon']:not(.hub-bar-on) #app > .screen.win { top: var(--safe-t); bottom: var(--safe-b); }
html[data-theme='neon'] #app > .screen.win > * { width: 100%; max-width: 1480px; margin-left: auto; margin-right: auto; }
html[data-theme='neon'] .screen.win > .screen-head { padding: 22px 28px 10px; gap: 16px; background: none; border: 0; box-shadow: none; }
html[data-theme='neon'] .screen.win > .screen-head .title { font-size: 36px; line-height: 1.05; }
html[data-theme='neon'] .screen.win > .screen-body { padding: 8px 28px 30px; }
html[data-theme='neon'] .screen.win .screen-body > .max { max-width: none; }
html[data-theme='neon'] .screen.win > div:not(.screen-head):not(.screen-body) { padding-left: 28px; padding-right: 28px; }
@media (max-width: 760px) {
  html[data-theme='neon'] .screen.win > .screen-head { padding: 14px 16px 6px; }
  html[data-theme='neon'] .screen.win > .screen-head .title { font-size: 30px; }
  html[data-theme='neon'] .screen.win > .screen-body { padding: 6px 16px 24px; }
  html[data-theme='neon'] .screen.win > div:not(.screen-head):not(.screen-body) { padding-left: 16px; padding-right: 16px; }
}

/* ================================================================== Heroes: the toolbar, the cards, the chosen one's panel */
html[data-theme='neon'] .nx-deck { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 22px; align-items: start; }
html[data-theme='neon'] .nx-deck-main { min-width: 0; }
html[data-theme='neon'] .nx-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 16px; }
html[data-theme='neon'] .nx-toolbar .grow { flex: 1; }
html[data-theme='neon'] .nx-input { height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.4); color: var(--text); font: 400 15px var(--font-text); outline: 0; transition: border-color 0.25s, box-shadow 0.25s; }
html[data-theme='neon'] .nx-input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(209, 171, 91, 0.12); }
html[data-theme='neon'] input.nx-input { width: 240px; }
html[data-theme='neon'] .nx-select { cursor: pointer; }
html[data-theme='neon'] .nx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-theme='neon'] .nx-chip { --c: var(--text-2); height: 32px; padding: 0 13px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.25); color: var(--text-2); cursor: pointer;
  font: 700 12px/1 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; transition: all 0.25s var(--ease-out); }
html[data-theme='neon'] .nx-chip:hover { border-color: var(--c); color: var(--text); }
html[data-theme='neon'] .nx-chip.on { background: color-mix(in srgb, var(--c) 18%, transparent); border-color: var(--c); color: var(--text); box-shadow: 0 0 14px -4px var(--c), inset 0 0 12px -6px var(--c); }
html[data-theme='neon'] .nx-owned { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
html[data-theme='neon'] .nx-owned b { font: 400 26px/1 var(--font-num); color: var(--gold); }
html[data-theme='neon'] .nx-owned small { font-size: 11px; color: var(--muted); }
html[data-theme='neon'] .nx-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
html[data-theme='neon'] .nx-ccard {
  --fc: #6492ff; position: relative; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; isolation: isolate; border-radius: 10px; cursor: pointer; text-align: left; color: var(--text); font: inherit;
  background: radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--fc) 26%, #1c1724), #120f17 75%);
  border: 1px solid color-mix(in srgb, var(--fc) 35%, var(--line-1)); box-shadow: 0 14px 24px -14px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.35s var(--ease-out), box-shadow 0.3s, border-color 0.3s; animation: nx-card-in 0.5s var(--ease-out) both; animation-delay: calc(var(--i) * 30ms);
}
html[data-theme='neon'] .nx-ccard::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18) 45%, transparent 55%); background-size: 300% 100%; background-position: 120% 0; }
html[data-theme='neon'] .nx-ccard:hover { transform: translateY(-5px); border-color: var(--fc); box-shadow: 0 22px 34px -16px #000, 0 0 24px -8px var(--fc); }
html[data-theme='neon'] .nx-ccard:hover::before { background-position: -40% 0; transition: background-position 0.9s var(--ease-out); }
html[data-theme='neon'] .nx-ccard.sel { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 30px -6px var(--gold); }
html[data-theme='neon'] .nx-ccard .pic { position: absolute; left: 50%; top: 8%; width: 88%; transform: translateX(-50%); image-rendering: pixelated; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.6)); transition: transform 0.5s var(--ease-out); }
html[data-theme='neon'] .nx-ccard span.pic { display: grid; place-items: center; }
html[data-theme='neon'] .nx-ccard:hover .pic { transform: translateX(-50%) translateY(-4px) scale(1.06); }
html[data-theme='neon'] .nx-ccard .foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px; background: linear-gradient(0deg, rgba(10, 8, 13, 0.98) 40%, transparent); }
html[data-theme='neon'] .nx-ccard .foot b { display: block; font: 700 17px/1 var(--font-title); }
html[data-theme='neon'] .nx-ccard .foot small { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
html[data-theme='neon'] .nx-ccard .foot small.teal { color: var(--gold); }
html[data-theme='neon'] .nx-ccard .stars { display: flex; gap: 2px; margin-top: 6px; color: var(--gold); font-size: 11px; letter-spacing: 1px; }
html[data-theme='neon'] .nx-ccard .stars .off { color: var(--ink-4); }
html[data-theme='neon'] .nx-ccard .tier { position: absolute; z-index: 2; left: 8px; top: 8px; min-width: 24px; height: 24px; padding: 0 5px; display: grid; place-items: center; border-radius: 5px; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line-3); font: 700 13px/1 var(--font-title); color: var(--gold); }
html[data-theme='neon'] .nx-ccard .facs { position: absolute; z-index: 2; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; }
html[data-theme='neon'] .nx-ccard .facs i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, 0.55); border: 1px solid currentColor; font-size: 10px; font-style: normal; }
html[data-theme='neon'] .nx-ccard.locked .pic { filter: grayscale(1) brightness(0.35) drop-shadow(0 8px 6px rgba(0, 0, 0, 0.6)); }
html[data-theme='neon'] .nx-ccard.locked .foot b { color: var(--muted); }
html[data-theme='neon'] .new-mark { padding: 0 6px; border: 0; border-radius: 7px; background: var(--gold); color: #1a1206; font: 700 10px/14px var(--nx-ui); letter-spacing: 0; text-transform: uppercase; box-shadow: none; text-shadow: none; animation: none; }
html[data-theme='neon'] .nx-ccard .new-mark { position: absolute; top: auto; bottom: 8px; left: auto; right: 8px; transform: none; z-index: 4; }
html[data-theme='neon'] .nx-client :is(.nx-ccard, .it-tile) .new-mark { top: 3px; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); z-index: 4; } /* (inside: a tile cuts what's over its edge) */
html[data-theme='neon'] .nx-detail { position: sticky; top: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
html[data-theme='neon'] .nx-skins { position: absolute; z-index: 2; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; }
html[data-theme='neon'] .nx-skins .sk { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; overflow: hidden; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.45); cursor: pointer; transition: all 0.25s var(--ease-out); }
html[data-theme='neon'] .nx-skins .sk img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
html[data-theme='neon'] .nx-skins .sk:hover { transform: scale(1.08); border-color: var(--line-3); }
html[data-theme='neon'] .nx-skins .sk.on { border-color: var(--gold); box-shadow: 0 0 12px -2px var(--gold); }
html[data-theme='neon'] .nx-stat-row { font-family: var(--font-label); display: grid; grid-template-columns: 60px 1fr 44px; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
html[data-theme='neon'] .nx-stat-row b { text-align: right; font: 400 22px/1 var(--font-num); letter-spacing: 0.04em; color: var(--text); }
html[data-theme='neon'] .nx-detail .reach-grid i.me { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
html[data-theme='neon'] .nx-detail .inv-tabs { margin: 12px 20px 0; }
@media (max-width: 1280px) { html[data-theme='neon'] .nx-deck { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 1000px) {
  html[data-theme='neon'] .nx-deck { grid-template-columns: minmax(0, 1fr); }
  html[data-theme='neon'] .nx-detail { position: static; }
}
@media (max-width: 760px) {
  html[data-theme='neon'] input.nx-input { width: 100%; }
  html[data-theme='neon'] .nx-cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html[data-theme='neon'] .nx-ccard .foot b { font-size: 14px; }
  html[data-theme='neon'] .nx-ccard .foot small { display: none; }
}

/* ================================================================== Shop: today's skin, the chests as cards, the pass */
@keyframes nx-float { 50% { transform: translateY(-8px); } }
@keyframes nx-spin { to { transform: rotate(360deg); } }

/* ================================================================== Profile: the hero card, numbers, matches | the season, most played, cards */
html[data-theme='neon'] .nx-prof { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; margin-bottom: 22px; }
html[data-theme='neon'] .nx-pf-left { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
html[data-theme='neon'] .nx-prof .pf-hero { position: relative; }
html[data-theme='neon'] .nx-pf-card { position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--glass-hi), var(--glass)); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9); }
html[data-theme='neon'] .nx-pf-card::before, html[data-theme='neon'] .nx-pf-card::after { content: ''; position: absolute; z-index: 3; width: 14px; height: 14px; border: 2px solid var(--gold-2); pointer-events: none; }
html[data-theme='neon'] .nx-pf-card::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
html[data-theme='neon'] .nx-pf-card::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
html[data-theme='neon'] .nx-pf-bg { display: block; width: 100% !important; height: 170px !important; object-fit: cover; image-rendering: pixelated; -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent); }
html[data-theme='neon'] .nx-pf-ava { position: absolute; left: 24px; top: 96px; z-index: 1; width: 130px; height: 130px; display: grid; place-items: center; border-radius: 0; background: radial-gradient(circle at 50% 35%, #3a3046, #1a1520); box-shadow: 0 0 0 3px var(--gold-2), 0 12px 24px rgba(0, 0, 0, 0.6); }
html[data-theme='neon'] .nx-pf-ava :is(canvas, img, .framed) { max-width: 100px; max-height: 100px; }
html[data-theme='neon'] .nx-pf-ava .lv { position: absolute; right: 4px; bottom: 6px; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 5px; background: linear-gradient(180deg, #ffe39a, var(--gold-2)); color: var(--ink-0); font: 400 24px/26px var(--font-num); text-align: center; box-shadow: 0 0 0 2px var(--ink-1); }
html[data-theme='neon'] .nx-pf-who { position: relative; z-index: 1; min-height: 118px; padding: 14px 150px 22px 176px; }
html[data-theme='neon'] .nx-pf-who h2 { margin: 6px 0 0; font: 700 40px/1 var(--font-title); color: var(--text); }
html[data-theme='neon'] .nx-pf-who .clan { color: var(--gold); }
html[data-theme='neon'] .nx-pf-who .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
html[data-theme='neon'] .nx-pf-rank { position: absolute; z-index: 1; right: 22px; top: 110px; display: flex; flex-direction: column; align-items: center; text-align: center; }
html[data-theme='neon'] .nx-pf-rank :is(img, canvas) { filter: drop-shadow(0 0 18px rgba(209, 171, 91, 0.45)); }
html[data-theme='neon'] .nx-pf-rank b { margin-top: 4px; font: 700 18px/1 var(--font-title); color: var(--gold); }
html[data-theme='neon'] .nx-pf-rank small { font: 400 18px/1 var(--font-num); color: var(--text-2); }
html[data-theme='neon'] .nx-pf-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html[data-theme='neon'] .nx-pf-tile { padding: 14px 16px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-1); }
html[data-theme='neon'] .nx-pf-tile small { font-family: var(--font-label); display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
html[data-theme='neon'] .nx-pf-tile b { display: block; margin-top: 6px; font: 400 34px/1 var(--font-num); color: var(--text); }
html[data-theme='neon'] .nx-pf-tile span { display: block; margin-top: 4px; font-size: 12px; color: var(--good); }
html[data-theme='neon'] .nx-match { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background 0.25s; }
html[data-theme='neon'] .nx-match + .nx-match { box-shadow: 0 -1px 0 var(--line-1); }
html[data-theme='neon'] .nx-match:hover { background: linear-gradient(90deg, rgba(209, 171, 91, 0.08), transparent 70%); }
html[data-theme='neon'] .nx-match .mk { width: 4px; align-self: stretch; border-radius: 2px; background: var(--good); box-shadow: 0 0 8px var(--good); }
html[data-theme='neon'] .nx-match.loss .mk { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
html[data-theme='neon'] .nx-match.draw .mk { background: var(--muted); box-shadow: none; }
html[data-theme='neon'] .nx-match .mt { min-width: 120px; }
html[data-theme='neon'] .nx-match .mt b { display: block; }
html[data-theme='neon'] .nx-match .mt b span { font-weight: 400; color: var(--muted); }
html[data-theme='neon'] .nx-match .mt small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
html[data-theme='neon'] .nx-match .mteam { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
html[data-theme='neon'] .nx-match .mteam .vs { margin: 0 6px; font-size: 12px; color: var(--muted); }
html[data-theme='neon'] .nx-match .mgrade { flex: none; min-width: 30px; text-align: center; color: var(--muted); }
html[data-theme='neon'] .nx-pf-season { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
html[data-theme='neon'] .nx-pf-season .grow { flex: 1; min-width: 200px; }
html[data-theme='neon'] .nx-pf-season .nx-kicker { margin-bottom: 12px; }
html[data-theme='neon'] .ringbox { position: relative; width: 120px; height: 120px; }
html[data-theme='neon'] .nx-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
html[data-theme='neon'] .nx-ring circle { fill: none; stroke-width: 9; }
html[data-theme='neon'] .nx-ring .bg { stroke: rgba(255, 255, 255, 0.06); }
html[data-theme='neon'] .nx-ring .fg { stroke: var(--gold); stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(209, 171, 91, 0.6)); transition: stroke-dashoffset 1.6s var(--ease-out); }
html[data-theme='neon'] .ringbox .rv { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
html[data-theme='neon'] .ringbox .rv b { display: block; font: 400 34px/1 var(--font-num); }
html[data-theme='neon'] .ringbox .rv small { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
html[data-theme='neon'] .nx-pf-medals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
html[data-theme='neon'] .nx-pf-medals .off { filter: grayscale(1) brightness(0.35); }
html[data-theme='neon'] .nx-pf-most .nx-row .rt .nx-bar { margin-top: 6px; height: 6px; }
@media (max-width: 1000px) { html[data-theme='neon'] .nx-prof { grid-template-columns: 1fr; } }
/* a window between a phone and a laptop: your name and level beside your picture too, the level's bottom on the picture's */
@media (min-width: 761px) and (max-width: 1000px) {
  html[data-theme='neon'] .screen-profile .nx-pf-who { margin-top: -50px; }
  html[data-theme='neon'] .screen-profile .nx-pf-who :is(h2, .nx-kicker) { text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85); }
}
@media (max-width: 760px) {
  html[data-theme='neon'] .nx-pf-bg { height: 130px !important; }
  html[data-theme='neon'] .nx-pf-ava { left: 50%; top: 60px; width: 110px; height: 110px; transform: translateX(-50%); }
  html[data-theme='neon'] .nx-pf-who { padding: 60px 16px 16px; text-align: center; }
  html[data-theme='neon'] .nx-pf-who .nx-kicker, html[data-theme='neon'] .nx-pf-who .tags { justify-content: center; }
  html[data-theme='neon'] .nx-pf-who h2 { font-size: 30px; }
  html[data-theme='neon'] .nx-pf-rank { position: static; padding-bottom: 18px; }
  html[data-theme='neon'] .nx-pf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme='neon'] .nx-match .mteam { display: none; }
}

/* ================================================================== the draft, as the prototype's: big champion cards, tall pick slots */
html[data-theme='neon'] .dr-head { padding: 12px 18px; }
html[data-theme='neon'] .dr-title .t { font: 700 26px/1.05 var(--font-title); letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff6dc 0%, var(--gold) 55%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5)); }
html[data-theme='neon'] .dr-steps { border: 1px solid var(--line-1); border-radius: 8px; background: rgba(0, 0, 0, 0.35); }
html[data-theme='neon'] .dr-grid { gap: 14px; padding: 14px; border: 0; border-radius: 10px; background: rgba(6, 5, 9, 0.35); grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
html[data-theme='neon'] .champ-tile {
  aspect-ratio: 3 / 4; justify-content: flex-end; padding: 0 6px 10px; overflow: visible; border-radius: 10px;
  background: radial-gradient(120% 80% at 50% 30%, rgba(100, 146, 255, 0.22), #120f17 75%); border: 1px solid var(--line-2);
  box-shadow: 0 14px 24px -14px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06); transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
html[data-theme='neon'] .champ-tile:has(.ct-fac.wild) { background: radial-gradient(120% 80% at 50% 30%, rgba(107, 214, 114, 0.22), #120f17 75%); }
html[data-theme='neon'] .champ-tile:has(.ct-fac.arcane) { background: radial-gradient(120% 80% at 50% 30%, rgba(185, 138, 255, 0.24), #120f17 75%); }
html[data-theme='neon'] .champ-tile:has(.ct-fac.shadow) { background: radial-gradient(120% 80% at 50% 30%, rgba(255, 99, 144, 0.22), #120f17 75%); }
html[data-theme='neon'] .champ-tile:not(.disabled):hover { transform: translateY(-5px); border-color: var(--line-3); box-shadow: 0 22px 34px -16px #000, 0 0 24px -8px rgba(209, 171, 91, 0.5); filter: none; }
html[data-theme='neon'] .champ-tile .ct-icon { position: absolute; left: 50%; top: 8%; width: 86%; height: auto; aspect-ratio: 1; transform: translateX(-50%); border: 0; background: none; box-shadow: none; }
html[data-theme='neon'] .champ-tile .ct-icon canvas { filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.6)); }
html[data-theme='neon'] .champ-tile .ct-icon { display: grid; place-items: center; overflow: visible; }
html[data-theme='neon'] .champ-tile .ct-name { position: relative; z-index: 1; width: calc(100% + 12px); margin: 0 -6px; padding: 22px 8px 0; justify-content: flex-start; text-align: left;
  font: 700 15px/1 var(--font-title); color: var(--text); background: linear-gradient(0deg, rgba(10, 8, 13, 0.95) 40%, transparent); }
html[data-theme='neon'] .champ-tile .ct-facs { position: absolute; z-index: 2; right: 8px; top: 8px; flex-direction: column; gap: 4px; }
html[data-theme='neon'] .champ-tile .ct-fac { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.6); }
html[data-theme='neon'] .champ-tile .ct-tier { top: 8px; left: 8px; z-index: 2; min-width: 24px; padding: 4px 5px; border-radius: 5px; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line-3); }
html[data-theme='neon'] .champ-tile .ct-lock { top: 6px; left: 8px; z-index: 2; }
html[data-theme='neon'] .champ-tile .ct-picks, html[data-theme='neon'] .champ-tile .ct-order { top: -8px; right: -6px; z-index: 3; }
html[data-theme='neon'] .champ-tile.chosen { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 30px -6px var(--gold); }
html[data-theme='neon'] .dr-team { padding: 12px; }
html[data-theme='neon'] .dr-team-head b { font: 700 18px/1.1 var(--font-title); letter-spacing: 0.02em; }
html[data-theme='neon'] .dr-team.p0 .dr-team-head b { color: #8cb0ff; }
html[data-theme='neon'] .dr-team.p1 .dr-team-head b { color: #ff9aa6; }
html[data-theme='neon'] .dr-slots { gap: 10px; }
html[data-theme='neon'] .dr-slot { min-height: 64px; border-radius: 8px; }
html[data-theme='neon'] .dr-team.active .dr-slot:not(.filled):first-of-type { border: 1px solid var(--gold); box-shadow: 0 0 18px -6px var(--gold), inset 0 0 12px -6px var(--gold); }
html[data-theme='neon'] .dr-preview { border-radius: 10px; }
/* before the fight: the heroes' lists and the turn's pill have nothing to say, so they don't show their frames */
html[data-theme='neon'] .battle .roster:empty { display: none; }
html[data-theme='neon'] .battle .turn-banner:empty { visibility: hidden; }
/* the draft in the client's look: clean words (the pixel font is the fight's), solid boxes over the place, flat corners, and
   cards small enough to see the whole roster, which only scrolls in its own box */
html[data-theme='neon'] .dr { --font-text: var(--nx-ui); --font-label: var(--nx-cap); }
html[data-theme='neon'] .dr { font-family: var(--nx-ui); }
html[data-theme='neon'] .dr :is(.num, .dr-count, .dr-count-step, input, small, .dr-preview, .dr-preview *) { font-family: var(--nx-ui); }
html[data-theme='neon'] .dr-filters .btn:is(.active, .selected, .on, .teal) { color: var(--gold); }
/* the info box: who, what they do, what they wear; each part set apart */
html[data-theme='neon'] .dr-preview { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.4; }
html[data-theme='neon'] .nx-pv-top { flex: none; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-1); }
html[data-theme='neon'] .nx-pv-top .pic { flex: none; display: grid; place-items: center; padding: 3px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); }
html[data-theme='neon'] .nx-pv-top h4 { margin: 0; font: 700 19px/1.1 var(--nx-cap); color: #fff6dc; }
html[data-theme='neon'] .nx-pv-top small { color: #a79e90; font-size: 12px; }
html[data-theme='neon'] .nx-pv-top .stats { display: flex; gap: 8px; margin-top: 3px; white-space: nowrap; }
html[data-theme='neon'] .nx-pv-top .stats b { color: #fff6dc; }
html[data-theme='neon'] .nx-pv-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
html[data-theme='neon'] .nx-pv-tags .nx-fac-tag { height: 22px; padding: 0 6px 0 4px; font-size: 11px; }
/* the squares it reaches, from each kind of place on the board */
html[data-theme='neon'] .nx-pv-reach { flex: none; margin-inline: auto; }
html[data-theme='neon'] .nx-pv-reach .reach-set { flex: none; display: flex; gap: 4px; }
html[data-theme='neon'] .nx-pv-reach .reach-grid { grid-template-columns: repeat(3, 8px); gap: 2px; padding: 2px; border: 1px solid var(--line-1); background: rgba(0, 0, 0, 0.35); }
html[data-theme='neon'] .nx-pv-reach .reach-grid i { width: 8px; height: 8px; background: rgba(255, 255, 255, 0.08); box-shadow: none; }
html[data-theme='neon'] .nx-pv-reach .reach-grid i.hit { background: #e0555a; }
html[data-theme='neon'] .nx-pv-reach .reach-grid i.me { background: var(--gold); }
html[data-theme='neon'] .nx-pv-abs { flex: none; display: flex; flex-direction: column; gap: 5px; }
html[data-theme='neon'] .nx-pv-ab { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-left: 3px solid #8a8378; background: rgba(0, 0, 0, 0.3); }
html[data-theme='neon'] .nx-pv-ab.skill { border-left-color: #7fb4ff; }
html[data-theme='neon'] .nx-pv-ab.ult { border-left-color: var(--gold); }
html[data-theme='neon'] .nx-pv-ab b { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #fff6dc; }
html[data-theme='neon'] .nx-pv-ab.skill b { color: #9cc6ff; }
html[data-theme='neon'] .nx-pv-ab.ult b { color: var(--gold); }
html[data-theme='neon'] .nx-pv-top .who { flex: 1; min-width: 72px; }
html[data-theme='neon'] .nx-pv-items { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-1); }
html[data-theme='neon'] .nx-pv-slot { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
html[data-theme='neon'] .nx-pv-slot small { color: var(--gold); font-size: 11px; line-height: 1.25; }
html[data-theme='neon'] .nx-pv-item { flex: none; display: grid; place-items: center; width: 36px; height: 36px; }
html[data-theme='neon'] .nx-pv-item .box { display: block; width: 36px; height: 36px; border: 1px dashed var(--line-3); background: rgba(0, 0, 0, 0.3); }
html[data-theme='neon'] .dr-preview .dr-hint { flex: none; padding-top: 8px; border-top: 1px solid var(--line-1); font-size: 12px; }
@media (min-width: 1001px) {
  html[data-theme='neon'] .dr-side { overflow: hidden; }
  html[data-theme='neon'] .dr-side > .dr-team { flex: none; }
  html[data-theme='neon'] .dr-side > .dr-preview { flex: 1; min-height: 0; overflow-y: auto; }
}
@media (min-width: 1101px) {
  /* both rosters the same width and, side by side in one row, the same height; the info box under the right one, as tall as what it says */
  html[data-theme='neon'] .dr-body { grid-template-columns: 248px minmax(0, 1fr) 248px; grid-template-rows: auto minmax(0, 1fr); }
  html[data-theme='neon'] .dr-side { display: contents; }
  html[data-theme='neon'] .dr-body .dr-team { grid-row: 1; align-self: stretch; }
  html[data-theme='neon'] .dr-body > .dr-team { grid-column: 1; }
  html[data-theme='neon'] .dr-side > :first-child { grid-column: 3; grid-row: 1; }
  html[data-theme='neon'] .dr-pool { grid-column: 2; grid-row: 1 / span 2; }
  html[data-theme='neon'] .dr-side > .dr-preview { grid-column: 3; grid-row: 2; align-self: start; max-height: 100%; flex: none; }
}
/* Auto fight's three speeds, joined */
html[data-theme='neon'] .hud-speeds { display: flex; }
html[data-theme='neon'] .hud-speeds .btn { min-width: 38px; padding-inline: 6px; font: 700 13px/1 var(--nx-ui); }
html[data-theme='neon'] .hud-speeds .btn + .btn { margin-left: -1px; }
html[data-theme='neon'] .hud-pause { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 38px; }
html[data-theme='neon'] .hud-pause[hidden] { display: none; }
html[data-theme='neon'] .hud-pause i { width: 4px; height: 14px; background: currentColor; }
/* frozen: lit, and a play triangle to carry on */
html[data-theme='neon'] .hud-pause.on { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
html[data-theme='neon'] .hud-pause.on i:first-child { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; background: none; }
html[data-theme='neon'] .hud-pause.on i:last-child { display: none; }
html[data-theme='neon'] .hud-speeds.locked { cursor: not-allowed; }
html[data-theme='neon'] .hud-speeds.locked .btn { pointer-events: none; }
html[data-theme='neon'] .hud-speeds .btn.on { position: relative; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); opacity: 1; }
.narrow .hud-speeds .btn { min-width: 28px; }
/* on the board: a sword for an attack, a wand for any ability (the rule for every button would win without the theme here) */
html[data-theme='neon'] .game-cursors .cell-btn[data-cur='sword'], html[data-theme='neon'].game-cursors .cell-btn[data-cur='sword'] { cursor: var(--cur-sword), crosshair; }
html[data-theme='neon'] .game-cursors .cell-btn[data-cur='wand'], html[data-theme='neon'].game-cursors .cell-btn[data-cur='wand'] { cursor: var(--cur-wand), pointer; }
/* the turn's clock under the turn bar: the seconds and the bar in a row */
html[data-theme='neon'] .battle .timer.nx-over { flex-direction: row; gap: 10px; width: 210px; font-size: 24px; }
html[data-theme='neon'] .battle .timer.nx-over .timer-bar { flex: 1; width: auto; height: 10px; border-width: 1px; box-shadow: none; }
/* a champion to place, its "i" in the corner */
html[data-theme='neon'] .nx-place-card { position: relative; display: flex; }
/* who picks: their name over their calling card */
html[data-theme='neon'] .dr-team-top { position: relative; margin: -12px -12px 2px; padding: 26px 12px 8px; overflow: hidden; border-bottom: 1px solid var(--line-2); }
html[data-theme='neon'] .dr-team-top .dr-team-card { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
html[data-theme='neon'] .dr-team-top::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(8, 7, 12, 0.92), rgba(8, 7, 12, 0.15)); }
html[data-theme='neon'] .dr-team-top .dr-team-head { position: relative; z-index: 1; }
/* phones: no room for the info box or the cards; a long press on a champion tells the same */
@media (max-width: 1000px) {
  html[data-theme='neon'] .dr-preview, html[data-theme='neon'] .dr-team-top .dr-team-card, html[data-theme='neon'] .dr-team-top::after { display: none; }
  html[data-theme='neon'] .dr-team-top { margin: 0; padding: 0; border: 0; }
}
/* the draft's filters: a list hanging from each */
html[data-theme='neon'] .nx-dd-btn { gap: 6px; }
html[data-theme='neon'] .nx-dd-btn.on, html[data-theme='neon'] .nx-dd-btn.chosen { color: var(--gold); }
html[data-theme='neon'] .nx-dd-now { display: inline-flex; align-items: center; }
html[data-theme='neon'] .nx-dd-now .nx-fac-tag { height: 20px; padding: 0 6px 0 4px; font-size: 11px; }
html[data-theme='neon'] .nx-dd-caret { flex: none; width: 7px; height: 7px; margin: -3px 2px 0 2px; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; }
html[data-theme='neon'] .nx-dd { position: fixed; z-index: 40; min-width: 170px; display: flex; flex-direction: column; gap: 2px; padding: 5px; border: 1px solid var(--line-2); background: #15111b; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7); animation: nx-dock-in 0.13s ease-out; }
html[data-theme='neon'] .nx-dd-row { display: flex; align-items: center; min-height: 32px; padding: 3px 8px; border: 0; background: none; color: #d8d0c2; font: 600 13px/1.2 var(--nx-ui); text-align: left; cursor: pointer; }
html[data-theme='neon'] .nx-dd-row:hover { background: rgba(209, 171, 91, 0.12); color: #fff6dc; }
html[data-theme='neon'] .nx-dd-row.on { box-shadow: inset 2px 0 0 var(--gold); color: var(--gold); }
/* phones in a fight: each champion over and under the board fills its box; all six to place fit across */
html[data-theme='neon'] .narrow .roster-hero { width: var(--rh, 48px); height: var(--rh, 48px); padding: 0; overflow: hidden; border-radius: 0; }
html[data-theme='neon'] .narrow .roster-hero.active { border: 1px solid var(--gold); box-shadow: none; }
html[data-theme='neon'] .battle.narrow .action-bar .act-round { flex: 1 1 0; width: auto; max-width: 48px; height: auto; min-width: 0; min-height: 0; aspect-ratio: 1; }
html[data-theme='neon'] .battle.narrow .action-bar:has(.act-round) { width: 100%; justify-content: center; }
html[data-theme='neon'] .narrow .nx-act-wrap { position: relative; display: flex; flex: 1 1 0; min-width: 0; max-width: 48px; }
html[data-theme='neon'] .battle.narrow .action-bar .nx-act-wrap > .act-round { flex: 1 1 auto; max-width: none; }
html[data-theme='neon'] .narrow .nx-act-wrap > .rh-info { z-index: 4; display: grid; top: auto; right: auto; bottom: 2px; left: 50%; width: 16px; height: 16px; translate: -50% 0; border-radius: 0; }
html[data-theme='neon'] .narrow .nx-act-wrap > .rh-info::after { content: ''; position: absolute; inset: -7px; }
html[data-theme='neon'] .at-range { display: flex; align-items: center; gap: 10px; padding: 0 9px 8px; }
html[data-theme='neon'] .at-range .reach-grid { flex: none; }
html[data-theme='neon'] .at-range .reach-grid i:not(.me):not(.hit) { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
html[data-theme='neon'] .at-range b { display: block; font: 700 12px/1.2 var(--nx-ui); color: var(--gold); }
html[data-theme='neon'] .at-range span { font: 500 12px/1.3 var(--nx-ui); }
html[data-theme='neon'] .narrow .act-round.art .act-ico canvas { width: 100% !important; height: 100% !important; }
html[data-theme='neon'] .narrow .roster-hero canvas { --pw: var(--rh, 48px) !important; width: 100% !important; height: 100% !important; border-radius: 0; }
html[data-theme='neon'] .narrow .hud-top .turn-banner { display: flex; flex-direction: column; justify-content: center; min-height: 36px; }
body.touch[class] .narrow .action-bar:not(:empty), html[data-theme='neon'] .narrow .action-bar:has(.nx-place-card) { padding: 6px 8px; }
html[data-theme='neon'] .narrow .action-bar:has(.nx-place-card) { display: flex; width: 100%; justify-content: center; gap: 4px; }
html[data-theme='neon'] .narrow .nx-place-card { flex: 0 1 calc((100% - 20px) / 6); min-width: 0; }
html[data-theme='neon'] .narrow .nx-place-card > .card { width: 100%; min-width: 0; padding: 3px 3px 22px; overflow: hidden; }
html[data-theme='neon'] .narrow .nx-place-card > .card canvas { width: 100%; height: auto; }
html[data-theme='neon'] .narrow .nx-place-card > .card .name { display: block; max-width: 100%; overflow: hidden; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
html[data-theme='neon'] .narrow .nx-place-card > .rh-info { display: grid; top: auto; right: auto; bottom: 3px; left: 50%; width: 18px; height: 18px; translate: -50% 0; border-radius: 0; }
html[data-theme='neon'] .narrow .nx-place-card > .rh-info::after { content: ''; position: absolute; inset: -8px; }
/* phones, a replay: one row of controls, one line of what happened, a shorter timeline, all under the board */
html[data-theme='neon'] .narrow .replay-bar { gap: 3px; padding: 4px 6px; }
html[data-theme='neon'] .narrow .rp-top { flex-wrap: wrap; }
html[data-theme='neon'] .narrow .rp-exit { min-width: 36px; min-height: 32px; margin-left: auto; padding: 1px 4px; }
html[data-theme='neon'] .narrow .rp-exit .lbl { display: none; }
html[data-theme='neon'] .narrow .rp-info { flex-direction: row; align-items: baseline; gap: 8px; }
html[data-theme='neon'] .narrow .rp-pos { flex: none; }
html[data-theme='neon'] .narrow .rp-caption { min-width: 0; }
html[data-theme='neon'] .narrow .tl-track { height: 70px; }
html[data-theme='neon'] .narrow .tl-mark.s0 { top: 11px; }
html[data-theme='neon'] .narrow .tl-mark.s1 { bottom: 11px; }
html[data-theme='neon'] .narrow .tl-victim { width: 13px; height: 13px; margin-left: -6px; }
/* phones: Random in words, on the left of the box with Lock In, instead of a dice up in the title (your call) */
@media (max-width: 700px) {
  html[data-theme='neon'] .dr-rand { display: none; }
  html[data-theme='neon'] .dr-choice-bar.quiet.mine { display: flex; }
  html[data-theme='neon'] .dr-rand-txt { display: inline-flex; order: -1; margin-right: auto; }
  /* (a tap on a card sends it: the button only for what Random chose) */
  html[data-theme='neon'] .dr-choice-bar:is(.k-pick, .k-ban) .dr-lock:disabled { display: none; }
}
@media (min-width: 1001px) {
  html[data-theme='neon'] .dr-head { border: 1px solid var(--line-1); border-radius: 0; background: rgba(13, 10, 18, 0.95); }
  html[data-theme='neon'] .dr-choice-bar { border: 1px solid var(--line-1); border-image: none; border-radius: 0; background: rgba(13, 10, 18, 0.95); box-shadow: none; }
  html[data-theme='neon'] .dr-pool, html[data-theme='neon'] .dr-team, html[data-theme='neon'] .dr-preview { border: 1px solid var(--line-1); border-image: none; border-radius: 0; background: rgba(13, 10, 18, 0.95); }
  html[data-theme='neon'] .dr-steps { border-radius: 0; }
  html[data-theme='neon'] .dr-slot { border-radius: 0; min-height: 58px; }
  html[data-theme='neon'] .dr-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; padding: 8px; border-radius: 0; background: none; }
  html[data-theme='neon'] .dr-grid .champ-tile { aspect-ratio: 4 / 5; border-radius: 0; }
  html[data-theme='neon'] .dr-grid .champ-tile:not(.disabled):hover { transform: translateY(-3px); }
  html[data-theme='neon'] .dr-grid .champ-tile.chosen { transform: none; }
  html[data-theme='neon'] .dr-grid .champ-tile .ct-name { font-size: 13px; padding-top: 16px; }
  html[data-theme='neon'] .dr-grid .champ-tile .ct-tier { border-radius: 0; }
  html[data-theme='neon'] .dr-tools .btn { min-height: 30px; }
}

/* ================================================================== the fight's HUD: slim rows, the turn on a pill, the abilities in a bar */
html[data-theme='neon'] .battle:not(.narrow) .roster { padding: 10px; }
html[data-theme='neon'] .roster-hero { gap: 3px 9px; padding: 7px 22px 7px 7px; border-radius: 8px; border: 1px solid var(--line-1); background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2)); }
html[data-theme='neon'] .roster-hero canvas { border-radius: 8px; background: radial-gradient(circle at 50% 40%, #2f2739, #0d0b12 75%); }
html[data-theme='neon'] .roster-hero .nm { font: 700 15px/1.1 var(--nx-cap); letter-spacing: 0.02em; } /* (Pixelify's bold C read as an O: "Clerio", "Ember Danoer") */
html[data-theme='neon'] .roster-hero .bar { height: 8px; }
html[data-theme='neon'] .roster-hero.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 16px -4px var(--gold); }
html[data-theme='neon'] .action-bar:not(:empty) { gap: 10px; padding: 12px 14px 30px; }
/* the actions: flat squares, the picture or gold icon filling them, each key plain to read under its button */
html[data-theme='neon'] .act-round, html[data-theme='neon'] .act-round.ghost, html[data-theme='neon'] .act-round.art { --fw: 0px; border: 1px solid var(--line-2); border-image: none; background: #17131d; image-rendering: auto; }
html[data-theme='neon'] .act-round.art::after { display: none; }
html[data-theme='neon'] .act-round:hover:not(:disabled) { border-color: var(--gold); }
html[data-theme='neon'] .act-round.on { border-color: var(--gold); border-image: none; box-shadow: 0 0 0 1px var(--gold), 0 0 12px -2px var(--gold); }
html[data-theme='neon'] .act-badge { right: -7px; top: -7px; }
html[data-theme='neon'] .act-key { bottom: -25px; }
html[data-theme='neon'] .act-key .kbd { min-width: 22px; height: 20px; padding: 0 5px; font: 700 12px/1 var(--nx-ui); border-bottom-width: 2px; }
html[data-theme='neon'] .act-sep { background: var(--line-2); }
@media (min-width: 761px) {
  html[data-theme='neon'] .act-round:not(.art) .act-ico canvas { width: 40px; height: 40px; }
  html[data-theme='neon'] .act-round.ghost .act-ico canvas { width: 28px; height: 28px; }
}
html[data-theme='neon'] .action-bar .btn { --cut: 8px; }
html[data-theme='neon'] .chronicle.panel, html[data-theme='neon'] .panel.chronicle { background: linear-gradient(180deg, rgba(20, 16, 26, 0.9), rgba(10, 8, 14, 0.94)); }
@media (max-width: 760px) {
  html[data-theme='neon'] .dr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px; }
  html[data-theme='neon'] .champ-tile .ct-name { font-size: 12px; padding: 16px 6px 0; }
  html[data-theme='neon'] .dr-title .t { font-size: 20px; }
}

/* ================================================================== portraits at the size they're drawn (no rescaling in the page, which blurs them) */
html[data-theme='neon'] canvas.portrait.hd { width: var(--pw) !important; height: auto !important; aspect-ratio: 1; max-width: 100%; image-rendering: auto; }

/* ================================================================== the factions: their glyphs (the redesign's: Order a shield, Wild a flame,
   Arcane a star, Shadow a moon) instead of dots, in the same colours (the dot's colour fills the glyph's shape) */
html[data-theme='neon'] :is(.ct-fac, .nx-fac).order { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1 14 3v5c0 3.5-2.6 6-6 7-3.4-1-6-3.5-6-7V3z'/%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 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1 14 3v5c0 3.5-2.6 6-6 7-3.4-1-6-3.5-6-7V3z'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-theme='neon'] :is(.ct-fac, .nx-fac).wild { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1c3 3 6 5 6 9a6 6 0 0 1-12 0c0-4 3-6 6-9zm0 5c-1.4 1.6-2.5 2.6-2.5 4.4a2.5 2.5 0 0 0 5 0C10.5 8.6 9.4 7.6 8 6z'/%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 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1c3 3 6 5 6 9a6 6 0 0 1-12 0c0-4 3-6 6-9zm0 5c-1.4 1.6-2.5 2.6-2.5 4.4a2.5 2.5 0 0 0 5 0C10.5 8.6 9.4 7.6 8 6z'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-theme='neon'] :is(.ct-fac, .nx-fac).arcane { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 0l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%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 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 0l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-theme='neon'] :is(.ct-fac, .nx-fac).shadow { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M11 1a7 7 0 1 0 4 12A6 6 0 0 1 11 1z'/%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 16 16'%3E%3Cpath fill-rule='evenodd' d='M11 1a7 7 0 1 0 4 12A6 6 0 0 1 11 1z'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-theme='neon'] .ct-fac { width: 13px; height: 13px; border: 0; border-radius: 0; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.8)); }
html[data-theme='neon'] .rh-facs { gap: 3px; }
html[data-theme='neon'] .rh-facs .ct-fac { width: 11px; height: 11px; }
html[data-theme='neon'] .champ-tile .ct-fac { width: 15px; height: 15px; border: 0; border-radius: 0; }
html[data-theme='neon'] .nx-fac { display: block; width: 12px; height: 12px; background: currentColor; }

/* ================================================================== the match stats under tabs (the results, a past game's window): one section at a
   time, playing in when shown (the bars growing from the middle, the awards popping one after another) */
html[data-theme='neon'] .ms-tabbed { gap: 16px; }
html[data-theme='neon'] .ms-tabs { justify-content: flex-start; margin: 0 0 2px; }
html[data-theme='neon'] .ms-tabbed .ms-sec[hidden] { display: none; }
html[data-theme='neon'] .ms-tabbed .ms-sec > .h2:not(.ms-vs) { display: none; }
html[data-theme='neon'] .nx-ms-joined { display: flex; flex-direction: column; gap: 14px; }
/* the stats' tabs stay in sight while a long one scrolls; clean numbers, the pixel font is the fight's */
html[data-theme='neon'] .ms-tabbed .ms-tabs { position: sticky; top: 0; z-index: 3; background: #15111b; }
html[data-theme='neon'] .ms-tabbed :is(.num, .ms-chip b, .ms-turns) { font-family: var(--nx-ui); }
html[data-theme='neon'] .nx-res-pane .ms-tabbed .ms-tabs { background: var(--nx-panel); }
html[data-theme='neon'] .ms-sec.ms-in { animation: ms-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
html[data-theme='neon'] .ms-in .ms-tug-bar i { animation: ms-grow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
html[data-theme='neon'] .ms-in .ms-tug-bar i.s0 { transform-origin: right; }
html[data-theme='neon'] .ms-in .ms-tug-bar i.s1 { transform-origin: left; }
html[data-theme='neon'] .ms-in .ms-dmgbar { transform-origin: left; animation: ms-grow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
html[data-theme='neon'] .ms-in .ms-award { animation: ms-pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
html[data-theme='neon'] .ms-in .ms-award:nth-child(2) { animation-delay: 0.07s; }
html[data-theme='neon'] .ms-in .ms-award:nth-child(3) { animation-delay: 0.14s; }
html[data-theme='neon'] .ms-in .ms-award:nth-child(4) { animation-delay: 0.21s; }
html[data-theme='neon'] .ms-in .ms-award:nth-child(5) { animation-delay: 0.28s; }
html[data-theme='neon'] .ms-in .ms-award:nth-child(6) { animation-delay: 0.35s; }
@keyframes ms-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes ms-grow { from { transform: scaleX(0); } }
@keyframes ms-pop { from { opacity: 0; transform: translateY(14px) scale(0.9); } }

/* ================================================================== the results (the prototype's): the title slamming in over its rays, the stars
   stamping one by one, one panel with the MVP, your rank and level, what you won as tiles popping in; Home, Replay, Play again; the game's numbers */
html[data-theme='neon'] .screen-results.vignette::after { display: none; }
html[data-theme='neon'] .screen-results .screen-body > .max { max-width: 980px; }
html[data-theme='neon'] .nx-res-hero { position: relative; display: flex; flex-direction: column; align-items: center; padding: 18px 0 6px; text-align: center; }
html[data-theme='neon'] .nx-res-hero > :not(.nx-res-rays) { position: relative; }
html[data-theme='neon'] .nx-res-hero .nx-kicker { justify-content: center; }
html[data-theme='neon'] .nx-res-rays { position: absolute; inset: -40px 0 -60px; overflow: hidden; pointer-events: none; -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent); }
html[data-theme='neon'] .nx-res-rays::before { content: ''; position: absolute; left: 50%; top: 50%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; background: repeating-conic-gradient(rgba(209, 171, 91, 0.13) 0 4deg, transparent 4deg 14deg); animation: nx-res-spin 50s linear infinite; }
@keyframes nx-res-spin { to { transform: rotate(360deg); } }
html[data-theme='neon'] .nx-res-title {
  margin: 10px 0 0; font: 700 clamp(56px, 11vw, 116px)/0.95 var(--font-title); letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff8e0 10%, var(--gold) 50%, var(--gold-2) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 5px 0 rgba(60, 36, 8, 0.9)) drop-shadow(0 0 34px rgba(209, 171, 91, 0.45)); animation: nx-res-slam 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
html[data-theme='neon'] .nx-res-title.long { font-size: clamp(34px, 7vw, 68px); }
html[data-theme='neon'] .nx-res-hero:not(.won) .nx-res-title { background-image: linear-gradient(180deg, #e9e4ee 10%, #a49cb0 55%, #6c6478 90%); filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.7)); }
html[data-theme='neon'] .nx-res-hero.draw .nx-res-title { background-image: linear-gradient(180deg, #e4fff9 10%, var(--teal) 55%, var(--teal-2) 90%); }
@keyframes nx-res-slam { 0% { opacity: 0; transform: scale(2.2); } 60% { opacity: 1; } 100% { transform: none; } }
html[data-theme='neon'] .nx-res-stars { display: flex; align-items: flex-start; gap: 14px; margin: 16px 0 8px; }
html[data-theme='neon'] .nx-res-stars i { display: block; width: 58px; height: 58px; clip-path: polygon(50% 0, 62% 35%, 98% 35%, 69% 57%, 79% 92%, 50% 71%, 21% 92%, 31% 57%, 2% 35%, 38% 35%); background: rgba(255, 255, 255, 0.13); }
html[data-theme='neon'] .nx-res-stars i:nth-child(2) { width: 76px; height: 76px; margin-top: -12px; }
html[data-theme='neon'] .nx-res-stars i.on { background: linear-gradient(180deg, #fff1c9, var(--gold) 55%, var(--gold-2)); animation: nx-res-stamp 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) calc(0.35s + var(--i) * 0.22s) both; }
@keyframes nx-res-stamp { from { opacity: 0; transform: scale(2.6) rotate(-30deg); } }
html[data-theme='neon'] .nx-res-grade { display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 14px/1 var(--font-label); letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-2); }
html[data-theme='neon'] .nx-res-grade b { font: 700 42px/1 var(--font-title); letter-spacing: 0; }
html[data-theme='neon'] .nx-res-grade .res-grade-art { margin: 0; }
html[data-theme='neon'] .nx-res-grade .num { font: 400 18px/1 var(--font-num); letter-spacing: 0.04em; color: var(--muted); }
html[data-theme='neon'] .nx-res-panel { display: flex; flex-direction: column; gap: 16px; width: min(720px, 100%); margin: 8px auto 0; }
html[data-theme='neon'] .nx-res-top { display: flex; align-items: center; gap: 22px; }
html[data-theme='neon'] .nx-res-mvp { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; width: 180px; text-align: center; }
html[data-theme='neon'] .nx-res-mvp > .res-mvp-crown { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); z-index: 1; }
html[data-theme='neon'] .nx-res-mvp small { margin-top: 4px; font: 700 11px/1 var(--font-text); letter-spacing: 0.22em; color: var(--gold); }
html[data-theme='neon'] .nx-res-mvp b { max-width: 100%; margin-top: 3px; }
html[data-theme='neon'] .nx-res-bars { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
html[data-theme='neon'] .nx-res-bars:empty, html[data-theme='neon'] .nx-res-tiles:empty, html[data-theme='neon'] .nx-res-lines:empty { display: none; }
html[data-theme='neon'] .nx-res-rating { display: flex; align-items: center; gap: 14px; }
html[data-theme='neon'] .nx-res-rating .grow { flex: 1; min-width: 0; }
html[data-theme='neon'] .nx-res-rating .good { color: var(--good); }
html[data-theme='neon'] .nx-res-rating .bad { color: var(--bad); }
html[data-theme='neon'] .nx-res-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
html[data-theme='neon'] .nx-rew { width: 104px; padding: 12px 6px 10px; border-radius: 0; text-align: center; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); animation: nx-rew-in 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) calc(1.1s + var(--i) * 0.17s) both; }
@keyframes nx-rew-in { from { opacity: 0; transform: translateY(18px) scale(0.8); } }
html[data-theme='neon'] .nx-rew img { display: block; margin: 0 auto 6px; image-rendering: pixelated; }
html[data-theme='neon'] .nx-rew b { display: block; font: 400 25px/1 var(--font-num); letter-spacing: 0.04em; }
html[data-theme='neon'] .nx-rew small { font-family: var(--font-label); display: block; margin-top: 3px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme='neon'] .nx-res-lines { gap: 6px; padding-top: 12px; font-size: 14px; border-top: 1px solid var(--line-1); }
html[data-theme='neon'] .screen-results .max > .panel:not(.res-stats) { width: min(720px, 100%); margin-left: auto; margin-right: auto; }
html[data-theme='neon'] .screen-results .screen-foot { justify-content: center; margin: 4px 0; background: none; border: 0; box-shadow: none; }
/* on a computer, one screen: how it went and the MVP | what you won and the stats, in tabs | the buttons */
html[data-theme='neon'] .screen-results .screen-body > .nx-res-page { max-width: min(1240px, 96vw); height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr) auto; gap: 8px 20px; }
html[data-theme='neon'] .screen-results .screen-body:has(.nx-res-page) { overflow: hidden; padding: 10px 16px; }
html[data-theme='neon'] .nx-res-left { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
html[data-theme='neon'] .nx-res-left .nx-res-hero { flex: none; }
html[data-theme='neon'] .nx-res-left .nx-res-title { font-size: clamp(44px, 5.4vw, 84px); }
html[data-theme='neon'] .nx-res-left .nx-res-title.long { font-size: clamp(30px, 3.6vw, 56px); }
html[data-theme='neon'] .nx-res-left .nx-res-stars { margin: 8px 0 4px; }
html[data-theme='neon'] .nx-res-left .nx-res-mvp { flex: none; }
html[data-theme='neon'] .nx-res-right { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--nx-panel); border: 1px solid var(--line-1); }
html[data-theme='neon'] .nx-res-won { flex: 0 1 auto; max-height: 52%; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-1); }
html[data-theme='neon'] .nx-res-won > .panel { flex: none; width: 100%; margin: 0; padding: 0; border: 0; border-image: none; border-radius: 0; background: none; box-shadow: none; }
html[data-theme='neon'] .nx-res-won .nx-res-panel { gap: 8px; }
html[data-theme='neon'] .nx-res-won .nx-res-bars { flex-direction: row; gap: 16px; }
html[data-theme='neon'] .nx-res-won .nx-res-bars > * { flex: 1; min-width: 0; }
html[data-theme='neon'] .nx-res-won .nx-res-rating :is(img, canvas) { width: 36px !important; height: 36px !important; }
html[data-theme='neon'] .nx-res-won .nx-res-tiles { flex-wrap: nowrap; justify-content: stretch; gap: 6px; }
html[data-theme='neon'] .nx-res-won .nx-rew { flex: 1 1 0; min-width: 0; width: auto; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 6px; align-items: center; padding: 5px 8px; border-radius: 0; text-align: left; }
html[data-theme='neon'] .nx-res-won .nx-rew img { grid-row: 1 / span 2; width: 30px; height: 30px; margin: 0; }
html[data-theme='neon'] .nx-res-won .nx-rew b { font: 700 16px/1.1 var(--nx-ui); }
html[data-theme='neon'] .nx-res-won .nx-rew small { margin: 0; font-size: 9px; letter-spacing: 0.06em; }
html[data-theme='neon'] .nx-res-won .nx-res-lines { padding-top: 6px; font-size: 13px; }
html[data-theme='neon'] .nx-res-pane { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 4px 14px 12px; }
/* the first tab: what you won, then your team, everything saying why on a point */
html[data-theme='neon'] .nx-res-summary .nx-res-panel { width: 100%; margin: 0; padding: 0; gap: 14px; border: 0; border-image: none; border-radius: 0; background: none; box-shadow: none; }
html[data-theme='neon'] .nx-res-summary > .panel { width: 100%; margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--line-1); border-image: none; border-radius: 0; background: rgba(0, 0, 0, 0.25); box-shadow: none; }
html[data-theme='neon'] .nx-res-summary .nx-res-bars { flex-direction: row; gap: 16px; }
html[data-theme='neon'] .nx-res-summary .nx-res-bars > * { flex: 1; min-width: 0; }
html[data-theme='neon'] .nx-res-summary .nx-res-rating :is(img, canvas) { width: 36px !important; height: 36px !important; }
html[data-theme='neon'] .nx-res-summary .nx-res-tiles { flex-wrap: nowrap; justify-content: stretch; gap: 8px; }
html[data-theme='neon'] .nx-res-summary .nx-rew { flex: 1 1 0; min-width: 0; width: auto; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 0; text-align: left; }
html[data-theme='neon'] .nx-res-summary .nx-rew img { grid-row: 1 / span 2; width: 34px; height: 34px; margin: 0; }
html[data-theme='neon'] .nx-res-summary .nx-rew b { font: 700 18px/1.1 var(--nx-ui); }
html[data-theme='neon'] .nx-res-summary .nx-rew small { margin: 0; font-size: 10px; letter-spacing: 0.06em; }
html[data-theme='neon'] .nx-res-summary .nx-res-lines { padding-top: 10px; font-size: 13px; }
html[data-theme='neon'] .nx-res-lines .teal { color: var(--gold); }
html[data-theme='neon'] .nx-rew[data-tip], html[data-theme='neon'] .nx-res-lv[data-tip], html[data-theme='neon'] .nx-res-grade[data-tip] { cursor: help; }
html[data-theme='neon'] .nx-rew[data-tip]:hover, html[data-theme='neon'] button.nx-rt-card:hover, html[data-theme='neon'] button.nx-rt-card.open { border-color: var(--gold); }
html[data-theme='neon'] .nx-res-teamhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
html[data-theme='neon'] .nx-res-teamhead b { font: 700 14px/1 var(--nx-cap); letter-spacing: 0.06em; color: var(--gold); }
html[data-theme='neon'] .nx-res-teamhead small { font-size: 12px; color: #8e8678; }
html[data-theme='neon'] .nx-rt-grid { display: grid; grid-template-columns: repeat(var(--cols, auto-fill), minmax(min(170px, 100%), 1fr)); gap: 8px; }
/* the page's height goes down to the team, its cards taking what's left */
html[data-theme='neon'] .nx-res-pane { display: flex; flex-direction: column; }
html[data-theme='neon'] .nx-res-pane > .res-stats { flex: 1 0 auto; display: flex; flex-direction: column; }
html[data-theme='neon'] .nx-res-pane .ms-tabbed { flex: 1 0 auto; display: flex; flex-direction: column; }
html[data-theme='neon'] .nx-res-summary:not([hidden]) { flex: 1 0 auto; display: flex; flex-direction: column; }
html[data-theme='neon'] .nx-res-summary .nx-res-panel { flex: 1 0 auto; display: flex; flex-direction: column; }
html[data-theme='neon'] .nx-res-summary .nx-res-team { flex: 1 0 auto; display: flex; flex-direction: column; }
html[data-theme='neon'] .nx-res-summary .nx-rt-grid { flex: 1 0 auto; grid-auto-rows: 1fr; }
/* tall: the champion standing over its name, its numbers under */
html[data-theme='neon'] .nx-rt-grid.tall .nx-rt-card { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
html[data-theme='neon'] .nx-rt-grid.tall .pic { flex: 1 1 auto; display: flex; justify-content: center; align-items: center; width: auto; height: auto; min-height: 96px; overflow: hidden; border: 0; border-bottom: 1px solid var(--line-1); background: radial-gradient(ellipse at 50% 55%, rgba(209, 171, 91, 0.13), transparent 62%), #17131d; }
html[data-theme='neon'] .nx-rt-grid.tall .mvp .pic { background: radial-gradient(ellipse at 50% 55%, rgba(209, 171, 91, 0.32), transparent 66%), #17131d; }
html[data-theme='neon'] .nx-rt-grid.tall .who { flex: none; gap: 6px; padding: 10px 12px 12px; }
html[data-theme='neon'] .nx-rt-card .nums { display: flex; justify-content: space-between; gap: 8px; font: 600 12px/1.2 var(--nx-ui); color: #a79e90; }
html[data-theme='neon'] .nx-rt-grid:not(.tall) .nums.more { display: none; }
html[data-theme='neon'] .nx-rt-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 10px 7px 7px; border: 1px solid var(--line-1); background: rgba(0, 0, 0, 0.28); transition: border-color 0.12s; }
html[data-theme='neon'] .nx-rt-card.mvp { border-color: var(--line-3); }
html[data-theme='neon'] .nx-rt-card .pic { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid var(--line-1); background: #17131d; }
html[data-theme='neon'] .nx-rt-card { min-height: 0; }
html[data-theme='neon'] .nx-rt-card.fallen .pic { filter: grayscale(0.75) brightness(0.75); }
@media (min-height: 900px) {
  html[data-theme='neon'] .nx-res-summary .nx-res-panel { gap: 18px; }
  html[data-theme='neon'] .nx-res-summary .nx-rew { padding: 14px; }
  html[data-theme='neon'] .nx-res-summary .nx-rew b { font-size: 22px; }
  html[data-theme='neon'] .nx-rt-grid { gap: 10px; }
  html[data-theme='neon'] .nx-rt-card { gap: 12px; padding: 10px 12px 10px 10px; }
  html[data-theme='neon'] .nx-rt-grid:not(.tall) .pic { width: 84px; height: 84px; }
  html[data-theme='neon'] .nx-rt-card .top b { font-size: 16px; }
  html[data-theme='neon'] .nx-rt-card .gain b { font-size: 19px; }
}
html[data-theme='neon'] .nx-rt-card .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
html[data-theme='neon'] .nx-rt-card .top { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
html[data-theme='neon'] .nx-rt-card .top b { min-width: 0; font: 700 14px/1.1 var(--nx-ui); color: #fff6dc; }
html[data-theme='neon'] .nx-rt-card .gain { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--nx-ui); color: #8e8678; }
html[data-theme='neon'] .nx-rt-card .gain b { font: 700 16px/1 var(--nx-ui); color: var(--gold); }
html[data-theme='neon'] .nx-rt-card .stars { color: #d8d0c2; }
html[data-theme='neon'] .nx-rt-card .tag { flex: none; padding: 1px 5px; font: 700 10px/1.3 var(--nx-ui); letter-spacing: 0.06em; color: #1c1206; background: var(--gold); }
html[data-theme='neon'] .nx-rt-card .nx-bar i { transition: width 0.9s ease-out; }
/* why a champion earned its mastery: in the open over the champion, or its card turned to it by a press */
html[data-theme='neon'] button.nx-rt-card { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
html[data-theme='neon'] .nx-rt-why { display: none; flex-direction: column; gap: 2px; }
html[data-theme='neon'] .nx-rt-why .nx-why-row { font-size: 12px; }
html[data-theme='neon'] .nx-rt-why .nx-why-row.total { margin-top: auto; padding-top: 5px; }
html[data-theme='neon'] .nx-rt-why .nx-why-foot { margin: 0; }
html[data-theme='neon'] .nx-rt-grid.inline .nx-rt-why { flex: none; display: flex; height: 262px; padding: 10px 12px; border-bottom: 1px solid var(--line-1); background: rgba(0, 0, 0, 0.2); }
html[data-theme='neon'] .nx-rt-card.open .nx-rt-why { display: flex; }
html[data-theme='neon'] .nx-rt-grid.tall .nx-rt-card.open .nx-rt-why { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 10px 12px; border-bottom: 1px solid var(--line-1); }
html[data-theme='neon'] .nx-rt-grid.tall .nx-rt-card.open .pic { display: none; }
/* (no room in the card: it takes the whole row, the list under the champion) */
html[data-theme='neon'] .nx-rt-grid:not(.tall) .nx-rt-card { flex-wrap: wrap; }
html[data-theme='neon'] .nx-rt-grid:not(.tall) .nx-rt-card.open { grid-column: 1 / -1; }
html[data-theme='neon'] .nx-rt-grid:not(.tall) .nx-rt-card.open .nx-rt-why { order: 3; flex: 1 0 100%; padding-top: 8px; border-top: 1px solid var(--line-1); }
html[data-theme='neon'] .nx-rt-grid:not(.tall) .nx-rt-card .who { flex: 1 1 0; }
/* a number's bubble: every part of it and its total */
html[data-theme='neon'] .nx-why { width: 270px; max-width: 76vw; white-space: normal; }
html[data-theme='neon'] .nx-why-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
html[data-theme='neon'] .nx-why-head b { display: block; font: 700 15px/1.15 var(--nx-ui); color: var(--gold); }
html[data-theme='neon'] .nx-why-head small { display: block; margin-top: 2px; font-size: 12px; color: #a79e90; }
html[data-theme='neon'] .nx-why-rows { display: flex; flex-direction: column; gap: 3px; padding-top: 7px; }
html[data-theme='neon'] .nx-why-row { display: flex; justify-content: space-between; gap: 12px; font: 500 13px/1.3 var(--nx-ui); color: #d8d0c2; }
html[data-theme='neon'] .nx-why-row b { flex: none; font-weight: 700; color: #fff6dc; }
html[data-theme='neon'] .nx-why-row.none { color: #8e8678; }
html[data-theme='neon'] .nx-why-row.none b { color: #8e8678; }
html[data-theme='neon'] .nx-why-row.full b { color: var(--good); }
html[data-theme='neon'] .nx-why-row.mult b { color: #9cc6ff; }
html[data-theme='neon'] .nx-why-row.mascot b { color: #c7a4ff; }
html[data-theme='neon'] .nx-why-row.total { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line-2); font-weight: 700; color: #fff6dc; }
html[data-theme='neon'] .nx-why-row.total b { color: var(--gold); }
html[data-theme='neon'] .nx-why-foot { display: block; margin-top: 7px; font-size: 12px; line-height: 1.35; color: #a79e90; }
@media (max-width: 560px) { html[data-theme='neon'] .nx-rt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } html[data-theme='neon'] .nx-rt-card .pic { width: 44px; height: 44px; } html[data-theme='neon'] .nx-rt-card .pic canvas { width: 40px !important; height: 40px !important; } }
html[data-theme='neon'] .nx-res-pane > .panel { margin: 0; padding: 0; border: 0; border-image: none; border-radius: 0; background: none; box-shadow: none; }
html[data-theme='neon'] .nx-res-pane .res-stats > .h2 { display: none; }
html[data-theme='neon'] .nx-res-pane .tabs-burger { display: none; }
html[data-theme='neon'] .nx-res-page :is(.num, .bar b, .nx-res-grade .num, .nx-res-rating b) { font-family: var(--nx-ui); }
html[data-theme='neon'] .nx-res-page .nx-res-lv .num { font-size: 13px; }
html[data-theme='neon'] .nx-res-page > .screen-foot { grid-column: 1 / -1; margin: 0; padding: 4px 0 0; }
@media (max-width: 560px) {
  html[data-theme='neon'] .nx-res-stars i { width: 42px; height: 42px; }
  html[data-theme='neon'] .nx-res-stars i:nth-child(2) { width: 54px; height: 54px; margin-top: -8px; }
  html[data-theme='neon'] .nx-res-top { flex-direction: column; align-items: stretch; gap: 14px; }
  html[data-theme='neon'] .nx-res-mvp { align-self: center; }
  html[data-theme='neon'] .nx-rew { width: calc(33.33% - 7px); min-width: 84px; }
  html[data-theme='neon'] .screen-results .screen-foot { flex-wrap: wrap; }
  html[data-theme='neon'] .screen-results .screen-foot .btn { flex: 1 1 40%; min-width: 0; padding-left: 10px; padding-right: 10px; }
  html[data-theme='neon'] .screen-results .screen-foot .btn.primary { order: -1; flex-basis: 100%; }
}

/* ================================================================== Social (the prototype's): a kicker and the open tab as the big title, Add friend
   beside it, your friends one list with the gold line on the row you point at; the same pieces on the other tabs' player lists */
html[data-theme='neon'] .screen.win > .nx-so-head { padding: 22px 28px 10px; margin-bottom: 0; align-items: center; }
html[data-theme='neon'] .nx-so-head .nx-title { min-height: 44px; }
html[data-theme='neon'] .nx-so-one { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin: 0 auto; width: 100%; }
html[data-theme='neon'] .nx-so-one .so-side { order: -1; display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
html[data-theme='neon'] .nx-so-one .so-side[hidden] { display: none; }
html[data-theme='neon'] .so-page { max-width: 1160px; margin: 0 auto; width: 100%; }
html[data-theme='neon'] .so-main { gap: 12px; }
html[data-theme='neon'] .nx-so-one .so-head .h2 { display: none; }
html[data-theme='neon'] .so-head .h2 { font: 700 13px/1 var(--font-label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); }
html[data-theme='neon'] .so-search-box { height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(0, 0, 0, 0.4); transition: border-color 0.25s, box-shadow 0.25s; }
html[data-theme='neon'] .so-search-box:focus-within { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(209, 171, 91, 0.12); }
html[data-theme='neon'] .so-search { font: 400 15px var(--font-text); color: var(--text); }
html[data-theme='neon'] .so-tools { gap: 10px; }
html[data-theme='neon'] .so-tools .so-search-box { flex: 1; min-width: 180px; }
html[data-theme='neon'] .so-group { gap: 0; }
html[data-theme='neon'] .so-group-title { padding: 0 2px 6px; font: 700 12px/1 var(--font-text); letter-spacing: 0.2em; color: var(--muted); }
html[data-theme='neon'] .so-group-title b { min-width: 20px; padding: 3px 6px; border: 0; border-radius: 9px; text-align: center; background: rgba(255, 255, 255, 0.08); font-size: 11px; letter-spacing: 0; }
html[data-theme='neon'] .so-group.on .so-group-title span { color: var(--good); }
html[data-theme='neon'] .so-row { gap: 14px; padding: 10px 12px; border: 0; border-radius: 6px; background: none; box-shadow: none; overflow: hidden; transition: background 0.25s; }
html[data-theme='neon'] .so-row + .so-row { box-shadow: 0 -1px 0 var(--line-1); }
html[data-theme='neon'] .so-row::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 8px var(--gold); transform: scaleY(0); transition: transform 0.3s; z-index: 1; }
html[data-theme='neon'] .so-row:hover { background: linear-gradient(90deg, rgba(209, 171, 91, 0.08), transparent 70%); box-shadow: none; }
html[data-theme='neon'] .so-row + .so-row:hover { box-shadow: 0 -1px 0 var(--line-1); }
html[data-theme='neon'] .so-row:hover::before { transform: scaleY(1); }
html[data-theme='neon'] .so-ava { border: 1px solid var(--line-2); border-radius: 0; background: rgba(0, 0, 0, 0.35); box-shadow: none; }
html[data-theme='neon'] .so-ava canvas { border-radius: 0; }
html[data-theme='neon'] .so-initial { font-family: var(--font-title); color: var(--gold); }
html[data-theme='neon'] .so-dot { right: -1px; bottom: -1px; width: 12px; height: 12px; border: 2px solid var(--ink-1, #14101a); border-radius: 50%; }
html[data-theme='neon'] .so-name b { font-weight: 700; color: var(--text); }
html[data-theme='neon'] .so-lvl { padding: 0 6px; border: 0; border-radius: 4px; font: 700 11px/17px var(--font-text); color: var(--gold); background: rgba(209, 171, 91, 0.14); box-shadow: inset 0 0 0 1px rgba(209, 171, 91, 0.4); }
html[data-theme='neon'] .so-empty { padding: 34px 10px; }
html[data-theme='neon'] .so-add { gap: 12px; }
html[data-theme='neon'] .so-add-ico { border: 1px solid rgba(79, 220, 198, 0.4); border-radius: 10px; background: rgba(79, 220, 198, 0.1); box-shadow: none; }
html[data-theme='neon'] .so-myname { border: 1px dashed var(--line-2); border-radius: 8px; background: rgba(0, 0, 0, 0.25); }
html[data-theme='neon'] .so-invite-card { border-radius: var(--n-radius); transition: border-color 0.25s, transform 0.25s; }
html[data-theme='neon'] .so-invite-card:hover { box-shadow: none; border-color: var(--gold-2); transform: translateY(-2px); }
@media (max-width: 760px) {
  html[data-theme='neon'] .screen.win > .nx-so-head { flex-wrap: wrap; gap: 10px; padding: 14px 16px 6px; }
  html[data-theme='neon'] .nx-so-head .grow { flex-basis: 100%; }
  html[data-theme='neon'] .nx-so-head .nx-title { font-size: 32px; min-height: 32px; }
  html[data-theme='neon'] .nx-so-one .so-side { grid-template-columns: minmax(0, 1fr); }
  html[data-theme='neon'] .so-row { gap: 10px; padding: 9px 8px; }
}

/* a challenge pays nothing: the MVP alone in its panel, in the middle */
html[data-theme='neon'] .nx-res-top.solo { justify-content: center; }

/* Practice (every theme: ui/screens/practice.js) */
.practice-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.practice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.practice-ch { padding: 2px; background: none; border: 2px solid transparent; border-radius: 8px; cursor: pointer; }
.practice-ch.on { border-color: var(--gold, #b48d3e); }
.practice-panel { position: absolute; left: 12px; top: 64px; z-index: 6; width: 240px; padding: 8px 12px; }
/* (a wide screen: a strip under the board, over nothing) */
@media (min-width: 1100px) and (min-height: 700px) {
  .practice-panel { left: 50%; top: auto; bottom: 136px; width: min(1180px, calc(100% - 24px)); padding: 4px 12px; transform: translateX(-50%); }
  .practice-panel .practice-head { display: none; }
  .practice-panel .practice-body { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.2fr; align-items: center; gap: 12px; font-size: 13px; }
  .practice-panel .toggle { padding: 4px 8px; }
  .practice-panel.shut { width: auto; }
}
/* (Neon on a wide screen: a box at the right under the dummies' list, where it covers neither the actions nor the chronicle) */
@media (min-width: 1100px) and (min-height: 700px) {
  html[data-theme='neon'] .practice-panel { left: auto; right: 16px; top: auto; bottom: 84px; width: 300px; padding: 8px 12px; transform: none; }
  html[data-theme='neon'] .practice-panel .practice-body { grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 12px; }
  html[data-theme='neon'] .practice-panel .practice-body > :nth-child(5) { grid-column: 1 / -1; }
}
.practice-head { width: 100%; padding: 4px 0; background: none; border: 0; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.practice-panel.shut { width: auto; }
.practice-panel.shut .practice-body { display: none; }
.practice-body { display: flex; flex-direction: column; gap: 6px; }

/* ---- Interface fixes ---- */
/* Tab bars: the PgUp / PgDn hints only for someone on the keyboard or a controller */
html[data-theme='neon']:not(.nav-visible) .tabs > [data-hint] { display: none; }

/* The dropdowns: dark, with a gold arrow, in place of the browser's own */
html[data-theme='neon'] :is(.nx-select, .it-select) {
  appearance: none; -webkit-appearance: none; height: 40px; padding: 0 34px 0 14px; border-radius: 8px; border: 1px solid var(--line-2); box-shadow: none; cursor: pointer;
  color: var(--text); font: 400 15px var(--font-text); outline: 0; transition: border-color 0.2s, box-shadow 0.2s;
  background: rgba(0, 0, 0, 0.4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f5c862' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
}
html[data-theme='neon'] :is(.nx-select, .it-select):is(:hover, :focus) { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(209, 171, 91, 0.12); }
html[data-theme='neon'] :is(.nx-select, .it-select) option { background: #15121b; color: var(--text); }

/* The profile's pencil: inside its card's corner */
html[data-theme='neon'] .pf-pencil {
  top: 12px; right: 12px; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(6, 5, 9, 0.72); box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
html[data-theme='neon'] .pf-pencil:is(:hover, .on) { transform: none; background: rgba(6, 5, 9, 0.85); border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(209, 171, 91, 0.12); }

/* The quest screen: rounded panels and thin lines like the rest */
html[data-theme='neon'] .quest-card { border: 1px solid var(--line-1); border-radius: 12px; background: rgba(30, 25, 38, 0.72); box-shadow: none; }
html[data-theme='neon'] .qc-pic { border: 1px solid var(--line-2); border-radius: 10px; background: rgba(6, 5, 9, 0.6); box-shadow: none; }
html[data-theme='neon'] :is(.qchip, .week-left) { border: 1px solid var(--line-1); border-radius: 6px; background: rgba(6, 5, 9, 0.6); box-shadow: none; }
html[data-theme='neon'] .qchip.xp { border-color: rgba(79, 220, 198, 0.45); }
html[data-theme='neon'] .wk-day { border: 1px solid var(--line-1); border-radius: 8px; background: rgba(30, 25, 38, 0.72); box-shadow: none; }
html[data-theme='neon'] .wk-day.today { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(209, 171, 91, 0.12); }
html[data-theme='neon'] .wk-track { border: 0; border-radius: 99px; background: rgba(6, 5, 9, 0.7); }
html[data-theme='neon'] .wk-fill { border-radius: 99px; }
html[data-theme='neon'] .wk-chest { border: 1px solid var(--line-2); border-image: none; border-radius: 10px; background: rgba(30, 25, 38, 0.95); }

/* The Odds windows (every theme: ui/drops-box.js) */
.drops-box { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; padding-right: 6px; }
.drops-block { display: flex; flex-direction: column; gap: 2px; }
.drops-row { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
/* (22 Nov) a drop pointed at: its picture beside its name and what it does (ui/drops-box.js) */
.drops-row[data-tip] { cursor: help; }
.drops-row[data-tip]:hover { background: rgba(255, 255, 255, 0.05); }
.drops-tip { display: flex; align-items: center; gap: 12px; max-width: 320px; }
.drops-tip .dt-pic { flex: 0 0 auto; width: 84px; height: 84px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #2c2238, #120e18 75%); border: 1px solid rgba(226, 194, 124, 0.35); }
.drops-tip .dt-pic > * { max-width: 76px; max-height: 76px; width: auto !important; height: auto !important; image-rendering: pixelated; }
.drops-tip .dt-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.drops-btn { align-self: center; margin-top: 6px; }

/* Saved builds, the item comparison, your emote wheel (every theme) */
.builds-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.builds-one { display: inline-flex; align-items: center; gap: 2px; }
.item-diff { margin-top: 2px; }
.wheelpick-slots, .wheelpick-all { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.wheelpick-slots { padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.wheelpick-b { display: grid; place-items: center; width: 54px; height: 54px; padding: 0; background: rgba(0, 0, 0, 0.25); border: 2px solid rgba(255, 255, 255, 0.12); border-radius: 10px; cursor: pointer; }
.wheelpick-b.on { border-color: var(--gold, #b48d3e); }
.wheelpick-b.in { opacity: 0.55; }

/* A painted sheet played once across the battle (ui/screens/match.js sheetFlash) */
.fx-flash { position: absolute; inset: 0; pointer-events: none; background-repeat: no-repeat; }
/* (an Ultimate's frame, the v3 art's: its motif round the board, the middle clear; your word, 22 Nov) */
.fx-ult-front { position: absolute; inset: 0; pointer-events: none; background: 50% 50% / auto min(100%, 100vmin) no-repeat; image-rendering: pixelated; }
/* (what comes in from outside its square fades in at the square's edge, no hard cut in mid-screen) */
.fx-ult-front { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); mask-composite: intersect; }

/* ---------------------------------------------------------- opening a chest or an egg (ui/neon/chest-show.js) */
.panel.modal.cf-modal { position: fixed; inset: 0; width: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #07050b; box-shadow: none; animation: none; overflow: hidden; }
.cf-modal .modal-body { position: absolute; inset: 0; padding: 0; margin: 0; overflow: hidden; max-height: none; }
.cf-stage { position: absolute; inset: 0; overflow: hidden; user-select: none; -webkit-user-select: none; }
.cf-fx { image-rendering: pixelated; display: block; pointer-events: none; }
.cf-world { position: absolute; inset: 0; }
.cf-vault { position: absolute; inset: 0; background-position: center; background-size: cover; image-rendering: pixelated; animation: cf-fall-dark .6s ease-out both; }
.cf-vault::after { content: ''; position: absolute; inset: 0; background: rgba(7, 5, 11, 0); transition: background .4s; }
.cf-dealing .cf-vault::after { background: rgba(7, 5, 11, .62); }
@keyframes cf-fall-dark { from { filter: brightness(0); } to { filter: brightness(1); } }
.cf-centre, .cf-back-fx, .cf-front-fx, .cf-banners { position: absolute; inset: 0; pointer-events: none; }
.cf-centre { display: grid; place-items: center; }
.cf-centre > * { grid-area: 1 / 1; }
.cf-back-fx > *, .cf-front-fx > *, .cf-pop > * { /* centred, unless said otherwise */ position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.cf-rays { opacity: .85; }
.cf-dealing .cf-rays { opacity: .5; transition: opacity .5s; }
.cf-pillar { top: 44%; }
.cf-back-fx > .cf-shower, .cf-front-fx > .cf-shower { transform: none; }
.cf-back-fx > .cf-shower.cf-turned, .cf-front-fx > .cf-shower.cf-turned { transform: scaleX(-1); }
/* (what falls past a tile's edge is cut there in the art: it fades instead) */
.cf-shower { -webkit-mask-image: linear-gradient(to bottom, transparent 3%, #000 15%, #000 85%, transparent 97%); mask-image: linear-gradient(to bottom, transparent 3%, #000 15%, #000 85%, transparent 97%); }
/* a chest's frame: see playChestShow */
.cf-stage.in-box .cf-chest { place-items: start center; }
.cf-stage.in-box .cf-chest > * { -webkit-mask-image: linear-gradient(to bottom, #000 89%, transparent 92.5%); mask-image: linear-gradient(to bottom, #000 89%, transparent 92.5%); } /* (the burst's glow ends flat under the chest) */
.cf-stage:not(.in-box) .cf-chest > * { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 89%, transparent 92.5%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 89%, transparent 92.5%); }
/* what you got, readable over anything */
.cf-mascot > :is(.h2, .small) { margin: 0; padding: 4px 14px; background: rgba(8, 7, 12, 0.88); border: 1px solid var(--line-2); text-shadow: none; }
.cf-mascot > .h2 { margin-top: 6px; font: 700 22px/1.15 var(--nx-cap); letter-spacing: 0.02em; text-transform: none; }
.cf-mascot > .h2::before, .cf-mascot > .h2::after { display: none; }
.cf-mascot > .small { font: 600 13px/1.25 var(--nx-ui); }
.cf-mascot > .muted { display: none; } /* (the banner says it) */
/* Home's banner: the golden arrows, half there until you're on them */
html[data-theme='neon'] .nx-f-arrow { position: absolute; z-index: 6; top: 50%; translate: 0 -50%; width: 36px; height: 72px; display: grid; place-items: center; padding: 0; border: 0; background: none; opacity: 0.45; transition: opacity 0.15s, scale 0.15s; }
html[data-theme='neon'] .nx-f-arrow.prev { left: 0; }
html[data-theme='neon'] .nx-f-arrow.next { right: 0; }
html[data-theme='neon'] .nx-f-arrow :is(canvas, img) { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9)); image-rendering: pixelated; }
html[data-theme='neon'] .nx-f-arrow:is(:hover, :focus-visible) { opacity: 1; scale: 1.12; }
/* a slide's painted scene: its picture covers the banner, kept to the right; its group stands on it at the size it was drawn */
html[data-theme='neon'] .nx-showcase { transition: opacity 0.3s; }
html[data-theme='neon'] .nx-showcase.away { opacity: 0; pointer-events: none; }
html[data-theme='neon'] .nx-slide > .art.scene { container-type: size; filter: none; }
html[data-theme='neon'] .nx-slide.has-scene::before { background: linear-gradient(90deg, rgba(8, 7, 12, 0.92), rgba(8, 7, 12, 0.62) 32%, rgba(8, 7, 12, 0) 50%); }
html[data-theme='neon'] .nx-scene { position: absolute; right: 0; top: 50%; translate: 0 -50%; width: max(100cqw, calc(100cqh * 1672 / 941)); aspect-ratio: 1672 / 941; background-size: 100% 100%; }
html[data-theme='neon'] .nx-scene-group { position: absolute; left: 42.46%; top: 10.63%; width: 57.42%; height: 68.01%; pointer-events: none; }
html[data-theme='neon'] .nx-scene-group > * { display: block; }
html[data-theme='neon'] .nx-slide:not(.on) .nx-scene-group .art-sprite { animation-play-state: paused; }
html[data-theme='neon'] .nx-feature:has(.nx-slide.on.has-scene) :is(.nx-sparks, .nx-dust) { display: none; }
@media (max-width: 760px) {
  html[data-theme='neon'] .nx-slide.has-scene::before { background: linear-gradient(180deg, rgba(8, 7, 12, 0.94), rgba(8, 7, 12, 0.72) 42%, rgba(8, 7, 12, 0) 58%); }
  html[data-theme='neon'] .art.scene > .nx-scene-group { left: 0; right: 0; top: auto; bottom: 7%; width: 100%; height: auto; aspect-ratio: 512 / 300; }
  html[data-theme='neon'] .nx-f-arrow { top: auto; bottom: 0; translate: none; height: 44px; }
}
/* the Ranked page: what you play on the left, the ladder of a rank on the right */
html[data-theme='neon'] .nx-rk-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 10px; align-items: start; }
html[data-theme='neon'] .nx-rk-left { gap: 10px; min-width: 0; }
html[data-theme='neon'] .nx-rk-left > .panel { margin: 0; }
html[data-theme='neon'] .nx-rk-board { gap: 8px; margin: 0; min-width: 0; }
html[data-theme='neon'] .rk-board-list { display: flex; flex-direction: column; gap: 6px; max-height: 62vh; overflow-y: auto; }
html[data-theme='neon'] .rk-board-list .lb2-row { padding-block: 6px; flex-shrink: 0; }
html[data-theme='neon'] .rk-board-list .lb2-row .lb2-val b.num { font-size: 20px; }
html[data-theme='neon'] .rk-board-medal { display: inline-grid; place-items: center; }
html[data-theme='neon'] .rk-board-you:empty { display: none; }
@media (max-width: 760px) {
  html[data-theme='neon'] .nx-rk-page { grid-template-columns: minmax(0, 1fr); }
  /* the boards' choices share a line, the search has its own */
  html[data-theme='neon'] .lb2-tools { flex-wrap: wrap; }
  html[data-theme='neon'] .lb2-tools > .lb2-pick { flex: 1 1 0; min-width: 0; }
  html[data-theme='neon'] .lb2-tools .lb2-select { min-width: 0; width: 100%; }
  html[data-theme='neon'] .lb2-tools > .lb2-search { flex: 1 1 100%; width: 100%; }
}
/* a cup: what's to win, and who's in */
.cup-board .lb2-row { padding-block: 6px; }
.cup-board .lb2-row .lb2-val b.num { font-size: 24px; }
.cup-prizes { color: var(--gold); }
.cup-players { display: flex; flex-wrap: wrap; gap: 4px; }
.cup-player { padding: 2px 8px; font-size: 12px; border: 1px solid rgba(255, 246, 220, 0.25); background: rgba(0, 0, 0, 0.25); }
.cup-player.free { opacity: 0.4; }
/* a part of a Settings page: its title */
html[data-theme='neon'] .set-sec { margin: 12px 0 0; font: 700 13px/1.2 var(--nx-cap); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .set-sec:first-child { margin-top: 0; }
/* a chest or an egg in a list: in the middle of its box */
html[data-theme='neon'] .nx-mode .th > :is(.chest-pic, .egg-pic) { display: block; margin-inline: auto; }
/* a gold icon on a yellow button: dark, or it can't be seen */
html[data-theme='neon'] .btn.primary .nx-gold { filter: brightness(0.22); }
/* crafting, at the forge: everything over the anvil, in its dark arch (see playCraftShow) */
.cf-forge :is(.cf-centre, .cf-back-fx, .cf-front-fx) { top: -10%; bottom: 10%; }
.cf-core-in { animation: cf-core-in .4s steps(8) both; }
@keyframes cf-core-in { from { transform: scale(0.15); opacity: 0; } to { transform: none; opacity: 1; } }
.cf-front-fx > .cf-embers { opacity: .8; }
.cf-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cf-flash.on { animation: cf-flash .42s ease-out; }
@keyframes cf-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.cf-slam { animation: cf-slam .36s steps(6); }
@keyframes cf-slam { 0%, 100% { transform: none; } 20% { transform: translate(var(--slam), calc(var(--slam) * -1)); } 40% { transform: translate(calc(var(--slam) * -.8), calc(var(--slam) * .6)); } 60% { transform: translate(calc(var(--slam) * .5), calc(var(--slam) * .5)); } 80% { transform: translate(calc(var(--slam) * -.3), calc(var(--slam) * -.2)); } }
.cf-rattle { animation: cf-rattle 1.5s steps(30) forwards; }
@keyframes cf-rattle { 0% { transform: none; } 20% { transform: translate(-1px, 1px); } 30% { transform: translate(2px, -1px); } 45% { transform: translate(-3px, 1px); } 60% { transform: translate(3px, -2px); } 72% { transform: translate(-4px, 3px); } 84% { transform: translate(5px, -3px); } 92% { transform: translate(-6px, 4px); } 100% { transform: translate(6px, -4px); } }
/* the tap: the whole stage is the button, its hint under the chest */
.cf-tap { position: absolute; inset: 0; background: none; border: 0; padding: 0 0 max(84px, 13vh); display: flex; align-items: flex-end; justify-content: center; color: #fff3cf; }
.cf-tap:focus { outline: none; }
.cf-tap-hint { font-size: 20px; letter-spacing: .06em; padding: 8px 22px; background: rgba(15, 11, 21, .82); border: 1px solid rgba(209, 171, 91, .55); border-radius: 8px; text-shadow: 0 2px 0 #1a1220; animation: cf-breathe 1.1s steps(6) infinite alternate; }
@keyframes cf-breathe { from { opacity: .78; } to { opacity: 1; } }
/* the cards */
.cf-table { position: absolute; inset: 0 0 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 12px; pointer-events: auto; }
.cf-table:empty { pointer-events: none; }
.cf-grid { display: grid; gap: 14px; justify-content: center; }
.cf-card { position: relative; z-index: 0; perspective: 900px; transition: filter .3s, transform .3s; }
.cf-card.cf-out { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--tilt)) scale(.25); }
.cf-card.cf-in { opacity: 1; transition: transform .42s cubic-bezier(.2, .9, .3, 1.15), opacity .12s; }
.cf-flip { position: relative; width: 100%; aspect-ratio: 384 / 512; transform-style: preserve-3d; transition: transform var(--flip, 380ms) cubic-bezier(.45, .05, .4, 1); }
.cf-up .cf-flip { transform: rotateY(180deg); }
.cf-now .cf-flip { transition: none; }
.cf-face, .cf-cardback { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cf-face { transform: rotateY(180deg); overflow: hidden; }
.cf-face > .cc-card { width: 100% !important; }
.cf-cardback { image-rendering: pixelated; }
.cf-sheen { position: absolute; inset: 0; }
.cf-aura { position: absolute; z-index: -1; left: 50%; top: calc(50% - 22px); transform: translate(-50%, -50%); pointer-events: none; }
.cf-rim { position: absolute; left: 0; top: 0; right: 0; pointer-events: none; }
.cf-pop { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 384 / 512; pointer-events: none; }
.cf-cap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 40px; padding-top: 5px; text-align: center; line-height: 1.15; visibility: hidden; text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
.cf-cap .rarity-normal { color: #d8d4ea; }
.cf-cap > span { padding: 0 6px; background: rgba(10, 7, 15, .74); border-radius: 4px; }
.cf-shown .cf-cap { visibility: visible; animation: pop-in .25s; }
.cf-new { position: absolute; left: 50%; top: -6px; width: 78%; transform: translateX(-50%); display: grid; place-items: center; pointer-events: none; animation: pop-in .25s; }
.cf-new > * { grid-area: 1 / 1; }
.cf-new img { width: 100%; image-rendering: pixelated; }
.cf-new b { color: #fff3cf; font-size: 12px; text-shadow: 0 1px 0 #1a1220; }
/* a legendary's moment: the others fall back, it trembles, then turns slowly */
.cf-focus .cf-card:not(.cf-star):not(.cf-shown) { filter: brightness(.45); }
.cf-star { z-index: 3; transform: scale(1.1); }
.cf-tremble .cf-flip { animation: cf-tremble .12s steps(2) infinite; }
@keyframes cf-tremble { from { translate: -2px 1px; } to { translate: 2px -1px; } }
.cf-banners { display: flex; flex-direction: column; align-items: center; padding-top: 3vh; z-index: 4; }
.cf-banner { position: relative; display: grid; place-items: center; animation: cf-banner .3s steps(5) both; }
.cf-banner > * { grid-area: 1 / 1; }
.cf-banner img { width: 100%; image-rendering: pixelated; }
.cf-banner b { color: #fff3cf; font-size: clamp(16px, 2.6vw, 26px); text-shadow: 0 2px 0 #1a1220; padding-bottom: 4%; }
@keyframes cf-banner { from { transform: scale(1.6); opacity: 0; } to { transform: none; opacity: 1; } }
.cf-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; animation: pop-in .25s; }
.cf-items.cf-wait { visibility: hidden; animation: none; }
.cf-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: rgba(21, 18, 27, .86); border: 1px solid rgba(209, 171, 91, .3); border-radius: 8px; }
.cf-mascot { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; animation: pop-in .35s; text-shadow: 0 2px 0 #000; }
.cf-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 76px; padding-bottom: var(--safe-b, 0); display: flex; align-items: center; justify-content: center; z-index: 5; pointer-events: none; }
.cf-foot > * { pointer-events: auto; }
.cf-skip { position: absolute; right: max(14px, var(--safe-r, 0px)); opacity: .8; }
.cf-go { min-width: 200px; animation: pop-in .25s; }

/* the rewards everywhere else (ui/neon/reward-fx.js) */
.rfx-layer { position: fixed; inset: 0; z-index: 95; pointer-events: none; overflow: hidden; }
.rfx-pop, .rfx-piece { position: absolute; image-rendering: pixelated; }
.rfx-pop { transform: translate(-50%, -50%); }

/* Daily's two tabs well apart, a line between them (your call, 7 Nov: the Challenge and the Puzzle ran together) */
html[data-theme='neon'] .daily-tabs { display: flex; align-items: stretch; gap: 0; }
html[data-theme='neon'] .daily-tabs > .btn { padding-left: 22px; padding-right: 22px; }
html[data-theme='neon'] .daily-tabs > .btn + .btn { margin-left: 18px; border-left: 1px solid var(--line-2); }

/* the event calendar (ui/neon/calendar.js, your call 7 Nov): an event's little picture, the month's pop-up */
html[data-theme='neon'] .nx-ev-pic { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #1a1520 center / cover no-repeat; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); }
/* (a new Raid boss: its whole figure, its pixels sharp) */
html[data-theme] .nx-ev-pic.ev-raid, html[data-theme].ar-on .ar .ar-cal .nx-ev-pic.ev-raid { background-size: contain; background-repeat: no-repeat; background-color: #1a1220; image-rendering: pixelated; }
html[data-theme='neon'] .nx-ev-pic.big { width: 46px; height: 46px; border-radius: 4px; box-shadow: 0 0 0 1px var(--line-2); }
html[data-theme='neon'] .nx-ev-pic :is(img, canvas) { width: 70%; height: 70%; }
html[data-theme='neon'] .nx-ev-pic.ev-dragon { box-shadow: 0 0 0 1px #ff7a4a; }
html[data-theme='neon'] .nx-ev-pic.ev-hazard { box-shadow: 0 0 0 1px #ff9a3a; }
html[data-theme='neon'] .nx-ev-pic.ev-cups { box-shadow: 0 0 0 1px var(--gold); }
html[data-theme='neon'] .nx-ev-pic.big:is(.ev-dragon, .ev-hazard, .ev-cups) { box-shadow: 0 0 0 1px var(--line-2); }
html[data-theme='neon'] .nx-cal-modal { width: min(640px, calc(100vw - 24px)); }
html[data-theme='neon'] .nx-cal { display: flex; flex-direction: column; gap: 12px; }
html[data-theme='neon'] .nx-cal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
html[data-theme='neon'] .nx-cal-top b { font: 700 20px/1 var(--nx-cap); color: #f3ebde; text-transform: capitalize; }
html[data-theme='neon'] .nx-cal-nav { width: 34px; height: 34px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--gold); font: 700 20px/1 var(--nx-ui); cursor: pointer; }
html[data-theme='neon'] .nx-cal-nav:disabled { opacity: 0.3; cursor: default; }
html[data-theme='neon'] .nx-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
html[data-theme='neon'] .nx-cal-wd { padding: 2px 0 4px; text-align: center; font: 700 11px/1 var(--nx-cap); letter-spacing: 0.1em; text-transform: uppercase; color: #a99f8f; }
html[data-theme='neon'] .nx-cal-day { position: relative; min-height: 54px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 4px; padding: 5px 6px; border: 1px solid var(--line-1); background: rgba(255, 255, 255, 0.02); color: #d9d2c6; text-align: left; cursor: pointer; }
html[data-theme='neon'] .nx-cal-day.blank { border-color: transparent; background: none; cursor: default; }
html[data-theme='neon'] .nx-cal-day .n { font: 700 13px/1 var(--nx-ui); }
html[data-theme='neon'] .nx-cal-day .evs { display: flex; flex-wrap: wrap; gap: 3px; }
html[data-theme='neon'] .nx-cal-day .evs .nx-ev-pic { width: 22px; height: 22px; }
html[data-theme='neon'] .nx-cal-day.has { background: linear-gradient(180deg, rgba(209, 171, 91, 0.07), rgba(209, 171, 91, 0.01)); }
html[data-theme='neon'] .nx-cal-day.past { opacity: 0.45; }
html[data-theme='neon'] .nx-cal-day.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold), 0 0 12px rgba(209, 171, 91, 0.3); }
html[data-theme='neon'] .nx-cal-day.today .n { color: var(--gold); }
html[data-theme='neon'] .nx-cal-day.sel { background: rgba(209, 171, 91, 0.16); }
html[data-theme='neon'] .nx-cal-day:not(.blank):hover { border-color: var(--line-3); }
html[data-theme='neon'] .nx-cal .k { margin-bottom: 6px; font: 700 12px/1 var(--nx-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .nx-cal-detail { padding: 10px 12px; border: 1px solid var(--line-1); background: rgba(0, 0, 0, 0.25); }
html[data-theme='neon'] .nx-cal-detail p { margin: 0; }
html[data-theme='neon'] .nx-cal-ev { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
html[data-theme='neon'] .nx-cal-ev .in { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html[data-theme='neon'] .nx-cal-ev b { font: 700 15px/1.15 var(--nx-cap); color: #f3ebde; }
html[data-theme='neon'] .nx-cal-ev small { font-size: 12.5px; color: #b9b0a2; }
html[data-theme='neon'] .nx-cal-coming .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line-1); }
html[data-theme='neon'] .nx-cal-coming .when { font-size: 12.5px; color: #d9d2c6; text-transform: capitalize; }
html[data-theme='neon'] .nx-cal-coming .what { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
html[data-theme='neon'] .nx-cal-coming .chip { display: inline-flex; align-items: center; gap: 5px; font: 600 12px/1 var(--nx-ui); color: #e8dfd0; }
@media (max-width: 760px) {
  html[data-theme='neon'] .nx-cal-day { min-height: 44px; padding: 3px 4px; }
  html[data-theme='neon'] .nx-cal-day .evs .nx-ev-pic { width: 12px; height: 12px; }
}


/* the League (ui/screens/league.js, your call 7 Nov): the season's board on the left, you, FIND A MATCH and the rewards on
   the right; the search's pop-up */
html[data-theme='neon'] .lg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); gap: 16px; height: 100%; min-height: 0; }
/* (a fight's chronicle names its lines .lg too: not the League's page. Its height: 100% made a log's first lines as tall
   as the whole chronicle on a big window, 14 Nov) */
/* (the Chronicle's lines share the class .lg with the League's page, whose .lg may shrink: once the list was full each
   line was squashed to 2 px and they lay over each other, your report 16 Nov. A line keeps its own height; the list scrolls) */
html[data-theme='neon'] .chronicle .log .lg { height: auto; min-height: auto; }
.chronicle .log > * { flex: none; }
html[data-theme='neon'] .lg-board { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 4px; scrollbar-width: thin; }
html[data-theme='neon'] .lg-row { flex: none; display: grid; grid-template-columns: 50px 40px 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 4px 12px 4px 8px; border: 1px solid var(--line-1); background: rgba(255, 255, 255, 0.02); }
html[data-theme='neon'] .lg-row:nth-child(-n + 3) .pos { color: var(--gold); }
html[data-theme='neon'] .lg-row .pos { font: 700 15px/1 var(--nx-cap); color: #a99f8f; text-align: right; }
html[data-theme='neon'] .lg-row .mv { font: 700 11px/1 var(--nx-ui); color: #7d7468; text-align: center; }
html[data-theme='neon'] .lg-row .mv.up { color: #6fe08a; }
html[data-theme='neon'] .lg-row .mv.down { color: #ff7a6a; }
html[data-theme='neon'] .lg-row .face { display: grid; place-items: center; width: 38px; height: 38px; }
html[data-theme='neon'] .lg-row .nm { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html[data-theme='neon'] .lg-row .nm b { font: 700 14px/1.15 var(--nx-ui); color: #e8dfd0; }
html[data-theme='neon'] .lg-row .nm small { font-size: 11px; color: var(--muted); }
html[data-theme='neon'] .lg-row .rt { font: 700 15px/1 var(--font-num, var(--nx-ui)); color: #e8dfd0; }
html[data-theme='neon'] .lg-row.you { border-color: var(--gold); background: linear-gradient(90deg, rgba(209, 171, 91, 0.24), rgba(209, 171, 91, 0.05)); }
html[data-theme='neon'] .lg-row.you :is(.pos, .rt) { color: var(--gold); }
html[data-theme='neon'] .lg-gap { flex: none; text-align: center; color: #7d7468; letter-spacing: 0.3em; }
html[data-theme='neon'] .lg-side { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
html[data-theme='neon'] .lg-side .panel { margin: 0; padding: 14px 16px; }
html[data-theme='neon'] .lg-side .k { font: 700 12px/1 var(--nx-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .lg-you .big { margin: 10px 0 6px; font: 700 40px/1 var(--nx-cap); color: #f3ebde; }
html[data-theme='neon'] .lg-you .line { font-size: 14px; color: #d9d2c6; }
html[data-theme='neon'] .lg-you small { display: block; margin-top: 4px; font-size: 12.5px; color: #b9b0a2; }
html[data-theme='neon'] .lg-side > .btn.big { width: 100%; }
html[data-theme='neon'] .lg-pays .row { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: #d9d2c6; }
html[data-theme='neon'] .lg-pays .row > span:first-child { flex: 1; }
html[data-theme='neon'] .lg-pays .row.got { opacity: 0.55; }
html[data-theme='neon'] .lg-pays .ok { color: #6fe08a; font-weight: 700; }
html[data-theme='neon'] .lg-modal { width: min(420px, calc(100vw - 24px)); }
html[data-theme='neon'] .lg-search { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0 4px; text-align: center; }
html[data-theme='neon'] .lg-search p { margin: 0; color: #d9d2c6; }
html[data-theme='neon'] .lg-search .k { font: 700 13px/1 var(--nx-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .lg-spin { width: 44px; height: 44px; border: 3px solid rgba(209, 171, 91, 0.2); border-top-color: var(--gold); border-radius: 50%; animation: lg-spin 0.9s linear infinite; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
html[data-theme='neon'].reduce-motion .lg-spin { animation-duration: 3s; }
html[data-theme='neon'] .lg-foe { display: flex; align-items: center; gap: 12px; }
html[data-theme='neon'] .lg-foe .in { display: flex; flex-direction: column; gap: 4px; text-align: left; }
html[data-theme='neon'] .lg-foe b { font: 700 20px/1.1 var(--nx-ui); color: #f3ebde; }
html[data-theme='neon'] .lg-foe small { font-size: 12.5px; color: #b9b0a2; }
html[data-theme='neon'] .set-league-note { margin: 10px 0 0; line-height: 1.4; }
@media (max-width: 760px) {
  html[data-theme='neon'] .lg { grid-template-columns: 1fr; height: auto; }
  html[data-theme='neon'] .lg-side { order: -1; overflow: visible; }
  html[data-theme='neon'] .lg-board { overflow: visible; }
  html[data-theme='neon'] .lg-row { grid-template-columns: 40px 34px 38px minmax(0, 1fr) auto; gap: 8px; }
}
/* (the League's moves stand out: green up, red down, each in a little pill; the first's crown and days in first) */
html[data-theme='neon'] .lg-row .mv { justify-self: center; min-width: 32px; padding: 3px 4px; border-radius: 3px; font: 800 12px/1 var(--nx-ui); }
html[data-theme='neon'] .lg-row .mv.up { color: #7dff9a; background: rgba(111, 224, 138, 0.14); }
html[data-theme='neon'] .lg-row .mv.down { color: #ff7f72; background: rgba(255, 110, 96, 0.14); }
html[data-theme='neon'] .lg-row .nm .lead { margin-left: 8px; color: var(--gold); font-weight: 700; }
html[data-theme='neon'] .lg-row:first-child { border-color: rgba(209, 171, 91, 0.55); background: linear-gradient(90deg, rgba(209, 171, 91, 0.12), rgba(209, 171, 91, 0.02)); }
/* (a League row is a button: their card on a press; their three favourites before the rating) */
html[data-theme='neon'] button.lg-row { width: 100%; grid-template-columns: 50px 40px 38px minmax(0, 1fr) auto auto; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
html[data-theme='neon'] button.lg-row:hover, html[data-theme='neon'] button.lg-row:focus-visible { border-color: var(--line-3); background: rgba(255, 255, 255, 0.05); }
html[data-theme='neon'] .lg-row .mains { display: flex; gap: 2px; opacity: 0.9; }
html[data-theme='neon'] .lg-row .mains :is(canvas, img) { width: 22px !important; height: 22px !important; image-rendering: pixelated; }
html[data-theme='neon'] .lg-card { display: flex; flex-direction: column; gap: 12px; }
html[data-theme='neon'] .lg-card .playercard, html[data-theme='neon'] .lg-search .playercard { width: 100%; }
html[data-theme='neon'] .lg-card-in { display: flex; flex-direction: column; gap: 6px; }
html[data-theme='neon'] .lg-card-in .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #b9b0a2; }
html[data-theme='neon'] .lg-card-in .row b { color: #e8dfd0; }
html[data-theme='neon'] .lg-card-in .k { margin-top: 6px; font: 700 12px/1 var(--nx-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
html[data-theme='neon'] .lg-mains { display: flex; justify-content: center; gap: 10px; }
html[data-theme='neon'] .lg-mains .ch { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: #d9d2c6; }
html[data-theme='neon'] .lg-mains :is(canvas, img) { image-rendering: pixelated; }
html[data-theme='neon'] .lg-foe-line { color: #b9b0a2; }
@media (max-width: 760px) {
  html[data-theme='neon'] button.lg-row { grid-template-columns: 40px 34px 38px minmax(0, 1fr) auto; }
  html[data-theme='neon'] .lg-row .mains { display: none; }
}
/* (a League player's season on their banner, your call 7 Nov: wins green, losses red, the share won gold) */
html[data-theme='neon'] .playercard .pc-wl { display: inline-block; margin-top: 4px; padding: 3px 7px; border-radius: 3px; background: rgba(8, 6, 12, 0.78); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); font: 800 13px/1.15 var(--nx-ui); color: #e8dfd0; }
html[data-theme='neon'] .playercard .pc-wl .w { color: #7dff9a; }
html[data-theme='neon'] .playercard .pc-wl .l { color: #ff8a7a; }
html[data-theme='neon'] .playercard .pc-wl .pct { color: var(--gold); }
/* (a phone's card is short: the season on it smaller, so the name above it isn't cut) */
@media (max-width: 760px) {
  html[data-theme='neon'] .playercard .pc-wl { margin-top: 2px; padding: 1px 5px; font-size: 11px; }
  html[data-theme='neon'] .lg-card .playercard .pc-sub, html[data-theme='neon'] .lg-search .playercard .pc-sub { font-size: 12px; }
}

/* The League's season prizes (an item each): the rewards panel's rows and the pop-up when a season has ended */
html[data-theme='neon'] .lg-pays .lg-pk { margin-top: 12px; }
html[data-theme='neon'] .lg-pays .lg-prize > b { font-size: 12px; }
html[data-theme='neon'] .lg-pays .lg-prize .if-slot, html[data-theme='neon'] .lg-pays .lg-prize .icon-img { flex: none; }
html[data-theme='neon'] .lg-prize-box { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
html[data-theme='neon'] .lg-prize-box > b { font-size: 18px; }

/* The Inventory's items you don't have yet (your call, 7 Nov: every item shown, the missing ones greyed, where they drop in their page) */
.it-tile.missing .it-pic, .it-missing-pic { filter: grayscale(1) brightness(0.6); }
.it-missing-pic { display: inline-flex; }
.it-tile.missing .it-name { opacity: 0.6; }
.it-tile.missing .it-lock { position: absolute; right: 4px; top: 4px; opacity: 0.75; line-height: 0; }
.it-tile.missing { position: relative; }
.inv-detail .it-how .boost-src { margin: 0; }

/* A browser's sections (the Looks: Emotes, Hats, Frames, Arena skins), each under a line with its name between two bands of
   diagonal strokes, your call 8 Nov */
.ib-groups { display: flex; flex-direction: column; gap: 6px; }
.ib-sep { flex: none; display: flex; align-items: center; gap: 10px; margin: 12px 2px 2px; color: var(--gold, #d1ab5b); font: 700 11px/1 var(--nx-cap, inherit); letter-spacing: 0.22em; text-transform: uppercase; }
.ib-groups > .ib-sep:first-child { margin-top: 4px; }
.ib-sep::before, .ib-sep::after { content: ''; flex: 1; height: 8px; background: repeating-linear-gradient(-55deg, rgba(209, 171, 91, 0.6) 0 1.5px, transparent 1.5px 6px); }
.ib-sep::before { -webkit-mask-image: linear-gradient(90deg, transparent, #000 75%); mask-image: linear-gradient(90deg, transparent, #000 75%); }
.ib-sep::after { -webkit-mask-image: linear-gradient(90deg, #000 25%, transparent); mask-image: linear-gradient(90deg, #000 25%, transparent); }

/* The end of a fight (14 Nov: it should feel like one): the screen dims, light turns behind a big title that lands with sparks */
html[data-theme='neon'] .nx-finale { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden; z-index: 9; }
html[data-theme='neon'] .nx-finale .fn-dim { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, rgba(10, 6, 14, 0.25), rgba(6, 4, 9, 0.82) 70%); animation: fn-fade 0.5s ease-out both; }
html[data-theme='neon'] .nx-finale .fn-rays { position: absolute; left: 50%; top: 42%; width: 190vmax; height: 190vmax; margin: -95vmax 0 0 -95vmax;
  background: repeating-conic-gradient(from 0deg, rgba(209, 171, 91, 0.16) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.45) 12%, transparent 32%); mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.45) 12%, transparent 32%);
  animation: fn-fade 0.6s ease-out both, fn-spin 14s linear infinite; }
html[data-theme='neon'] .nx-finale .fn-title { position: relative; top: -8%; font: 700 clamp(46px, 11vw, 132px)/1 var(--font-title); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(180deg, #fff6d2 0%, #d1ab5b 38%, #e2972a 62%, #8a4c12 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 5px 0 #3a1d06) drop-shadow(0 0 28px rgba(209, 171, 91, 0.55)); animation: fn-land 0.7s cubic-bezier(0.2, 1.5, 0.4, 1) 0.1s both; }
html[data-theme='neon'] .nx-finale.loss .fn-rays { background: repeating-conic-gradient(from 0deg, rgba(200, 40, 50, 0.16) 0deg 7deg, transparent 7deg 18deg); animation: fn-fade 0.6s ease-out both; }
html[data-theme='neon'] .nx-finale.loss .fn-title { background: linear-gradient(180deg, #ffd9d9 0%, #ff6b6b 40%, #b3202c 70%, #4a0a10 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 5px 0 #24060a) drop-shadow(0 0 24px rgba(220, 40, 60, 0.5)); animation: fn-drop 0.8s cubic-bezier(0.3, 1.2, 0.5, 1) 0.1s both; }
html[data-theme='neon'] .nx-finale.draw .fn-title { background: linear-gradient(180deg, #ffffff, #c9c2d6 55%, #6e6680); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 5px 0 #1b1622); }
html[data-theme='neon'] .nx-finale .fn-spark { position: absolute; left: 50%; top: 42%; width: calc(10px * var(--s)); height: calc(10px * var(--s)); margin: -5px 0 0 -5px; border-radius: 2px; transform: rotate(45deg);
  background: #ffe59a; box-shadow: 0 0 10px #d1ab5b, 0 0 2px #fff; opacity: 0; animation: fn-spark 1.1s cubic-bezier(0.1, 0.7, 0.3, 1) calc(0.25s + var(--d)) both; }
/* a loss: the board loses its colour behind the title */
html[data-theme='neon'] body.fn-lost #scene, html[data-theme='neon'] body.fn-lost .roster { filter: grayscale(0.85) brightness(0.75); transition: filter 0.9s ease-out; }
html[data-theme='neon'] .nx-finale.still :is(.fn-dim, .fn-rays, .fn-title) { animation: fn-fade 0.3s ease-out both; }
@keyframes fn-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fn-spin { to { transform: rotate(360deg); } }
@keyframes fn-land { 0% { opacity: 0; transform: scale(2.6); letter-spacing: 0.4em; } 60% { opacity: 1; transform: scale(0.94); } 100% { opacity: 1; transform: scale(1); letter-spacing: 0.06em; } }
@keyframes fn-drop { 0% { opacity: 0; transform: translateY(-60px); } 70% { opacity: 1; transform: translateY(6px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fn-spark { 0% { opacity: 1; transform: translate(0, 0) rotate(45deg) scale(1.4); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(225deg) scale(0.3); } }
/* (a reward's number lands with a little pop once it has counted up) */
html[data-theme='neon'] .nx-rew b.popped { animation: nx-rew-pop 0.35s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes nx-rew-pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); color: #fff3c4; text-shadow: 0 0 14px rgba(209, 171, 91, 0.8); } 100% { transform: scale(1); } }

/* The daily gift's streak: every day of coming back and what it pays, the taken ones checked, today's lit */
html[data-theme='neon'] .nx-gift-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: min(460px, 78vw); margin-top: 10px; }
html[data-theme='neon'] .nx-gift-days .gd { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 5px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); }
html[data-theme='neon'] .nx-gift .nx-gift-days .gd small { font: 700 10px/1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
html[data-theme='neon'] .nx-gift .nx-gift-days .gd b { font: 400 18px/1 var(--font-num); color: #f1e6cc; }
html[data-theme='neon'] .nx-gift-days .gd.done { opacity: 0.5; }
html[data-theme='neon'] .nx-gift-days .gd.today { border-color: var(--gold); background: linear-gradient(0deg, rgba(209, 171, 91, 0.22), rgba(209, 171, 91, 0.05)); box-shadow: 0 0 0 1px var(--gold), 0 0 16px -4px var(--gold); animation: gd-glow 1.6s ease-in-out infinite; }
html[data-theme='neon'] .nx-gift .nx-gift-days .gd.today b, html[data-theme='neon'] .nx-gift .nx-gift-days .gd.today small { color: var(--gold); }
html[data-theme='neon'] .nx-gift-days .gd.big { background: linear-gradient(0deg, rgba(185, 138, 255, 0.18), rgba(0, 0, 0, 0.35)); border-color: rgba(185, 138, 255, 0.55); }
html[data-theme='neon'] .nx-gift-days .gd-check { position: absolute; right: 3px; top: 2px; font: 700 12px/1 var(--nx-ui); color: #6fe08a; }
html[data-theme='neon'] .nx-gift .nx-gift-note { max-width: 420px; margin: 6px 0 0; text-align: center; font-size: 12px; }
@keyframes gd-glow { 50% { box-shadow: 0 0 0 1px var(--gold), 0 0 24px -2px var(--gold); } }
@media (prefers-reduced-motion: reduce) { html[data-theme='neon'] .nx-gift-days .gd.today { animation: none; } }

/* The Inventory, 14 Nov: the item filters' three choices on one row; "Equip on" as a row for each champion who can wear it
   (what it wears now, what would change, one button); a champion's sub-pages in one row on a phone */
html[data-theme='neon'] .it-filters .it-picks { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
html[data-theme='neon'] .it-filters .it-picks .it-pick { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; margin: 0; }
html[data-theme='neon'] .it-filters .it-picks .it-select { width: 100%; min-width: 0; }
html[data-theme='neon'] .it-equip-rows { display: flex; flex-direction: column; gap: 6px; }
html[data-theme='neon'] .it-equip-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line-1); background: rgba(0, 0, 0, 0.3); }
html[data-theme='neon'] .it-equip-row.on { border-color: rgba(209, 171, 91, 0.6); background: linear-gradient(90deg, rgba(209, 171, 91, 0.12), rgba(0, 0, 0, 0.3)); }
html[data-theme='neon'] .it-equip-row canvas, html[data-theme='neon'] .it-equip-row img { flex: none; }
html[data-theme='neon'] .it-equip-row .it-wears, html[data-theme='neon'] .it-equip-row .it-diff { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme='neon'] .it-equip-row .it-diff .good { color: #6fe08a; }
html[data-theme='neon'] .it-equip-row .it-diff .bad { color: #ff7a7a; }
html[data-theme='neon'] .it-equip-row .btn { flex: none; min-width: 84px; }
html[data-theme='neon'] .builds-bar .nx-build-save { padding-inline: 8px; }
@media (max-width: 760px) {
  html[data-theme='neon'] .nx-client .inv-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  html[data-theme='neon'] .nx-client .inv-tabs::-webkit-scrollbar { display: none; }
  html[data-theme='neon'] .nx-client .inv-tabs > .btn { flex: none; padding-inline: 10px; font-size: 12px; letter-spacing: 0.08em; }
}

/* A champion carried in a fight (drag and drop, 14 Nov): its picture under the finger, gold when it can land there */
.hero-drag-ghost { position: fixed; z-index: 30; width: 64px; height: 64px; pointer-events: none; opacity: 0.9; border-radius: 8px; transform: scale(1.08); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6)); transition: box-shadow 0.12s; }
.hero-drag-ghost.ok { box-shadow: 0 0 0 2px #d1ab5b, 0 0 18px #d1ab5b; }

/* The Shop, 14 Nov: each chest's and egg's price on its row */
html[data-theme='neon'] .nx-shop-list .nx-mode .nx-row-price { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-left: 8px; }
html[data-theme='neon'] .nx-shop-list .nx-mode .nx-row-price > span { display: inline-flex; align-items: center; gap: 4px; }
html[data-theme='neon'] .nx-shop-list .nx-mode .nx-row-price b { font: 400 18px/1 var(--font-num); color: var(--gold); }

/* The Raid's chests, 14 Nov: their items as pictures */
.raid-drops { display: flex; flex-wrap: wrap; gap: 4px; }
.raid-drop { display: inline-flex; line-height: 0; }

/* Patrol on a phone, 14 Nov: the three routes side by side and small (each was a screen-wide picture, the squad far below) */
@media (max-width: 600px) {
  html[data-theme='neon'] .pt-routes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  html[data-theme='neon'] .pt-route-art { aspect-ratio: 4 / 3 !important; object-fit: cover; }
  html[data-theme='neon'] .pt-route-info { padding: 3px 5px 4px; column-gap: 4px; font-size: 11px; }
  html[data-theme='neon'] .pt-route-info b { font-size: 12px; }
}

/* The end of a fight: its crest behind the word (14 Nov, your art: laurel and crossed swords, a cracked shield) */
html[data-theme='neon'] .nx-finale .fn-crest { position: absolute; left: 50%; top: 42%; width: min(640px, 96vw) !important; height: auto !important; aspect-ratio: 16 / 9 !important; transform: translate(-50%, -52%); image-rendering: pixelated; opacity: 0.92; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); }
/* ---- Ranked (src/ui/screens/ranked.js): its windows (what Ranked is, the opponent found), in every look, and its page
   where Arena is not on (the League's own layout, .lg) ---- */
.rk-intro { width: min(520px, calc(100vw - 24px)); }
.rk-intro-body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rk-intro-body li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.4; text-align: left; }
.rk-intro-body li .ic { display: grid; place-items: center; padding-top: 2px; }
.rk-intro .modal-foot { flex-wrap: wrap; }
.rk-foe { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; text-align: left; }
.rk-foe .face { flex: none; display: grid; place-items: center; }
.rk-foe .in { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rk-foe .in b { font-size: 20px; line-height: 1.15; }
.rk-foe-rank { display: flex; align-items: center; gap: 4px; }
.rk-foe-by { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold, #d1ab5b); }
.rk-find-modal .lg-foe-line { max-width: 34ch; }
.lg.rk .rk-team, .lg.rk .rk-def { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 12px; }
.lg.rk .rk-team-pick, .lg.rk .rk-team-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lg.rk .rk-team-btn { min-height: 36px; padding: 4px 8px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04); color: inherit; font: inherit; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg.rk .rk-team-btn.on { border-color: var(--gold, #d1ab5b); color: var(--gold, #d1ab5b); }
.lg.rk .rk-team-six { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.lg.rk .rk-team-six .ch { position: relative; display: grid; place-items: center; }
.lg.rk .rk-team-six .ch i { position: absolute; right: 2px; bottom: 0; font-size: 11px; font-style: normal; }
.lg.rk .rk-strength, .lg.rk .rk-def-row { display: flex; justify-content: space-between; gap: 8px; }
.lg.rk .rk-def-sum { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 700; }
.lg.rk .note { margin: 0; font-size: 12.5px; opacity: 0.8; }
.lg.rk .rk-off { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; text-align: center; }
.lg.rk .lg-pays .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: space-between; }
.lg.rk .lg-pays .row > span:first-child { flex: 1; min-width: 0; }
.lg.rk .lg-you small { display: block; }
.lg.rk .rk-ladder { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.lg.rk .rk-ladder-head { display: flex; flex-direction: column; gap: 6px; }
.lg.rk .rk-ranks, .rk-ranks { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.lg.rk .rk-rank-btn { min-width: 0; height: 36px; padding: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.18); cursor: pointer; }
.lg.rk .rk-rank-btn.on { border-color: var(--gold, #d1ab5b); }
.rk-foe-rank .rank-badge { margin-right: 4px; }


/* (the faction marks drawn in code, on Neon: the v3 art's simple pixel sigils instead of a shape in the faction's colour;
   your call, 21 Nov) */
html[data-theme='neon'] :is(.ct-fac, .nx-fac):is(.order, .wild, .arcane, .shadow) { -webkit-mask: none; mask: none; border: 0; border-radius: 0;
  background: transparent center / contain no-repeat; image-rendering: pixelated; }
html[data-theme='neon'] :is(.ct-fac, .nx-fac).order { background-image: url(../assets/art/ui-v3/fight/marks/synergy-order.webp); }
html[data-theme='neon'] :is(.ct-fac, .nx-fac).wild { background-image: url(../assets/art/ui-v3/fight/marks/synergy-wild.webp); }
html[data-theme='neon'] :is(.ct-fac, .nx-fac).arcane { background-image: url(../assets/art/ui-v3/fight/marks/synergy-arcane.webp); }
html[data-theme='neon'] :is(.ct-fac, .nx-fac).shadow { background-image: url(../assets/art/ui-v3/fight/marks/synergy-shadow.webp); }
html[data-theme='neon'] .champ-tile .ct-fac { width: 22px; height: 22px; }
html[data-theme='neon'] .rh-facs .ct-fac { width: 16px; height: 16px; }

/* (the emote wheel: each emote on the v3 art's ring, your word 22 Nov) */
html[data-theme='neon'] .emote-orb { width: 56px; height: 56px; margin: -80px 0 0 -80px; background: url(../assets/art/ui-v3/rewards/placeholder-emote.webp) 50% 50% / 100% 100% no-repeat; image-rendering: pixelated; }
html[data-theme='neon'] .emote-orb:hover, html[data-theme='neon'] .emote-orb:focus-visible { background: url(../assets/art/ui-v3/rewards/placeholder-emote.webp) 50% 50% / 100% 100% no-repeat, radial-gradient(circle, rgba(245, 197, 66, 0.5), rgba(245, 197, 66, 0) 70%); }
html[data-theme='neon'] .emote-orb > :is(img, .art-pic, .emote-glyph) { transform: scale(0.82); }

/* styles/neon-journey.css */
/* ================================================================== Neon's other Home: the Journey (ui/neon/journey.js)
   The place your story has reached fills the screen; your party stands in it; your journey and where to go on the left,
   three small cards on the right. Panels are dark glass with a thin gold edge, the one yellow button goes on with the
   story. The hub (ui/neon/home.js, styles/neon-ui.css) is untouched. */
html[data-theme='neon'] .nx-journey { position: relative; width: 100%; height: 100%; overflow: hidden; background: #08060c; color: #e9e1d2; font: 400 13px/1.4 var(--nx-ui); }
html[data-theme='neon'] .nx-journey button { font-family: inherit; color: inherit; cursor: pointer; }
html[data-theme='neon'] .jr-scene { position: absolute; inset: 0; animation: jr-fade 1.2s ease-out; }
html[data-theme='neon'] .jr-scene .ss-backdrop { position: absolute; inset: 0; overflow: hidden; }
html[data-theme='neon'] .jr-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 6, 12, 0.9) 0, rgba(8, 6, 12, 0.62) 24%, rgba(8, 6, 12, 0.05) 44%, rgba(8, 6, 12, 0.05) 68%, rgba(8, 6, 12, 0.72) 88%, rgba(8, 6, 12, 0.9) 100%),
    linear-gradient(0deg, rgba(8, 6, 12, 0.7), rgba(8, 6, 12, 0) 28%); }
@keyframes jr-fade { from { opacity: 0; } }
html[data-theme='neon'] .jr-in { position: relative; zoom: var(--nx-zoom); box-sizing: border-box; height: 100%; max-width: calc(var(--nx-page) / var(--nx-zoom)); margin: 0 auto; padding: 18px 22px 16px;
  display: grid; grid-template-columns: minmax(320px, 390px) minmax(0, 1fr) minmax(240px, 290px); gap: 18px; }
html[data-theme='neon'] .nx-journey.fresh .jr-in { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); }

/* panels: dark glass, a thin gold edge, gold corners */
html[data-theme='neon'] .jr-card, html[data-theme='neon'] .jr-places, html[data-theme='neon'] .jr-wg {
  position: relative; box-sizing: border-box; background: linear-gradient(180deg, rgba(20, 15, 28, 0.86), rgba(11, 9, 16, 0.9)); border: 1px solid rgba(201, 162, 74, 0.38);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), 0 12px 34px rgba(0, 0, 0, 0.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
html[data-theme='neon'] .jr-card::before, html[data-theme='neon'] .jr-card::after { content: ''; position: absolute; width: 12px; height: 12px; border: 2px solid var(--gold, #d1ab5b); pointer-events: none; }
html[data-theme='neon'] .jr-card::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
html[data-theme='neon'] .jr-card::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
html[data-theme='neon'] .jr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; font: 700 12px/1 var(--nx-cap); letter-spacing: 0.16em; text-transform: uppercase; color: #b48d3e; }
html[data-theme='neon'] .jr-head .meta { font: 600 12px/1 var(--nx-ui); letter-spacing: 0; text-transform: none; color: #a99f8f; }
html[data-theme='neon'] .jr-head .meta.gold { color: var(--gold, #d1ab5b); }

/* the left: your journey, then where to go */
html[data-theme='neon'] .jr-left { min-height: 0; display: flex; flex-direction: column; gap: 14px; animation: jr-from-left 0.55s var(--ease-out, ease-out) both; }
@keyframes jr-from-left { from { opacity: 0; transform: translateX(-24px); } }
html[data-theme='neon'] .jr-card { flex: 0 0 auto; padding: 18px 20px 18px; }
html[data-theme='neon'] .jr-kick { font: 700 12px/1.2 var(--nx-cap); letter-spacing: 0.18em; text-transform: uppercase; color: #b48d3e; }
html[data-theme='neon'] .jr-card h2 { margin: 6px 0 4px; font: 700 28px/1.08 var(--nx-cap); letter-spacing: 0.02em; color: #f7e7bd; text-shadow: 0 2px 0 #07060d; }
html[data-theme='neon'] .jr-card p { margin: 6px 0 0; color: #d4cab8; font-size: 13.5px; }
html[data-theme='neon'] .jr-rival { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 10px; }
html[data-theme='neon'] .jr-face { position: relative; width: 96px; height: 120px; overflow: hidden; border: 1px solid rgba(201, 162, 74, 0.6); background: radial-gradient(circle at 50% 30%, #3a2c4a, #120e18); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.6); }
html[data-theme='neon'] .jr-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; image-rendering: pixelated; display: block; }
html[data-theme='neon'] .jr-rival h2 { margin-top: 0; font-size: 24px; }
html[data-theme='neon'] .jr-who { font: italic 600 13px/1.2 var(--nx-ui); color: var(--gold, #d1ab5b); }
html[data-theme='neon'] .jr-road { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(201, 162, 74, 0.2); }
html[data-theme='neon'] .jr-road-n { font: 700 13px/1 var(--nx-cap); letter-spacing: 0.08em; color: #e9dcc2; white-space: nowrap; }
html[data-theme='neon'] .jr-pips-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
html[data-theme='neon'] .jr-card.done .jr-pips-row { margin-top: 12px; }
html[data-theme='neon'] .jr-pips-row small { color: #a99f8f; white-space: nowrap; }
html[data-theme='neon'] .jr-pips { display: flex; gap: 4px; }
html[data-theme='neon'] .jr-pips i { width: 14px; height: 14px; transform: rotate(45deg) scale(0.78); border: 1px solid rgba(201, 162, 74, 0.45); background: rgba(0, 0, 0, 0.4); font-size: 0; }
html[data-theme='neon'] .jr-pips i.won { border-color: #d1ab5b; background: linear-gradient(135deg, #e2c27c, #b48d3e); }
html[data-theme='neon'] .jr-pips i.next { border-color: #d1ab5b; box-shadow: 0 0 0 2px rgba(226, 194, 124, 0.25), 0 0 12px rgba(209, 171, 91, 0.6); animation: jr-next 1.6s ease-in-out infinite; }
html[data-theme='neon'] .jr-pips i.boss { transform: rotate(45deg) scale(1); border-color: #ff8a4a; }
@keyframes jr-next { 50% { box-shadow: 0 0 0 4px rgba(226, 194, 124, 0.12), 0 0 18px rgba(209, 171, 91, 0.9); } }
html[data-theme='neon'] .jr-acts { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
html[data-theme='neon'] .jr-go { position: relative; height: 46px; padding: 0 34px; border: 0; background: linear-gradient(180deg, #e2c27c, #b48d3e); color: #1c1206 !important; font: 700 17px/1 var(--nx-cap) !important; letter-spacing: 0.16em; text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); box-shadow: inset 0 -3px 0 rgba(120, 70, 0, 0.35); transition: filter 0.15s, transform 0.15s; }
html[data-theme='neon'] .jr-go:hover, html[data-theme='neon'] .jr-go:focus-visible { filter: brightness(1.1); transform: translateY(-1px); }
html[data-theme='neon'] .jr-link { padding: 4px 0; border: 0; background: none; font: 700 13px/1.2 var(--nx-cap); letter-spacing: 0.1em; text-transform: uppercase; color: #d1ab5b !important; border-bottom: 1px solid rgba(232, 199, 102, 0.35); }
html[data-theme='neon'] .jr-link:hover, html[data-theme='neon'] .jr-link:focus-visible { color: #fff1c4 !important; border-bottom-color: #fff1c4; }
html[data-theme='neon'] .jr-link:disabled { opacity: 0.5; cursor: default; }
html[data-theme='neon'] .jr-earn { display: inline-flex; align-items: center; gap: 6px; color: #a99f8f; }

html[data-theme='neon'] .jr-places { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 14px 10px 10px; }
html[data-theme='neon'] .jr-places > .jr-head { padding: 0 8px; }
html[data-theme='neon'] .jr-menu { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; }
html[data-theme='neon'] .jr-row { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) 14px; align-items: center; gap: 10px; padding: 7px 10px; border: 0; border-bottom: 1px solid rgba(201, 162, 74, 0.12); background: none; text-align: left;
  animation: jr-row-in 0.45s var(--ease-out, ease-out) both; animation-delay: calc(0.12s + var(--i, 0) * 0.04s); transition: background 0.15s; }
@keyframes jr-row-in { from { opacity: 0; transform: translateX(-10px); } }
html[data-theme='neon'] .jr-row:last-child { border-bottom: 0; }
html[data-theme='neon'] .jr-row::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--gold, #d1ab5b); opacity: 0; transition: opacity 0.15s; }
html[data-theme='neon'] .jr-row:hover, html[data-theme='neon'] .jr-row:focus-visible { background: linear-gradient(90deg, rgba(209, 171, 91, 0.12), rgba(209, 171, 91, 0)); }
html[data-theme='neon'] .jr-row:hover::before, html[data-theme='neon'] .jr-row:focus-visible::before { opacity: 1; }
html[data-theme='neon'] .jr-row .ic { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(201, 162, 74, 0.3); background: rgba(0, 0, 0, 0.35); }
html[data-theme='neon'] .jr-row .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html[data-theme='neon'] .jr-row b { font: 700 16px/1.1 var(--nx-cap); letter-spacing: 0.03em; color: #f1e4c4; }
html[data-theme='neon'] .jr-row small { color: #a99f8f; font-size: 12px; }
html[data-theme='neon'] .jr-row.hot small { color: var(--gold, #d1ab5b); font-weight: 600; }
html[data-theme='neon'] .jr-row .ch { font-style: normal; font-size: 18px; color: #b48d3e; }
html[data-theme='neon'] .jr-row.mode-closed { opacity: 0.55; }
html[data-theme='neon'] .jr-news { display: grid; grid-template-columns: auto minmax(0, 1fr) 12px; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 10px 2px; border: 0; border-top: 1px solid rgba(201, 162, 74, 0.2); background: none; text-align: left; color: #cfc5b3; font-size: 12.5px; }
html[data-theme='neon'] .jr-news .k { font: 700 11px/1 var(--nx-cap); letter-spacing: 0.14em; text-transform: uppercase; color: #b48d3e; }
html[data-theme='neon'] .jr-news.fresh .k::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: #ff6a5a; vertical-align: middle; }
html[data-theme='neon'] .jr-news i { font-style: normal; color: #b48d3e; }

/* the middle: your party in the place */
html[data-theme='neon'] .jr-party { position: relative; min-width: 0; min-height: 0; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
html[data-theme='neon'] .jr-member { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; margin: 0 calc(var(--fh, 260px) * -0.14); padding: 0; border: 0; background: none; animation: jr-rise 0.7s var(--ease-out, ease-out) both; animation-delay: calc(0.2s + var(--i, 0) * 0.1s); }
html[data-theme='neon'] .jr-member.lead { z-index: 2; margin-bottom: -6px; }
@keyframes jr-rise { from { opacity: 0; transform: translateY(26px); } }
html[data-theme='neon'] .jr-member::before { content: ''; position: absolute; left: 18%; right: 18%; bottom: 30px; height: 18px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%); }
html[data-theme='neon'] .jr-member .nx-fig { position: relative; display: block; transition: filter 0.2s, transform 0.2s; }
html[data-theme='neon'] .jr-member:hover .nx-fig, html[data-theme='neon'] .jr-member:focus-visible .nx-fig { filter: drop-shadow(0 0 10px rgba(226, 194, 124, 0.45)); transform: translateY(-3px); }
html[data-theme='neon'] .jr-name { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-top: -2px; padding: 3px 10px; background: rgba(8, 6, 12, 0.72); border: 1px solid rgba(201, 162, 74, 0.3); opacity: 0.85; transition: opacity 0.15s; }
html[data-theme='neon'] .jr-member.lead .jr-name { border-color: rgba(226, 194, 124, 0.6); opacity: 1; }
html[data-theme='neon'] .jr-name b { font: 700 13px/1.1 var(--nx-cap); letter-spacing: 0.04em; color: #f1e4c4; }
html[data-theme='neon'] .jr-name small { font-size: 11px; color: #a99f8f; }
html[data-theme='neon'] .jr-pet { position: absolute; left: 50%; bottom: 40px; z-index: 3; margin-left: -18%; }

/* the right: three small cards */
html[data-theme='neon'] .jr-right { min-height: 0; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 12px; animation: jr-from-right 0.55s var(--ease-out, ease-out) 0.08s both; }
@keyframes jr-from-right { from { opacity: 0; transform: translateX(24px); } }
html[data-theme='neon'] .jr-wg { padding: 12px 14px; text-align: left; }
html[data-theme='neon'] .jr-wg p { margin: 0 0 8px; color: #cfc5b3; font-size: 12.5px; }
html[data-theme='neon'] .jr-wg-btn { width: 100%; transition: border-color 0.15s; }
html[data-theme='neon'] .jr-wg-btn:hover, html[data-theme='neon'] .jr-wg-btn:focus-visible { border-color: rgba(226, 194, 124, 0.7); }
html[data-theme='neon'] .jr-patrol { padding: 0; }
html[data-theme='neon'] .jr-qs { display: flex; flex-direction: column; gap: 8px; }
html[data-theme='neon'] .jr-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; font-size: 12.5px; color: #ddd3c2; }
html[data-theme='neon'] .jr-q .nx-bar { grid-column: 1 / -1; height: 4px; }
html[data-theme='neon'] .jr-q small { color: #a99f8f; }
html[data-theme='neon'] .jr-q b { color: var(--gold, #d1ab5b); font-size: 12px; }
html[data-theme='neon'] .jr-q.done span { color: #9fd48a; }
/* the achievements nearly yours: a ring filling round each badge, how far, a bar; the count opens them all */
html[data-theme='neon'] .jr-achs { display: flex; flex-direction: column; gap: 4px; }
html[data-theme='neon'] .jr-ach { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; width: 100%; margin: 0 -4px; padding: 4px; box-sizing: content-box; background: none; border: 0; border-radius: 6px; text-align: left; font: inherit; font-size: 12.5px; color: #ddd3c2; cursor: pointer; transition: background 0.15s; }
html[data-theme='neon'] .jr-ach:hover, html[data-theme='neon'] .jr-ach:focus-visible { background: rgba(226, 194, 124, 0.08); }
html[data-theme='neon'] .jr-ach .pf-ring { grid-row: 1 / span 2; width: 30px; height: 30px; border-width: 1px; }
html[data-theme='neon'] .jr-ach .pf-ring-in { border-width: 1px; }
html[data-theme='neon'] .jr-ach small { color: #a99f8f; font-variant-numeric: tabular-nums; }
html[data-theme='neon'] .jr-ach .nx-bar { grid-column: 2 / -1; height: 4px; }
html[data-theme='neon'] .jr-meta-btn { padding: 0; background: none; border: 0; cursor: pointer; }
html[data-theme='neon'] .jr-meta-btn:hover, html[data-theme='neon'] .jr-meta-btn:focus-visible { color: var(--gold, #d1ab5b); }
html[data-theme='neon'] .jr-fr { display: flex; flex-direction: column; align-items: flex-start; }
html[data-theme='neon'] .jr-turn { margin: 0 0 10px; padding: 7px 10px; width: 100%; border: 1px solid rgba(226, 194, 124, 0.6); background: rgba(226, 194, 124, 0.1); color: #e2c27c !important; font-weight: 700; text-align: left; }

/* a computer: Home in the very box every other screen has (your call: the same size, stuck under the top bar): the
   column's width, from the bar down, never taller than the column's shape; the place inside it, the page quiet round it
   as round Heroes or the Shop. The columns end with what they hold */
@media (min-width: 1181px) {
  html[data-theme='neon'] .nx-journey { width: min(100%, var(--nx-page)); max-height: calc(var(--nx-page) / var(--nx-shape)); margin: 0 auto; box-shadow: 0 0 0 1px var(--line-1), 0 0 70px rgba(0, 0, 0, 0.65); }
  html[data-theme='neon'] .jr-in { max-width: none; }
  html[data-theme='neon'] .jr-places { flex: 0 1 auto; }
}
/* a narrower window: the right cards go under the menu */
@media (max-width: 1180px) and (min-width: 761px) {
  html[data-theme='neon'] #app > .screen.screen-menu.nx-menu:has(.nx-journey) { overflow-y: auto; }
  html[data-theme='neon'] #app > .screen.screen-menu.nx-menu:has(.nx-journey) > .hub-main { height: auto; min-height: 100%; }
  html[data-theme='neon'] .nx-journey { height: auto; min-height: 100%; overflow: visible; }
  html[data-theme='neon'] .jr-scene, html[data-theme='neon'] .jr-shade { position: fixed; }
  html[data-theme='neon'] .jr-in { height: auto; min-height: 100%; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); grid-template-rows: auto auto; }
  html[data-theme='neon'] .jr-menu { overflow: visible; }
  html[data-theme='neon'] .jr-party { min-height: 420px; }
  html[data-theme='neon'] .jr-right { grid-column: 1 / -1; flex-direction: row; overflow: visible; }
  html[data-theme='neon'] .jr-right > * { flex: 1 1 0; min-width: 0; }
}
/* a phone: the place and your party first, then your journey, where to go in two columns, the cards */
@media (max-width: 760px) {
  html[data-theme='neon'] .nx-journey { height: auto; min-height: 100%; overflow: visible; }
  html[data-theme='neon'] .jr-scene { position: absolute; inset: 0 0 auto 0; height: 300px; }
  html[data-theme='neon'] .jr-shade { inset: 0 0 auto 0; height: 300px; background: linear-gradient(0deg, #08060c, rgba(8, 6, 12, 0) 45%), linear-gradient(180deg, rgba(8, 6, 12, 0.35), rgba(8, 6, 12, 0) 30%); }
  html[data-theme='neon'] .jr-in { display: flex; flex-direction: column; height: auto; padding: 0 12px 20px; gap: 12px; }
  html[data-theme='neon'] .jr-party { order: -1; height: 300px; flex: 0 0 300px; padding-bottom: 4px; }
  html[data-theme='neon'] .jr-member { margin: 0 calc(var(--fh, 180px) * -0.2); }
  html[data-theme='neon'] .jr-card { margin-top: -6px; padding: 16px 16px; }
  html[data-theme='neon'] .jr-card h2 { font-size: 24px; }
  html[data-theme='neon'] .jr-rival { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
  html[data-theme='neon'] .jr-face { width: 78px; height: 98px; }
  html[data-theme='neon'] .jr-road { flex-wrap: wrap; }
  html[data-theme='neon'] .jr-menu { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  html[data-theme='neon'] .jr-row { grid-template-columns: 30px minmax(0, 1fr); padding: 9px 6px; }
  html[data-theme='neon'] .jr-row .ic { width: 30px; height: 30px; }
  html[data-theme='neon'] .jr-row .ch { display: none; }
  html[data-theme='neon'] .jr-row b { font-size: 14px; }
  html[data-theme='neon'] .jr-right { overflow: visible; }
  html[data-theme='neon'] .jr-go { flex: 1 1 auto; }
}
html[data-theme='neon'] .ss-backdrop.still .ss-layer, html[data-theme='neon'] .ss-backdrop.still .ss-rays, html[data-theme='neon'] .ss-backdrop.still .ss-glow, html[data-theme='neon'] .ss-backdrop.still .ss-halo { animation: none; }
@media (prefers-reduced-motion: reduce) { html[data-theme='neon'] .jr-left, html[data-theme='neon'] .jr-right, html[data-theme='neon'] .jr-row, html[data-theme='neon'] .jr-member, html[data-theme='neon'] .jr-scene { animation: none; } }

/* the event calendar's card (ui/neon/calendar.js, your call 7 Nov): the event on today, or the next and how long to go;
   a press opens the month */
html[data-theme='neon'] .jr-ev { display: flex; flex-direction: column; gap: 8px; }
html[data-theme='neon'] .jr-ev .jr-head { margin: 0; }
html[data-theme='neon'] .jr-ev.on { border-color: rgba(209, 171, 91, 0.55); box-shadow: inset 0 0 22px rgba(209, 171, 91, 0.08); }
html[data-theme='neon'] .jr-ev-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
html[data-theme='neon'] .jr-ev-row .in { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
html[data-theme='neon'] .jr-ev-row b { font: 700 15px/1.15 var(--nx-cap); color: #f3ebde; }
html[data-theme='neon'] .jr-ev-row b .more { font: 600 11px/1 var(--nx-ui); color: #a99f8f; }
html[data-theme='neon'] .jr-ev-row small { font-size: 12px; line-height: 1.3; color: #b9b0a2; }
html[data-theme='neon'] .jr-ev .jr-link { align-self: flex-start; }
/* (compact, so the right column still fits a laptop: one line of what it does, the picture smaller) */
html[data-theme='neon'] .jr-ev { gap: 6px; padding-top: 10px; padding-bottom: 10px; }
html[data-theme='neon'] .jr-ev .nx-ev-pic.big { width: 36px; height: 36px; }
html[data-theme='neon'] .jr-ev-row small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html[data-theme='neon'] .jr-ev .jr-head .meta::after { content: ' ›'; }
/* a laptop's height: the right column's cards a little closer, so they all fit with the event's (7 Nov) */
@media (min-width: 761px) and (max-height: 820px) {
  html[data-theme='neon'] .jr-right { gap: 8px; }
  html[data-theme='neon'] .jr-right .jr-wg { padding-top: 9px; padding-bottom: 9px; }
}
/* "Where to" fitting the shorter column (7 Nov): the rows a little tighter, the story card's words at most three lines;
   up to a 1080p screen's height (the column is no taller there than a laptop's), each row its name only, the story's
   words two lines, so every place shows without scrolling */
@media (min-width: 761px) {
  html[data-theme='neon'] .jr-row { padding: 5px 10px; }
  html[data-theme='neon'] .jr-row .ic { width: 28px; height: 28px; }
  html[data-theme='neon'] .jr-row b { font-size: 15px; }
  html[data-theme='neon'] .jr-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (min-width: 761px) and (max-height: 1100px) {
  html[data-theme='neon'] .jr-row { padding: 3px 10px; }
  html[data-theme='neon'] .jr-row small { display: none; }
  html[data-theme='neon'] .jr-card { padding-top: 14px; padding-bottom: 14px; }
  html[data-theme='neon'] .jr-card p { -webkit-line-clamp: 2; }
}

/* styles/arena.css */
/*
 * Arena: the game's design from 14 November 2026 (docs/design/arena-2026-11-14), built screen by screen over Neon.
 * A game's screens, not a client's: the painted place at full brightness across the whole window, the champions big in
 * front of it, words large enough for a TV or a Steam Deck, one yellow thing to press. Everything is laid out on a
 * 1920 x 1080 sheet and drawn at the window's scale (--ar-zoom, ui/arena/kit.js): px here are that sheet's.
 *
 * The kit (any Arena screen): .ar-plate (ink, a bronze line, cut corners), .ar-btn (.go: the yellow one), .ar-key (a key's
 * cap in a hint), .ar-kick (a small gold heading), .ar-wallet, .ar-me (your card: calling card, framed picture, level),
 * .ar-foot (the hints along the bottom). Then each screen's own part.
 */
@font-face { font-family: 'Alegreya'; src: url('../assets/fonts/alegreya.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }

html[data-theme='neon'] {
  --ar-zoom: 1;
  --ar-ink: #0d0a14; --ar-ink2: #171222; --ar-ink3: #221a32; --ar-line: #5a4a2c; --ar-line2: #8a6f3a; --ar-edge: #3a3050;
  --ar-gold: #d1ab5b; --ar-gold2: #e2c27c; --ar-cream: #f6ecd8; --ar-dim: #b9aec6; --ar-mute: #8d829c;
  --ar-yellow: #d1ab5b; --ar-green: #7fd36a; --ar-red: #ff8a72;
  --ar-cap: 'Alegreya SC', Georgia, serif; --ar-text: 'Alegreya', Georgia, serif;
}

/* ------------------------------------------------------------------ the kit */
html[data-theme='neon'] .ar { color: var(--ar-cream); font: 500 20px/1.35 var(--ar-text); -webkit-font-smoothing: antialiased; }
html[data-theme='neon'] .ar *, html[data-theme='neon'] .ar *::before, html[data-theme='neon'] .ar *::after { box-sizing: border-box; }
/* (not the buttons of an old page drawn inside a sheet, .ar-old: those keep the game's own) */
html[data-theme='neon'] .ar button:where(:not(.ar-old *)) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; text-align: left; cursor: pointer; border-radius: 0; text-shadow: none; box-shadow: none; min-height: 0; letter-spacing: inherit; text-transform: none; }
html[data-theme='neon'] .ar .ar-plate { background: linear-gradient(180deg, rgba(30, 23, 44, 0.94), rgba(14, 10, 22, 0.96)); border: 1px solid var(--ar-line); box-shadow: inset 0 1px 0 rgba(226, 194, 124, 0.18);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
html[data-theme='neon'] .ar .ar-plate.flat { clip-path: none; }
html[data-theme='neon'] .ar-kick { font: 700 15px/1 var(--ar-cap); letter-spacing: 0.22em; color: var(--ar-gold); text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
html[data-theme='neon'] .ar-kick::before { content: ''; width: 34px; height: 9px; flex: none; background: url(../assets/art/ui-v3/ui/header/flourish.webp) 0 50% / 100% 100% no-repeat; } /* (the v3 kit's flourish, your art 21 Nov) */
html[data-theme='neon'] .ar-key { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 8px; font: 700 15px/1 var(--ar-text); font-style: normal; letter-spacing: 0; text-transform: none; color: var(--ar-cream); background: #2a2140; border: 1px solid #6c5f86; border-bottom-width: 3px; border-radius: 5px; }
html[data-theme='neon'] .ar-badge { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; font: 800 15px/1 var(--ar-text); letter-spacing: 0; color: #1a1309; background: var(--ar-yellow); border-radius: 13px; text-shadow: none; }

html[data-theme='neon'] .ar .ar-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 30px; white-space: nowrap; font: 700 20px/1 var(--ar-cap); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ar-cream);
  background: linear-gradient(180deg, rgba(201, 206, 214, 0.07), transparent 38px), #19191f; border: 1px solid #575b61; box-shadow: inset 0 1px 0 rgba(226, 194, 124, 0.24); transition: filter 0.12s, transform 0.12s, border-color 0.12s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
html[data-theme='neon'] .ar .ar-btn:hover, html[data-theme='neon'] .ar .ar-btn:focus-visible { background: linear-gradient(180deg, rgba(201, 206, 214, 0.08), transparent 38px), #202027; border-color: var(--ar-gold); filter: none; }
html[data-theme='neon'] .ar .ar-btn:active { transform: translateY(2px); filter: brightness(0.95); }
html[data-theme='neon'] .ar .ar-btn.small { height: 44px; padding: 0 20px; font-size: 16px; }
html[data-theme='neon'] .ar .ar-btn.go { color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border-color: #f0d9a0; }
html[data-theme='neon'] .ar .ar-btn.go:hover, html[data-theme='neon'] .ar .ar-btn.go:focus-visible { background: linear-gradient(180deg, #f0d391 0%, #d6ab55 55%, #b48a3b 100%); border-color: #f0d9a0; }

/* your card: your calling card behind, your picture in its frame with your level on it, your name, level and rank */
html[data-theme='neon'] .ar .ar-me { position: relative; display: flex; align-items: center; gap: 16px; width: 430px; height: 96px; padding: 0 22px 0 16px; overflow: hidden; border: 1px solid var(--ar-line2); background: var(--ar-ink2); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); transition: filter 0.12s; }
html[data-theme='neon'] .ar .ar-me:hover, html[data-theme='neon'] .ar .ar-me:focus-visible { filter: brightness(1.18); border-color: var(--ar-gold); }
html[data-theme='neon'] .ar .ar-me .card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
html[data-theme='neon'] .ar .ar-me::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 5, 14, 0.82) 0, rgba(8, 5, 14, 0.5) 46%, rgba(8, 5, 14, 0.08) 100%); }
html[data-theme='neon'] .ar .ar-me > * { position: relative; z-index: 1; }
html[data-theme='neon'] .ar .ar-me > .card-bg { position: absolute; z-index: 0; }
html[data-theme='neon'] .ar .ar-me-pic { position: relative; flex: none; width: 72px; height: 72px; display: grid; place-items: center; }
html[data-theme='neon'] .ar .ar-me-lv { position: absolute; right: -8px; bottom: -6px; min-width: 30px; height: 24px; padding: 0 6px; display: grid; place-items: center; font: 800 15px/1 var(--ar-text); color: #1a1309; background: var(--ar-gold); border: 1px solid #5a3a06; }
html[data-theme='neon'] .ar .ar-me-who { min-width: 0; flex: 1; }
html[data-theme='neon'] .ar .ar-me-who b { display: block; font: 700 24px/1.1 var(--ar-cap); letter-spacing: 0.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7); }
html[data-theme='neon'] .ar .ar-me-who b .tag { color: var(--ar-gold); }
html[data-theme='neon'] .ar .ar-me-who small { display: block; font-size: 17px; color: var(--ar-cream); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8); }
html[data-theme='neon'] .ar .ar-me-xp { display: block; height: 5px; width: 190px; margin-top: 7px; background: rgba(8, 5, 14, 0.7); border: 1px solid rgba(226, 194, 124, 0.25); }
html[data-theme='neon'] .ar .ar-me-xp i { display: block; height: 100%; background: linear-gradient(90deg, #b48d3e, var(--ar-gold2)); }

html[data-theme='neon'] .ar .ar-wallet { display: flex; gap: 10px; }
html[data-theme='neon'] .ar .ar-wallet button { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 10px; font: 700 20px/1 var(--ar-text); background: rgba(13, 10, 20, 0.84); border: 1px solid var(--ar-edge); transition: border-color 0.12s, filter 0.12s; }
html[data-theme='neon'] .ar .ar-wallet button:hover, html[data-theme='neon'] .ar .ar-wallet button:focus-visible { border-color: var(--ar-gold); filter: brightness(1.2); }
html[data-theme='neon'] .ar .ar-wallet img, html[data-theme='neon'] .ar .ar-wallet canvas { width: 28px; height: 28px; image-rendering: pixelated; }
html[data-theme='neon'] .ar .ar-tools { display: flex; gap: 10px; }
html[data-theme='neon'] .ar .ar-tools > button, html[data-theme='neon'] .ar .ar-tools > .ar-tool { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(13, 10, 20, 0.84); border: 1px solid var(--ar-edge); transition: border-color 0.12s, filter 0.12s; }
html[data-theme='neon'] .ar .ar-tools > button:hover, html[data-theme='neon'] .ar .ar-tools > button:focus-visible { border-color: var(--ar-gold); filter: brightness(1.25); }
html[data-theme='neon'] .ar .ar-tools .ar-dot { position: absolute; right: -5px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ar-yellow); box-shadow: 0 0 8px var(--ar-yellow); }

html[data-theme='neon'] .ar .ar-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; gap: 34px; padding: 0 56px; font-size: 17px; color: var(--ar-dim); background: linear-gradient(0deg, rgba(8, 5, 14, 0.94), rgba(8, 5, 14, 0)); }
html[data-theme='neon'] .ar .ar-foot .grow { flex: 1; }
html[data-theme='neon'] .ar .ar-foot > span, html[data-theme='neon'] .ar .ar-foot > button { display: flex; align-items: center; gap: 9px; }
html[data-theme='neon'] .ar .ar-foot > button { height: 40px; padding: 0 12px; color: var(--ar-cream); transition: color 0.12s; }
html[data-theme='neon'] .ar .ar-foot > button:hover, html[data-theme='neon'] .ar .ar-foot > button:focus-visible { color: var(--ar-gold2); }
html[data-theme='neon'] .ar .ar-on-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ar-green); box-shadow: 0 0 8px var(--ar-green); }
html[data-theme='neon'] .ar .ar-on-dot.off { background: var(--ar-mute); box-shadow: none; }

/* ------------------------------------------------------------------ the main screen (ui/arena/main.js) */
/* (the screen takes the whole window: no bar over it, no column) */
html[data-theme='neon'].ar-on #app > .screen.ar-native { left: 0 !important; right: 0 !important; top: 0 !important; bottom: 0 !important; width: auto !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; background: #05030a; overflow: hidden; }
html[data-theme='neon'].ar-on #app > .screen.ar-native::after, html[data-theme='neon'].ar-on #app > .screen.ar-native::before { display: none; }
html[data-theme='neon'].ar-on .screen.ar-native .hub-main { position: absolute; inset: 0; padding: 0; margin: 0; max-width: none; overflow: hidden; }
html[data-theme='neon'].ar-on .screen.ar-native .hub-social { display: none; }
/* (Neon holds a window's children to its column, 1480 px: not Arena's sheet) */
html[data-theme='neon'].ar-on #app > .screen.ar-native > .ar-sheet { max-width: none; margin: 0; zoom: var(--ar-zoom); padding: 0 !important; }
html.ar-phone[data-theme='neon'].ar-on #app > .screen.ar-native > .ar-sheet { zoom: 1; }
/* (its percentages are the parent's size as they are: a zoomed box's are already divided by its zoom) */
html[data-theme='neon'] .ar-sheet { position: absolute; left: 0; top: 0; width: 100%; height: 100%; zoom: var(--ar-zoom); overflow: hidden; }
html[data-theme='neon'] .ar-scene { position: absolute; inset: -18px; background: #0d0a14 center/cover no-repeat; transform: translate(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -6px)) scale(1.02); transition: transform 0.5s ease-out; }
html[data-theme='neon'] .ar-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 5, 14, 0.9) 0, rgba(8, 5, 14, 0.62) 24%, rgba(8, 5, 14, 0) 46%), linear-gradient(0deg, rgba(8, 5, 14, 0.85) 0, rgba(8, 5, 14, 0) 26%), linear-gradient(180deg, rgba(8, 5, 14, 0.55) 0, rgba(8, 5, 14, 0) 16%); }
html[data-theme='neon'] .ar-embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
html[data-theme='neon'] .ar-embers i { position: absolute; bottom: -12px; width: 5px; height: 5px; background: #ffb347; box-shadow: 0 0 8px #ff8a2b; opacity: 0; animation: ar-ember linear infinite; }
@keyframes ar-ember { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 8% { opacity: 0.9; } 70% { opacity: 0.5; } 100% { transform: translate(var(--dx, 40px), -1100px) scale(0.3); opacity: 0; } }

/* the party: your three most played, the first in front; your mascot at their feet */
/* (--party: how much bigger than drawn the party stands on a big screen, ui/arena/scale.js partyGrow) */
html[data-theme='neon'] .ar-party { position: absolute; left: 650px; right: 440px; bottom: 96px; height: calc(900px * var(--party, 1)); pointer-events: none; transform: translate(calc(var(--px, 0) * 8px), 0); transition: transform 0.5s ease-out; }
html[data-theme='neon'] .ar-party .ar-fig { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); pointer-events: auto; filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.6)); animation: ar-rise 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
html[data-theme='neon'] .ar-party .ar-fig.a { left: 15%; bottom: calc(96px * var(--party, 1)); filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.6)) brightness(0.9); animation-delay: 0.12s; }
html[data-theme='neon'] .ar-party .ar-fig.c { left: 86%; bottom: calc(96px * var(--party, 1)); filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.6)) brightness(0.9); animation-delay: 0.2s; }
html[data-theme='neon'] .ar-party .ar-fig.b { z-index: 2; }
html[data-theme='neon'] .ar-party .ar-fig button { display: block; }
html[data-theme='neon'] .ar-party .ar-fig canvas { display: block; }
html[data-theme='neon'] .ar-party .ar-pet { position: absolute; left: 2%; bottom: calc(40px * var(--party, 1)); z-index: 3; pointer-events: auto; animation: ar-rise 0.7s 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes ar-rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
html[data-theme='neon'] .ar-caption { position: absolute; left: 0; right: 0; bottom: -26px; z-index: 4; text-align: center; pointer-events: none; }
html[data-theme='neon'] .ar-caption b { display: block; font: 700 26px/1 var(--ar-cap); letter-spacing: 0.14em; color: var(--ar-gold2); text-shadow: 0 2px 0 #000, 0 0 18px rgba(0, 0, 0, 0.8); }
html[data-theme='neon'] .ar-caption small { font-size: 17px; color: var(--ar-cream); text-shadow: 0 2px 0 #000, 0 0 12px rgba(0, 0, 0, 0.9); }

html[data-theme='neon'] .ar-logo { position: absolute; left: 84px; top: 60px; width: 440px; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.7)); animation: ar-in-left 0.5s ease-out both; }
html[data-theme='neon'] .ar .ar-menu { position: absolute; left: 84px; top: 268px; width: 540px; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
/* (a big screen, the sheet well taller than designed: the menu at the bottom left, level with the day's cards; ui/arena/scale.js menuLow) */
html[data-theme='neon'] .ar-main.low .ar-menu { top: auto; bottom: 96px; }
html[data-theme='neon'] .ar .ar-menu > button { position: relative; display: flex; align-items: center; gap: 18px; height: 70px; padding: 0 26px; font: 700 34px/1 var(--ar-cap); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ar-cream); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.7);
  border-left: 4px solid transparent; transition: background 0.14s, color 0.14s, padding 0.14s, border-color 0.14s; animation: ar-in-left 0.45s ease-out both; }
html[data-theme='neon'] .ar .ar-menu > button small { margin-left: auto; font: 500 18px/1.2 var(--ar-text); letter-spacing: 0; text-transform: none; color: var(--ar-cream); text-shadow: 0 1px 0 #000, 0 0 10px rgba(0, 0, 0, 0.95); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 270px; }
html[data-theme='neon'] .ar .ar-menu > button:hover, html[data-theme='neon'] .ar .ar-menu > button:focus-visible { background: linear-gradient(90deg, rgba(209, 171, 91, 0.24), rgba(209, 171, 91, 0)); border-left-color: var(--ar-gold); color: var(--ar-gold2); padding-left: 36px; outline: none; }
html[data-theme='neon'] .ar .ar-menu > button:active { padding-left: 30px; }
html[data-theme='neon'] .ar .ar-menu > button.go { height: 96px; margin-bottom: 10px; font-size: 50px; color: #1a1309; text-shadow: none; border-left: 0; padding-left: 30px;
  background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); transition: filter 0.14s, transform 0.14s; }
html[data-theme='neon'] .ar .ar-menu > button.go small { color: #2b2010; font-weight: 700; text-shadow: none; white-space: normal; text-align: right; flex: 1; min-width: 0; max-width: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
html[data-theme='neon'] .ar .ar-menu > button.go:hover, html[data-theme='neon'] .ar .ar-menu > button.go:focus-visible { filter: none; background: linear-gradient(180deg, #f0d391 0%, #d6ab55 55%, #b48a3b 100%); transform: translateX(8px); padding-left: 30px; color: #1a1309; }
html[data-theme='neon'] .ar .ar-menu > button.go:active { transform: translateX(8px) translateY(2px); }
html[data-theme='neon'] .ar .ar-menu > button.go::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%); background-size: 260% 100%; animation: ar-sheen 3.6s ease-in-out infinite; pointer-events: none; }
html[data-theme='neon'] .ar .ar-menu > button.quiet { font-size: 26px; height: 54px; color: var(--ar-dim); }
@keyframes ar-sheen { 0%, 55% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
@keyframes ar-in-left { from { opacity: 0; translate: -40px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes ar-in-right { from { opacity: 0; translate: 40px 0; } to { opacity: 1; translate: 0 0; } }

html[data-theme='neon'] .ar-tr { position: absolute; right: 56px; top: 44px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; animation: ar-in-right 0.5s ease-out both; }
html[data-theme='neon'] .ar-tr .row { display: flex; gap: 10px; }
html[data-theme='neon'] .ar-side { position: absolute; right: 56px; bottom: 96px; width: 430px; display: flex; flex-direction: column; gap: 16px; }
html[data-theme='neon'] .ar .ar-side > * { animation: ar-in-right 0.5s 0.15s ease-out both; }
html[data-theme='neon'] .ar .ar-card { display: block; width: 100%; padding: 20px 22px; transition: filter 0.14s, transform 0.14s; }
html[data-theme='neon'] .ar .ar-card.press:hover, html[data-theme='neon'] .ar .ar-card.press:focus-visible { filter: brightness(1.22); transform: translateX(-6px); }
html[data-theme='neon'] .ar .ar-card .row { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
html[data-theme='neon'] .ar .ar-card .pic { width: 84px; height: 84px; flex: none; background: #2a2140 center/cover; border: 1px solid var(--ar-line2); image-rendering: pixelated; }
html[data-theme='neon'] .ar .ar-card h3 { font: 700 24px/1.1 var(--ar-cap); letter-spacing: 0.05em; margin: 0 0 4px; color: var(--ar-cream); }
html[data-theme='neon'] .ar .ar-card p { font-size: 18px; line-height: 1.3; color: var(--ar-dim); margin: 0; }
html[data-theme='neon'] .ar .ar-card .ar-thin { height: 5px; margin-top: 10px; background: #2a2140; } html[data-theme='neon'] .ar .ar-card .ar-thin i { display: block; height: 100%; background: linear-gradient(90deg, #b48d3e, var(--ar-gold2)); }
html[data-theme='neon'] .ar .ar-today { padding: 18px 22px 10px; }
html[data-theme='neon'] .ar .ar-today ul { list-style: none; margin: 8px 0 0; padding: 0; }
html[data-theme='neon'] .ar .ar-today li { border-top: 1px solid rgba(90, 74, 44, 0.5); }
html[data-theme='neon'] .ar .ar-today li:first-child { border-top: 0; }
html[data-theme='neon'] .ar .ar-today li button { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; font-size: 19px; transition: color 0.12s, padding 0.12s; }
html[data-theme='neon'] .ar .ar-today li button:hover, html[data-theme='neon'] .ar .ar-today li button:focus-visible { color: var(--ar-gold2); padding-left: 8px; }
html[data-theme='neon'] .ar .ar-today li span.tx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-theme='neon'] .ar .ar-today li b { font: 700 17px/1 var(--ar-cap); letter-spacing: 0.1em; color: var(--ar-gold); text-transform: uppercase; white-space: nowrap; }
html[data-theme='neon'] .ar .ar-today li b.when { font: 700 18px/1 var(--ar-text); letter-spacing: 0; text-transform: none; color: var(--ar-dim); }
html[data-theme='neon'] .ar .ar-today li b.hot { color: #1a1309; background: var(--ar-yellow); padding: 6px 10px; }
html[data-theme='neon'] .ar .ar-today li img, html[data-theme='neon'] .ar .ar-today li canvas { width: 26px; height: 26px; image-rendering: pixelated; flex: none; }

/* a narrower window (4:3, a small laptop): the side cards step aside, the party moves over */
html[data-theme='neon'] .ar-main.narrow .ar-side { display: none; }
html[data-theme='neon'] .ar-main.narrow .ar-party { right: 40px; }

/* the screens come in: a short fade as one opens (never with Reduce motion) */
html[data-theme='neon'] #app > .screen { animation: ar-screen-in 0.22s ease-out; }
@keyframes ar-screen-in { from { opacity: 0; } to { opacity: 1; } }

/* phones: one champion over the place, your card, the day, the places as big plates; the bottom bar stays */
html.ar-phone[data-theme='neon'] .ar-sheet { position: relative; width: 100%; height: 100%; zoom: 1; overflow-y: auto; overflow-x: hidden; }
html.ar-phone[data-theme='neon'] .ar-main { display: flex; flex-direction: column; }
html.ar-phone[data-theme='neon'] .ar-main > * { flex: none; }
html.ar-phone[data-theme='neon'] .ar-scene { position: fixed; inset: 0; transform: none; background-position: 62% center; }
html.ar-phone[data-theme='neon'] .ar-shade { position: fixed; background: linear-gradient(0deg, rgba(8, 5, 14, 0.96) 0, rgba(8, 5, 14, 0.7) 46%, rgba(8, 5, 14, 0.15) 74%, rgba(8, 5, 14, 0.55) 100%); }
html.ar-phone[data-theme='neon'] .ar-embers, html.ar-phone[data-theme='neon'] .ar .ar-foot, html.ar-phone[data-theme='neon'] .ar-logo { display: none; }
html.ar-phone[data-theme='neon'] .ar-tr { order: -1; position: relative; right: auto; top: auto; margin: calc(var(--safe-t) + 10px) 12px 0; align-items: stretch; gap: 8px; animation: none; z-index: 5; }
html.ar-phone[data-theme='neon'] .ar-tr .row, html.ar-phone[data-theme='neon'] .ar .ar-wallet, html.ar-phone[data-theme='neon'] .ar .ar-tools { gap: 6px; }
html.ar-phone[data-theme='neon'] .ar .ar-me { width: 100%; height: 76px; gap: 12px; padding: 0 12px; }
html.ar-phone[data-theme='neon'] .ar .ar-me-pic { width: 56px; height: 56px; }
html.ar-phone[data-theme='neon'] .ar .ar-me-who b { font-size: 20px; } html.ar-phone[data-theme='neon'] .ar .ar-me-who small { font-size: 15px; } html.ar-phone[data-theme='neon'] .ar .ar-me-xp { width: 150px; }
html.ar-phone[data-theme='neon'] .ar-tr .row { justify-content: space-between; }
html.ar-phone[data-theme='neon'] .ar .ar-wallet button { height: 36px; font-size: 16px; padding: 0 10px 0 6px; } html.ar-phone[data-theme='neon'] .ar .ar-wallet img, html.ar-phone[data-theme='neon'] .ar .ar-wallet canvas { width: 22px; height: 22px; }
html.ar-phone[data-theme='neon'] .ar .ar-tools > button, html.ar-phone[data-theme='neon'] .ar .ar-tools > .ar-tool { width: 36px; height: 36px; }
html.ar-phone[data-theme='neon'] .ar-party { position: relative; left: auto; right: auto; bottom: auto; height: 300px; margin-top: 4px; transform: none; }
html.ar-phone[data-theme='neon'] .ar-party .ar-fig.a, html.ar-phone[data-theme='neon'] .ar-party .ar-fig.c { display: none; }
html.ar-phone[data-theme='neon'] .ar-party .ar-pet { left: 8%; bottom: 14px; }
html.ar-phone[data-theme='neon'] .ar-caption { bottom: -6px; } html.ar-phone[data-theme='neon'] .ar-caption b { font-size: 20px; } html.ar-phone[data-theme='neon'] .ar-caption small { font-size: 14px; }
html.ar-phone[data-theme='neon'] .ar .ar-menu { position: relative; left: auto; top: auto; width: auto; margin: 22px 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
html.ar-phone[data-theme='neon'] .ar .ar-menu > button { animation: none; }
html.ar-phone[data-theme='neon'] .ar .ar-menu > button:not(.go) { height: 56px; padding: 0 14px; font-size: 20px; border: 1px solid var(--ar-edge); background: rgba(13, 10, 20, 0.86); }
html.ar-phone[data-theme='neon'] .ar .ar-menu > button small { display: none; }
html.ar-phone[data-theme='neon'] .ar .ar-menu > button.go { grid-column: 1 / -1; height: 72px; font-size: 32px; margin-bottom: 0; }
html.ar-phone[data-theme='neon'] .ar .ar-menu > button.go small { display: block; font-size: 15px; max-width: 60%; }
/* (an odd tile out at the end takes the whole row, no hole beside it) */
html.ar-phone[data-theme='neon'] .ar .ar-menu > button:last-child:nth-child(even) { grid-column: 1 / -1; }
html.ar-phone[data-theme='neon'] .ar .ar-menu > button:not(.go):hover, html.ar-phone[data-theme='neon'] .ar .ar-menu > button:not(.go):focus-visible { padding-left: 14px; }
html.ar-phone[data-theme='neon'] .ar-side { position: relative; right: auto; bottom: auto; width: auto; margin: 12px 12px 18px; gap: 10px; }
html.ar-phone[data-theme='neon'] .ar .ar-card { padding: 14px 14px; } html.ar-phone[data-theme='neon'] .ar .ar-card h3 { font-size: 20px; } html.ar-phone[data-theme='neon'] .ar .ar-card p { font-size: 16px; }
html.ar-phone[data-theme='neon'] .ar .ar-card .pic { width: 64px; height: 64px; }
html.ar-phone[data-theme='neon'] .ar .ar-today li button { font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  html[data-theme='neon'] .ar *, html[data-theme='neon'] #app > .screen { animation: none !important; transition: none !important; }
}
html.reduce-motion[data-theme='neon'] .ar *, html.reduce-motion[data-theme='neon'] #app > .screen { animation: none !important; transition: none !important; }
html.reduce-motion[data-theme='neon'] .ar-embers { display: none; }

/* styles/arena-frame.css */
/*
 * Arena's frame (ui/arena/kit.js arenaSheet): what every Arena screen but the main one shares. The place behind, dimmed
 * so words read over it; along the top Back, the screen's name, its tabs, your wallet and your card; along the bottom
 * the keys; between them the body, which each screen fills its own way. Then the small pieces screens share: the
 * choices (chips), a list's row, a stat's bar, a tag. Sizes are the 1920 x 1080 sheet's (styles/arena.css).
 * html.ar-on: Arena is the look (ui/hub/bar.js). html.ar-phone: a window under 1000 px, one column, no scale.
 */

/* ------------------------------------------------------------------ the sheet */
.ar-on .ar-page { background: #05030a; }
.ar-on .ar-page .ar-scene { filter: saturate(0.9); }
.ar-on .ar-dim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 5, 14, 0.9) 0, rgba(8, 5, 14, 0) 150px), linear-gradient(0deg, rgba(8, 5, 14, 0.94) 0, rgba(8, 5, 14, 0) 150px), rgba(8, 5, 14, var(--dim, 0.6)); }

.ar-on .ar .ar-head { position: absolute; left: 56px; right: 56px; top: 20px; height: 76px; z-index: 8; display: flex; align-items: center; gap: 22px; animation: ar-in-down 0.4s ease-out both; }
.ar-on .ar .ar-head .grow { flex: 1; min-width: 0; }
.ar-on .ar .ar-back { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px 0 0; font: 700 18px/1 var(--ar-cap); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ar-dim); transition: color 0.12s, transform 0.12s; }
.ar-on .ar .ar-back:hover, .ar-on .ar .ar-back:focus-visible { color: var(--ar-gold2); transform: translateX(-4px); outline: none; }
.ar-on .ar .ar-title { margin: 0 14px 0 6px; font: 800 48px/1 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-cream); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.7), 0 0 26px rgba(0, 0, 0, 0.6); white-space: nowrap; }
.ar-on .ar .ar-tabs { display: flex; align-items: stretch; gap: 4px; height: 56px; min-width: 0; }
.ar-on .ar .ar-tabs > button { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 22px; font: 700 18px/1 var(--ar-cap); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ar-dim); white-space: nowrap; transition: color 0.14s; }
.ar-on .ar .ar-tabs > button::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; background: var(--ar-gold); transform: scaleX(0); transition: transform 0.2s ease-out; }
.ar-on .ar .ar-tabs > button:hover, .ar-on .ar .ar-tabs > button:focus-visible { color: var(--ar-cream); outline: none; }
.ar-on .ar .ar-tabs > button.on { color: var(--ar-gold2); }
.ar-on .ar .ar-tabs > button.on::after { transform: scaleX(1); }
.ar-on .ar .ar-tabs .ar-badge { min-width: 22px; height: 22px; font-size: 13px; }
/* a row of tabs too long for its place on a computer (ui/arena/kit.js arenaTabs): closer, then closer still */
.ar-on:not(.ar-phone) .ar .ar-tabs.close > button { padding: 0 13px; font-size: 16px; letter-spacing: 0.12em; }
.ar-on:not(.ar-phone) .ar .ar-tabs.close > button::after { left: 13px; right: 13px; }
.ar-on:not(.ar-phone) .ar .ar-tabs.closer > button { padding: 0 8px; font-size: 14.5px; letter-spacing: 0.06em; }
.ar-on:not(.ar-phone) .ar .ar-tabs.closer > button::after { left: 8px; right: 8px; }

/* your card, the small one along the top */
.ar-on .ar .ar-me.small { width: 264px; height: 60px; gap: 12px; padding: 0 14px 0 10px; box-shadow: none; }
.ar-on .ar .ar-me.small .ar-me-pic { width: 48px; height: 48px; }
.ar-on .ar .ar-me.small .ar-me-lv { right: -6px; bottom: -4px; min-width: 24px; height: 19px; font-size: 13px; }
.ar-on .ar .ar-me.small .ar-me-who b { font-size: 19px; }
.ar-on .ar .ar-me.small .ar-me-who small { font-size: 15px; line-height: 1.1; }
.ar-on .ar .ar-me.small .ar-me-xp { display: none; }

.ar-on .ar .ar-body { position: absolute; left: 56px; right: 56px; top: 116px; bottom: 72px; z-index: 2; }
.ar-on .ar-page .ar-foot { z-index: 3; background: none; }
/* a window narrower than the sheet */
.ar-on .ar-page.narrow .ar-head .ar-me { display: none; }
.ar-on .ar-page.narrower .ar-tabs > button { padding: 0 13px; font-size: 16px; letter-spacing: 0.12em; }
.ar-on .ar-page.narrower .ar-tabs > button::after { left: 13px; right: 13px; }
.ar-on .ar-page.narrower .ar-title { font-size: 40px; margin-right: 4px; }
.ar-on .ar-page.narrower .ar-head { gap: 14px; }
@keyframes ar-in-down { from { opacity: 0; translate: 0 -20px; } to { opacity: 1; translate: 0 0; } }
@keyframes ar-in-up { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes ar-pop { from { opacity: 0; scale: 0.96; } to { opacity: 1; scale: 1; } }

/* ------------------------------------------------------------------ the strip (ui/arena/frame.js)
   over a screen not built on the sheet yet: the same head, held along the top of the window */
html.ar-on { --ar-head-h: calc(100px * var(--ar-zoom, 1)); }
.ar-on .ar-strip { position: fixed; left: 0; right: 0; top: 0; z-index: 40; height: 100px; zoom: var(--ar-zoom); background: linear-gradient(180deg, rgba(8, 5, 14, 0.98), rgba(12, 9, 19, 0.94)); border-bottom: 1px solid var(--ar-line); }
.ar-on .ar-strip[hidden] { display: none; }
.ar-on .ar-strip .ar-head { top: 12px; animation: none; }
.ar-on.ar-headed #app > .screen { top: calc(var(--safe-t) + var(--ar-head-h)) !important; bottom: var(--safe-b) !important; }
.ar-on.ar-headed #toasts { top: calc(var(--safe-t) + var(--ar-head-h) + 8px); }
.ar-on.ar-phone { --ar-head-h: 56px; }
.ar-on.ar-phone .ar-strip { top: 0; height: calc(var(--safe-t) + 56px); zoom: 1; }
.ar-on.ar-phone .ar-strip .ar-head { flex-wrap: nowrap; height: calc(var(--safe-t) + 56px); background: none; }

/* ------------------------------------------------------------------ small pieces */
/* choices: a few side by side, one lit, a line under them saying what it does */
.ar-on .ar .ar-chips-row { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; }
.ar-on .ar .ar-chips-row > button { height: 54px; padding: 0 10px; text-align: center; font: 700 18px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ar-dim); background: rgba(13, 10, 20, 0.7); border: 1px solid var(--ar-edge); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.12s, border-color 0.12s, background 0.12s, transform 0.1s; }
.ar-on .ar .ar-chips-row > button:hover, .ar-on .ar .ar-chips-row > button:focus-visible { color: var(--ar-cream); border-color: var(--ar-line2); outline: none; }
.ar-on .ar .ar-chips-row > button:active { transform: translateY(2px); }
.ar-on .ar .ar-chips-row > button.on { color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border-color: #f0d9a0; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5); }
.ar-on .ar .ar-chips-line { margin: 10px 0 0; min-height: 2.6em; font-size: 18px; line-height: 1.3; color: var(--ar-dim); }

/* a tag: Tier II, Order, Light */
.ar-on .ar .ar-tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; font: 700 14px/1 var(--ar-cap); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ar-gold2); border: 1px solid var(--ar-line2); background: rgba(13, 10, 20, 0.6); white-space: nowrap; }
.ar-on .ar .ar-tag img, .ar-on .ar .ar-tag canvas { width: 18px; height: 18px; image-rendering: pixelated; }

/* a stat's row: its name, a bar, its number */
.ar-on .ar .ar-stat { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 16px; height: 36px; font-size: 19px; color: var(--ar-dim); }
.ar-on .ar .ar-stat .bar { height: 7px; background: #2a2140; overflow: hidden; }
.ar-on .ar .ar-stat .bar i { display: block; height: 100%; background: linear-gradient(90deg, #b48d3e, var(--ar-gold2)); transform-origin: left; animation: ar-grow 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.ar-on .ar .ar-stat b { min-width: 64px; text-align: right; font: 700 20px/1 var(--ar-text); color: var(--ar-cream); }
.ar-on .ar .ar-stat b em { font-style: normal; font-size: 16px; color: var(--ar-green); margin-left: 4px; }
.ar-on .ar .ar-stat b em.bad { color: var(--ar-red); }
@keyframes ar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* a scrolling column inside a plate: thin gold bar */
.ar-on .ar .ar-scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--ar-line2) transparent; }
.ar-on .ar .ar-scroll::-webkit-scrollbar { width: 8px; }
.ar-on .ar .ar-scroll::-webkit-scrollbar-thumb { background: var(--ar-line2); }
.ar-on .ar .ar-scroll::-webkit-scrollbar-track { background: transparent; }

/* locked by the admin panel or not reached yet (ui/modes.js puts .mode-locked on what carries data-mode) */
.ar-on .ar .mode-locked { filter: grayscale(0.85) brightness(0.62); }

/* ------------------------------------------------------------------ phones */
.ar-on.ar-phone .ar-page { display: flex; flex-direction: column; overflow: hidden; }
.ar-on.ar-phone .ar-page .ar-scene { position: absolute; inset: 0; }
.ar-on.ar-phone .ar-dim { position: absolute; }
.ar-on.ar-phone .ar .ar-head { position: relative; left: auto; right: auto; top: auto; height: auto; flex: none; flex-wrap: wrap; gap: 6px 10px; padding: calc(var(--safe-t) + 8px) 12px 6px; animation: none; background: linear-gradient(180deg, rgba(8, 5, 14, 0.94), rgba(8, 5, 14, 0.7)); }
.ar-on.ar-phone .ar .ar-back { height: 40px; padding: 0 6px 0 0; font-size: 14px; letter-spacing: 0.12em; }
.ar-on.ar-phone .ar .ar-back .ar-key { min-width: 34px; height: 34px; font-size: 0; border-radius: 17px; border-bottom-width: 1px; }
.ar-on.ar-phone .ar .ar-back .ar-key::before { content: '‹'; font: 700 24px/1 var(--ar-text); }
.ar-on.ar-phone .ar .ar-back > span { display: none; }
.ar-on.ar-phone .ar .ar-title { margin: 0; font-size: 26px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ar-on.ar-phone .ar .ar-head .grow, .ar-on.ar-phone .ar .ar-head .ar-me { display: none; }
.ar-on.ar-phone .ar .ar-head .ar-wallet { gap: 4px; }
.ar-on.ar-phone .ar .ar-head .ar-wallet button { height: 32px; padding: 0 8px 0 4px; font-size: 15px; gap: 4px; }
.ar-on.ar-phone .ar .ar-head .ar-wallet button[data-cur='fragments'] { display: none; }
.ar-on.ar-phone .ar .ar-tabs { order: 5; width: 100%; height: 44px; overflow-x: auto; scrollbar-width: none; }
.ar-on.ar-phone .ar .ar-tabs::-webkit-scrollbar { display: none; }
.ar-on.ar-phone .ar .ar-tabs > button { padding: 0 14px; font-size: 15px; letter-spacing: 0.12em; }
.ar-on.ar-phone .ar .ar-tabs > button::after { left: 14px; right: 14px; }
.ar-on.ar-phone .ar .ar-body { position: relative; left: auto; right: auto; top: auto; bottom: auto; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 10px 12px calc(var(--safe-b) + 18px); }
.ar-on.ar-phone .ar .ar-chips-row > button { height: 46px; font-size: 15px; letter-spacing: 0.08em; }
.ar-on.ar-phone .ar .ar-chips-line { font-size: 16px; min-height: 0; }

@media (prefers-reduced-motion: reduce) { .ar-on .ar .ar-stat .bar i { animation: none; } }
html.reduce-motion.ar-on .ar .ar-stat .bar i { animation: none; }
/* The phone sweep (17 Nov): a title that does not fit its line is set smaller, on two lines if it must; a row of
   tabs shows them all, set closer (.tight) and, if they still do not fit, on two rows (.rows). */
.ar-on.ar-phone .ar .ar-title.long { font-size: 19px; line-height: 1.02; white-space: normal; text-wrap: balance; text-overflow: clip; max-height: 40px; }
.ar-on.ar-phone .ar .ar-tabs.tight { gap: 0; justify-content: space-between; }
.ar-on.ar-phone .ar .ar-tabs.tight > button { padding: 0 7px; gap: 4px; font-size: 12.5px; letter-spacing: 0.05em; }
.ar-on.ar-phone .ar .ar-tabs.tight > button::after { left: 7px; right: 7px; }
.ar-on.ar-phone .ar .ar-tabs.tight .ar-badge { min-width: 16px; height: 16px; font-size: 11px; }
.ar-on.ar-phone .ar .ar-tabs.rows { height: auto; flex-wrap: wrap; justify-content: center; overflow: visible; }
.ar-on.ar-phone .ar .ar-tabs.rows > button { height: 34px; padding: 0 12px; font-size: 13px; letter-spacing: 0.07em; }
.ar-on.ar-phone .ar .ar-tabs.rows > button::after { left: 12px; right: 12px; }
.ar-on.ar-phone .ar .ar-title.long.tiny { font-size: 14px; letter-spacing: 0.02em; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ the bar along the top (ui/arena/kit.js topBar; 19 Nov)
   On a computer, every Arena screen: the game's name, PLAY, the main places in words with the one you are in underlined in
   gold, then the wallet, the small buttons and your card. Under it, the screen's own row (Back, its name, its tabs) where
   it has one. Today's look: ink, the bronze line, the game's letters. Sizes are the sheet's. */
.ar-on .ar .ar-topbar { position: absolute; left: 0; right: 0; top: 0; z-index: 9; height: 84px; display: flex; align-items: center; gap: 22px; padding: 0 40px 0 34px;
  background: linear-gradient(180deg, rgba(8, 5, 14, 0.97), rgba(13, 10, 20, 0.93)); border-bottom: 1px solid var(--ar-line); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.ar-on .ar .ar-topbar .grow { flex: 1; min-width: 0; }
.ar-on .ar .ar-brand { flex: none; display: flex; align-items: center; height: 64px; }
.ar-on .ar .ar-brand img { height: 58px; width: auto; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6)); }
.ar-on .ar .ar-brand > span { font: 800 30px/1 var(--ar-cap); letter-spacing: 0.12em; color: var(--ar-gold2); }
.ar-on .ar .ar-top-play { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; font: 800 22px/1 var(--ar-cap); letter-spacing: 0.18em; text-transform: uppercase; color: #1a1309;
  background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border: 1px solid #f0d9a0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); transition: transform 0.12s; }
.ar-on .ar .ar-top-play svg, .ar-on .ar .ar-top-play canvas, .ar-on .ar .ar-top-play img { width: 22px; height: 22px; filter: brightness(0.2); }
.ar-on .ar .ar-top-play:hover, .ar-on .ar .ar-top-play:focus-visible { background: linear-gradient(180deg, #f0d391 0%, #d6ab55 55%, #b48a3b 100%); outline: none; }
.ar-on .ar .ar-top-play:active { transform: translateY(2px); }
.ar-on .ar .ar-top-play.on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 18px rgba(209, 171, 91, 0.45); }
.ar-on .ar .ar-top-nav { display: flex; align-items: stretch; height: 84px; gap: 2px; min-width: 0; }
.ar-on .ar .ar-top-nav > button { position: relative; display: flex; align-items: center; padding: 0 18px; font: 700 19px/1 var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-dim); white-space: nowrap; transition: color 0.12s; }
.ar-on .ar .ar-top-nav > button::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 18px; height: 2px; background: var(--ar-gold); transform: scaleX(0); transition: transform 0.2s ease-out; }
.ar-on .ar .ar-top-nav > button:hover, .ar-on .ar .ar-top-nav > button:focus-visible { color: var(--ar-cream); outline: none; }
.ar-on .ar .ar-top-nav > button.on { color: var(--ar-gold2); }
.ar-on .ar .ar-top-nav > button.on::after { transform: scaleX(1); }
.ar-on .ar .ar-topbar .ar-wallet button { height: 48px; }
.ar-on .ar .ar-topbar .ar-tools { display: flex; gap: 8px; }
.ar-on .ar .ar-topbar .ar-tools > button { position: relative; width: 48px; height: 48px; min-width: 0; min-height: 0; padding: 0; display: grid; place-items: center; background: rgba(13, 10, 20, 0.84); border: 1px solid var(--ar-edge); transition: border-color 0.12s; }
.ar-on .ar .ar-topbar .ar-tools > button::before { display: none; }
.ar-on .ar .ar-topbar .ar-tools > button:hover, .ar-on .ar .ar-topbar .ar-tools > button:focus-visible { border-color: var(--ar-gold); filter: none; transform: none; }
.ar-on .ar .ar-topbar .ar-me.small { width: 240px; }
/* (a window narrower than the sheet: closer, and the small buttons fewer words; the card's name stays) */
.ar-on .ar-page.narrow .ar-topbar .ar-me { display: flex; }
.ar-on .ar-page.narrower .ar-topbar { gap: 14px; padding: 0 26px; }
.ar-on .ar-page.narrower .ar-top-nav > button { padding: 0 12px; font-size: 17px; letter-spacing: 0.12em; }
.ar-on .ar-page.narrower .ar-top-nav > button::after { left: 12px; right: 12px; }
.ar-on .ar-page.narrower .ar-topbar .ar-me.small { width: 200px; }

/* the screen's own row under it, and the body under that */
.ar-on .ar-topped .ar-head { top: 98px; height: 64px; }
.ar-on .ar-topped .ar-head .ar-title { font-size: 40px; }
.ar-on .ar-topped .ar-body { top: 176px; }
.ar-on .ar-topped.ar-nohead .ar-head { display: none; }
.ar-on .ar-topped.ar-nohead .ar-body { top: 108px; }
/* (the strip over a screen not built on the sheet: the bar, then its Back and name) */
html.ar-on:not(.ar-phone) { --ar-head-h: calc(164px * var(--ar-zoom, 1)); }
.ar-on .ar-strip.ar-topped { height: 164px; }
.ar-on .ar-strip.ar-topped .ar-topbar { position: absolute; }
.ar-on .ar-strip.ar-topped .ar-head { top: 94px; height: 64px; }
.ar-on .ar-strip.ar-topped .ar-head .ar-title { font-size: 40px; }
/* (the main screen: the bar instead of the big logo and the card in the corner; the places a little higher) */
html[data-theme='neon'] .ar-main.ar-topped .ar-logo, html[data-theme='neon'] .ar-main.ar-topped .ar-tr { display: none; }
html[data-theme='neon'] .ar-main.ar-topped .ar-menu { top: 150px; }
/* (low, every computer's window since 21 Nov: its foot level with the day's cards on the right, your picture) */
html[data-theme='neon'] .ar-main.ar-topped.low .ar-menu { top: auto; bottom: 96px; }

/* Played with a controller or the keys (Steam, 21 Nov): where the focus is, plainly, on every Arena screen. Their own
   focus looks (a lighter word, a border) were made for the mouse's hover and were too faint to follow from a sofa. */
.nav-visible.ar-on .ar :focus-visible { outline: 2px solid var(--ar-gold2, #ffe08a) !important; outline-offset: 3px !important; }
.nav-visible.ar-on .ar .cell-btn:focus-visible { outline: none !important; }
/* a controller's A and B on the hints */
.ar-on .ar .ar-key.pad { border-radius: 50%; min-width: 22px; padding: 0; color: #fff; border-bottom-width: 1px; }
.ar-on .ar .ar-key.pad.a { background: #1f6f3f; border-color: #0d3a20; }
.ar-on .ar .ar-key.pad.b { background: #8a1f22; border-color: #4a0f11; }

/* ------------------------------------------------------------------ the v3 kit (your art, 21 Nov; tools/build-ui-v3.py)
   The buttons (gold, ink, red), the plates, the tabs' and the top bar's underline and the top bar's strip, from the kit's
   pieces put together (assets/art/ui-v3/ui/whole/) and stretched as nine-slice borders: the same shapes as before, in the
   kit's own pixels. Hover and press stay as they were (lighter, pressed down). */
html[data-theme='neon'] .ar .ar-btn { border: 0 solid transparent; clip-path: none; box-shadow: none;
  background: none; border-image: url(../assets/art/ui-v3/ui/whole/button-secondary.webp) 0 48 fill / 0 28px / 0 stretch; }
html[data-theme='neon'] .ar .ar-btn:hover, html[data-theme='neon'] .ar .ar-btn:focus-visible { background: none; filter: brightness(1.25); }
html[data-theme='neon'] .ar .ar-btn.small { border-image-width: 0 22px; }
html[data-theme='neon'] .ar .ar-btn.go, html[data-theme='neon'] .ar .ar-top-play { background: none; border: 0 solid transparent; clip-path: none; border-image: url(../assets/art/ui-v3/ui/whole/button-primary.webp) 0 48 fill / 0 28px / 0 stretch; }
/* (the border shorthand resets the border's picture: it always comes first) */
/* (the top bar's PLAY: a plain gold bar, square corners, your call 21 Nov: the kit's run alone, no cut ends) */
html[data-theme='neon'] .ar .ar-topbar .ar-top-play, html[data-theme='neon'] .ar .ar-topbar .ar-top-play:hover, html[data-theme='neon'] .ar .ar-topbar .ar-top-play:focus-visible { border-image: none; background: url(../assets/art/ui-v3/ui/button/primary-mid.webp) 0 0 / auto 100% repeat-x; }
html[data-theme='neon'] .ar .ar-btn.go:hover, html[data-theme='neon'] .ar .ar-btn.go:focus-visible,
html[data-theme='neon'] .ar .ar-top-play:hover, html[data-theme='neon'] .ar .ar-top-play:focus-visible { background: none; filter: brightness(1.1); }
html[data-theme='neon'] .ar .ar-btn.del { border-image-source: url(../assets/art/ui-v3/ui/whole/button-danger.webp); color: #fff1ec; }
/* the plates: ink, the bronze-gold line, cut top left and bottom right, a rivet in the square corners */
html[data-theme='neon'] .ar .ar-plate { background: none; border: 0 solid transparent; box-shadow: none; clip-path: none;
  border-image: url(../assets/art/ui-v3/ui/whole/plate.webp) 64 fill / 16px / 0 stretch; }
/* the tabs' and the top bar's underline: the kit's gold bar with pointed ends */
.ar-on .ar .ar-tabs > button::after, .ar-on .ar .ar-top-nav > button::after { height: 6px; background: url(../assets/art/ui-v3/ui/tab/active.webp) 0 50% / 100% 100% no-repeat; }
/* the top bar: the kit's ink strip with its bronze-gold line along the foot */
.ar-on .ar .ar-topbar { background: url(../assets/art/ui-v3/ui/topbar/strip.webp) 0 0 / auto 100% repeat-x; border-bottom: 0; }

/* (a gold button that can't be pressed, as a price not covered: the kit's red plate, and it stays so on hover; your call
   21 Nov: "it should become red") */
html[data-theme='neon'] .ar .ar-btn.go:disabled, html[data-theme='neon'] .ar .ar-btn.go:disabled:hover, html[data-theme='neon'] .ar .ar-btn.go:disabled:focus-visible {
  border-image-source: url(../assets/art/ui-v3/ui/whole/button-danger.webp); filter: none; color: #ffe9e4; cursor: not-allowed; transform: none; }
html[data-theme='neon'] .ar .ar-btn.go:disabled .ar-price, html[data-theme='neon'] .ar .ar-btn.go:disabled .ar-price * { color: #ffe9e4; }
html[data-theme='neon'] .ar .ar-btn.go:disabled .ar-key { background: rgba(255, 255, 255, 0.25); color: #ffe9e4; }

/* styles/arena-play.css */
/*
 * Arena's Play (ui/arena/play.js; docs/design/arena-2026-11-14/2-play.png): four doors, the rest under them, the chosen
 * one on the right. Sizes are the 1920 x 1080 sheet's.
 */
.ar-on .ar-play .ar-scene { transition: background-image 0.45s ease-out, transform 0.5s ease-out; }
.ar-on .ar-play .ar-body { display: flex; gap: 28px; }
.ar-on .ar .ar-play-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* a door, and a tile (a small door) */
.ar-on .ar .ar-doors { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px; padding-top: 14px; }
.ar-on .ar .ar-tiles { flex: none; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 14px; height: 150px; }
.ar-on .ar .ar-tiles.two { height: 232px; grid-auto-rows: 1fr; }
.ar-on .ar .ar-door { position: relative; display: block; overflow: hidden; background: #120d1c; border: 1px solid var(--ar-edge); box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.2s, border-color 0.2s; animation: ar-in-up 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
.ar-on .ar .ar-door .art { position: absolute; inset: 0; background: center/cover no-repeat; image-rendering: pixelated; transition: transform 0.6s ease-out; }
.ar-on .ar .ar-door::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(10, 7, 16, 0.95) 0, rgba(10, 7, 16, 0.78) 13%, rgba(10, 7, 16, 0) 30%); } /* (21 Nov, your word: the scene fills almost all the door; the shade only behind the words at its foot) */
/* (the kit's tall scenes are painted in their top 70 %, a dark fade under it: that part alone fills the door's height, centred) */
.ar-on .ar .ar-door.door.v3 .art { background-size: auto 142%; background-position: 50% 0; }
.ar-on .ar .ar-door .fig { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 1; pointer-events: none; filter: drop-shadow(0 18px 14px rgba(0, 0, 0, 0.6)); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); }
.ar-on .ar .ar-door .fig canvas { display: block; }
.ar-on .ar .ar-door .tx { position: absolute; left: 22px; right: 18px; bottom: 20px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.ar-on .ar .ar-door .tx b { font: 800 31px/1.05 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-cream); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.7); }
.ar-on .ar .ar-door .tx .ln { font-size: 18px; line-height: 1.3; color: var(--ar-dim); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.6em; }
.ar-on .ar .ar-door .tx small { font: 700 14px/1.2 var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-gold); min-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-door.live .tx small { color: var(--ar-green); }
.ar-on .ar .ar-door:hover, .ar-on .ar .ar-door:focus-visible { transform: translateY(-8px); filter: brightness(1.12); border-color: var(--ar-line2); outline: none; }
.ar-on .ar .ar-door:hover .art, .ar-on .ar .ar-door:focus-visible .art { transform: scale(1.06); }
.ar-on .ar .ar-door:hover .fig { transform: translateX(-50%) scale(1.04); }
.ar-on .ar .ar-door.sel { transform: translateY(-14px); border: 2px solid var(--ar-gold); box-shadow: 0 0 0 1px rgba(226, 194, 124, 0.25), 0 26px 44px rgba(0, 0, 0, 0.7), 0 0 44px rgba(209, 171, 91, 0.22); }
.ar-on .ar .ar-doors:has(.sel) .ar-door:not(.sel):not(:hover) { filter: brightness(0.78) saturate(0.85); }
.ar-on .ar .ar-door:active { transform: translateY(-4px); }
.ar-on .ar .ar-door.mode-closed .art, .ar-on .ar .ar-door.mode-closed .fig { filter: grayscale(1) brightness(0.5); }
.ar-on .ar .ar-door.mode-closed .tx small { color: var(--ar-mute); }

.ar-on .ar .ar-door.tile { clip-path: none; box-shadow: none; }
.ar-on .ar .ar-door.tile::after { background: linear-gradient(0deg, rgba(10, 7, 16, 0.96) 0, rgba(10, 7, 16, 0.55) 60%, rgba(10, 7, 16, 0.25) 100%); }
.ar-on .ar .ar-door.tile .tx { left: 14px; right: 10px; bottom: 12px; gap: 4px; }
.ar-on .ar .ar-door.tile .tx b { font-size: 20px; letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-door.tile .tx small { font: 500 15px/1.25 var(--ar-text); letter-spacing: 0; text-transform: none; color: var(--ar-gold2); white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ar-on .ar .ar-door.tile:hover, .ar-on .ar .ar-door.tile:focus-visible { transform: translateY(-5px); }
.ar-on .ar .ar-door.tile.sel { transform: translateY(-6px); box-shadow: 0 0 26px rgba(209, 171, 91, 0.25); }

/* the chosen one */
.ar-on .ar .ar-play-panel { width: 500px; flex: none; margin-top: 14px; padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 12px; animation: ar-in-right 0.5s 0.1s ease-out both; }
.ar-on .ar .ar-play-panel.swap > * { animation: ar-pop 0.22s ease-out both; }
.ar-on .ar .ar-play-panel h2 { margin: 2px 0 0; font: 800 44px/1 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-gold2); }
.ar-on .ar .ar-play-panel .ln { margin: 0 0 6px; font-size: 20px; line-height: 1.35; color: var(--ar-cream); }
.ar-on .ar .ar-play-panel .st { margin: 0; font: 700 16px/1.3 var(--ar-cap); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ar-gold); }
.ar-on .ar .ar-play-panel .note { margin: 0; padding: 10px 14px; font-size: 17px; line-height: 1.3; color: var(--ar-gold2); border-left: 3px solid var(--ar-gold); background: rgba(209, 171, 91, 0.08); }
.ar-on .ar .ar-play-panel > .ar-kick { margin-top: 10px; }
.ar-on .ar .ar-play-panel .grow { flex: 1; min-height: 8px; }
.ar-on .ar .ar-play-run { padding: 14px 16px; border: 1px solid var(--ar-edge); background: rgba(13, 10, 20, 0.6); display: flex; flex-direction: column; gap: 4px; }
.ar-on .ar .ar-play-run b { font: 700 20px/1.1 var(--ar-cap); letter-spacing: 0.05em; }
.ar-on .ar .ar-play-run span { font-size: 17px; color: var(--ar-dim); }
.ar-on .ar .ar-play-run .ar-thin { height: 5px; margin-top: 6px; background: #2a2140; }
.ar-on .ar .ar-play-run .ar-thin i { display: block; height: 100%; background: linear-gradient(90deg, #b48d3e, var(--ar-gold2)); }
.ar-on .ar .ar-play-go { position: relative; width: 100%; height: 76px; font-size: 28px; letter-spacing: 0.22em; overflow: hidden; }
.ar-on .ar .ar-play-go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%); background-size: 260% 100%; animation: ar-sheen 3.6s ease-in-out infinite; pointer-events: none; }
.ar-on .ar .ar-play-go .ar-key { background: rgba(255, 255, 255, 0.5); border-color: rgba(90, 58, 6, 0.6); color: #1a1309; }
.ar-on .ar .ar-play-go.mode-closed { filter: grayscale(1) brightness(0.7); }
.ar-on .ar .ar-play-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ar-on .ar .ar-play-alt .ar-btn { width: 100%; padding: 0 8px; }

/* phones: the doors as rows, the rest as tiles two by two, the chosen one's button held at the foot */
.ar-on.ar-phone .ar-play .ar-body { display: flex; flex-direction: column; gap: 12px; }
.ar-on.ar-phone .ar .ar-play-left { gap: 12px; flex: none; }
.ar-on.ar-phone .ar .ar-doors { display: flex; flex-direction: column; gap: 10px; padding-top: 0; }
.ar-on.ar-phone .ar .ar-door { clip-path: none; box-shadow: none; height: 104px; animation: none; }
.ar-on.ar-phone .ar .ar-door::after { background: linear-gradient(90deg, rgba(10, 7, 16, 0.96) 0, rgba(10, 7, 16, 0.86) 46%, rgba(10, 7, 16, 0.2) 100%); }
.ar-on.ar-phone .ar .ar-door .tx { left: 16px; right: 34%; top: 0; bottom: 0; justify-content: center; gap: 3px; }
.ar-on.ar-phone .ar .ar-door .tx b { font-size: 23px; }
.ar-on.ar-phone .ar .ar-door .tx .ln { font-size: 15px; min-height: 0; -webkit-line-clamp: 2; }
.ar-on.ar-phone .ar .ar-door .tx small { font-size: 12px; min-height: 0; }
.ar-on.ar-phone .ar .ar-door .tx small:empty { display: none; }
.ar-on.ar-phone .ar .ar-door:hover, .ar-on.ar-phone .ar .ar-door.sel, .ar-on.ar-phone .ar .ar-door:focus-visible { transform: none; }
.ar-on.ar-phone .ar .ar-door.sel { border-width: 2px; }
.ar-on.ar-phone .ar .ar-tiles, .ar-on.ar-phone .ar .ar-tiles.two { grid-template-columns: 1fr 1fr; height: auto; gap: 10px; grid-auto-rows: 84px; }
.ar-on.ar-phone .ar .ar-door.tile { height: 84px; }
.ar-on.ar-phone .ar .ar-door.tile .tx { right: 10px; left: 12px; }
.ar-on.ar-phone .ar .ar-door.tile .tx b { font-size: 18px; }
.ar-on.ar-phone .ar .ar-door.tile .tx small { font-size: 13px; }
/* (a phone: the game against the BOT first, its choices and START in one card; the other doors go straight in) */
.ar-on.ar-phone .ar .ar-play-panel { order: -1; width: auto; flex: none; margin: 0; padding: 16px 14px 14px; gap: 8px; animation: none; }
.ar-on.ar-phone .ar .ar-play-panel > .ar-kick:first-child, .ar-on.ar-phone .ar .ar-play-panel .grow, .ar-on.ar-phone .ar .ar-play-panel .ar-play-run, .ar-on.ar-phone .ar .ar-play-panel .ar-chips-line { display: none; }
.ar-on.ar-phone .ar .ar-play-panel h2 { font-size: 28px; margin: 0; }
.ar-on.ar-phone .ar .ar-play-panel .ln { font-size: 16px; margin: 0; color: var(--ar-dim); }
.ar-on.ar-phone .ar .ar-play-panel > .ar-kick { margin-top: 2px; font-size: 12px; }
.ar-on.ar-phone .ar .ar-play-panel .st, .ar-on.ar-phone .ar .ar-play-panel .note { font-size: 14px; }
.ar-on.ar-phone .ar .ar-play-go { height: 58px; font-size: 22px; }

@media (prefers-reduced-motion: reduce) { .ar-on .ar .ar-door, .ar-on .ar .ar-door .art { transition: none; } .ar-on .ar .ar-play-go::after { animation: none; } }
html.reduce-motion.ar-on .ar .ar-door, html.reduce-motion.ar-on .ar .ar-door .art { transition: none; }
html.reduce-motion.ar-on .ar .ar-play-go::after { animation: none; }
/* The Daily challenge's pill on its tile (17 Nov): "New" in gold until today's is played, then "Done: 420 pts" in green. */
.ar-on .ar .ar-door-pill { position: absolute; z-index: 3; top: 10px; right: 10px; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; font: 800 12px/1 var(--ar-cap); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; border-radius: 999px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); }
.ar-on .ar .ar-door-pill.new { color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border: 1px solid #f0d9a0; animation: ar-pill-new 1.8s ease-in-out infinite; }
.ar-on .ar .ar-door-pill.done { color: #c9f7dc; background: rgba(13, 46, 32, 0.92); border: 1px solid #58d6a4; }
.ar-on .ar .ar-door-pill[hidden] { display: none; }
.ar-on .ar .ar-door-pill.live { gap: 6px; color: #c9f7dc; background: rgba(13, 46, 32, 0.92); border: 1px solid #58d6a4; }
.ar-on .ar .ar-door-pill.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #58d6a4; box-shadow: 0 0 6px #58d6a4; }
.ar-on .ar .ar-door-pill.off { color: #cfc6dd; background: rgba(20, 15, 30, 0.9); border: 1px solid #6c5f86; }
@keyframes ar-pill-new { 0%, 100% { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(226, 194, 124, 0.55); } 50% { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(226, 194, 124, 0); } }
@media (prefers-reduced-motion: reduce) { .ar-on .ar .ar-door-pill.new { animation: none; } }
.ar-on.ar-phone .ar .ar-door-pill { top: 8px; right: 8px; height: 22px; padding: 0 8px; font-size: 10.5px; letter-spacing: 0.08em; max-width: 32%; overflow: hidden; }
/* A phone's "More to do" (17 Nov): one tile to a row, as the doors over them, so a title and its line are read whole
   ("Daily chall…", "…alone o…" were cut two to a row) and a tile's pill stands clear of its words, over the picture. */
.ar-on.ar-phone .ar .ar-tiles, .ar-on.ar-phone .ar .ar-tiles.two { grid-template-columns: 1fr; grid-auto-rows: 78px; gap: 8px; }
.ar-on.ar-phone .ar .ar-door.tile { height: 78px; }
.ar-on.ar-phone .ar .ar-door.tile .tx { left: 14px; right: 30%; }
.ar-on.ar-phone .ar .ar-door.tile .tx b { font-size: 19px; white-space: normal; }
.ar-on.ar-phone .ar .ar-door.tile .tx small { font-size: 12.5px; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ar-on.ar-phone .ar .ar-door-pill { top: 50%; right: 10px; transform: translateY(-50%); max-width: 28%; white-space: normal; text-align: center; height: auto; min-height: 22px; padding: 4px 8px; line-height: 1.1; border-radius: 12px; overflow: visible; }

/* ------------------------------------------------------------------ the sample's layout in today's look (19 Nov, the owner:
   "the champ being faded on bottom and the text starting there"). A door: its place and its champion in the upper part,
   fading out into the door's dark ground; its name and words start in that fade. "More to do": small tiles, the picture
   on the left fading into the tile, the words beside it. A phone: the doors as rows, the champion on the left fading into
   the row, the words on the right; the chosen one's card under them, its START held over the foot while out of sight. */
.ar-on .ar .ar-door.door { background: linear-gradient(180deg, #120d1c, #0c0913); }
.ar-on .ar .ar-door.door .art { inset: 0 0 24% 0; -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%); mask-image: linear-gradient(180deg, #000 52%, transparent 100%); }
.ar-on .ar .ar-door.door::after { background: linear-gradient(0deg, rgba(10, 7, 16, 0.92) 0, rgba(10, 7, 16, 0.6) 22%, rgba(10, 7, 16, 0) 48%); }
.ar-on .ar .ar-door.door .fig { bottom: 96px; -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 92%); mask-image: linear-gradient(180deg, #000 58%, transparent 92%); }
.ar-on .ar .ar-door.door .tx { bottom: 22px; gap: 8px; }
.ar-on .ar .ar-door.door .tx b { font-size: 30px; }
.ar-on .ar .ar-door.door .tx .ln { font-size: 17px; }
.ar-on .ar .ar-tiles { height: 120px; }
.ar-on .ar .ar-tiles.two { height: 200px; }
.ar-on .ar .ar-door.tile { background: linear-gradient(180deg, rgba(30, 23, 44, 0.95), rgba(14, 10, 22, 0.97)); border-color: var(--ar-line); }
.ar-on .ar .ar-door.tile .art { inset: 0 auto 0 0; width: 38%; -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 100%); mask-image: linear-gradient(90deg, #000 45%, transparent 100%); }
.ar-on .ar .ar-door.tile::after { display: none; }
.ar-on .ar .ar-door.tile .tx { left: 36%; right: 12px; top: 0; bottom: 0; justify-content: center; }
.ar-on .ar .ar-door.tile .tx b { font-size: 19px; }
.ar-on .ar .ar-door.tile .tx small { font-size: 14px; color: var(--ar-dim); }
.ar-on .ar .ar-door.tile .ar-door-pill { top: 8px; right: 8px; }

/* phones */
.ar-on.ar-phone .ar .ar-door.door { height: 112px; background: linear-gradient(90deg, #120d1c, #0c0913); }
.ar-on.ar-phone .ar .ar-door.door .art { inset: 0 auto 0 0; width: 40%; -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 100%); mask-image: linear-gradient(90deg, #000 40%, transparent 100%); }
.ar-on.ar-phone .ar .ar-door.door::after { display: none; }
.ar-on.ar-phone .ar .ar-door.door .fig { left: 20%; bottom: auto; top: 6px; transform: translateX(-50%); -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 78%); mask-image: linear-gradient(180deg, #000 52%, transparent 78%); }
.ar-on.ar-phone .ar .ar-door.door .tx { left: 38%; right: 12px; top: 0; bottom: 0; justify-content: center; gap: 3px; }
.ar-on.ar-phone .ar .ar-door.door .tx b { font-size: 21px; line-height: 1.05; }
.ar-on.ar-phone .ar .ar-door.door .tx .ln { font-size: 14px; line-height: 1.25; -webkit-line-clamp: 2; }
.ar-on.ar-phone .ar .ar-door.door .tx small { font-size: 11.5px; }
.ar-on.ar-phone .ar .ar-door.door .ar-door-pill { top: 8px; right: 8px; transform: none; }
.ar-on.ar-phone .ar .ar-play-panel { order: 0; }
.ar-on.ar-phone .ar .ar-play-left > .ar-play-panel { margin: 2px 0 4px; }
.ar-on.ar-phone .ar .ar-door.tile .art { width: 30%; }
.ar-on.ar-phone .ar .ar-door.tile .tx { left: 32%; right: 30%; }
.ar-on.ar-phone .ar-play-pinned .ar-body { padding-bottom: calc(var(--safe-b) + 92px); }
.ar-on .ar-play-pinbar { position: absolute; z-index: 12; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(var(--safe-b) + 10px); background: linear-gradient(180deg, rgba(7, 6, 10, 0), rgba(7, 6, 10, 0.94) 32%); }
.ar-on .ar-play-pinbar[hidden] { display: none; }
.ar-on .ar .ar-play-pin { width: 100%; height: 56px; font-size: 18px; letter-spacing: 0.14em; white-space: normal; text-align: center; line-height: 1.1; }
/* (a phone's "More to do": each tile as tall as its words, read whole; its pill over its picture) */
.ar-on.ar-phone .ar .ar-tiles, .ar-on.ar-phone .ar .ar-tiles.two { grid-auto-rows: auto; }
.ar-on.ar-phone .ar .ar-door.tile { height: auto; min-height: 78px; }
.ar-on.ar-phone .ar .ar-door.tile .tx { position: relative; inset: auto; margin-left: 32%; padding: 12px 12px 12px 0; min-height: 78px; }
.ar-on.ar-phone .ar .ar-door.tile .tx small { -webkit-line-clamp: unset; display: block; }
.ar-on.ar-phone .ar .ar-door.tile .ar-door-pill { left: 6px; right: auto; top: 6px; transform: none; max-width: 28%; font-size: 9.5px; }

/* styles/arena-heroes.css */
/*
 * Arena's Heroes, the Champions tab (ui/arena/heroes.js; the owner's ask of 20 Nov): the champions as cards in a grid,
 * a press opening the champion's panel (on a computer from the right, the grid still there on the left; on a phone over
 * the whole screen). Sizes are the 1920 x 1080 sheet's; on a phone the page's own pixels.
 * One small set of parts, the same everywhere on this page:
 *   the slate      the dark ground of a card, its band and the panel (#110d18 to #0a0810)
 *   the bronze     the one frame of every card (#6b5631), the lines of the panel (--ar-line)
 *   the metals     a card's corner plates and tier badge, its tier's metal (I bronze, II iron, III mithril, IV adamant,
 *                  V runite, the owner's call): the only thing that changes from card to card
 *   the gold       the card whose panel is open, lit from outside its frame; the chosen tab, slot or item (never a tier)
 *   the teal       mastery (its bar on the card, in the two halves): the cool light of progress
 *   ivory text     Alegreya SC for names and labels, Alegreya for the rest
 * The other tabs of the Inventory (items, mascots, skins, looks) are their own pages (arena-items.css, arena-shop.css).
 */

/* rarity, wherever an item or a skin is named */
.ar-on .ar .q-rare b { color: #7db8ff; } .ar-on .ar .q-epic b { color: #cf9bff; } .ar-on .ar .q-legendary b { color: #ffb347; }

/* ------------------------------------------------------------------ the search, the order, the factions (other pages use these too) */
.ar-on .ar .ar-input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; font: 500 18px/1 var(--ar-text); color: var(--ar-cream); background: rgba(8, 5, 14, 0.72); border: 1px solid var(--ar-edge); border-radius: 0; outline: none; box-shadow: none; transition: border-color 0.12s; }
.ar-on .ar .ar-input::placeholder { color: var(--ar-mute); }
.ar-on .ar .ar-input:focus { border-color: var(--ar-gold); }
.ar-on .ar .ar-select { flex: none; width: 176px; padding: 0 8px; }
.ar-on .ar .ar-select option { background: #171222; color: var(--ar-cream); }
.ar-on .ar .ar-facs { display: flex; gap: 6px; flex-wrap: wrap; }
.ar-on .ar .ar-facs > button { height: 36px; padding: 0 12px; font: 700 14px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c, var(--ar-dim)); border: 1px solid var(--ar-edge); background: rgba(13, 10, 20, 0.6); transition: color 0.12s, border-color 0.12s; }
.ar-on .ar .ar-facs > button:hover, .ar-on .ar .ar-facs > button:focus-visible { border-color: var(--ar-line2); outline: none; }
.ar-on .ar .ar-facs > button.on { color: #1a1309; background: var(--ar-gold); border-color: #f0d9a0; }
.ar-on .ar .ar-none { grid-column: 1 / -1; margin: 12px 4px; font-size: 18px; color: var(--ar-mute); }
.ar-on .ar .ar-seg { display: flex; flex: none; border-bottom: 1px solid var(--ar-line); margin-right: 6px; }
.ar-on .ar .ar-seg > button { flex: 1; height: 44px; text-align: center; font: 700 15px/1 var(--ar-cap); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ar-dim); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color 0.12s, border-color 0.12s; }
.ar-on .ar .ar-seg > button:hover, .ar-on .ar .ar-seg > button:focus-visible { color: var(--ar-cream); outline: none; }
.ar-on .ar .ar-seg > button.on { color: var(--ar-gold2); border-bottom-color: var(--ar-gold); }
/* an item's rarity frame (ui/widgets.js framedItem) sits over its picture */
.ar-on .ar .if-wrap { position: relative; display: inline-grid; place-items: center; }

/* ------------------------------------------------------------------ the metals of the tiers (the owner's call, 20 Nov) */
.ar-on .ar :is(.ar-hc-card, .ar-metal, .ar-tag.tier) { --m: #2a2533; --mh: #4a4358; --ml: color-mix(in srgb, var(--m) 55%, #000); }
.ar-on .ar :is(.ar-hc-card, .ar-metal, .ar-tag.tier).m-1 { --m: #a0643a; --mh: #d08a52; }
.ar-on .ar :is(.ar-hc-card, .ar-metal, .ar-tag.tier).m-2 { --m: #5f6168; --mh: #9a9ea8; }
.ar-on .ar :is(.ar-hc-card, .ar-metal, .ar-tag.tier).m-3 { --m: #3b4f9a; --mh: #8ea6f0; }
.ar-on .ar :is(.ar-hc-card, .ar-metal, .ar-tag.tier).m-4 { --m: #2f6b45; --mh: #6fc489; }
.ar-on .ar :is(.ar-hc-card, .ar-metal, .ar-tag.tier).m-5 { --m: #2c8a92; --mh: #74e0e2; }
.ar-on .ar .ar-hc-card.locked { --m: #221d2c; --mh: #3a3347; }

/* ------------------------------------------------------------------ the page: the list on the left, the panel on the right */
/* (its place, the Items tab's castle, dimmed further: a calm ground, the cards' art leads) */
.ar-on .ar-heroes:has(.ar-hc) > .ar-dim { --dim: 0.8 !important; }
.ar-on .ar .ar-heroes-body.ar-hc { position: relative; height: 100%; }
.ar-on .ar .ar-hc-list { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: right 0.26s cubic-bezier(0.2, 0.9, 0.3, 1); }
.ar-on .ar .ar-hc.panel-open .ar-hc-list { right: 772px; }
.ar-on .ar .ar-hc-tools { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 0 6px; }
.ar-on .ar .ar-hc-find { display: flex; gap: 8px; flex: 0 1 560px; min-width: 300px; }
.ar-on .ar .ar-hc-count { margin-left: auto; font: 700 15px/1 var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-dim); white-space: nowrap; }
.ar-on .ar .ar-hc-grid { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 212px)); justify-content: center; gap: 20px 16px; align-content: start; grid-auto-rows: max-content;
  padding: 8px 12px 28px 8px; scrollbar-width: thin; scrollbar-color: var(--ar-line2) transparent; }

/* ------------------------------------------------------------------ a champion's card */
.ar-on .ar .ar-hc-card { position: relative; display: flex; flex-direction: column; min-width: 0; color: var(--ar-cream); background: #110d18; border: 1px solid #6b5631;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7), 0 12px 24px rgba(0, 0, 0, 0.45); transition: transform 0.14s, box-shadow 0.14s, filter 0.14s;
  animation: ar-pop 0.3s ease-out both; animation-delay: calc(var(--i, 0) * 14ms); }
.ar-on .ar .ar-hc-card:hover { transform: translateY(-4px); filter: brightness(1.08); }
.ar-on .ar .ar-hc-card:focus-visible { outline: 2px solid var(--ar-gold2); outline-offset: 3px; }
/* (the one whose panel is open: lit gold from outside its frame, so gold never stands for a tier) */
.ar-on .ar .ar-hc-card.sel { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7), 0 0 0 2px #e2c27c, 0 0 24px 4px rgba(209, 171, 91, 0.45); }
/* its corners: four metal plates, light from the top left, a rivet in each; only the metal changes */
.ar-on .ar .ar-hc-card .cn { position: absolute; z-index: 4; width: 30px; height: 30px; pointer-events: none; }
.ar-on .ar .ar-hc-card .cn::before { content: ''; position: absolute; inset: 0; clip-path: var(--cut);
  background: radial-gradient(circle at var(--rx) var(--ry), var(--mh) 0 2.2px, var(--ml) 3px 4.4px, transparent 5px), linear-gradient(135deg, var(--mh) 0%, var(--m) 50%, var(--ml) 100%); }
.ar-on .ar .ar-hc-card .cn.tl { left: -1px; top: -1px; --rx: 9px; --ry: 9px; --cut: polygon(0 0, 100% 0, 100% 34%, 34% 100%, 0 100%); }
.ar-on .ar .ar-hc-card .cn.tr { right: -1px; top: -1px; --rx: calc(100% - 9px); --ry: 9px; --cut: polygon(0 0, 100% 0, 100% 100%, 66% 100%, 0 34%); }
.ar-on .ar .ar-hc-card .cn.bl { left: -1px; bottom: -1px; --rx: 9px; --ry: calc(100% - 9px); --cut: polygon(0 0, 34% 0, 100% 66%, 100% 100%, 0 100%); }
.ar-on .ar .ar-hc-card .cn.br { right: -1px; bottom: -1px; --rx: calc(100% - 9px); --ry: calc(100% - 9px); --cut: polygon(66% 0, 100% 0, 100% 100%, 0 100%, 0 66%); }
.ar-on .ar .ar-hc-card.m-5 .cn { filter: drop-shadow(0 0 3px rgba(116, 224, 226, 0.75)); }
.ar-on .ar .ar-hc-card.locked .cn::before { background: linear-gradient(135deg, var(--mh) 0%, var(--m) 50%, var(--ml) 100%); }
/* its picture on its dark ground */
.ar-on .ar .ar-hc-card .art { position: relative; flex: none; display: block; height: 236px; overflow: hidden; background: radial-gradient(ellipse 72% 80% at 50% 34%, #2b2440 0%, #17121f 62%, #0d0a13 100%); }
.ar-on .ar .ar-hc-card .art .pic { display: block; width: 100%; height: 100%; }
.ar-on .ar .ar-hc-card .art .pic.painted { object-fit: cover; object-position: 50% 0; }
.ar-on .ar .ar-hc-card .art .pic.sprite { object-fit: contain; object-position: 50% 30%; padding: 14px 10px 48px; image-rendering: pixelated; }
.ar-on .ar .ar-hc-card .art .pic.drawn { display: grid; place-items: center; padding-bottom: 40px; }
.ar-on .ar .ar-hc-card.locked .art .pic { filter: grayscale(1) brightness(0.42); }
.ar-on .ar .ar-hc-card.locked.free .art .pic { filter: grayscale(0.35) brightness(0.75); }
/* its factions top left, its tier top right */
.ar-on .ar .ar-hc-card .facs { position: absolute; z-index: 3; left: 34px; top: 10px; display: flex; gap: 2px; }
.ar-on .ar .ar-hc-card .facs .fac { display: grid; place-items: center; }
.ar-on .ar .ar-hc-card .facs img { display: block; width: 34px; height: 34px; margin: 0; vertical-align: 0; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8)); }
.ar-on .ar .ar-hc-card .tier { position: absolute; z-index: 3; right: 34px; top: 11px; min-width: 42px; height: 32px; padding: 0 9px; display: grid; place-items: center; font: 800 19px/1 var(--ar-cap); letter-spacing: 0.06em; color: #fff8e8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85), 0 0 5px rgba(0, 0, 0, 0.5); background: linear-gradient(180deg, var(--mh) 0%, var(--m) 55%, var(--ml) 100%); border: 1px solid var(--ml);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.35), inset -1px -1px 0 rgba(0, 0, 0, 0.45), 0 3px 8px rgba(0, 0, 0, 0.55); }
.ar-on .ar .ar-hc-card .tier.lock { color: var(--ar-mute); background: #17131f; border-color: #3a3050; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55); }
.ar-on .ar .ar-hc-card .tier img, .ar-on .ar .ar-hc-card .tier canvas, .ar-on .ar .ar-hc-card .tier svg { width: 18px; height: 18px; image-rendering: pixelated; opacity: 0.85; }
.ar-on .ar .ar-hc-card .new-mark { position: absolute; z-index: 5; left: 50%; top: 14px; transform: translateX(-50%); }
/* its name, its role under it, at the picture's foot */
.ar-on .ar .ar-hc-card .id { position: absolute; z-index: 2; left: 0; right: 0; top: 236px; transform: translateY(-100%); display: flex; flex-direction: column; gap: 4px; padding: 40px 14px 10px;
  background: linear-gradient(0deg, rgba(13, 10, 19, 0.97) 0%, rgba(13, 10, 19, 0.78) 48%, rgba(13, 10, 19, 0) 100%); pointer-events: none; }
.ar-on .ar .ar-hc-card .nm { font: 800 25px/1.02 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); text-shadow: 0 2px 0 #000; overflow-wrap: break-word; hyphens: auto; text-wrap: balance; }
.ar-on .ar .ar-hc-card .role { font: 700 14px/1 var(--ar-cap); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ar-dim); }
.ar-on .ar .ar-hc-card.locked .nm { color: var(--ar-dim); }
/* the band at its foot: mastery, what it wears, its numbers, its type */
.ar-on .ar .ar-hc-card .band { position: relative; flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 11px 14px 14px; background: linear-gradient(180deg, #0f0c16, #09070e); border-top: 1px solid rgba(226, 194, 124, 0.22); }
.ar-on .ar .ar-hc-card .mrow { display: flex; align-items: center; gap: 8px; height: 20px; }
.ar-on .ar .ar-hc-card .stars { display: flex; gap: 2px; font-size: 19px; line-height: 1; }
.ar-on .ar .ar-hc-card .stars i { font-style: normal; color: #3b3448; }
.ar-on .ar .ar-hc-card .stars i.on { color: var(--ar-gold); }
.ar-on .ar .ar-hc-card .stars.all i { color: #f0d391; text-shadow: 0 0 8px rgba(209, 171, 91, 0.65); }
.ar-on .ar .ar-hc-card .mrow .sk-mark { position: static; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; font: 800 15px/1 var(--ar-text); color: #1a1309;
  background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border: 1px solid #f0d9a0; border-radius: 0; }
.ar-on .ar .ar-hc-card .mrow .sk-mark i { font-style: normal; font-size: 12px; }
.ar-on .ar .ar-hc-card .mbar { display: block; height: 4px; background: #241d33; }
.ar-on .ar .ar-hc-card .mbar i { display: block; height: 100%; background: linear-gradient(90deg, #3fb6a8, #7fe0d0); }
.ar-on .ar .ar-hc-card .gear { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ar-on .ar .ar-hc-card .gslot { position: relative; height: 50px; display: grid; place-items: center; background: #07060b; border: 1px solid var(--rc, #342c44); box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.7); }
.ar-on .ar .ar-hc-card .gslot.q-common { --rc: #6d6680; } .ar-on .ar .ar-hc-card .gslot.q-rare { --rc: #4f7fb8; } .ar-on .ar .ar-hc-card .gslot.q-epic { --rc: #8a62b0; } .ar-on .ar .ar-hc-card .gslot.q-legendary { --rc: #b87a2a; }
.ar-on .ar .ar-hc-card .gslot .plus { font: 300 24px/1 var(--ar-text); font-style: normal; color: #4a4358; }
.ar-on .ar .ar-hc-card .gslot img, .ar-on .ar .ar-hc-card .gslot canvas { image-rendering: pixelated; }
.ar-on .ar .ar-hc-card .how { display: flex; align-items: center; gap: 10px; min-height: 90px; padding: 0 2px; font: 600 17px/1.25 var(--ar-text); color: var(--ar-dim); }
.ar-on .ar .ar-hc-card .how img, .ar-on .ar .ar-hc-card .how canvas, .ar-on .ar .ar-hc-card .how svg { flex: none; width: 20px; height: 20px; image-rendering: pixelated; }
.ar-on .ar .ar-hc-card.free .how { color: var(--ar-gold2); }
.ar-on .ar .ar-hc-card .nums { display: flex; align-items: center; gap: 14px; height: 26px; font: 700 20px/1 var(--ar-text); color: var(--ar-cream); }
.ar-on .ar .ar-hc-card .nums > span { display: inline-flex; align-items: center; gap: 6px; }
.ar-on .ar .ar-hc-card .nums img, .ar-on .ar .ar-hc-card .nums canvas { image-rendering: pixelated; }
.ar-on .ar .ar-hc-card .nums .dt { margin-left: auto; gap: 3px; }
.ar-on .ar .ar-hc-card .dti { display: grid; place-items: center; }
.ar-on .ar .ar-hc-card .dt-pic { margin: 0; vertical-align: 0; }
.ar-on .ar .ar-hc-card .ty { display: flex; align-items: center; gap: 10px; height: 26px; }
.ar-on .ar .ar-hc-card .ty .chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; font: 700 15px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ar-cream); background: #1a1524; border: 1px solid #3a3050; white-space: nowrap; }
.ar-on .ar .ar-hc-card .ty .wk, .ar-on .ar .ar-hc-card .ty .rs { display: inline-flex; align-items: center; gap: 2px; }
.ar-on .ar .ar-hc-card .ty em { font: 800 17px/1 var(--ar-text); font-style: normal; }
.ar-on .ar .ar-hc-card .ty .wk em { color: var(--ar-red); } .ar-on .ar .ar-hc-card .ty .rs em { color: var(--ar-green); }

/* ------------------------------------------------------------------ the panel */
.ar-on .ar .ar-hc-panel { position: absolute; z-index: 6; top: 0; right: 0; bottom: 0; width: 752px; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(23, 18, 33, 0.985), rgba(11, 8, 17, 0.985));
  border: 1px solid var(--ar-line); box-shadow: -26px 0 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(226, 194, 124, 0.18); }
.ar-on .ar .ar-hc-panel[hidden] { display: none; }
.ar-on .ar .ar-hc-panel:focus { outline: none; }
.ar-on .ar .ar-hc-panel.slide { animation: ar-hc-in 0.26s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes ar-hc-in { from { opacity: 0; transform: translateX(56px); } to { opacity: 1; transform: none; } }
.ar-on .ar .ar-hc-phead { flex: none; display: flex; align-items: center; gap: 8px; height: 68px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--ar-edge); background: rgba(10, 8, 15, 0.7); }
.ar-on .ar .ar-hc-phead .grow { flex: 1; min-width: 0; }
.ar-on .ar .ar-hc-step, .ar-on .ar .ar-hc-x { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 16px; font: 700 15px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ar-cream); white-space: nowrap;
  background: linear-gradient(180deg, rgba(201, 206, 214, 0.07), transparent 30px), rgba(25, 25, 31, 0.92); border: 1px solid #575b61; box-shadow: inset 0 1px 0 rgba(226, 194, 124, 0.24); transition: border-color 0.12s, color 0.12s; }
.ar-on .ar .ar-hc-step > span, .ar-on .ar .ar-hc-x > span { font-size: 26px; line-height: 1; color: var(--ar-gold); }
.ar-on .ar .ar-hc-step:hover, .ar-on .ar .ar-hc-step:focus-visible, .ar-on .ar .ar-hc-x:hover, .ar-on .ar .ar-hc-x:focus-visible { border-color: var(--ar-gold); outline: none; }
.ar-on .ar .ar-hc-step:disabled { opacity: 0.4; cursor: default; }
.ar-on .ar .ar-hc-x:not(.back) { width: 46px; padding: 0; font: 400 32px/1 var(--ar-text); }
.ar-on .ar .ar-hc-pbody { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: 0 22px 26px;
  scrollbar-width: thin; scrollbar-color: var(--ar-line2) transparent; }
.ar-on .ar .ar-hc-pbody > * { flex: none; }
.ar-on .ar .ar-hc-pbody.in > * { animation: ar-pop 0.24s ease-out both; }
/* its big figure on its type's scene */
.ar-on .ar .ar-hc-stage { position: relative; height: 470px; margin: 0 -22px; overflow: hidden;
  background: linear-gradient(0deg, #130f1c 0, rgba(19, 15, 28, 0.55) 22%, rgba(19, 15, 28, 0) 55%), var(--scene, none) center 30% / cover no-repeat, #130f1c; }
.ar-on .ar .ar-hc-fig { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); pointer-events: none; filter: drop-shadow(0 24px 20px rgba(0, 0, 0, 0.6)); }
.ar-on .ar .ar-hc-fig canvas { display: block; }
.ar-on .ar .ar-hc-fig.locked canvas { filter: grayscale(0.9) brightness(0.5); }
/* who it is */
.ar-on .ar .ar-hc-name { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; margin-top: -30px; }
.ar-on .ar .ar-hc-name .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ar-on .ar .ar-hc-name .ar-tag { color: var(--c, var(--ar-gold2)); border-color: var(--c, var(--ar-line2)); background: rgba(13, 10, 20, 0.92); }
.ar-on .ar .ar-hc-name .ar-tag img { margin: 0; vertical-align: 0; }
.ar-on .ar .ar-hc-name .ar-tag.plain { color: var(--ar-cream); border-color: #575b61; }
.ar-on .ar .ar-hc-name .ar-tag.tier { color: #fff8e8; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8); background: linear-gradient(180deg, var(--mh) 0%, var(--m) 55%, var(--ml) 100%); border-color: var(--ml); }
.ar-on .ar .ar-hc-name h2 { margin: 0; font: 800 54px/1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.7); overflow-wrap: break-word; }
.ar-on .ar .ar-hc-name .quote { margin: 0; font-style: italic; font-size: 19px; line-height: 1.3; color: var(--ar-dim); }
.ar-on .ar .ar-hc-name .quote.none { font-style: normal; color: var(--ar-gold2); }
.ar-on .ar .ar-hc-name .ar-btn { align-self: flex-start; }
/* what it wears: three slots in a row; a press opens what fits under them */
.ar-on .ar .ar-hc .ar-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ar-on .ar .ar-hc .ar-slots:empty { display: none; }
.ar-on .ar .ar-hc .ar-slot { position: relative; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 86px; padding: 8px 10px 8px 8px; background: rgba(13, 10, 20, 0.9); border: 1px solid var(--ar-edge); transition: transform 0.14s, border-color 0.14s, background 0.14s; }
.ar-on .ar .ar-hc .ar-slot .ic { position: relative; flex: none; width: 60px; height: 60px; display: grid; place-items: center; background: #0a0710; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-hc .ar-slot .ic .plus { font: 300 34px/1 var(--ar-text); color: var(--ar-mute); }
.ar-on .ar .ar-hc .ar-slot .tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-on .ar .ar-hc .ar-slot .tx small { font: 700 12px/1 var(--ar-cap); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ar-mute); }
.ar-on .ar .ar-hc .ar-slot .tx b { font: 700 16px/1.1 var(--ar-cap); letter-spacing: 0.03em; overflow-wrap: break-word; }
.ar-on .ar .ar-hc .ar-slot .tx em { font-style: normal; font-size: 14px; line-height: 1.2; color: var(--ar-green); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ar-on .ar .ar-hc .ar-slot.empty .tx b, .ar-on .ar .ar-hc .ar-slot.empty .tx em { color: var(--ar-mute); }
.ar-on .ar .ar-hc .ar-slot:hover, .ar-on .ar .ar-hc .ar-slot:focus-visible { transform: translateY(-2px); border-color: var(--ar-line2); outline: none; }
.ar-on .ar .ar-hc .ar-slot.on { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); }
.ar-on .ar .ar-hc .ar-slot.flash { animation: ar-flash 0.55s ease-out; }
@keyframes ar-flash { 0% { filter: brightness(2.2); box-shadow: 0 0 0 0 rgba(226, 194, 124, 0.9); } 100% { filter: brightness(1); box-shadow: 0 0 0 30px rgba(226, 194, 124, 0); } }
/* the drawer: everything of yours that fits the slot, then what's still to find */
.ar-on .ar .ar-hc .ar-drawer { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; background: linear-gradient(180deg, rgba(30, 23, 44, 0.96), rgba(12, 9, 19, 0.98)); border: 1px solid var(--ar-line); }
.ar-on .ar .ar-hc .ar-drawer[hidden] { display: none; }
.ar-on .ar .ar-hc .ar-drawer.slide { animation: ar-in-up 0.24s ease-out; }
.ar-on .ar .ar-hc .ar-drawer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; }
.ar-on .ar .ar-hc .ar-drawer-head .ar-kick { flex: 1 1 calc(100% - 60px); min-width: 0; }
.ar-on .ar .ar-hc .ar-drawer-head .ar-drawer-find { flex: 1 1 200px; min-width: 120px; height: 44px; font-size: 16px; }
.ar-on .ar .ar-hc .ar-drawer-head .grow { flex: 0 0 0; }
.ar-on .ar .ar-hc .ar-drawer-head .acts { flex: none; display: flex; gap: 8px; margin-left: auto; }
.ar-on .ar .ar-hc .ar-drawer-head .ar-btn { height: 44px; padding: 0 16px; font-size: 15px; gap: 8px; }
.ar-on .ar .ar-hc .ar-drawer-head .ar-btn .cost { display: inline-flex; align-items: center; gap: 4px; font: 700 15px/1 var(--ar-text); letter-spacing: 0; }
.ar-on .ar .ar-hc .ar-drawer-head .ar-btn .cost img, .ar-on .ar .ar-hc .ar-drawer-head .ar-btn .cost canvas { width: 18px; height: 18px; image-rendering: pixelated; }
.ar-on .ar .ar-hc .ar-drawer-head .ar-btn:disabled { filter: grayscale(1) brightness(0.6); cursor: default; }
.ar-on .ar .ar-hc .ar-drawer-head .ar-btn .ar-key { background: rgba(255, 255, 255, 0.5); border-color: rgba(90, 58, 6, 0.6); color: #1a1309; min-width: 0; height: 24px; font-size: 13px; }
.ar-on .ar .ar-hc .ar-drawer-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font: 400 30px/1 var(--ar-text); color: var(--ar-cream); background: rgba(25, 25, 31, 0.92); border: 1px solid #575b61; }
.ar-on .ar .ar-hc .ar-drawer-x:hover, .ar-on .ar .ar-hc .ar-drawer-x:focus-visible { border-color: var(--ar-gold); color: var(--ar-gold2); outline: none; }
.ar-on .ar .ar-hc .ar-drawer-row { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
.ar-on .ar .ar-hc .ar-drawer-row::-webkit-scrollbar { height: 6px; }
.ar-on .ar .ar-hc .ar-drawer-row .ar-icard[hidden] { display: none; }
.ar-on .ar .ar-hc .ar-drawer .ar-none { margin: 10px 4px; }
.ar-on .ar .ar-icard { flex: none; width: 226px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(13, 10, 20, 0.72); border: 1px solid var(--ar-edge); transition: border-color 0.12s, transform 0.12s, background 0.12s; }
.ar-on .ar .ar-icard .ic { position: relative; flex: none; width: 58px; height: 58px; display: grid; place-items: center; }
.ar-on .ar .ar-icard .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-on .ar .ar-icard .tx b { font: 700 16px/1.1 var(--ar-cap); letter-spacing: 0.03em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ar-on .ar .ar-icard .tx em { font-style: normal; font-size: 14px; line-height: 1.15; color: var(--ar-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-icard .tx em.good { color: var(--ar-green); } .ar-on .ar .ar-icard .tx em.bad { color: var(--ar-red); }
.ar-on .ar .ar-icard .tx small { font-size: 13px; line-height: 1.1; color: var(--ar-gold); }
.ar-on .ar .ar-icard:hover, .ar-on .ar .ar-icard:focus-visible { border-color: var(--ar-line2); transform: translateY(-2px); outline: none; }
.ar-on .ar .ar-icard.sel { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.92); }
.ar-on .ar .ar-icard.missing { opacity: 0.55; }
.ar-on .ar .ar-icard.missing .ic { filter: grayscale(1); }
.ar-on .ar .ar-icard.missing .tx small { color: var(--ar-mute); }
/* its numbers, the two halves, the way to its tree */
.ar-on .ar .ar-hc .ar-hero-numbers { padding: 6px 16px 8px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-hero-stats { display: flex; flex-direction: column; }
.ar-on .ar .ar-hc .ar-hero-halves:empty { display: none; }
.ar-on .ar .ar-hc .ar-hero-halves .hv-halves { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.ar-on .ar .ar-metals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ar-on .ar .ar-metal { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px 0 5px; font: 700 13px/1 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-dim); border: 1px solid transparent; }
.ar-on .ar .ar-metal i { position: relative; flex: none; width: 16px; height: 16px; background: radial-gradient(circle at 50% 50%, var(--mh) 0 1.5px, var(--ml) 2.1px 3px, transparent 3.5px), linear-gradient(135deg, var(--mh) 0%, var(--m) 50%, var(--ml) 100%);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.3), inset -1px -1px 0 rgba(0, 0, 0, 0.45); }
.ar-on .ar .ar-metal.m-5 i { box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.3), inset -1px -1px 0 rgba(0, 0, 0, 0.45), 0 0 6px rgba(116, 224, 226, 0.6); }
.ar-on .ar .ar-metal.on { color: var(--ar-cream); border-color: var(--ar-line2); background: rgba(13, 10, 20, 0.7); }
.ar-on .ar .ar-hc-tree .sk-entry { margin: 0; border-color: var(--ar-line2); }
.ar-on .ar .ar-hc-tree .sk-entry .sk-ico.small { width: 44px; height: 44px; }
.ar-on .ar .sk-entry .go.ar-open { flex: none; display: inline-grid; place-items: center; height: 44px; padding: 0 20px; font: 700 15px/1 var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: #1a1309;
  background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border: 1px solid #f0d9a0; }
.ar-on .ar .sk-entry:hover .go.ar-open { background: linear-gradient(180deg, #f0d391 0%, #d6ab55 55%, #b48a3b 100%); }
.ar-on .ar .sk-entry .tx { flex: 1; min-width: 0; }
/* the tabs: they stay at the panel's top while what is under them scrolls */
.ar-on .ar .ar-hc .ar-seg { position: sticky; top: 0; z-index: 3; margin: 0 -22px; padding: 0 22px; background: #130f1c; }
.ar-on .ar .ar-hc .ar-hero-side { display: flex; flex-direction: column; gap: 12px; min-height: 280px; }

.ar-on .ar .ar-abs { display: flex; flex-direction: column; }
.ar-on .ar .ar-ab { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 9px 4px; border-bottom: 1px solid rgba(90, 74, 44, 0.4); transition: background 0.12s; }
.ar-on .ar .ar-ab > img, .ar-on .ar .ar-ab > svg, .ar-on .ar .ar-ab > canvas { flex: none; width: 56px; height: 56px; image-rendering: pixelated; border: 1px solid var(--ar-line2); background: #0a0710; }
.ar-on .ar .ar-ab .tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-on .ar .ar-ab .nm { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ar-on .ar .ar-ab .nm b { font: 700 19px/1.1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); }
.ar-on .ar .ar-ab .nm small { font: 700 12px/1 var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-gold); }
.ar-on .ar .ar-ab.ult .nm small { color: #ffb347; }
.ar-on .ar .ar-ab .dsc { font-size: 17px; line-height: 1.3; color: var(--ar-dim); }
.ar-on .ar button.ar-ab:hover, .ar-on .ar button.ar-ab:focus-visible { background: rgba(209, 171, 91, 0.09); outline: none; }

/* what it can hit: three little boards (a corner, a side, the centre), and its type */
.ar-on .ar .ar-reach { padding-top: 4px; }
.ar-on .ar .ar-reach > p { margin: 8px 0 10px; font-size: 17px; line-height: 1.3; color: var(--ar-dim); }
.ar-on .ar .ar-reach-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 24px; } /* (the type under the boards when there's no room beside them) */
.ar-on .ar .ar-reach .reach-set { display: flex; gap: 14px; flex: none; margin: 0; }
.ar-on .ar .ar-reach .reach-spot { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ar-on .ar .ar-reach .reach-grid { display: grid; grid-template-columns: repeat(3, 17px); grid-auto-rows: 17px; gap: 2px; padding: 3px; background: #0a0710; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-reach .reach-grid i { display: block; width: 17px; height: 17px; background: #2a2140; }
.ar-on .ar .ar-reach .reach-grid i.me { background: var(--ar-cream); }
.ar-on .ar .ar-reach .reach-grid i.hit { background: #b48d3e; box-shadow: inset 0 0 0 1px rgba(255, 240, 180, 0.5); }
.ar-on .ar .ar-reach .reach-spot span { font: 600 14px/1 var(--ar-text); color: var(--ar-dim); }
.ar-on .ar .ar-reach .nx-sheet { flex: 1; min-width: 0; margin: 0; padding: 0; background: none; border: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 14px; align-items: center; font: 500 17px/1.2 var(--ar-text); }
.ar-on .ar .ar-reach .nx-sheet dt { margin: 0; color: var(--ar-mute); }
.ar-on .ar .ar-reach .nx-sheet dd { margin: 0; color: var(--ar-cream); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ar-on .ar .ar-reach .nx-sheet dd span { display: inline-flex; align-items: center; gap: 6px; }
.ar-on .ar .ar-reach .nx-sheet em { font-style: normal; color: var(--ar-gold); }
.ar-on .ar .ar-reach .nx-sheet img, .ar-on .ar .ar-reach .nx-sheet canvas, .ar-on .ar .ar-reach .nx-sheet svg { width: 18px; height: 18px; }

/* skins */
.ar-on .ar .ar-skins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 4px; }
.ar-on .ar .ar-skin { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; text-align: center; background: rgba(13, 10, 20, 0.7); border: 1px solid var(--ar-edge); transition: border-color 0.12s, transform 0.12s; }
.ar-on .ar .ar-skin img, .ar-on .ar .ar-skin canvas { width: 92px; height: 92px; object-fit: contain; image-rendering: pixelated; }
.ar-on .ar .ar-skin b { font: 700 15px/1.1 var(--ar-cap); letter-spacing: 0.04em; }
.ar-on .ar .ar-skin small { font-size: 13px; color: var(--ar-dim); min-height: 15px; }
.ar-on .ar .ar-skin.locked img, .ar-on .ar .ar-skin.locked canvas { filter: grayscale(0.85) brightness(0.6); }
.ar-on .ar .ar-skin.locked small { color: var(--ar-gold); }
.ar-on .ar .ar-skin:hover, .ar-on .ar .ar-skin:focus-visible { border-color: var(--ar-line2); transform: translateY(-2px); outline: none; }
.ar-on .ar .ar-skin.on { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.9); }
.ar-on .ar .ar-skin.on small { color: var(--ar-green); }

/* the mastery path */
.ar-on .ar .ar-path { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.ar-on .ar .ar-step { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 10px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); font-size: 17px; }
.ar-on .ar .ar-step .n { display: grid; place-items: center; width: 30px; height: 30px; font: 800 16px/1 var(--ar-text); color: var(--ar-dim); border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-step.done .n { color: #1a1309; background: var(--ar-gold); border-color: #f0d9a0; }
.ar-on .ar .ar-step.done { color: var(--ar-dim); }
.ar-on .ar .ar-step .tx { min-width: 0; display: flex; flex-direction: column; gap: 5px; line-height: 1.2; }
.ar-on .ar .ar-step .bar { height: 5px; background: #2a2140; } .ar-on .ar .ar-step .bar i { display: block; height: 100%; background: linear-gradient(90deg, #b48d3e, var(--ar-gold2)); }
.ar-on .ar .ar-step small { font-size: 15px; color: var(--ar-dim); }
.ar-on .ar .ar-step em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font: 700 15px/1 var(--ar-text); color: var(--ar-gold2); }
.ar-on .ar .ar-step em img, .ar-on .ar .ar-step em canvas { width: 16px; height: 16px; image-rendering: pixelated; }
.ar-on .ar .ar-path .ar-path-note { margin: 0; font-size: 15px; line-height: 1.35; color: var(--ar-dim); }
.ar-on .ar .ar-path .rival { margin: 4px 0 0; font-size: 16px; color: var(--ar-dim); }
.ar-on .ar .ar-path .lore { margin: 0; font-style: italic; font-size: 17px; line-height: 1.35; color: var(--ar-cream); }
.ar-on .ar .ar-path .lore.shut { font-style: normal; color: var(--ar-mute); }

/* builds */
.ar-on .ar .ar-builds { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.ar-on .ar .ar-build { padding: 10px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); display: flex; flex-direction: column; gap: 8px; }
.ar-on .ar .ar-build.on { border-color: var(--ar-gold); }
.ar-on .ar .ar-build .hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ar-on .ar .ar-build .hd .grow { flex: 1; }
.ar-on .ar .ar-build .hd b { font: 700 18px/1 var(--ar-cap); letter-spacing: 0.06em; }
.ar-on .ar .ar-build .hd small { font-size: 14px; color: var(--ar-green); }
.ar-on .ar .ar-build .hd .ar-btn { height: 44px; padding: 0 14px; font-size: 13px; clip-path: none; }
.ar-on .ar .ar-build .hd .ar-btn:disabled { filter: grayscale(1) brightness(0.55); cursor: default; }
.ar-on .ar .ar-build .hd .ar-btn.x { width: 44px; padding: 0; font-size: 20px; }
.ar-on .ar .ar-build .its { display: flex; gap: 8px; align-items: center; min-height: 46px; }
.ar-on .ar .ar-build .its .it { position: relative; width: 46px; height: 46px; display: grid; place-items: center; background: #0a0710; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-build .its .it i { font-style: normal; color: var(--ar-mute); }
.ar-on .ar .ar-build .its p { margin: 0; font-size: 16px; color: var(--ar-mute); }
.ar-on .ar .ar-bonus { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.ar-on .ar .ar-bonus p { margin: 0; font-size: 16px; color: var(--ar-mute); }
.ar-on .ar .ar-bonus .ln { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ar-green); }
.ar-on .ar .ar-bonus .ln > :first-child { position: relative; flex: none; width: 30px; height: 30px; display: grid; place-items: center; }

/* ------------------------------------------------------------------ a window narrower than the sheet (4:3, a small laptop) */
.ar-on .ar-page.narrower .ar-hc-panel { width: 660px; }
.ar-on .ar-page.narrower .ar-hc.panel-open .ar-hc-list { right: 680px; }
.ar-on .ar-page.narrower .ar-hc-stage { height: 430px; }
.ar-on .ar-page.narrower .ar-hc-name h2 { font-size: 46px; }
.ar-on .ar-page.narrower .ar-hc .ar-slot .ic { width: 52px; height: 52px; }
.ar-on .ar-page.narrower .ar-skins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ar-on:not(.ar-phone) .ar-page.narrower .ar-hc-find { flex-basis: 480px; }

/* ------------------------------------------------------------------ phones: two cards across; the panel over the whole screen */
.ar-on.ar-phone .ar .ar-heroes-body.ar-hc { height: auto; }
.ar-on.ar-phone .ar .ar-hc-list { position: static; gap: 10px; transition: none; }
.ar-on.ar-phone .ar .ar-hc-tools { gap: 8px; padding: 0; }
.ar-on.ar-phone .ar .ar-hc-find { flex: 1 1 100%; min-width: 0; }
.ar-on.ar-phone .ar .ar-input { height: 44px; font-size: 16px; }
.ar-on.ar-phone .ar .ar-hc-find .ar-select { width: auto; max-width: 52%; font-size: 15px; }
.ar-on.ar-phone .ar .ar-hc-tools .ar-facs { flex: 1 1 100%; flex-wrap: nowrap; gap: 4px; }
.ar-on.ar-phone .ar .ar-hc-tools .ar-facs > button { flex: 1 1 auto; height: 44px; padding: 0 4px; font-size: 11.5px; letter-spacing: 0.04em; text-align: center; }
.ar-on.ar-phone .ar .ar-hc-count { flex: 1 1 100%; margin: 0; text-align: right; font-size: 12px; }
.ar-on.ar-phone .ar .ar-hc-grid { overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; padding: 2px 2px 10px; }
.ar-on.ar-phone .ar .ar-hc-card { animation: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7), 0 8px 16px rgba(0, 0, 0, 0.45); }
.ar-on.ar-phone .ar .ar-hc-card:hover { transform: none; }
.ar-on.ar-phone .ar .ar-hc-card .cn { width: 16px; height: 16px; }
.ar-on.ar-phone .ar .ar-hc-card .cn::before { background: radial-gradient(circle at var(--rx) var(--ry), var(--mh) 0 1.2px, var(--ml) 1.7px 2.5px, transparent 2.9px), linear-gradient(135deg, var(--mh) 0%, var(--m) 50%, var(--ml) 100%); }
.ar-on.ar-phone .ar .ar-hc-card .cn.tl { --rx: 5px; --ry: 5px; } .ar-on.ar-phone .ar .ar-hc-card .cn.tr { --rx: calc(100% - 5px); --ry: 5px; }
.ar-on.ar-phone .ar .ar-hc-card .cn.bl { --rx: 5px; --ry: calc(100% - 5px); } .ar-on.ar-phone .ar .ar-hc-card .cn.br { --rx: calc(100% - 5px); --ry: calc(100% - 5px); }
.ar-on.ar-phone .ar .ar-hc-card.locked .cn::before { background: linear-gradient(135deg, var(--mh) 0%, var(--m) 50%, var(--ml) 100%); }
.ar-on.ar-phone .ar .ar-hc-card .art { height: 140px; }
.ar-on.ar-phone .ar .ar-hc-card .art .pic.sprite { padding: 8px 6px 34px; }
.ar-on.ar-phone .ar .ar-hc-card .facs { left: 19px; top: 7px; gap: 1px; }
.ar-on.ar-phone .ar .ar-hc-card .facs img { width: 24px; height: 24px; }
.ar-on.ar-phone .ar .ar-hc-card .tier { right: 19px; top: 8px; min-width: 30px; height: 24px; padding: 0 6px; font-size: 14px; }
.ar-on.ar-phone .ar .ar-hc-card .tier img, .ar-on.ar-phone .ar .ar-hc-card .tier canvas, .ar-on.ar-phone .ar .ar-hc-card .tier svg { width: 14px; height: 14px; }
.ar-on.ar-phone .ar .ar-hc-card .new-mark { top: 10px; }
.ar-on.ar-phone .ar .ar-hc-card .id { top: 140px; gap: 3px; padding: 26px 9px 7px; }
.ar-on.ar-phone .ar .ar-hc-card .nm { font-size: 17px; letter-spacing: 0.02em; }
.ar-on.ar-phone .ar .ar-hc-card .role { font-size: 11px; letter-spacing: 0.05em; overflow-wrap: anywhere; }
.ar-on.ar-phone .ar .ar-hc-card .band { gap: 6px; padding: 8px 9px 10px; }
.ar-on.ar-phone .ar .ar-hc-card .mrow { height: 18px; gap: 4px; }
.ar-on.ar-phone .ar .ar-hc-card .stars { font-size: 14px; gap: 1px; }
.ar-on.ar-phone .ar .ar-hc-card .mrow .sk-mark { height: 18px; padding: 0 5px; font-size: 12px; gap: 2px; }
.ar-on.ar-phone .ar .ar-hc-card .mrow .sk-mark i { font-size: 9px; }
.ar-on.ar-phone .ar .ar-hc-card .mbar { height: 3px; }
.ar-on.ar-phone .ar .ar-hc-card .gear { gap: 4px; }
.ar-on.ar-phone .ar .ar-hc-card .gslot { height: 38px; }
.ar-on.ar-phone .ar .ar-hc-card .gslot .plus { font-size: 19px; }
.ar-on.ar-phone .ar .ar-hc-card .how { min-height: 71px; gap: 6px; font-size: 13.5px; }
.ar-on.ar-phone .ar .ar-hc-card .nums { gap: 8px; height: 20px; font-size: 15px; }
.ar-on.ar-phone .ar .ar-hc-card .nums > span { gap: 3px; }
.ar-on.ar-phone .ar .ar-hc-card .nums .dt { gap: 2px; }
.ar-on.ar-phone .ar .ar-hc-card .ty { gap: 6px; height: 20px; }
.ar-on.ar-phone .ar .ar-hc-card .ty .chip { height: 20px; padding: 0 6px; font-size: 11px; letter-spacing: 0.08em; }
.ar-on.ar-phone .ar .ar-hc-card .ty .wk, .ar-on.ar-phone .ar .ar-hc-card .ty .rs { gap: 1px; }
.ar-on.ar-phone .ar .ar-hc-card .ty em { font-size: 13px; }
/* the panel: the whole screen, Back at its top left, the champions before and after it at its top right */
/* (over the screen's head too: the page's body is lifted over it while the panel is open) */
.ar-on.ar-phone .ar-heroes:has(.ar-hc.panel-open) .ar-body { z-index: 30; }
.ar-on.ar-phone .ar .ar-hc-panel { position: fixed; inset: 0; z-index: 60; width: auto; border: 0; box-shadow: none; background: #0f0c16; padding-top: var(--safe-t, 0px); }
.ar-on.ar-phone .ar .ar-hc-panel.slide { animation: ar-hc-up 0.24s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes ar-hc-up { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
.ar-on.ar-phone .ar .ar-hc-phead { height: 60px; padding: 0 8px; gap: 6px; }
.ar-on.ar-phone .ar .ar-hc-x.back { height: 44px; padding: 0 14px 0 8px; gap: 6px; font-size: 14px; letter-spacing: 0.1em; }
.ar-on.ar-phone .ar .ar-hc-step { width: 44px; height: 44px; padding: 0; }
.ar-on.ar-phone .ar .ar-hc-step b { display: none; }
.ar-on.ar-phone .ar .ar-hc-pbody { padding: 0 12px calc(var(--safe-b, 0px) + 28px); gap: 12px; }
.ar-on.ar-phone .ar .ar-hc-stage { height: 320px; margin: 0 -12px; }
.ar-on.ar-phone .ar .ar-hc-name { margin-top: -40px; gap: 6px; }
.ar-on.ar-phone .ar .ar-hc-name h2 { font-size: 36px; }
.ar-on.ar-phone .ar .ar-hc-name .quote { font-size: 16px; }
.ar-on.ar-phone .ar .ar-hc-name .ar-tag { height: 28px; padding: 0 8px; font-size: 11.5px; letter-spacing: 0.08em; }
.ar-on.ar-phone .ar .ar-hc .ar-slots { gap: 8px; }
.ar-on.ar-phone .ar .ar-hc .ar-slot { flex-direction: column; align-items: center; text-align: center; gap: 6px; min-height: 0; padding: 10px 4px; }
.ar-on.ar-phone .ar .ar-hc .ar-slot .ic { width: 52px; height: 52px; }
.ar-on.ar-phone .ar .ar-hc .ar-slot .tx { align-items: center; }
.ar-on.ar-phone .ar .ar-hc .ar-slot .tx small { font-size: 11px; letter-spacing: 0.12em; }
.ar-on.ar-phone .ar .ar-hc .ar-slot .tx b { font-size: 13.5px; }
.ar-on.ar-phone .ar .ar-hc .ar-slot .tx em { display: none; }
.ar-on.ar-phone .ar .ar-hc .ar-slot:hover { transform: none; }
.ar-on.ar-phone .ar .ar-hc .ar-drawer { padding: 10px; }
.ar-on.ar-phone .ar .ar-hc .ar-drawer-head .ar-kick { font-size: 12px; letter-spacing: 0.14em; }
.ar-on.ar-phone .ar .ar-hc .ar-drawer-head .ar-drawer-find { flex: 1 1 100%; }
.ar-on.ar-phone .ar .ar-hc .ar-drawer-head .acts { width: 100%; margin: 0; }
.ar-on.ar-phone .ar .ar-hc .ar-drawer-head .acts .ar-btn { flex: 1; padding: 0 8px; font-size: 13px; }
.ar-on.ar-phone .ar .ar-icard { width: 204px; }
.ar-on.ar-phone .ar .ar-hc .ar-hero-halves .hv-halves { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ar-on.ar-phone .ar .ar-hc .ar-seg { margin: 0 -12px; padding: 0 12px; }
.ar-on.ar-phone .ar .ar-hc .ar-seg > button { height: 46px; padding: 0 2px; font-size: 12px; letter-spacing: 0.05em; white-space: normal; line-height: 1.05; }
.ar-on.ar-phone .ar .ar-hc .ar-hero-side { min-height: 0; }
.ar-on.ar-phone .ar .ar-skins { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ar-on.ar-phone .ar .ar-skin img, .ar-on.ar-phone .ar .ar-skin canvas { width: 76px; height: 76px; }
.ar-on.ar-phone .ar .ar-reach-row { flex-direction: column; gap: 12px; }
.ar-on.ar-phone .ar .ar-stat { grid-template-columns: 96px minmax(0, 1fr) auto; font-size: 16px; }
.ar-on.ar-phone .ar .ar-hc-tree .sk-entry { flex-wrap: wrap; row-gap: 8px; min-height: 54px; gap: 10px; padding: 6px 10px 6px 12px; }
.ar-on.ar-phone .ar .ar-hc-tree .sk-entry .tx { flex: 1 1 100%; }
.ar-on.ar-phone .ar .ar-hc-tree .sk-entry .sk-sockets { flex: 1; }
.ar-on.ar-phone .ar .ar-hc-tree .sk-entry .sk-ico.small { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) { .ar-on .ar .ar-hc-card, .ar-on .ar .ar-slot, .ar-on .ar .ar-icard, .ar-on .ar .ar-skin, .ar-on .ar .ar-hc-list { transition: none; animation: none; } .ar-on .ar .ar-hc-panel.slide { animation: none; } }
html.reduce-motion.ar-on .ar .ar-hc-card, html.reduce-motion.ar-on .ar .ar-slot, html.reduce-motion.ar-on .ar .ar-icard, html.reduce-motion.ar-on .ar .ar-skin, html.reduce-motion.ar-on .ar .ar-hc-list { transition: none; animation: none; }
html.reduce-motion.ar-on .ar .ar-hc-panel.slide { animation: none; }

/* ------------------------------------------------------------------------------------------------------------------
 * The Skill tree in Neon (ui/tree-page.js, ui/tree-bits.js; its shape and Legacy's look: styles/main.css).
 * A skill's tile wears the steel box (styles/steel-box.css, your call 19 Nov): the frame over the branch's dark burst
 * of colour, a gold glyph in the middle. The pictures to come (assets/art/trees) have the same frame painted in, so
 * one with its picture shows it edge to edge and no second frame. A taken skill is lit gold from outside the frame,
 * one that cannot be taken yet is dimmed; the frame itself never changes. */
html[data-theme='neon'] { --sk-a: #2c58b4; --sk-a2: #0d1a40; --sk-b: #a8362a; --sk-b2: #34100c; --sk-c: #23764c; --sk-c2: #0a2a1a; --sk-a-hi: #a9c8ff; --sk-b-hi: #ffb09c; --sk-c-hi: #9fe8c0; }
html[data-theme='neon'] .b-a { --bh: var(--sk-a-hi); } html[data-theme='neon'] .b-b { --bh: var(--sk-b-hi); } html[data-theme='neon'] .b-c { --bh: var(--sk-c-hi); }
html[data-theme='neon'] .sk-ico { color: #e2c27c; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
  background: var(--steel-box) center / 100% 100% no-repeat, radial-gradient(circle at 50% 46%, var(--bc, #4a3a6a) 0%, var(--bd, #1c1030) 58%, #06070f 100%); }
html[data-theme='neon'] .sk-ico svg { width: 46%; height: 46%; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.7)); }
html[data-theme='neon'] .sk-ico.art { background: none; }
html[data-theme='neon'] .sk-ico.small { box-shadow: none; }
html[data-theme='neon'] .sk-ico.sk-empty { color: #8d829c; border: 0; background: var(--steel-box) center / 100% 100% no-repeat, radial-gradient(circle at 50% 46%, #1d1a2a 0%, #0e0c16 58%, #06070f 100%); filter: saturate(0.4) brightness(0.72); }
html[data-theme='neon'] .sk-ico.sk-empty.free { color: #e2c27c; filter: none; background: var(--steel-box) center / 100% 100% no-repeat, radial-gradient(circle at 50% 46%, #8a6418 0%, #3a2709 58%, #0e0903 100%); }
html[data-theme='neon'] .sk-ico.sk-empty small { font: 700 13px/1 var(--ar-text, Georgia, serif); }
html[data-theme='neon'] .sk-taken-hd { font: 700 12px/1 var(--ar-cap, Georgia, serif); letter-spacing: 0.16em; color: #d1ab5b; }
html[data-theme='neon'] .sk-taken-row .tx b { color: var(--bh, #e2c27c); }

/* the way to its tree on a champion's page, the mark on its card, the stars in its Mastery tab */
.ar-on .ar .sk-entry { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; margin: 2px 0 4px; padding: 8px 14px 8px 16px; background: linear-gradient(180deg, rgba(44, 34, 64, 0.9), rgba(20, 15, 32, 0.94)); border: 1px solid var(--ar-line2); transition: filter 0.12s, border-color 0.12s; }
.ar-on .ar .sk-entry:hover, .ar-on .ar .sk-entry:focus-visible { filter: brightness(1.2); border-color: var(--ar-gold); outline: none; }
.ar-on .ar .sk-entry .tx b { font: 700 17px/1.1 var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-gold2); }
.ar-on .ar .sk-entry .tx small { font-size: 16px; line-height: 1.2; color: var(--ar-dim); }
.ar-on .ar .sk-entry .go { font-size: 30px; color: var(--ar-gold); }
.ar-on .ar .sk-entry .sk-ico.small { width: 36px; height: 36px; }
.ar-on .ar .sk-entry.unspent { border-color: var(--ar-yellow); box-shadow: 0 0 18px rgba(209, 171, 91, 0.28), inset 0 1px 0 rgba(226, 194, 124, 0.3); }
.ar-on .ar .sk-entry.unspent .tx small { color: var(--ar-yellow); font-weight: 700; }
.ar-on .ar .sk-ladder { gap: 6px; margin-bottom: 4px; }
.ar-on .ar .sk-ladder .st { width: 30px; }
.ar-on .ar .sk-ladder .st i { font-size: 26px; color: var(--ar-mute); }
.ar-on .ar .sk-ladder .st.on i { color: var(--ar-gold); text-shadow: 0 0 10px rgba(209, 171, 91, 0.5); }
.ar-on .ar .sk-ladder .st em { height: 12px; font-size: 11px; line-height: 12px; color: var(--ar-mute); }
.ar-on .ar .sk-ladder .st.on em { color: var(--ar-yellow); }
.ar-on .ar .sk-ladder small { font-size: 15px; color: var(--ar-dim); }

/* the page on the sheet: who, the three branches, "Your Knight" and its bonds */
.ar-on .ar-tree .sk { position: absolute; inset: 0; grid-template-columns: minmax(300px, 372px) minmax(0, 1fr) minmax(340px, 410px); gap: 20px; padding: 0; animation: ar-in-up 0.4s ease-out both; }
.ar-on .ar .sk-who { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 22px 22px; min-height: 0; overflow: hidden; }
.ar-on .ar .sk-fig { flex: none; height: 280px; align-items: end; justify-items: center; overflow: hidden; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.55)); }
.ar-on .ar .sk-id { gap: 6px; }
.ar-on .ar .sk-id h2 { font: 800 44px/1 var(--ar-cap); letter-spacing: 0.05em; color: var(--ar-cream); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6); }
.ar-on .ar .sk-tags { gap: 6px 8px; }
.ar-on .ar .sk-tags span { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; font: 700 13px/1 var(--ar-cap); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ar-gold2); border: 1px solid var(--ar-line2); background: rgba(13, 10, 20, 0.6); white-space: nowrap; }
.ar-on .ar .sk-tags span.no { color: var(--ar-mute); border-color: var(--ar-edge); }
.ar-on .ar .sk-points { gap: 10px; padding-top: 12px; border-top: 1px solid rgba(90, 74, 44, 0.6); }
.ar-on .ar .sk-points-hd { font: 700 15px/1 var(--ar-cap); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ar-gold); justify-content: space-between; }
.ar-on .ar .sk-spent { font: 700 19px/1.1 var(--ar-text); letter-spacing: 0; text-transform: none; color: var(--ar-cream); }
.ar-on .ar .sk-spent.free { color: var(--ar-yellow); }
.ar-on .ar .sk-sockets.big { gap: 12px; }
.ar-on .ar .sk-sockets.big .sk-ico { width: 64px; height: 64px; }
.ar-on .ar .sk-sockets.big .sk-ico:not(.sk-empty) { box-shadow: 0 0 0 2px #e2c27c, 0 0 14px 1px rgba(209, 171, 91, 0.4); }
.ar-on .ar .sk-next { font-size: 19px; color: var(--ar-cream); }
.ar-on .ar .sk-next small { font-size: 16px; color: var(--ar-dim); }
.ar-on .ar .sk-bar { height: 7px; border: 0; background: #2a2140; }
.ar-on .ar .sk-bar i { background: linear-gradient(90deg, #b48d3e, var(--ar-gold2)); }
.ar-on .ar .sk-hint { font-size: 17px; line-height: 1.3; color: var(--ar-dim); }
.ar-on .ar .sk-who .sk-reset { align-self: flex-start; margin-top: auto; }
.ar-on .ar .sk-reset:disabled { opacity: 0.45; cursor: default; filter: none; }

.ar-on .ar .sk-tree { gap: 16px; align-items: stretch; min-height: 0; }
.ar-on .ar .sk-branch { position: relative; padding: 18px 16px 16px; border-top: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--ar-line2) transparent; }
.ar-on .ar .sk-branch::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--bh), transparent 85%); }
.ar-on .ar .sk-bhead { margin-bottom: 14px; }
.ar-on .ar .sk-bhead h3 { font: 800 27px/1.05 var(--ar-cap); letter-spacing: 0.06em; color: var(--bh); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); }
.ar-on .ar .sk-bhead .n { font: 700 18px/1 var(--ar-text); color: var(--ar-dim); }
.ar-on .ar .sk-bhead p { margin-top: 5px; font-size: 17px; line-height: 1.25; color: var(--ar-dim); }
.ar-on .ar .sk-link { width: 3px; height: 14px; margin-left: 53px; background: var(--ar-edge); }
.ar-on .ar .sk-link.got { background: var(--ar-gold); box-shadow: 0 0 8px rgba(209, 171, 91, 0.6); }
.ar-on .ar .sk-node { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "nm nm" "ico d"; grid-template-rows: auto 1fr; align-items: start; gap: 10px 14px; width: 100%; padding: 12px; background: rgba(13, 10, 20, 0.62); border: 1px solid var(--ar-edge); transition: border-color 0.12s, background 0.12s; }
.ar-on .ar .sk-node .sk-ico { width: 84px; height: 84px; transition: filter 0.12s, box-shadow 0.12s; }
.ar-on .ar .sk-node .nm b { font: 700 21px/1.12 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); }
.ar-on .ar .sk-node .d { font-size: 17px; line-height: 1.28; color: #cfc5da; }
.ar-on .ar .sk-state { width: 26px; height: 26px; font: 800 18px/1 var(--ar-text); color: var(--ar-mute); border: 1px solid var(--ar-edge); }
.ar-on .ar .sk-state.got { color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border-color: #f0d9a0; }
.ar-on .ar .sk-state.can { color: var(--ar-yellow); border-color: var(--ar-line2); }
.ar-on .ar .sk-node:hover, .ar-on .ar .sk-node:focus-visible { border-color: var(--ar-line2); outline: none; }
.ar-on .ar .sk-node.can { background: rgba(26, 20, 40, 0.8); border-color: var(--ar-line); }
.ar-on .ar .sk-node.can:hover, .ar-on .ar .sk-node.can:focus-visible { border-color: var(--ar-gold); }
.ar-on .ar .sk-node.can:hover .sk-ico { filter: brightness(1.18); }
.ar-on .ar .sk-node.got { border-color: var(--ar-gold); background: linear-gradient(180deg, rgba(209, 171, 91, 0.2), rgba(40, 29, 14, 0.5)); box-shadow: none; }
.ar-on .ar .sk-node.got .sk-ico { box-shadow: 0 0 0 2px #e2c27c, 0 0 18px 2px rgba(209, 171, 91, 0.5); }
.ar-on .ar .sk-node.no:not(.got) .sk-ico { opacity: 1; filter: saturate(0.35) brightness(0.5); }
.ar-on .ar .sk-node.no:not(.got) .nm b, .ar-on .ar .sk-node.no:not(.got) .d { opacity: 0.6; }
.ar-on .ar .sk-preview .sk-node.no:not(.got) .sk-ico { filter: none; }
.ar-on .ar .sk-preview .sk-node.no:not(.got) .nm b, .ar-on .ar .sk-preview .sk-node.no:not(.got) .d { opacity: 1; }
.ar-on .ar .sk-preview .sk-node { cursor: default; }

.ar-on .ar .sk-side { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.ar-on .ar .sk-sheet, .ar-on .ar .sk-bonds { padding: 18px 20px; gap: 10px; }
.ar-on .ar .sk-sheet { flex: none; }
.ar-on .ar .sk-bonds { flex: 1 1 0; min-height: 150px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--ar-line2) transparent; }
.ar-on .ar .sk-note { font-size: 16px; line-height: 1.28; color: var(--ar-dim); }
.ar-on .ar .sk-row { grid-template-columns: minmax(0, 1fr) 122px; min-height: 34px; border-top: 1px solid rgba(90, 74, 44, 0.45); font-size: 17px; color: var(--ar-cream); }
.ar-on .ar .sk-row .v { grid-template-columns: minmax(0, 1fr) 46px; }
.ar-on .ar .sk-row .was { font-size: 15px; color: var(--ar-mute); }
.ar-on .ar .sk-row .now { font: 700 21px/1 var(--ar-text); color: var(--ar-cream); }
.ar-on .ar .sk-row.chg .now { color: var(--ar-yellow); }
.ar-on .ar .sk-slots-hd { font: 700 13px/1 var(--ar-cap); letter-spacing: 0.2em; color: var(--ar-gold); margin-top: 6px; }
.ar-on .ar .sk-slots { gap: 8px 12px; }
.ar-on .ar .sk-slot { min-height: 32px; font-size: 16px; color: var(--ar-cream); }
.ar-on .ar .sk-slot .sk-ico { width: 30px; height: 30px; }
.ar-on .ar .sk-slot.got span:last-child { color: var(--bh); }
.ar-on .ar .sk-slot.locked { color: var(--ar-mute); }
.ar-on .ar .sk-slot.free { color: var(--ar-yellow); }
.ar-on .ar .sk-none { font-size: 17px; color: var(--ar-dim); }
.ar-on .ar .sk-bond { gap: 6px 12px; padding: 8px 0; border-top: 1px solid rgba(90, 74, 44, 0.45); }
.ar-on .ar .sk-bond .pic { width: 46px; height: 46px; background: #171222; border: 1px solid var(--ar-edge); }
.ar-on .ar .sk-bond .tx b { font: 700 18px/1.1 var(--ar-cap); letter-spacing: 0.05em; }
.ar-on .ar .sk-bond .tx small { font-size: 15px; color: var(--ar-dim); }
.ar-on .ar .sk-bond .lv i { width: 12px; height: 12px; border-color: var(--ar-line2); }
.ar-on .ar .sk-bond .lv i.on { background: var(--ar-yellow); border-color: #f0d9a0; box-shadow: 0 0 8px rgba(209, 171, 91, 0.6); }
/* a window narrower than the sheet (4:3, a small laptop) */
.ar-on:not(.ar-phone) .ar-page.narrower.ar-tree .sk { grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 14px; }
.ar-on:not(.ar-phone) .ar-page.narrower .sk-node { gap: 10px; padding: 10px; }
.ar-on:not(.ar-phone) .ar-page.narrower .sk-node .sk-ico { width: 68px; height: 68px; }
.ar-on:not(.ar-phone) .ar-page.narrower .sk-id h2 { font-size: 36px; }
.ar-on:not(.ar-phone) .ar-page.narrower .sk-sockets.big .sk-ico { width: 54px; height: 54px; }

/* a phone: one column down the page, the points always in sight over it */
.ar-on.ar-phone .ar-tree .sk { position: static; display: flex; flex-direction: column; gap: 12px; animation: none; }
.ar-on.ar-phone .ar .sk-who { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "fig id" "ladder ladder" "next next" "hint hint" "reset reset"; gap: 10px 12px; padding: 14px; overflow: visible; }
.ar-on.ar-phone .ar .sk-own .sk-who .sk-points { display: none; }
.ar-on.ar-phone .ar .sk-pin { display: flex; padding: 8px 12px; background: linear-gradient(180deg, #221a32, #141020); border: 1px solid var(--ar-line2); box-shadow: 0 8px 14px rgba(0, 0, 0, 0.5); }
.ar-on.ar-phone .ar .sk-pin .tx small { font: 700 12px/1.2 var(--ar-cap); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ar-gold); }
.ar-on.ar-phone .ar .sk-pin .sk-spent { font-size: 17px; }
.ar-on.ar-phone .ar .sk-pin .sk-sockets { gap: 8px; }
.ar-on.ar-phone .ar .sk-pin .sk-ico { width: 44px; height: 44px; }
.ar-on.ar-phone .ar .sk-pin .sk-ico:not(.sk-empty) { box-shadow: 0 0 0 2px #e2c27c, 0 0 10px 1px rgba(209, 171, 91, 0.4); }
.ar-on.ar-phone .ar .sk-preview .sk-who { grid-template-areas: "fig id" "ladder ladder" "points points" "next next"; }
.ar-on.ar-phone .ar .sk-fig { flex: none; min-height: 0; max-height: none; width: 68px; height: 68px; background: #171222; border: 1px solid var(--ar-line2); filter: none; }
.ar-on.ar-phone .ar .sk-id h2 { font-size: 30px; }
.ar-on.ar-phone .ar .sk-next { font-size: 17px; } .ar-on.ar-phone .ar .sk-next small { font-size: 15px; }
.ar-on.ar-phone .ar .sk-hint { font-size: 15px; }
.ar-on.ar-phone .ar .sk-who .sk-reset { align-self: stretch; justify-self: stretch; margin-top: 0; }
.ar-on.ar-phone .ar .sk-tree { display: flex; flex-direction: column; gap: 12px; }
.ar-on.ar-phone .ar .sk-branch { padding: 16px 12px 12px; overflow: visible; }
.ar-on.ar-phone .ar .sk-bhead h3 { font-size: 23px; } .ar-on.ar-phone .ar .sk-bhead p { font-size: 15px; }
.ar-on.ar-phone .ar .sk-node { grid-template-areas: "ico nm" "ico d"; gap: 4px 12px; padding: 10px; }
.ar-on.ar-phone .ar .sk-node .sk-ico { width: 64px; height: 64px; }
.ar-on.ar-phone .ar .sk-node .nm b { font-size: 18px; } .ar-on.ar-phone .ar .sk-node .d { font-size: 15px; }
.ar-on.ar-phone .ar .sk-link { margin-left: 41px; height: 12px; }
.ar-on.ar-phone .ar .sk-sheet, .ar-on.ar-phone .ar .sk-bonds { padding: 14px; flex: none; min-height: 0; overflow: visible; }
.ar-on.ar-phone .ar .sk-row { font-size: 15px; grid-template-columns: minmax(0, 1fr) 112px; }
.ar-on.ar-phone .ar .sk-slots { grid-template-columns: minmax(0, 1fr); }
.ar-on.ar-phone .ar .sk-entry { min-height: 54px; gap: 10px; padding: 6px 10px 6px 12px; }
.ar-on.ar-phone .ar .sk-entry .tx b { font-size: 14px; letter-spacing: 0.1em; } .ar-on.ar-phone .ar .sk-entry .tx small { font-size: 14px; }
.ar-on.ar-phone .ar .sk-entry .sk-ico.small { width: 30px; height: 30px; }
.ar-on.ar-phone .ar .sk-ladder .st { width: 26px; } .ar-on.ar-phone .ar .sk-ladder .st i { font-size: 22px; } .ar-on.ar-phone .ar .sk-ladder small { font-size: 14px; }

/* ------------------------------------------------------------------ two halves of one champion (19 Nov: ui/champ-halves.js), Arena */
.ar-on .ar .hv-halves { gap: 10px; margin-top: 6px; }
.ar-on .ar .hv-half { padding: 10px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); border-radius: 0; }
.ar-on .ar .hv-half.waits { border-color: var(--ar-gold); box-shadow: 0 0 14px rgba(209, 171, 91, 0.22); }
.ar-on .ar .hv-head { font: 700 15px/1.2 var(--ar-cap); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ar-cream); }
.ar-on .ar .hv-from { font-size: 13px; color: var(--ar-dim); opacity: 1; }
.ar-on .ar .hv-note { font-size: 14px; color: var(--ar-cream); }
.ar-on .ar .hv-bar { height: 8px; border-radius: 0; background: rgba(255, 255, 255, 0.08); }
.ar-on .ar .hv-bar i { background: linear-gradient(90deg, var(--ar-gold), var(--ar-gold2)); }
.ar-on .ar .hv-mastery .hv-bar i { background: linear-gradient(90deg, #3fb6a8, #7fe0d0); }
.ar-on .ar .hv-rungs { gap: 4px; }
.ar-on .ar .hv-rung { padding: 5px 0 4px; border-radius: 0; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); opacity: 0.7; }
.ar-on .ar .hv-rung.on { opacity: 1; border-color: rgba(209, 171, 91, 0.5); background: rgba(40, 29, 14, 0.7); }
.ar-on .ar .hv-rung i { font-size: 16px; color: var(--ar-mute); }
.ar-on .ar .hv-rung.on i { color: var(--ar-gold); text-shadow: 0 0 8px rgba(209, 171, 91, 0.5); }
.ar-on .ar .hv-rung em { font-size: 12px; color: var(--ar-dim); }
.ar-on .ar .hv-rung.on em { color: var(--ar-yellow); }
.ar-on .ar .hv-rung small { font-size: 12px; color: #7fe0d0; }
.ar-on .ar .hv-legend { font-size: 13px; color: var(--ar-dim); opacity: 1; }
.ar-on .ar .hv-story { margin: 8px 0; }
.ar-on .ar .hv-story .hv-head { font-size: 13px; color: var(--ar-dim); }
.ar-on .ar .hv-line { font-size: 16px; color: var(--ar-cream); }
.ar-on .ar .hv-line.shut { color: var(--ar-mute); }
.ar-on.ar-phone .ar .hv-halves { grid-template-columns: minmax(0, 1fr); }
.ar-on.ar-phone .ar .hv-rung em { font-size: 10px; }
.ar-on.ar-phone .ar .hv-rung i { font-size: 13px; }

/* ------------------------------------------------------------------ the v3 card (your art, 21 Nov; docs/ART-PROMPT-CARD.md)
   Built from the pieces at the brief's own places on its 600 x 900 card, in its pixels scaled to the card's width (--u: one of
   them), so it is the same card from a big screen to a phone: the frame in its tier's metal (I bronze, II iron, III mithril,
   IV adamant, V runite; one not yours in bronze, under chains), its faction's ground, the plate at the top, the crests' and
   the tier's sockets, the name on its banner, the divider with its tier's gem, the stars, the bar, the item sockets with their
   rarity's rim and the type's chip. The game writes every word and number on it. (Pieces: tools/build-ui-v3.py.) */
.ar-on .ar .ar-hc-card.v3 { container-type: inline-size; border: 0; background: #0d0a14 var(--ground) 50% 0 / cover no-repeat;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  --ground: url(../assets/art/ui-v3/ui/card/ground-neutral.webp);
  --corner: url(../assets/art/ui-v3/ui/card/frame-t1-corner.webp); --eh: url(../assets/art/ui-v3/ui/card/frame-t1-edge-h.webp); --ev: url(../assets/art/ui-v3/ui/card/frame-t1-edge-v.webp);
  --gem: url(../assets/art/ui-v3/ui/card/gem-t1.webp); --badge: url(../assets/art/ui-v3/ui/card/badge-t1.webp); }
.ar-on .ar .ar-hc-card.v3 > * { --u: calc(100cqw / 600); }
.ar-on .ar .ar-hc-card.v3.f-order { --ground: url(../assets/art/ui-v3/ui/card/ground-order.webp); }
.ar-on .ar .ar-hc-card.v3.f-wild { --ground: url(../assets/art/ui-v3/ui/card/ground-wild.webp); }
.ar-on .ar .ar-hc-card.v3.f-arcane { --ground: url(../assets/art/ui-v3/ui/card/ground-arcane.webp); }
.ar-on .ar .ar-hc-card.v3.f-shadow { --ground: url(../assets/art/ui-v3/ui/card/ground-shadow.webp); }
.ar-on .ar .ar-hc-card.v3.locked { --ground: url(../assets/art/ui-v3/ui/card/ground-neutral.webp); }
/* (one not yours: disabled, the whole card greyed and dimmed, no chains (your call, 21 Nov); one free this week a little less; pointed at, a touch brighter) */
.ar-on .ar .ar-hc-card.v3.locked { filter: grayscale(1) brightness(0.62); opacity: 0.85; }
.ar-on .ar .ar-hc-card.v3.locked.free { filter: grayscale(0.6) brightness(0.8); opacity: 0.95; }
.ar-on .ar .ar-hc-card.v3.locked:is(:hover, :focus-visible, .sel) { filter: grayscale(1) brightness(0.8); opacity: 1; }
.ar-on .ar .ar-hc-card.v3.locked .art .pic { filter: none; }
.ar-on .ar .ar-hc-card.v3.m-2 { --corner: url(../assets/art/ui-v3/ui/card/frame-t2-corner.webp); --eh: url(../assets/art/ui-v3/ui/card/frame-t2-edge-h.webp); --ev: url(../assets/art/ui-v3/ui/card/frame-t2-edge-v.webp); --gem: url(../assets/art/ui-v3/ui/card/gem-t2.webp); --badge: url(../assets/art/ui-v3/ui/card/badge-t2.webp); }
.ar-on .ar .ar-hc-card.v3.m-3 { --corner: url(../assets/art/ui-v3/ui/card/frame-t3-corner.webp); --eh: url(../assets/art/ui-v3/ui/card/frame-t3-edge-h.webp); --ev: url(../assets/art/ui-v3/ui/card/frame-t3-edge-v.webp); --gem: url(../assets/art/ui-v3/ui/card/gem-t3.webp); --badge: url(../assets/art/ui-v3/ui/card/badge-t3.webp); }
.ar-on .ar .ar-hc-card.v3.m-4 { --corner: url(../assets/art/ui-v3/ui/card/frame-t4-corner.webp); --eh: url(../assets/art/ui-v3/ui/card/frame-t4-edge-h.webp); --ev: url(../assets/art/ui-v3/ui/card/frame-t4-edge-v.webp); --gem: url(../assets/art/ui-v3/ui/card/gem-t4.webp); --badge: url(../assets/art/ui-v3/ui/card/badge-t4.webp); }
.ar-on .ar .ar-hc-card.v3.m-5 { --corner: url(../assets/art/ui-v3/ui/card/frame-t5-corner.webp); --eh: url(../assets/art/ui-v3/ui/card/frame-t5-edge-h.webp); --ev: url(../assets/art/ui-v3/ui/card/frame-t5-edge-v.webp); --gem: url(../assets/art/ui-v3/ui/card/gem-t5.webp); --badge: url(../assets/art/ui-v3/ui/card/badge-t5.webp); }
.ar-on .ar .ar-hc-card.v3.sel { box-shadow: 0 0 0 2px #e2c27c, 0 0 24px 4px rgba(209, 171, 91, 0.45); }
/* the frame: its four corners (the top left's, mirrored), its straight runs, the plate at the top */
.ar-on .ar .ar-hc-card.v3 .cn { z-index: 6; width: calc(96 * var(--u)); height: calc(96 * var(--u)); background: var(--corner) 0 0 / 100% 100% no-repeat; }
.ar-on .ar .ar-hc-card.v3 .cn::before { display: none; }
.ar-on .ar .ar-hc-card.v3 .cn.tl { left: 0; top: 0; }
.ar-on .ar .ar-hc-card.v3 .cn.tr { left: auto; right: 0; top: 0; transform: scaleX(-1); }
.ar-on .ar .ar-hc-card.v3 .cn.bl { left: 0; top: auto; bottom: 0; transform: scaleY(-1); }
.ar-on .ar .ar-hc-card.v3 .cn.br { left: auto; right: 0; top: auto; bottom: 0; transform: scale(-1, -1); }
.ar-on .ar .ar-hc-card.v3.m-5 .cn, .ar-on .ar .ar-hc-card.v3.m-5 .ed { filter: drop-shadow(0 0 3px rgba(116, 224, 226, 0.6)); }
.ar-on .ar .ar-hc-card.v3 .ed { position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: var(--eh) 0 0 / calc(96 * var(--u)) calc(24 * var(--u)) repeat-x, var(--eh) 0 100% / calc(96 * var(--u)) calc(24 * var(--u)) repeat-x,
    var(--ev) 0 0 / calc(24 * var(--u)) calc(96 * var(--u)) repeat-y, var(--ev) 100% 0 / calc(24 * var(--u)) calc(96 * var(--u)) repeat-y; }
.ar-on .ar .ar-hc-card.v3 .ed::before { content: ''; position: absolute; left: 50%; top: 0; width: calc(192 * var(--u)); height: calc(40 * var(--u)); transform: translateX(-50%);
  background: url(../assets/art/ui-v3/ui/card/header.webp) 0 0 / 100% 100% no-repeat; }
.ar-on .ar .ar-hc-card.v3 .lk { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: url(../assets/art/ui-v3/ui/card/locked.webp) 0 0 / 100% 100% no-repeat; }
/* the window: the picture on the ground, the crests top left in their sockets, the tier on its plaque top right */
.ar-on .ar .ar-hc-card.v3 .art { height: calc(516 * var(--u)); background: none; }
.ar-on .ar .ar-hc-card.v3 .art .pic.sprite { padding: calc(64 * var(--u)) calc(40 * var(--u)) calc(110 * var(--u)); }
.ar-on .ar .ar-hc-card.v3 .art .pic.painted { padding: calc(24 * var(--u)) calc(24 * var(--u)) 0; }
.ar-on .ar .ar-hc-card.v3 .facs { left: calc(34 * var(--u)); top: calc(40 * var(--u)); flex-direction: column; gap: calc(8 * var(--u)); }
.ar-on .ar .ar-hc-card.v3 .facs .fac { width: calc(104 * var(--u)); height: calc(104 * var(--u)); background: url(../assets/art/ui-v3/ui/card/crest-socket.webp) 0 0 / 100% 100% no-repeat; }
.ar-on .ar .ar-hc-card.v3 .facs img, .ar-on .ar .ar-hc-card.v3 .facs .nx-fac { width: calc(76 * var(--u)); height: calc(76 * var(--u)); filter: none; image-rendering: pixelated; } /* (bigger sockets and marks, your word 21 Nov) */
.ar-on .ar .ar-hc-card.v3 .tier { right: calc(40 * var(--u)); top: calc(44 * var(--u)); min-width: 0; width: calc(84 * var(--u)); height: calc(60 * var(--u)); padding: 0 0 calc(6 * var(--u));
  font-size: max(11px, calc(28 * var(--u))); background: var(--badge) 0 0 / 100% 100% no-repeat; border: 0; box-shadow: none; }
.ar-on .ar .ar-hc-card.v3 .tier.lock { background: url(../assets/art/ui-v3/ui/card/badge-t1.webp) 0 0 / 100% 100% no-repeat; filter: grayscale(0.6) brightness(0.7); }
.ar-on .ar .ar-hc-card.v3 .tier img, .ar-on .ar .ar-hc-card.v3 .tier canvas, .ar-on .ar .ar-hc-card.v3 .tier svg { width: max(12px, calc(26 * var(--u))); height: max(12px, calc(26 * var(--u))); }
.ar-on .ar .ar-hc-card.v3 .new-mark { top: calc(46 * var(--u)); }
/* the name and role on the banner across the window's foot */
.ar-on .ar .ar-hc-card.v3 .id { left: calc(36 * var(--u)); right: calc(36 * var(--u)); top: calc(420 * var(--u)); transform: none; min-height: calc(84 * var(--u)); padding: calc(6 * var(--u)) calc(48 * var(--u));
  justify-content: center; align-items: center; text-align: center; gap: 0;
  background: url(../assets/art/ui-v3/ui/card/banner-mid.webp) 0 0 / calc(64 * var(--u)) 100% repeat-x; background-clip: content-box; }
.ar-on .ar .ar-hc-card.v3 .id::before, .ar-on .ar .ar-hc-card.v3 .id::after { content: ''; position: absolute; top: 0; bottom: 0; width: calc(48 * var(--u));
  background: url(../assets/art/ui-v3/ui/card/banner-end.webp) 0 0 / 100% 100% no-repeat; }
.ar-on .ar .ar-hc-card.v3 .id::before { left: 0; }
.ar-on .ar .ar-hc-card.v3 .id::after { right: 0; transform: scaleX(-1); }
.ar-on .ar .ar-hc-card.v3 .nm { font-size: max(14px, calc(42 * var(--u))); line-height: 1.05; }
.ar-on .ar .ar-hc-card.v3 .role { font-size: max(8px, calc(16 * var(--u))); letter-spacing: 0.12em; color: #c9b7e6; }
/* (one not yours: its name on its banner over the chains, in sight) */
.ar-on .ar .ar-hc-card.v3.locked .id, .ar-on .ar .ar-hc-card.v3.locked .how { position: relative; z-index: 5; }
.ar-on .ar .ar-hc-card.v3.locked .id { position: absolute; }
.ar-on .ar .ar-hc-card.v3.locked .how { padding: 2px 8px; background: rgba(13, 10, 20, 0.82); }
/* the lower field: the divider and its gem, the stars, the bar, the items, the numbers, the type */
.ar-on .ar .ar-hc-card.v3 .band { background: none; border-top: 0; padding: calc(44 * var(--u)) calc(24 * var(--u)) calc(30 * var(--u)); gap: calc(18 * var(--u)); }
.ar-on .ar .ar-hc-card.v3 .band::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(24 * var(--u)); background: url(../assets/art/ui-v3/ui/card/divider.webp) 0 0 / calc(64 * var(--u)) 100% repeat-x; }
.ar-on .ar .ar-hc-card.v3 .band::after { content: ''; position: absolute; left: 50%; top: calc(-4 * var(--u)); width: calc(32 * var(--u)); height: calc(32 * var(--u)); transform: translateX(-50%); background: var(--gem) 0 0 / 100% 100% no-repeat; }
.ar-on .ar .ar-hc-card.v3 .mrow { height: max(14px, calc(40 * var(--u))); }
.ar-on .ar .ar-hc-card.v3 .stars { gap: calc(8 * var(--u)); font-size: 0; }
.ar-on .ar .ar-hc-card.v3 .stars i { width: max(10px, calc(40 * var(--u))); height: max(10px, calc(40 * var(--u))); background: url(../assets/art/ui-v3/ui/card/star-empty.webp) 0 0 / 100% 100% no-repeat; text-shadow: none; }
.ar-on .ar .ar-hc-card.v3 .stars i.on { background-image: url(../assets/art/ui-v3/ui/card/star-full.webp); }
.ar-on .ar .ar-hc-card.v3 .stars.all i { filter: drop-shadow(0 0 4px rgba(209, 171, 91, 0.7)); }
.ar-on .ar .ar-hc-card.v3 .mbar { height: max(4px, calc(12 * var(--u))); background: url(../assets/art/ui-v3/ui/bars/frame-mid.webp) 0 0 / auto 100% repeat-x; }
.ar-on .ar .ar-hc-card.v3 .mbar i { background: url(../assets/art/ui-v3/ui/bars/mastery-fill.webp) 0 0 / auto 100% repeat-x; }
/* (the skill points waiting to be spent: the v3 art's violet gem on its navy plaque, the number in white) */
.ar-on .ar .ar-hc-card.v3 .mrow .sk-mark { height: max(18px, calc(48 * var(--u))); padding: 0 calc(16 * var(--u)) 0 calc(8 * var(--u)); gap: calc(6 * var(--u)); color: #f4ecff; font-size: max(12px, calc(26 * var(--u))); text-shadow: 0 2px 0 #000;
  background: url(../assets/art/ui-v3/ui/card/skillpoint-plaque.webp) 0 0 / 100% 100% no-repeat; border: 0; border-radius: 0; box-shadow: none; image-rendering: pixelated; }
.ar-on .ar .ar-hc-card.v3 .mrow .sk-mark i { width: max(14px, calc(32 * var(--u))); height: max(14px, calc(32 * var(--u))); font-size: 0; background: url(../assets/art/ui-v3/ui/card/skillpoint.webp) 0 0 / 100% 100% no-repeat; image-rendering: pixelated; }
.ar-on .ar .ar-hc-card.v3 .gear { grid-template-columns: repeat(3, calc(120 * var(--u))); justify-content: center; gap: calc(40 * var(--u)); } /* (square item boxes, your word 21 Nov) */
.ar-on .ar .ar-hc-card.v3 .gslot { height: calc(120 * var(--u)); background: none; border: 0 solid transparent; border-image: url(../assets/art/ui-v3/ui/card/slot-socket.webp) 14 fill / calc(14 * var(--u)); box-shadow: none; }
.ar-on .ar .ar-hc-card.v3 .gslot::after { content: ''; position: absolute; inset: 0; pointer-events: none; border: 0 solid transparent; border-image: var(--rim, none) 14 fill / calc(14 * var(--u)); }
.ar-on .ar .ar-hc-card.v3 .gslot.q-common { --rim: url(../assets/art/ui-v3/ui/card/slot-rim-common.webp); }
.ar-on .ar .ar-hc-card.v3 .gslot.q-rare { --rim: url(../assets/art/ui-v3/ui/card/slot-rim-rare.webp); }
.ar-on .ar .ar-hc-card.v3 .gslot.q-epic { --rim: url(../assets/art/ui-v3/ui/card/slot-rim-epic.webp); }
.ar-on .ar .ar-hc-card.v3 .gslot.q-legendary { --rim: url(../assets/art/ui-v3/ui/card/slot-rim-legendary.webp); }
.ar-on .ar .ar-hc-card.v3 .ty .chip { position: relative; padding: 0 calc(24 * var(--u)); border: 0; border-radius: 0; background: url(../assets/art/ui-v3/ui/card/chip-mid.webp) 0 0 / calc(32 * var(--u)) 100% repeat-x; background-clip: content-box; }
.ar-on .ar .ar-hc-card.v3 .ty .chip::before, .ar-on .ar .ar-hc-card.v3 .ty .chip::after { content: ''; position: absolute; top: 0; bottom: 0; width: calc(24 * var(--u)); background: url(../assets/art/ui-v3/ui/card/chip-end.webp) 0 0 / 100% 100% no-repeat; }
.ar-on .ar .ar-hc-card.v3 .ty .chip::before { left: 0; }
.ar-on .ar .ar-hc-card.v3 .ty .chip::after { right: 0; transform: scaleX(-1); }

/* (your words, 21 Nov: the stars in the middle, the skill points at the row's right end; the bar under them shorter and
   centred, easy to point at; the type off the card's edge, what hurts it more and less at the right; each number close
   to its icon) */
.ar-on .ar .ar-hc-card.v3 .mrow { position: relative; justify-content: center; }
.ar-on .ar .ar-hc-card.v3 .mrow .sk-mark { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; }
.ar-on .ar .ar-hc-card.v3 .mbar { position: relative; align-self: center; width: calc(340 * var(--u)); }
.ar-on .ar .ar-hc-card.v3 .mbar::before { content: ''; position: absolute; inset: -8px 0; }
.ar-on .ar .ar-hc-card.v3 .ty { padding: 0 calc(24 * var(--u)); margin-bottom: calc(18 * var(--u)); }
.ar-on .ar .ar-hc-card.v3 .ty .wk { margin-left: auto; }
.ar-on .ar .ar-hc-card.v3 .nums { padding: 0 calc(16 * var(--u)); }
.ar-on .ar .ar-hc-card.v3 .nums > span { gap: calc(4 * var(--u)); }
.ar-on .ar .ar-hc-card.v3 .nums .dt { gap: 3px; }

/* (the v3 art's stat icons beside a label, 21 Nov) */
.stat-ico { vertical-align: -3px; margin-right: 6px; image-rendering: pixelated; }
.ar-on .ar .ar-stat > span .stat-ico, .st-row .st-l .stat-ico { margin-right: 6px; }

/* ------------------------------------------------------------------ the champion card v3 (your art, 22 Nov: "card v3 added";
   Phone and PC alike; docs/ART-PROMPT-CARD-V3.md). Its tier's frame as one piece (--frame, 600 x 900) over its faction's
   scene (--scene); --u is one of the frame's pixels at the card's width, and every place below is a hole of the frames,
   measured on them (the same on all ten). Under the frame: the panel's dark, the scene, the champion, each hole's inside
   (the sockets' dark, the ribbon's parchment, the recesses' colours), the lit stars, the bar to the next star, the gem.
   Over it, in its holes: the words, the numbers, the marks and the items. */
.ar-on .ar .ar-hc-grid:has(> .c3) { grid-template-columns: repeat(auto-fill, minmax(250px, 270px)); gap: 22px 18px; }
.ar-on.ar-phone .ar .ar-hc-grid:has(> .c3) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.ar-on .ar .ar-hc-card.c3 { container-type: inline-size; display: block; aspect-ratio: 2 / 3; height: auto; padding: 0; border: 0; background: none; box-shadow: none; overflow: visible;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)); }
.ar-on .ar .ar-hc-card.c3 > * { --u: calc(100cqw / 600); }
.ar-on .ar .ar-hc-card.c3:hover { transform: translateY(-3px); }
.ar-on .ar .ar-hc-card.c3.sel { filter: drop-shadow(0 0 6px rgba(240, 205, 120, 0.9)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)); }
.ar-on .ar .ar-hc-card.c3.locked { filter: grayscale(1) brightness(0.62) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); opacity: 0.85; }
.ar-on .ar .ar-hc-card.c3.locked.free { filter: grayscale(0.6) brightness(0.8) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); opacity: 0.95; }
.ar-on .ar .ar-hc-card.c3.locked:is(:hover, :focus-visible, .sel) { filter: grayscale(1) brightness(0.8); opacity: 1; }
.ar-on .ar .ar-hc-card.c3 :is(.at, .lit) { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); }
.ar-on .ar .ar-hc-card.c3 .at { z-index: 3; display: flex; align-items: center; justify-content: center; min-width: 0; color: var(--ar-cream); font-family: var(--ar-text); line-height: 1; text-shadow: 0 1px 0 #000, 0 2px 3px rgba(0, 0, 0, 0.8); }
.ar-on .ar .ar-hc-card.c3 .lit { z-index: 1; display: block; }
.ar-on .ar .ar-hc-card.c3 :is(.tier, .nm, .role, .stars, .how, .ty, .pts) { right: auto; bottom: auto; min-width: 0; min-height: 0; margin: 0; padding: 0; transform: none; background: none; border: 0; border-radius: 0; box-shadow: none; }
.ar-on .ar .ar-hc-card.c3 .at :is(img, canvas, svg) { image-rendering: pixelated; }
.ar-on .ar .ar-hc-card.c3 .frame { --x: 0; --y: 0; --w: 600; --h: 900; z-index: 2; pointer-events: none; background: var(--frame) 0 0 / 100% 100% no-repeat; image-rendering: pixelated; }
/* under it */
.ar-on .ar .ar-hc-card.c3 .under { --x: 10; --y: 10; --w: 580; --h: 880; z-index: 0; border-radius: calc(22 * var(--u)); background: #140f1b; }
.ar-on .ar .ar-hc-card.c3 .scene { --x: 14; --y: 14; --w: 572; --h: 410; background: var(--scene) 0 0 / 100% 100% no-repeat; image-rendering: pixelated; }
.ar-on .ar .ar-hc-card.c3 .art { --x: 130; --y: 70; --w: 340; --h: 318; z-index: 1; display: block; overflow: visible; background: none; }
.ar-on .ar .ar-hc-card.c3 .art .pic { display: block; width: 100%; height: 100%; padding: 0; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 calc(4 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.55)); }
.ar-on .ar .ar-hc-card.c3 .art .pic.drawn { display: grid; place-items: end center; }
.ar-on .ar .ar-hc-card.c3 .hole { background: #1b1524; }
.ar-on .ar .ar-hc-card.c3 .hole:is(.tier, .dmg, .f0, .f1, .pgem, .hpi, .atki, .mw, .mr) { border-radius: 50%; background: radial-gradient(circle at 50% 38%, #3a2f48, #120d18 72%); }
.ar-on .ar .ar-hc-card.c3 .hole.tier { --x: 30; --y: 30; --w: 96; --h: 96; }
.ar-on .ar .ar-hc-card.c3 .hole.dmg { --x: 470; --y: 30; --w: 100; --h: 100; }
.ar-on .ar .ar-hc-card.c3 .hole.f0 { --x: 42; --y: 156; --w: 72; --h: 72; }
.ar-on .ar .ar-hc-card.c3 .hole.f1 { --x: 42; --y: 250; --w: 72; --h: 72; }
.ar-on .ar .ar-hc-card.c3 .hole.rib { --x: 44; --y: 400; --w: 512; --h: 44; background: linear-gradient(180deg, #f3e7c8, #e2d0a4); }
.ar-on .ar .ar-hc-card.c3 .hole.role { --x: 196; --y: 464; --w: 208; --h: 27; background: #241c2e; }
.ar-on .ar .ar-hc-card.c3 .hole.pgem { --x: 448; --y: 524; --w: 32; --h: 32; }
.ar-on .ar .ar-hc-card.c3 .hole.pnum { --x: 494; --y: 519; --w: 59; --h: 42; background: #2a1d3c; }
.ar-on .ar .ar-hc-card.c3 .hole.hpi { --x: 52; --y: 592; --w: 32; --h: 32; background: radial-gradient(circle at 50% 38%, #5a2424, #1d0c0c 75%); }
.ar-on .ar .ar-hc-card.c3 .hole.hpn { --x: 96; --y: 587; --w: 193; --h: 42; background: linear-gradient(180deg, #5c2222, #3a1414); }
.ar-on .ar .ar-hc-card.c3 .hole.atki { --x: 316; --y: 592; --w: 32; --h: 32; background: radial-gradient(circle at 50% 38%, #24405a, #0c141d 75%); }
.ar-on .ar .ar-hc-card.c3 .hole.atkn { --x: 360; --y: 587; --w: 193; --h: 42; background: linear-gradient(180deg, #23405e, #152a40); }
.ar-on .ar .ar-hc-card.c3 .hole:is(.i0, .i1, .i2) { --y: 657; --w: 122; --h: 122; background: radial-gradient(circle at 50% 40%, #241d2e, #120d18 80%); }
.ar-on .ar .ar-hc-card.c3 .hole.i0 { --x: 67; } .ar-on .ar .ar-hc-card.c3 .hole.i1 { --x: 239; } .ar-on .ar .ar-hc-card.c3 .hole.i2 { --x: 411; }
.ar-on .ar .ar-hc-card.c3 .hole.ty { --x: 46; --y: 808; --w: 178; --h: 52; background: #241c2e; }
.ar-on .ar .ar-hc-card.c3 .hole.sw { --x: 325; --y: 819; --w: 20; --h: 30; background: #241c2e; }
.ar-on .ar .ar-hc-card.c3 .hole.mw { --x: 364; --y: 804; --w: 60; --h: 60; }
.ar-on .ar .ar-hc-card.c3 .hole.sr { --x: 453; --y: 819; --w: 20; --h: 30; background: #241c2e; }
.ar-on .ar .ar-hc-card.c3 .hole.mr { --x: 492; --y: 804; --w: 60; --h: 60; }
.ar-on .ar .ar-hc-card.c3 .lit.st { --y: 518; --w: 32; --h: 32; border-radius: 50%; background: #241c2e; }
.ar-on .ar .ar-hc-card.c3 .lit.st.on { background: radial-gradient(circle at 50% 35%, #fff0b8 0%, #f2c75a 45%, #b9801f 100%); box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 240, 190, 0.6); }
.ar-on .ar .ar-hc-card.c3 .lit.s1 { --x: 46; } .ar-on .ar .ar-hc-card.c3 .lit.s2 { --x: 102; } .ar-on .ar .ar-hc-card.c3 .lit.s3 { --x: 158; } .ar-on .ar .ar-hc-card.c3 .lit.s4 { --x: 214; }
.ar-on .ar .ar-hc-card.c3 .lit.s5 { --x: 270; } .ar-on .ar .ar-hc-card.c3 .lit.s6 { --x: 326; } .ar-on .ar .ar-hc-card.c3 .lit.s7 { --x: 382; }
.ar-on .ar .ar-hc-card.c3 .lit.groove { --x: 43; --y: 563; --w: 374; --h: 2; background: linear-gradient(90deg, #f2c75a 0 calc(var(--into, 0) * 100%), #2a2433 0); }
.ar-on .ar .ar-hc-card.c3 .lit.gem { --x: 448; --y: 524; --w: 32; --h: 32; z-index: 1; border-radius: 50%; }
.ar-on .ar .ar-hc-card.c3 .lit.gem.on { background: url(../assets/art/ui-v3/ui/card/skillpoint.webp) 50% 50% / 125% 125% no-repeat; image-rendering: pixelated; }
/* over it */
.ar-on .ar .ar-hc-card.c3 .tier { --x: 30; --y: 30; --w: 96; --h: 96; font: 800 max(13px, calc(50 * var(--u))) / 1 var(--ar-cap); color: #f6e3b0; }
.ar-on .ar .ar-hc-card.c3 .tier.lock :is(img, canvas, svg) { width: calc(44 * var(--u)); height: calc(44 * var(--u)); }
.ar-on .ar .ar-hc-card.c3 .dmg { --x: 470; --y: 30; --w: 100; --h: 100; }
.ar-on .ar .ar-hc-card.c3 .dmg :is(img, canvas, svg) { width: calc(66 * var(--u)); height: calc(66 * var(--u)); }
.ar-on .ar .ar-hc-card.c3 .dmg.n2 > :is(img, canvas, svg) { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ar-on .ar .ar-hc-card.c3 .dmg.n2 > :first-child { clip-path: polygon(0 0, 60% 0, 40% 100%, 0 100%); }
.ar-on .ar .ar-hc-card.c3 .dmg.n2 > :nth-child(2) { clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%); }
.ar-on .ar .ar-hc-card.c3 .dmg.n2::after { content: ''; position: absolute; left: 50%; top: 50%; width: calc(3 * var(--u)); height: calc(66 * var(--u)); transform: translate(-50%, -50%) rotate(12deg); background: #1a1220; pointer-events: none; }
.ar-on .ar .ar-hc-card.c3 .fac.f0 { --x: 42; --y: 156; --w: 72; --h: 72; } .ar-on .ar .ar-hc-card.c3 .fac.f1 { --x: 42; --y: 250; --w: 72; --h: 72; }
.ar-on .ar .ar-hc-card.c3 .fac :is(img, .nx-fac) { width: calc(56 * var(--u)); height: calc(56 * var(--u)); }
.ar-on .ar .ar-hc-card.c3 .nm { --x: 44; --y: 400; --w: 512; --h: 44; padding: 0 calc(12 * var(--u)); text-shadow: none; }
.ar-on .ar .ar-hc-card.c3 .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 max(12px, calc(32 * var(--u))) / 1 var(--ar-cap); letter-spacing: 0.03em; color: #2b1a0e; }
.ar-on .ar .ar-hc-card.c3 .role { --x: 196; --y: 464; --w: 208; --h: 27; overflow: hidden; white-space: nowrap; font: 800 max(9px, calc(18 * var(--u))) / 1 var(--ar-cap); letter-spacing: 0.1em; text-transform: uppercase; color: #f3e6c8; }
/* (a phone's card is narrow: the longest roles, Controller and Marksman, on one line) */
.ar-on.ar-phone .ar .ar-hc-card.c3 .role { font-size: max(7.5px, calc(18 * var(--u))); letter-spacing: 0.02em; }
.ar-on .ar .ar-hc-card.c3 .stars { --x: 40; --y: 512; --w: 382; --h: 56; }
.ar-on .ar .ar-hc-card.c3 .pts { --x: 494; --y: 519; --w: 59; --h: 42; font: 800 max(11px, calc(30 * var(--u))) / 1 var(--ar-text); color: #9a8ab0; }
.ar-on .ar .ar-hc-card.c3 .pts.has { color: #f4ecff; }
.ar-on .ar .ar-hc-card.c3 .num.hp { --x: 52; --y: 592; --w: 32; --h: 32; } .ar-on .ar .ar-hc-card.c3 .num.atk { --x: 316; --y: 592; --w: 32; --h: 32; }
.ar-on .ar .ar-hc-card.c3 .num :is(img, canvas) { flex: none; width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.ar-on .ar .ar-hc-card.c3 .bnum { font: 800 max(11px, calc(30 * var(--u))) / 1 var(--ar-text); color: #fff; }
.ar-on .ar .ar-hc-card.c3 .bnum.hp { --x: 96; --y: 587; --w: 193; --h: 42; } .ar-on .ar .ar-hc-card.c3 .bnum.atk { --x: 360; --y: 587; --w: 193; --h: 42; }
.ar-on .ar .ar-hc-card.c3 .it { --y: 657; --w: 122; --h: 122; }
.ar-on .ar .ar-hc-card.c3 .it.i0 { --x: 67; } .ar-on .ar .ar-hc-card.c3 .it.i1 { --x: 239; } .ar-on .ar .ar-hc-card.c3 .it.i2 { --x: 411; }
.ar-on .ar .ar-hc-card.c3 .it:not(.empty) { box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--rc, #8a8399), inset 0 0 calc(18 * var(--u)) rgba(0, 0, 0, 0.6); }
.ar-on .ar .ar-hc-card.c3 .it.q-common { --rc: #8a8399; } .ar-on .ar .ar-hc-card.c3 .it.q-rare { --rc: #4f8fd8; } .ar-on .ar .ar-hc-card.c3 .it.q-epic { --rc: #9a6ac8; } .ar-on .ar .ar-hc-card.c3 .it.q-legendary { --rc: #d8942e; }
.ar-on .ar .ar-hc-card.c3 .it > :is(span, img, canvas) { width: calc(100 * var(--u)) !important; height: calc(100 * var(--u)) !important; }
.ar-on .ar .ar-hc-card.c3 .it > * :is(img, canvas) { width: 100% !important; height: 100% !important; }
.ar-on .ar .ar-hc-card.c3 .it .plus { font: 300 calc(60 * var(--u)) / 1 var(--ar-text); font-style: normal; color: #4a4358; text-shadow: none; }
.ar-on .ar .ar-hc-card.c3 .how { --x: 67; --y: 657; --w: 466; --h: 122; gap: calc(12 * var(--u)); padding: 0 calc(18 * var(--u)); background: rgba(17, 12, 23, 0.94); font: 600 max(11px, calc(28 * var(--u))) / 1.2 var(--ar-text); color: var(--ar-dim); text-align: center; }
.ar-on .ar .ar-hc-card.c3.free .how { color: var(--ar-gold2); }
.ar-on .ar .ar-hc-card.c3 .how :is(img, canvas, svg) { flex: none; width: calc(32 * var(--u)); height: calc(32 * var(--u)); }
.ar-on .ar .ar-hc-card.c3 .ty { --x: 46; --y: 808; --w: 178; --h: 52; font: 800 max(10px, calc(26 * var(--u))) / 1 var(--ar-cap); letter-spacing: 0.06em; color: #fff4dc; }
.ar-on .ar .ar-hc-card.c3 .sg { font: 800 max(10px, calc(26 * var(--u))) / 1 var(--ar-text); }
.ar-on .ar .ar-hc-card.c3 .sg.wk { --x: 325; --y: 819; --w: 20; --h: 30; color: #ff6a6a; } .ar-on .ar .ar-hc-card.c3 .sg.rs { --x: 453; --y: 819; --w: 20; --h: 30; color: #6bd672; }
.ar-on .ar .ar-hc-card.c3 .mu.wk { --x: 364; --y: 804; --w: 60; --h: 60; } .ar-on .ar .ar-hc-card.c3 .mu.rs { --x: 492; --y: 804; --w: 60; --h: 60; }
.ar-on .ar .ar-hc-card.c3 .mu :is(img, canvas, svg) { width: calc(46 * var(--u)); height: calc(46 * var(--u)); }

/* styles/arena-settings.css */
/*
 * Arena's Settings (ui/screens/settings.js; docs/design/arena-2026-11-14/4-settings.png): the pages down the left, the
 * page's settings as big rows in the middle (a switch, a few choices, a slider: the rows ui/widgets.js makes, dressed
 * here), and on the right what the row you point at does, over the page's place. Sizes are the 1920 x 1080 sheet's.
 */
.ar-on .ar-settings .ar-body { display: grid; grid-template-columns: 340px minmax(0, 1fr) 480px; gap: 26px; }

/* the pages */
.ar-on .ar .ar-set-cats { align-self: start; padding: 14px 0; display: flex; flex-direction: column; gap: 2px; animation: ar-in-left 0.4s ease-out both; }
.ar-on .ar .ar-set-cats > button { display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 26px; font: 700 23px/1 var(--ar-cap); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ar-dim); border-left: 4px solid transparent; transition: color 0.12s, background 0.12s, padding 0.12s; }
.ar-on .ar .ar-set-cats > button svg, .ar-on .ar .ar-set-cats > button canvas, .ar-on .ar .ar-set-cats > button img { width: 28px; height: 28px; flex: none; image-rendering: pixelated; opacity: 0.85; }
.ar-on .ar .ar-set-cats > button:hover, .ar-on .ar .ar-set-cats > button:focus-visible { color: var(--ar-cream); background: rgba(209, 171, 91, 0.1); border-left-color: var(--ar-line2); outline: none; }
.ar-on .ar .ar-set-cats > button.on { color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border-left-color: #f0d9a0; }
.ar-on .ar .ar-set-cats > button.on svg, .ar-on .ar .ar-set-cats > button.on canvas, .ar-on .ar .ar-set-cats > button.on img { opacity: 0.85; filter: brightness(0); }

/* the rows */
/* (the plate is as tall as its rows, up to the body's height: no empty plate under a short page) */
.ar-on .ar .ar-set-rows { align-self: start; max-height: 100%; padding: 26px 30px 26px 34px; animation: ar-in-up 0.4s ease-out both; }
.ar-on .ar .ar-set-flow { display: flex; flex-direction: column; gap: 28px; color: var(--ar-cream); font: 500 20px/1.35 var(--ar-text); }
.ar-on .ar .ar-set-flow .panel { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; background: none; border: 0; border-image: none; border-radius: 0; box-shadow: none; }
.ar-on .ar .ar-set-flow .h2, .ar-on .ar .ar-set-flow .set-sec { display: flex; align-items: center; gap: 10px; margin: 0 0 6px !important; padding: 0; font: 700 15px/1 var(--ar-cap); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ar-gold); border: 0; background: none; }
.ar-on .ar .ar-set-flow .h2::before, .ar-on .ar .ar-set-flow .set-sec::before { content: ""; width: 26px; height: 2px; background: var(--ar-gold); flex: none; }
/* (a part of a page, over its boxes: bigger, plain) */
.ar-on .ar .ar-set-flow > .set-sec { margin: 0 0 -14px !important; font: 800 26px/1.1 var(--ar-cap); letter-spacing: 0.08em; text-transform: none; color: var(--ar-cream); }
.ar-on .ar .ar-set-flow > .set-sec::before { content: none; }
.ar-on .ar .ar-set-flow p, .ar-on .ar .ar-set-flow .small, .ar-on .ar .ar-set-flow .xs { font-size: 18px; line-height: 1.35; }
.ar-on .ar .ar-set-flow .muted { color: var(--ar-mute); }
.ar-on .ar .ar-set-flow .panel > p { margin: 6px 0; color: var(--ar-dim); }

/* a row: a switch */
.ar-on .ar .ar-set-flow .toggle.list-item { display: flex; align-items: center; gap: 20px; width: 100%; min-height: 78px; margin: 0; padding: 12px 14px 12px 16px; text-align: left; font: 500 24px/1.2 var(--ar-text); color: var(--ar-cream);
  background: none; border: 0; border-bottom: 1px solid rgba(90, 74, 44, 0.42); border-left: 3px solid transparent; border-radius: 0; box-shadow: none; transition: background 0.12s, border-color 0.12s; }
.ar-on .ar .ar-set-flow .toggle.list-item .grow { flex: 1; min-width: 0; }
.ar-on .ar .ar-set-flow .toggle.list-item .grow > .xs { margin-top: 3px; font-size: 17px; color: var(--ar-mute); }
.ar-on .ar .ar-set-flow .toggle.list-item:hover, .ar-on .ar .ar-set-flow .toggle.list-item:focus-visible, .ar-on .ar .ar-set-flow .ar-row-on { background: linear-gradient(90deg, rgba(209, 171, 91, 0.12), rgba(209, 171, 91, 0)); border-left-color: var(--ar-gold); outline: none; }
.ar-on .ar .ar-set-flow .switch { position: relative; flex: none; width: 76px; height: 38px; margin: 0; background: #2a2140; border: 1px solid var(--ar-edge); border-radius: 0; box-shadow: none; transition: background 0.16s, border-color 0.16s; }
.ar-on .ar .ar-set-flow .switch::after, .ar-on .ar .ar-set-flow .switch::before { content: none; }
.ar-on .ar .ar-set-flow .switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 34px; height: 30px; margin: 0; border-radius: 0; background: #7d7290; box-shadow: none; transform: none; transition: left 0.16s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.16s; }
.ar-on .ar .ar-set-flow .switch.on { background: #6b4e12; border-color: var(--ar-gold); }
.ar-on .ar .ar-set-flow .switch.on::after { left: 37px; background: linear-gradient(180deg, #e2c27c, #d1ab5b); box-shadow: 0 0 12px rgba(209, 171, 91, 0.5); }

/* a row: a few choices */
.ar-on .ar .ar-set-flow .set-choice { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; padding: 12px 14px 12px 16px !important; border-bottom: 1px solid rgba(90, 74, 44, 0.42); border-left: 3px solid transparent; transition: background 0.12s, border-color 0.12s; }
.ar-on .ar .ar-set-flow .set-choice > div:first-child { flex: 1; min-width: 0; font: 500 24px/1.2 var(--ar-text); color: var(--ar-cream); }
.ar-on .ar .ar-set-flow .set-choice > div:first-child:empty { display: none; }
.ar-on .ar .ar-set-flow .set-choice > .row { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 66%; margin: 0; }
.ar-on .ar .ar-set-flow .set-choice:hover, .ar-on .ar .ar-set-flow .set-choice:focus-within { background: linear-gradient(90deg, rgba(209, 171, 91, 0.12), rgba(209, 171, 91, 0)); border-left-color: var(--ar-gold); }

/* the game's own buttons here: flat, the chosen one yellow */
.ar-on .ar .ar-set-flow .btn { min-height: 0; height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ar-dim); text-shadow: none;
  background: rgba(13, 10, 20, 0.72); border: 1px solid var(--ar-edge); border-image: none; border-radius: 0; box-shadow: none; transition: color 0.12s, border-color 0.12s, transform 0.1s; }
.ar-on .ar .ar-set-flow .btn .lbl { font: inherit; letter-spacing: inherit; color: inherit; }
.ar-on .ar .ar-set-flow .btn:hover, .ar-on .ar .ar-set-flow .btn:focus-visible { color: var(--ar-cream); border-color: var(--ar-line2); outline: none; filter: none; }
.ar-on .ar .ar-set-flow .btn:active { transform: translateY(2px); }
.ar-on .ar .ar-set-flow .btn.selected, .ar-on .ar .ar-set-flow .btn.primary { color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border-color: #f0d9a0; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5); }
.ar-on .ar .ar-set-flow .btn.danger { color: #ffb4a4; border-color: #7a3a30; }
.ar-on .ar .ar-set-flow .btn svg, .ar-on .ar .ar-set-flow .btn canvas { width: 20px; height: 20px; }
.ar-on .ar .ar-set-flow .btn.block { width: 100%; }

/* the theme: two big choices, each with what it is */
.ar-on .ar .ar-set-flow .theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 12px; padding: 0; }
.ar-on.ar-phone .ar .ar-set-flow .theme-pick { grid-template-columns: 1fr; } /* (a phone: the three graphics one under another) */
.ar-on .ar .ar-set-flow .btn.theme-opt { height: auto; min-height: 96px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 14px 18px; text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; }
.ar-on .ar .ar-set-flow .btn.theme-opt b { font: 700 22px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; }
.ar-on .ar .ar-set-flow .btn.theme-opt small { font: 500 17px/1.3 var(--ar-text); letter-spacing: 0; text-transform: none; color: var(--ar-dim); }
.ar-on .ar .ar-set-flow .btn.theme-opt.selected { color: var(--ar-gold2); background: rgba(40, 29, 14, 0.94) !important; border: 2px solid var(--ar-gold); box-shadow: 0 0 22px rgba(209, 171, 91, 0.2); }
.ar-on .ar .ar-set-flow .btn.theme-opt.selected small { color: var(--ar-cream); }

/* a row: a slider (its name, its number, the bar) */
.ar-on .ar .ar-set-flow label.col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: 24px; min-height: 72px; padding: 10px 14px 10px 16px !important; border-bottom: 1px solid rgba(90, 74, 44, 0.42); border-left: 3px solid transparent; }
.ar-on .ar .ar-set-flow label.col > .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 500 24px/1.2 var(--ar-text); color: var(--ar-cream); }
.ar-on .ar .ar-set-flow label.col .num { font: 700 20px/1 var(--ar-text); color: var(--ar-gold2); min-width: 64px; text-align: right; }
.ar-on .ar .ar-set-flow label.col:hover, .ar-on .ar .ar-set-flow label.col:focus-within { background: linear-gradient(90deg, rgba(209, 171, 91, 0.12), rgba(209, 171, 91, 0)); border-left-color: var(--ar-gold); }
.ar-on .ar .ar-set-flow input[type='range'] { width: 100%; height: 26px; margin: 0; accent-color: #d1ab5b; background: none; cursor: pointer; }
.ar-on .ar .ar-set-flow .vol-line { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(90, 74, 44, 0.42); }
.ar-on .ar .ar-set-flow .vol-line label.col { flex: 1; border-bottom: 0; }
.ar-on .ar .ar-set-flow .vol-line .btn { width: 48px; padding: 0; }
.ar-on .ar .ar-set-flow .muted-ch { opacity: 0.5; }

/* a plain line: a name and something at its end (a key, a number) */
.ar-on .ar .ar-set-flow .panel > .row.between { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: 6px 14px 6px 16px; font-size: 22px; border-bottom: 1px solid rgba(90, 74, 44, 0.42); border-left: 3px solid transparent; }
.ar-on .ar .ar-set-flow .panel > .row.between:hover { background: linear-gradient(90deg, rgba(209, 171, 91, 0.12), rgba(209, 171, 91, 0)); border-left-color: var(--ar-gold); }
.ar-on .ar .ar-set-flow .kbd { display: inline-grid; place-items: center; min-width: 40px; height: 34px; padding: 0 10px; font: 700 16px/1 var(--ar-text); color: var(--ar-cream); background: #2a2140; border: 1px solid #6c5f86; border-bottom-width: 3px; border-radius: 5px; }
.ar-on .ar .ar-set-flow .panel > .btn, .ar-on .ar .ar-set-flow .panel > .row > .btn { margin-top: 10px; align-self: flex-start; }
.ar-on .ar .ar-set-flow .panel > .row:not(.between) { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.ar-on .ar .ar-set-flow .list-item:not(.toggle) { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 10px 14px 10px 16px; font-size: 21px; color: var(--ar-cream); background: none; border: 0; border-bottom: 1px solid rgba(90, 74, 44, 0.42); border-radius: 0; box-shadow: none; text-align: left; }
.ar-on .ar .ar-set-flow input:not([type='range']), .ar-on .ar .ar-set-flow select, .ar-on .ar .ar-set-flow textarea { min-height: 46px; padding: 0 12px; font: 500 19px/1.2 var(--ar-text); color: var(--ar-cream); background: rgba(8, 5, 14, 0.72); border: 1px solid var(--ar-edge); border-radius: 0; }
.ar-on .ar .ar-set-flow .set-league-note { font-size: 18px; color: var(--ar-dim); }
.ar-on .ar .ar-set-flow a { color: var(--ar-gold2); }

/* what the row does */
.ar-on .ar .ar-set-help { padding: 28px 30px 26px; display: flex; flex-direction: column; gap: 12px; min-height: 0; animation: ar-in-right 0.4s ease-out both; }
.ar-on .ar .ar-set-help h2 { margin: 0; font: 800 38px/1.05 var(--ar-cap); letter-spacing: 0.05em; color: var(--ar-gold2); }
.ar-on .ar .ar-set-help p { margin: 0; font-size: 20px; line-height: 1.4; color: var(--ar-cream); }
.ar-on .ar .ar-set-help.swap > h2, .ar-on .ar .ar-set-help.swap > p { animation: ar-pop 0.2s ease-out both; }
.ar-on .ar .ar-set-help .pic { position: relative; flex: 1; min-height: 120px; margin-top: 10px; overflow: hidden; background: #120d1c center/cover no-repeat; border: 1px solid var(--ar-edge); image-rendering: pixelated; }
.ar-on .ar .ar-set-help .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 7, 16, 0.85) 0, rgba(10, 7, 16, 0) 50%); pointer-events: none; }
.ar-on .ar .ar-set-help .pic > * { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1; }
.ar-on .ar .ar-set-help small { font-size: 16px; color: var(--ar-mute); }

/* phones: the pages as a strip, the rows under it; no help panel */
.ar-on.ar-phone .ar-settings .ar-body { display: flex; flex-direction: column; gap: 10px; }
/* (every page in sight at once, four to a row, its picture over its name: your report, 17 Nov, "you can't see all
   settings". It was a strip to swipe, and before that a strip as wide as its eight pages, 1,100 px on a 393 px phone,
   cut at the screen's edge: the desktop's align-self: start. No swiping now, nothing hidden) */
.ar-on.ar-phone .ar .ar-set-cats { flex: none; align-self: stretch; min-width: 0; max-width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; animation: none; }
.ar-on.ar-phone .ar .ar-set-cats > button { min-width: 0; height: 58px; padding: 6px 2px 5px; flex-direction: column; justify-content: center; gap: 5px; font-size: 10.5px; letter-spacing: 0.03em; border-left: 0; border-bottom: 3px solid transparent; }
.ar-on.ar-phone .ar .ar-set-cats > button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-on.ar-phone .ar .ar-set-cats > button.on { border-bottom-color: #f0d9a0; }
.ar-on.ar-phone .ar .ar-set-cats > button svg, .ar-on.ar-phone .ar .ar-set-cats > button canvas, .ar-on.ar-phone .ar .ar-set-cats > button img { width: 20px; height: 20px; }
.ar-on.ar-phone .ar .ar-set-rows { flex: none; padding: 14px 10px 14px 12px; overflow: visible; animation: none; }
.ar-on.ar-phone .ar .ar-set-help { display: none; }
.ar-on.ar-phone .ar .ar-set-flow { gap: 20px; font-size: 17px; }
.ar-on.ar-phone .ar .ar-set-flow > .set-sec { font-size: 21px; margin-bottom: -8px !important; }
.ar-on.ar-phone .ar .ar-set-flow .toggle.list-item, .ar-on.ar-phone .ar .ar-set-flow .set-choice > div:first-child, .ar-on.ar-phone .ar .ar-set-flow label.col > .row { font-size: 18px; }
.ar-on.ar-phone .ar .ar-set-flow .toggle.list-item { min-height: 62px; padding: 10px 6px 10px 8px; gap: 12px; }
.ar-on.ar-phone .ar .ar-set-flow .toggle.list-item .grow > .xs, .ar-on.ar-phone .ar .ar-set-flow p, .ar-on.ar-phone .ar .ar-set-flow .small, .ar-on.ar-phone .ar .ar-set-flow .xs { font-size: 14px; }
.ar-on.ar-phone .ar .ar-set-flow .switch { width: 60px; height: 32px; }
.ar-on.ar-phone .ar .ar-set-flow .switch::after { width: 26px; height: 24px; }
.ar-on.ar-phone .ar .ar-set-flow .switch.on::after { left: 29px; }
.ar-on.ar-phone .ar .ar-set-flow .set-choice { flex-direction: column; align-items: stretch; gap: 8px; min-height: 0; padding: 10px 6px 12px 8px !important; }
.ar-on.ar-phone .ar .ar-set-flow .set-choice > .row { max-width: none; justify-content: flex-start; }
.ar-on.ar-phone .ar .ar-set-flow .btn { height: 42px; padding: 0 12px; font-size: 13px; letter-spacing: 0.08em; }
.ar-on.ar-phone .ar .ar-set-flow label.col { grid-template-columns: 1fr; gap: 4px; min-height: 0; padding: 10px 6px 10px 8px !important; }
.ar-on.ar-phone .ar .ar-set-flow .panel > .row.between { font-size: 17px; min-height: 50px; padding: 6px 6px 6px 8px; }
/* Settings' boxes have room inside, and their small print is read (your word, 17 Nov: "boxes don't have inner space
   and text looks bad"). An older rule drew a border round each group with nothing between it and its rows, so a
   group's heading sat on the line; and a setting's second line came out at 14 px on the sheet, 10 on a laptop. Each
   group is a card now: 18 px round its rows, its heading inside, the second line at 17 px. */
html[data-theme].ar-on .ar .ar-set-flow .panel { padding: 16px 18px 12px; background: rgba(13, 10, 20, 0.5); border: 1px solid var(--ar-edge); box-shadow: none; }
html[data-theme].ar-on .ar .ar-set-flow .panel > .h2 { margin: 2px 0 10px !important; padding: 0 0 0 2px; }
html[data-theme].ar-on .ar .ar-set-flow .panel > :last-child { border-bottom: 0; }
html[data-theme].ar-on .ar .ar-set-flow > .set-sec { margin: 8px 0 -14px 2px !important; }
html[data-theme].ar-on:not(.ar-phone) .ar .ar-set-flow .xs, html[data-theme].ar-on:not(.ar-phone) .ar .ar-set-flow .small, html[data-theme].ar-on:not(.ar-phone) .ar .ar-set-flow p { font-size: 17.5px !important; line-height: 1.35; }
html[data-theme].ar-on:not(.ar-phone) .ar .ar-set-flow .toggle.list-item .grow > .xs { margin-top: 4px; font-size: 17px !important; line-height: 1.3; color: var(--ar-dim); }
html[data-theme].ar-on:not(.ar-phone) .ar .ar-set-help .xs, html[data-theme].ar-on:not(.ar-phone) .ar .ar-set-help small, html[data-theme].ar-on:not(.ar-phone) .ar .ar-set-help .hint { font-size: 17px !important; line-height: 1.35; }
html[data-theme].ar-on .ar .ar-set-flow .toggle.list-item, html[data-theme].ar-on .ar .ar-set-flow .set-choice, html[data-theme].ar-on .ar .ar-set-flow label.col { padding-left: 14px !important; padding-right: 12px !important; }
html[data-theme].ar-on.ar-phone .ar .ar-set-flow .panel { padding: 10px 10px 8px; }


/* styles/arena-quests.css */
/*
 * Arena's Quests (ui/arena/quests.js): today's three quests as big cards and the achievements nearly yours on the left,
 * the week (its share, its five chests down a line, its seven days) on the right. Sizes are the 1920 x 1080 sheet's.
 */
.ar-on .ar-quests .ar-body { display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 28px; }
.ar-on .ar-quests .ar-body.still * { animation: none !important; }

/* what something pays */
.ar-on .ar .ar-pay { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 8px; font: 700 18px/1 var(--ar-text); color: var(--ar-cream); background: rgba(8, 5, 14, 0.6); border: 1px solid var(--ar-edge); white-space: nowrap; }
.ar-on .ar .ar-pay img, .ar-on .ar .ar-pay canvas, .ar-on .ar .ar-pay svg { width: 22px; height: 22px; image-rendering: pixelated; }
.ar-on .ar .pays { display: flex; flex-wrap: wrap; gap: 8px; }

/* today */
.ar-on .ar .ar-q-left { display: flex; flex-direction: column; gap: 16px; min-height: 0; padding-right: 6px; }
.ar-on .ar .ar-q-left > .ar-kick { margin-top: 4px; }
.ar-on .ar .ar-q-cards { display: flex; flex-direction: column; gap: 16px; }
.ar-on .ar .ar-q-card { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 22px; min-height: 166px; padding: 18px 24px 18px 20px; overflow: hidden; animation: ar-in-left 0.45s ease-out both; animation-delay: calc(var(--i, 0) * 70ms); transition: border-color 0.14s, filter 0.3s; }
.ar-on .ar .ar-q-card .pic { width: 96px; height: 96px; display: grid; place-items: center; background: #0a0710; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-q-card .pic svg, .ar-on .ar .ar-q-card .pic img, .ar-on .ar .ar-q-card .pic canvas { width: 60px; height: 60px; image-rendering: pixelated; }
.ar-on .ar .ar-q-card .tx { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ar-on .ar .ar-q-card .tx > b { font: 700 27px/1.15 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); }
.ar-on .ar .prog { display: flex; align-items: center; gap: 14px; font: 700 19px/1 var(--ar-text); color: var(--ar-dim); }
.ar-on .ar .prog .bar { flex: 1; height: 8px; background: #2a2140; overflow: hidden; }
.ar-on .ar .prog .bar i { display: block; height: 100%; background: linear-gradient(90deg, #b48d3e, var(--ar-gold2)); transform-origin: left; animation: ar-grow 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.ar-on .ar .ar-q-card .acts { display: flex; align-items: center; gap: 10px; }
.ar-on .ar .ar-q-card .acts .ar-btn { height: 60px; min-width: 150px; font-size: 20px; }
.ar-on .ar .ar-q-card .acts .ar-btn.swap { min-width: 0; width: 60px; padding: 0; }
.ar-on .ar .ar-q-card .acts .ar-btn.swap svg { width: 24px; height: 24px; }
.ar-on .ar .ar-q-card .acts .got { font: 700 18px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ar-green); }
.ar-on .ar .ar-q-card.done { border-color: var(--ar-gold); box-shadow: inset 0 0 0 1px rgba(226, 194, 124, 0.3), 0 0 30px rgba(209, 171, 91, 0.16); }
.ar-on .ar .ar-q-card.done .prog .bar i { background: linear-gradient(90deg, #d1ab5b, #f0d9a0); }
.ar-on .ar .ar-q-card.done .acts .ar-btn.claim { position: relative; overflow: hidden; }
.ar-on .ar .ar-q-card.done .acts .ar-btn.claim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%); background-size: 260% 100%; animation: ar-sheen 2.6s ease-in-out infinite; pointer-events: none; }
.ar-on .ar .ar-q-card.claimed { filter: saturate(0.5) brightness(0.72); }
.ar-on .ar .ar-q-card.claiming { animation: ar-q-claim 0.75s ease-out both; }
@keyframes ar-q-claim { 0% { filter: brightness(1); } 30% { filter: brightness(1.9); transform: scale(1.012); } 100% { filter: saturate(0.5) brightness(0.72); transform: scale(1); } }

/* nearly yours */
.ar-on .ar .ar-q-near { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ar-on .ar .ar-q-ach { display: flex; align-items: center; gap: 16px; min-height: 132px; padding: 16px 18px; text-align: left; animation: ar-in-up 0.45s 0.2s ease-out both; transition: border-color 0.14s, transform 0.14s, filter 0.14s; }
.ar-on .ar .ar-q-ach .bdg { flex: none; width: 64px; height: 64px; display: grid; place-items: center; }
.ar-on .ar .ar-q-ach .bdg img, .ar-on .ar .ar-q-ach .bdg canvas { width: 64px; height: 64px; image-rendering: pixelated; }
.ar-on .ar .ar-q-ach .tx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ar-on .ar .ar-q-ach .tx b { font: 700 19px/1.1 var(--ar-cap); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-q-ach .tx small { font-size: 15px; line-height: 1.2; color: var(--ar-dim); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.4em; }
.ar-on .ar .ar-q-ach .prog { font-size: 15px; gap: 10px; }
.ar-on .ar .ar-q-ach .prog .bar { display: block; height: 6px; }
.ar-on .ar .ar-q-ach:hover, .ar-on .ar .ar-q-ach:focus-visible { border-color: var(--ar-line2); transform: translateY(-3px); filter: brightness(1.15); outline: none; }
.ar-on .ar .ar-q-pass { display: grid; grid-template-columns: 52px minmax(0, 1fr) 260px; align-items: center; gap: 16px; padding: 14px 18px; text-align: left; }
.ar-on .ar .ar-q-pass img, .ar-on .ar .ar-q-pass canvas { width: 44px; height: 44px; image-rendering: pixelated; }
.ar-on .ar .ar-q-pass .tx b { display: block; font: 700 20px/1.1 var(--ar-cap); letter-spacing: 0.05em; }
.ar-on .ar .ar-q-pass .tx small { display: block; font-size: 16px; color: var(--ar-dim); }
.ar-on .ar .ar-q-pass .bar { height: 8px; background: #2a2140; }
.ar-on .ar .ar-q-pass .bar i { display: block; height: 100%; background: linear-gradient(90deg, #b48d3e, var(--ar-gold2)); }

/* the week */
.ar-on .ar .ar-q-week { align-self: start; max-height: 100%; padding: 26px 28px 24px; display: flex; flex-direction: column; gap: 14px; animation: ar-in-right 0.45s ease-out both; }
.ar-on .ar .ar-q-week .hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ar-on .ar .ar-q-week .pct { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; }
.ar-on .ar .ar-q-week .pct b { font: 800 76px/0.9 var(--ar-cap); color: var(--ar-gold2); }
.ar-on .ar .ar-q-week .pct i { font: 800 36px/1 var(--ar-cap); font-style: normal; color: var(--ar-gold); margin-right: 14px; }
.ar-on .ar .ar-q-week .pct .ar-tag svg { width: 16px; height: 16px; }
.ar-on .ar .ar-q-week .hd > button { position: static; flex: none; margin: 0 6px -6px 0; inset: auto; transform: none; }
.ar-on .ar .ar-q-week .pct .ar-tag { text-transform: none; letter-spacing: 0.06em; font-size: 16px; }
.ar-on .ar .ar-q-week .intro { margin: 0; font-size: 18px; line-height: 1.35; color: var(--ar-dim); }
.ar-on .ar .ar-q-chests { position: relative; display: flex; flex-direction: column; gap: 8px; padding-left: 34px; }
.ar-on .ar .ar-q-chests::before, .ar-on .ar .ar-q-chests::after { content: ""; position: absolute; left: 10px; top: 0; width: 6px; }
.ar-on .ar .ar-q-chests::before { bottom: 0; background: #2a2140; }
.ar-on .ar .ar-q-chests::after { height: var(--fill, 0%); background: linear-gradient(180deg, #b48d3e, var(--ar-gold2)); box-shadow: 0 0 12px rgba(209, 171, 91, 0.5); transition: height 0.6s cubic-bezier(0.2, 0.9, 0.3, 1); }
.ar-on .ar .ar-q-chest { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 86px; padding: 8px 16px 8px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); transition: border-color 0.14s, transform 0.14s, filter 0.14s; }
.ar-on .ar .ar-q-chest .dot { position: absolute; left: -31px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: #2a2140; border: 2px solid var(--ar-edge); transform: rotate(45deg); z-index: 1; }
.ar-on .ar .ar-q-chest .pic { width: 68px; height: 68px; display: grid; place-items: center; }
.ar-on .ar .ar-q-chest .pic img, .ar-on .ar .ar-q-chest .pic canvas { width: 64px; height: 64px; image-rendering: pixelated; filter: grayscale(0.8) brightness(0.6); }
.ar-on .ar .ar-q-chest .tx { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ar-on .ar .ar-q-chest .tx b { font: 700 20px/1 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-dim); }
.ar-on .ar .ar-q-chest .pays .ar-pay { height: 30px; font-size: 16px; padding: 0 10px 0 6px; }
.ar-on .ar .ar-q-chest .st { font: 700 16px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ar-mute); white-space: nowrap; }
.ar-on .ar .ar-q-chest.ready { border-color: var(--ar-gold); background: rgba(40, 29, 14, 0.9); cursor: pointer; animation: ar-q-ready 1.6s ease-in-out infinite; }
.ar-on .ar .ar-q-chest.ready .pic img, .ar-on .ar .ar-q-chest.ready .pic canvas, .ar-on .ar .ar-q-chest.claimed .pic img, .ar-on .ar .ar-q-chest.claimed .pic canvas { filter: none; }
.ar-on .ar .ar-q-chest.ready .dot, .ar-on .ar .ar-q-chest.claimed .dot { background: var(--ar-gold); border-color: #f0d9a0; }
.ar-on .ar .ar-q-chest.ready .tx b { color: var(--ar-gold2); }
.ar-on .ar .ar-q-chest.ready .st { color: #1a1309; background: var(--ar-yellow); padding: 8px 12px; }
.ar-on .ar .ar-q-chest.ready:hover, .ar-on .ar .ar-q-chest.ready:focus-visible { transform: translateX(4px); filter: brightness(1.15); outline: none; }
.ar-on .ar .ar-q-chest.claimed { opacity: 0.7; }
.ar-on .ar .ar-q-chest.claimed .st { color: var(--ar-green); }
.ar-on .ar .ar-q-chest:disabled { cursor: default; }
@keyframes ar-q-ready { 0%, 100% { box-shadow: 0 0 0 0 rgba(209, 171, 91, 0); } 50% { box-shadow: 0 0 22px 0 rgba(209, 171, 91, 0.35); } }
.ar-on .ar .ar-q-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.ar-on .ar .ar-q-days .day { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 9px 2px; border: 1px solid var(--ar-edge); background: rgba(13, 10, 20, 0.5); }
.ar-on .ar .ar-q-days .day b { font: 700 13px/1 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-dim); white-space: nowrap; }
.ar-on .ar .ar-q-days .day .pips { display: flex; gap: 3px; }
.ar-on .ar .ar-q-days .day .pips i { width: 13px; height: 7px; background: #2a2140; }
.ar-on .ar .ar-q-days .day .pips i.on { background: var(--ar-gold); }
.ar-on .ar .ar-q-days .day.today { border-color: var(--ar-gold); }
.ar-on .ar .ar-q-days .day.today b { color: var(--ar-gold2); }
.ar-on .ar .ar-q-days .day.later { opacity: 0.5; }

/* a window narrower than the sheet */
.ar-on .ar-quests.narrower .ar-body { grid-template-columns: minmax(0, 1fr) 500px; gap: 20px; }
.ar-on .ar-quests.narrower .ar-q-card { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 16px; padding: 16px 18px; }
.ar-on .ar-quests.narrower .ar-q-card .pic { width: 80px; height: 80px; }
.ar-on .ar-quests.narrower .ar-q-card .tx > b { font-size: 23px; }
.ar-on .ar-quests.narrower .ar-q-card .acts .ar-btn { min-width: 120px; }
.ar-on .ar-quests.narrower .ar-q-ach .tx small { display: none; }

/* phones: today, then the week */
.ar-on.ar-phone .ar-quests .ar-body { display: flex; flex-direction: column; gap: 14px; }
.ar-on.ar-phone .ar .ar-q-left { flex: none; overflow: visible; padding-right: 0; gap: 10px; }
.ar-on.ar-phone .ar .ar-q-cards { gap: 10px; }
.ar-on.ar-phone .ar .ar-q-card { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; min-height: 0; padding: 12px; animation: none; }
.ar-on.ar-phone .ar .ar-q-card .pic { width: 56px; height: 56px; align-self: start; }
.ar-on.ar-phone .ar .ar-q-card .pic svg, .ar-on.ar-phone .ar .ar-q-card .pic img, .ar-on.ar-phone .ar .ar-q-card .pic canvas { width: 36px; height: 36px; }
.ar-on.ar-phone .ar .ar-q-card .tx { gap: 8px; }
.ar-on.ar-phone .ar .ar-q-card .tx > b { font-size: 19px; }
.ar-on.ar-phone .ar .prog { font-size: 15px; gap: 10px; }
.ar-on.ar-phone .ar .ar-pay { height: 28px; font-size: 15px; padding: 0 8px 0 6px; }
.ar-on.ar-phone .ar .ar-pay img, .ar-on.ar-phone .ar .ar-pay canvas, .ar-on.ar-phone .ar .ar-pay svg { width: 18px; height: 18px; }
.ar-on.ar-phone .ar .ar-q-card .acts { grid-column: 1 / -1; justify-content: flex-end; }
.ar-on.ar-phone .ar .ar-q-card .acts .ar-btn { height: 46px; min-width: 120px; font-size: 16px; flex: 1; }
.ar-on.ar-phone .ar .ar-q-card .acts .ar-btn.swap { flex: none; width: 46px; }
.ar-on.ar-phone .ar .ar-q-near { grid-template-columns: 1fr; gap: 8px; }
.ar-on.ar-phone .ar .ar-q-ach { padding: 10px 12px; gap: 12px; animation: none; }
.ar-on.ar-phone .ar .ar-q-ach .bdg, .ar-on.ar-phone .ar .ar-q-ach .bdg img, .ar-on.ar-phone .ar .ar-q-ach .bdg canvas { width: 48px; height: 48px; }
.ar-on.ar-phone .ar .ar-q-ach .tx small { min-height: 0; -webkit-line-clamp: 1; }
.ar-on.ar-phone .ar .ar-q-pass { grid-template-columns: 44px minmax(0, 1fr); }
.ar-on.ar-phone .ar .ar-q-pass .bar { grid-column: 1 / -1; }
.ar-on.ar-phone .ar .ar-q-week { flex: none; max-height: none; padding: 16px 14px; gap: 10px; animation: none; }
.ar-on.ar-phone .ar .ar-q-week .pct b { font-size: 54px; }
.ar-on.ar-phone .ar .ar-q-week .pct i { font-size: 26px; }
.ar-on.ar-phone .ar .ar-q-week .intro { font-size: 15px; }
.ar-on.ar-phone .ar .ar-q-chest { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; min-height: 68px; padding: 6px 10px 6px 8px; }
.ar-on.ar-phone .ar .ar-q-chest .pic, .ar-on.ar-phone .ar .ar-q-chest .pic img, .ar-on.ar-phone .ar .ar-q-chest .pic canvas { width: 50px; height: 50px; }
.ar-on.ar-phone .ar .ar-q-chest .st { font-size: 12px; }
.ar-on.ar-phone .ar .ar-q-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (prefers-reduced-motion: reduce) { .ar-on .ar .ar-q-chest.ready, .ar-on .ar .ar-q-card.done .acts .ar-btn.claim::after { animation: none; } }
html.reduce-motion.ar-on .ar .ar-q-chest.ready, html.reduce-motion.ar-on .ar .ar-q-card.done .acts .ar-btn.claim::after { animation: none; }
.ar-on.ar-phone .ar .ar-q-ach { min-height: 0; }
/* A week chest's rewards side by side, not one under the other (17 Nov): since the chests also pay Fragments each had
   a line more, and the week's panel ran past the bottom of a 1366 x 768 window, its row of days under the edge. */
.ar-on .ar .ar-q-chest .pays { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.ar-on .ar .ar-q-chest .pays .ar-pay { flex: 0 1 auto; width: auto; }

/* styles/arena-shop.css */
/*
 * Arena's Shop (ui/arena/shop.js): each page in three parts across the sheet: what there is on the left, the one chosen
 * big in its place in the middle, what it is and how to get it on the right. Featured is a wall of cards.
 * Sizes are the 1920 x 1080 sheet's.
 */
.ar-on .ar .ar-shop3 { display: grid; grid-template-columns: 500px minmax(0, 1fr) 470px; gap: 24px; height: 100%; }
.ar-on .ar-shop .ar-scene { transition: background-image 0.4s ease-out, transform 0.5s ease-out; }

/* a price: its coins, gems or fragments */
.ar-on .ar .ar-price { display: inline-flex; align-items: center; gap: 12px; font: 700 20px/1 var(--ar-text); letter-spacing: 0; color: var(--ar-cream); white-space: nowrap; }
.ar-on .ar .ar-price > span { display: inline-flex; align-items: center; gap: 6px; }
.ar-on .ar .ar-price img, .ar-on .ar .ar-price canvas { width: 22px; height: 22px; image-rendering: pixelated; }

/* the list */
.ar-on .ar .ar-shop-list { padding: 18px 14px 14px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 0; animation: ar-in-left 0.45s ease-out both; }
.ar-on .ar .ar-shop-list > .ar-kick { margin: 6px 0 2px; }
.ar-on .ar .ar-shop-list > .ar-seg { margin: 0 4px 4px 0; }
.ar-on .ar .ar-orow { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 104px; padding: 10px 18px 10px 10px; margin-right: 4px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); transition: border-color 0.14s, transform 0.14s, background 0.14s; }
.ar-on .ar .ar-orow .pic { width: 84px; height: 84px; display: grid; place-items: center; overflow: hidden; background: #0a0710; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-orow .pic img, .ar-on .ar .ar-orow .pic canvas, .ar-on .ar .ar-orow .pic svg { width: 76px; height: 76px; image-rendering: pixelated; object-fit: contain; }
.ar-on .ar .ar-orow .tx { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ar-on .ar .ar-orow .tx b { font: 700 23px/1.1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); }
.ar-on .ar .ar-orow .tx small { font-size: 17px; color: var(--ar-dim); }
.ar-on .ar .ar-orow .tx em { font-style: normal; font: 700 13px/1 var(--ar-cap); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ar-green); }
.ar-on .ar .ar-orow:hover, .ar-on .ar .ar-orow:focus-visible { border-color: var(--ar-line2); transform: translateX(4px); outline: none; }
.ar-on .ar .ar-orow.sel { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); }
.ar-on .ar .ar-orow.sel .tx b { color: var(--ar-gold2); }

/* tiles: a grid of things to choose from */
.ar-on .ar .ar-stiles { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-content: start; padding: 2px 6px 2px 2px; }
.ar-on .ar .ar-stile { position: relative; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 6px 4px 9px; overflow: hidden; background: linear-gradient(180deg, rgba(38, 29, 56, 0.92), rgba(16, 12, 26, 0.96)); border: 1px solid var(--ar-edge); transition: transform 0.14s, border-color 0.14s, filter 0.14s; }
.ar-on .ar .ar-stile .pic { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.ar-on .ar .ar-stile .pic img, .ar-on .ar .ar-stile .pic canvas { max-width: 84px; max-height: 84px; object-fit: contain; image-rendering: pixelated; }
.ar-on .ar .ar-stile b { max-width: 100%; font: 700 13px/1.1 var(--ar-cap); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-stile small { font: 700 13px/1 var(--ar-text); color: var(--ar-dim); }
.ar-on .ar .ar-stile small.ok { color: var(--ar-green); }
.ar-on .ar .ar-stile small.no { color: var(--ar-mute); }
.ar-on .ar .ar-stile .ar-price { font-size: 15px; gap: 6px; }
.ar-on .ar .ar-stile .ar-price img, .ar-on .ar .ar-stile .ar-price canvas { width: 16px; height: 16px; }
.ar-on .ar .ar-stile.dim .pic { filter: grayscale(0.9) brightness(0.55); }
.ar-on .ar .ar-stile:hover, .ar-on .ar .ar-stile:focus-visible { transform: translateY(-3px); border-color: var(--ar-line2); filter: brightness(1.15); outline: none; }
.ar-on .ar .ar-stile.sel { border: 2px solid var(--ar-gold); background: linear-gradient(180deg, rgba(209, 171, 91, 0.26), rgba(22, 16, 30, 0.96)); box-shadow: 0 0 22px rgba(209, 171, 91, 0.28); }
.ar-on .ar .ar-shop-filters { display: flex; flex-direction: column; gap: 8px; padding-right: 4px; flex: none; }
.ar-on .ar .ar-shop-filters .row { display: flex; gap: 8px; }
.ar-on .ar .ar-shop-filters .ar-select { flex: 1; width: auto; height: 44px; font-size: 16px; }
.ar-on .ar .ar-shop-filters .ar-input { height: 44px; font-size: 16px; }

/* the stage: the one chosen, standing in its place */
.ar-on .ar .ar-shop-stage { position: relative; min-width: 0; }
.ar-on .ar .ar-big { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); display: block; filter: drop-shadow(0 30px 24px rgba(0, 0, 0, 0.6)); }
.ar-on .ar .ar-big.in { animation: ar-big-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1); }
.ar-on .ar .ar-big canvas, .ar-on .ar .ar-big img { display: block; image-rendering: pixelated; }
.ar-on .ar .ar-big.painted canvas { image-rendering: auto; }
.ar-on .ar .ar-big.thing { bottom: 300px; padding: 28px; background: radial-gradient(circle, rgba(209, 171, 91, 0.22), rgba(209, 171, 91, 0) 68%); }
.ar-on .ar .ar-big.sprite { bottom: 150px; }
.ar-on .ar .ar-big.chest { bottom: 210px; transition: transform 0.2s ease-out; }
.ar-on .ar .ar-big.chest:hover, .ar-on .ar .ar-big.chest:focus-visible { transform: translateX(-50%) scale(1.04); outline: none; }
.ar-on .ar .ar-big .nx-hero { position: relative; }
@keyframes ar-big-in { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }

/* what it is, and how to get it */
.ar-on .ar .ar-shop-panel { padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 12px; min-height: 0; animation: ar-in-right 0.45s ease-out both; }
.ar-on .ar .ar-shop-panel.swap > * { animation: ar-pop 0.22s ease-out both; }
.ar-on .ar .ar-shop-panel h2 { margin: 0; font: 800 44px/1.05 var(--ar-cap); letter-spacing: 0.05em; color: var(--ar-gold2); }
.ar-on .ar .ar-shop-panel h2.q-rare { color: #9ccaff; } .ar-on .ar .ar-shop-panel h2.q-epic { color: #dab4ff; } .ar-on .ar .ar-shop-panel h2.q-legendary { color: #ffc56a; }
.ar-on .ar .ar-shop-panel .tags { display: flex; gap: 8px; }
.ar-on .ar .ar-shop-panel .quote { margin: 0; font-style: italic; font-size: 20px; line-height: 1.35; color: var(--ar-dim); }
.ar-on .ar .ar-shop-panel .gives { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 21px; line-height: 1.3; color: var(--ar-cream); }
.ar-on .ar .ar-shop-panel .gives li { padding-left: 20px; position: relative; }
.ar-on .ar .ar-shop-panel .gives li::before { content: ""; position: absolute; left: 2px; top: 0.52em; width: 8px; height: 8px; background: var(--ar-gold); transform: rotate(45deg); }
.ar-on .ar .ar-shop-panel .hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.ar-on .ar .ar-shop-panel .hd .ar-btn { height: 38px; padding: 0 14px; font-size: 14px; clip-path: none; }
.ar-on .ar .ar-odds { display: flex; flex-direction: column; gap: 8px; }
.ar-on .ar .ar-odds .odd { display: grid; grid-template-columns: 120px minmax(0, 1fr) 62px; align-items: center; gap: 14px; font-size: 19px; color: var(--rc, var(--ar-cream)); }
.ar-on .ar .ar-odds .bar { height: 10px; background: #2a2140; overflow: hidden; }
.ar-on .ar .ar-odds .bar i { display: block; height: 100%; background: var(--rc, var(--ar-gold)); transform-origin: left; animation: ar-grow 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.ar-on .ar .ar-odds b { text-align: right; font: 700 20px/1 var(--ar-text); }
.ar-on .ar .ar-shop-panel .grow { flex: 1; min-height: 6px; }
.ar-on .ar .ar-shop-panel .short { margin: 0; font-size: 18px; color: var(--ar-red); }
.ar-on .ar .ar-shop-panel .done { margin: 0; font: 700 20px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ar-green); }
.ar-on .ar .ar-shop-panel .note { margin: 0; font-size: 16px; line-height: 1.35; color: var(--ar-mute); }
.ar-on .ar .pays { display: flex; flex-direction: column; gap: 10px; }
.ar-on .ar .ar-btn.pay { width: 100%; height: 68px; padding: 0 22px; justify-content: space-between; font-size: 24px; letter-spacing: 0.2em; }
.ar-on .ar .ar-btn.pay.go .ar-price { color: #1a1309; }
.ar-on .ar .ar-btn.pay:not(.go) { height: 54px; font-size: 18px; }
.ar-on .ar .ar-btn.pay:disabled { filter: grayscale(1) brightness(0.55); cursor: default; transform: none; }
.ar-on .ar .ar-btn.pay.wear { justify-content: center; }
.ar-on .ar .ar-rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; margin: 6px 0 0; font-size: 20px; align-items: center; }
.ar-on .ar .ar-rows dt { margin: 0; color: var(--ar-mute); white-space: nowrap; }
.ar-on .ar .ar-rows dd { margin: 0; color: var(--ar-cream); min-width: 0; }
.ar-on .ar .ar-rows dd i { font-style: normal; color: var(--ar-mute); }
.ar-on .ar .ar-rows dd em { font-style: normal; font-weight: 700; color: var(--ar-green); }
.ar-on .ar .ar-rows .steps { display: flex; flex-direction: column; gap: 5px; }
.ar-on .ar .ar-rows .steps small { font-size: 16px; color: var(--ar-dim); }
.ar-on .ar .ar-rows .pips { display: flex; gap: 4px; }
.ar-on .ar .ar-rows .pips i { flex: 1; max-width: 46px; height: 9px; background: #2a2140; }
.ar-on .ar .ar-rows .pips i.on { background: linear-gradient(90deg, #b48d3e, var(--ar-gold2)); }
.ar-on .ar .ar-rows .pips i.next { background: #5a4a2c; }
.ar-on .ar .ar-cmp { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 8px; padding: 14px; border: 1px solid var(--ar-edge); background: rgba(13, 10, 20, 0.6); }
.ar-on .ar .ar-cmp > span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ar-on .ar .ar-cmp img, .ar-on .ar .ar-cmp canvas { width: 96px; height: 96px; object-fit: contain; image-rendering: pixelated; }
.ar-on .ar .ar-cmp small { font-size: 15px; color: var(--ar-dim); }
.ar-on .ar .ar-cmp > i { font: 400 34px/1 var(--ar-text); font-style: normal; color: var(--ar-gold); }

/* something big inside an opening's reveal: in its flow */
.ar-on .ar .ar-flow { display: inline-block; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.6)); }
.ar-on .ar .ar-flow canvas, .ar-on .ar .ar-flow img { display: block; margin: 0 auto; }
/* an opening's own buttons, in Arena's */
.ar-on .ar .ar-show-host .btn { min-height: 0; height: 52px; padding: 0 30px; font: 700 20px/1 var(--ar-cap); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ar-cream); background: linear-gradient(180deg, #2c2240, #1a1428); border: 1px solid var(--ar-line2); border-radius: 0; box-shadow: none; text-shadow: none; }
.ar-on .ar .ar-show-host .btn.primary { color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border-color: #f0d9a0; }
.ar-on .ar .ar-show-host .btn .lbl { font: inherit; letter-spacing: inherit; color: inherit; }
/* an opening plays over the page (ui/neon/chest-show.js draws at the old pages' scale) */
.ar-on .ar .ar-show-host { position: absolute; inset: 0; z-index: 9; zoom: calc(var(--nx-zoom, 1) / var(--ar-zoom, 1)); overflow: hidden; border: 1px solid var(--ar-line); }

/* Featured: the week's offers */
.ar-on .ar .ar-shop-feat { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.ar-on .ar .ar-shop-feat .hd { display: flex; align-items: center; gap: 16px; flex: none; }
.ar-on .ar .ar-shop-feat .hd .grow { flex: 1; }
.ar-on .ar .ar-shop-feat .hd .note { font-size: 18px; color: var(--ar-dim); }
.ar-on .ar .ar-feat { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(var(--rows, 2), minmax(0, 1fr)); gap: 16px; }
.ar-on .ar .ar-offer { position: relative; overflow: hidden; min-height: 0; animation: ar-in-up 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 55ms); transition: border-color 0.16s, transform 0.16s; }
.ar-on .ar .ar-offer.big { grid-row: 1 / -1; }
.ar-on .ar .ar-feat.odd .ar-offer:last-child:not(.big) { grid-column: span 2; }
.ar-on .ar .ar-offer .art { position: absolute; inset: 0; background: center/cover no-repeat; image-rendering: pixelated; opacity: 0.85; transition: transform 0.6s ease-out; }
.ar-on .ar .ar-offer::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(10, 7, 16, 0.25) 0, rgba(10, 7, 16, 0.94) 62%); }
.ar-on .ar .ar-offer.big::after { background: linear-gradient(0deg, rgba(10, 7, 16, 0.98) 0, rgba(10, 7, 16, 0.86) 30%, rgba(10, 7, 16, 0) 62%); }
.ar-on .ar .ar-offer .fig { position: absolute; left: 0; bottom: 0; width: 44%; height: 100%; z-index: 1; pointer-events: none; }
.ar-on .ar .ar-offer .fig .ar-big { bottom: 14px; }
.ar-on .ar .ar-offer .fig .ar-big.thing { bottom: 50%; transform: translate(-50%, 50%); padding: 16px; }
.ar-on .ar .ar-offer .fig .ar-big.sprite { bottom: 22px; }
.ar-on .ar .ar-offer.big .fig { width: 100%; bottom: 270px; height: auto; top: 0; }
.ar-on .ar .ar-offer.big .fig .ar-big { bottom: 0; }
.ar-on .ar .ar-offer.big .fig .ar-big.thing { bottom: 30%; transform: translateX(-50%); }
.ar-on .ar .ar-offer .tx { position: absolute; right: 20px; top: 0; bottom: 0; width: 52%; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.ar-on .ar .ar-offer.big .tx { left: 28px; right: 28px; top: auto; bottom: 24px; width: auto; gap: 8px; }
.ar-on .ar .ar-offer .tx small { font: 700 14px/1.2 var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-gold); }
.ar-on .ar .ar-offer .tx b { font: 800 27px/1.05 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); }
.ar-on .ar .ar-offer.big .tx b { font-size: 46px; }
.ar-on .ar .ar-offer.q-rare .tx b { color: #9ccaff; } .ar-on .ar .ar-offer.q-epic .tx b { color: #dab4ff; } .ar-on .ar .ar-offer.q-legendary .tx b { color: #ffc56a; }
.ar-on .ar .ar-offer .tx p { margin: 0; font-size: 17px; line-height: 1.3; color: var(--ar-dim); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ar-on .ar .ar-offer.big .tx p { font-size: 20px; }
.ar-on .ar .ar-offer .pays { margin-top: 6px; }
.ar-on .ar .ar-offer.big .pays { flex-direction: row; }
.ar-on .ar .ar-offer.big .pays .ar-btn.pay:not(.go) { width: auto; height: 68px; flex: none; }
.ar-on .ar .ar-offer.big .pays .ar-btn.pay.go { flex: 1; width: auto; }
.ar-on .ar .ar-offer .ar-btn.pay { height: 54px; font-size: 18px; padding: 0 16px; }
.ar-on .ar .ar-offer.big .ar-btn.pay.go { height: 68px; font-size: 24px; }
.ar-on .ar .ar-offer .had { font: 700 18px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ar-green); margin-top: 6px; }
.ar-on .ar .ar-offer.have .art, .ar-on .ar .ar-offer.have .fig { filter: saturate(0.4) brightness(0.7); }
.ar-on .ar .ar-offer:hover { border-color: var(--ar-line2); transform: translateY(-3px); }
.ar-on .ar .ar-offer:hover .art { transform: scale(1.05); }

/* a window narrower than the sheet */
.ar-on .ar-page.narrower .ar-shop3 { grid-template-columns: 410px minmax(0, 1fr) 420px; gap: 16px; }
.ar-on .ar-page.narrower .ar-stiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ar-on .ar-page.narrower .ar-orow { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; padding-right: 12px; }
.ar-on .ar-page.narrower .ar-orow .pic { width: 70px; height: 70px; }
.ar-on .ar-page.narrower .ar-orow .pic img, .ar-on .ar-page.narrower .ar-orow .pic canvas { width: 62px; height: 62px; }
.ar-on .ar-page.narrower .ar-orow .tx b { font-size: 20px; }
.ar-on .ar-page.narrower .ar-shop-panel { padding: 22px 20px 20px; }
.ar-on .ar-page.narrower .ar-shop-panel h2 { font-size: 36px; }
.ar-on .ar-page.narrower .ar-feat { grid-template-columns: 1fr 1fr 1fr; }
.ar-on .ar-page.narrower .ar-offer .tx b { font-size: 22px; }
.ar-on .ar-page.narrower .ar-offer .tx p { display: none; }
.ar-on .ar-page.narrower .ar-offer.big .tx p { display: -webkit-box; }

/* phones: the list, the one chosen, what it is, one under the other */
.ar-on.ar-phone .ar .ar-shop3 { display: flex; flex-direction: column; gap: 12px; height: auto; }
.ar-on.ar-phone .ar .ar-shop-list { padding: 10px; flex: none; animation: none; }
.ar-on.ar-phone .ar .ar-orow { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; min-height: 72px; padding: 8px 10px 8px 8px; margin-right: 0; }
.ar-on.ar-phone .ar .ar-orow .pic { width: 56px; height: 56px; }
.ar-on.ar-phone .ar .ar-orow .pic img, .ar-on.ar-phone .ar .ar-orow .pic canvas, .ar-on.ar-phone .ar .ar-orow .pic svg { width: 50px; height: 50px; }
.ar-on.ar-phone .ar .ar-orow .tx b { font-size: 18px; }
.ar-on.ar-phone .ar .ar-orow .tx small { font-size: 14px; }
.ar-on.ar-phone .ar .ar-price { font-size: 16px; gap: 8px; }
.ar-on.ar-phone .ar .ar-price img, .ar-on.ar-phone .ar .ar-price canvas { width: 18px; height: 18px; }
.ar-on.ar-phone .ar .ar-stiles { flex: none; display: grid; grid-auto-flow: column; grid-template-columns: none; grid-template-rows: 124px; grid-auto-columns: 96px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 6px; }
.ar-on.ar-phone .ar .ar-stile { height: 124px; }
.ar-on.ar-phone .ar .ar-stile .pic, .ar-on.ar-phone .ar .ar-stile .pic img, .ar-on.ar-phone .ar .ar-stile .pic canvas { width: 64px; height: 64px; max-width: 64px; max-height: 64px; }
.ar-on.ar-phone .ar .ar-stile b { font-size: 11px; }
.ar-on.ar-phone .ar .ar-shop-filters .ar-input, .ar-on.ar-phone .ar .ar-shop-filters .ar-select { height: 40px; font-size: 14px; }
.ar-on.ar-phone .ar .ar-shop-stage { flex: none; height: 300px; }
.ar-on.ar-phone .ar .ar-big { bottom: 10px; }
.ar-on.ar-phone .ar .ar-big.thing { bottom: 60px; }
.ar-on.ar-phone .ar .ar-big.sprite { bottom: 30px; }
.ar-on.ar-phone .ar .ar-big.chest { bottom: 40px; }
.ar-on.ar-phone .ar .ar-shop-panel { flex: none; padding: 16px 14px; gap: 10px; animation: none; }
.ar-on.ar-phone .ar .ar-shop-panel h2 { font-size: 30px; }
.ar-on.ar-phone .ar .ar-shop-panel .gives, .ar-on.ar-phone .ar .ar-rows { font-size: 17px; }
.ar-on.ar-phone .ar .ar-shop-panel .quote { font-size: 16px; }
.ar-on.ar-phone .ar .ar-odds .odd { grid-template-columns: 96px minmax(0, 1fr) 52px; font-size: 16px; gap: 10px; }
.ar-on.ar-phone .ar .ar-btn.pay { height: 58px; font-size: 20px; padding: 0 16px; }
.ar-on.ar-phone .ar .ar-btn.pay:not(.go) { height: 48px; font-size: 16px; }
.ar-on.ar-phone .ar .ar-cmp img, .ar-on.ar-phone .ar .ar-cmp canvas { width: 72px; height: 72px; }
.ar-on.ar-phone .ar .ar-shop-feat { height: auto; }
.ar-on.ar-phone .ar .ar-shop-feat .hd { flex-wrap: wrap; gap: 6px 10px; }
.ar-on.ar-phone .ar .ar-shop-feat .hd .note { display: none; }
.ar-on.ar-phone .ar .ar-feat { display: flex; flex-direction: column; gap: 10px; }
.ar-on.ar-phone .ar .ar-offer { height: 150px; flex: none; animation: none; }
.ar-on.ar-phone .ar .ar-offer.big { height: 460px; }
.ar-on.ar-phone .ar .ar-offer.big .fig { bottom: 230px; }
.ar-on.ar-phone .ar .ar-offer .tx { right: 12px; width: 56%; }
.ar-on.ar-phone .ar .ar-offer.big .tx { left: 14px; right: 14px; bottom: 14px; width: auto; }
.ar-on.ar-phone .ar .ar-offer.big .pays { display: flex; flex-direction: row; gap: 8px; }
.ar-on.ar-phone .ar .ar-offer.big .pays .ar-btn.pay.go { flex: 1; min-width: 0; }
.ar-on.ar-phone .ar .ar-offer .tx b { font-size: 19px; }
.ar-on.ar-phone .ar .ar-offer.big .tx b { font-size: 28px; }
.ar-on.ar-phone .ar .ar-offer .tx p { display: none; }
.ar-on.ar-phone .ar .ar-offer .ar-btn.pay, .ar-on.ar-phone .ar .ar-offer.big .ar-btn.pay.go { height: 44px; font-size: 15px; padding: 0 12px; }
.ar-on.ar-phone .ar .ar-offer.big .pays .ar-btn.pay:not(.go) { height: 44px; }

@media (prefers-reduced-motion: reduce) { .ar-on .ar .ar-offer, .ar-on .ar .ar-offer .art, .ar-on .ar .ar-stile, .ar-on .ar .ar-orow { transition: none; } .ar-on .ar .ar-odds .bar i { animation: none; } }
html.reduce-motion.ar-on .ar .ar-offer, html.reduce-motion.ar-on .ar .ar-offer .art, html.reduce-motion.ar-on .ar .ar-stile, html.reduce-motion.ar-on .ar .ar-orow { transition: none; }
html.reduce-motion.ar-on .ar .ar-odds .bar i { animation: none; }
/* ---- the Gems page: the packs, the one chosen big, what it can buy, its price ---- */
.ar-on .ar .ar-orow .cash { font: 800 24px/1 var(--ar-cap); letter-spacing: 0.03em; color: var(--ar-gold2); white-space: nowrap; }
.ar-on .ar .ar-btn.pay .ar-price.cash { font: 800 24px/1 var(--ar-cap); letter-spacing: 0.03em; }
.ar-on .ar .ar-big.gems { cursor: default; animation: ar-gem-float 3.4s ease-in-out infinite; }
.ar-on .ar .ar-big.gems img, .ar-on .ar .ar-big.gems canvas { image-rendering: pixelated; filter: drop-shadow(0 0 34px rgba(80, 190, 255, 0.45)); }
@keyframes ar-gem-float { 0%, 100% { margin-bottom: 0; } 50% { margin-bottom: 16px; } }
.ar-on .ar .ar-gem-now { display: flex; align-items: center; gap: 10px; font-size: 24px; color: var(--ar-dim); }
.ar-on .ar .ar-gem-now b { color: #8fdcff; font: 800 30px/1 var(--ar-cap); }
.ar-on .ar .ar-gem-can { display: flex; flex-direction: column; gap: 8px; }
.ar-on .ar .ar-gem-can .can { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); border-left: 3px solid var(--rc); font-size: 21px; }
.ar-on .ar .ar-gem-can .can b { font: 800 24px/1 var(--ar-cap); color: var(--ar-cream); }
.ar-on .ar .ar-gem-can .can span { color: var(--rc); }
.ar-on .ar .ar-gem-can .can small { display: flex; align-items: center; gap: 6px; font-size: 17px; color: var(--ar-dim); }
.ar-on .ar .ar-shop-panel .short.soon { color: var(--ar-dim); font-size: 17px; line-height: 1.35; }
.ar-on .ar .ar-tag.plain { background: none; border: 1px solid var(--ar-line2); color: var(--ar-cream); }
@media (prefers-reduced-motion: reduce) { .ar-on .ar .ar-big.gems { animation: none; } }
.ar-on.ar-phone .ar .ar-orow .cash { font-size: 19px; }
/* The phone sweep (17 Nov): a tile's name is whole, on two lines if it must ("Dragon Lan…"); a panel's tags wrap. */
.ar-on.ar-phone .ar .ar-stiles { grid-template-rows: 134px; }
.ar-on.ar-phone .ar .ar-stile { height: 134px; }
.ar-on.ar-phone .ar .ar-stile b { font-size: 10.5px; line-height: 1.08; letter-spacing: 0.03em; white-space: normal; text-align: center; text-wrap: balance; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ar-on.ar-phone .ar .ar-shop-panel .tags { flex-wrap: wrap; }
.ar-on.ar-phone .ar .ar-stile small.no { max-width: 100%; font-size: 10.5px; line-height: 1.08; white-space: normal; text-align: center; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
/* On a computer and a tablet too (17 Nov): a tile's name on two lines when it does not fit one ("Crossbow Hu…",
   "Frostwing V…" on a tablet held on its side), never cut. */
.ar-on:not(.ar-phone) .ar .ar-stile b { line-height: 1.08; white-space: normal; text-align: center; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ar-on:not(.ar-phone) .ar .ar-stile b { overflow-wrap: anywhere; hyphens: auto; }
/* (the name keeps its two lines: the tile's column must not squeeze it under its price) */
.ar-on .ar .ar-stile b { flex: none; }

/* styles/arena-items.css */
/*
 * Arena's Inventory, the Items page (src/ui/arena/items.js). The three parts, the list's filters and tiles, the stage
 * and the panel are the Shop's (arena-shop.css: .ar-shop3, .ar-shop-list, .ar-stiles, .ar-shop-stage, .ar-shop-panel);
 * here: an item's tile, the one chosen big, and the panel's own pieces (the champions that can wear it, the
 * comparison, where it drops, Salvage). A phone: one part under the other, as in the Shop.
 */
.ar-on .ar .ar-items { grid-template-columns: 560px minmax(0, 1fr) 520px; }
.ar-on .ar .ar-items .ar-facs > button { flex: 1; padding: 0 6px; white-space: nowrap; }
.ar-on .ar .ar-items .ar-shop-filters .ar-select { min-width: 0; font-size: 15px; padding-left: 10px; }

/* a tile: the item framed in its rarity, its name, how many (or who wears it) */
.ar-on .ar .ar-itile { border-bottom: 3px solid var(--rc, var(--ar-edge)); }
.ar-on .ar .ar-itile.q-common { --rc: #8f879c; } .ar-on .ar .ar-itile.q-rare { --rc: #7db8ff; } .ar-on .ar .ar-itile.q-epic { --rc: #cf9bff; } .ar-on .ar .ar-itile.q-legendary { --rc: #ffb347; }
.ar-on .ar .ar-itile b { color: var(--rc); }
.ar-on .ar .ar-itile.q-common b { color: var(--ar-cream); }
.ar-on .ar .ar-itile i.n { position: absolute; top: 6px; right: 8px; font: 700 14px/1 var(--ar-text); font-style: normal; color: var(--ar-dim); }
.ar-on .ar .ar-itile i.lock { position: absolute; top: 6px; right: 6px; opacity: 0.8; }
.ar-on .ar .ar-itile i.lock img, .ar-on .ar .ar-itile i.lock canvas { width: 16px; height: 16px; }
.ar-on .ar .ar-itile .new-mark { position: absolute; top: 6px; left: 6px; }

/* the one chosen, big, in its rarity's light */
.ar-on .ar .ar-item-big { bottom: 250px; padding: 44px; }
.ar-on .ar .ar-item-big.q-rare { background: radial-gradient(circle, rgba(125, 184, 255, 0.26), rgba(125, 184, 255, 0) 68%); }
.ar-on .ar .ar-item-big.q-epic { background: radial-gradient(circle, rgba(207, 155, 255, 0.28), rgba(207, 155, 255, 0) 68%); }
.ar-on .ar .ar-item-big.q-legendary { background: radial-gradient(circle, rgba(255, 179, 71, 0.32), rgba(255, 179, 71, 0) 68%); }
.ar-on .ar .ar-item-big.dim > * { filter: grayscale(0.9) brightness(0.6); }
.ar-on .ar .ar-item-big img, .ar-on .ar .ar-item-big canvas { image-rendering: pixelated; display: block; }
.ar-on .ar .ar-item-big canvas.painted { image-rendering: auto; }

/* the panel: its head stays, the middle scrolls, the foot (Upgrade, Salvage) stays */
.ar-on .ar .ar-item-panel { gap: 10px; }
.ar-on .ar .ar-item-panel h2 { font-size: 38px; }
.ar-on .ar .ar-item-panel .gives { font-size: 20px; }
.ar-on .ar .ar-item-mid { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; margin-right: -12px; padding-right: 12px; }
.ar-on .ar .ar-item-mid > * { flex: none; }
.ar-on .ar .ar-item-mid > .ar-kick { margin-top: 8px; }
.ar-on .ar .ar-item-mid .ar-rows { font-size: 18px; gap: 8px 16px; margin: 0; }
.ar-on .ar .ar-item-mid .ar-select { width: 100%; height: 44px; font-size: 16px; }
.ar-on .ar .ar-item-panel .note { font-size: 16px; }

/* who can wear it */
.ar-on .ar .ar-wear { display: flex; flex-direction: column; gap: 6px; }
.ar-on .ar .ar-wear-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 8px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-wear-row.on { border-color: var(--ar-gold); background: rgba(40, 29, 14, 0.9); }
.ar-on .ar .ar-wear-row .face { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; background: #0a0710; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-wear-row .face img, .ar-on .ar .ar-wear-row .face canvas { width: 48px; height: 48px; image-rendering: pixelated; }
.ar-on .ar .ar-wear-row .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-on .ar .ar-wear-row .tx b { font: 700 17px/1.1 var(--ar-cap); letter-spacing: 0.05em; color: var(--ar-cream); }
.ar-on .ar .ar-wear-row .tx small { font-size: 14px; line-height: 1.25; color: var(--ar-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-on .ar .ar-wear-row.on .tx small { color: var(--ar-green); }
.ar-on .ar .ar-wear-row .tx .diff { white-space: normal; }
.ar-on .ar .ar-wear-row .good, .ar-on .ar .ar-item-cmp .good { color: var(--ar-green); }
.ar-on .ar .ar-wear-row .bad { color: var(--ar-red); }
.ar-on .ar .ar-wear-row .ar-btn { height: 40px; padding: 0 14px; font-size: 14px; letter-spacing: 0.1em; clip-path: none; }

/* compared with another */
.ar-on .ar .ar-item-cmp { width: 100%; border-collapse: collapse; font-size: 17px; }
.ar-on .ar .ar-item-cmp th { padding: 4px 8px; text-align: right; }
.ar-on .ar .ar-item-cmp th img, .ar-on .ar .ar-item-cmp th canvas { width: 36px; height: 36px; image-rendering: pixelated; }
.ar-on .ar .ar-item-cmp td { padding: 6px 8px; border-top: 1px solid var(--ar-edge); text-align: right; color: var(--ar-cream); font-variant-numeric: tabular-nums; }
.ar-on .ar .ar-item-cmp td:first-child { text-align: left; color: var(--ar-dim); }
.ar-on .ar .ar-item-cmp td.good { font-weight: 700; }

/* where one you don't have drops */
.ar-on .ar .ar-srcs { display: flex; flex-direction: column; gap: 6px; }
.ar-on .ar .ar-src { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 54px; padding: 6px 8px 6px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-src > img, .ar-on .ar .ar-src > canvas { width: 28px; height: 28px; image-rendering: pixelated; }
.ar-on .ar .ar-src .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-on .ar .ar-src .tx b { font-size: 17px; font-weight: 600; color: var(--ar-cream); }
.ar-on .ar .ar-src .tx small { font-size: 14px; color: var(--ar-red); }
.ar-on .ar .ar-src .lk { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ar-mute); padding-right: 6px; }
.ar-on .ar .ar-src .lk img, .ar-on .ar .ar-src .lk canvas { width: 16px; height: 16px; }
.ar-on .ar .ar-src.locked > img, .ar-on .ar .ar-src.locked > canvas { filter: grayscale(1) brightness(0.7); }
.ar-on .ar .ar-src .ar-btn { height: 40px; padding: 0 14px; font-size: 14px; letter-spacing: 0.1em; clip-path: none; }

/* salvage, beside Upgrade */
.ar-on .ar .ar-item-acts { display: flex; gap: 8px; }
.ar-on .ar .ar-item-acts .ar-btn { flex: 1; min-width: 0; height: 44px; padding: 0 10px; font-size: 14px; letter-spacing: 0.08em; clip-path: none; }

/* a smaller window */
.ar-on .ar-page.narrower .ar-items { grid-template-columns: 430px minmax(0, 1fr) 440px; }
.ar-on .ar-page.narrower .ar-item-big { bottom: 200px; }

/* a phone: the list a strip, then the item, then its panel as long as it needs */
.ar-on.ar-phone .ar .ar-items .ar-facs > button { font-size: 12px; }
.ar-on.ar-phone .ar .ar-items .ar-shop-filters .row { flex-wrap: wrap; }
.ar-on.ar-phone .ar .ar-item-big { bottom: 30px; padding: 20px; }
.ar-on.ar-phone .ar .ar-item-panel h2 { font-size: 28px; }
.ar-on.ar-phone .ar .ar-item-mid { flex: none; overflow: visible; margin-right: 0; padding-right: 0; }
.ar-on.ar-phone .ar .ar-items .ar-facs { flex-wrap: wrap; }

/* ---- the gallery (ui/arena/gallery.js): Mascots, Skins and Looks on the same three parts ---- */
.ar-on .ar .ar-gallery .ar-shop-filters .row > .ar-input[type='search'] { flex: 1; min-width: 0; }
.ar-on .ar .ar-gallery .ar-shop-filters .row > .ar-btn { height: 44px; padding: 0 14px; font-size: 14px; letter-spacing: 0.1em; clip-path: none; flex: none; }
.ar-on .ar .ar-gallery .ar-facs { flex-wrap: wrap; }
.ar-on .ar .ar-gallery .ar-facs > button { flex: 1 1 auto; }
.ar-on .ar .ar-ghead { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 10px 2px 2px; font: 700 14px/1 var(--ar-cap); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ar-gold); }
.ar-on .ar .ar-ghead::before, .ar-on .ar .ar-ghead::after { content: ""; height: 1px; background: var(--ar-line2); }
.ar-on .ar .ar-ghead::before { width: 22px; } .ar-on .ar .ar-ghead::after { flex: 1; }
.ar-on .ar .ar-ghead:first-child { margin-top: 0; }
.ar-on .ar .ar-gallery .ar-itile .pic { overflow: hidden; }
.ar-on .ar .ar-gallery .ar-itile .pic > * { max-width: 84px; max-height: 84px; }
.ar-on .ar .ar-gallery .ar-itile .ar-price { font-size: 15px; }
.ar-on .ar .ar-gallery .ar-big.dim > * { filter: grayscale(0.9) brightness(0.6); }
.ar-on .ar .ar-look-big { bottom: 260px; padding: 40px; display: grid; place-items: center; }
.ar-on .ar .ar-look-big canvas, .ar-on .ar .ar-look-big img { image-rendering: pixelated; }
.ar-on .ar .ar-look-big .look-emoji { line-height: 1; }
.ar-on .ar .ar-gallery .ar-item-panel .ar-cmp { margin-top: 0; }
.ar-on.ar-phone .ar .ar-ghead { display: none; }
.ar-on.ar-phone .ar .ar-look-big { bottom: 30px; padding: 16px; }
.ar-on .ar .ar-itile > small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- the bought currency is Fragments: its pile of shards glows in their purple ---- */
.ar-on .ar .ar-big.gems img, .ar-on .ar .ar-big.gems canvas { filter: drop-shadow(0 0 34px rgba(170, 110, 255, 0.5)); }
.ar-on .ar .ar-gem-now b { color: #d9b3ff; }

/* ---- the Profile's Achievements and Calling cards, on the gallery ---- */
.ar-on .ar .ar-count { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 44px; border: 1px solid var(--ar-edge); background: rgba(13, 10, 20, 0.6); font-size: 17px; color: var(--ar-dim); white-space: nowrap; }
.ar-on .ar .ar-count b { color: var(--ar-gold2); font: 800 19px/1 var(--ar-cap); }
.ar-on .ar .ar-prog { position: relative; height: 30px; background: #0a0710; border: 1px solid var(--ar-edge); overflow: hidden; }
.ar-on .ar .ar-prog i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #b48d3e, #d1ab5b); }
.ar-on .ar .ar-prog span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 16px/1 var(--ar-text); color: #fff; text-shadow: 0 1px 2px #000; }
.ar-on .ar .ar-reward-card { display: block; width: 100%; height: auto; border: 1px solid var(--ar-line2); }
.ar-on .ar .ar-item-panel .note.gold { color: var(--ar-gold2); }
.ar-on .ar .ar-ach .ar-itile .pic > * { max-width: none; max-height: none; }
.ar-on .ar .ar-ach-big { padding: 30px; }
/* calling cards: wide tiles, two across; the chosen one as wide as the stage allows */
.ar-on .ar .ar-cards .ar-stiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ar-on .ar .ar-cards .ar-itile { height: 120px; padding: 6px 6px 9px; }
.ar-on .ar .ar-cards .ar-itile .pic { position: relative; display: block; width: 100%; height: 62px; flex: none; overflow: hidden; }
.ar-on .ar .ar-cards .ar-itile .pic > * { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; image-rendering: auto; }
.ar-on .ar .ar-big.ar-card-big { bottom: 360px; padding: 0; background: none; width: min(86%, 760px); border: 2px solid var(--ar-gold); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7); }
.ar-on .ar .ar-card-big > * { position: static; display: block; width: 100%; height: auto; image-rendering: auto; }
.ar-on.ar-phone .ar .ar-cards .ar-stiles { grid-auto-columns: 210px; grid-template-rows: 110px; }
.ar-on.ar-phone .ar .ar-cards .ar-itile { height: 110px; }
.ar-on.ar-phone .ar .ar-card-big { bottom: 40px; width: 92%; }

/* ---- a gallery in two parts (the Calling cards, your call 15 Nov: no box on the right): the list wider, and under the
   chosen one its name, its tags and what can be done with it ---- */
.ar-on .ar .ar-two { grid-template-columns: 820px minmax(0, 1fr); }
.ar-on .ar .ar-two.ar-cards .ar-stiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ar-on .ar .ar-capwrap { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.ar-on .ar .ar-capwrap .ar-shop-stage { flex: 1; min-height: 0; }
.ar-on .ar .ar-cap { flex: none; align-items: center; text-align: center; gap: 10px; padding: 0 20px 24px; min-height: 250px; animation: none; }
.ar-on .ar .ar-cap h2 { font-size: 46px; text-shadow: 0 3px 12px #000; }
.ar-on .ar .ar-cap .ar-kick { justify-content: center; }
.ar-on .ar .ar-cap .ar-item-mid { flex: none; overflow: visible; margin: 0; padding: 0; align-items: center; }
.ar-on .ar .ar-cap .ar-item-mid:empty { display: none; }
.ar-on .ar .ar-cap .note { font-size: 19px; color: var(--ar-cream); text-shadow: 0 2px 6px #000; max-width: 640px; }
.ar-on .ar .ar-cap .done { text-shadow: 0 2px 6px #000; }
.ar-on .ar .ar-cap .pays { width: 420px; max-width: 100%; }
.ar-on .ar .ar-capwrap .ar-big.ar-card-big { bottom: 40px; width: min(92%, 860px); }
.ar-on .ar-page.narrower .ar-two { grid-template-columns: 600px minmax(0, 1fr); }
.ar-on .ar-page.narrower .ar-two.ar-cards .ar-stiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ar-on.ar-phone .ar .ar-cap { min-height: 0; padding: 0 4px 12px; }
.ar-on.ar-phone .ar .ar-cap h2 { font-size: 28px; }
.ar-on.ar-phone .ar .ar-capwrap .ar-shop-stage { flex: none; }
.ar-on.ar-phone .ar .ar-cards .ar-stiles { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 100px; grid-auto-columns: auto; max-height: 216px; overflow-x: hidden; overflow-y: auto; }
.ar-on.ar-phone .ar .ar-cards .ar-itile { height: 100px; }
.ar-on.ar-phone .ar .ar-cards .ar-itile .pic { width: 100%; height: 50px; max-width: none; max-height: none; }
.ar-on.ar-phone .ar .ar-cards .ar-itile .pic > * { width: 100%; height: 100%; max-width: none; max-height: none; }
.ar-on .ar .ar-cap .note.how { font-size: 22px; color: var(--ar-gold2); }
.ar-on .ar .ar-cap .note.small { font-size: 16px; color: var(--ar-dim); }
.ar-on .ar .ar-cap .ar-item-mid > .ar-kick { margin-top: 0; }
/* a mascot's painted figure, where it is looked at big */
.ar-on .ar .ar-big .nx-pet-painted { display: block; image-rendering: auto; filter: drop-shadow(0 20px 16px rgba(0, 0, 0, 0.55)); }
.ar-on .ar .ar-big.dim .nx-pet-painted { filter: grayscale(0.9) brightness(0.6); }

/* ---- a chest's cards in Arena (ui/neon/chest-show.js arenaCardFace): the champion painted over its place, its name on
   a banner in its rarity's colour, copies and tier in the corners; what it gave and the items under it ---- */
.ar-on .ar-ccard { --rc: #c9c1d6; position: absolute; inset: 0; display: block; overflow: hidden; background: #120d1c; border: 3px solid var(--rc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7), 0 10px 26px rgba(0, 0, 0, 0.6); }
.ar-on .ar-ccard.q-rare { --rc: #7db8ff; } .ar-on .ar-ccard.q-epic { --rc: #cf9bff; } .ar-on .ar-ccard.q-legendary { --rc: #ffb347; }
.ar-on .ar-ccard .bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.62) saturate(0.9); }
.ar-on .ar-ccard .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 7, 16, 0) 40%, rgba(10, 7, 16, 0.92) 92%), radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 62%); }
.ar-on .ar-ccard .fig { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); display: block; }
.ar-on .ar-ccard .fig canvas { display: block; image-rendering: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6)); }
.ar-on .ar-ccard .nm { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 9px; background: linear-gradient(180deg, rgba(10, 7, 16, 0.2), rgba(10, 7, 16, 0.96) 45%); border-top: 2px solid var(--rc); }
.ar-on .ar-ccard .nm b { max-width: 100%; font: 800 clamp(13px, 1.1vw, 20px)/1.05 var(--ar-cap, Georgia, serif); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar-ccard .nm small { font: 700 11px/1 var(--ar-cap, Georgia, serif); letter-spacing: 0.16em; text-transform: uppercase; color: var(--rc); }
.ar-on .ar-ccard .n, .ar-on .ar-ccard .tier { position: absolute; top: 6px; min-width: 30px; height: 26px; padding: 0 7px; display: grid; place-items: center; font: 800 15px/1 var(--ar-cap, Georgia, serif); }
.ar-on .ar-ccard .n { left: 6px; color: #1a1220; background: var(--rc); }
.ar-on .ar-ccard .tier { right: 6px; color: var(--rc); background: rgba(10, 7, 16, 0.86); border: 1px solid var(--rc); }
.ar-on .ar-ccard .holo-tag { position: absolute; top: 38px; left: 6px; padding: 3px 6px; font: 800 10px/1 var(--ar-cap, Georgia, serif); letter-spacing: 0.16em; color: #1a1220; background: linear-gradient(90deg, #7ff0ff, #cf9bff, #d1ab5b); }
/* (the card a chest gives, in its rarity's v3 frame, your word 21 Nov: the picture in the frame's window, the copies and
   the tier in its top notches, the name and the rarity on its foot; every place in the frame's 480 x 640) */
.ar-on .ar-ccard.rframe { container-type: inline-size; border: 0; background: none; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6); }
.ar-on .ar-ccard.rframe .bg { left: 4.8%; right: 4.8%; top: 3.75%; bottom: 10.9%; background-color: #120d1c; background-size: cover; }
/* (no dark fade nor dimming on the picture: the name has the frame's own band, your word 22 Nov; only its rarity's light from the top) */
.ar-on .ar-ccard.rframe .bg { filter: none; }
.ar-on .ar-ccard.rframe .bg::after { background: radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 60%); }
.ar-on .ar-ccard.rframe .frame { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
.ar-on .ar-ccard.rframe .fig { bottom: 14%; }
.ar-on .ar-ccard.rframe :is(.n, .tier) { z-index: 4; top: 2.66%; min-width: 0; width: 7.9%; height: 5.9%; padding: 0; display: flex; align-items: center; justify-content: center; line-height: 1; background: none; border: 0; color: #fff4dc; font-size: max(10px, 5cqw); text-shadow: 0 1px 0 #000; } /* (in the middle of the notches' dark: your word, 22 Nov) */
.ar-on .ar-ccard.rframe .n { left: 2.3%; }
.ar-on .ar-ccard.rframe .tier { right: 2.3%; color: var(--rc); }
.ar-on .ar-ccard.rframe .nm { z-index: 4; left: 7.3%; right: 7.3%; top: 90.6%; bottom: auto; height: 7%; flex-direction: row; justify-content: center; align-items: center; gap: 2.5cqw; padding: 0; line-height: 1; background: none; border: 0; } /* (in the middle of the foot's dark band) */
.ar-on .ar-ccard.rframe .nm b { font-size: max(11px, 5.6cqw); line-height: 1; }
.ar-on .ar-ccard.rframe .nm small { font-size: max(8px, 3.4cqw); line-height: 1; }
/* (a new champion's banner sits over the frame's top edge, not on its notches) */
.cf-face:has(.ar-ccard.rframe) ~ .cf-new, .cf-card:has(.ar-ccard.rframe) .cf-new { top: 0; transform: translate(-50%, -62%); }
.ar-on .ar-ccard.rframe .holo-tag { z-index: 4; top: 10%; left: 6%; }
.ar-on .ar-ccard.holo::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0.5; background: linear-gradient(115deg, transparent 30%, rgba(127, 240, 255, 0.5) 44%, rgba(207, 155, 255, 0.55) 52%, rgba(209, 171, 91, 0.45) 60%, transparent 72%); background-size: 260% 100%; animation: ar-holo 3.2s linear infinite; }
@keyframes ar-holo { from { background-position: 120% 0; } to { background-position: -60% 0; } }
.ar-on .cf-cap { gap: 4px; padding-top: 8px; text-shadow: none; }
.ar-on .cf-cap > span { padding: 4px 10px; border-radius: 0; background: rgba(13, 10, 20, 0.92); border: 1px solid var(--ar-line2, #6a5a3a); font: 700 13px/1.1 var(--ar-cap, Georgia, serif); letter-spacing: 0.08em; text-transform: uppercase; }
.ar-on .cf-cap > span:first-child { display: none; } /* (the card says its rarity and copies itself) */
.ar-on .cf-item { border-radius: 0; background: rgba(13, 10, 20, 0.92); border: 1px solid var(--ar-line2, #6a5a3a); padding: 8px 16px 8px 8px; gap: 10px; }
.ar-on .cf-item > span { font: 700 15px/1.1 var(--ar-cap, Georgia, serif); letter-spacing: 0.05em; }
@media (prefers-reduced-motion: reduce) { .ar-on .ar-ccard.holo::after { animation: none; } }
html.reduce-motion.ar-on .ar-ccard.holo::after { animation: none; }

/* (the Items page's search, 16 Nov) */
.ar-on .ar .ar-shop-filters .ar-item-find { width: 100%; }
.ar-on .ar .ar-stiles .ar-itile[hidden] { display: none; }
/* The phone sweep (17 Nov): who wears what is read whole ("Nothing in this slot yet" was cut in three languages). */
.ar-on.ar-phone .ar .ar-wear-row .tx small { white-space: normal; }
/* An upgrade's spare copies beside its coins (17 Nov): "+ 1/2", red while short. */
.ar-on .ar .ar-price .copies, .ar-on .ar .ar-btn .cost em { font-style: normal; margin-left: 6px; opacity: 0.92; }
.ar-on .ar .ar-price .copies.short, .ar-on .ar .ar-btn .cost em.short { color: #ff8f8f; }

/*
 * The Inventory's Chests and eggs (ui/arena/held.js): what was won and waits to be opened, a card each across the
 * sheet (its picture, how many, its name, what it holds, Open or Hatch); nothing waiting: one line. A phone: a row each.
 */
.ar-on .ar .ar-held { position: relative; height: 100%; display: flex; flex-direction: column; gap: 18px; }
.ar-on .ar .ar-held > .hd { display: flex; align-items: center; gap: 16px; flex: none; }
.ar-on .ar .ar-held > .hd .grow { flex: 1; }
.ar-on .ar .ar-held > .hd .note { font-size: 19px; color: var(--ar-dim); }
.ar-on .ar .ar-held-cards { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: center; gap: 22px; }
.ar-on .ar .ar-held-card { position: relative; flex: 0 1 340px; min-width: 0; height: min(100%, 660px); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 22px 22px; text-align: center; animation: ar-in-up 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) both; animation-delay: calc(var(--i, 0) * 55ms); transition: border-color 0.16s, transform 0.16s; }
.ar-on .ar .ar-held-card:hover { border-color: var(--ar-line2); transform: translateY(-4px); }
.ar-on .ar .ar-held-card .pic { flex: none; width: 230px; height: 230px; display: grid; place-items: center; background: radial-gradient(circle, rgba(209, 171, 91, 0.22), rgba(209, 171, 91, 0) 68%); filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.55)); }
.ar-on .ar .ar-held-card .pic :is(img, canvas, .art-pic) { image-rendering: pixelated; object-fit: contain; }
/* (the v3 art's chests and eggs, Phone and PC: the picture fills the light; an open chest hops up, an egg wobbles) */
.ar-on .ar .ar-held-card .pic > img.v3-held, .ar-on .ar .ar-held-none .pic > img.v3-held { width: 88%; height: 88%; }
.ar-on .ar .ar-held-none .pic > img.v3-held { width: 160px; height: 160px; }
.ar-on .ar .ar-held-card.chest .pic > img.v3-held.open { animation: v3-held-hop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.4) both; }
.ar-on .ar .ar-held-card.egg:hover .pic > img.v3-held { animation: v3-held-wobble 0.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes v3-held-hop { from { transform: translateY(6px) scale(0.96); } to { transform: none; } }
@keyframes v3-held-wobble { 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
html.reduce-motion.ar-on .ar .ar-held-card .pic > img.v3-held { animation: none; }
.ar-on .ar .ar-held-card .n { position: absolute; right: 14px; top: 14px; min-width: 56px; height: 40px; padding: 0 10px; display: grid; place-items: center; font: 800 24px/1 var(--ar-text); color: #1a1309; background: var(--ar-yellow); }
.ar-on .ar .ar-held-card .tx { flex: none; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ar-on .ar .ar-held-card .tx b { font: 800 30px/1.1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-gold2); }
.ar-on .ar .ar-held-card .tx .wait { font: 700 14px/1 var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-green); }
.ar-on .ar .ar-held-card .gives { flex: 1; min-height: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 18px; line-height: 1.3; color: var(--ar-dim); }
.ar-on .ar .ar-held-card .acts { flex: none; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.ar-on .ar .ar-held-card .acts .ar-btn { width: 100%; }
.ar-on .ar .ar-held-card .acts .ar-btn:disabled { opacity: 0.5; cursor: default; filter: none; }
.ar-on .ar .ar-held.none { align-items: center; justify-content: center; }
.ar-on .ar .ar-held-none { width: 720px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 44px 36px; text-align: center; }
.ar-on .ar .ar-held-none .pic { display: grid; place-items: center; filter: grayscale(0.85) brightness(0.7); }
.ar-on .ar .ar-held-none .pic :is(img, canvas) { image-rendering: pixelated; }
.ar-on .ar .ar-held-none p { margin: 0; font-size: 23px; color: var(--ar-cream); }
.ar-on .ar-page.narrower .ar-held-cards { gap: 12px; }
.ar-on .ar-page.narrower .ar-held-card { padding: 22px 12px 16px; }
.ar-on .ar-page.narrower .ar-held-card .pic { width: 190px; height: 190px; }
.ar-on .ar-page.narrower .ar-held-card .tx b { font-size: 25px; }
@media (prefers-reduced-motion: reduce) { .ar-on .ar .ar-held-card { animation: none; transition: none; } }
html.reduce-motion.ar-on .ar .ar-held-card { animation: none; transition: none; }
/* a phone: a row each, its picture, its words (the name whole, on two lines if it must), Open beside them */
.ar-on.ar-phone .ar .ar-held { height: auto; gap: 10px; }
.ar-on.ar-phone .ar .ar-held > .hd { flex-wrap: wrap; gap: 6px 10px; }
.ar-on.ar-phone .ar .ar-held > .hd .note { font-size: 15px; }
.ar-on.ar-phone .ar .ar-held-cards { flex: none; flex-direction: column; align-items: stretch; gap: 8px; }
.ar-on.ar-phone .ar .ar-held-card { flex: none; height: auto; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; grid-template-areas: 'pic tx tx open' 'gives gives odds odds'; align-items: center; gap: 8px 10px; padding: 10px; text-align: left; animation: none; }
.ar-on.ar-phone .ar .ar-held-card:hover { transform: none; }
.ar-on.ar-phone .ar .ar-held-none .pic > img.v3-held { width: 96px; height: 96px; }
.ar-on.ar-phone .ar .ar-held-card .pic { grid-area: pic; width: 64px; height: 64px; background: #0a0710; border: 1px solid var(--ar-edge); filter: none; }
.ar-on.ar-phone .ar .ar-held-card .n { right: auto; left: 6px; top: 6px; min-width: 26px; height: 20px; padding: 0 4px; font-size: 14px; }
.ar-on.ar-phone .ar .ar-held-card .tx { grid-area: tx; width: auto; align-items: flex-start; gap: 4px; }
.ar-on.ar-phone .ar .ar-held-card .tx b { font-size: 19px; overflow-wrap: anywhere; }
.ar-on.ar-phone .ar .ar-held-card .tx .wait { font-size: 12px; letter-spacing: 0.1em; }
.ar-on.ar-phone .ar .ar-held-card .gives { grid-area: gives; gap: 1px; font-size: 14px; }
.ar-on.ar-phone .ar .ar-held-card .acts { display: contents; }
.ar-on.ar-phone .ar .ar-held-card .acts .ar-btn { width: auto; min-width: 96px; height: 44px; padding: 0 12px; font-size: 14px; letter-spacing: 0.08em; }
.ar-on.ar-phone .ar .ar-held-card .acts .ar-btn.open { grid-area: open; }
.ar-on.ar-phone .ar .ar-held-card .acts .ar-btn.odds { grid-area: odds; align-self: end; height: 34px; padding: 0 10px; font-size: 11.5px; letter-spacing: 0.06em; }
.ar-on.ar-phone .ar .ar-held-none { padding: 26px 16px; }
.ar-on.ar-phone .ar .ar-held-none p { font-size: 18px; }

/* ------------------------------------------------------------------ the level road (19 Nov: ui/level-road.js), Arena
   The game pass's place in the Shop: the level on the left, the next levels' gifts and what each level gave beside it,
   one list that scrolls up and down (never sideways); the reward tiles in the steel box (styles/steel-box.css). */
.ar-on .ar .ar-road { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 24px; height: 100%; min-height: 0; }
.ar-on .ar-page.narrower .ar-road { grid-template-columns: 340px minmax(0, 1fr); gap: 14px; }
.ar-on .ar .ar-road-side .lr-level { display: flex; align-items: center; gap: 12px; font: 700 34px/1.1 var(--ar-cap); color: var(--ar-cream); }
.ar-on .ar .ar-road-side .lr-bignext { color: var(--ar-gold2); }
.ar-on .ar .ar-road-main { min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 18px; }
.ar-on .ar .ar-road-main .lr-sec { margin: 4px 0 10px; font: 700 14px/1.2 var(--ar-cap); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ar-dim); }
.ar-on .ar .ar-road-main .lr-grid + .lr-sec { margin-top: 22px; }
.ar-on .ar .ar-road-main .lr-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ar-on .ar .lr-tile { gap: 6px; padding: 14px 8px 10px; border-radius: 0; border: 9px solid transparent; border-image: var(--steel-box) 24 / 9px / 0 stretch; background: radial-gradient(circle at 50% 38%, #26345e 0%, #0f1533 62%, #06070f 100%); color: var(--ar-cream); opacity: 1; }
.ar-on .ar .lr-tile.big { background: radial-gradient(circle at 50% 38%, #6a3a12 0%, #2a1608 62%, #0b0604 100%); box-shadow: 0 0 18px rgba(209, 171, 91, 0.25); }
.ar-on .ar .lr-tile.next { outline: 2px solid var(--ar-gold); outline-offset: 1px; }
.ar-on .ar .lr-tile.got { filter: saturate(0.6) brightness(0.8); }
.ar-on .ar .lr-tile .lr-n { left: 4px; top: 2px; font: 800 15px/1 var(--ar-text); color: var(--ar-gold2); }
.ar-on .ar .lr-tile .lr-pics { min-height: 52px; }
.ar-on .ar .lr-tile .lr-pics img, .ar-on .ar .lr-tile .lr-pics canvas { width: 48px; height: 48px; image-rendering: pixelated; }
.ar-on .ar .lr-tile .lr-what { font-size: 15px; font-weight: 600; }
.ar-on .ar .lr-tile .lr-got { right: 4px; top: 2px; color: var(--ar-green); }
.ar-on .ar .lr-tile .lr-here { right: 4px; top: 2px; font: 700 11px/1 var(--ar-cap); letter-spacing: 0.1em; color: var(--ar-gold2); }
.ar-on.ar-phone .ar .ar-road { display: flex; flex-direction: column; height: auto; gap: 12px; }
.ar-on.ar-phone .ar .ar-road-main { overflow: visible; padding: 12px; }
.ar-on.ar-phone .ar .ar-road-main .lr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ar-on.ar-phone .ar .lr-tile .lr-what { font-size: 13px; }
.ar-on.ar-phone .ar .ar-road-side .lr-level { font-size: 26px; }
.ar-on .ar .ar-q-road .nx { color: var(--ar-gold2); }
/* (Neon outside Arena, the older Home and Hub pages: the same steel box round the road's tiles) */
html[data-theme='neon'] .lr-tile { border: 9px solid transparent; border-image: var(--steel-box) 24 / 9px / 0 stretch; border-radius: 0; background: radial-gradient(circle at 50% 38%, #26345e 0%, #0f1533 62%, #06070f 100%); color: #f3ead6; }
html[data-theme='neon'] .lr-tile.big { background: radial-gradient(circle at 50% 38%, #6a3a12 0%, #2a1608 62%, #0b0604 100%); }

/* ---- the level road as a path (your call, 21 Nov): the v3 art's studs on a winding road, its gift under each */
.ar-on .ar .lr-path { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); grid-auto-rows: 168px; gap: 0; padding: 18px 6px; }
.ar-on .ar .lr-stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 8px; text-align: center; color: var(--ar-cream); }
/* the road into each stop: a band from its neighbour on the row, or from the row above */
.ar-on .ar .lr-stop::before { content: ''; position: absolute; z-index: 0; background: linear-gradient(180deg, #5b4a2c, #2f2617); box-shadow: inset 0 1px 0 rgba(226, 194, 124, 0.35); }
.ar-on .ar .lr-stop.from-left::before { top: 34px; height: 8px; right: 50%; width: 100%; }
.ar-on .ar .lr-stop.from-right::before { top: 34px; height: 8px; left: 50%; width: 100%; }
.ar-on .ar .lr-stop.from-up::before { top: 34px; height: 8px; width: calc(50% - 6px); }
.ar-on .ar .lr-stop.from-up.side-l::before { left: 6px; } .ar-on .ar .lr-stop.from-up.side-r::before { right: 6px; }
/* (a row's turn: down the path's outside edge, from the stop above to this one) */
.ar-on .ar .lr-stop:is(.turn-r, .turn-l)::after { content: ''; position: absolute; z-index: 0; top: 34px; height: calc(100% + 8px); width: 8px; background: linear-gradient(90deg, #5b4a2c, #2f2617); }
.ar-on .ar .lr-stop.turn-r::after { right: 6px; } .ar-on .ar .lr-stop.turn-l::after { left: 6px; }
.ar-on .ar .lr-stop .lr-out { position: absolute; z-index: 0; top: 34px; height: 8px; width: calc(50% - 6px); background: linear-gradient(180deg, #5b4a2c, #2f2617); }
.ar-on .ar .lr-stop.turn-r .lr-out { right: 6px; } .ar-on .ar .lr-stop.turn-l .lr-out { left: 6px; }
.ar-on .ar .lr-stop:is(.got, .due) .lr-out { background: linear-gradient(180deg, #e6c47a, #a87f34); }
.ar-on .ar .lr-stop:is(.got, .due):is(.turn-r, .turn-l)::after { background: linear-gradient(90deg, #e6c47a, #a87f34); }
.ar-on .ar .lr-stop.from-none::before { display: none; }
.ar-on .ar .lr-stop:is(.got, .due, .next)::before { background: linear-gradient(180deg, #e6c47a, #a87f34); }
.ar-on .ar .lr-stud { position: relative; z-index: 1; display: grid; place-items: center; width: 60px; height: 60px; }
.ar-on .ar .lr-stud img { position: absolute; inset: 6px; width: 48px; height: 48px; image-rendering: pixelated; }
.ar-on .ar .lr-stop.big .lr-stud img { inset: 0; width: 60px; height: 60px; }
.ar-on .ar .lr-stop .lr-lv { position: relative; z-index: 1; margin-top: -4px; padding: 1px 7px; font: 800 13px/1.2 var(--ar-text); color: #fff8e8; background: #120d1a; border: 1px solid var(--ar-line); }
.ar-on .ar .lr-stop.next .lr-lv { color: #1a1309; background: var(--ar-gold); border-color: var(--ar-gold2); }
.ar-on .ar .lr-stop .lr-pics { position: relative; z-index: 1; display: flex; gap: 2px; min-height: 42px; align-items: center; justify-content: center; }
.ar-on .ar .lr-stop .lr-pics img, .ar-on .ar .lr-stop .lr-pics canvas { width: 40px; height: 40px; image-rendering: pixelated; }
.ar-on .ar .lr-stop .lr-what { position: relative; z-index: 1; padding: 0 4px; font: 600 13px/1.2 var(--ar-text); color: var(--ar-dim); }
.ar-on .ar .lr-stop.big .lr-what { color: var(--ar-gold2); }
.ar-on .ar .lr-stop.next .lr-stud { filter: drop-shadow(0 0 10px rgba(255, 210, 110, 0.8)); }
.ar-on .ar .lr-stop .lr-here { position: absolute; z-index: 2; top: -6px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 6px; font: 700 11px/1 var(--ar-cap); letter-spacing: 0.1em; color: #1a1309; background: var(--ar-gold); }
.ar-on .ar .lr-stop .lr-got { position: absolute; z-index: 2; top: 2px; right: calc(50% - 38px); font-style: normal; color: var(--ar-green); font-weight: 800; }
.ar-on .ar .lr-stop.soon { opacity: 0.85; }
.ar-on.ar-phone .ar .lr-path { grid-auto-rows: 150px; padding: 10px 0; }
/* (a level reached: a gold dot set on its stud, done at a glance; your word, 21 Nov) */
.ar-on .ar .lr-stop:is(.got, .due) .lr-stud::after { content: ''; position: absolute; z-index: 2; left: 50%; top: 50%; width: 20px; height: 20px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4c2 0 18%, #f5c542 40%, #b8862b 100%); box-shadow: 0 0 0 2px #2a1e0c, 0 0 10px rgba(245, 197, 66, 0.75); }
.ar-on .ar .lr-stop.big:is(.got, .due) .lr-stud::after { width: 24px; height: 24px; }
.ar-on .ar .lr-stop .lr-got { display: none; }

/* styles/arena-profile.css */
/*
 * Arena's Profile (src/ui/screens/profile.js: arOverview, arHistory, arTeams). Overview: who you are down the left,
 * your numbers, recent matches and records in the middle, what you play, your grades and achievements on the right.
 * History: the games down the left, the chosen one's details beside them. Teams: a card each. A phone: one column.
 * Achievements and Calling cards are the gallery's (arena-items.css).
 */
.ar-on .ar .ar-pf { display: grid; grid-template-columns: 500px minmax(0, 1fr) 470px; gap: 20px; height: 100%; }
.ar-on .ar .ar-pf-mid, .ar-on .ar .ar-pf-side { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.ar-on .ar .ar-pf-box { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ar-on .ar .ar-pf-box > .hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; }
.ar-on .ar .ar-pf-box > .hd .ar-btn, .ar-on .ar .ar-pf-id .ar-btn { height: 38px; padding: 0 14px; font-size: 13px; letter-spacing: 0.1em; clip-path: none; gap: 8px; }
.ar-on .ar .ar-pf-box .note { margin: 0; font-size: 17px; color: var(--ar-mute); }
.ar-on .ar .ar-pf .bar { height: 8px; background: #0a0710; border: 1px solid var(--ar-edge); overflow: hidden; }
.ar-on .ar .ar-pf .bar i { display: block; height: 100%; background: linear-gradient(90deg, #b48d3e, #d1ab5b); }

/* you: the calling card with your picture and name, your level, what makes the card up */
.ar-on .ar .ar-pf-me { padding: 14px; gap: 12px; }
.ar-on .ar .ar-pf-card { position: relative; height: 190px; overflow: hidden; border: 1px solid var(--ar-line2); display: flex; align-items: flex-end; gap: 16px; padding: 14px; flex: none; }
.ar-on .ar .ar-pf-card > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.ar-on .ar .ar-pf-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 5, 14, 0) 20%, rgba(8, 5, 14, 0.92)); }
.ar-on .ar .ar-pf-card .ava { position: relative; z-index: 1; flex: none; width: 112px; height: 112px; }
.ar-on .ar .ar-pf-card .ava > :first-child { width: 112px; height: 112px; }
.ar-on .ar .ar-pf-card .ava > i { position: absolute; right: -8px; bottom: -6px; min-width: 34px; height: 28px; padding: 0 6px; display: grid; place-items: center; font: 800 17px/1 var(--ar-cap); font-style: normal; color: #1a1309; background: linear-gradient(180deg, #e2c27c, #a87f34); border: 1px solid #f0d9a0; }
.ar-on .ar .ar-pf-card .who { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ar-on .ar .ar-pf-card .who small { font: 700 13px/1 var(--ar-cap); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ar-gold); }
.ar-on .ar .ar-pf-card .who h2 { margin: 0; font: 800 34px/1.05 var(--ar-cap); letter-spacing: 0.04em; color: #fff; text-shadow: 0 2px 8px #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-on .ar .ar-pf-card .who h2 .clan { color: var(--ar-gold2); }
.ar-on .ar .ar-pf-card .tags { display: flex; gap: 8px; }
.ar-on .ar .ar-pf-lv { display: flex; flex-direction: column; gap: 5px; flex: none; background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; }
.ar-on .ar .ar-pf-lv small { font-size: 15px; color: var(--ar-dim); }
.ar-on .ar .ar-pf-lv .ar-prog { height: 26px; }
.ar-on .ar .ar-pf-lv.link { cursor: pointer; }
.ar-on .ar .ar-pf-lv.link:hover .ar-prog { border-color: var(--ar-line2); }
.ar-on .ar .ar-pf-ids { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; margin-right: -8px; padding-right: 8px; }
.ar-on .ar .ar-pf-id { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 6px 8px 6px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); flex: none; }
.ar-on .ar .ar-pf-id .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-on .ar .ar-pf-id .tx small { font: 700 12px/1 var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-mute); }
.ar-on .ar .ar-pf-id .tx b { font-size: 19px; font-weight: 600; color: var(--ar-cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-on .ar .ar-pf-id .ar-price { font-size: 14px; }
.ar-on .ar .ar-pf-id .ar-price img, .ar-on .ar .ar-pf-id .ar-price canvas { width: 16px; height: 16px; }

/* the numbers */
.ar-on .ar .ar-pf-nums { flex: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ar-on .ar .ar-pf-num { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 8px 4px; background: rgba(16, 12, 26, 0.94); border: 1px solid var(--ar-edge); text-align: center; }
.ar-on .ar .ar-pf-num b { font: 800 28px/1 var(--ar-cap); color: var(--ar-cream); }
.ar-on .ar .ar-pf-num small { font: 700 11px/1.15 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ar-mute); }
.ar-on .ar .ar-pf-num.good b { color: var(--ar-green); } .ar-on .ar .ar-pf-num.gold b { color: var(--ar-gold2); }

/* recent matches, and a game's row anywhere */
.ar-on .ar .ar-pf-recent { flex: 1; }
.ar-on .ar .ar-pf-rows { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; margin-right: -8px; padding-right: 8px; }
.ar-on .ar .ar-match { position: relative; flex: none; display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px; align-items: center; gap: 12px; min-height: 54px; padding: 6px 10px 6px 16px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); text-align: left; cursor: pointer; transition: transform 0.12s ease-out, border-color 0.12s; }
.ar-on .ar .ar-match::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #6a5e78; }
.ar-on .ar .ar-match.win::before { background: var(--ar-green); } .ar-on .ar .ar-match.loss::before { background: var(--ar-red); }
.ar-on .ar .ar-match:hover, .ar-on .ar .ar-match:focus-visible { border-color: var(--ar-line2); transform: translateX(3px); outline: none; }
.ar-on .ar .ar-match.sel { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); }
.ar-on .ar .ar-match .mt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ar-on .ar .ar-match .mt b { font: 700 18px/1 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-cream); }
.ar-on .ar .ar-match.win .mt b { color: var(--ar-green); } .ar-on .ar .ar-match.loss .mt b { color: #ff8f8f; }
.ar-on .ar .ar-match small { font-size: 14px; color: var(--ar-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-match .teams { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; }
.ar-on .ar .ar-match .teams > i { font-style: normal; font-size: 13px; color: var(--ar-mute); margin: 0 6px; }
.ar-on .ar .ar-match .gr { display: grid; place-items: center; color: var(--ar-mute); }
.ar-on .ar .ar-unit { position: relative; display: inline-grid; flex: none; border: 1px solid var(--ar-edge); background: #0a0710; }
.ar-on .ar .ar-unit canvas, .ar-on .ar .ar-unit img { display: block; image-rendering: pixelated; }
.ar-on .ar .ar-unit.dead canvas, .ar-on .ar .ar-unit.dead img { opacity: 0.5; filter: grayscale(1); }
.ar-on .ar .ar-unit.mvp { border-color: var(--ar-gold); box-shadow: 0 0 8px rgba(209, 171, 91, 0.5); }

/* records by mode */
.ar-on .ar .ar-pf-records { flex: none; }
.ar-on .ar .ar-pf-records .ar-seg { margin: 0; width: auto; }
.ar-on .ar .ar-pf-records .ar-seg > button { padding: 0 14px; height: 36px; font-size: 13px; }
.ar-on .ar .ar-pf-rec { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ar-on .ar .ar-pf-rec .ar-pf-num { min-height: 70px; background: rgba(13, 10, 20, 0.6); }
.ar-on .ar .ar-pf-rec .ar-pf-num b { font-size: 22px; }
.ar-on .ar .ar-pf-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; }
.ar-on .ar .ar-pf-roles .role { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 15px; color: var(--ar-dim); }
.ar-on .ar .ar-pf-roles .role b { text-align: right; color: var(--ar-cream); }

/* most played, grades, achievements */
.ar-on .ar .ar-pf-most { flex: none; gap: 8px; }
.ar-on .ar .ar-pf-champ { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.ar-on .ar .ar-pf-champ .face { width: 48px; height: 48px; display: grid; place-items: center; background: #0a0710; border: 1px solid var(--ar-edge); overflow: hidden; }
.ar-on .ar .ar-pf-champ .face canvas, .ar-on .ar .ar-pf-champ .face img { width: 44px; height: 44px; image-rendering: pixelated; }
.ar-on .ar .ar-pf-champ .tx { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ar-on .ar .ar-pf-champ .tx b { font: 700 16px/1 var(--ar-cap); letter-spacing: 0.05em; color: var(--ar-cream); }
.ar-on .ar .ar-pf-champ .n { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ar-on .ar .ar-pf-champ .n b { font: 800 20px/1 var(--ar-cap); color: var(--ar-cream); }
.ar-on .ar .ar-pf-champ .n small { font-size: 14px; color: var(--ar-gold2); }
.ar-on .ar .ar-pf-grades { flex: none; }
.ar-on .ar .ar-pf-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 132px; align-items: end; }
.ar-on .ar .ar-pf-chart .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.ar-on .ar .ar-pf-chart .col small { font-size: 14px; color: var(--ar-dim); }
.ar-on .ar .ar-pf-chart .col i { display: block; width: 100%; min-height: 3px; background: linear-gradient(180deg, #d1ab5b, #b48d3e); border: 1px solid #000; }
.ar-on .ar .ar-pf-ach { flex: 1; }
.ar-on .ar .ar-pf-show { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ar-on .ar .ar-pf-show > button { height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); cursor: pointer; overflow: hidden; }
.ar-on .ar .ar-pf-show > button.empty { border-style: dashed; }
.ar-on .ar .ar-pf-show > button i { font: 300 34px/1 var(--ar-text); font-style: normal; color: var(--ar-mute); }
.ar-on .ar .ar-pf-show > button small { max-width: 100%; font: 700 11px/1 var(--ar-cap); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ar-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-pf-show > button:hover, .ar-on .ar .ar-pf-show > button:focus-visible { border-color: var(--ar-gold); outline: none; }
.ar-on .ar .ar-pf-ach .ar-prog { height: 26px; flex: none; }
.ar-on .ar .ar-pf-close { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.ar-on .ar .ar-pf-close .row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; flex: none; }
.ar-on .ar .ar-pf-close .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-on .ar .ar-pf-close .tx b { font-size: 16px; color: var(--ar-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-pf-close .tx small { font-size: 14px; color: var(--ar-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-pf-close em { font-style: normal; font-size: 15px; color: var(--ar-gold2); white-space: nowrap; }

/* ---- History ---- */
.ar-on .ar .ar-mh { display: grid; grid-template-columns: minmax(0, 1fr) 640px; gap: 24px; height: 100%; }
.ar-on .ar .ar-mh .ar-facs > button { flex: 1; }
.ar-on .ar .ar-mh-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding-right: 6px; }
.ar-on .ar .ar-match.big { grid-template-columns: 48px 170px minmax(0, 1fr) auto; min-height: 66px; }
.ar-on .ar .ar-match.big .when { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ar-on .ar .ar-match.big .when b { font-size: 16px; font-weight: 600; color: var(--ar-cream); }
.ar-on .ar .ar-mh-panel h2 { display: flex; align-items: center; gap: 14px; }
.ar-on .ar .ar-mh-panel h2.out-win { color: var(--ar-green); } .ar-on .ar .ar-mh-panel h2.out-loss { color: #ff8f8f; }
.ar-on .ar .ar-mh-panel .tags { flex-wrap: wrap; }
.ar-on .ar .ar-mh-team { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); border-left: 4px solid #5aa7ff; }
.ar-on .ar .ar-mh-team + .ar-mh-team { border-left-color: #ff6b6b; }
.ar-on .ar .ar-mh-team.won { border-color: var(--ar-line2); border-left-color: var(--ar-gold); }
.ar-on .ar .ar-mh-team .th { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ar-on .ar .ar-mh-team .th b { font: 700 17px/1 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-cream); }
.ar-on .ar .ar-mh-team .units { display: flex; gap: 4px; }
.ar-on .ar .ar-mh-team .hero { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 36px; }
.ar-on .ar .ar-mh-team .hero.dead > canvas, .ar-on .ar .ar-mh-team .hero.dead > img { opacity: 0.5; filter: grayscale(1); } .ar-on .ar .ar-mh-team .hero.dead .tx b { color: var(--ar-dim); }
.ar-on .ar .ar-mh-team .hero .tx { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ar-on .ar .ar-mh-team .hero .tx b { font-size: 16px; color: var(--ar-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-mh-team .hero .tx em { margin-left: 8px; padding: 1px 6px; font: 700 11px/1.3 var(--ar-cap); font-style: normal; letter-spacing: 0.1em; color: #1a1309; background: var(--ar-gold); }
.ar-on .ar .ar-mh-team small { font-size: 14px; color: var(--ar-dim); }
.ar-on .ar .ar-mh-team .nums { display: grid; grid-template-columns: repeat(3, 76px); font-size: 15px; color: var(--ar-cream); font-variant-numeric: tabular-nums; }
.ar-on .ar .ar-mh-team .nums span { display: flex; align-items: center; gap: 5px; }
.ar-on .ar .ar-mh-team .nums img, .ar-on .ar .ar-mh-team .nums canvas { width: 14px; height: 14px; }
.ar-on .ar .ar-mh-team .total { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--ar-edge); }
.ar-on .ar .ar-mh-panel .ar-item-acts .btn { flex: 1; }
.ar-on .ar .ar-pf-empty { height: 100%; display: grid; place-items: center; }
.ar-on .ar .ar-pf-empty .ar-pf-box { width: 560px; padding: 28px; gap: 16px; }

/* ---- Teams ---- */
.ar-on .ar .ar-teams-page { height: 100%; display: flex; flex-direction: column; gap: 16px; }
.ar-on .ar .ar-teams-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 22px; }
.ar-on .ar .ar-teams-head .tx { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ar-on .ar .ar-teams-head p { margin: 0; font-size: 19px; color: var(--ar-dim); }
.ar-on .ar .ar-teams { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-content: start; padding-right: 6px; }
.ar-on .ar .ar-team { display: flex; flex-direction: column; gap: 12px; padding: 16px; min-height: 250px; }
.ar-on .ar .ar-team .hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ar-on .ar .ar-team .hd b { font: 700 22px/1.1 var(--ar-cap); letter-spacing: 0.05em; color: var(--ar-gold2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-on .ar .ar-team .hd small { font-size: 15px; color: var(--ar-mute); }
.ar-on .ar .ar-team .pics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.ar-on .ar .ar-team .face { aspect-ratio: 1; display: grid; place-items: center; background: #0a0710; border: 1px solid var(--ar-edge); overflow: hidden; }
.ar-on .ar .ar-team .face canvas, .ar-on .ar .ar-team .face img { width: 100%; height: 100%; image-rendering: pixelated; }
.ar-on .ar .ar-team .syn { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.ar-on .ar .ar-team .syn small { font-size: 15px; color: var(--ar-mute); }
.ar-on .ar .ar-team .ar-btn.del { color: #ff9f9f; }
.ar-on .ar .ar-team.new { align-items: center; justify-content: center; border-style: dashed; cursor: pointer; color: var(--ar-dim); }
.ar-on .ar .ar-team.new i { font: 300 64px/1 var(--ar-text); font-style: normal; color: var(--ar-gold); }
.ar-on .ar .ar-team.new b { font: 700 18px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; }
.ar-on .ar .ar-team.new:hover, .ar-on .ar .ar-team.new:focus-visible { border-color: var(--ar-gold); color: var(--ar-cream); outline: none; }

/* a smaller window */
.ar-on .ar-page.narrower .ar-pf { grid-template-columns: 400px minmax(0, 1fr) 380px; gap: 14px; }
.ar-on .ar-page.narrower .ar-pf-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ar-on .ar-page.narrower .ar-pf-rec { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ar-on .ar-page.narrower .ar-pf-card .who h2 { font-size: 28px; }
.ar-on .ar-page.narrower .ar-mh { grid-template-columns: minmax(0, 1fr) 520px; gap: 16px; }
.ar-on .ar-page.narrower .ar-teams { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ar-on .ar-page.narrower .ar-match.big { grid-template-columns: 44px 130px minmax(0, 1fr) auto; }

/* a phone: one column, the page scrolling */
.ar-on.ar-phone .ar .ar-pf, .ar-on.ar-phone .ar .ar-mh { display: flex; flex-direction: column; height: auto; gap: 12px; }
.ar-on.ar-phone .ar .ar-pf-ids, .ar-on.ar-phone .ar .ar-pf-rows, .ar-on.ar-phone .ar .ar-pf-close { flex: none; overflow: visible; margin-right: 0; padding-right: 0; }
.ar-on.ar-phone .ar .ar-pf-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ar-on.ar-phone .ar .ar-pf-rec { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ar-on.ar-phone .ar .ar-pf-roles { grid-template-columns: 1fr; }
.ar-on.ar-phone .ar .ar-pf-card { height: 150px; }
.ar-on.ar-phone .ar .ar-pf-card .ava, .ar-on.ar-phone .ar .ar-pf-card .ava > :first-child { width: 84px; height: 84px; }
.ar-on.ar-phone .ar .ar-pf-card .who h2 { font-size: 24px; }
.ar-on.ar-phone .ar .ar-match { grid-template-columns: 104px minmax(0, 1fr) 36px; gap: 8px; }
.ar-on.ar-phone .ar .ar-match.big { grid-template-columns: 40px 96px minmax(0, 1fr); }
.ar-on.ar-phone .ar .ar-match.big .when { display: none; }
.ar-on.ar-phone .ar .ar-mh-list { flex: none; max-height: 320px; }
.ar-on.ar-phone .ar .ar-mh-team .nums { grid-template-columns: repeat(3, 58px); font-size: 13px; }
.ar-on.ar-phone .ar .ar-teams-page { height: auto; }
.ar-on.ar-phone .ar .ar-teams { grid-template-columns: 1fr; overflow: visible; }
.ar-on.ar-phone .ar .ar-teams-head { flex-direction: column; align-items: stretch; }
.ar-on.ar-phone .ar .ar-pf-empty .ar-pf-box { width: auto; }
@media (prefers-reduced-motion: reduce) { .ar-on .ar .ar-match { transition: none; } }
/* The phone sweep (17 Nov): a game in the history shows both teams whole, on a line of their own. */
.ar-on.ar-phone .ar .ar-match.big { grid-template-columns: 40px minmax(0, 1fr); row-gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.ar-on.ar-phone .ar .ar-match.big .teams { grid-column: 1 / -1; gap: 2px; }
.ar-on.ar-phone .ar .ar-match.big .teams > canvas, .ar-on.ar-phone .ar .ar-match.big .teams > img, .ar-on.ar-phone .ar .ar-match.big .teams > span:not(i) { width: 23px !important; height: 23px !important; flex: none; }
.ar-on.ar-phone .ar .ar-match.big .teams > i { margin: 0 3px; font-size: 11px; }
.ar-on.ar-phone .ar .ar-mh-list { max-height: 360px; }
/* (and the Overview's last games: the same, the grade at the end of the first line) */
.ar-on.ar-phone .ar .ar-match:not(.big) { grid-template-columns: minmax(0, 1fr) 36px; row-gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.ar-on.ar-phone .ar .ar-match:not(.big) .mt { grid-column: 1; grid-row: 1; }
.ar-on.ar-phone .ar .ar-match:not(.big) .gr { grid-column: 2; grid-row: 1; }
.ar-on.ar-phone .ar .ar-match:not(.big) .teams { grid-column: 1 / -1; grid-row: 2; gap: 2px; }
.ar-on.ar-phone .ar .ar-match:not(.big) .teams > canvas, .ar-on.ar-phone .ar .ar-match:not(.big) .teams > img, .ar-on.ar-phone .ar .ar-match:not(.big) .teams > span:not(i) { width: 23px !important; height: 23px !important; flex: none; }
.ar-on.ar-phone .ar .ar-match:not(.big) .teams > i { margin: 0 3px; font-size: 11px; }
/* (a long player name in its row is whole, on two lines if it must) */
.ar-on.ar-phone .ar .ar-pf-id .tx b { font-size: 17px; line-height: 1.1; white-space: normal; overflow-wrap: anywhere; }
.ar-on.ar-phone .ar .ar-pf-id .ar-btn { padding: 0 10px; flex: none; }
/* The phone sweep, second half (17 Nov): Records' switch (vs BOT, online, ranked, 2 players) wraps under its
   heading when all four show; with Ranked back it ran past the screen's edge. */
.ar-on.ar-phone .ar .ar-pf-records > .hd { flex-wrap: wrap; row-gap: 6px; }
.ar-on.ar-phone .ar .ar-pf-records .ar-seg { max-width: 100%; flex-wrap: wrap; }
.ar-on.ar-phone .ar .ar-pf-records .ar-seg > button { padding: 0 9px; font-size: 12px; }

/* styles/arena-social.css */
/*
 * Arena's Play with friends (src/ui/screens/online.js: arTogether, arDuo, arLocal): the ways to play as plates across
 * the sheet, each with what it is and its buttons at the foot. A phone: one under the other.
 */
.ar-on .ar .ar-ways { height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-content: center; grid-auto-rows: minmax(500px, auto); max-width: 1560px; margin: 0 auto; padding: 0 0 40px; }
.ar-on .ar .ar-ways.one { grid-template-columns: minmax(0, 620px); justify-content: center; }
.ar-on .ar .ar-way { display: flex; flex-direction: column; gap: 14px; padding: 30px 30px 28px; min-height: 0; animation: ar-pop 0.3s ease-out both; }
.ar-on .ar .ar-way:nth-child(2) { animation-delay: 0.06s; } .ar-on .ar .ar-way:nth-child(3) { animation-delay: 0.12s; }
.ar-on .ar .ar-way.main { border-color: var(--ar-gold); box-shadow: 0 0 34px rgba(209, 171, 91, 0.16); }
.ar-on .ar .ar-way h2 { margin: 0; font: 800 38px/1.05 var(--ar-cap); letter-spacing: 0.05em; color: var(--ar-gold2); }
.ar-on .ar .ar-way .desc { margin: 0; font-size: 21px; line-height: 1.4; color: var(--ar-cream); }
.ar-on .ar .ar-way .note { margin: 0; font-size: 16px; line-height: 1.35; color: var(--ar-mute); }
.ar-on .ar .ar-way .grow { flex: 1; min-height: 8px; }
.ar-on .ar .ar-way .pays { flex: none; }
.ar-on .ar .ar-way .pays .ar-btn { flex: none; width: 100%; height: 68px; min-height: 68px; margin: 0; font-size: 21px; }
.ar-on .ar .ar-way .pays.row2 { flex-direction: row; }
.ar-on .ar .ar-way .pays.row2 .ar-btn { flex: 1; width: auto; min-width: 0; padding: 0 10px; }
.ar-on .ar .ar-way .ar-btn.mode-closed { opacity: 0.5; }
.ar-on .ar .ar-pace { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; margin-right: -10px; padding-right: 10px; }
.ar-on .ar .ar-pace .row { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 6px 8px 6px 14px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); border-left: 4px solid #6a5e78; }
.ar-on .ar .ar-pace .row.yours, .ar-on .ar .ar-pace .row.claim { border-left-color: var(--ar-gold); }
.ar-on .ar .ar-pace .row.won { border-left-color: var(--ar-green); } .ar-on .ar .ar-pace .row.lost { border-left-color: var(--ar-red); }
.ar-on .ar .ar-pace .tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-on .ar .ar-pace .tx b { font-size: 18px; color: var(--ar-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-pace .tx small { font-size: 14px; color: var(--ar-dim); }
.ar-on .ar .ar-pace .row.yours .tx small { color: var(--ar-gold2); }
.ar-on .ar .ar-pace .ar-btn { height: 40px; padding: 0 14px; font-size: 14px; letter-spacing: 0.1em; clip-path: none; flex: none; }
.ar-on .ar-page.narrower .ar-ways { gap: 14px; padding: 16px 0 24px; }
.ar-on .ar-page.narrower .ar-way { padding: 22px 20px 20px; }
.ar-on .ar-page.narrower .ar-way h2 { font-size: 30px; }
.ar-on .ar-page.narrower .ar-way .desc { font-size: 18px; }
.ar-on.ar-phone .ar .ar-ways, .ar-on.ar-phone .ar .ar-ways.one { display: flex; flex-direction: column; height: auto; gap: 12px; padding: 0 0 12px; }
.ar-on.ar-phone .ar .ar-way { padding: 20px 16px 16px; }
.ar-on.ar-phone .ar .ar-way h2 { font-size: 28px; }
.ar-on.ar-phone .ar .ar-way .desc { font-size: 18px; }
.ar-on.ar-phone .ar .ar-way .pays .ar-btn { height: 58px; font-size: 18px; }
.ar-on.ar-phone .ar .ar-pace { flex: none; overflow: visible; margin-right: 0; padding-right: 0; }
@media (prefers-reduced-motion: reduce) { .ar-on .ar .ar-way { animation: none; } }

/* ---- Friends and Clan on the sheet (.ar-kit): their lists and boxes as Arena's plates, at the sheet's own scale ---- */
.ar-on .ar .ar-fill.ar-kit { font: 400 19px/1.35 var(--ar-text); color: var(--ar-cream); }
.ar-on .ar .ar-fill.ar-kit > .max { max-width: none; width: 100%; height: 100%; margin: 0; padding: 0; display: block; }
.ar-on .ar .ar-fill.ar-kit .panel { background: rgba(13, 10, 20, 0.93); border: 1px solid var(--ar-line); border-radius: 0; box-shadow: none; padding: 18px 20px; }
.ar-on .ar .ar-fill.ar-kit .h2 { margin: 0; font: 700 15px/1 var(--ar-cap); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ar-gold); }
.ar-on .ar .ar-fill.ar-kit .title { font: 800 34px/1.05 var(--ar-cap); letter-spacing: 0.05em; color: var(--ar-gold2); }
.ar-on .ar .ar-fill.ar-kit .small { font-size: 17px; } .ar-on .ar .ar-fill.ar-kit .xs { font-size: 15px; }
.ar-on .ar .ar-fill.ar-kit .muted { color: var(--ar-dim); } .ar-on .ar .ar-fill.ar-kit .gold { color: var(--ar-gold2); }
.ar-on .ar .ar-fill.ar-kit .good, .ar-on .ar .ar-fill.ar-kit .teal { color: var(--ar-green); } .ar-on .ar .ar-fill.ar-kit .bad { color: var(--ar-red); }
.ar-on .ar .ar-fill.ar-kit p { margin: 0; }
.ar-on .ar .ar-fill.ar-kit .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; font: 700 15px/1 var(--ar-cap); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ar-cream); background: linear-gradient(180deg, #2c2240, #1a1428); border: 1px solid var(--ar-line2); border-radius: 0; cursor: pointer; white-space: nowrap; }
.ar-on .ar .ar-fill.ar-kit .btn:hover, .ar-on .ar .ar-fill.ar-kit .btn:focus-visible { filter: brightness(1.25); outline: none; }
.ar-on .ar .ar-fill.ar-kit .btn.small { min-height: 40px; padding: 0 12px; font-size: 14px; }
.ar-on .ar .ar-fill.ar-kit .btn.icon { min-width: 40px; padding: 0 8px; }
.ar-on .ar .ar-fill.ar-kit .btn.primary, .ar-on .ar .ar-fill.ar-kit .btn.teal, .ar-on .ar .ar-fill.ar-kit .btn.gold { color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border-color: #f0d9a0; }
.ar-on .ar .ar-fill.ar-kit .btn:disabled { opacity: 0.45; cursor: default; filter: none; }
.ar-on .ar .ar-fill.ar-kit .btn img, .ar-on .ar .ar-fill.ar-kit .btn canvas { image-rendering: pixelated; }
.ar-on .ar .ar-fill.ar-kit input, .ar-on .ar .ar-fill.ar-kit select, .ar-on .ar .ar-fill.ar-kit textarea { min-height: 44px; padding: 0 12px; font: 400 18px/1.2 var(--ar-text); color: var(--ar-cream); background: #0a0710; border: 1px solid var(--ar-edge); border-radius: 0; }
.ar-on .ar .ar-fill.ar-kit input:focus, .ar-on .ar .ar-fill.ar-kit select:focus { border-color: var(--ar-gold); outline: none; }

/* Friends */
.ar-on .ar .ar-fill.ar-kit .so-grid { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 24px; height: 100%; max-width: none; margin: 0; align-items: stretch; }
.ar-on .ar .ar-fill.ar-kit .so-main { order: 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.ar-on .ar .ar-fill.ar-kit .so-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; }
.ar-on .ar .ar-fill.ar-kit .so-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.ar-on .ar .ar-fill.ar-kit .so-search-box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #0a0710; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-fill.ar-kit .so-search-box input { flex: 1; min-width: 0; border: 0; background: none; padding: 0; }
.ar-on .ar .ar-fill.ar-kit .so-chips { display: flex; gap: 6px; flex: none; }
.ar-on .ar .ar-fill.ar-kit .so-chips .btn.on { color: var(--ar-gold2); border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); }
.ar-on .ar .ar-fill.ar-kit .so-chips .btn[data-badge]::after { content: attr(data-badge); margin-left: 6px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 12px; color: #fff; background: var(--ar-red); }
.ar-on .ar .ar-fill.ar-kit .so-groups { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--ar-line2) transparent; }
.ar-on .ar .ar-fill.ar-kit .so-group { display: flex; flex-direction: column; gap: 6px; }
.ar-on .ar .ar-fill.ar-kit .so-group-title { display: flex; align-items: center; gap: 10px; font: 700 13px/1 var(--ar-cap); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ar-mute); }
.ar-on .ar .ar-fill.ar-kit .so-group-title b { color: var(--ar-cream); }
.ar-on .ar .ar-fill.ar-kit .so-group.on .so-group-title { color: var(--ar-green); }
.ar-on .ar .ar-fill.ar-kit .so-row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); border-radius: 0; overflow: hidden; }
.ar-on .ar .ar-fill.ar-kit .so-row.online { border-left: 4px solid var(--ar-green); }
.ar-on .ar .ar-fill.ar-kit .so-row.compact { min-height: 54px; }
.ar-on .ar .ar-fill.ar-kit .so-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; position: relative; }
.ar-on .ar .ar-fill.ar-kit .so-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ar-on .ar .ar-fill.ar-kit .so-name b { font: 700 19px/1.1 var(--ar-cap); letter-spacing: 0.03em; color: #fff; }
.ar-on .ar .ar-fill.ar-kit .so-lvl { padding: 2px 6px; font: 800 12px/1 var(--ar-cap); color: #1a1309; background: var(--ar-gold); border-radius: 0; }
.ar-on .ar .ar-fill.ar-kit .so-acts { display: flex; align-items: center; gap: 6px; flex: none; position: relative; }
.ar-on .ar .ar-fill.ar-kit .so-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 0; opacity: 0.8; }
.ar-on .ar .ar-fill.ar-kit .so-side, .ar-on .ar .ar-fill.ar-kit .so-side[hidden] { order: 0; display: flex !important; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }
.ar-on .ar .ar-fill.ar-kit .so-add { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.ar-on .ar .ar-fill.ar-kit .so-add-head { display: flex; align-items: center; gap: 14px; }
.ar-on .ar .ar-fill.ar-kit .so-add-row { display: flex; gap: 8px; }
.ar-on .ar .ar-fill.ar-kit .so-results { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.ar-on .ar .ar-fill.ar-kit .so-myname { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--ar-edge); }
.ar-on .ar .ar-fill.ar-kit .so-myname b { flex: 1; font: 700 20px/1 var(--ar-cap); color: var(--ar-gold2); }
.ar-on .ar .ar-fill.ar-kit .so-invite-card { display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.ar-on .ar .ar-fill.ar-kit .so-invite-card:hover { border-color: var(--ar-gold); }
.ar-on .ar .ar-fill.ar-kit .so-invite-card b { font: 700 19px/1.1 var(--ar-cap); color: var(--ar-gold2); }
.ar-on .ar-social[data-tab='friends'] .ar-head .nx-so-tools { display: none; }

/* Clan: what's a list on the left, the clan itself beside it */
.ar-on .ar .ar-fill.ar-kit-clan > .max { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 24px; }
.ar-on .ar .ar-fill.ar-kit .nx-clan-side, .ar-on .ar .ar-fill.ar-kit .nx-clan-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--ar-line2) transparent; padding-right: 4px; }
.ar-on .ar .ar-fill.ar-kit .nx-clan-box { flex: 1; min-height: 0; }
.ar-on .ar .ar-fill.ar-kit .nx-clan-list { flex: 1; min-height: 0; overflow-y: auto; }
.ar-on .ar .ar-fill.ar-kit .clan-hero { background-size: cover; background-position: center; min-height: 170px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ar-on .ar .ar-fill.ar-kit .clan-row, .ar-on .ar .ar-fill.ar-kit .clan-member { min-height: 56px; padding: 6px 10px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-fill.ar-kit .nx-clan-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ar-on .ar .ar-fill.ar-kit .clan-war { background-size: cover; background-position: center; }
.ar-on .ar .ar-fill.ar-kit .clan-war-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.ar-on .ar .ar-fill.ar-kit .clan-war-n { font: 800 30px/1 var(--ar-cap); color: var(--ar-cream); }
.ar-on .ar .ar-fill.ar-kit .clan-war-x { font: 800 22px/1 var(--ar-cap); color: var(--ar-gold2); }
.ar-on .ar .ar-fill.ar-kit .nx-clan-chat { flex: 1; min-height: 240px; }
.ar-on .ar .ar-fill.ar-kit .clan-chat { flex: 1; min-height: 120px; overflow-y: auto; }
.ar-on .ar .ar-fill.ar-kit .nx-clan-role { display: inline-flex; align-items: center; gap: 4px; font: 700 12px/1 var(--ar-cap); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ar-dim); }
.ar-on .ar .ar-fill.ar-kit .nx-clan-role.leader { color: var(--ar-gold2); }

.ar-on .ar-page.narrower .ar-fill.ar-kit .so-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; }
.ar-on .ar-page.narrower .ar-fill.ar-kit-clan > .max { grid-template-columns: 420px minmax(0, 1fr); gap: 16px; }
.ar-on.ar-phone .ar .ar-fill.ar-kit .so-grid, .ar-on.ar-phone .ar .ar-fill.ar-kit-clan > .max { display: flex; flex-direction: column; height: auto; gap: 12px; }
.ar-on.ar-phone .ar .ar-fill.ar-kit .so-groups, .ar-on.ar-phone .ar .ar-fill.ar-kit .nx-clan-side, .ar-on.ar-phone .ar .ar-fill.ar-kit .nx-clan-main { overflow: visible; flex: none; }
.ar-on.ar-phone .ar .ar-fill.ar-kit .so-tools { flex-direction: column; align-items: stretch; }
.ar-on.ar-phone .ar .ar-fill.ar-kit .nx-clan-pair { grid-template-columns: 1fr; }
/* (the kit's small things: a button's picture at the sheet's size, the search box one box, your name at the foot, a member's role as wide as its word) */
.ar-on .ar .ar-fill.ar-kit .btn :is(img, canvas) { width: 22px !important; height: 22px !important; flex: none; }
.ar-on .ar .ar-fill.ar-kit .so-search-box { height: 46px; border-radius: 0; box-shadow: none; }
.ar-on .ar .ar-fill.ar-kit .so-search-box input { min-height: 0; height: 100%; box-shadow: none; }
.ar-on .ar .ar-fill.ar-kit .so-add-row input { flex: 1; min-width: 0; }
.ar-on .ar .ar-fill.ar-kit .so-results:empty { display: none; }
.ar-on .ar .ar-fill.ar-kit .so-myname { margin-top: auto; }
.ar-on .ar .ar-fill.ar-kit .nx-clan-side { padding: 18px 20px; background: rgba(13, 10, 20, 0.93); border: 1px solid var(--ar-line); }
.ar-on .ar .ar-fill.ar-kit .nx-clan-main { padding: 0; }
.ar-on .ar .ar-fill.ar-kit .nx-clan-role { width: auto; min-width: 0; padding: 5px 8px; white-space: nowrap; }
.ar-on .ar .ar-fill.ar-kit .nx-clan-box .clan-member { padding: 8px 10px; gap: 8px 12px; }
.ar-on .ar .ar-fill.ar-kit .nx-clan-box .clan-member .btn { min-height: 38px; padding: 0 12px; font-size: 13px; }
.ar-on .ar .ar-fill.ar-kit .nx-clan-box .clan-member > .link { display: flex; align-items: center; gap: 10px; font: 700 19px/1.1 var(--ar-cap); color: #fff; }
.ar-on .ar .ar-fill.ar-kit .btn:is(.primary, .teal, .gold) :is(img, canvas) { filter: brightness(0) opacity(0.72); }
.ar-on .ar .ar-fill.ar-kit .nx-clan-box { border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; }
.ar-on .ar .ar-fill.ar-kit .nx-clan-box .clan-member { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.ar-on .ar .ar-fill.ar-kit .nx-clan-box .clan-member > span:last-child { display: contents; }
.ar-on .ar .ar-fill.ar-kit .nx-clan-box .clan-member > span:last-child > span { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.ar-on .ar .ar-fill.ar-kit .nx-clan-box .clan-member > span:last-child > span:empty { display: none; }
.ar-on.ar-phone .ar .ar-fill.ar-kit .panel, .ar-on.ar-phone .ar .ar-fill.ar-kit .nx-clan-side { padding: 12px; }
.ar-on.ar-phone .ar .ar-fill.ar-kit .so-row { flex-wrap: wrap; gap: 8px 10px; }
.ar-on.ar-phone .ar .ar-fill.ar-kit .so-who { flex: 1 1 120px; }
.ar-on.ar-phone .ar .ar-fill.ar-kit .so-acts { margin-left: auto; }
.ar-on.ar-phone .ar .ar-fill.ar-kit .nx-clan-box .clan-member .btn { flex: 1 1 auto; }
.ar-on.ar-phone .ar .ar-fill.ar-kit .nx-clan-box .clan-member { grid-template-columns: minmax(0, 1fr); }
.ar-on .ar .ar-fill.ar-kit .nx-clan-box .clan-member > .link { min-width: 0; }
.ar-on .ar .ar-fill.ar-kit .nx-clan-box .clan-member > .link b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* (no account yet: the notice in the middle of the sheet) */
.ar-on .ar .ar-fill.ar-kit > .max:has(> .need-account) { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.ar-on .ar .ar-fill.ar-kit .need-account { width: 760px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px 36px; text-align: center; font-size: 21px; }
.ar-on .ar .ar-fill.ar-kit .need-account .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ar-on.ar-phone .ar .ar-fill.ar-kit .need-account { padding: 24px 14px; font-size: 18px; }
/* Online (17 Nov): two ways side by side, online now and at your own pace; who is online, with a green dot. */
.ar-on .ar .ar-ways.two { grid-template-columns: repeat(2, minmax(0, 560px)); justify-content: center; }
.ar-on .ar .ar-vs-count { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 17px/1.2 var(--ar-text); color: var(--ar-green, #58d6a4); }
.ar-on .ar .ar-vs-count:empty { display: none; }
.ar-on .ar .ar-vs-count .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #58d6a4; box-shadow: 0 0 8px #58d6a4; }
.ar-on.ar-phone .ar .ar-ways.two { grid-template-columns: 1fr; }
.q-eta { font-size: 15px; font-weight: 700; text-align: center; color: var(--gold-2, #ffd866); }

/* styles/arena-friends.css */
/* Arena: your friends on every page (ui/neon/friends-bar.js, corner mode), and Social's Friends page with its
   conversation (ui/screens/online.js friendsTab). px are the 1920 x 1080 sheet's, drawn at --ar-zoom. */

/* ---- the corner: the Friends button in the window's bottom right, the conversations' tabs beside it, their windows over them ---- */
html.ar-on .nx-dock.ar-corner { left: auto; right: 0; bottom: var(--safe-b, 0px); width: auto; height: auto; background: none; border: 0; pointer-events: none; }
html.ar-on .nx-dock.ar-corner[hidden] { display: none; }
html.ar-on .ar-corner .nx-dock-in { zoom: var(--ar-zoom, 1); position: relative; width: auto; height: 54px; margin: 0 26px 12px 0; display: flex; align-items: stretch; justify-content: flex-end; gap: 8px; pointer-events: auto; }
html.ar-on .ar-corner .nx-dock-tabs { gap: 8px; }
html.ar-on .ar-corner .nx-dock-slot { border: 0; }
html.ar-on .ar-corner :is(.nx-dock-tab, .nx-dock-friends) { height: 54px; gap: 10px; padding: 0 16px; font: 700 16px/1 var(--ar-cap); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ar-cream); background: linear-gradient(180deg, #2c2240, #17121f); border: 1px solid var(--ar-line2); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6); cursor: pointer; transition: transform 0.15s, border-color 0.15s, color 0.15s; }
html.ar-on .ar-corner .nx-dock-friends { width: auto; min-width: 200px; justify-content: flex-start; }
html.ar-on .ar-corner .nx-dock-friends :is(img, canvas) { width: 24px !important; height: 24px !important; image-rendering: pixelated; }
html.ar-on .ar-corner .nx-dock-tab { width: 190px; padding-right: 34px; text-transform: none; letter-spacing: 0.03em; font-size: 17px; }
html.ar-on .ar-corner :is(.nx-dock-tab, .nx-dock-friends):hover { color: var(--ar-gold2); border-color: var(--ar-gold); background: linear-gradient(180deg, #3a2c4e, #1f1830); transform: translateY(-2px); }
html.ar-on .ar-corner :is(.nx-dock-tab, .nx-dock-friends).on { color: var(--ar-gold2); border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.96); }
html.ar-on .ar-corner .nx-dock-count { margin-left: auto; font: 700 16px/1 var(--ar-cap); color: var(--ar-cream); gap: 6px; }
html.ar-on .ar-corner .nx-dock-dot { width: 10px; height: 10px; }
html.ar-on .ar-corner .nx-dock-n { min-width: 22px; padding: 3px 5px; font: 800 13px/1 var(--ar-cap); color: #fff; background: #d8433a; border-radius: 0; }
html.ar-on .ar-corner .nx-dock-x { right: 6px; width: 24px; color: var(--ar-mute); background: none; border: 0; }
html.ar-on .ar-corner .nx-dock-x:hover { color: #fff; }
/* something waits to be read: the tab, or the button, glows on and off */
html.ar-on .ar-corner :is(.nx-dock-tab, .nx-dock-friends).fresh { color: var(--ar-gold2); border-color: var(--ar-gold); animation: ar-dock-glow 1.7s ease-in-out infinite; }
@keyframes ar-dock-glow {
  0%, 100% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(209, 171, 91, 0); background: linear-gradient(180deg, #2c2240, #17121f); }
  50% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6), 0 0 26px 4px rgba(209, 171, 91, 0.65); background: linear-gradient(180deg, #5a4420, #33240f); }
}
html.ar-on.reduce-motion .ar-corner :is(.nx-dock-tab, .nx-dock-friends).fresh { animation: none; background: linear-gradient(180deg, #5a4420, #33240f); box-shadow: 0 0 18px 2px rgba(209, 171, 91, 0.5); }
@media (prefers-reduced-motion: reduce) { html.ar-on .ar-corner :is(.nx-dock-tab, .nx-dock-friends).fresh { animation: none; background: linear-gradient(180deg, #5a4420, #33240f); } }
/* who wrote and what, for a moment, over the tabs */
html.ar-on .ar-corner .nx-dock-peek { position: absolute; right: 0; bottom: calc(100% + 10px); width: 380px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; color: var(--ar-cream); font: inherit; background: rgba(13, 10, 20, 0.97); border: 1px solid var(--ar-gold); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7), 0 0 22px rgba(209, 171, 91, 0.3); cursor: pointer; animation: ar-peek-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1); transition: opacity 0.25s, transform 0.25s; }
html.ar-on .ar-corner .nx-dock-peek.leaving { opacity: 0; transform: translateY(10px); }
html.ar-on .ar-corner .nx-dock-peek .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
html.ar-on .ar-corner .nx-dock-peek b { font: 700 18px/1.1 var(--ar-cap); color: var(--ar-gold2); }
html.ar-on .ar-corner .nx-dock-peek small { font: 400 16px/1.3 var(--ar-text); color: var(--ar-cream); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes ar-peek-in { from { opacity: 0; transform: translateY(14px); } }
/* (a window is open over the tabs: the note would lie under it) */
html.ar-on .ar-corner .nx-dock-box:not(:empty) ~ .nx-dock-peek { display: none; }
/* the windows: the friends' list, a conversation */
html.ar-on .ar-corner .nx-dock-box { right: 0; bottom: calc(100% + 10px); }
html.ar-on .ar-corner .nx-dock-win { background: rgba(13, 10, 20, 0.98); border: 1px solid var(--ar-line2); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.75); font: 400 17px/1.35 var(--ar-text); color: var(--ar-cream); }
html.ar-on .ar-corner .nx-dock-list { width: 420px; height: min(680px, calc(100vh / var(--ar-zoom, 1) - 200px)); gap: 10px; padding: 14px; }
html.ar-on .ar-corner .nx-dock-chat { width: 480px; height: min(700px, calc(100vh / var(--ar-zoom, 1) - 200px)); }
html.ar-on .ar-corner .nx-dock-group { padding: 10px 4px 6px; font: 700 13px/1 var(--ar-cap); letter-spacing: 0.18em; color: var(--ar-mute); }
html.ar-on .ar-corner .nx-dock-row { gap: 12px; padding: 8px 8px; color: var(--ar-cream); font: inherit; }
html.ar-on .ar-corner .nx-dock-row:not(.plain):hover { background: rgba(209, 171, 91, 0.1); }
html.ar-on .ar-corner .nx-dock-row .who { font-size: 16px; gap: 3px; }
html.ar-on .ar-corner .nx-dock-row .name b { font: 700 18px/1.1 var(--ar-cap); color: #fff; }
html.ar-on .ar-corner .nx-dock-row small { font-size: 14px; }
html.ar-on .ar-corner .nx-dock-row .so-lvl { padding: 2px 6px; font: 800 12px/1 var(--ar-cap); color: #1a1309; background: var(--ar-gold); border: 0; border-radius: 0; box-shadow: none; }
html.ar-on .ar-corner .nx-dock-none { font-size: 16px; color: var(--ar-dim); }
html.ar-on .ar-corner .so-search-box { height: 44px; padding: 0 12px; background: #0a0710; border: 1px solid var(--ar-edge); border-radius: 0; }
html.ar-on .ar-corner .so-search { font: 400 17px var(--ar-text); color: var(--ar-cream); }
html.ar-on .ar-corner .nx-dock-plus { width: 44px; border-radius: 0; border-color: var(--ar-line2); }
html.ar-on .ar-corner :is(.nx-dock-add, .nx-dock-invite) { border-radius: 0; border-color: var(--ar-line2); background: #17121f; }
html.ar-on .ar-corner .nx-dock-add > b, html.ar-on .ar-corner .nx-dock-invite { font: 700 15px/1.1 var(--ar-cap); letter-spacing: 0.12em; color: var(--ar-gold2); }
html.ar-on .ar-corner .nx-dock-add .so-search { min-height: 44px; border-radius: 0; background: #0a0710; }
html.ar-on .ar-corner .btn { min-height: 40px; padding: 0 14px; font: 700 14px/1 var(--ar-cap); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ar-cream); background: linear-gradient(180deg, #2c2240, #1a1428); border: 1px solid var(--ar-line2); border-radius: 0; border-image: none; box-shadow: none; }
html.ar-on .ar-corner .btn.primary { color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border-color: #f0d9a0; }
html.ar-on .ar-corner .btn.icon { min-width: 40px; padding: 0 8px; }

/* ---- a friend's banner and the conversation under it: in the corner's window and on Social's page ---- */
html.ar-on :is(.ar-corner, .ar-fr-talk) .nx-fr-top { min-height: 168px; padding: 16px; border-bottom: 1px solid var(--ar-line2); }
html.ar-on :is(.ar-corner, .ar-fr-talk) .nx-fr-words h2 { font: 800 28px/1.05 var(--ar-cap); letter-spacing: 0.04em; color: #fff; }
html.ar-on :is(.ar-corner, .ar-fr-talk) .nx-fr-pic, html.ar-on :is(.ar-corner, .ar-fr-talk) .nx-fr-pic .nx-fr-face { width: 72px !important; height: 72px !important; }
html.ar-on :is(.ar-corner, .ar-fr-talk) .nx-fr-lv { font: 800 13px/1.25 var(--ar-cap); color: #1a1309; background: var(--ar-gold); border-color: #f0d9a0; }
html.ar-on :is(.ar-corner, .ar-fr-talk) .chat-inline .chat-list { padding: 14px 16px; gap: 6px; }
html.ar-on :is(.ar-corner, .ar-fr-talk) .chat-inline .chat-msg { font: 400 17px/1.35 var(--ar-text); color: var(--ar-cream); background: #1a1428; border-color: var(--ar-edge); }
html.ar-on :is(.ar-corner, .ar-fr-talk) .chat-inline .chat-msg.mine { border-color: var(--ar-line2); background: rgba(60, 44, 18, 0.9); }
html.ar-on :is(.ar-corner, .ar-fr-talk) .chat-inline .chat-send { padding: 10px 12px; gap: 8px; background: #17121f; border-top: 1px solid var(--ar-edge); }
html.ar-on :is(.ar-corner, .ar-fr-talk) .chat-inline .chat-input { min-height: 44px; font: 400 17px var(--ar-text); color: var(--ar-cream); }
html.ar-on :is(.ar-corner, .ar-fr-talk) .chat-inline .chat-field { background: #0a0710; border: 1px solid var(--ar-edge); border-radius: 0; }
html.ar-on :is(.ar-corner, .ar-fr-talk) .chat-inline .chat-go { width: 48px; min-height: 44px; }

/* ---- Social's Friends page (Arena): your friends down the left with adding one at their foot, the conversation beside them ---- */
.ar-on .ar .ar-fill.ar-kit .so-grid.ar-fr { grid-template-columns: 620px minmax(0, 1fr); }
.ar-on .ar .ar-fill.ar-kit .ar-fr .so-row { cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.ar-on .ar .ar-fill.ar-kit .ar-fr .so-row:hover { border-color: var(--ar-line2); }
.ar-on .ar .ar-fill.ar-kit .ar-fr .so-row.sel { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); }
.ar-on .ar .ar-fill.ar-kit .ar-fr .so-row.unread { box-shadow: inset 4px 0 0 var(--ar-gold); }
.ar-on .ar .ar-fill.ar-kit .ar-fr .so-msg.unread { color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border-color: #f0d9a0; animation: ar-unread-glow 1.7s ease-in-out infinite; }
@keyframes ar-unread-glow { 50% { box-shadow: 0 0 20px 4px rgba(209, 171, 91, 0.75); } }
html.ar-on.reduce-motion .ar .ar-fr .so-msg.unread { animation: none; }
.ar-on .ar .ar-fill.ar-kit .ar-fr-foot { flex: none; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ar-edge); }
.ar-on .ar .ar-fill.ar-kit .ar-fr-foot .so-add-row { display: flex; gap: 8px; }
.ar-on .ar .ar-fill.ar-kit .ar-fr-foot .so-results { max-height: 220px; flex: none; }
.ar-on .ar .ar-fill.ar-kit .ar-fr-foot .so-myname { margin: 0; padding: 0; border: 0; gap: 10px; }
.ar-on .ar .ar-fill.ar-kit .ar-fr-foot .so-myname .ar-fr-invite { margin-left: auto; }
.ar-on .ar .ar-fill.ar-kit .ar-fr-talk { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; background: rgba(13, 10, 20, 0.93); border: 1px solid var(--ar-line); }
.ar-on .ar .ar-fill.ar-kit .ar-fr-talk .nx-fr-chat { flex: 1; min-height: 0; display: flex; }
.ar-on .ar .ar-fill.ar-kit .ar-fr-talk .nx-fr-top { min-height: 210px; padding: 22px 24px; }
.ar-on .ar .ar-fill.ar-kit .ar-fr-talk .chat-inline .chat-list { padding: 18px 24px; }
.ar-on .ar .ar-fill.ar-kit .ar-fr-talk .chat-inline .chat-send { padding: 14px 20px; }
.ar-on .ar .ar-fill.ar-kit .ar-fr-talk .chat-inline :is(input, button) { border-radius: 0; }
/* nobody to talk to yet: the friends' scene, and what to do */
.ar-on .ar .ar-fill.ar-kit .ar-fr-none { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; padding: 40px; text-align: center; background: center / cover no-repeat; }
.ar-on .ar .ar-fill.ar-kit .ar-fr-none::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 5, 14, 0.96) 12%, rgba(8, 5, 14, 0.2) 70%); }
.ar-on .ar .ar-fill.ar-kit .ar-fr-none > * { position: relative; }
.ar-on .ar .ar-fill.ar-kit .ar-fr-none h2 { margin: 0; font: 800 40px/1.05 var(--ar-cap); letter-spacing: 0.05em; color: var(--ar-gold2); }
.ar-on .ar .ar-fill.ar-kit .ar-fr-none p { max-width: 720px; font-size: 20px; color: var(--ar-cream); }
.ar-on .ar-page.narrower .ar-fill.ar-kit .so-grid.ar-fr { grid-template-columns: 460px minmax(0, 1fr); }
.ar-on.ar-phone .ar .ar-fill.ar-kit .ar-fr-talk { display: none; }
.ar-on.ar-phone .ar .ar-fill.ar-kit .ar-fr-foot .so-myname { flex-wrap: wrap; }

/* (the sheet's hints step out of the corner's way) */
html.ar-on.ar-dock-on .ar .ar-foot > .grow { display: none; }

/* styles/arena-modes.css */
/*
 * Arena's mode screens, on the sheet's three parts (the Shop's: arena-shop.css): what there is to choose on the left,
 * the one chosen big in the middle, what it is and its button on the right. The Raid (src/ui/screens/raid.js), ...
 */
.ar-on .ar .ar-mode3 .ar-shop-list { gap: 10px; }
.ar-on .ar .ar-mode3 .ar-orow .tx em.gold { color: var(--ar-gold2); }
.ar-on .ar .ar-mode3 .ar-orow .tx em.no { color: var(--ar-mute); }
.ar-on .ar .ar-mode3 .ar-orow.locked .pic { filter: grayscale(0.9) brightness(0.6); }
.ar-on .ar .ar-mode3 .ar-orow .pic canvas, .ar-on .ar .ar-mode3 .ar-orow .pic img { image-rendering: pixelated; }
.ar-on .ar .ar-mode-note { margin: 0 4px; font-size: 17px; line-height: 1.35; color: var(--ar-dim); }
.ar-on .ar .ar-mode-reward { margin: 0; font-size: 20px; color: var(--ar-gold2); }
.ar-on .ar .ar-mode3 .ar-shop-list > .ar-item-acts { margin-right: 4px; }
.ar-on .ar .ar-drops { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-on .ar .ar-drops .drop { display: grid; place-items: center; width: 60px; height: 60px; background: #0a0710; border: 1px solid var(--ar-edge); }

/* ---- the Gauntlet: which one (src/ui/screens/gauntlet.js arPick) ---- */
.ar-on .ar .ar-grow { position: relative; flex: none; display: flex; flex-direction: column; gap: 5px; margin-right: 4px; padding: 12px 14px 12px 18px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); text-align: left; cursor: pointer; transition: transform 0.12s ease-out, border-color 0.12s; }
.ar-on .ar .ar-grow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #6fbf73; }
.ar-on .ar .ar-grow.d-normal::before { background: #d1ab5b; } .ar-on .ar .ar-grow.d-hard::before { background: #ff8a5c; } .ar-on .ar .ar-grow.d-nightmare::before { background: #c06bff; }
.ar-on .ar .ar-grow:hover, .ar-on .ar .ar-grow:focus-visible { border-color: var(--ar-line2); transform: translateX(4px); outline: none; }
.ar-on .ar .ar-grow.sel { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); }
.ar-on .ar .ar-grow.locked { opacity: 0.62; }
.ar-on .ar .ar-grow .top { display: flex; align-items: center; gap: 8px; }
.ar-on .ar .ar-grow .top b { flex: 1; min-width: 0; font: 700 21px/1.1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-on .ar .ar-grow.sel .top b { color: var(--ar-gold2); }
.ar-on .ar .ar-grow .ev { padding: 2px 6px; font: 700 11px/1.2 var(--ar-cap); letter-spacing: 0.1em; text-transform: uppercase; color: #8fe0d0; border: 1px solid #3fae8f; }
.ar-on .ar .ar-grow .sub { display: flex; justify-content: space-between; gap: 10px; }
.ar-on .ar .ar-grow small { font-size: 15px; color: var(--ar-dim); }
.ar-on .ar .ar-grow small.ok { color: var(--ar-green); }
.ar-on .ar .ar-grow .needs { display: flex; flex-direction: column; gap: 2px; }
.ar-on .ar .ar-grow .needs > div { font-size: 14px; }
.ar-on .ar .ar-grun { flex: none; display: flex; align-items: center; gap: 10px; margin-right: 4px; padding: 6px 10px; background: rgba(13, 10, 20, 0.45); border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-grun .team { display: flex; gap: 2px; flex: none; }
.ar-on .ar .ar-grun .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-on .ar .ar-grun .tx b { font-size: 15px; color: var(--ar-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-grun .tx small { font-size: 13px; color: var(--ar-dim); }
.ar-on .ar .ar-grun.won .tx small { color: var(--ar-green); }
.ar-on .ar .ar-rivals { position: absolute; left: 0; right: 0; bottom: 150px; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 4px 0; padding: 0 20px; }
.ar-on .ar .ar-rivals .rival { margin: 0 -8px; filter: drop-shadow(0 16px 12px rgba(0, 0, 0, 0.6)); }
.ar-on .ar .ar-rivals .rival:nth-child(odd) { transform: translateY(26px); }
.ar-on .ar .ar-rivals .rival canvas, .ar-on .ar .ar-rivals .rival img { display: block; image-rendering: pixelated; }
.ar-on .ar .ar-rivals.in .rival { animation: ar-big-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) both; animation-delay: calc(var(--k) * 40ms); }
.ar-on .ar .ar-gx .ar-drops .drop { width: 52px; height: 52px; }
.ar-on .ar .ar-gx .ar-drops .drop.q-rare { border-color: #7db8ff; } .ar-on .ar .ar-gx .ar-drops .drop.q-epic { border-color: #cf9bff; } .ar-on .ar .ar-gx .ar-drops .drop.q-legendary { border-color: #ffb347; }
.ar-on .ar .ar-gx-resist { font-size: 17px; }
.ar-on .ar .ar-gx .ar-mode-reward { display: flex; align-items: center; gap: 6px; }
.ar-on .ar .ar-gx .ar-item-acts > * { flex: none; }
.ar-on.ar-phone .ar .ar-rivals { position: static; padding: 20px 0 30px; }

/* ---- the Daily Challenge (src/ui/screens/daily.js mountArena) ---- */
.ar-on .ar .ar-day3 { grid-template-columns: 470px minmax(0, 1fr) 470px; }
.ar-on .ar .ar-day .ar-rows { font-size: 19px; }
.ar-on .ar .ar-day .ar-seg { margin: 0; }
.ar-on .ar .ar-day-score { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: rgba(40, 29, 14, 0.9); border: 1px solid var(--ar-gold); }
.ar-on .ar .ar-day-score b { font: 800 26px/1 var(--ar-cap); color: var(--ar-gold2); }
.ar-on .ar .ar-day-score small { font-size: 15px; color: var(--ar-dim); }
.ar-on .ar .ar-day-stage { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding-bottom: 60px; }
.ar-on .ar .ar-day-team { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ar-on .ar .ar-day-team > b { padding: 4px 14px; font: 700 15px/1.3 var(--ar-cap); letter-spacing: 0.14em; text-transform: uppercase; color: #9fd0ff; background: rgba(8, 5, 14, 0.8); border: 1px solid #3f6ea8; }
.ar-on .ar .ar-day-team.theirs > b { color: #ffa0a0; border-color: #a83f3f; }
.ar-on .ar .ar-day-team .units { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.ar-on .ar .ar-day-team .unit { display: flex; flex-direction: column; align-items: center; gap: 2px; filter: drop-shadow(0 14px 10px rgba(0, 0, 0, 0.6)); }
.ar-on .ar .ar-day-team .unit canvas, .ar-on .ar .ar-day-team .unit img { display: block; image-rendering: pixelated; }
.ar-on .ar .ar-day-team .unit small { font: 700 13px/1 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-cream); text-shadow: 0 1px 4px #000; }
.ar-on .ar .ar-day-stage .vs { font: 800 44px/1 var(--ar-cap); font-style: normal; letter-spacing: 0.1em; color: var(--ar-gold2); text-shadow: 0 3px 14px #000; margin: 4px 0; }
.ar-on .ar .ar-day-board { flex: 1; min-height: 60px; display: flex; flex-direction: column; gap: 4px; margin-right: -10px; padding-right: 10px; }
.ar-on .ar .ar-day-board .row { flex: none; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); font-size: 17px; }
.ar-on .ar .ar-day-board .row.me { border-color: var(--ar-gold); background: rgba(40, 29, 14, 0.9); }
.ar-on .ar .ar-day-board .row em { font-style: normal; width: 44px; color: var(--ar-mute); font-variant-numeric: tabular-nums; }
.ar-on .ar .ar-day-board .row b { flex: 1; min-width: 0; color: var(--ar-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-day-board .row i { font-style: normal; color: var(--ar-green); }
.ar-on .ar .ar-day-board .row small { font-size: 14px; color: var(--ar-dim); }
.ar-on .ar .ar-day-board .row strong { font: 800 19px/1 var(--ar-cap); color: var(--ar-gold2); }
.ar-on .ar .ar-day-chart { flex: none; height: 90px; display: flex; align-items: flex-end; gap: 3px; }
.ar-on .ar .ar-day-chart i { flex: 1; min-width: 3px; background: #6a5e78; }
.ar-on .ar .ar-day-chart i.won { background: linear-gradient(180deg, #d1ab5b, #b48d3e); }
.ar-on .ar-page.narrower .ar-day3 { grid-template-columns: 380px minmax(0, 1fr) 380px; }
.ar-on.ar-phone .ar .ar-day-stage { padding: 16px 0; }
.ar-on.ar-phone .ar .ar-day-team .unit canvas, .ar-on.ar-phone .ar .ar-day-team .unit img { width: 72px; height: 72px; }
.ar-on.ar-phone .ar .ar-day-board { flex: none; overflow: visible; margin-right: 0; padding-right: 0; }

/* ---- the Gauntlet: your six (arTeam) ---- */
.ar-on .ar .ar-gx-team .ar-itile.sel { border: 2px solid var(--ar-gold); }
.ar-on .ar .ar-gx-team .ar-itile.dim { opacity: 0.45; }
.ar-on .ar .ar-six { position: absolute; left: 0; right: 0; bottom: 150px; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 10px 6px; padding: 0 16px; }
.ar-on .ar .ar-six .slot { position: relative; width: 136px; height: 176px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 0 6px; background: rgba(8, 5, 14, 0.35); border: 2px dashed var(--ar-line2); color: var(--ar-mute); }
.ar-on .ar .ar-six .slot i { position: absolute; inset: 0; display: grid; place-items: center; font: 800 44px/1 var(--ar-cap); font-style: normal; color: rgba(255, 255, 255, 0.18); }
.ar-on .ar .ar-six .slot.full { border: 0; background: none; cursor: pointer; filter: drop-shadow(0 16px 12px rgba(0, 0, 0, 0.6)); animation: ar-big-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); transition: transform 0.12s ease-out; }
.ar-on .ar .ar-six .slot.full:hover, .ar-on .ar .ar-six .slot.full:focus-visible { transform: translateY(-6px); outline: none; }
.ar-on .ar .ar-six .slot canvas, .ar-on .ar .ar-six .slot img { display: block; image-rendering: pixelated; }
.ar-on .ar .ar-six .slot small { font: 700 13px/1 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-cream); text-shadow: 0 1px 4px #000; white-space: nowrap; }
.ar-on .ar .ar-six-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 19px; color: var(--ar-dim); }
.ar-on .ar .ar-six-n { font: 800 34px/1 var(--ar-cap); color: var(--ar-gold2); white-space: nowrap; }
.ar-on .ar .ar-six-names { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; counter-reset: six; }
.ar-on .ar .ar-six-names:empty { display: none; }
.ar-on .ar .ar-six-names li { counter-increment: six; display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); min-width: 0; }
.ar-on .ar .ar-six-names li b { font-size: 16px; color: var(--ar-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-six-names li small { font-size: 13px; color: var(--ar-dim); }
.ar-on .ar .ar-six-rivals { display: flex; flex-wrap: wrap; gap: 4px; }
.ar-on .ar .ar-six-rivals span { display: grid; background: #0a0710; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-six-rivals canvas, .ar-on .ar .ar-six-rivals img { display: block; image-rendering: pixelated; }
.ar-on .ar-page.narrower .ar-six .slot { width: 96px; height: 130px; }
.ar-on .ar-page.narrower .ar-six .slot canvas, .ar-on .ar-page.narrower .ar-six .slot img { width: 92px; height: 92px; }
.ar-on.ar-phone .ar .ar-six { position: static; padding: 14px 0 20px; gap: 6px; }
.ar-on.ar-phone .ar .ar-six .slot { width: 58px; height: 84px; }
.ar-on.ar-phone .ar .ar-six .slot i { font-size: 22px; }
.ar-on.ar-phone .ar .ar-six .slot small { display: none; }
.ar-on .ar .ar-day .pays .ar-btn { padding: 0 14px; font-size: 17px; letter-spacing: 0.1em; }

/* ---- Practice, 6 v 6 (src/ui/screens/practice.js mountArena): every champion on the left, the two rosters facing
   each other in the middle, what it is, the tier and Start on the right ---- */
.ar-on .ar .ar-prac { grid-template-columns: 470px minmax(0, 1fr) 400px; }
.ar-on .ar .ar-prac .ar-stiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ar-on .ar .ar-prac .ar-itile { height: 124px; }
.ar-on .ar .ar-prac .ar-itile .pic, .ar-on .ar .ar-prac .ar-itile .pic canvas, .ar-on .ar .ar-prac .ar-itile .pic img { width: 68px; height: 68px; }
.ar-on .ar .ar-prac .ar-itile.sel.s0 { border: 2px solid #5aa7ff; background: linear-gradient(180deg, rgba(90, 167, 255, 0.24), rgba(22, 16, 30, 0.96)); box-shadow: 0 0 18px rgba(90, 167, 255, 0.25); }
.ar-on .ar .ar-prac .ar-itile.sel.s1 { border: 2px solid #ff6b6b; background: linear-gradient(180deg, rgba(255, 107, 107, 0.22), rgba(22, 16, 30, 0.96)); box-shadow: 0 0 18px rgba(255, 107, 107, 0.25); }
.ar-on .ar .ar-prac .ar-itile.sel.s0 small { color: #9fd0ff; } .ar-on .ar .ar-prac .ar-itile.sel.s1 small { color: #ffa0a0; }
.ar-on .ar .ar-prac-list .ar-seg { margin: 0; }
.ar-on .ar .ar-prac-list .ar-seg > button { flex: 1; }
.ar-on .ar .ar-prac-list .ar-seg > button.on.s0 { color: #9fd0ff; border-bottom-color: #5aa7ff; }
.ar-on .ar .ar-prac-list .ar-seg > button.on.s1 { color: #ffa0a0; border-bottom-color: #ff6b6b; }
.ar-on .ar .ar-prac-stage { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.ar-on .ar .ar-prac-stage .vs { align-self: center; font: 800 46px/1 var(--ar-cap); font-style: normal; letter-spacing: 0.1em; color: var(--ar-gold2); text-shadow: 0 3px 14px #000; }
.ar-on .ar .ar-prac-team { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; background: rgba(13, 10, 20, 0.86); border: 1px solid var(--ar-line); border-top: 4px solid #5aa7ff; }
.ar-on .ar .ar-prac-team.s1 { border-top-color: #ff6b6b; }
.ar-on .ar .ar-prac-team.on { box-shadow: 0 0 26px rgba(209, 171, 91, 0.18); border-color: var(--ar-line2); border-top-color: #5aa7ff; }
.ar-on .ar .ar-prac-team.s1.on { border-top-color: #ff6b6b; }
.ar-on .ar .ar-prac-team .hd { display: flex; align-items: center; gap: 12px; }
.ar-on .ar .ar-prac-team .hd b { font: 700 20px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: #9fd0ff; }
.ar-on .ar .ar-prac-team.s1 .hd b { color: #ffa0a0; }
.ar-on .ar .ar-prac-team .hd em { font: 800 20px/1 var(--ar-cap); font-style: normal; color: var(--ar-cream); }
.ar-on .ar .ar-prac-team .hd .grow { flex: 1; }
.ar-on .ar .ar-prac-team .hd .ar-btn { height: 36px; padding: 0 12px; font-size: 13px; letter-spacing: 0.1em; clip-path: none; }
.ar-on .ar .ar-prac-team .slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ar-on .ar .ar-prac-team .slot { position: relative; min-height: 176px; display: grid; place-items: center; background: rgba(8, 5, 14, 0.5); border: 2px dashed var(--ar-edge); color: var(--ar-mute); cursor: pointer; }
.ar-on .ar .ar-prac-team .slot i { font: 300 40px/1 var(--ar-text); font-style: normal; }
.ar-on .ar .ar-prac-team .slot.full { border: 1px solid var(--ar-edge); background: linear-gradient(180deg, rgba(38, 29, 56, 0.92), rgba(16, 12, 26, 0.96)); cursor: default; }
.ar-on .ar .ar-prac-team .slot .body { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 6px 4px 8px; background: none; border: 0; color: inherit; cursor: pointer; }
.ar-on .ar .ar-prac-team .slot .body:hover, .ar-on .ar .ar-prac-team .slot .body:focus-visible { background: rgba(209, 171, 91, 0.1); outline: none; }
.ar-on .ar .ar-prac-team .slot canvas, .ar-on .ar .ar-prac-team .slot img { display: block; image-rendering: pixelated; }
.ar-on .ar .ar-prac-team .slot .body > canvas, .ar-on .ar .ar-prac-team .slot .body > img { max-width: 100%; height: auto; }
.ar-on .ar .ar-prac-team .slot small { max-width: 100%; font: 700 13px/1 var(--ar-cap); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ar-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-prac-team .slot .gear { display: flex; align-items: center; justify-content: center; gap: 2px; min-height: 24px; padding: 0 6px; font-size: 13px; color: var(--ar-mute); border: 1px dashed var(--ar-edge); }
.ar-on .ar .ar-prac-team .slot .gear.has { border-style: solid; border-color: var(--ar-line2); }
.ar-on .ar .ar-prac-team .slot .x { position: absolute; top: 2px; right: 2px; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; font: 400 20px/1 var(--ar-text); color: var(--ar-dim); background: rgba(8, 5, 14, 0.8); border: 1px solid var(--ar-edge); cursor: pointer; }
.ar-on .ar .ar-prac-team .slot .x:hover, .ar-on .ar .ar-prac-team .slot .x:focus-visible { color: #fff; border-color: var(--ar-red); outline: none; }
.ar-on .ar .ar-prac-panel .ar-seg { margin: 0; }
.ar-on .ar .ar-prac-panel .ar-seg > button { flex: 1; }
.ar-on .ar .ar-prac-panel .gives { font-size: 18px; }
.ar-on .ar-page.narrower .ar-prac { grid-template-columns: 340px minmax(0, 1fr) 320px; }
.ar-on .ar-page.narrower .ar-prac .ar-stiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* (a phone: the strip is one row that slides. Practice's own four columns (three when narrow) stayed in force there and, with no room of
   their own in a sliding row, closed to nothing: the first four champions were slivers. 18 Nov, from your picture) */
.ar-on.ar-phone .ar .ar-prac .ar-stiles, .ar-on.ar-phone .ar-page.narrower .ar-prac .ar-stiles { grid-template-columns: none; }
.ar-on .ar-page.narrower .ar-prac-team .slot { min-height: 140px; }
.ar-on.ar-phone .ar .ar-prac-stage { gap: 8px; }
.ar-on.ar-phone .ar .ar-prac-team { padding: 10px; }
.ar-on.ar-phone .ar .ar-prac-team .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ar-on.ar-phone .ar .ar-prac-team .slot { min-height: 112px; }
.ar-on.ar-phone .ar .ar-prac-stage .vs { font-size: 26px; }
.ar-on.ar-phone .ar .ar-prac .ar-itile { height: 124px; }
/* ---- the League (src/ui/screens/league.js arRender) ---- */
.ar-on .ar .ar-lg { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 24px; height: 100%; }
.ar-on .ar .ar-lg-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding-right: 6px; }
.ar-on .ar .ar-lg-row { flex: none; display: grid; grid-template-columns: 62px 50px 44px minmax(0, 1fr) auto 90px; align-items: center; gap: 12px; min-height: 54px; padding: 4px 14px 4px 10px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); text-align: left; color: inherit; font: inherit; }
.ar-on .ar button.ar-lg-row { cursor: pointer; transition: transform 0.12s ease-out, border-color 0.12s; }
.ar-on .ar button.ar-lg-row:hover, .ar-on .ar button.ar-lg-row:focus-visible { border-color: var(--ar-line2); transform: translateX(3px); outline: none; }
.ar-on .ar .ar-lg-row.you { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); }
.ar-on .ar .ar-lg-row em { font: 800 19px/1 var(--ar-cap); font-style: normal; color: var(--ar-dim); }
.ar-on .ar .ar-lg-row.top em { color: var(--ar-gold2); }
.ar-on .ar .ar-lg-row .mv { font-size: 14px; color: var(--ar-mute); text-align: center; }
.ar-on .ar .ar-lg-row .mv.up { color: var(--ar-green); } .ar-on .ar .ar-lg-row .mv.down { color: #ff8f8f; }
.ar-on .ar .ar-lg-row .face { width: 42px; height: 42px; display: grid; place-items: center; }
.ar-on .ar .ar-lg-row .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-on .ar .ar-lg-row .tx b { font-size: 18px; color: var(--ar-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-lg-row .tx small { font-size: 14px; color: var(--ar-dim); display: flex; gap: 10px; }
.ar-on .ar .ar-lg-row .tx small .lead { color: var(--ar-gold2); }
.ar-on .ar .ar-lg-row .mains { display: flex; gap: 2px; }
.ar-on .ar .ar-lg-row .mains canvas, .ar-on .ar .ar-lg-row .mains img { image-rendering: pixelated; }
.ar-on .ar .ar-lg-row strong { text-align: right; font: 800 21px/1 var(--ar-cap); color: var(--ar-cream); font-variant-numeric: tabular-nums; }
.ar-on .ar .ar-lg-list .gap { text-align: center; color: var(--ar-mute); letter-spacing: 0.4em; }
.ar-on .ar .ar-lg-panel h2 { font-size: 46px; }
.ar-on .ar .ar-lg-rating { display: flex; align-items: baseline; gap: 10px; }
.ar-on .ar .ar-lg-rating b { font: 800 34px/1 var(--ar-cap); color: var(--ar-gold2); }
.ar-on .ar .ar-lg-rating span { font-size: 18px; color: var(--ar-dim); }
.ar-on .ar .ar-lg-pays { display: flex; flex-direction: column; gap: 4px; }
.ar-on .ar .ar-lg-pays .row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); font-size: 17px; color: var(--ar-cream); }
.ar-on .ar .ar-lg-pays .row > span:first-child { flex: 1; min-width: 0; }
.ar-on .ar .ar-lg-pays .row b { color: var(--ar-gold2); }
.ar-on .ar .ar-lg-pays .row.got { opacity: 0.6; }
.ar-on .ar .ar-lg-pays .row i { font-style: normal; color: var(--ar-green); }
.ar-on .ar .ar-lg-pays .row img, .ar-on .ar .ar-lg-pays .row canvas { image-rendering: pixelated; }
.ar-on .ar-page.narrower .ar-lg { grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; }
.ar-on .ar-page.narrower .ar-lg-row { grid-template-columns: 54px 44px 40px minmax(0, 1fr) 80px; }
.ar-on .ar-page.narrower .ar-lg-row .mains { display: none; }
.ar-on.ar-phone .ar .ar-lg { display: flex; flex-direction: column-reverse; height: auto; gap: 12px; }
.ar-on.ar-phone .ar .ar-lg-list { flex: none; max-height: 420px; }
.ar-on.ar-phone .ar .ar-lg-row { grid-template-columns: 46px 36px 36px minmax(0, 1fr) 66px; gap: 6px; padding: 4px 8px; }
.ar-on.ar-phone .ar .ar-lg-row .mains { display: none; }
.ar-on.ar-phone .ar .ar-lg-panel h2 { font-size: 44px; }

/* ---- Arena Rush: starting a game (src/ui/screens/rush.js arLobby) ---- */
.ar-on .ar .ar-rush-lobby { height: 100%; display: grid; grid-template-columns: 520px minmax(0, 1fr); gap: 24px; }
.ar-on .ar .ar-rush-about .gives { font-size: 18px; }
.ar-on .ar .ar-rush-size { flex: none; display: flex; flex-direction: column; gap: 8px; }
.ar-on .ar .ar-rush-size .ar-seg { margin: 0; }
.ar-on .ar .ar-rush-size small { font-size: 15px; color: var(--ar-mute); }
.ar-on .ar .ar-rush-modes { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-content: center; grid-auto-rows: minmax(480px, auto); }
.ar-on .ar .ar-rush-modes .ar-way { align-items: flex-start; }
.ar-on .ar .ar-rush-modes .ar-way .ico { width: 88px; height: 88px; display: grid; place-items: center; background: #0a0710; border: 1px solid var(--ar-line2); margin-bottom: 6px; }
.ar-on .ar .ar-rush-modes .ar-way .ico img, .ar-on .ar .ar-rush-modes .ar-way .ico canvas { width: 64px; height: 64px; image-rendering: pixelated; }
.ar-on .ar .ar-rush-modes .ar-way .pays { width: 100%; }
.ar-on .ar .ar-head .ar-rush-new { height: 44px; margin-right: 12px; }
.ar-on .ar-page.narrower .ar-rush-lobby { grid-template-columns: 380px minmax(0, 1fr); gap: 14px; }
.ar-on .ar-page.narrower .ar-rush-modes { gap: 12px; grid-auto-rows: minmax(380px, auto); }
.ar-on.ar-phone .ar .ar-rush-lobby, .ar-on.ar-phone .ar .ar-rush-modes { display: flex; flex-direction: column; height: auto; gap: 12px; }

/* ---- the game setup (src/ui/screens/setup.js arenaSetup): the game, the arena as pictures, its rules and Start ---- */
.ar-on .ar .ar-setup3 { grid-template-columns: 520px minmax(0, 1fr) 470px; }
.ar-on .ar .ar-optbox { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ar-on .ar .ar-opts { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.ar-on .ar .ar-opts > button { min-height: 48px; padding: 6px 8px; font: 700 15px/1.15 var(--ar-cap); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ar-dim); background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); cursor: pointer; }
.ar-on .ar .ar-opts > button:hover, .ar-on .ar .ar-opts > button:focus-visible { color: var(--ar-cream); border-color: var(--ar-line2); outline: none; }
.ar-on .ar .ar-opts > button.on { color: var(--ar-gold2); border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); }
.ar-on .ar .ar-opt-line { margin: 0; min-height: 44px; font-size: 16px; line-height: 1.35; color: var(--ar-dim); }
.ar-on .ar .ar-arenas { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; padding-right: 6px; }
.ar-on .ar .ar-arena { display: flex; flex-direction: column; gap: 5px; padding: 6px 6px 10px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); text-align: left; cursor: pointer; transition: transform 0.12s ease-out, border-color 0.12s; }
.ar-on .ar .ar-arena:hover, .ar-on .ar .ar-arena:focus-visible { border-color: var(--ar-line2); transform: translateY(-3px); outline: none; }
.ar-on .ar .ar-arena.sel { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); box-shadow: 0 0 22px rgba(209, 171, 91, 0.25); }
.ar-on .ar .ar-arena .pic { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0710; }
.ar-on .ar .ar-arena .pic img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.ar-on .ar .ar-arena .pic i { font: 800 44px/1 var(--ar-cap); font-style: normal; color: var(--ar-mute); }
.ar-on .ar .ar-arena b { padding: 0 4px; font: 700 17px/1.1 var(--ar-cap); letter-spacing: 0.05em; color: var(--ar-cream); }
.ar-on .ar .ar-arena.sel b { color: var(--ar-gold2); }
.ar-on .ar .ar-arena small { padding: 0 4px; font-size: 14px; line-height: 1.3; color: var(--ar-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-on .ar .ar-sw { flex: none; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); text-align: left; cursor: pointer; }
.ar-on .ar .ar-sw:hover, .ar-on .ar .ar-sw:focus-visible { border-color: var(--ar-line2); outline: none; }
.ar-on .ar .ar-sw .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-on .ar .ar-sw .tx b { font-size: 18px; font-weight: 600; color: var(--ar-cream); }
.ar-on .ar .ar-sw .tx small { font-size: 14px; line-height: 1.3; color: var(--ar-dim); }
.ar-on .ar .ar-sw > i { position: relative; flex: none; width: 56px; height: 28px; background: #2a2140; border: 1px solid var(--ar-edge); transition: background 0.15s; }
.ar-on .ar .ar-sw > i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 20px; background: #8f879c; transition: transform 0.15s, background 0.15s; }
.ar-on .ar .ar-sw.on { border-color: var(--ar-line2); }
.ar-on .ar .ar-sw.on > i { background: rgba(209, 171, 91, 0.3); border-color: var(--ar-gold); }
.ar-on .ar .ar-sw.on > i::after { transform: translateX(26px); background: var(--ar-gold2); }
.ar-on .ar .ar-setup-rules .ar-item-mid { gap: 6px; }
.ar-on .ar .ar-setup-rules .note.gold, .ar-on .ar .ar-setup-rules .ar-item-mid > p { margin: 4px 0 0; font-size: 16px; color: var(--ar-gold2); }
.ar-on .ar-page.narrower .ar-setup3 { grid-template-columns: 400px minmax(0, 1fr) 380px; }
.ar-on .ar-page.narrower .ar-arenas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ar-on.ar-phone .ar .ar-arenas { flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 420px; }
.ar-on.ar-phone .ar .ar-opts { grid-template-columns: repeat(min(var(--n), 2), minmax(0, 1fr)); }
@media (prefers-reduced-motion: reduce) { .ar-on .ar .ar-arena, .ar-on .ar .ar-sw > i, .ar-on .ar .ar-sw > i::after { transition: none; } }
.ar-on .ar .ar-opts > button { text-align: center; }

/* ---- the Calendar (src/ui/screens/calendar.js): today and what's coming, the month, the day chosen ---- */
.ar-on .ar .ar-cal { grid-template-columns: 500px minmax(0, 1fr) 460px; }
.ar-on .ar .ar-cal h2 { font-size: 34px; text-transform: capitalize; }
html[data-theme].ar-on .ar .ar-cal .nx-ev-pic { flex: none; display: inline-grid; place-items: center; width: 30px; height: 24px; border-radius: 0; background-size: cover; background-position: center; border: 1px solid var(--ar-line2); background-color: #0a0710; box-shadow: none; }
html[data-theme].ar-on .ar .ar-cal .nx-ev-pic.big { width: 84px; height: 62px; }
.ar-on .ar .ar-cal .nx-ev-pic img, .ar-on .ar .ar-cal .nx-ev-pic canvas { width: 70%; height: 70%; image-rendering: pixelated; }
.ar-on .ar .ar-ev { flex: none; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); border-left: 4px solid var(--ar-line2); }
.ar-on .ar .ar-ev.on { border-color: var(--ar-gold); background: rgba(40, 29, 14, 0.9); }
.ar-on .ar .ar-ev.ev-dragon { border-left-color: #ff7a3c; } .ar-on .ar .ar-ev.ev-hazard { border-left-color: #c06bff; } .ar-on .ar .ar-ev.ev-cups { border-left-color: #5aa7ff; }
.ar-on .ar .ar-ev .tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-on .ar .ar-ev .tx b { font: 700 20px/1.1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); }
.ar-on .ar .ar-ev.on .tx b { color: var(--ar-gold2); }
.ar-on .ar .ar-ev .tx small { font-size: 15px; line-height: 1.3; color: var(--ar-dim); }
.ar-on .ar .ar-ev .tx em { font-style: normal; font-size: 14px; color: var(--ar-gold2); }
.ar-on .ar .ar-ev .tx em:empty { display: none; }
.ar-on .ar .ar-ev .ar-btn { height: 40px; padding: 0 14px; font-size: 14px; letter-spacing: 0.1em; clip-path: none; }
.ar-on .ar .ar-cal-today .ar-rows { font-size: 17px; margin: 6px 0 2px; }
.ar-on .ar .ar-cal-next { flex: none; display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 8px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); text-align: left; cursor: pointer; }
.ar-on .ar .ar-cal-next:hover, .ar-on .ar .ar-cal-next:focus-visible { border-color: var(--ar-line2); outline: none; }
.ar-on .ar .ar-cal-next .when { display: flex; flex-direction: column; gap: 2px; }
.ar-on .ar .ar-cal-next .when b { font-size: 16px; color: var(--ar-cream); text-transform: capitalize; }
.ar-on .ar .ar-cal-next .when small { font-size: 13px; color: var(--ar-gold2); }
.ar-on .ar .ar-cal-next .what { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.ar-on .ar .ar-cal-next .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ar-dim); }
.ar-on .ar .ar-cal-month { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 14px; }
.ar-on .ar .ar-cal-month .top { flex: none; display: flex; align-items: center; gap: 14px; }
.ar-on .ar .ar-cal-month .top b { min-width: 300px; text-align: center; font: 800 32px/1 var(--ar-cap); letter-spacing: 0.06em; text-transform: capitalize; color: var(--ar-gold2); }
.ar-on .ar .ar-cal-month .top .grow { flex: 1; }
.ar-on .ar .ar-cal-month .nav { width: 48px; height: 48px; display: grid; place-items: center; padding: 0 0 4px; font: 400 30px/1 var(--ar-text); color: var(--ar-cream); background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-line2); cursor: pointer; }
.ar-on .ar .ar-cal-month .nav:disabled { opacity: 0.3; cursor: default; }
.ar-on .ar .ar-cal-month .nav:not(:disabled):hover { border-color: var(--ar-gold); }
.ar-on .ar .ar-cal-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 26px; grid-auto-rows: minmax(0, 1fr); gap: 6px; }
.ar-on .ar .ar-cal-grid .wd { align-self: center; text-align: center; font: 700 13px/1 var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-mute); }
.ar-on .ar .ar-cal-grid .day { position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 9px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); text-align: left; cursor: pointer; overflow: hidden; }
.ar-on .ar .ar-cal-grid .day.blank { visibility: hidden; }
.ar-on .ar .ar-cal-grid .day .n { font: 800 22px/1 var(--ar-cap); color: var(--ar-cream); }
.ar-on .ar .ar-cal-grid .day.past { opacity: 0.45; }
.ar-on .ar .ar-cal-grid .day.has { background: rgba(38, 29, 56, 0.9); border-color: var(--ar-line); }
.ar-on .ar .ar-cal-grid .day em { position: absolute; top: 9px; right: 9px; font: 700 11px/1 var(--ar-cap); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: #1a1309; background: var(--ar-gold); padding: 3px 6px; }
.ar-on .ar .ar-cal-grid .day.today { border: 2px solid var(--ar-gold); opacity: 1; }
.ar-on .ar .ar-cal-grid .day.sel { background: rgba(40, 29, 14, 0.96); box-shadow: 0 0 20px rgba(209, 171, 91, 0.3); border-color: var(--ar-gold2); }
.ar-on .ar .ar-cal-grid .day:hover, .ar-on .ar .ar-cal-grid .day:focus-visible { border-color: var(--ar-line2); outline: none; }
.ar-on .ar .ar-cal-grid .evs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
html[data-theme].ar-on .ar .ar-cal-grid .evs .nx-ev-pic { width: 44px; height: 32px; }
.ar-on .ar .ar-cal-grid .evs small { flex: 1 1 100%; font: 700 12px/1.15 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-cal-month .legend { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 15px; color: var(--ar-dim); }
.ar-on .ar .ar-cal-month .legend span { display: inline-flex; align-items: center; gap: 6px; }
.ar-on .ar .ar-cal-month .legend small { margin-left: auto; font-size: 13px; color: var(--ar-mute); }
.ar-on .ar-page.narrower .ar-cal { grid-template-columns: 370px minmax(0, 1fr) 340px; }
.ar-on .ar-page.narrower .ar-cal-month .top b { min-width: 200px; font-size: 24px; }
.ar-on .ar-page.narrower .ar-cal-grid .evs .nx-ev-pic { width: 22px; height: 18px; }
/* (the picture's column is as wide as the picture, whatever size it is drawn at: with a fixed 60 px a picture drawn
   at the computer's 84 lay over the event's words. 18 Nov, from your picture) */
.ar-on .ar-page.narrower .ar-ev { grid-template-columns: auto minmax(0, 1fr); }
.ar-on .ar-page.narrower .ar-ev .nx-ev-pic.big { width: 60px; height: 46px; }
.ar-on .ar-page.narrower .ar-ev .ar-btn { grid-column: 1 / -1; }
.ar-on.ar-phone .ar .ar-cal-month { padding: 12px 10px; }
.ar-on.ar-phone .ar .ar-cal-month .top b { min-width: 0; flex: 1; font-size: 20px; }
.ar-on.ar-phone .ar .ar-cal-month .top .grow { display: none; }
.ar-on.ar-phone .ar .ar-cal-grid { flex: none; grid-auto-rows: 62px; gap: 3px; }
.ar-on.ar-phone .ar .ar-cal-grid .day { padding: 4px; }
.ar-on.ar-phone .ar .ar-cal-grid .day .n { font-size: 15px; }
.ar-on.ar-phone .ar .ar-cal-grid .day em { display: none; }
.ar-on.ar-phone .ar .ar-cal-grid .evs .nx-ev-pic { width: 18px; height: 14px; }
.ar-on.ar-phone .ar .ar-cal h2 { font-size: 24px; }
.ar-on.ar-phone .ar .ar-ev { grid-template-columns: 60px minmax(0, 1fr); }
.ar-on.ar-phone .ar .ar-ev .nx-ev-pic.big { width: 60px; height: 46px; }
.ar-on.ar-phone .ar .ar-ev .ar-btn { grid-column: 1 / -1; }

/* Practice with a Custom game's options: the arena's picture beside its choice, the rules as switches */
.ar-on .ar .ar-prac { grid-template-columns: 450px minmax(0, 1fr) 440px; }
.ar-on .ar .ar-prac-panel .ar-item-mid { gap: 6px; }
.ar-on .ar .ar-prac-panel .ar-item-mid > .ar-kick { margin-top: 10px; }
.ar-on .ar .ar-prac-arena { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; align-items: start; }
.ar-on .ar .ar-prac-arena img { width: 132px; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; border: 1px solid var(--ar-line2); }
.ar-on .ar .ar-prac-arena .tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ar-on .ar .ar-prac-arena small { font-size: 14px; line-height: 1.3; color: var(--ar-dim); }
.ar-on .ar .ar-prac-panel .ar-sw { padding: 8px 10px; }
.ar-on .ar .ar-prac-panel .ar-sw .tx b { font-size: 16px; }
.ar-on .ar .ar-prac-panel .ar-sw .tx small { font-size: 13px; }
.ar-on .ar .ar-play-alt.one .ar-btn { width: 100%; }
.ar-on .ar-page.narrower .ar-prac { grid-template-columns: 330px minmax(0, 1fr) 350px; }

/* the Calendar's day in full: how an event works as numbered steps, what appears with its picture and its numbers */
.ar-on .ar .ar-cal { grid-template-columns: 440px minmax(0, 1fr) 560px; }
.ar-on .ar .ar-cal-day .ar-item-mid { gap: 8px; }
.ar-on .ar .ar-cal-day .ar-item-mid > .ar-kick { margin-top: 10px; }
.ar-on .ar .ar-cal-day .note { font-size: 16px; line-height: 1.4; color: var(--ar-dim); }
.ar-on .ar .ar-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 6px; }
.ar-on .ar .ar-steps li { counter-increment: st; position: relative; padding-left: 38px; min-height: 28px; font-size: 17px; line-height: 1.35; color: var(--ar-cream); }
.ar-on .ar .ar-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; font: 800 14px/1 var(--ar-cap); color: #1a1309; background: var(--ar-gold); }
.ar-on .ar .ar-spec { flex: none; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); border-left: 4px solid var(--ar-line2); }
.ar-on .ar .ar-spec.dg-drake { border-left-color: #ff7a3c; } .ar-on .ar .ar-spec.dg-tortoise { border-left-color: #6fbf73; } .ar-on .ar .ar-spec.dg-spirit { border-left-color: #b98aff; }
.ar-on .ar .ar-spec .pic { width: 104px; height: 104px; display: grid; place-items: center; background: #0a0710; border: 1px solid var(--ar-edge); overflow: hidden; }
.ar-on .ar .ar-spec .pic img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.ar-on .ar .ar-spec .pic.board { background-size: cover; background-position: center; }
.ar-on .ar .ar-spec .tx { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ar-on .ar .ar-spec .tx > b { font: 700 20px/1.1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-gold2); }
.ar-on .ar .ar-spec .tx > small { font-size: 15px; line-height: 1.3; color: var(--ar-dim); }
.ar-on .ar .ar-rows.tiny { margin: 4px 0 0; font-size: 14px; gap: 4px 12px; align-items: start; }
.ar-on .ar .ar-rows.tiny dt { color: var(--ar-mute); }
.ar-on .ar .ar-rows.tiny dd { line-height: 1.3; }
.ar-on .ar .ar-spec.line { grid-template-columns: 40px minmax(0, 1fr); align-items: center; padding: 8px 10px; }
.ar-on .ar .ar-spec .sq, .ar-on .ar .ar-mini i { display: grid; place-items: center; font: 800 16px/1 var(--ar-cap); font-style: normal; color: #fff; background: #2a2140; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-spec .sq { width: 40px; height: 40px; }
.ar-on .ar .ar-mini { display: grid; grid-template-columns: repeat(3, 30px); grid-auto-rows: 30px; gap: 3px; margin-top: 4px; }
.ar-on .ar .ar-mini i { font-size: 13px; }
.ar-on .ar .t-lava { background: #b8431c !important; border-color: #ff9a4a !important; }
.ar-on .ar .t-holy { background: #a8892a !important; border-color: #e2c27c !important; }
.ar-on .ar .t-tower { background: #4a5a78 !important; border-color: #9fb6e0 !important; }
.ar-on .ar .t-fog { background: #5a5470 !important; border-color: #c9c1d6 !important; }
.ar-on .ar .ar-spec.line.t-lava, .ar-on .ar .ar-spec.line.t-holy, .ar-on .ar .ar-spec.line.t-tower, .ar-on .ar .ar-spec.line.t-fog { background: rgba(13, 10, 20, 0.6) !important; border-color: var(--ar-edge) !important; }
.ar-on .ar .ar-spec .sq.trap-spike { background: #6a2a2a; border-color: #ff8f8f; } .ar-on .ar .ar-spec .sq.trap-snare { background: #3a4a2a; border-color: #b8e07a; }
.ar-on .ar-page.narrower .ar-cal { grid-template-columns: 320px minmax(0, 1fr) 420px; }
.ar-on .ar-page.narrower .ar-spec { grid-template-columns: 72px minmax(0, 1fr); }
.ar-on .ar-page.narrower .ar-spec .pic { width: 72px; height: 72px; }
.ar-on.ar-phone .ar .ar-spec { grid-template-columns: 72px minmax(0, 1fr); }
.ar-on.ar-phone .ar .ar-spec .pic { width: 72px; height: 72px; }

/* ---- Patrol: setting out (src/ui/screens/patrol.js arPlan) ---- */
.ar-on .ar .ar-pt { grid-template-columns: 500px minmax(0, 1fr) 440px; }
.ar-on .ar .ar-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-right: 4px; }
.ar-on .ar .ar-route { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 4px 4px 8px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); text-align: left; cursor: pointer; }
.ar-on .ar .ar-route:hover, .ar-on .ar .ar-route:focus-visible { border-color: var(--ar-line2); outline: none; }
.ar-on .ar .ar-route.sel { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); }
.ar-on .ar .ar-route .pic { display: block; aspect-ratio: 5 / 2; overflow: hidden; background: #0a0710; }
.ar-on .ar .ar-route .pic > * { display: block; width: 100% !important; height: 100% !important; object-fit: cover; image-rendering: pixelated; }
.ar-on .ar .ar-route .tx { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.ar-on .ar .ar-route .tx b { font: 700 15px/1.1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); }
.ar-on .ar .ar-route.sel .tx b { color: var(--ar-gold2); }
.ar-on .ar .ar-route .tx small { font-size: 13px; color: var(--ar-dim); }
.ar-on .ar .ar-route .pips { position: absolute; top: 8px; right: 8px; display: flex; gap: 3px; }
.ar-on .ar .ar-route .pips i { width: 10px; height: 4px; background: rgba(255, 255, 255, 0.25); }
.ar-on .ar .ar-route .pips i.on { background: var(--ar-gold2); }
.ar-on .ar .ar-pt .ar-itile.sel { border: 2px solid var(--ar-gold); }
.ar-on .ar .ar-pt .ar-itile.dim { opacity: 0.45; }
.ar-on .ar .ar-pt-stage { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.ar-on .ar .ar-pt-stage .ar-six { position: static; padding: 0; }
.ar-on .ar .ar-pt-under { display: flex; flex-direction: column; gap: 12px; }
.ar-on .ar .ar-pt-under > .ar-item-acts { justify-content: center; }
.ar-on .ar .ar-pt-under > .ar-item-acts .ar-btn { flex: none; min-width: 150px; }
.ar-on .ar .ar-pt-pets { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.ar-on .ar .ar-pt-pets .hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ar-on .ar .ar-pt-pets .hd em { font-style: normal; font-size: 15px; color: var(--ar-gold2); }
.ar-on .ar .ar-pt-pets .pet-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.ar-on .ar .ar-pt-panel dd.gold { color: var(--ar-gold2); }
.ar-on .ar-page.narrower .ar-pt { grid-template-columns: 380px minmax(0, 1fr) 340px; }
.ar-on.ar-phone .ar .ar-routes { grid-template-columns: 1fr; }
.ar-on.ar-phone .ar .ar-route { flex-direction: row; align-items: center; }
.ar-on.ar-phone .ar .ar-route .pic { width: 110px; flex: none; }

/* ---- the Campaign in Arena: the map fills the window, the strip lies over its sky, the story's box sits in the strip ---- */
.ar-on.ar-headed[data-ar-screen='campaign'] #app > .screen.win { top: 0 !important; bottom: 0 !important; padding: 0 !important; background: #0b0912 !important; }
.ar-on.ar-headed[data-ar-screen='campaign']:not(.ar-phone) #app > .screen.win > * { zoom: 1; max-width: none !important; width: 100% !important; margin: 0 !important; }
.ar-on.ar-headed[data-ar-screen='campaign'] .cm-view.fitted .cm-world { box-shadow: none; }
.ar-on.ar-headed[data-ar-screen='campaign'] .ar-strip { background: linear-gradient(180deg, rgba(8, 5, 14, 0.94) 0%, rgba(8, 5, 14, 0.78) 62%, rgba(8, 5, 14, 0)); border-bottom: 0; box-shadow: none; height: 132px; pointer-events: none; }
.ar-on.ar-headed[data-ar-screen='campaign'] .ar-strip .ar-head > * { pointer-events: auto; }
.ar-on .ar-strip .ar-strip-dock { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; margin: 0 18px; }
.ar-on .ar-strip .ar-strip-dock:empty { visibility: hidden; }
.ar-on .ar-strip .ar-strip-dock .cm-panel { width: min(900px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'kick foot acts' 'text foot acts'; align-items: center; gap: 2px 20px; padding: 8px 10px 8px 18px; background: rgba(13, 10, 20, 0.92); border: 1px solid var(--ar-line2); border-radius: 0; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5); }
.ar-on .ar-strip .ar-strip-dock .st-kick { font: 700 13px/1 var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-gold); }
.ar-on .ar-strip .ar-strip-dock .cm-text { margin: 0; font: 400 15px/1.3 var(--ar-text); color: var(--ar-dim); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-on .ar-strip .ar-strip-dock .cm-foot { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin: 0; text-align: right; }
.ar-on .ar-strip .ar-strip-dock .cm-nextname { font: 700 16px/1.1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); white-space: nowrap; }
.ar-on .ar-strip .ar-strip-dock .cm-total { font: 800 17px/1 var(--ar-cap); color: var(--ar-gold2); }
.ar-on .ar-strip .ar-strip-dock .st-acts { margin: 0; gap: 10px; display: flex; }
.ar-on .ar-strip .ar-strip-dock .cm-go, .ar-on .ar-strip .ar-strip-dock .st-go { height: 52px; padding: 0 30px; border: 1px solid #f0d9a0; border-radius: 0; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); color: #1a1309 !important; font: 800 18px/1 var(--ar-cap) !important; letter-spacing: 0.16em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); cursor: pointer; }
.ar-on .ar-strip .ar-strip-dock .st-link { font: 700 14px/1 var(--ar-cap); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ar-gold2); background: none; border: 0; cursor: pointer; }
.ar-on .ar-page.narrower .ar-strip-dock .cm-text, .ar-on.ar-headed .ar-strip.narrow .cm-text { display: none; }
@media (max-width: 1500px) { .ar-on .ar-strip .ar-strip-dock .cm-text { display: none; } .ar-on .ar-strip .ar-strip-dock .cm-panel { grid-template-areas: 'kick foot acts'; } }
.ar-on.ar-phone .ar-strip .ar-strip-dock { display: none; }
.ar-on.ar-headed[data-ar-screen='campaign']:not(.ar-phone) #app > .screen.win { padding-left: 0 !important; padding-right: 0 !important; }
.ar-on.ar-headed[data-ar-screen='campaign']:not(.ar-phone) .cm-chapter.high { margin-top: calc(var(--u) * 3.2); }

/* ---- the Gauntlet's run (arRun): floors, your six with their health, what comes next ---- */
.ar-on .ar .ar-run { grid-template-columns: 400px minmax(0, 1fr) 470px; }
.ar-on .ar .ar-floor { flex: none; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; margin-right: 4px; padding: 6px 12px 6px 8px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-floor em { width: 40px; height: 40px; display: grid; place-items: center; font: 800 19px/1 var(--ar-cap); font-style: normal; color: var(--ar-dim); background: #0a0710; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-floor .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-on .ar .ar-floor .tx b { font: 700 17px/1.1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .ar .ar-floor .tx small { font-size: 14px; color: var(--ar-dim); }
.ar-on .ar .ar-floor .pay { display: flex; align-items: center; gap: 5px; font-size: 15px; color: var(--ar-gold2); }
.ar-on .ar .ar-floor.done { opacity: 0.6; }
.ar-on .ar .ar-floor.done em { color: var(--ar-green); border-color: var(--ar-green); }
.ar-on .ar .ar-floor.now { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); }
.ar-on .ar .ar-floor.now em { color: #1a1309; background: var(--ar-gold); border-color: #f0d9a0; }
.ar-on .ar .ar-floor.boss em { color: #ff8f8f; border-color: #a83f3f; }
.ar-on .ar .ar-floor.boss.now em { color: #1a1309; }
.ar-on .ar .ar-run-stage { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.ar-on .ar .ar-run-stage .ar-six { position: static; padding: 0; }
.ar-on .ar .ar-run-stage .ar-six .slot { height: 206px; cursor: default; animation: none; }
.ar-on .ar .ar-run-stage .ar-six .slot.full:hover { transform: none; }
.ar-on .ar .ar-run-stage .ar-six .slot.fallen canvas, .ar-on .ar .ar-run-stage .ar-six .slot.fallen img { filter: grayscale(1) brightness(0.55); }
.ar-on .ar .ar-six .hp { position: relative; width: 86%; height: 20px; background: #0a0710; border: 1px solid var(--ar-edge); overflow: hidden; }
.ar-on .ar .ar-six .hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3f9a4a, #7fe08a); }
.ar-on .ar .ar-six .hp b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 12px/1 var(--ar-text); color: #fff; text-shadow: 0 1px 2px #000; }
.ar-on .ar .ar-six .hp.out b { color: #ff9f9f; }
.ar-on .ar .ar-run-carry { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.ar-on .ar .ar-run-carry .hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ar-on .ar .ar-run-carry .hd em { font-style: normal; font-size: 16px; color: var(--ar-gold2); }
.ar-on .ar .ar-run .relics { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-on .ar .ar-run-panel h2.boss { color: #ff8f8f; }
.ar-on .ar .ar-run-panel h2.lost { color: var(--ar-dim); }
.ar-on .ar .ar-run-rival { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 10px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-run-rival .face { width: 68px; height: 68px; display: grid; place-items: center; background: #0a0710; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-run-rival .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ar-on .ar .ar-run-rival .tx b { font: 700 20px/1.1 var(--ar-cap); color: var(--ar-cream); }
.ar-on .ar .ar-run-rival .tx small { font-size: 15px; color: var(--ar-dim); }
.ar-on .ar .ar-run-choices { display: flex; flex-direction: column; gap: 10px; }
.ar-on .ar .ar-choice { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-line2); text-align: left; cursor: pointer; transition: transform 0.12s ease-out, border-color 0.12s; }
.ar-on .ar .ar-choice:not(:disabled):hover, .ar-on .ar .ar-choice:not(:disabled):focus-visible { border-color: var(--ar-gold); transform: translateX(4px); background: rgba(40, 29, 14, 0.94); outline: none; }
.ar-on .ar .ar-choice:disabled { opacity: 0.45; cursor: default; }
.ar-on .ar .ar-choice .pic { width: 64px; height: 64px; display: grid; place-items: center; background: #0a0710; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-choice .pic img, .ar-on .ar .ar-choice .pic canvas { image-rendering: pixelated; }
.ar-on .ar .ar-choice .tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ar-on .ar .ar-choice .tx b { font: 700 20px/1.1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-gold2); }
.ar-on .ar .ar-choice .tx small { font-size: 16px; line-height: 1.3; color: var(--ar-cream); }
.ar-on .ar .ar-choice .tx em { font-style: normal; font-size: 14px; color: var(--ar-mute); }
.ar-on .ar-page.narrower .ar-run { grid-template-columns: 300px minmax(0, 1fr) 380px; }
.ar-on.ar-phone .ar .ar-run-floors { max-height: 220px; }
.ar-on.ar-phone .ar .ar-run-stage .ar-six .slot { height: 104px; }

/* ---- Patrol while it is out (arOut): the camp's battles, the road, the numbers and Call back ---- */
.ar-on .ar .ar-out { grid-template-columns: 420px minmax(0, 1fr) 450px; }
.ar-on .ar .ar-battle .faces { display: flex; gap: 2px; }
.ar-on .ar .ar-battle .faces canvas, .ar-on .ar .ar-battle .faces img { display: block; image-rendering: pixelated; }
.ar-on .ar .ar-out-stage { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.ar-on .ar .ar-out-scene { padding: 10px; overflow: hidden; }
.ar-on .ar .ar-out-scene > * { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.ar-on .ar .ar-out-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ar-on .ar .ar-out-nums .ar-pf-num { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px; padding: 8px 4px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); text-align: center; }
.ar-on .ar .ar-out-nums .ar-pf-num b { font: 800 26px/1 var(--ar-cap); color: var(--ar-cream); }
.ar-on .ar .ar-out-nums .ar-pf-num.gold b { color: var(--ar-gold2); }
.ar-on .ar .ar-out-nums .ar-pf-num small { font: 700 11px/1.15 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ar-mute); }
.ar-on .ar-page.narrower .ar-out { grid-template-columns: 320px minmax(0, 1fr) 360px; }
.ar-on.ar-phone .ar .ar-camp { max-height: 240px; }

/* ---- Patrol in full on the sheet (16 Nov, your call: the patrol in the new layout; ui/screens/patrol.js arOut, arSupplies,
   arPlaying, arReport): the road with the board's new champions, this hour's battle as a bar, the Supplies as rows in the
   page, the camp's battles played out down the left, and the report as a page: battles, what it paid and found, mastery ---- */
.ar-on .ar .ar-out-scene .patrol-stage-wrap { margin: 0; border: 0; box-shadow: none; }
.ar-on .ar .ar-out-scene canvas.patrol-stage { height: auto; }
.ar-on .ar .ar-out-now, .ar-on .ar .ar-rp-count, .ar-on .ar .ar-rp-level { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.ar-on .ar .ar-out-now .hd, .ar-on .ar .ar-rp-count .hd, .ar-on .ar .ar-rp-level .hd { display: flex; align-items: baseline; gap: 12px; }
.ar-on .ar .ar-out-now .hd b, .ar-on .ar .ar-rp-count .hd b, .ar-on .ar .ar-rp-level .hd b { font: 700 19px/1.1 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-cream); }
.ar-on .ar .ar-out-now .hd em, .ar-on .ar .ar-rp-count .hd em, .ar-on .ar .ar-rp-level .hd em { margin-left: auto; font: 700 18px/1 var(--ar-cap); font-style: normal; color: var(--ar-gold2); }
.ar-on .ar .ar-rp-level .hd small { font-size: 15px; color: var(--ar-mute); }
.ar-on .ar .ar-out-now.full .hd b { color: var(--ar-gold2); }
.ar-on .ar-rp-bar { display: block; height: 10px; background: #0a0710; border: 1px solid var(--ar-edge); overflow: hidden; }
.ar-on .ar-rp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #b48d3e, var(--ar-gold2)); transition: width 0.6s ease-out; }
.ar-on .ar-rp-bar.xp i { background: linear-gradient(90deg, #6a4ad0, #b99aff); }
/* the Supplies */
.ar-on .ar-sup { display: flex; flex-direction: column; gap: 8px; }
.ar-on .ar-sup-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); }
.ar-on .ar-sup-row .pic { width: 52px; height: 52px; display: grid; place-items: center; }
.ar-on .ar-sup-row .pic img, .ar-on .ar-sup-row .pic canvas { display: block; max-width: 100%; max-height: 100%; image-rendering: pixelated; }
.ar-on .ar-sup-row .tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-on .ar-sup-row .tx b { font: 700 17px/1.1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); }
.ar-on .ar-sup-row .tx small { font-size: 14px; line-height: 1.25; color: var(--ar-dim); }
.ar-on .ar-sup-row .steps { display: flex; gap: 4px; margin-top: 2px; }
.ar-on .ar-sup-row .steps i { min-width: 30px; padding: 2px 4px; font: 700 12px/1 var(--ar-cap); font-style: normal; text-align: center; color: var(--ar-mute); border-bottom: 3px solid var(--ar-edge); }
.ar-on .ar-sup-row .steps i.on { color: var(--ar-gold2); border-bottom-color: var(--ar-gold); }
.ar-on .ar-sup-row > em { font: 700 14px/1.1 var(--ar-cap); font-style: normal; letter-spacing: 0.06em; color: var(--ar-mute); text-align: right; max-width: 110px; }
.ar-on .ar-sup-row > em.ok { color: var(--ar-green); }
.ar-on .ar .ar-btn.ar-sup-buy { height: 40px; padding: 0 14px; font-size: 17px; letter-spacing: 0.04em; }
.ar-on .ar .ar-btn.ar-sup-buy span { display: inline-flex; align-items: center; gap: 6px; }
.ar-on .ar .ar-btn.ar-sup-buy:disabled { opacity: 0.45; }
/* a battle's row, once fought */
.ar-on .ar .ar-battle.won em { color: var(--ar-green); border-color: var(--ar-green); }
.ar-on .ar .ar-battle.lost em { color: var(--ar-red); border-color: var(--ar-red); }
.ar-on .ar .ar-battle.drawn em { color: var(--ar-gold2); border-color: var(--ar-line2); }
.ar-on .ar .ar-battle.won .tx small { color: var(--ar-green); }
.ar-on .ar .ar-battle.lost .tx small { color: var(--ar-red); }
/* the report */
.ar-on .ar .ar-rp.two { grid-template-columns: 420px minmax(0, 1fr); }
.ar-on .ar .ar-rp-stage { display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.ar-on .ar .ar-rp.two .ar-rp-stage { justify-content: center; }
.ar-on .ar .ar-rp-top { flex: none; min-height: 150px; padding: 16px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; background-color: #120e1a; background-size: cover; background-position: center; image-rendering: pixelated; position: relative; }
.ar-on .ar .ar-rp-top::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 7, 16, 0.1), rgba(10, 7, 16, 0.86)); }
.ar-on .ar .ar-rp-top > * { position: relative; }
.ar-on .ar .ar-rp-top b { font: 800 34px/1 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-cream); text-shadow: 0 2px 0 #000; }
.ar-on .ar .ar-rp-top span { font-size: 18px; color: var(--ar-gold2); text-shadow: 0 1px 0 #000; display: flex; align-items: baseline; gap: 12px; }
.ar-on .ar .ar-rp-top span small { font-size: 14px; color: var(--ar-dim); }
.ar-on .ar .ar-rp-tiles { flex: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ar-on .ar .ar-rp-tiles .ar-pf-num { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 118px; padding: 10px 6px; background: linear-gradient(180deg, rgba(30, 23, 44, 0.94), rgba(14, 10, 22, 0.96)); border: 1px solid var(--ar-line); text-align: center; }
.ar-on .ar .ar-rp-tiles .ar-pf-num img, .ar-on .ar .ar-rp-tiles .ar-pf-num canvas { image-rendering: pixelated; }
.ar-on .ar .ar-rp-tiles .ar-pf-num b { font: 800 28px/1 var(--ar-cap); color: var(--ar-cream); }
.ar-on .ar .ar-rp-tiles .ar-pf-num.gold b { color: var(--ar-gold2); }
.ar-on .ar .ar-rp-tiles .ar-pf-num small { font: 700 12px/1.15 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ar-mute); }
.ar-on .ar .ar-rp-found { flex: none; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.ar-on .ar .ar-rp-found .note { margin: 0; font-size: 16px; color: var(--ar-dim); }
.ar-on .ar .ar-rp-found .boost { margin: 0; font-size: 15px; color: var(--ar-gold2); }
.ar-on .ar .ar-rp-loots { display: flex; flex-wrap: wrap; gap: 12px; }
.ar-on .ar .ar-rp-loot { width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ar-on .ar .ar-rp-loot small { font-size: 13px; line-height: 1.2; color: var(--ar-cream); }
.ar-on .ar .ar-rp-gifts { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.ar-on .ar .ar-rp-gifts span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 14px; color: var(--ar-cream); background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-rp-gifts span b { font: 700 13px/1 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-gold); }
.ar-on .ar .ar-rp-gifts span img, .ar-on .ar .ar-rp-gifts span canvas { height: 16px; width: auto; }
.ar-on .ar .ar-rp-panel .ar-item-mid { display: flex; flex-direction: column; gap: 8px; }
.ar-on .ar .ar-rp-ms { flex: none; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 10px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-rp-ms.mvp { border-color: var(--ar-gold); background: rgba(40, 29, 14, 0.9); }
.ar-on .ar .ar-rp-ms .pic { width: 52px; height: 52px; display: grid; place-items: center; background: #0a0710; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-rp-ms .pic canvas, .ar-on .ar .ar-rp-ms .pic img { display: block; image-rendering: pixelated; }
.ar-on .ar .ar-rp-ms .tx { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ar-on .ar .ar-rp-ms .tx b { display: flex; align-items: center; gap: 8px; font: 700 17px/1.1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-cream); }
.ar-on .ar .ar-rp-ms .tx small { font-size: 15px; color: var(--ar-gold2); }
.ar-on .ar .ar-rp-ms .tag { padding: 2px 6px; font: 800 11px/1 var(--ar-cap); font-style: normal; letter-spacing: 0.1em; color: #1a1309; background: var(--ar-gold); }
.ar-on .ar .ar-rp-ms .tag.up { background: var(--ar-green); }
.ar-on .ar .ar-rp-ms .ar-rp-bar { height: 6px; }
.ar-on.ar-phone .ar .ar-rp-top { min-height: 110px; }
.ar-on.ar-phone .ar .ar-rp-top b { font-size: 26px; }
.ar-on.ar-phone .ar .ar-rp-stage { overflow: visible; min-height: auto; flex: none; height: auto; }
.ar-on.ar-phone .ar .ar-out-scene .ps-label { display: none; } /* (the bar under it says which battle) */
.ar-on.ar-phone .ar .ar-rp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ar-on.ar-phone .ar .ar-rp .ar-camp { order: 3; }

/* ---- Rush's game on the sheet (.ar-rushg, ui/screens/rush.js): the players and the last round down the left, your
   board with the bench beside it, the shop across the foot (the kit's plates, buttons and words: styles/arena-social.css) ---- */
.ar-on .ar .ar-rushg > .screen-body { height: 100%; padding: 0; margin: 0; overflow: visible; }
.ar-on .ar .ar-rushg .max { max-width: none; width: 100%; height: 100%; margin: 0; padding: 0; display: grid; grid-template-columns: 440px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; gap: 20px 24px; }
.ar-on .ar .ar-rushg .rush-grid { display: contents; }
.ar-on .ar .ar-rushg .rush-players { grid-area: 1 / 1 / 3 / 2; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: var(--ar-line2) transparent; }
.ar-on .ar .ar-rushg .rush-log { grid-area: 3 / 1 / 4 / 2; display: flex; flex-direction: column; gap: 6px; min-height: 150px; max-height: 300px; overflow-y: auto; font-size: 16px; }
.ar-on .ar .ar-rushg .rush-mid { grid-area: 1 / 2 / 2 / 3; min-width: 0; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px 28px; align-content: center; }
.ar-on .ar .ar-rushg .rush-shop { grid-area: 2 / 2 / 4 / 3; display: flex; flex-direction: column; gap: 12px; }
.ar-on .ar .ar-rushg .row { display: flex; align-items: center; gap: 10px; }
.ar-on .ar .ar-rushg .row.between { justify-content: space-between; }
.ar-on .ar .ar-rushg .row.wrap { flex-wrap: wrap; }
.ar-on .ar .ar-rushg .chip { padding: 5px 10px; font: 700 13px/1 var(--ar-cap); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ar-cream); background: #0a0710; border: 1px solid var(--ar-line2); border-radius: 0; }
.ar-on .ar .ar-rushg .chip.faded { opacity: 0.45; }
.ar-on .ar .ar-rushg .bar { position: relative; height: 20px; background: #0a0710; border: 1px solid var(--ar-edge); border-radius: 0; overflow: hidden; box-shadow: none; }
.ar-on .ar .ar-rushg .bar i { display: block; height: 100%; background: linear-gradient(90deg, #2f9a52, #5fd068); border-radius: 0; }
.ar-on .ar .ar-rushg .bar.xp i { background: linear-gradient(90deg, #b48d3e, var(--ar-gold2)); }
.ar-on .ar .ar-rushg .bar b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 13px/1 var(--ar-cap); color: #fff; text-shadow: 0 1px 0 #000; }
/* the players */
.ar-on .ar .ar-rushg .rush-player { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); box-shadow: none; }
.ar-on .ar .ar-rushg .rush-player b { font: 700 19px/1.1 var(--ar-cap); letter-spacing: 0.03em; color: #fff; }
.ar-on .ar .ar-rushg .rush-player.me { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); }
.ar-on .ar .ar-rushg .rush-player.me b { color: var(--ar-gold2); }
.ar-on .ar .ar-rushg .rush-player.vs { border-left: 5px solid var(--ar-red); box-shadow: none; }
.ar-on .ar .ar-rushg .rush-player.ally { border-left: 5px solid var(--ar-green); box-shadow: none; }
.ar-on .ar .ar-rushg .rush-player.out { opacity: 0.4; }
.ar-on .ar .ar-rushg .rush-team { margin-top: 6px; font: 700 13px/1 var(--ar-cap); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ar-mute); }
.ar-on .ar .ar-rushg .rush-aug-chip { padding: 3px 8px; font-size: 13px; }
.ar-on .ar .ar-rushg .rush-creeps { padding: 10px 12px; font-size: 16px; }
/* your board, and the bench beside it */
.ar-on .ar .ar-rushg .rush-mid > :nth-child(1) { grid-column: 1 / -1; }
.ar-on .ar .ar-rushg .rush-mid > :nth-child(1) > b, .ar-on .ar .ar-rushg .rush-side > .row > b, .ar-on .ar .ar-rushg .rush-stash > b { font: 700 15px/1 var(--ar-cap); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ar-gold); }
.ar-on .ar .ar-rushg .rush-board { grid-area: 2 / 1 / 3 / 2; align-self: center; display: grid; grid-template-columns: repeat(3, 168px); gap: 6px; padding: 8px; background: #0a0710; border: 1px solid var(--ar-line2); }
.ar-on .ar .ar-rushg .rush-sq { height: 168px; background: linear-gradient(180deg, #3a3048, #2a2238); border: 1px solid var(--ar-edge); border-top-color: #54476a; }
.ar-on .ar .ar-rushg .rush-sq.dk { background: linear-gradient(180deg, #30283e, #221b2e); }
.ar-on .ar .ar-rushg .rush-sq:hover { box-shadow: inset 0 0 0 2px var(--ar-gold); }
.ar-on .ar .ar-rushg .rush-sq.centre { box-shadow: inset 0 0 0 2px rgba(209, 171, 91, 0.6); }
.ar-on .ar .ar-rushg .rush-sq.centre::after { font-size: 18px; right: 6px; bottom: 4px; }
.ar-on .ar .ar-rushg .rush-unit { width: 140px; height: 140px; background: rgba(5, 3, 10, 0.55); border: 2px solid var(--ar-line2); }
.ar-on .ar .ar-rushg .rush-unit canvas, .ar-on .ar .ar-rushg .rush-unit img { width: 120px !important; height: 120px !important; image-rendering: pixelated; }
.ar-on .ar .ar-rushg .rush-unit.sel { border-color: var(--ar-gold2); box-shadow: 0 0 18px rgba(209, 171, 91, 0.55); }
.ar-on .ar .ar-rushg .rush-unit.t2 { border-color: #5aa8ff; } .ar-on .ar .ar-rushg .rush-unit.t3 { border-color: var(--ar-gold); }
.ar-on .ar .ar-rushg .rush-tier { left: 6px; top: 4px; font: 800 18px/1 var(--ar-cap); color: var(--ar-gold2); }
.ar-on .ar .ar-rushg .rush-item-on { left: 4px; bottom: 4px; width: 36px; height: 36px; background: #0a0710; border: 1px solid var(--ar-line2); }
.ar-on .ar .ar-rushg .rush-item-on canvas, .ar-on .ar .ar-rushg .rush-item-on img { width: 30px !important; height: 30px !important; }
.ar-on .ar .ar-rushg .rush-side { grid-area: 2 / 2 / 3 / 3; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.ar-on .ar .ar-rushg .rush-side > .muted { order: 9; font-size: 16px; color: var(--ar-mute); }
.ar-on .ar .ar-rushg .rush-side > .row { min-height: 44px; }
.ar-on .ar .ar-rushg .rush-bench { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; min-height: 0; padding: 10px; background: #0a0710; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-rushg .rush-bench .rush-unit, .ar-on .ar .ar-rushg .rush-slot { width: 100%; height: auto; aspect-ratio: 1; max-width: 132px; }
.ar-on .ar .ar-rushg .rush-bench .rush-unit canvas, .ar-on .ar .ar-rushg .rush-bench .rush-unit img { width: 86% !important; height: 86% !important; }
.ar-on .ar .ar-rushg .rush-slot { border: 1px dashed var(--ar-line2); }
.ar-on .ar .ar-rushg .rush-stash { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ar-on .ar .ar-rushg .rush-stash-item { width: 60px; height: 60px; background: #0a0710; border: 1px solid var(--ar-line2); box-shadow: none; }
.ar-on .ar .ar-rushg .rush-stash-item canvas, .ar-on .ar .ar-rushg .rush-stash-item img { width: 48px !important; height: 48px !important; }
.ar-on .ar .ar-rushg .rush-stash-item.sel { border: 2px solid var(--ar-gold2); box-shadow: 0 0 14px rgba(209, 171, 91, 0.5); }
.ar-on .ar .ar-rushg .rush-over { box-shadow: inset 0 0 0 3px var(--ar-gold2) !important; }
/* the shop */
.ar-on .ar .ar-rushg .rush-shop > .row:first-child .gold { font: 800 26px/1 var(--ar-cap); color: var(--ar-gold2); }
.ar-on .ar .ar-rushg .rush-shop > .row:first-child .bar { width: 100%; }
.ar-on .ar .ar-rushg .rush-shop > .row:first-child > .row > div[style] { width: 220px !important; }
.ar-on .ar .ar-rushg .rush-shop .btn.primary { min-height: 56px; padding: 0 34px; font-size: 19px; }
.ar-on .ar .ar-rushg .rush-shop-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ar-on .ar .ar-rushg .rush-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: center; align-items: center; gap: 6px 14px; min-height: 148px; padding: 14px; text-align: left; color: var(--ar-cream); font: inherit; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-line2); box-shadow: none; }
.ar-on .ar .ar-rushg .rush-card canvas, .ar-on .ar .ar-rushg .rush-card img { grid-row: 1 / 4; width: 96px !important; height: 96px !important; padding: 8px; box-sizing: content-box; background: #0a0710; border: 1px solid var(--ar-edge); image-rendering: pixelated; }
.ar-on .ar .ar-rushg .rush-card b { align-self: end; font: 700 21px/1.1 var(--ar-cap); letter-spacing: 0.03em; color: #fff; }
.ar-on .ar .ar-rushg .rush-card .muted { font-size: 15px; color: var(--ar-dim); }
.ar-on .ar .ar-rushg .rush-card .gold { align-self: start; font: 800 19px/1 var(--ar-cap); color: var(--ar-gold2); }
.ar-on .ar .ar-rushg .rush-card.c2 { border-color: #5aa8ff; box-shadow: none; } .ar-on .ar .ar-rushg .rush-card.c3 { border-color: #c98bff; box-shadow: none; }
.ar-on .ar .ar-rushg .rush-card:not(:disabled):hover, .ar-on .ar .ar-rushg .rush-card:not(:disabled):focus-visible { border-color: var(--ar-gold); background: rgba(40, 29, 14, 0.94); transform: translateY(-3px); outline: none; }
.ar-on .ar .ar-rushg .rush-card:disabled { opacity: 0.45; }
.ar-on .ar .ar-rushg .rush-card.empty { display: grid; grid-template-columns: 1fr; place-items: center; font: 700 15px/1 var(--ar-cap); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ar-mute); border-style: dashed; }
/* the game's end */
.ar-on .ar .ar-rushg .rush-over-box { max-width: none; width: 100%; height: 100%; margin: 0; padding: 0; display: grid; place-items: center; }
.ar-on .ar .ar-rushg .rush-over-box > .panel { width: 760px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 44px 36px; text-align: center; }
.ar-on .ar .ar-rushg .rush-over-box .title { font-size: 54px; }
.ar-on .ar .ar-rushg .rush-over-box .gold { font: 800 30px/1 var(--ar-cap); }
.ar-on .ar .ar-rushg .rush-over-box .btn.primary { min-height: 60px; padding: 0 44px; font-size: 20px; margin-top: 10px; }
.ar-on .ar-page.narrower .ar-rushg .max { grid-template-columns: 330px minmax(0, 1fr); gap: 14px; }
.ar-on .ar-page.narrower .ar-rushg .rush-board { grid-template-columns: repeat(3, 150px); }
.ar-on .ar-page.narrower .ar-rushg .rush-sq { height: 150px; }
.ar-on .ar-page.narrower .ar-rushg .rush-unit { width: 128px; height: 128px; }
.ar-on .ar-page.narrower .ar-rushg .rush-card { grid-template-columns: 84px minmax(0, 1fr); padding: 10px; gap: 4px 10px; }
.ar-on .ar-page.narrower .ar-rushg .rush-card canvas { width: 72px !important; height: 72px !important; padding: 5px; }
/* the phone: your board first, then the shop, the players, the last round */
.ar-on.ar-phone .ar .ar-rushg > .screen-body { height: auto; }
.ar-on.ar-phone .ar .ar-rushg .max { display: flex; flex-direction: column; height: auto; gap: 12px; }
.ar-on.ar-phone .ar .ar-rushg .rush-mid { order: 1; display: flex; flex-direction: column; gap: 10px; }
.ar-on.ar-phone .ar .ar-rushg .rush-side { gap: 10px; }
.ar-on.ar-phone .ar .ar-rushg .rush-shop { order: 2; }
.ar-on.ar-phone .ar .ar-rushg .rush-players { order: 3; overflow: visible; }
.ar-on.ar-phone .ar .ar-rushg .rush-log { order: 4; min-height: 0; max-height: none; }
.ar-on.ar-phone .ar .ar-rushg .rush-board { grid-template-columns: repeat(3, 100px); justify-content: center; align-self: center; gap: 4px; padding: 6px; }
.ar-on.ar-phone .ar .ar-rushg .rush-sq { height: 100px; }
.ar-on.ar-phone .ar .ar-rushg .rush-unit { width: 88px; height: 88px; }
.ar-on.ar-phone .ar .ar-rushg .rush-unit canvas, .ar-on.ar-phone .ar .ar-rushg .rush-unit img { width: 80px !important; height: 80px !important; }
.ar-on.ar-phone .ar .ar-rushg .rush-bench { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px; }
.ar-on.ar-phone .ar .ar-body > .ar-rush-new { width: 100%; margin-top: 12px; }
.ar-on.ar-phone .ar .ar-rushg .rush-shop > .row:first-child { flex-wrap: wrap; }
.ar-on.ar-phone .ar .ar-rushg .rush-shop > .row:first-child > .row:last-child { width: 100%; flex-wrap: wrap; }
.ar-on.ar-phone .ar .ar-rushg .rush-shop > .row:first-child > .row:last-child .btn { flex: 1 1 auto; }
.ar-on.ar-phone .ar .ar-rushg .rush-shop > .row:first-child > .row > div[style] { width: 120px !important; }
.ar-on.ar-phone .ar .ar-rushg .rush-shop-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ar-on.ar-phone .ar .ar-rushg .rush-card { grid-template-columns: 64px minmax(0, 1fr); min-height: 0; padding: 8px; gap: 2px 8px; }
.ar-on.ar-phone .ar .ar-rushg .rush-card canvas, .ar-on.ar-phone .ar .ar-rushg .rush-card img { width: 56px !important; height: 56px !important; padding: 3px; }
.ar-on.ar-phone .ar .ar-rushg .rush-card b { font-size: 17px; }
.ar-on.ar-phone .ar .ar-rushg .rush-over-box > .panel { padding: 24px 14px; }
.ar-on.ar-phone .ar .ar-rushg .rush-over-box .title { font-size: 36px; }
.ar-on.ar-phone .ar .ar-rushg .rush-bench .rush-unit canvas, .ar-on.ar-phone .ar .ar-rushg .rush-bench .rush-unit img { width: 86% !important; height: 86% !important; }

/* ---- the Raid's boss of these weeks (ui/screens/raid.js): painted big over its own place, what it is made of under it,
   every move spelled out on the right, how long it stays on the left ---- */
.ar-on .ar .ar-raid-fig { bottom: 150px; width: min(96%, 900px); height: calc(100% - 190px); filter: none; pointer-events: none; }
.ar-on .ar .ar-raid-fig .pic { display: block; width: 100%; height: 100%; background: center bottom / contain no-repeat; filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 46px color-mix(in srgb, var(--boss) 45%, transparent)); }
.ar-on .ar .ar-raid-fig.heroic .pic { filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 60px color-mix(in srgb, var(--boss) 75%, transparent)) saturate(1.15); }
.ar-on .ar .ar-raid-made { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: 26px; padding: 14px 22px; white-space: nowrap; }
.ar-on .ar .ar-raid-made > div { display: flex; align-items: center; gap: 8px; }
.ar-on .ar .ar-raid-made small { font: 700 13px/1 var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-mute); margin-right: 2px; }
.ar-on .ar .ar-raid-made .weak small { color: var(--ar-green); }
.ar-on .ar .ar-raid-made .res small { color: var(--ar-red); }
.ar-on .ar .ar-dt { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font: 700 15px/1 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-cream); background: #0a0710; border: 1px solid var(--ar-line2); }
.ar-on .ar .ar-dt img { width: 20px; height: 20px; image-rendering: pixelated; }
.ar-on .ar .ar-dt.none { color: var(--ar-mute); border-style: dashed; }
.ar-on .ar .ar-raid-about { font-size: 19px; line-height: 1.4; color: var(--ar-cream); }
.ar-on .ar .ar-moves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ar-on .ar .ar-move { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); border-left: 4px solid var(--ar-line2); }
.ar-on .ar .ar-move b { display: flex; align-items: center; gap: 8px; font: 700 17px/1.1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-gold2); }
.ar-on .ar .ar-move b img { width: 18px; height: 18px; image-rendering: pixelated; }
.ar-on .ar .ar-move span { font-size: 16px; line-height: 1.35; color: var(--ar-dim); }
.ar-on .ar .ar-move.basic { border-left-color: var(--ar-cream); }
.ar-on .ar .ar-move.spell { border-left-color: var(--ar-red); }
.ar-on .ar .ar-move.phase { border-left-color: var(--ar-gold); }
.ar-on .ar .ar-move.phase b { color: var(--ar-cream); }
.ar-on .ar .ar-move.end { border-left-color: #ff5a4a; }
.ar-on .ar .ar-raid-turn { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: rgba(40, 29, 14, 0.5); border: 1px solid rgba(209, 171, 91, 0.35); }
.ar-on .ar .ar-raid-turn b { font: 700 18px/1.1 var(--ar-cap); letter-spacing: 0.04em; color: var(--ar-gold2); }
.ar-on .ar .ar-raid-turn .next { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ar-cream); }
.ar-on .ar .ar-raid-turn .next i { width: 44px; height: 44px; display: grid; place-items: center; background: #0a0710; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-raid-turn .next i canvas, .ar-on .ar .ar-raid-turn .next i img { width: 40px; height: 40px; image-rendering: pixelated; }
.ar-on .ar .ar-raid-turn small { font-size: 15px; color: var(--ar-mute); }
.ar-on .ar-page.narrower .ar-raid-made { gap: 14px; padding: 10px 12px; }
.ar-on .ar-page.narrower .ar-raid-made small { display: none; }
.ar-on.ar-phone .ar .ar-raid-fig { position: relative; left: auto; bottom: auto; transform: none; width: 100%; height: 340px; }
.ar-on.ar-phone .ar .ar-raid-made { position: relative; left: auto; bottom: auto; transform: none; flex-direction: column; gap: 8px; white-space: normal; margin-top: 8px; }
.ar-on.ar-phone .ar .ar-raid-made > div { flex-wrap: wrap; }
/* The phone sweep (17 Nov): the League's names have more of the row (they were cut at 360 px wide). */
.ar-on.ar-phone .ar .ar-lg-row { grid-template-columns: 38px 30px 30px minmax(0, 1fr) 58px; gap: 4px; padding: 4px 6px; }
/* (and the avatar is drawn to fit its 30 px: it stayed 40 px wide in that narrower column and lay over the name's first
   letters; the line under a name goes to a second line whole, where "In first place for 3 days" broke in two columns.
   18 Nov, from your picture) */
.ar-on.ar-phone .ar .ar-lg-row .face { width: 30px; height: 30px; }
.ar-on.ar-phone .ar .ar-lg-row .tx small { flex-wrap: wrap; column-gap: 8px; row-gap: 0; }
/* (the calendar's event picture on a phone: 60 px as meant. The rule above lost to the computer's 84 px, so the
   picture lay over the event's words.) */
html[data-theme].ar-on.ar-phone .ar .ar-cal .ar-ev .nx-ev-pic.big { width: 60px; height: 46px; }
/* The Patrol's mascot picker in Arena's look (17 Nov): a tile each, as on Arena's other pages: the mascot big, its
   name, its rarity and what it brings; the rarity's colour along the bottom, the one in the slot framed in gold. */
.ar-on .ar-pet-pick { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px; max-height: min(56vh, 520px); padding: 2px 4px 2px 2px; }
.ar-on .ar-pet-pick .pet-tile { flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; min-height: 158px; padding: 10px 6px 9px; text-align: center; background: linear-gradient(180deg, rgba(38, 29, 56, 0.92), rgba(16, 12, 26, 0.96)); border: 1px solid #3b3152; border-bottom: 3px solid var(--rc, #6a5e78); border-radius: 0; box-shadow: none; transition: border-color 0.12s, transform 0.12s; }
.ar-on .ar-pet-pick .pet-tile.r-common { --rc: #8d93a3; }
.ar-on .ar-pet-pick .pet-tile.r-rare { --rc: var(--rarity-rare, #5aa7ff); box-shadow: none; }
.ar-on .ar-pet-pick .pet-tile.r-epic { --rc: var(--rarity-epic, #c06bff); box-shadow: none; }
.ar-on .ar-pet-pick .pet-tile.r-legendary { --rc: var(--rarity-legendary, #f5a623); box-shadow: 0 0 14px rgba(245, 166, 35, 0.22); }
.ar-on .ar-pet-pick button.pet-tile:hover, .ar-on .ar-pet-pick button.pet-tile:focus-visible { filter: none; border-color: #d1ab5b; border-bottom-color: var(--rc, #d1ab5b); transform: translateY(-2px); outline: none; }
.ar-on .ar-pet-pick .pet-tile.selected { outline: none; border: 2px solid #d1ab5b; border-bottom-width: 3px; background: linear-gradient(180deg, rgba(58, 42, 18, 0.95), rgba(30, 21, 10, 0.96)); }
.ar-on .ar-pet-pick .pet-tile.taken { opacity: 0.45; transform: none; }
.ar-on .ar-pet-pick .pet-tile.empty { justify-content: center; border: 1px dashed #5a4d78; background: rgba(13, 10, 20, 0.6); }
.ar-on .ar-pet-pick .pet-pic { width: 78px; height: 78px; background: none; border: 0; }
.ar-on .ar-pet-pick .pet-pic canvas, .ar-on .ar-pet-pick .pet-pic img { width: 72px; height: 72px; }
.ar-on .ar-pet-pick .pet-pic.empty { font-size: 30px; }
.ar-on .ar-pet-pick .pet-info { align-items: center; gap: 2px; max-width: 100%; }
.ar-on .ar-pet-pick .pet-info b { font-size: 14px; line-height: 1.1; letter-spacing: 0.05em; text-transform: uppercase; white-space: normal; overflow: visible; text-wrap: balance; }
.ar-on .ar-pet-pick .pet-info small { font-size: 12px; }
.ar-on .ar-pet-pick .pet-info .xs { font-size: 12.5px; line-height: 1.15; }
.ar-on .ar-pet-pick .pet-taken { position: static; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.ar-on.ar-phone .ar-pet-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* ------------------------------------------------------------------ How to play (ui/arena/how.js, 17 Nov)
   The whole window: its subjects are the head's tabs. A game in five steps side by side, each with its picture; under
   them how you play and where to learn by playing. Every box has room inside: 26 px round its words. */
.ar-on .ar-how .ar-body { overflow-y: auto; padding-bottom: 24px; }
.ar-on .ar .ar-how-basics { display: flex; flex-direction: column; gap: 20px; max-width: 1780px; margin: 0 auto; }
.ar-on .ar .ar-how-lead { margin: 0; font: 500 22px/1.3 var(--ar-text); color: var(--ar-dim); }
.ar-on .ar .ar-how-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.ar-on .ar .ar-how-step { display: flex; flex-direction: column; gap: 16px; padding: 24px 26px 28px; animation: ar-in-up 0.4s ease-out both; animation-delay: calc(var(--i, 0) * 50ms); }
.ar-on .ar .ar-how-step .hd { display: flex; align-items: center; gap: 14px; }
.ar-on .ar .ar-how-step .n { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font: 800 25px/1 var(--ar-cap); color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border: 1px solid #f0d9a0; }
.ar-on .ar .ar-how-step h2 { margin: 0; font: 800 30px/1 var(--ar-cap); letter-spacing: 0.05em; color: var(--ar-cream); }
.ar-on .ar .ar-how-step ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font: 500 18px/1.38 var(--ar-text); color: var(--ar-dim); }
.ar-on .ar .ar-how-step li { position: relative; padding-left: 20px; }
.ar-on .ar .ar-how-step li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; background: var(--ar-gold); transform: rotate(45deg); }
.ar-on .ar .ar-how-step li b, .ar-on .ar .ar-how-box p b { font-weight: 700; color: var(--ar-cream); }
/* (the pictures) */
.ar-on .ar .ar-how-step .dg { flex: none; height: 188px; display: flex; align-items: center; justify-content: center; gap: 18px; background: rgba(8, 5, 14, 0.62); border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-how-step .dg .row { display: flex; gap: 8px; }
.ar-on .ar .ar-how-step .dg .f { position: relative; flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: #0a0710; border: 2px solid var(--blue); }
.ar-on .ar .ar-how-step .dg .f.s1 { border-color: var(--team-red); }
.ar-on .ar .ar-how-step .dg .f canvas, .ar-on .ar .ar-how-step .dg .f img { width: 44px !important; height: 44px !important; image-rendering: pixelated; }
.ar-on .ar .ar-how-step .dg .f.ban canvas, .ar-on .ar .ar-how-step .dg .f.ban img { filter: grayscale(1) brightness(0.45); }
.ar-on .ar .ar-how-step .dg .f.ban { border-color: #4a4458; }
.ar-on .ar .ar-how-step .dg .f.ban::after { content: '\2715'; position: absolute; inset: 0; display: grid; place-items: center; font: 800 26px/1 system-ui, sans-serif; color: #ff7b70; text-shadow: 0 1px 0 #000; }
.ar-on .ar .ar-how-step .dg .f.won { border-color: var(--ar-gold); box-shadow: 0 0 12px rgba(226, 194, 124, 0.5); }
.ar-on .ar .ar-how-step .dg .f.big { width: 72px; height: 72px; border-color: var(--ar-gold); }
.ar-on .ar .ar-how-step .dg .f.big canvas, .ar-on .ar .ar-how-step .dg .f.big img { width: 68px !important; height: 68px !important; }
.ar-on .ar .ar-how-step .dg-draft, .ar-on .ar .ar-how-step .dg-win { flex-direction: column; gap: 9px; }
.ar-on .ar .ar-how-step .dg .vs { font: 800 14px/1 var(--ar-cap); letter-spacing: 0.24em; color: var(--ar-mute); }
.ar-on .ar .ar-how-step .dg .cup { display: grid; place-items: center; height: 34px; filter: drop-shadow(0 0 8px rgba(226, 194, 124, 0.5)); }
.ar-on .ar .ar-how-step .dg-grid { display: grid; grid-template-columns: repeat(3, 52px); grid-auto-rows: 52px; gap: 4px; }
.ar-on .ar .ar-how-step .dg-grid .c { display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); }
.ar-on .ar .ar-how-step .dg-grid .c.line { background: rgba(209, 171, 91, 0.2); border-color: var(--ar-gold); }
.ar-on .ar .ar-how-step .dg-grid .c.hit { background: rgba(224, 74, 62, 0.26); border-color: #e04a3e; }
.ar-on .ar .ar-how-step .dg-grid .c.me { background: rgba(76, 134, 240, 0.22); border-color: var(--blue); }
.ar-on .ar .ar-how-step .dg-grid .f { width: 44px; height: 44px; border-width: 0; background: none; }
.ar-on .ar .ar-how-step .dg-grid .f canvas, .ar-on .ar .ar-how-step .dg-grid .f img { width: 42px !important; height: 42px !important; }
.ar-on .ar .ar-how-step .dg-battle .acts { display: flex; flex-direction: column; gap: 8px; }
.ar-on .ar .ar-how-step .dg-battle .acts span { width: 40px; height: 40px; display: grid; place-items: center; background: #171222; border: 1px solid var(--ar-edge); }
.ar-on .ar .ar-how-step .dg-ult { gap: 16px; }
.ar-on .ar .ar-how-step .dg-ult .en { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ar-on .ar .ar-how-step .dg-ult .bar { display: block; width: 130px; height: 14px; background: #241b3a; }
.ar-on .ar .ar-how-step .dg-ult .bar i { display: block; height: 100%; background: linear-gradient(90deg, #b48d3e, #e2c27c); box-shadow: 0 0 12px rgba(226, 194, 124, 0.6); animation: ar-how-fill 2.6s ease-in-out infinite; }
.ar-on .ar .ar-how-step .dg-ult .en b { font: 700 17px/1 var(--ar-text); color: var(--ar-gold2); }
.ar-on .ar .ar-how-step .dg-ult .gem { display: grid; place-items: center; filter: drop-shadow(0 0 8px rgba(226, 194, 124, 0.6)); }
@keyframes ar-how-fill { 0% { width: 12%; } 70%, 100% { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ar-on .ar .ar-how-step .dg-ult .bar i { animation: none; } }
/* (how you play, and learning by playing) */
.ar-on .ar .ar-how-more { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; }
.ar-on .ar .ar-how-box { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px 26px; }
.ar-on .ar .ar-how-box p { margin: 0; font: 500 19px/1.4 var(--ar-text); color: var(--ar-dim); }
.ar-on .ar .ar-how-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 22px; }
.ar-on .ar .ar-how-keys .k { display: flex; align-items: center; gap: 12px; min-width: 0; font: 500 18px/1.2 var(--ar-text); color: var(--ar-cream); }
.ar-on .ar .ar-how-keys .k .ar-key { flex: none; }
.ar-on .ar .ar-how-box .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.ar-on .ar .ar-how-box .acts .ar-btn.pay { flex: 1 1 200px; height: 64px; font-size: 20px; margin: 0; }
/* (the other subjects: the guide's own pages on a plate, at the sheet's size) */
.ar-on .ar .ar-how-page { display: flex; flex-direction: column; gap: 16px; max-width: 1620px; margin: 0 auto; }
.ar-on .ar .ar-how-hd h2 { margin: 0 0 6px; font: 800 38px/1 var(--ar-cap); letter-spacing: 0.05em; color: var(--ar-cream); }
.ar-on .ar .ar-how-hd p { margin: 0; font: 500 21px/1.3 var(--ar-text); color: var(--ar-dim); }
html[data-theme].ar-on .ar .ar-how-old { zoom: 1.3; display: flex; flex-direction: column; gap: 22px; padding: 22px 24px 26px; overflow: visible; flex: none; }
/* (a narrower window: the five steps in three and two) */
.ar-on .ar-page.narrower .ar-how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ar-on .ar-page.narrower .ar-how-more { grid-template-columns: 1fr; }
/* (a phone: one under the other) */
.ar-on.ar-phone .ar .ar-how-basics { gap: 12px; }
.ar-on.ar-phone .ar .ar-how-lead { font-size: 16px; }
.ar-on.ar-phone .ar .ar-how-steps, .ar-on.ar-phone .ar .ar-how-more { grid-template-columns: 1fr; gap: 12px; }
.ar-on.ar-phone .ar .ar-how-step, .ar-on.ar-phone .ar .ar-how-box { padding: 16px 16px 18px; gap: 12px; animation: none; }
.ar-on.ar-phone .ar .ar-how-step h2 { font-size: 24px; }
.ar-on.ar-phone .ar .ar-how-step .n { width: 38px; height: 38px; font-size: 21px; }
.ar-on.ar-phone .ar .ar-how-step .dg { height: 168px; }
.ar-on.ar-phone .ar .ar-how-step ul, .ar-on.ar-phone .ar .ar-how-box p { font-size: 16px; }
.ar-on.ar-phone .ar .ar-how-box .acts .ar-btn.pay { height: 54px; font-size: 17px; }
.ar-on.ar-phone .ar .ar-how-hd h2 { font-size: 24px; }
.ar-on.ar-phone .ar .ar-how-hd p { font-size: 15px; }
html[data-theme].ar-on.ar-phone .ar .ar-how-old { zoom: 1; padding: 12px 12px 16px; gap: 16px; }
/* (seven subjects in the head: set a little closer, so none runs under the wallet on a laptop) */
.ar-on:not(.ar-phone) .ar-how .ar-tabs > button { padding: 0 15px; font-size: 16.5px; letter-spacing: 0.13em; }
.ar-on:not(.ar-phone) .ar-how .ar-tabs > button::after { left: 15px; right: 15px; }
.ar-on:not(.ar-phone) .ar .ar-how-basics { gap: 16px; }
.ar-on:not(.ar-phone) .ar .ar-how-step { gap: 14px; padding: 22px 24px 24px; }
.ar-on:not(.ar-phone) .ar .ar-how-step .dg { height: 172px; }
.ar-on:not(.ar-phone) .ar .ar-how-step ul { gap: 8px; font-size: 17.5px; }
.ar-on:not(.ar-phone) .ar .ar-how-box { gap: 12px; padding: 20px 26px 22px; }
/* ---- Ranked (src/ui/screens/ranked.js): the League's sheet (the ladder down the left, your season beside it), and in
   the panel your ranked team, your team's defence record and the season's rewards ---- */
.ar-on .ar .rk-row .mv { display: grid; place-items: center; }
.ar-on .ar .rk-row .mv img, .ar-on .ar .rk-row .mv canvas { width: 30px; height: 30px; }
.ar-on .ar .rk-row.bot .tx small { color: var(--ar-gold); letter-spacing: 0.08em; }
.ar-on .ar .rk-row .tx small span { color: var(--ar-mute); }
.ar-on .ar .rk-list .note { margin: 8px 4px 2px; font-size: 15px; line-height: 1.35; color: var(--ar-mute); }
.ar-on .ar .rk-off { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 16px; text-align: center; }
.ar-on .ar .rk-off b { font-size: 20px; line-height: 1.3; color: var(--ar-cream); }
.ar-on .ar .rk-panel h2.rk-rank { display: flex; align-items: center; gap: 12px; font-size: 40px; }
.ar-on .ar .rk-panel h2.rk-rank span { min-width: 0; overflow-wrap: anywhere; }
.ar-on .ar .rk-panel .rk-progress { color: var(--ar-dim); }
.ar-on .ar .rk-team, .ar-on .ar .rk-def { display: flex; flex-direction: column; gap: 8px; }
.ar-on .ar .rk-team-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ar-on .ar .rk-team-btn { min-height: 44px; padding: 4px 12px; display: flex; align-items: center; justify-content: center; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); color: var(--ar-cream); font: 700 17px/1.1 var(--ar-text); cursor: pointer; }
.ar-on .ar .rk-team-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-on .ar .rk-team-btn:hover, .ar-on .ar .rk-team-btn:focus-visible { border-color: var(--ar-line2); outline: none; }
.ar-on .ar .rk-team-btn.on { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); color: var(--ar-gold2); }
.ar-on .ar .rk-team-six { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.ar-on .ar .rk-team-six .ch { position: relative; display: grid; place-items: center; padding: 4px 0 2px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); }
.ar-on .ar .rk-team-six .ch canvas, .ar-on .ar .rk-team-six .ch img { image-rendering: pixelated; max-width: 100%; height: auto; }
.ar-on .ar .rk-team-six .ch i { position: absolute; right: 3px; bottom: 1px; font: 700 12px/1 var(--ar-cap); font-style: normal; color: var(--ar-gold2); text-shadow: 0 1px 2px #000; }
.ar-on .ar .rk-strength { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); font-size: 17px; color: var(--ar-cream); }
.ar-on .ar .rk-strength b { font: 800 22px/1 var(--ar-cap); color: var(--ar-gold2); }
.ar-on .ar .rk-team-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ar-on .ar .rk-team-btns .ar-btn { min-width: 0; padding: 0 8px; }
.ar-on .ar .rk-def-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 800 20px/1.1 var(--ar-cap); color: var(--ar-cream); }
.ar-on .ar .rk-def-sum .w { color: var(--ar-green); } .ar-on .ar .rk-def-sum .l { color: var(--ar-red); }
.ar-on .ar .rk-def-row { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 2px 12px; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); font-size: 16px; color: var(--ar-cream); }
.ar-on .ar .rk-def-row span { flex: 1; min-width: 0; }
.ar-on .ar .rk-def-row.held b { color: var(--ar-green); } .ar-on .ar .rk-def-row.lost b { color: var(--ar-red); }
.ar-on .ar .rk-def-row i { font-style: normal; color: var(--ar-gold2); }
.ar-on .ar .rk-pays .row, .ar-on .ar .rk-past .row { flex-wrap: wrap; row-gap: 2px; }
.ar-on .ar .rk-pays .row b { text-align: right; }
.ar-on .ar .rk-pays .row.now { border-color: var(--ar-line2); }
.ar-on .ar .rk-past .row .ar-btn { flex: none; }
.ar-on .ar .rk-past .row small { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 15px; color: var(--ar-gold2); }
.ar-on.ar-phone .ar .rk-panel h2.rk-rank { font-size: 30px; }
.ar-on.ar-phone .ar .rk-list { max-height: 380px; }
.ar-on.ar-phone .ar .rk-team-btn { font-size: 15px; }
.ar-on.ar-phone .ar .rk-team-btns { grid-template-columns: minmax(0, 1fr); }
.ar-on.ar-phone .ar .rk-pays .row, .ar-on.ar-phone .ar .rk-past .row { font-size: 15px; }
/* (each rank's own ladder: the ten ranks' medals over the list, the one in sight lit) */
.ar-on .ar .rk-ladder-head { flex-direction: column; align-items: stretch; gap: 8px; }
.ar-on .ar .rk-ranks { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.ar-on .ar .rk-rank-btn { min-width: 0; height: 48px; padding: 0; display: grid; place-items: center; background: rgba(13, 10, 20, 0.6); border: 1px solid var(--ar-edge); cursor: pointer; }
.ar-on .ar .rk-rank-btn:hover, .ar-on .ar .rk-rank-btn:focus-visible { border-color: var(--ar-line2); outline: none; }
.ar-on .ar .rk-rank-btn.on { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); }
.ar-on .ar .rk-row .mv .rank-badge img, .ar-on .ar .rk-row .mv .rank-badge canvas { width: 100%; height: 100%; }
.ar-on.ar-phone .ar .rk-rank-btn { height: 38px; }
.ar-on.ar-phone .ar .rk-ranks { gap: 2px; }


/* styles/arena-match.css */
/*
 * Arena's fight and its results: the fight's panels (each side's roster, the turn bar, the actions, the hint, the
 * chronicle) and the results, in Arena's plates and letters. The fight's own rules and where the board sits
 * (ui/screens/match.js layout: its numbers, your call of before) are untouched; only how the panels look.
 * Sizes here are the window's own pixels (a fight isn't drawn on the sheet: its board is placed pixel by pixel).
 */

/* ------------------------------------------------------------------ the rosters */
.ar-on .battle .roster { gap: 0; padding: 0 0 4px; overflow-x: hidden; background: linear-gradient(180deg, rgba(30, 23, 44, 0.95), rgba(14, 10, 22, 0.97)); border: 1px solid var(--ar-line); border-top: 3px solid var(--blue); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); scrollbar-width: thin; scrollbar-color: var(--ar-line2) transparent; }
.ar-on .battle .roster.p1 { border-top-color: var(--team-red); }
.ar-on .battle .roster:empty { display: none; }
.ar-on .battle .roster.active { border-color: var(--ar-gold); border-top-color: var(--ar-gold); box-shadow: 0 0 0 1px rgba(226, 194, 124, 0.25), 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 28px rgba(209, 171, 91, 0.2); }
.ar-on .battle .roster-head { position: relative; min-height: 58px; padding: 8px 10px; gap: 10px; border-bottom: 1px solid var(--ar-line); overflow: hidden; }
.ar-on .battle .roster-head .rh-mark { width: 26px; height: 26px; font: 800 15px/1 var(--ar-text); border: 1px solid rgba(0, 0, 0, 0.7); }
.ar-on .battle .roster-head .rh-who .pname { font: 700 18px/1.1 var(--ar-cap); letter-spacing: 0.05em; color: var(--ar-cream); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.75); }
.ar-on .battle .roster.p0 .rh-who .pname, .ar-on .battle .roster.p1 .rh-who .pname { color: var(--ar-cream); }
.ar-on .battle .roster-head .rh-who .psub { font: 500 14px/1.2 var(--ar-text); color: var(--ar-cream); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85); }
/* (whose turn it is takes the line under the name while it is theirs: beside the name it cut the name short) */
.ar-on .battle:not(.narrow) .roster-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 10px; row-gap: 3px; }
.ar-on .battle:not(.narrow) .roster-head > .rh-mark, .ar-on .battle:not(.narrow) .roster-head > .rh-avatar { grid-row: 1 / 3; }
.ar-on .battle:not(.narrow) .roster-head > .rh-who { grid-column: 3; grid-row: 1 / 3; }
.ar-on .battle:not(.narrow) .roster-head:has(> .turn-pill) > .rh-who { grid-row: 1; align-self: end; }
.ar-on .battle:not(.narrow) .roster-head:has(> .turn-pill) > .rh-who .psub { display: none; }
.ar-on .battle:not(.narrow) .roster-head > .turn-pill { grid-column: 3; grid-row: 2; justify-self: start; align-self: start; }
.ar-on .battle .roster-head .rh-who .psub, .ar-on .battle .roster-head .rh-who .pname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-on .battle .turn-pill { padding: 5px 9px; font: 700 12px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border: 1px solid #f0d9a0; border-radius: 0; box-shadow: none; }
.ar-on .battle .roster-hero { gap: 3px 10px; margin: 0; padding: 9px 26px 9px 9px; border: 0; border-left: 4px solid var(--blue); border-bottom: 1px solid rgba(90, 74, 44, 0.42); border-radius: 0; background: none; box-shadow: none; transition: background 0.12s; }
.ar-on .battle .roster-hero.red { border-left-color: var(--team-red); }
.ar-on .battle .roster-hero:last-child { border-bottom: 0; }
.ar-on .battle .roster-hero:hover { background: rgba(209, 171, 91, 0.08); box-shadow: none; }
.ar-on .battle .roster-hero.active { background: linear-gradient(90deg, rgba(209, 171, 91, 0.24), rgba(209, 171, 91, 0.04)); box-shadow: inset 0 0 0 1px var(--ar-gold); }
.ar-on .battle .roster-hero canvas { border-radius: 0; border: 1px solid var(--ar-edge); background: #0a0710; }
.ar-on .battle .roster-hero .nm { font: 700 15px/1.1 var(--ar-cap); letter-spacing: 0.02em; color: var(--ar-cream); }
.ar-on .battle .rh-tier { font: 700 12px/1 var(--ar-text); color: var(--ar-gold); }
.ar-on .battle .rh-note { font: 500 13px/1.15 var(--ar-text); color: var(--ar-dim); }
.ar-on .battle .rh-note.good { color: var(--ar-green); }
.ar-on .battle .rh-note.gold, .ar-on .battle .rh-note.ult { color: var(--ar-gold2); }
.ar-on .battle .rh-num { font: 800 21px/1 var(--ar-text); color: var(--ar-cream); }
.ar-on .battle .rh-shield { font: 700 14px/1 var(--ar-text); color: #bfe4ff; }
.ar-on .battle .roster-hero .bar { height: 8px; border: 0; border-radius: 0; background: #2a2140; box-shadow: none; }
.ar-on .battle .roster-hero .bar.energy { height: 4px; border: 0; }
.ar-on .battle .rh-info { top: 6px; right: 6px; width: 17px; height: 17px; font: 700 12px/1 var(--ar-text); color: var(--ar-dim); background: rgba(8, 5, 14, 0.7); border: 1px solid var(--ar-edge); border-radius: 0; box-shadow: none; }
.ar-on .battle .rh-info:hover { color: #1a1309; background: var(--ar-gold); }

/* ------------------------------------------------------------------ the turn bar and the clock */
.ar-on .battle .turn-banner { padding: 4px 16px 5px; background: linear-gradient(180deg, rgba(30, 23, 44, 0.95), rgba(14, 10, 22, 0.97)); border: 1px solid var(--ar-line); border-radius: 0; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45); }
.ar-on .battle .turn-banner .t { font: 700 16px/1.2 var(--ar-cap); letter-spacing: 0.1em; color: var(--ar-gold2); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7); }
.ar-on .battle .turn-banner .xs, .ar-on .battle .turn-banner .small { font: 500 14px/1.25 var(--ar-text); color: var(--ar-dim); }
/* ("Thinking" and Auto fight's note on one line under the turn strip) */
.battle .turn-banner .b-sub { display: flex; justify-content: center; gap: 4px 12px; flex-wrap: wrap; }
html.ar-on[data-theme] .battle.narrow .hud-top .turn-banner .b-sub { justify-content: flex-start; }
.ar-on .battle .next-strip canvas { border: 1px solid var(--ar-edge); background: #0a0710; }
.ar-on .battle .timer { font-family: var(--ar-text); font-weight: 800; }
.ar-on .battle .timer .timer-bar { border-radius: 0; }
.ar-on .battle .hud-top > .btn, .ar-on .battle .hud-tools .btn { color: var(--ar-cream); background: rgba(13, 10, 20, 0.88); border: 1px solid var(--ar-edge); border-image: none; border-radius: 0; box-shadow: none; transition: border-color 0.12s, color 0.12s; }
.ar-on .battle .hud-top > .btn:hover, .ar-on .battle .hud-tools .btn:hover { border-color: var(--ar-gold); filter: none; }
.ar-on .battle .hud-speeds .btn { font: 700 14px/1 var(--ar-text); }
.ar-on .battle .hud-speeds .btn.on, .ar-on .battle .hud-pause.on { color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border-color: #f0d9a0; box-shadow: none; }

/* ------------------------------------------------------------------ the actions and the hint */
.ar-on .battle .action-bar:not(:empty) { background: linear-gradient(180deg, rgba(30, 23, 44, 0.96), rgba(14, 10, 22, 0.98)); border: 1px solid var(--ar-line); border-radius: 0; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); }
.ar-on .battle .act-round, .ar-on .battle .act-round.ghost, .ar-on .battle .act-round.art { border: 1px solid var(--ar-edge); border-radius: 0; background: #0a0710; box-shadow: none; transition: border-color 0.12s, transform 0.1s; }
.ar-on .battle .act-round:hover:not(:disabled) { border-color: var(--ar-line2); transform: translateY(-2px); }
.ar-on .battle .act-round.on { border-color: var(--ar-gold); box-shadow: 0 0 0 1px var(--ar-gold), 0 0 16px rgba(209, 171, 91, 0.35); }
.ar-on .battle .act-key .kbd { min-width: 24px; height: 22px; padding: 0 6px; font: 700 13px/1 var(--ar-text); color: var(--ar-cream); background: #2a2140; border: 1px solid #6c5f86; border-bottom-width: 3px; border-radius: 5px; box-shadow: none; }
.ar-on .battle .act-sep { background: var(--ar-line); }
.ar-on .battle .action-bar .card { border: 1px solid var(--ar-edge); border-radius: 0; background: rgba(13, 10, 20, 0.7); box-shadow: none; }
.ar-on .battle .action-bar .card .name { font: 700 13px/1.1 var(--ar-cap); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ar-cream); }
.ar-on .battle .action-bar .card.picked { border: 2px solid var(--ar-gold); background: rgba(40, 29, 14, 0.94); }
.ar-on .battle .hint-line { font: 500 17px/1.2 var(--ar-text); color: var(--ar-cream); text-shadow: 0 2px 0 #000, 0 0 12px rgba(0, 0, 0, 0.9); }

/* ------------------------------------------------------------------ the chronicle */
.ar-on .battle .chronicle.panel { background: linear-gradient(180deg, rgba(26, 20, 38, 0.95), rgba(12, 9, 19, 0.97)); border: 1px solid var(--ar-line); border-image: none; border-radius: 0; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); }
.ar-on .battle .chronicle.docked { padding: 8px 14px 10px; }
.ar-on .battle .chron-head .h2 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; font: 700 14px/1 var(--ar-cap); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ar-gold); border: 0; background: none; text-shadow: none; }
.ar-on .battle .chron-head .h2::before { content: ""; display: block; width: 24px; height: 2px; background: var(--ar-gold); flex: none; position: static; }
/* (the v3 kit's feather before its title, in place of the dash) */
.ar-on .battle .chron-head .h2::before { width: 20px; height: 20px; background: url(../assets/art/ui-v3/fight/chronicle/mark.webp) 50% 50% / contain no-repeat; image-rendering: pixelated; }
.ar-on .battle .chron-clock { font: 700 14px/1 var(--ar-text); color: var(--ar-dim); }
.ar-on .battle .chronicle .log { font: 500 15px/1.4 var(--ar-text); color: var(--ar-cream); scrollbar-width: thin; scrollbar-color: var(--ar-line2) transparent; }
.ar-on .battle .chronicle .log .log-group { margin-top: 8px; padding: 4px 10px; font: 700 12px/1 var(--ar-cap); letter-spacing: 0.18em; color: var(--ar-cream); border-radius: 0; }
.ar-on .battle .chronicle .log .lg-time, .ar-on .battle .chronicle .log .log-time { font: 600 13px/1 var(--ar-text); letter-spacing: 0; color: var(--ar-mute); }
.ar-on .battle .chronicle .log .lg { padding-top: 1px; padding-bottom: 1px; }
.ar-on .battle .chronicle .log .lg-txt { font: inherit; }
.ar-on .battle .chronicle .log .lg.lg-auto { font-weight: 700; text-shadow: none; color: #d8f6ff; background: rgba(42, 138, 160, 0.28); }
.ar-on .battle .chronicle .input { font: 500 16px/1.2 var(--ar-text); border-radius: 0; }

/* ------------------------------------------------------------------ the champion select (the draft)
   its letters and plates Arena's; where things sit is its own (ui/screens/match.js) */
.ar-on .dr { --nx-ui: var(--ar-text); --font-text: var(--ar-text); --font-label: var(--ar-cap); --font-title: var(--ar-cap); font-family: var(--ar-text); font-size: 15px; }
.ar-on .dr :is(.dr-head, .dr-team, .dr-grid, .dr-preview, .dr-steps, .dr-slot, .champ-tile, .dr-ban, .btn, input) { border-radius: 0; }
.ar-on .dr :is(.dr-head, .dr-team, .dr-preview) { background: linear-gradient(180deg, rgba(30, 23, 44, 0.95), rgba(14, 10, 22, 0.97)); border-color: var(--ar-line); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }
.ar-on .dr .dr-title .t { font: 800 30px/1.05 var(--ar-cap); letter-spacing: 0.05em; }
.ar-on .dr .dr-team-head b { font: 700 20px/1.1 var(--ar-cap); letter-spacing: 0.05em; }
.ar-on .dr .dr-grid { background: rgba(13, 10, 20, 0.82); border: 1px solid var(--ar-line); }
.ar-on .dr .champ-tile { border: 1px solid var(--ar-edge); }
.ar-on .dr .champ-tile:not(.disabled):hover { border-color: var(--ar-line2); }
.ar-on .dr .champ-tile.chosen { border-color: var(--ar-gold); box-shadow: 0 0 0 2px var(--ar-gold), 0 0 26px rgba(209, 171, 91, 0.35); }
.ar-on .dr .dr-buttons .btn.primary, .ar-on .dr .dr-buttons .btn.teal { color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border-color: #f0d9a0; }
.ar-on .dr .dr-buttons .btn:disabled { filter: grayscale(1) brightness(0.6); }

/* ------------------------------------------------------------------ the results (ui/screens/results.js) */
.ar-on #app > .screen.screen-results { left: 0 !important; right: 0 !important; top: 0 !important; bottom: 0 !important; width: auto !important; max-width: none !important; max-height: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: radial-gradient(ellipse at 28% 46%, rgba(40, 28, 10, 0.5), rgba(8, 5, 14, 0.9) 62%), rgba(8, 5, 14, 0.86) !important; }
/* (a win or a loss: the v3 art's place behind, dimmed so the results read; ui/screens/results.js --res-scene) */
.ar-on #app > .screen.screen-results[style*='--res-scene'] { background: linear-gradient(rgba(8, 5, 14, 0.72), rgba(8, 5, 14, 0.82)), var(--res-scene) center / cover no-repeat, #08050e !important; }
.ar-on:not(.ar-phone) #app > .screen.screen-results > .screen-body { zoom: var(--nx-zoom, 1); }
.ar-on .screen-results .screen-body:has(.nx-res-page) { padding: 22px 36px 18px; }
.ar-on .screen-results .screen-body > .nx-res-page { max-width: none; width: 100%; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 14px 32px; }
.ar-on .screen-results .nx-res-left { gap: 6px; justify-content: flex-start; padding-top: 0; overflow: hidden; }
.ar-on .screen-results .nx-kicker { font: 700 15px/1 var(--ar-cap); letter-spacing: 0.24em; color: var(--ar-gold); }
.ar-on .screen-results .nx-res-left .nx-res-title { font: 800 clamp(64px, 6.6vw, 112px)/0.95 var(--ar-cap); letter-spacing: 0.04em; }
.ar-on .screen-results .nx-res-left .nx-res-title.long { font-size: clamp(38px, 4vw, 66px); }
.ar-on .screen-results .nx-res-grade { font: 700 15px/1 var(--ar-cap); letter-spacing: 0.2em; color: var(--ar-dim); }
.ar-on .screen-results .nx-res-grade .num { font: 700 20px/1 var(--ar-text); letter-spacing: 0; color: var(--ar-cream); }
.ar-on .screen-results .nx-res-mvp { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; margin-top: 4px; }
.ar-on .screen-results .nx-res-mvp canvas.nx-fig { filter: drop-shadow(0 22px 18px rgba(0, 0, 0, 0.6)); }
.ar-on .screen-results .nx-res-mvp > small { font: 700 13px/1 var(--ar-cap); letter-spacing: 0.26em; text-transform: uppercase; color: var(--ar-gold); }
.ar-on .screen-results .nx-res-mvp > b { font: 800 30px/1.05 var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-cream); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.7); }
.ar-on .screen-results .nx-res-quote { font: italic 500 17px/1.3 var(--ar-text); color: var(--ar-dim); }
/* (the crown right over its head, in the column's flow: wherever the figure ends up) */
.ar-on .screen-results .nx-res-mvp .res-mvp-crown { position: relative; inset: auto; transform: none; margin: 0 0 -6px; z-index: 2; flex: none; }

.ar-on .screen-results .nx-res-right { background: linear-gradient(180deg, rgba(30, 23, 44, 0.95), rgba(14, 10, 22, 0.97)); border: 1px solid var(--ar-line); box-shadow: inset 0 1px 0 rgba(226, 194, 124, 0.18);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.ar-on .screen-results .nx-res-pane { padding: 6px 22px 16px; font: 500 16px/1.35 var(--ar-text); color: var(--ar-cream); scrollbar-width: thin; scrollbar-color: var(--ar-line2) transparent; }
.ar-on .screen-results .nx-res-pane .ms-tabbed .ms-tabs { background: none; border-bottom: 1px solid var(--ar-line); }
.ar-on .screen-results .nx-res-pane .tabs > .btn { min-height: 0; height: 46px; padding: 0 16px; font: 700 14px/1 var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-dim); background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; box-shadow: none; }
.ar-on .screen-results .nx-res-pane .tabs > .btn .lbl { font: inherit; letter-spacing: inherit; color: inherit; }
.ar-on .screen-results .nx-res-pane .tabs > .btn:hover { color: var(--ar-cream); filter: none; }
.ar-on .screen-results .nx-res-pane .tabs > .btn.on { color: var(--ar-gold2); border-bottom-color: var(--ar-gold); }
.ar-on .screen-results .nx-res-pane .h2, .ar-on .screen-results .nx-res-pane .nx-sec { font: 700 14px/1 var(--ar-cap); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ar-gold); }
.ar-on .screen-results .nx-res-pane :is(.num, .bar b) { font-family: var(--ar-text); }
.ar-on .screen-results .nx-res-pane .small, .ar-on .screen-results .nx-res-pane .xs { font-family: var(--ar-text); }
.ar-on .screen-results .nx-res-pane .panel { border-radius: 0; }

/* the buttons under it */
.ar-on .screen-results .nx-res-page > .screen-foot { gap: 12px; padding: 6px 0 0; }
.ar-on .screen-results .screen-foot .btn { min-height: 0; height: 60px; padding: 0 28px; display: inline-flex; align-items: center; gap: 12px; font: 700 19px/1 var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-cream); text-shadow: none;
  background: linear-gradient(180deg, rgba(201, 206, 214, 0.07), transparent 38px), #19191f; border: 1px solid #575b61; border-image: none; border-radius: 0; box-shadow: inset 0 1px 0 rgba(226, 194, 124, 0.24); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: filter 0.12s, transform 0.12s; }
.ar-on .screen-results .screen-foot .btn .lbl { font: inherit; letter-spacing: inherit; color: inherit; }
.ar-on .screen-results .screen-foot .btn:hover:not(:disabled) { filter: none; border-color: var(--ar-gold); background: linear-gradient(180deg, rgba(201, 206, 214, 0.08), transparent 38px), #202027; }
.ar-on .screen-results .screen-foot .btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #f0d391 0%, #d6ab55 55%, #b48a3b 100%); border-color: #f0d9a0; }
.ar-on .screen-results .screen-foot .btn:active { transform: translateY(2px); }
.ar-on .screen-results .screen-foot .btn.primary { min-width: 280px; justify-content: center; font-size: 24px; letter-spacing: 0.22em; color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border-color: #f0d9a0; }
.ar-on .screen-results .screen-foot .btn:disabled { filter: grayscale(1) brightness(0.6); }
.ar-on .screen-results .screen-foot .btn .kbd { min-width: 30px; height: 26px; padding: 0 7px; font: 700 13px/1 var(--ar-text); color: var(--ar-cream); background: #2a2140; border: 1px solid #6c5f86; border-bottom-width: 3px; border-radius: 5px; }

/* ------------------------------------------------------------------ phones */
.ar-on.ar-phone .battle .roster { box-shadow: none; }
.ar-on.ar-phone .battle .chronicle .log { font-size: 14px; }
.ar-on.ar-phone .screen-results .screen-body:has(.nx-res-page) { padding: 10px; }
.ar-on.ar-phone .screen-results .nx-res-left .nx-res-title { font-size: 52px; }
.ar-on.ar-phone .screen-results .nx-res-left .nx-res-title.long { font-size: 32px; }
.ar-on.ar-phone .screen-results .nx-res-mvp { flex: none; }
.ar-on.ar-phone .screen-results .nx-res-right { clip-path: none; }
.ar-on.ar-phone .screen-results .nx-res-pane { padding: 4px 10px 12px; font-size: 15px; }
.ar-on.ar-phone .screen-results .screen-foot .btn { height: 48px; padding: 0 14px; font-size: 14px; letter-spacing: 0.1em; }
.ar-on.ar-phone .screen-results .screen-foot .btn.primary { min-width: 0; flex: 1 1 100%; font-size: 18px; order: -1; }
/* The phone sweep (17 Nov): on a phone the hint over the tray is read whole, on two or three lines (it was one line
   cut after "Three in a row is Ral…"), and a champion's name in the tray is whole ("Frost Wi…"). */
.ar-on .narrow .hint-line { width: 94vw; max-width: 94vw; font-size: 13.5px; line-height: 1.2; white-space: normal; text-wrap: balance; overflow: visible; text-overflow: clip; padding-bottom: 5px; }
html.ar-on[data-theme] .narrow .nx-place-card > .card .name, html.ar-on[data-theme] .narrow .battle .action-bar .card .name { max-width: none; width: 100%; font-size: 8px; line-height: 1.05; letter-spacing: 0; white-space: normal; text-wrap: balance; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
html.ar-on[data-theme] .narrow .nx-place-card > .card { padding-left: 1px; padding-right: 1px; }
/* (23 Nov, your report: the cards' heights differed, a long name ran to two or three lines, cut anywhere: "BEASTMASTE R".
   Every name now has the same two lines, a long word split at a syllable, "BEAST-MASTER" (i18n/hyphen.js's soft
   hyphens: a phone's own hyphenation isn't always there); cut anywhere only where it can't be) */
html.ar-on[data-theme] .narrow .nx-place-card > .card .name { letter-spacing: -0.02em; overflow-wrap: anywhere; hyphens: manual; -webkit-line-clamp: 2; height: 2.1em; display: -webkit-box; align-content: center; }
/* The fight's two teams on a phone, reworked (17 Nov, your word: the box ran into the board and was ugly). No box
   round the row any more: each champion is a small card of its own, its picture over its HP and its energy, its
   team's colour along the bottom. The one chosen is framed in gold and lifted, a fallen one is grey with a cross, an
   Ultimate ready shows a gold gem in the corner, and the team that is not playing sits a little darker. The rows
   stand clear of the board (screens/match.js phoneBoard). */
html.ar-on[data-theme] .battle.narrow .roster { gap: 3px; padding: 0; overflow: visible; background: none; border: 0; box-shadow: none; }
html.ar-on[data-theme] .battle.narrow .roster.active { border: 0; box-shadow: none; }
html.ar-on[data-theme] .battle.narrow .roster-hero { position: relative; display: block; flex: none; width: var(--rh, 48px); height: calc(var(--rh, 48px) + 9px); margin: 0; padding: 0; overflow: hidden; background: #0c0913; border: 0; border-bottom: 2px solid var(--blue); border-radius: 3px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55); transition: transform 0.12s ease-out, border-color 0.12s, filter 0.2s; }
html.ar-on[data-theme] .battle.narrow .roster-hero.red { border-bottom-color: var(--team-red); }
html.ar-on[data-theme] .battle.narrow .roster-hero canvas { display: block; width: 100% !important; height: var(--rh, 48px) !important; border: 0; border-radius: 0; background: none; }
html.ar-on[data-theme] .battle.narrow .roster-hero > .rh-bars { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; background: #0c0913; }
html.ar-on[data-theme] .battle.narrow .roster-hero .rh-bars .bar { width: 100%; height: 5px; margin: 0; border: 0; border-radius: 0; background: #241b3a; box-shadow: none; }
html.ar-on[data-theme] .battle.narrow .roster-hero .rh-bars .bar.energy { height: 3px; }
html.ar-on[data-theme] .battle.narrow .roster-hero .rh-bars .bar b { display: none; }
html.ar-on[data-theme] .battle.narrow .roster:not(.active) .roster-hero:not(.dead) { filter: brightness(0.8) saturate(0.9); }
html.ar-on[data-theme] .battle.narrow .roster-hero.active { border-bottom-color: #e2c27c; box-shadow: 0 0 0 2px #e2c27c, 0 0 12px rgba(226, 194, 124, 0.5); transform: translateY(-2px); z-index: 1; filter: none; }
html.ar-on[data-theme] .battle.narrow .roster.right .roster-hero.active { transform: translateY(2px); }
html.ar-on[data-theme] .battle.narrow .roster-hero.dead { border-bottom-color: #3d374c; box-shadow: none; filter: none; }
html.ar-on[data-theme] .battle.narrow .roster-hero.dead canvas { filter: grayscale(1) brightness(0.45); }
html.ar-on[data-theme] .battle.narrow .roster-hero.dead > .rh-bars { display: none; }
html.ar-on[data-theme] .battle.narrow .roster-hero.dead::after { content: '\2715'; position: absolute; inset: 0; display: grid; place-items: center; font: 800 20px/1 system-ui, sans-serif; color: #ff7b70; text-shadow: 0 1px 0 #000, 0 0 6px #000; }
html.ar-on[data-theme] .battle.narrow .roster-hero[data-note='ult']:not(.dead)::before { content: ''; position: absolute; z-index: 1; top: 4px; right: 4px; width: 8px; height: 8px; background: #e2c27c; transform: rotate(45deg); box-shadow: 0 0 0 1px #1a1309, 0 0 7px #e2c27c; }

/* ------------------------------------------------------------------ the skin choice
   The last pick is in: champion select stays up for a few seconds (ui/screens/match.js renderLocked, game/skin-pick.js),
   its head counting down, its pool no longer answering. In the player's roster a champion they hold a skin for is framed
   in gold with how many looks it has; a press opens a small window by it with those looks, the one worn marked. Nothing
   of it is on the fight screen. Written without Arena's frame in front so the Legacy look gets it too; the window's own
   pixels, as the rest of the fight. */
.battle .dr .dr-slot.sp-can { cursor: pointer; border: 2px solid var(--ar-gold, #f2c14e); box-shadow: 0 0 0 1px rgba(255, 224, 138, 0.3), 0 0 14px rgba(242, 193, 78, 0.35); }
.battle .dr .dr-slot.sp-can:hover, .battle .dr .dr-slot.sp-can:focus-visible { border-color: var(--ar-gold2, #ffe08a); outline: none; filter: brightness(1.15); }
.battle .dr .dr-slot.sp-can.picked { border-color: var(--ar-gold2, #ffe08a); box-shadow: 0 0 0 2px var(--ar-gold, #f2c14e), 0 0 20px rgba(242, 193, 78, 0.6); }
.battle .dr .sp-n { position: absolute; top: 2px; right: 2px; min-width: 20px; height: 20px; padding: 0 4px; display: grid; place-items: center; font: 800 13px/1 var(--ar-text, Georgia, serif); color: #2a1802; background: linear-gradient(180deg, #ffe680, #ffc928 55%, #e89a12); border: 1px solid #fff2b0; pointer-events: none; }
.battle .dr-locked .dr-pool-off { opacity: 0.32; filter: saturate(0.5); pointer-events: none; }
.battle .dr-hold { display: flex; align-items: center; gap: 12px; }
.battle .dr-hold .n { min-width: 2ch; font: 800 40px/1 var(--ar-text, Georgia, serif); font-variant-numeric: tabular-nums; text-align: right; }
html[data-theme='neon'] .battle .dr-hold .n { color: var(--ar-gold2); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7); }
.battle .dr-hold .bar { display: block; width: 200px; height: 12px; background: #2a2140; border: 1px solid var(--ar-edge, #3a3050); }
.battle .dr-hold .bar i { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, #ffe680, #ffc928 55%, #e89a12); transition: width 0.1s linear; }
.battle .dr-hold.low .n, html[data-theme='neon'] .battle .dr-hold.low .n { color: #e5484d; }
.battle .dr-hold.low .bar i { background: linear-gradient(180deg, #ffb09c, #ff6f55); }
.battle .dr-hold-bar { gap: 14px; }
.battle .dr-hold-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.battle .dr-hold-words b { font: 700 19px/1.1 var(--ar-cap, Georgia, serif); letter-spacing: 0.06em; }
.battle .dr-hold-words small { font: 500 15px/1.2 var(--ar-text, Georgia, serif); }
html[data-theme='neon'] .battle .dr-hold-words b { color: var(--ar-gold2); }
html[data-theme='neon'] .battle .dr-hold-words small { color: var(--ar-cream); }
/* (Legacy: champion select's plates are parchment there, and their own letters are pale) */
html[data-theme='legacy'] .battle .dr-hold .n, html[data-theme='legacy'] .battle .dr-hold-words :is(b, small) { color: #3b2414; text-shadow: none; }
.battle .dr-hold-bar .dr-buttons { flex: none; }
.battle .sp-ready { flex: none; min-width: 120px; min-height: 42px; }
.battle .skin-pop { position: absolute; z-index: 9; box-sizing: border-box; padding: 8px 10px 10px; color: var(--ar-cream, #f6ecd8); background: linear-gradient(180deg, rgba(30, 23, 44, 0.98), rgba(14, 10, 22, 0.99)); border: 1px solid var(--ar-gold, #f2c14e); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(242, 193, 78, 0.18); }
.battle .skin-pop .sp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.battle .skin-pop .sp-head b { min-width: 0; font: 700 17px/1.15 var(--ar-cap, Georgia, serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ar-gold2, #ffe08a); overflow-wrap: anywhere; }
.battle .skin-pop .sp-x { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font: 700 22px/1 var(--ar-text, Georgia, serif); color: var(--ar-cream, #f6ecd8); background: rgba(13, 10, 20, 0.88); border: 1px solid var(--ar-edge, #3a3050); cursor: pointer; }
.battle .skin-pop .sp-x:hover, .battle .skin-pop .sp-x:focus-visible { color: #2a1802; background: var(--ar-gold, #f2c14e); outline: none; }
.battle .skin-pop .sp-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.battle .skin-pop .sp-opt { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 96px; padding: 6px 4px 5px; color: var(--ar-cream, #f6ecd8); text-align: center; background: rgba(13, 10, 20, 0.7); border: 1px solid var(--ar-edge, #3a3050); cursor: pointer; transition: border-color 0.12s, transform 0.12s; }
.battle .skin-pop .sp-opt canvas { width: 64px; height: 64px; image-rendering: pixelated; }
.battle .skin-pop .sp-opt b { font: 700 13px/1.1 var(--ar-cap, Georgia, serif); letter-spacing: 0.03em; overflow-wrap: anywhere; }
.battle .skin-pop .sp-opt small { min-height: 14px; font: 500 12px/1.15 var(--ar-text, Georgia, serif); color: var(--ar-dim, #b9aec6); }
.battle .skin-pop .sp-opt:hover, .battle .skin-pop .sp-opt:focus-visible { border-color: var(--ar-line2, #8a6f3a); transform: translateY(-2px); outline: none; }
.battle .skin-pop .sp-opt.on { border: 2px solid var(--ar-gold, #f2c14e); padding: 5px 3px 4px; background: rgba(40, 29, 14, 0.92); }
.battle .skin-pop .sp-opt.on small { color: var(--ar-green, #7fd36a); }
/* (a phone: the countdown beside the title, the words and Ready on one line that stays on top as the select scrolls, five
   looks side by side in 390 px with each name whole on its own lines) */
@media (max-width: 700px) {
  .battle .dr-head .dr-hold { grid-area: rand; align-self: center; gap: 8px; }
  .battle .dr-hold .n { font-size: 30px; }
  .battle .dr-hold .bar { width: 64px; height: 10px; }
  .ar-on .battle .dr-locked .dr-title .t { font-size: 18px; }
  .battle .dr-hold-bar { justify-content: space-between; gap: 8px; padding: 6px 8px; }
  .battle .dr-hold-words b { font-size: 15px; }
  .battle .dr-hold-words small { font-size: 13px; }
  .battle .dr-hold-bar .dr-buttons .sp-ready { min-width: 96px; min-height: 42px; padding: 2px 12px; }
  .battle .dr .sp-n { top: 1px; right: 1px; min-width: 15px; height: 15px; padding: 0 2px; font-size: 10.5px; }
  .battle .skin-pop { padding: 6px 6px 8px; }
  .battle .skin-pop .sp-opts { gap: 4px; }
  .battle .skin-pop .sp-opt { width: 68px; padding: 4px 2px; }
  .battle .skin-pop .sp-opt.on { padding: 3px 1px; }
  .battle .skin-pop .sp-opt canvas { width: 56px; height: 56px; }
  .battle .skin-pop .sp-opt b { font-size: 11.5px; }
  .battle .skin-pop .sp-opt small { font-size: 10.5px; }
  .battle .skin-pop .sp-x { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .battle .skin-pop .sp-opt, .battle .dr-hold .bar i { transition: none; } }
html.reduce-motion .battle .skin-pop .sp-opt, html.reduce-motion .battle .dr-hold .bar i { transition: none; }

/* ------------------------------------------------------------------ the results' layout of 19 Nov (the owner's pick of the
   sample, in today's look). A computer: a tall plate on the left with the mode line, the title, the stars and the grade,
   the MVP standing with its name, quote and one line of what it did; on the right what you won in one bar (the tiles and
   the level's bar), your champions as cards, what else happened as tiles three across, and the buttons at the foot on the
   right. The game's other numbers stay one tab away over it (Summary is the first). A phone: the same parts stacked, the
   buttons held at the foot. */
.ar-on:not(.ar-phone) .screen-results .screen-body > .nx-res-page { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); grid-template-rows: minmax(0, 1fr) auto; gap: 14px 22px; }
.ar-on:not(.ar-phone) .screen-results .nx-res-left { grid-column: 1; grid-row: 1 / 3; justify-content: flex-start; padding: 26px 18px 20px; border: 1px solid var(--ar-line); box-shadow: inset 0 1px 0 rgba(226, 194, 124, 0.18);
  background: radial-gradient(ellipse 70% 36% at 50% 100%, rgba(209, 171, 91, 0.12), transparent 70%), linear-gradient(180deg, rgba(30, 23, 44, 0.95), rgba(14, 10, 22, 0.97));
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.ar-on:not(.ar-phone) .screen-results .nx-res-left .nx-res-title { font-size: clamp(54px, 5.2vw, 96px); }
.ar-on:not(.ar-phone) .screen-results .nx-res-right { grid-column: 2; grid-row: 1; }
.ar-on:not(.ar-phone) .screen-results .nx-res-page > .screen-foot { grid-column: 2; grid-row: 2; justify-content: flex-end; }
.ar-on:not(.ar-phone) .screen-results .nx-res-page > .screen-foot .btn { height: 56px; padding: 0 22px; font-size: 17px; }
.ar-on:not(.ar-phone) .screen-results .nx-res-page > .screen-foot .btn.primary { min-width: 230px; font-size: 20px; }
.ar-on .screen-results .nx-res-mvp-line { font: 500 15px/1.3 var(--ar-text); color: var(--ar-dim); }
/* what you won: one bar, the tiles then the level's bar */
.ar-on:not(.ar-phone) .screen-results .nx-res-summary .nx-res-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 22px; }
.ar-on:not(.ar-phone) .screen-results .nx-res-summary .nx-res-panel::before { content: ''; grid-row: 1; grid-column: 1 / -1; align-self: stretch; margin: -2px -8px; background: rgba(13, 10, 20, 0.62); border: 1px solid var(--ar-edge); }
.ar-on:not(.ar-phone) .screen-results .nx-res-summary .nx-res-tiles { grid-row: 1; grid-column: 1; z-index: 1; gap: 18px; padding: 8px 0 8px 4px; }
.ar-on:not(.ar-phone) .screen-results .nx-res-summary .nx-res-top { grid-row: 1; grid-column: 2; z-index: 1; min-width: 0; padding: 8px 6px 8px 0; }
.ar-on:not(.ar-phone) .screen-results .nx-res-summary .nx-res-tiles:empty + .nx-res-top, .ar-on:not(.ar-phone) .screen-results .nx-res-summary .nx-res-top:only-child { grid-column: 1 / -1; }
.ar-on:not(.ar-phone) .screen-results .nx-res-summary .nx-res-top .nx-res-bars { flex: 1; min-width: 0; }
.ar-on:not(.ar-phone) .screen-results .nx-res-summary .nx-rew { flex: none; width: auto; padding: 2px 4px; background: none; border: 0; }
.ar-on:not(.ar-phone) .screen-results .nx-res-summary .nx-res-team { grid-row: 2; grid-column: 1 / -1; align-self: stretch; }
.ar-on:not(.ar-phone) .screen-results .nx-res-summary .nx-res-lines { grid-row: 3; grid-column: 1 / -1; padding-top: 0; }
/* your team's cards (19 Nov, the owner: the figures "Smaller", ui/screens/results.js teamBox): the figure's room only as
   tall as the figure, the cards no taller than what is in them, so what else happened gets the height */
.ar-on:not(.ar-phone) .screen-results .nx-res-summary .nx-res-panel { flex: none; }
.ar-on:not(.ar-phone) .screen-results .nx-res-summary .nx-res-team { flex: none; align-self: start; }
.ar-on:not(.ar-phone) .screen-results .nx-res-summary .nx-rt-grid.tall { flex: none; grid-auto-rows: auto; }
.ar-on:not(.ar-phone) .screen-results .nx-rt-grid.tall .pic { flex: none; min-height: 0; padding: 6px 0; }
/* what else happened: tiles three across */
.ar-on .screen-results .nx-res-summary .res-also-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ar-on .screen-results .nx-res-summary .res-also-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 6px 12px; min-height: 0; }
.ar-on .screen-results .nx-res-summary .res-also-row .gets { grid-column: 1 / -1; }
.ar-on .screen-results .nx-res-summary .res-also-row .tx b { overflow-wrap: anywhere; }

/* a phone: stacked, the title's plate first, the buttons held at the foot of the window */
.ar-on.ar-phone .screen-results .nx-res-hero { padding: 16px 12px 12px; border: 1px solid var(--ar-line); background: linear-gradient(180deg, rgba(30, 23, 44, 0.95), rgba(14, 10, 22, 0.97)); }
.ar-on.ar-phone .screen-results .res-also-list { grid-template-columns: minmax(0, 1fr); }
.ar-on.ar-phone .screen-results .screen-body { padding-bottom: calc(var(--safe-b, 0px) + 150px); }
.ar-on.ar-phone .screen-results .screen-foot { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 12px calc(var(--safe-b, 0px) + 10px); gap: 8px;
  background: linear-gradient(180deg, rgba(7, 6, 10, 0), rgba(7, 6, 10, 0.95) 24%); }
.ar-on.ar-phone .screen-results .screen-foot .btn { height: 46px; flex: 1 1 calc(33% - 8px); min-width: 0; padding: 0 8px; font-size: 12.5px; letter-spacing: 0.06em; }
.ar-on.ar-phone .screen-results .screen-foot .btn.primary { flex: 1 1 100%; height: 52px; }
.ar-on:not(.ar-phone) .screen-results .nx-res-page > .screen-foot { flex-wrap: nowrap; gap: 10px; }
.ar-on:not(.ar-phone) .screen-results .nx-res-page > .screen-foot .btn { flex: 0 1 auto; height: 54px; padding: 0 16px; font-size: 15px; letter-spacing: 0.1em; white-space: nowrap; }
/* (one line each: "Main menu" and "Watch replay" broke in two on a computer) */
@media (max-width: 1440px) {
  .ar-on:not(.ar-phone) .screen-results .nx-res-page > .screen-foot .btn { padding: 0 12px; font-size: 13px; letter-spacing: 0.06em; }
  .ar-on:not(.ar-phone) .screen-results .nx-res-page > .screen-foot .btn.primary { min-width: 170px; font-size: 16px; letter-spacing: 0.12em; }
}
.ar-on:not(.ar-phone) .screen-results .nx-res-page > .screen-foot .btn.primary { min-width: 200px; font-size: 18px; letter-spacing: 0.16em; }
.ar-on.ar-phone .screen-results .screen-foot .btn { font-size: 12px; letter-spacing: 0.04em; line-height: 1.1; white-space: normal; }
.ar-on.ar-phone .screen-results .screen-foot .btn .lbl { white-space: normal; text-align: center; }

/* ------------------------------------------------------------------ the fight's layout of 19 Nov (the owner's pick of the
   sample, in today's look; ui/screens/match.js layout, phoneBoard). A computer: the board up to 560 px, the actions as
   wide as the board, the chronicle docked along the bottom as before (the owner, 19 Nov). A phone: the turn strip in one
   row (the menu, the turn and its clock, the chronicle), the two teams' small pictures between the mascots as before (the
   owner, 19 Nov: the big boxes undone), the actions as wide as the board. */
.ar-on .battle:not(.narrow) .action-bar:not(:empty) { justify-content: center; box-sizing: border-box; }

/* a phone: the turn strip, one row */
html.ar-on[data-theme] .battle.narrow .hud-top { flex-wrap: wrap; align-items: center; gap: 6px 0; padding: 6px 8px 0; }
html.ar-on[data-theme] .battle.narrow .hud-top > .btn.icon { flex: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
html.ar-on[data-theme] .battle.narrow .hud-top > .btn.chron-btn { order: 3; }
html.ar-on[data-theme] .battle.narrow .hud-top .turn-banner { order: 1; flex: 1 1 0; min-width: 0; min-height: 44px; height: 44px; margin-left: 6px; padding: 4px 10px; text-align: left; justify-content: center; border-right: 0; box-shadow: none; }
html.ar-on[data-theme] .battle.narrow .hud-top .turn-banner .t { font-size: 13px; line-height: 1.15; letter-spacing: 0.06em; overflow-wrap: anywhere; }
html.ar-on[data-theme] .battle.narrow .hud-top .turn-banner .xs, html.ar-on[data-theme] .battle.narrow .hud-top .turn-banner .small { font-size: 11px; line-height: 1.15; }
html.ar-on[data-theme] .battle.narrow .hud-top .timer { order: 2; flex: none; flex-direction: row; align-items: center; gap: 6px; height: 44px; min-width: 0; margin-right: 6px; padding: 0 10px 0 6px; font-size: 22px;
  background: linear-gradient(180deg, rgba(30, 23, 44, 0.95), rgba(14, 10, 22, 0.97)); border: 1px solid var(--ar-line); border-left: 0; }
html.ar-on[data-theme] .battle.narrow .hud-top .timer.idle { visibility: visible; color: transparent; }
html.ar-on[data-theme] .battle.narrow .hud-top .timer .timer-bar { width: 26px; height: 6px; }
html.ar-on[data-theme] .battle.narrow .hud-top .hud-tools { order: 4; flex: 1 1 100%; display: flex; justify-content: center; gap: 6px; }
html.ar-on[data-theme] .battle.narrow .hud-top .hud-tools[hidden] { display: none; }
html.ar-on[data-theme] .battle.narrow .hud-top .hud-tools .btn { min-height: 44px; min-width: 44px; }

/* the actions, as wide as the board */
html.ar-on[data-theme] .battle.narrow .action-bar:not(:empty) { box-sizing: border-box; display: flex; justify-content: space-between; gap: 0; padding: 6px 2px; }
html.ar-on[data-theme] .battle.narrow .action-bar .nx-act-wrap { flex: 1 1 0; max-width: none; min-width: 44px; justify-content: center; }
html.ar-on[data-theme] .battle.narrow .action-bar .nx-act-wrap > .act-round { flex: 0 1 48px; max-width: 48px; min-width: 44px; }
html.ar-on[data-theme] .battle.narrow .action-bar .act-round { min-width: 44px; max-width: 48px; }
html.ar-on[data-theme] .battle.narrow .action-bar .act-sep { flex: none; margin: 4px 1px; }
/* (the MVP's name whole, never cut: "Chronomancer" set smaller on its line) */
.ar-on .screen-results .nx-res-mvp > b { max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; text-align: center; font-size: clamp(20px, 2.1vw, 30px); }
.ar-on.ar-phone .screen-results .nx-res-mvp > b { font-size: 24px; }
.ar-on.ar-phone .screen-results .screen-foot .btn:not(.primary) { font-size: 11px; letter-spacing: 0.02em; }
/* (20 Nov, the check run: on a phone the buttons broke their words in two, "Main / menu", "Share / replay": arena-skin.css's
   big button, 19 px wide-spaced, outweighed the rules above. Two by two, 48 px tall: each label on one line, a longer
   language's or a long primary's ("Accept rematch · 9") on two, never cut) */
html[data-theme='neon'].ar-on.ar-phone #app > .screen.screen-results .screen-foot .btn.big { flex: 1 1 calc(50% - 4px); min-height: 48px; height: 48px; padding: 0 10px; justify-content: center; gap: 8px; font-size: 15px; letter-spacing: 0.08em; line-height: 1.1; }
/* (and the gap under the tabs on a computer: the Summary's first panel straight under them, 12 px down, not 30) */
.ar-on:not(.ar-phone) .screen-results .ms-tabs + .nx-res-summary { margin-top: -6px; }
.ar-on:not(.ar-phone) .screen-results .nx-res-summary > .panel:first-child { margin-top: 0; }
/* (your team's cards: the MVP tag no taller than the name's line, so its card's lines stay level with the others') */
.ar-on .screen-results .nx-rt-card .top .tag { margin-block: -4px; }
/* (...and a champion that earned nothing, "—", keeps the line of a "+12": the number's height, 19 px on a tall screen) */
.ar-on .screen-results .nx-rt-card .gain { min-height: 16px; }
@media (min-height: 900px) { .ar-on .screen-results .nx-rt-card .gain { min-height: 19px; } }

/* ---- the pick screen's champions on the v3 card (your art, 21 Nov): its frame in its tier's metal (one not yours: bronze, dimmed),
   its faction's ground, its tier on the card's plaque; the same pieces as Heroes' cards (styles/arena-heroes.css), smaller */
.ar-on .dr .champ-tile.v3 { container-type: inline-size; border: 0; background: #0d0a14 var(--ground) 50% 0 / cover no-repeat;
  --ground: url(../assets/art/ui-v3/ui/card/ground-neutral.webp); --corner: url(../assets/art/ui-v3/ui/card/frame-t1-corner.webp);
  --eh: url(../assets/art/ui-v3/ui/card/frame-t1-edge-h.webp); --ev: url(../assets/art/ui-v3/ui/card/frame-t1-edge-v.webp); --badge: url(../assets/art/ui-v3/ui/card/badge-t1.webp); }
.ar-on .dr .champ-tile.v3 > * { --u: calc(100cqw / 600); }
.ar-on .dr .champ-tile.v3.f-order { --ground: url(../assets/art/ui-v3/ui/card/ground-order.webp); }
.ar-on .dr .champ-tile.v3.f-wild { --ground: url(../assets/art/ui-v3/ui/card/ground-wild.webp); }
.ar-on .dr .champ-tile.v3.f-arcane { --ground: url(../assets/art/ui-v3/ui/card/ground-arcane.webp); }
.ar-on .dr .champ-tile.v3.f-shadow { --ground: url(../assets/art/ui-v3/ui/card/ground-shadow.webp); }
.ar-on .dr .champ-tile.v3.locked { --ground: url(../assets/art/ui-v3/ui/card/ground-neutral.webp); }
.ar-on .dr .champ-tile.v3.m-2 { --corner: url(../assets/art/ui-v3/ui/card/frame-t2-corner.webp); --eh: url(../assets/art/ui-v3/ui/card/frame-t2-edge-h.webp); --ev: url(../assets/art/ui-v3/ui/card/frame-t2-edge-v.webp); --badge: url(../assets/art/ui-v3/ui/card/badge-t2.webp); }
.ar-on .dr .champ-tile.v3.m-3 { --corner: url(../assets/art/ui-v3/ui/card/frame-t3-corner.webp); --eh: url(../assets/art/ui-v3/ui/card/frame-t3-edge-h.webp); --ev: url(../assets/art/ui-v3/ui/card/frame-t3-edge-v.webp); --badge: url(../assets/art/ui-v3/ui/card/badge-t3.webp); }
.ar-on .dr .champ-tile.v3.m-4 { --corner: url(../assets/art/ui-v3/ui/card/frame-t4-corner.webp); --eh: url(../assets/art/ui-v3/ui/card/frame-t4-edge-h.webp); --ev: url(../assets/art/ui-v3/ui/card/frame-t4-edge-v.webp); --badge: url(../assets/art/ui-v3/ui/card/badge-t4.webp); }
.ar-on .dr .champ-tile.v3.m-5 { --corner: url(../assets/art/ui-v3/ui/card/frame-t5-corner.webp); --eh: url(../assets/art/ui-v3/ui/card/frame-t5-edge-h.webp); --ev: url(../assets/art/ui-v3/ui/card/frame-t5-edge-v.webp); --badge: url(../assets/art/ui-v3/ui/card/badge-t5.webp); }
.ar-on .dr .champ-tile.v3 .cn { position: absolute; z-index: 3; width: calc(96 * var(--u)); height: calc(96 * var(--u)); pointer-events: none; background: var(--corner) 0 0 / 100% 100% no-repeat; }
.ar-on .dr .champ-tile.v3 .cn.tl { left: 0; top: 0; }
.ar-on .dr .champ-tile.v3 .cn.tr { right: 0; top: 0; transform: scaleX(-1); }
.ar-on .dr .champ-tile.v3 .cn.bl { left: 0; bottom: 0; transform: scaleY(-1); }
.ar-on .dr .champ-tile.v3 .cn.br { right: 0; bottom: 0; transform: scale(-1, -1); }
.ar-on .dr .champ-tile.v3 .ed { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--eh) 0 0 / calc(96 * var(--u)) calc(24 * var(--u)) repeat-x, var(--eh) 0 100% / calc(96 * var(--u)) calc(24 * var(--u)) repeat-x,
    var(--ev) 0 0 / calc(24 * var(--u)) calc(96 * var(--u)) repeat-y, var(--ev) 100% 0 / calc(24 * var(--u)) calc(96 * var(--u)) repeat-y; }
.ar-on .dr .champ-tile.v3.m-5 .cn, .ar-on .dr .champ-tile.v3.m-5 .ed { filter: drop-shadow(0 0 2px rgba(116, 224, 226, 0.6)); }
.ar-on .dr .champ-tile.v3.locked .cn, .ar-on .dr .champ-tile.v3.locked .ed { filter: grayscale(0.7) brightness(0.6); }
.ar-on .dr .champ-tile.v3 .ct-tier { min-width: 0; width: max(26px, calc(84 * var(--u))); height: max(19px, calc(60 * var(--u))); padding: 0 0 2px; display: grid; place-items: center;
  border: 0; border-radius: 0; box-shadow: none; background: var(--badge) 0 0 / 100% 100% no-repeat; color: #fff8e8; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85); }
.ar-on .dr .champ-tile.v3.chosen { box-shadow: 0 0 0 2px var(--ar-gold), 0 0 26px rgba(209, 171, 91, 0.35); }

/* ---- the v3 kit in the fight (your art, 21 Nov): the actions' pictures fill their square as the abilities' do; the turn strip's
   places in the thin steel box, the side's colour along their foot, a gold chevron over the one playing now */
.act-round.art .act-ico img.act-pic { display: block; width: 100%; height: 100%; }
.ar-on .battle .tl-chip { position: relative; border: 4px solid transparent; border-image: url(../assets/art/ui-v3/fight/turn/slot.webp) 16 / 4px stretch;
  background: rgba(16, 12, 22, 0.88) padding-box; box-shadow: inset 0 -3px 0 var(--side, var(--blue)); outline: none; }
.ar-on .battle .tl-chip.red { --side: var(--red); }
.ar-on .battle .tl-chip.now { outline: none; background-color: rgba(44, 33, 56, 0.96); }
.ar-on .battle .tl-chip.now::before { content: ''; position: absolute; left: 50%; top: -10px; width: 16px; height: 8px; transform: translateX(-50%); background: url(../assets/art/ui-v3/fight/turn/now.webp) 0 0 / 100% 100% no-repeat; }
.ar-on .battle .tl-chip { height: 26px; }
.ar-on .battle.narrow .tl-chip { height: 24px; }

/* ---- more of the v3 kit in the fight (your art, 21 Nov): the rosters' portraits in the thin steel frame; the synergies on the
   kit's dark bar, each with its socket, the faction's gem lit once it counts (two or more), dark before */
.ar-on .battle .roster-hero > :first-child { box-sizing: border-box; border: 3px solid transparent; border-image: url(../assets/art/ui-v3/fight/roster/frame.webp) 6 / 3px stretch; }
.ar-on .dr-syn .chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px 2px 6px; border: 0; border-radius: 0; opacity: 1;
  background: url(../assets/art/ui-v3/fight/synergy/bar-cap.webp) 0 0 / auto 100% no-repeat, url(../assets/art/ui-v3/fight/synergy/bar-mid.webp) 0 0 / auto 100% repeat-x; }
.ar-on .dr-syn .chip::before { content: ''; flex: none; width: 14px; height: 14px; background: url(../assets/art/ui-v3/fight/synergy/socket-off.webp) 0 0 / 100% 100% no-repeat; }
.ar-on .dr-syn .chip.on.order::before { background-image: url(../assets/art/ui-v3/fight/synergy/socket-order.webp); }
.ar-on .dr-syn .chip.on.wild::before { background-image: url(../assets/art/ui-v3/fight/synergy/socket-wild.webp); }
.ar-on .dr-syn .chip.on.arcane::before { background-image: url(../assets/art/ui-v3/fight/synergy/socket-arcane.webp); }
.ar-on .dr-syn .chip.on.shadow::before { background-image: url(../assets/art/ui-v3/fight/synergy/socket-shadow.webp); }
.ar-on .dr-syn .chip:not(.on) { color: var(--ar-dim); }

/* (the fight's speed and pause buttons with the v3 art's gold pictures, 21 Nov) */
.battle .hud-ico { display: inline-grid; place-items: center; padding: 0 6px; }
.battle .hud-ico img { width: 22px; height: 22px; image-rendering: pixelated; pointer-events: none; }
.battle .hud-ico:not(.on) img { opacity: 0.8; }
.battle .hud-ico.on img { opacity: 1; filter: drop-shadow(0 0 4px rgba(209, 171, 91, 0.6)); }

/* (the results' word on the v3 art's ribbon, 21 Nov: the ribbon's empty middle holds it) */
.ar-on .screen-results .nx-res-ribbon { position: relative; display: grid; place-items: center; width: min(620px, 100%); aspect-ratio: 10 / 3; margin: 2px 0 4px -12px; }
.ar-on .screen-results .nx-res-ribbon > img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; pointer-events: none; }
.ar-on .screen-results .nx-res-ribbon > .nx-res-ribbon-anim { grid-area: 1 / 1; width: 100%; height: 100%; background: 0 0 / 1200% 100% no-repeat; image-rendering: pixelated; pointer-events: none; animation: nx-ribbon-play 1.2s steps(12, jump-none) both; }
.ar-on .screen-results .nx-res-ribbon:not(.wait):has(> .nx-res-ribbon-anim) > img { opacity: 0; }
.ar-on .screen-results .nx-res-ribbon.wait > .nx-res-ribbon-anim { visibility: hidden; animation-play-state: paused; }
.ar-on .screen-results .nx-res-ribbon:not(.wait):has(> .nx-res-ribbon-anim) > .nx-res-title { animation: nx-ribbon-word 0.3s 0.5s both; }
@keyframes nx-ribbon-play { from { background-position-x: 0%; } to { background-position-x: 100%; } }
@keyframes nx-ribbon-word { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
html.reduce-motion.ar-on .screen-results .nx-res-ribbon > .nx-res-ribbon-anim { display: none; }
html.reduce-motion.ar-on .screen-results .nx-res-ribbon > img { opacity: 1; }
html.reduce-motion.ar-on .screen-results .nx-res-ribbon > .nx-res-title { animation: none; }
.ar-on .screen-results .nx-res-ribbon > .nx-res-title { grid-area: 1 / 1; margin: -4% 0 0; padding: 0 18%; text-align: center; font-size: clamp(34px, 3.4vw, 58px) !important; line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.75); }
.ar-on .screen-results .nx-res-ribbon.victory > .nx-res-title { color: #fff2c8; }
.ar-on .screen-results .nx-res-ribbon.defeat > .nx-res-title, .ar-on .screen-results .nx-res-ribbon.draw > .nx-res-title { color: #e8e2ea; }
.ar-on.ar-phone .screen-results .nx-res-ribbon { margin-left: 0; width: 100%; }
.ar-on.ar-phone .screen-results .nx-res-ribbon > .nx-res-title { font-size: 30px !important; }

/* styles/arena-old.css */
/*
 * Arena over the screens not rebuilt on its sheet yet (and the parts of a rebuilt one still drawn by the old screen:
 * the Inventory's items, mascots, skins and looks). Those were laid out for the window's own pixels, so inside the
 * sheet they are drawn at the window's scale again (.ar-old undoes the sheet's zoom); under the strip
 * (ui/arena/frame.js) they keep the whole window below it. Then Arena's skin over the pieces they share: the letters,
 * the panels, the buttons, the tabs, the lists.
 */

/* inside a sheet: the old part fills the body, at the window's own scale */
.ar-on .ar .ar-fill { position: absolute; inset: 0; }
.ar-on .ar .ar-old { position: absolute; left: 0; top: 0; width: 100%; height: 100%; zoom: calc(var(--nx-zoom, 1) / var(--ar-zoom, 1)); overflow: hidden; padding: 0; color: #f3ebde; font: 400 15px/1.4 var(--nx-ui, sans-serif);
  background: rgba(13, 10, 20, 0.93); border: 1px solid var(--ar-line); }
.ar-on .ar .ar-old > .screen-body { position: absolute; inset: 0; padding: 0; overflow: hidden; }
.ar-on .ar .ar-old > .screen-body > .max { max-width: none; width: 100%; height: 100%; margin: 0; }
.ar-on.ar-phone .ar .ar-fill, .ar-on.ar-phone .ar .ar-old { position: relative; inset: auto; width: auto; height: auto; zoom: 1; overflow: visible; }
.ar-on.ar-phone .ar .ar-old > .screen-body { position: relative; inset: auto; overflow: visible; }

/* under the strip: no window chrome of the old client, the page's place dimmed behind */
.ar-on.ar-headed #app > .screen.win { left: 0 !important; right: 0 !important; width: auto !important; max-width: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: rgba(8, 5, 14, 0.82) !important; }
.ar-on.ar-headed #app > .screen > .screen-head { display: none; }
/* (the sheet's gutters, so a screen under the strip lines up with the ones on a sheet) */
.ar-on.ar-headed:not(.ar-phone) #app > .screen.win { padding-left: calc(44px * var(--ar-zoom, 1)) !important; padding-right: calc(44px * var(--ar-zoom, 1)) !important; }

/* a screen's own tools beside its tabs in the head (Social: Add a friend) */
.ar-on .ar .ar-head .nx-so-tools { display: flex; gap: 8px; margin: 0; }
.ar-on .ar .ar-head .nx-so-tools:empty { display: none; }
.ar-on .ar .ar-head .nx-so-tools .btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; font: 700 15px/1 var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ar-cream); background: rgba(13, 10, 20, 0.84); border: 1px solid var(--ar-line2); white-space: nowrap; }
.ar-on .ar .ar-head .nx-so-tools .btn:hover, .ar-on .ar .ar-head .nx-so-tools .btn:focus-visible { border-color: var(--ar-gold); color: var(--ar-gold2); outline: none; }
.ar-on .ar .ar-head .nx-so-tools .btn svg, .ar-on .ar .ar-head .nx-so-tools .btn canvas { width: 18px; height: 18px; }
.ar-on.ar-phone .ar .ar-head .nx-so-tools .btn { height: 34px; padding: 0 10px; font-size: 12px; }
/* Social on a computer: no one plate behind it; your friends in a plate on the left, adding one and inviting beside
   them (always there: the list was a phone's, the computer's friends lived in the client bar's dock) */
.ar-on .ar-social .ar-old { background: none; border: 0; }
.ar-on:not(.ar-phone) .ar-social .ar-old .screen-body > .max.so-page { display: block; max-width: none; width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; }
.ar-on:not(.ar-phone) .ar-social .ar-old .so-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; max-width: none; width: 100%; height: 100%; margin: 0; align-items: start; }
.ar-on:not(.ar-phone) .ar-social .ar-old .so-main { max-height: 100%; overflow-y: auto; padding: 18px 20px; background: rgba(13, 10, 20, 0.93); border: 1px solid var(--ar-line); border-radius: 0; }
.ar-on:not(.ar-phone) .ar-social .ar-old .so-side, .ar-on:not(.ar-phone) .ar-social .ar-old .so-side[hidden] { order: 2; display: flex; flex-direction: column; gap: 14px; }
.ar-on:not(.ar-phone) .ar-social .ar-old .so-side > * { background: rgba(13, 10, 20, 0.93); border: 1px solid var(--ar-line); border-radius: 0; }
.ar-on:not(.ar-phone) .ar-social[data-tab='friends'] .ar-head .nx-so-tools { display: none; }
.ar-on .ar-social .ar-old > .screen-body > .max:not(.so-page) { background: rgba(13, 10, 20, 0.93); border: 1px solid var(--ar-line); }

/* a mode's own screen under the strip (the Gauntlet, the League...): drawn at the old pages' scale (bigger on a wide
   window, ui/neon/kit.js), and what is shorter than the window sits in its middle, not under an empty half */
.ar-on.ar-headed:not(.ar-phone) #app > .screen.win > * { zoom: var(--nx-zoom, 1); }
.ar-on.ar-headed:not(.ar-phone) #app > .screen.win > .screen-body { display: flex; flex-direction: column; }
.ar-on.ar-headed:not(.ar-phone) #app > .screen.win > .screen-body > :only-child { flex: none; width: 100%; margin-top: auto; margin-bottom: auto; }

/* the champion select on a wide window: drawn at the old pages' scale (it was a 1480 px column with small cards and half
   the window empty under them) */
.ar-on:not(.ar-phone) .draft-layer > .dr { zoom: var(--nx-zoom, 1); }

/* styles/arena-skin.css */
/*
 * Arena over every page not laid out on its sheet yet (the Inventory's Items, Mascots, Skins and Looks, Profile's and
 * Social's pages, the Game Pass, each mode's own screen, a chest's opening): Arena's letters, plates, buttons, tabs and
 * fields on the pieces those pages share, so the whole game reads as one. Where things sit is each page's own.
 * S: an old page inside a sheet (.ar-old), a screen under the strip (.ar-headed .screen.win), a window, an opening.
 */
html[data-theme='neon'].ar-on { --nx-ui: var(--ar-text); --font-text: var(--ar-text); --font-label: var(--ar-cap); --font-title: var(--ar-cap); --nx-panel: #15101f; }
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal, .cf-stage, .tip, #toasts) { font-family: var(--ar-text); font-size: 16px; }
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal) :is(.small, small) { font-size: 15px; }
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal) .xs { font-size: 14px; }
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal, .cf-stage) :is(.num, .bar b) { font-family: var(--ar-text); font-weight: 700; }

/* plates */
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal) :is(.panel, .card, .list-item, .ib-tile, .quest-card, .nx-tile) { border-radius: 0; }
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win) .panel:not(.flat):not(.inset) { background: linear-gradient(180deg, rgba(30, 23, 44, 0.94), rgba(14, 10, 22, 0.96)); border: 1px solid var(--ar-line); border-image: none; box-shadow: inset 0 1px 0 rgba(226, 194, 124, 0.14); }
html[data-theme='neon'].ar-on .modal { border-radius: 0; border: 1px solid var(--ar-line2); background: linear-gradient(180deg, #1e172c, #0e0a16); }
html[data-theme='neon'].ar-on .modal .modal-title, html[data-theme='neon'].ar-on .modal h2 { font-family: var(--ar-cap); letter-spacing: 0.06em; color: var(--ar-gold2); }

/* headings: a small gold line and capitals */
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal) :is(.h2, .nx-sec, .it-head, .nx-list-head) { font-family: var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ar-gold); }
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win) :is(h2, h3, .h3, .title) { font-family: var(--ar-cap); letter-spacing: 0.05em; }

/* buttons */
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal) .btn { border-radius: 0; font-family: var(--ar-cap); letter-spacing: 0.12em; text-transform: uppercase; }
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal) .btn .lbl { font-family: inherit; letter-spacing: inherit; }
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal) .btn.primary { color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border: 1px solid #f0d9a0; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5); text-shadow: none; }
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal) .btn.big { min-height: 56px; font-size: 19px; letter-spacing: 0.18em; }

/* tabs: words with a gold line */
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal) .tabs > .btn { background: none; border: 0; border-bottom: 3px solid transparent; box-shadow: none; color: var(--ar-dim); font-size: 15px; }
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal) .tabs > .btn.on { color: var(--ar-gold2); border-bottom-color: var(--ar-gold); }

/* fields */
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal) :is(input:not([type='range']):not([type='checkbox']), select, textarea, .nx-input, .nx-dd-btn) { border-radius: 0; font-family: var(--ar-text); font-size: 16px; border-color: var(--ar-edge); background-color: rgba(8, 5, 14, 0.72); }
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal) :is(input, select, textarea):focus { border-color: var(--ar-gold); outline: none; }
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win, .modal) :is(.nx-tag, .nx-box, .gx-diff, .boost-tag, .qchip) { border-radius: 0; font-family: var(--ar-cap); }

/* chosen things: gold, square */
html[data-theme='neon'].ar-on :is(.ar-old, #app > .screen.win) :is(.ib-tile.selected, .card.selected, .list-item.selected, .nx-mode.sel) { border-color: var(--ar-gold); box-shadow: 0 0 0 1px var(--ar-gold), 0 0 18px rgba(209, 171, 91, 0.25); }

/* a mode's own screen: more of the window (they were narrow columns in its middle) */
html[data-theme='neon'].ar-on.ar-headed:not(.ar-phone) #app > .screen.win > .screen-body > :is(.max, .max-s) { max-width: min(1500px, 100%); }

/* a chest's opening: the cards' words */
html[data-theme='neon'].ar-on .cf-stage :is(.name, .h2, .h3, b) { font-family: var(--ar-cap); letter-spacing: 0.04em; }
html[data-theme='neon'].ar-on .cf-stage .btn { border-radius: 0; font-family: var(--ar-cap); letter-spacing: 0.16em; text-transform: uppercase; }
html[data-theme='neon'].ar-on .cf-stage .btn.primary { color: #1a1309; background: linear-gradient(180deg, #e6c47a 0%, #c99d48 55%, #a87f34 100%); border: 1px solid #f0d9a0; }

/* styles/story-theme.css */
/* ================================================================== the story's own look (ui/gift.js, ui/campaign-fight.js)
   Whatever belongs to the story looks like the story: full-screen over the game, the story's painted place behind and
   alive, its people as the story draws them, its gold-framed boxes, its titles and lettering (the story player's:
   styles/main.css .ss-*). A gift is handed over as a scene (the item a big sprite in its light, the champions who can
   wear it standing); a campaign fight is briefed as one (its rival standing in its place). Both themes. */
.st-scene { position: fixed; inset: 0; z-index: 95; overflow: hidden; background: #050409; color: #f3e9d2; opacity: 0; transition: opacity 0.35s; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  font: 400 14px/1.45 var(--nx-ui, 'Segoe UI', system-ui, sans-serif); }
.st-scene.on { opacity: 1; }
.st-scene.on.away { opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0s 0.25s; } /* (a story playing under it) */
:root:has(.st-scene) #tooltip { z-index: 120; } /* (what an item does, pointed at in a scene: over it, not under) */
/* (your call: zoom is the campaign map's alone. Two fingers on the story's scenes, its gifts and a fight's briefing do
   nothing: a phone's own zoom stays off there, an iPhone's too, which doesn't heed the page's no-zoom) */
.st-scene, .story-scene { touch-action: pan-x pan-y; }
.st-scene button { font-family: inherit; color: inherit; cursor: pointer; }
.st-back { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, #1d1528, #050409 75%); }
.st-back .ss-backdrop { position: absolute; inset: 0; overflow: hidden; }
.st-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 70% at 50% 42%, rgba(5, 4, 9, 0.15), rgba(5, 4, 9, 0.72) 100%), linear-gradient(0deg, rgba(5, 4, 9, 0.88), rgba(5, 4, 9, 0) 46%); }
.st-shade.side { background: linear-gradient(90deg, rgba(5, 4, 9, 0.92) 0, rgba(5, 4, 9, 0.7) 34%, rgba(5, 4, 9, 0.1) 62%, rgba(5, 4, 9, 0.25) 100%); }
.st-kick { font: 700 12px/1.2 var(--font-title, Georgia, serif); letter-spacing: 0.2em; text-transform: uppercase; color: #c9a24a; }
.st-title { margin: 4px 0 2px; font: 700 clamp(26px, 3.4vw, 40px)/1.05 var(--font-title, Georgia, serif); letter-spacing: 0.02em; color: #f7e7bd; text-shadow: 0 3px 0 #07060d, 0 0 24px rgba(0, 0, 0, 0.6); }
.st-title.rarity-rare { color: #9fcbff; } .st-title.rarity-epic { color: #e2b0ef; } .st-title.rarity-legendary { color: #ffd76a; }
.st-text { margin: 2px 0 0; font: italic 16.5px/1.45 'Pixelify Sans', sans-serif; color: #efe3c8; text-shadow: 0 2px 0 #07060d; }
.st-box { position: relative; padding: 14px 22px; background: linear-gradient(180deg, rgba(34, 26, 46, 0.95), rgba(11, 9, 16, 0.97)); border: 2px solid #c9a24a;
  box-shadow: inset 0 0 0 5px rgba(11, 9, 16, 0.9), inset 0 0 0 6px rgba(201, 162, 74, 0.35), 0 10px 30px rgba(0, 0, 0, 0.6); }
.st-panel { position: relative; box-sizing: border-box; padding: 22px 26px 20px; background: linear-gradient(180deg, rgba(26, 20, 36, 0.93), rgba(9, 7, 14, 0.95)); border: 2px solid #c9a24a;
  box-shadow: inset 0 0 0 5px rgba(9, 7, 14, 0.9), inset 0 0 0 6px rgba(201, 162, 74, 0.32), 0 14px 40px rgba(0, 0, 0, 0.6); }
.st-panel::before, .st-panel::after { content: ''; position: absolute; width: 14px; height: 14px; border: 3px solid #f2c14e; pointer-events: none; }
.st-panel::before { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.st-panel::after { bottom: -4px; right: -4px; border-left: 0; border-top: 0; }
.st-skip { position: absolute; top: 14px; right: 14px; z-index: 4; padding: 7px 14px; border: 1px solid rgba(201, 162, 74, 0.6); background: rgba(11, 9, 16, 0.78); font: 700 13px/1 var(--font-title, Georgia, serif); letter-spacing: 0.08em; color: #e9dcc2 !important; }
.st-skip:hover, .st-skip:focus-visible { border-color: #f2c14e; color: #fff !important; }
.st-go { height: 52px; padding: 0 44px; border: 0; background: linear-gradient(180deg, #ffe066, #f2b81f); color: #1c1206 !important; font: 700 19px/1 var(--font-title, Georgia, serif) !important; letter-spacing: 0.2em; text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); box-shadow: inset 0 -3px 0 rgba(120, 70, 0, 0.35); transition: filter 0.15s, transform 0.15s; }
.st-go:hover, .st-go:focus-visible { filter: brightness(1.1); transform: translateY(-1px); }
.st-link { padding: 4px 0; border: 0; border-bottom: 1px solid rgba(232, 199, 102, 0.35); background: none; font: 700 13px/1.2 var(--font-title, Georgia, serif); letter-spacing: 0.1em; text-transform: uppercase; color: #e8c766 !important; }
.st-link:hover, .st-link:focus-visible { color: #fff1c4 !important; border-bottom-color: #fff1c4; }

/* ------------------------------------------------------------------ a gift handed over */
.st-item-words { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 26px 12px; background: radial-gradient(ellipse at 50% 50%, rgba(7, 5, 12, 0.82), rgba(7, 5, 12, 0.55) 60%, rgba(7, 5, 12, 0) 100%); }
.st-gift.has-giver .st-center { left: 58%; }
.st-gift.has-giver .st-foot { left: auto; right: 2vw; transform: none; width: min(900px, 66vw); }
.st-giver { position: absolute; left: max(-30px, calc(50% - 800px)); bottom: 0; height: min(86vh, 860px); max-width: 32vw; object-fit: contain; object-position: left bottom; image-rendering: pixelated; filter: brightness(0.9) drop-shadow(0 0 30px rgba(0, 0, 0, 0.6));
  animation: st-giver-in 0.7s cubic-bezier(0.2, 0.8, 0.3, 1); pointer-events: none; }
@keyframes st-giver-in { from { opacity: 0; transform: translateX(-40px); } }
.st-center { position: absolute; left: 50%; top: 4vh; width: min(560px, 92vw); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.st-item { position: relative; display: grid; place-items: center; width: 260px; height: 230px; }
.st-rays { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, 0.3) 0deg 5deg, rgba(255, 214, 120, 0) 5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.6) 30%, transparent 62%); mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, 0.6) 30%, transparent 62%); animation: st-spin 40s linear infinite; }
.st-glow { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 220, 140, 0.55), rgba(255, 220, 140, 0.12) 50%, transparent 70%); animation: st-breathe 2.6s ease-in-out infinite; }
.st-item.r-rare .st-rays { background: repeating-conic-gradient(from 0deg, rgba(150, 200, 255, 0.3) 0deg 5deg, rgba(150, 200, 255, 0) 5deg 15deg); }
.st-item.r-rare .st-glow { background: radial-gradient(circle, rgba(160, 205, 255, 0.5), rgba(160, 205, 255, 0.1) 50%, transparent 70%); }
.st-item.r-epic .st-rays { background: repeating-conic-gradient(from 0deg, rgba(220, 160, 240, 0.32) 0deg 5deg, rgba(220, 160, 240, 0) 5deg 15deg); }
.st-item.r-epic .st-glow { background: radial-gradient(circle, rgba(225, 170, 240, 0.55), rgba(225, 170, 240, 0.12) 50%, transparent 70%); }
.st-item.r-legendary .st-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 200, 70, 0.42) 0deg 5deg, rgba(255, 200, 70, 0) 5deg 15deg); }
.st-item.r-legendary .st-glow { background: radial-gradient(circle, rgba(255, 205, 90, 0.7), rgba(255, 205, 90, 0.16) 50%, transparent 70%); }
@keyframes st-spin { to { transform: rotate(360deg); } }
@keyframes st-breathe { 50% { opacity: 0.6; transform: scale(0.94); } }
.st-item-sprite { position: relative; image-rendering: pixelated; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(255, 230, 160, 0.5)); animation: st-arrive 0.8s cubic-bezier(0.2, 0.8, 0.3, 1.3), st-float 3.2s ease-in-out 0.8s infinite; }
@keyframes st-arrive { from { opacity: 0; transform: translateY(40px) scale(0.3) rotate(-14deg); } }
@keyframes st-float { 50% { transform: translateY(-10px); } }
.st-gift.given .st-item-sprite { opacity: 0; transition: opacity 0.25s; }
.st-sub { font-size: 13px; color: #b9ad98; }
.st-from { font: italic 600 14px/1.3 var(--nx-ui, sans-serif); color: #f2c14e; }
.st-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 4px; font-size: 14px; color: #efe3c8; }
.st-lines span::before { content: '◆ '; color: #c9a24a; font-size: 10px; }
.st-foot { position: absolute; left: 50%; bottom: 3vh; width: min(1000px, 96vw); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.st-foot .st-box { align-self: stretch; text-align: center; }
.st-words { margin: 0; font: 20px/1.4 'Pixelify Sans', sans-serif; color: #f3e9d2; }
.st-party { display: flex; justify-content: center; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.st-champ { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 150px; padding: 4px 4px 8px; border: 1px solid rgba(201, 162, 74, 0.35); background: linear-gradient(180deg, rgba(20, 15, 28, 0.55), rgba(9, 7, 14, 0.88));
  animation: st-rise 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) both; transition: border-color 0.15s, transform 0.15s, box-shadow 0.2s; }
.st-champ:nth-child(2) { animation-delay: 0.06s; } .st-champ:nth-child(3) { animation-delay: 0.12s; } .st-champ:nth-child(4) { animation-delay: 0.18s; } .st-champ:nth-child(5) { animation-delay: 0.24s; } .st-champ:nth-child(6) { animation-delay: 0.3s; }
@keyframes st-rise { from { opacity: 0; transform: translateY(24px); } }
.st-champ:hover, .st-champ:focus-visible { border-color: #f2c14e; transform: translateY(-4px); box-shadow: 0 0 22px rgba(255, 210, 110, 0.35); }
.st-champ.on { border-color: rgba(242, 193, 78, 0.8); }
.st-champ-fig { display: grid; place-items: end center; height: 150px; overflow: hidden; }
.st-champ-fig .nx-fig { display: block; }
.st-champ-fig canvas { image-rendering: pixelated; }
.st-champ b { font: 700 15px/1.1 var(--font-title, Georgia, serif); color: #f1e4c4; }
.st-slot { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 6px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(201, 162, 74, 0.25); }
.st-slot small { font-size: 11px; color: #b9ad98; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-slot.free small { color: #8a8070; }
.st-slot canvas { image-rendering: pixelated; flex: 0 0 auto; }
.st-gift.given .st-champ:not(.chosen) { opacity: 0.45; transform: none; }
.st-champ.lit { border-color: #ffd84a; box-shadow: 0 0 0 2px rgba(255, 216, 74, 0.35), 0 0 34px rgba(255, 210, 90, 0.6); animation: st-lit 0.7s ease-out; }
@keyframes st-lit { 0% { filter: brightness(2.2); } 100% { filter: none; } }
.st-fly { position: fixed; z-index: 96; pointer-events: none; image-rendering: pixelated; transition: transform 0.55s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.55s ease-in; }
.st-pop { position: absolute; top: 28%; left: 50%; pointer-events: none; animation: st-pop 1.1s ease-out forwards; }
.st-pop canvas { image-rendering: pixelated; }
@keyframes st-pop { 0% { transform: translate(-50%, 0) scale(1); opacity: 1; } 100% { transform: translate(40%, -120px) scale(0.6) rotate(30deg); opacity: 0; } }

/* ------------------------------------------------------------------ a campaign fight's briefing */
.st-rival { position: absolute; right: max(0px, calc(50% - 760px)); bottom: 0; height: min(96vh, 980px); max-width: 52vw; object-fit: contain; object-position: right bottom; image-rendering: pixelated;
  filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.7)); animation: st-rival-in 0.8s cubic-bezier(0.2, 0.8, 0.3, 1); pointer-events: none; }
@keyframes st-rival-in { from { opacity: 0; transform: translateX(50px); } }
.st-brief-panel { position: absolute; left: max(16px, calc(50% - 680px)); top: 50%; transform: translateY(-50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; gap: 10px; animation: st-panel-in 0.55s cubic-bezier(0.2, 0.8, 0.3, 1); }
.st-brief-head { flex: 0 0 auto; }
.st-brief-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.st-brief-panel .st-acts { flex: 0 0 auto; padding-top: 10px; border-top: 1px solid rgba(201, 162, 74, 0.25); }
@keyframes st-panel-in { from { opacity: 0; transform: translate(-24px, -50%); } }
.st-road { display: flex; align-items: center; gap: 12px; font: 700 13px/1 var(--font-title, Georgia, serif); letter-spacing: 0.08em; color: #e9dcc2; }
.st-road .camp-stars { font-size: 15px; }
.st-team { display: flex; flex-direction: column; gap: 6px; }
.st-team.raid { flex-direction: row; align-items: center; gap: 12px; }
.st-team-head { font: 700 13px/1.2 var(--font-title, Georgia, serif); letter-spacing: 0.06em; color: #ff8a7a; }
.st-team-row { display: flex; flex-wrap: wrap; gap: 6px; }
.st-member { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 62px; }
.st-member canvas { width: 48px; height: 48px; image-rendering: pixelated; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 120, 110, 0.4); }
.st-member small { font-size: 10.5px; color: #cfc5b3; text-align: center; line-height: 1.1; }
.st-scene .camp-prep { border-color: rgba(201, 162, 74, 0.4); background: rgba(0, 0, 0, 0.3); }
.st-scene .camp-prep-item { background: rgba(0, 0, 0, 0.35); }
.st-scene .camp-prep-pic { width: 46px; height: 46px; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 214, 120, 0.3), rgba(18, 13, 26, 0.9) 72%); box-shadow: 0 0 0 1px #1a1220; }
.st-rewards { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border: 1px solid rgba(201, 162, 74, 0.3); background: rgba(0, 0, 0, 0.25); }
.st-rw-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.st-gift-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid #c9a24a; background: linear-gradient(180deg, rgba(48, 36, 62, 0.95), rgba(18, 13, 26, 0.95)); box-shadow: 0 0 0 1px #1a1220, 0 4px 10px rgba(0, 0, 0, 0.45); }
.st-gift-chip small { color: #f7e7bd; font-weight: 700; }
.st-gift-chip canvas { image-rendering: pixelated; }
.st-gift-chip.mystery { width: 50px; height: 50px; justify-content: center; padding: 0; border-color: #f2c14e; background: radial-gradient(circle, rgba(255, 214, 120, 0.35), rgba(0, 0, 0, 0.4) 70%); animation: st-breathe 2.4s ease-in-out infinite; }
.st-gift-chip.mystery i { font: 700 26px/1 var(--font-title, Georgia, serif); font-style: normal; color: #ffe58a; text-shadow: 0 0 10px rgba(255, 210, 90, 0.8); }
.st-rw-line { font-style: italic; color: #f2c14e; }
.st-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 4px; }

/* a phone: the gift above, the champions in rows; the briefing a column, its rival faint behind */
@media (max-width: 760px) {
  .st-giver { left: -10vw; height: 62vh; max-width: 70vw; opacity: 0.4; }
  .st-gift.has-giver .st-center { left: 50%; }
  .st-gift.has-giver .st-foot { left: 50%; right: auto; transform: translateX(-50%); width: 96vw; }
  .st-center { top: 2vh; }
  .st-item { width: 200px; height: 170px; }
  .st-rays { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .st-foot { bottom: 1.5vh; }
  .st-words { font-size: 16px; }
  .st-box { padding: 10px 14px; }
  .st-champ { width: calc(33% - 8px); padding: 2px 2px 6px; }
  .st-champ-fig { height: 104px; }
  .st-champ b { font-size: 13px; }
  .st-rival { right: -18vw; height: 70vh; max-width: 90vw; opacity: 0.35; }
  .st-brief-panel { left: 8px; right: 8px; width: auto; top: 54px; transform: none; max-height: calc(100vh - 64px); padding: 16px 16px 16px; animation: none; }
  .st-text { font-size: 16px; }
  .st-go { flex: 1 1 auto; }
}
.st-scene.still .st-rays, .st-scene.still .st-glow, .st-scene.still .st-item-sprite, .st-scene.still .st-champ, .st-scene.still .st-giver, .st-scene.still .st-rival, .st-scene.still .st-brief-panel { animation: none; }
@media (prefers-reduced-motion: reduce) { .st-rays, .st-glow, .st-item-sprite { animation: none; } }

/* ---- The campaign's map (ui/screens/campaign.js, meta/campaign-map.js): the sky-isles, the route, the stops, the box ---- */
.cm-body { flex: 1 1 auto; min-height: 0; position: relative; overflow: hidden; background: #0b0912; }
.cm-view { position: absolute; inset: 0; overflow: auto; scrollbar-width: none; cursor: grab; overscroll-behavior: contain; touch-action: pan-x pan-y; } /* (two fingers: the map's own zoom, not the page's) */
.cm-view::-webkit-scrollbar { display: none; }
.cm-view.dragging { cursor: grabbing; }
.cm-world { position: relative; --u: 13.66px; user-select: none; -webkit-user-select: none; }
.cm-paint { position: absolute; inset: 0; overflow: hidden; }
.cm-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; pointer-events: none; }
.cm-art.sky { filter: brightness(0.82) saturate(0.95); }
/* (the stand-in: a window onto each stop's place, floating on the sky) */
.cm-isle { position: absolute; width: calc(var(--u) * 17); aspect-ratio: 3 / 2; transform: translate(-50%, -64%); background-size: cover; background-position: center 62%; image-rendering: pixelated; border-radius: 50%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%); }
.cm-isle.home { width: calc(var(--u) * 14); opacity: 0.6; filter: sepia(0.4) saturate(0.7); }
.cm-isle.hidden { filter: brightness(0.55) blur(1px); }
.cm-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
/* (the route, your call: where you've been one road, unbroken; the leg to the next fight dashed and alight; the rest
   dashed. Drawn until painted: an outlined road, outlined dashes; the round caps make the outline round each dash) */
.cm-road { fill: none; stroke-linecap: round; }
.cm-road.under { stroke: #1a1220; stroke-width: 1.5; }
.cm-road.walked { stroke: #d99a32; stroke-width: 0.95; }
.cm-road.shine { stroke: #ffe9a8; stroke-width: 0.26; stroke-dasharray: 1.8 0.7; opacity: 0.85; }
.cm-road.under.next { stroke-dasharray: 1.4 2.4; animation: cm-march 1.1s linear infinite; }
.cm-road.next { stroke: #ffe58a; stroke-width: 0.95; stroke-dasharray: 1.4 2.4; animation: cm-march 1.1s linear infinite; }
.cm-road.under.ahead { stroke: rgba(26, 18, 32, 0.85); stroke-width: 1.05; stroke-dasharray: 0.9 2.3; animation: none; }
.cm-road.ahead { stroke: #e9e1f7; stroke-width: 0.5; stroke-dasharray: 0.9 2.3; }
@keyframes cm-march { to { stroke-dashoffset: -3.8; } }
/* (painted: each leg a canvas over its own box, the road's or the dash's art bent along the curve in squares on the
   map's grid, ui/screens/campaign.js bendLeg; the next leg's alight, breathing) */
.cm-legs { position: absolute; inset: 0; pointer-events: none; }
.cm-leg { position: absolute; image-rendering: pixelated; }
/* (the stepping-stones are the map's own stone: a soft light round each keeps the way ahead from melting into the isles;
   gold and breathing on the next leg) */
.cm-leg.ahead { --rim: rgba(255, 240, 218, 0.95); --bloom: rgba(255, 214, 170, 0.55); }
.cm-leg.next { --rim: #ffe9a0; --bloom: rgba(255, 206, 84, 0.9); animation: cm-lit 1.4s ease-in-out infinite; }
.cm-leg:is(.ahead, .next) { filter: drop-shadow(1px 0 0 var(--rim)) drop-shadow(-1px 0 0 var(--rim)) drop-shadow(0 1px 0 var(--rim)) drop-shadow(0 -1px 0 var(--rim)) drop-shadow(0 0 calc(var(--u) * 0.4) var(--bloom)); }
@keyframes cm-lit { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
.cm-chapter { position: absolute; width: calc(var(--u) * 15); transform: translate(-50%, -50%); text-align: center; pointer-events: none; z-index: 1; text-wrap: balance; }
.cm-chapter small { display: block; font: 700 clamp(10px, calc(var(--u) * 0.85), 14px)/1.2 var(--font-title, Georgia, serif); letter-spacing: 0.24em; text-transform: uppercase; color: #e9c46a; text-shadow: 0 2px 0 #07060d; }
.cm-chapter b { display: block; font: 700 clamp(16px, calc(var(--u) * 1.75), 30px)/1.1 var(--font-title, Georgia, serif); color: #f7e7bd; text-shadow: 0 3px 0 #07060d, 0 0 18px rgba(0, 0, 0, 0.7); }
.cm-chapter.locked { opacity: 0.5; }
.cm-home { position: absolute; transform: translate(-50%, calc(var(--u) * 2.6)); pointer-events: none; z-index: 1; }
.cm-home span { font: italic 700 clamp(11px, calc(var(--u) * 0.95), 15px)/1 var(--font-title, Georgia, serif); color: #e6d7b5; text-shadow: 0 2px 0 #07060d; white-space: nowrap; }
.cm-stop { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.cm-ring { position: relative; display: grid; place-items: center; transition: transform 0.15s; }
.cm-medal { position: relative; width: clamp(46px, calc(var(--u) * 5.4), 104px); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #33283f, #0e0a15 75%);
  border: 3px solid var(--metal, #c9a24a); box-shadow: 0 0 0 2px #1a1220, 0 6px 14px rgba(0, 0, 0, 0.55); }
.cm-medal canvas, .cm-medal img { width: 86%; height: 86%; object-fit: contain; image-rendering: pixelated; }
.cm-stop:hover .cm-ring, .cm-stop:focus-visible .cm-ring { transform: scale(1.08); }
.cm-stop:focus-visible { outline: none; }
.cm-stop:focus-visible .cm-medal { box-shadow: 0 0 0 2px #1a1220, 0 0 0 5px #ffe066; }
.cm-stop.next .cm-medal { border-color: #ffe066; animation: cm-pulse 1.6s ease-in-out infinite; }
.cm-stop.boss .cm-medal { width: clamp(56px, calc(var(--u) * 6.8), 124px); }
.cm-stop.locked { cursor: default; }
.cm-stop.locked .cm-medal { background: rgba(20, 16, 30, 0.5); border-color: rgba(255, 255, 255, 0.28); box-shadow: none; }
/* each chapter's frame (your call: one of its own, one until the chapter is complete and one once it is). Until
   painted, its metal and a crown of its own round the medallion (the Floating Arena's bronze studs, the Sky-Isles'
   frost teeth, the Dragon's Gate's flames), gilded once the chapter is complete */
.cm-ring::before { content: ''; position: absolute; z-index: -1; inset: -15%; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 2px #1a1220; }
.cm-stop.ch1 { --metal: #c98a4a; }
.cm-stop:not(.framed).ch1 .cm-ring::before { background: radial-gradient(circle closest-side, #5a3218 82%, transparent 83%), repeating-conic-gradient(from -11.25deg, #e8ac62 0 11deg, #8a5226 11deg 22.5deg); }
.cm-stop.ch2 { --metal: #cfdcf0; }
.cm-stop:not(.framed).ch2 .cm-ring::before { inset: -18%; box-shadow: none; background: radial-gradient(circle closest-side, #2a3550 72%, transparent 73%), repeating-conic-gradient(from -6deg, #f2f7ff 0 6deg, #8fa8d8 6deg 12deg, transparent 12deg 30deg); }
.cm-stop.ch3 { --metal: #ff8a3c; }
.cm-stop:not(.framed).ch3 .cm-ring::before { inset: -21%; box-shadow: none; background: radial-gradient(circle closest-side, #2a0c08 70%, transparent 71%), repeating-conic-gradient(from -8deg, #fff1a8 0 4deg, #ffb347 4deg 9deg, #e0461e 9deg 14deg, #6a1a0c 14deg 16deg, transparent 16deg 36deg); filter: drop-shadow(1px 0 0 #1a1220) drop-shadow(-1px 0 0 #1a1220) drop-shadow(0 1px 0 #1a1220) drop-shadow(0 -1px 0 #1a1220); }
.cm-stop.locked .cm-ring::before { filter: grayscale(1) brightness(0.55); opacity: 0.6; }
.cm-stop.chdone { --metal: #f2c14e; }
.cm-stop:not(.framed).chdone.ch1 .cm-ring::before { background: radial-gradient(circle closest-side, #5a3a10 82%, transparent 83%), repeating-conic-gradient(from -11.25deg, #fff0a8 0 11deg, #c8901e 11deg 22.5deg); }
.cm-stop:not(.framed).chdone.ch2 .cm-ring::before { background: radial-gradient(circle closest-side, #2a3550 72%, transparent 73%), repeating-conic-gradient(from -6deg, #fffbe6 0 6deg, #f2c14e 6deg 12deg, transparent 12deg 30deg); }
.cm-stop:not(.framed).chdone.ch3 .cm-ring::before { background: radial-gradient(circle closest-side, #2a0c08 70%, transparent 71%), repeating-conic-gradient(from -8deg, #ffffff 0 4deg, #ffe066 4deg 9deg, #f2a12e 9deg 14deg, #6a1a0c 14deg 16deg, transparent 16deg 36deg); }
/* (painted: the chapter's frame over the medallion, its hole the medallion: 44 of its 64 pixels) */
.cm-frame { position: absolute; inset: -22.7%; width: 145.4%; height: 145.4%; pointer-events: none; image-rendering: pixelated; filter: drop-shadow(0 0 calc(var(--u) * 0.22) var(--halo)); }
.cm-stop.framed .cm-medal { border-color: transparent; }
/* (your call: the frames stand out on any sky. Behind each, a dark band under its ring and a light of its chapter
   round it: the Arena's bronze, the Sky-Isles' teal, the Dragon's Gate's embers; gold once the chapter is complete) */
.cm-stop.framed .cm-ring::before { inset: -45%; box-shadow: none; filter: none; background: radial-gradient(circle closest-side, transparent 49%, rgba(16, 10, 22, 0.88) 51%, rgba(16, 10, 22, 0.88) 66%, var(--halo) 71%, transparent 100%); }
.cm-stop.framed.ch1 { --halo: rgba(236, 160, 84, 0.75); }
.cm-stop.framed.ch2 { --halo: rgba(120, 236, 228, 0.7); }
.cm-stop.framed.ch3 { --halo: rgba(255, 112, 44, 0.85); }
.cm-stop.framed.chdone { --halo: rgba(255, 216, 100, 0.85); }
.cm-stop.framed.next .cm-frame { animation: cm-glow 1.6s ease-in-out infinite; }
.cm-stop.framed.locked .cm-ring::before { display: none; }
.cm-stop.framed.locked .cm-frame { filter: grayscale(1) brightness(0.55); opacity: 0.75; }
@keyframes cm-glow { 50% { filter: drop-shadow(0 0 calc(var(--u) * 0.9) rgba(255, 224, 102, 0.95)); } }
.cm-q { font: 700 clamp(18px, calc(var(--u) * 2), 34px)/1 var(--font-title, Georgia, serif); font-style: normal; color: rgba(255, 255, 255, 0.6); }
@keyframes cm-pulse { 0%, 100% { box-shadow: 0 0 0 2px #1a1220, 0 0 0 0 rgba(255, 224, 102, 0.7); } 50% { box-shadow: 0 0 0 2px #1a1220, 0 0 0 calc(var(--u) * 1.1) rgba(255, 224, 102, 0); } }
.cm-name { padding: 2px 8px; background: rgba(9, 7, 14, 0.84); border: 1px solid rgba(201, 162, 74, 0.55); font: 700 clamp(11px, calc(var(--u) * 0.92), 15px)/1.25 var(--font-title, Georgia, serif); color: #f7e7bd; white-space: nowrap; }
.cm-stop.next .cm-name { border-color: #ffe066; color: #fff3c4; }
.cm-stars { font-size: clamp(11px, calc(var(--u) * 1), 16px); letter-spacing: 1px; text-shadow: 0 2px 0 #07060d; }
.cm-stars i { font-style: normal; color: rgba(255, 255, 255, 0.32); }
.cm-stars i.on { color: #ffd54a; }
/* (the isles still ahead, in clouds: two pixel clouds each, ui/screens/campaign.js cloud()) */
.cm-fog { position: absolute; z-index: 3; width: calc(var(--u) * 12); height: calc(var(--u) * 7); transform: translate(-50%, -60%); pointer-events: none; opacity: 0.15; } /* (your call: barely there) */
.cm-cloud { position: absolute; width: 100%; image-rendering: pixelated; animation: cm-drift 7s steps(7) infinite alternate; }
.cm-cloud:nth-child(1) { left: -14%; top: 30%; }
.cm-cloud:nth-child(2) { left: 16%; top: 0; animation-delay: -3.5s; animation-direction: alternate-reverse; }
@keyframes cm-drift { to { transform: translateX(calc(var(--u) * 0.9)); } }
/* (Wren's lantern, where you are) */
.cm-lantern { position: absolute; z-index: 4; width: calc(var(--u) * 2.6); transform: translate(-50%, calc(-100% - var(--u) * 3.2)); pointer-events: none; }
.cm-lantern img { display: block; width: 100%; image-rendering: pixelated; filter: drop-shadow(0 3px 0 #07060d); animation: cm-bob 3s ease-in-out infinite; }
.cm-lantern.lit img { filter: drop-shadow(0 0 calc(var(--u) * 0.8) rgba(255, 196, 92, 0.85)); }
@keyframes cm-bob { 50% { transform: translateY(calc(var(--u) * -0.6)); } }
/* (the story's box) */
/* (the story's box, never on the map: a computer's in the head's free strip beside the title, a phone's in a bar under the map) */
@media (min-width: 761px) { .cm-screen > .screen-head .title { flex: none; overflow: visible; } }
.cm-dock { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; container-type: inline-size; }
.cm-dock .cm-panel { width: min(880px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'kick foot acts' 'text foot acts'; align-items: center; gap: 2px 20px; padding: 8px 16px 9px; }
.cm-panel > .st-kick { grid-area: kick; font-size: 11px; }
.cm-panel > .cm-text { grid-area: text; }
.cm-panel > .cm-foot { grid-area: foot; }
.cm-panel > .st-acts { grid-area: acts; }
.cm-dock .cm-text { margin: 0; font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-dock .cm-foot { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin: 0; text-align: right; }
.cm-dock .st-acts { margin: 0; gap: 12px; }
.cm-dock .cm-go { height: 40px; padding: 0 26px; font-size: 15px !important; }
.cm-text { font-size: 15px; }
.cm-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0 12px; }
.cm-nextname { font: 700 14px/1.25 var(--font-title, Georgia, serif); color: #f7e7bd; }
.cm-total { flex: none; font: 700 14px/1 var(--font-title, Georgia, serif); color: #f2c14e; }
.cm-go { height: 46px; padding: 0 34px; font-size: 17px !important; }
.cm-view.still *, .cm-view.still *::before { animation: none !important; }
.cm-dock .cm-panel > .st-kick { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 640px) {
  .cm-dock .cm-text { display: none; }
}
@container (max-width: 460px) {
  .cm-dock .cm-panel > .st-kick { display: none; }
  .cm-dock .cm-panel { grid-template-areas: 'foot acts'; grid-template-columns: minmax(0, 1fr) auto; }
}
/* (a computer's map: all of it in its box beside the modes' list, the rest of the box the painting itself, soft) */
.cm-backfill { position: absolute; inset: -40px; display: none; background: #0b0912 center / cover no-repeat; filter: blur(18px) brightness(0.4) saturate(0.9); pointer-events: none; }
.cm-view.fitted { overflow: hidden; cursor: default; display: grid; place-items: center; }
.cm-view.fitted .cm-backfill { display: block; }
.cm-view.fitted .cm-world { box-shadow: 0 0 0 2px #1a1220, 0 14px 36px rgba(0, 0, 0, 0.6); }
html[data-theme='neon'].nx-lobby .cm-screen > .cm-body { margin: 2px 24px 18px; padding: 0 !important; border: 2px solid rgba(201, 162, 74, 0.7); box-shadow: 0 0 0 2px #1a1220, 0 10px 30px rgba(0, 0, 0, 0.5); }
/* (a fight pressed: the map swoops into its isle while the screen closes on it, ui/screens/campaign.js iris()) */
.cm-view.entering .cm-world { transform: scale(2.6); transition: transform 0.72s cubic-bezier(0.55, 0, 0.8, 0.2); }
.cm-veil { position: fixed; inset: 0; z-index: 0; pointer-events: auto; background: #050409;
  -webkit-mask-image: radial-gradient(circle at var(--x) var(--y), transparent var(--r), #000 calc(var(--r) + 2px)); mask-image: radial-gradient(circle at var(--x) var(--y), transparent var(--r), #000 calc(var(--r) + 2px)); }
@media (max-width: 760px) {
  .cm-body { display: flex; flex-direction: column; }
  .cm-view { position: relative; inset: auto; flex: 1 1 0; min-height: 0; } /* (the room left, whatever the map's size: zoomed in it pushed the title up) */
  .cm-body > .cm-panel { flex: none; margin: 0; padding: 10px 14px 12px; border-left: 0; border-right: 0; border-bottom: 0; }
  .cm-body > .cm-panel::before, .cm-body > .cm-panel::after { display: none; }
  html[data-theme='neon'] .cm-body > .cm-panel { padding-bottom: 40px; } /* (clear of the bottom bar's PLAY, which rises 30 px) */
  .cm-text { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cm-foot { margin: 6px 0 8px; }
  .cm-go { height: 42px; }
}

/* (a story or a story scene filling the screen: what's under it isn't drawn, so the story has the graphics memory to
   itself; ui/story.js coverUnder) */
html.story-cover #app, html.story-cover .nx-pl-rail.fixed, html.story-cover body > .patrol-widget { visibility: hidden; }

/* Light mode (platform/crash-guard.js: a start died on this device, your report of phones closing the tab right after
   Home): no see-through blur and no blending, the heaviest work a phone's graphics do on every screen. Last of the
   sheets, so it wins. */
html.light-mode *, html.light-mode *::before, html.light-mode *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

/* the story's second version (15 Nov): painted, so nothing of it is drawn with sharp pixels any more (the road still is: its own small squares) */
.cm-art, .cm-isle, .cm-frame, .ss-pic, .st-giver, .st-rival, .ss-world img { image-rendering: auto !important; }
/* (the campaign's second version, its own pictures: a stop still ahead is a padlock on a cloud, with no frame or dark
   square; the next stop flies the you-are-here banner over it) */
.cm-stop.padlock .cm-medal { background: none; border-color: transparent; box-shadow: none; overflow: visible; }
.cm-stop.padlock .cm-medal .cm-lock { width: 118%; height: 118%; max-width: none; image-rendering: auto; filter: drop-shadow(0 calc(var(--u) * 0.3) calc(var(--u) * 0.4) rgba(10, 8, 30, 0.55)); }
.cm-stop.padlock .cm-frame, .cm-stop.padlock .cm-ring::before { display: none; }
.cm-stop.padlock .cm-ring, html[data-theme] .cm-stop.padlock .cm-ring { background: none !important; border-color: transparent !important; box-shadow: none !important; }
.cm-you { position: absolute; left: 50%; bottom: 100%; width: clamp(34px, calc(var(--u) * 3.6), 70px); height: auto; margin-bottom: calc(var(--u) * 1.4); transform: translateX(-50%); pointer-events: none; image-rendering: auto; filter: drop-shadow(0 calc(var(--u) * 0.3) calc(var(--u) * 0.4) rgba(10, 8, 30, 0.6)); animation: cm-you 2.2s ease-in-out infinite; }
@keyframes cm-you { 50% { transform: translate(-50%, calc(var(--u) * -0.6)); } }
@media (prefers-reduced-motion: reduce) { .cm-you { animation: none; } }
html.reduce-motion .cm-you { animation: none; }

/* styles/steel-box.css */
/* The steel box (your call, 19 Nov): the box of the champions' ability pictures, a dark steel frame with a gold stud
   at each corner, is the fight's own box. The skill and the Ultimate already wear it (it is painted into their
   pictures); here Attack, Defend, Wait, Next and Undo get the same one, and so do the champions waiting to be placed.
   The frame is drawn from those pictures' own colours (64 x 64, kept here at 4x; tools: none, it lives in this file),
   its middle empty: what is behind it is each box's own dark burst of colour, as in the pictures.
   --steel-box is for any other box that should match (the skill tree's tiles). Neon only: Legacy keeps its frames. */
:root { --steel-box: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAADjElEQVR42u3csUpCURzAYW+or9EkBIVEbe0+gI/QAzhG7U3NNbUUQVMP4GBDgoMQNEhNTSm4+AY62HxPcOPKuRKd79tuhsGB8+P8T2LWaDTXNSBJO5YABAAQACAl9fAHi/fb3PPXZFD4BrPpLPfcvRjnnq+u76wybOi8d1rp/nQCACMAIABA2ncA4Uyx2+6UmjlCjw/3Vhkiib0/nQDACAAIAJD2HcBvM0eoP5oXvj55HVpl2NKdQNn96QQARgBAAIC07wDCzw6XnSlCq9Uys8ywmfD7OmLvTycAMAIAAgAkJav6OwHdAUC8OwAnAEAAAAEAYt4B9M4uc78wfHmuFX2234wPf+eOoLV/lHv98Pgk9/z0cOMEAAgACIAlAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAEAAAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAAAEABAAQAEAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQAAAAQAEABAAQABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABg27JGo7mu8g+sVsvMMsNmqt6fTgBgBAAEAEhKPfzB4v029/w1GRS+wWw6yz13L8ZWFSoSe386AYARABAAIO07gHCm2G13Ss0ctS3/HxNSEnt/OgGAEQAQACDtO4DfZo5QfzQvfL21f2SVYUOfH2+V7k8nADACAAIApH0HEH52uOxM8eMOYO/AKkOkO4DY+9MJAIwAgAAANd8JCDgBAAIACADw33wD+p+PuoP/ynUAAAAASUVORK5CYII=); }

/* ------------------------------------------------------------------ the fight's actions */
html[data-theme='neon'] .battle .action-bar .act-round.action-btn,
html[data-theme='neon'] .battle .action-bar .act-round.action-btn.ghost,
html[data-theme='neon'] .battle .action-bar .act-round.action-btn.art { border: 0; border-radius: 0; box-shadow: none; }
/* (a button with no picture of its own: the frame over a burst of its own colour, the gold icon in the middle) */
html[data-theme='neon'] .battle .action-bar .act-round.action-btn:not(.art) {
  --burst: radial-gradient(circle at 50% 46%, #26345e 0%, #0f1533 58%, #06070f 100%);
  background: var(--steel-box) center / 100% 100% no-repeat, var(--burst);
}
html[data-theme='neon'] .battle .action-bar .act-round.action-btn.atk:not(.art) { --burst: radial-gradient(circle at 50% 46%, #6a2026 0%, #2c0c12 58%, #0b0407 100%); }
html[data-theme='neon'] .battle .action-bar .act-round.action-btn.def:not(.art) { --burst: radial-gradient(circle at 50% 46%, #1f4a78 0%, #0c1d38 58%, #05080f 100%); }
html[data-theme='neon'] .battle .action-bar .act-round.action-btn.wait:not(.art) { --burst: radial-gradient(circle at 50% 46%, #4a2a6a 0%, #1c1030 58%, #08050e 100%); }
html[data-theme='neon'] .battle .action-bar .act-round.action-btn.ghost:not(.art) { --burst: radial-gradient(circle at 50% 46%, #2a2a36 0%, #131219 58%, #07070a 100%); }
/* (a button with a picture: most pictures have the frame painted in; the nine newer champions' do not, and some of
   theirs have no background either. So every picture gets the burst behind it and the frame over it: where the frame
   is painted in already the two sit on each other, where it is not this is the box) */
html[data-theme='neon'] .battle .action-bar .act-round.action-btn.art { background: radial-gradient(circle at 50% 46%, #26345e 0%, #0f1533 58%, #06070f 100%); }
html[data-theme='neon'] .battle .action-bar .act-round.action-btn.art.ult { background: radial-gradient(circle at 50% 46%, #6a3a12 0%, #2a1608 58%, #0b0604 100%); }
html[data-theme='neon'] .battle .action-bar .act-round.action-btn.art::after { content: ''; display: block; position: absolute; inset: 0; z-index: 2; border: 0; pointer-events: none; background: var(--steel-box) center / 100% 100% no-repeat; }
html[data-theme='neon'] .battle .action-bar .act-round.action-btn:hover:not(:disabled) { filter: brightness(1.15); }
/* (the one in hand: lit gold all round, outside the frame, so the frame itself never changes) */
html[data-theme='neon'] .battle .action-bar .act-round.action-btn.on { box-shadow: 0 0 0 2px #e2c27c, 0 0 16px 2px rgba(209, 171, 91, 0.5); }
html[data-theme='neon'] .battle .action-bar .act-round.action-btn.ult.full:not(:disabled):not(.on) { box-shadow: 0 0 0 2px #ff8a1e, 0 0 16px 4px rgba(255, 150, 40, 0.55); }

/* ------------------------------------------------------------------ the champions waiting to be placed */
html[data-theme='neon'] .battle .action-bar .nx-place-card > .card {
  border: 9px solid transparent;
  border-image: var(--steel-box) 24 / 9px / 0 stretch;
  border-radius: 0;
  padding: 0 0 4px !important;
  background: radial-gradient(circle at 50% 40%, #26345e 0%, #0f1533 58%, #06070f 100%);
  box-shadow: none;
}
html[data-theme='neon'] .battle .action-bar .nx-place-card > .card:hover:not(:disabled) { filter: brightness(1.12); }
html[data-theme='neon'] .battle .action-bar .nx-place-card > .card.picked {
  border: 9px solid transparent;
  border-image: var(--steel-box) 24 / 9px / 0 stretch;
  background: radial-gradient(circle at 50% 40%, #8a6418 0%, #3a2709 58%, #0e0903 100%);
  box-shadow: 0 0 0 2px #e2c27c, 0 0 16px 2px rgba(209, 171, 91, 0.5);
}
/* (a phone: the same box, a size smaller) */
html[data-theme='neon'] .narrow .action-bar .nx-place-card > .card,
html[data-theme='neon'] .narrow .action-bar .nx-place-card > .card.picked { border-width: 6px; border-image-width: 6px; padding: 0 0 19px !important; }
