/* =====================================================================================
   Pithorn interface. One token set, one component style (DECISIONS.md 113-121 and 131, ART.md palette).
   Every size is a token on the 4 px grid; every control in a row shares one height token.
   test/ui-align.cjs (npm run test:ui) measures the result at 1920x1080, 1366x768, 1280x720.
   ===================================================================================== */
/* fonts: vendored OFL web fonts (client/vendor/fonts, Latin subsets, ~136 KB), so the HUD lays out the
   same on Mac, Windows and Linux. Own family names, so a locally installed Inter never stands in. */
@font-face { font-family: 'Pithorn Sans'; src: url('/vendor/fonts/inter-latin-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pithorn Serif'; src: url('/vendor/fonts/alegreya-latin-var.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pithorn Serif'; src: url('/vendor/fonts/alegreya-latin-var-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  /* spacing: the 4 px grid (--s-h is the one half step, for hairline gaps inside tiny controls) */
  --s-h: 2px; --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  /* type scale: 13 px is the floor for anything shown during play */
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 24px; --fs-3xl: 32px; --fs-4xl: 48px; --fs-5xl: 96px;
  --lh-1: 16px; --lh-2: 20px; --lh-3: 24px;
  --serif: 'Pithorn Serif', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Pithorn Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* control heights: every button, input, select and chip in a row uses one of these */
  --h-xs: 20px; --h-sm: 28px; --h-md: 36px; --h-lg: 44px;
  /* radii, borders, shadows */
  --r-1: 2px; --r-2: 4px; --r-3: 8px; --r-pill: 999px;
  --bw: 1px; --bw-2: 2px; --bw-band: 4px;
  --sh-1: 0 1px 2px #000c; --sh-2: 0 4px 16px #000a; --sh-3: 0 12px 40px #000d;
  /* palette (ART.md): world */
  --soot: #0b0908; --ash: #14110e; --outline: #1a1410; --bone: #e8e2d4; --ash-grey: #6b6156; --dried-blood: #5a1a14;
  /* light */
  --gold: #e0a84a; --torch: #ffb45a; --ember: #f0693c; --reck: #c8372d; --ichor: #a8d448;
  /* UI signal */
  --good: #7ccf6a; --warn: #e0b84a; --bad: #e25c4a; --bad-ink: #ffb4a6; --good-ink: #cfeec6;
  /* mana (shared/balance.js COLORS) */
  --m-dawn: #f2e3a0; --m-tide: #5fb4e8; --m-dusk: #a06bd6; --m-ember: #f0693c; --m-wild: #6cc24a;
  --maiden: #a8456a; --maiden-hi: #e667a8;
  /* surfaces and lines: text contrast is 7:1 or better for --ink and --dim on --surface */
  --bg: var(--ash); --well: var(--soot);
  --surface: #17120ef0; --surface-solid: #17120e; --surface-2: #221b15; --surface-3: #2d241c; --surface-hi: #3d2f21;
  --line: #4a3d30; --line-2: #6b5640; --ink: #efe6d6; --dim: #bcae96; --faint: #8a7c68;
  /* HUD geometry (laptop default; larger screens below) */
  --top-h: 40px; --edge: var(--s-2); --gap: var(--s-2);
  --bar-h: 168px; --camp-w: 420px; --ab-size: var(--s-8); --hero-w: calc(4 * var(--ab-size) + 3 * var(--s-1) + 2 * var(--s-2)); --btn-h: 56px; --row-h: 28px; --head-h: 24px;
  --mana-h: 28px; --coach-h: 48px; --card-w: 120px; --hand-gap: var(--s-1);
  --bar-top: calc(var(--bar-h) + 2 * var(--edge));
  /* keep the legacy names the menu uses */
  --panel: var(--surface); --panel2: var(--surface-2);
}
@media (min-width: 1600px) and (min-height: 900px) {
  :root { --bar-h: 188px; --camp-w: 448px; --ab-size: var(--s-10); --btn-h: 64px; --row-h: 32px; --head-h: 28px; --card-w: 128px; --hand-gap: var(--s-2); }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--fs-md); overflow: hidden; user-select: none; -webkit-user-select: none; }
button, input, select { font: inherit; color: inherit; margin: 0; }

/* ---------- components ---------- */
/* button: one height per size, text centered on both axes */
button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); height: var(--h-md); padding: 0 var(--s-4);
  background: var(--surface-3); border: var(--bw) solid var(--line-2); border-radius: var(--r-2); color: var(--ink); font-size: var(--fs-md); line-height: var(--lh-1); cursor: pointer; white-space: nowrap; }
button:hover:not(:disabled) { border-color: var(--gold); background: var(--surface-hi); }
button:disabled { opacity: 0.45; cursor: default; }
button.primary { background: #6b3d16; border-color: var(--gold); color: #fff3dc; font-weight: 600; }
button.small { height: var(--h-sm); padding: 0 var(--s-3); font-size: var(--fs-sm); }
input, select { height: var(--h-md); background: var(--well); border: var(--bw) solid var(--line-2); border-radius: var(--r-2); padding: 0 var(--s-2); font-size: var(--fs-md); }
input:focus, select:focus, button:focus-visible { outline: var(--bw-2) solid var(--gold); outline-offset: 1px; }
/* key hint chip */
kbd, .kbd { display: inline-flex; align-items: center; justify-content: center; min-width: var(--h-xs); height: var(--h-xs); padding: 0 var(--s-1); background: var(--well);
  border: var(--bw) solid var(--line-2); border-radius: var(--r-1); font: 600 var(--fs-sm)/1 var(--sans); color: var(--bone); text-transform: uppercase; vertical-align: middle; }
/* color band: a strip across the top of a rounded box, clipped by the box's own corners
   (a thick border-top on a rounded box tapers at the corners and looks cut off) */
.cls, .cmd.drill, .cmd.maiden, .card, #cardpeek, #event .opt, .evcard, #maiden .bless, .award { position: relative; overflow: hidden; }
.cls::after, .cmd.drill::after, .cmd.maiden::after, .card::after, #cardpeek::after, #event .opt::after, .evcard::after, #maiden .bless::after, .award::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--band-w, 3px); background: var(--band, var(--c)); pointer-events: none; z-index: 2; }
.card, #cardpeek, .evcard { --band-w: var(--bw-band); }
#event .opt { --band: var(--line-2); } #event .opt:hover:not(:disabled) { --band: var(--gold); } #event .opt.mine { --band: var(--good); }
#maiden .bless { --band: var(--maiden); }
.award { --band: var(--gold); }
/* panel */
.pnl { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-2); box-shadow: var(--sh-2); }
.chip { display: inline-flex; align-items: center; gap: var(--s-1); height: var(--h-xs); padding: 0 var(--s-2); border-radius: var(--r-pill); font: 700 var(--fs-sm)/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.screen { position: fixed; inset: 0; }
[hidden] { display: none !important; }

/* ---------- menu: the welcome screen over the storm (client/title/, issue #14) ----------
   One heavy-ink look with the key art: flat fills, 2px ink borders, hard offset print shadows,
   no gradients or glows. Every size comes from the tokens below (4 px grid, CLAUDE.md 4b). */
#menu {
  /* shared tokens from :root; only the print look's own colours live here */
  --print: 4px; --paper: #e8dcc4; --paper-dim: #b8ab92; --red: #8a2a1c; --red-hi: #a3341f; --card: #120e0bf0; --menu-well: #1d1712;
  display: block; overflow: hidden; color: var(--bone); background: var(--soot); }
#menu button, #menu input, #menu select { box-sizing: border-box; border-radius: 0; font-family: var(--serif); }
#title-scene { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(60% 50% at 50% 0%, #3a1c12 0%, transparent 70%), var(--soot); }
.ts-stage { position: absolute; }
.ts-layer, .ts-bolt { position: absolute; inset: 0; width: 100%; height: 100%; display: block; will-change: transform; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.ts-layer { opacity: 0; transition: opacity 0.8s ease-out; }
#title-scene.ready .ts-layer { opacity: 1; }
#title-scene .ts-layer.sky-lit { opacity: 0; visibility: hidden; transition: none; will-change: opacity, transform;
  /* the sky as lightning lights it: cold and bright, so the ruins and the horn stand out as ink silhouettes */
  filter: grayscale(1) brightness(2.3) contrast(1.35) sepia(0.25) hue-rotate(185deg) saturate(1.6); }
.ts-glow, .ts-flash, .ts-vignette, .ts-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* soft-light keeps the ink black and lifts what the strike lights, so the land glows from within */
.ts-glow { opacity: 0; visibility: hidden; mix-blend-mode: soft-light; will-change: opacity; }
.ts-flash { background: #e8f0ff; opacity: 0; will-change: opacity; }
/* a darker centre band keeps the logo and the form readable on any crop */
.ts-vignette { background: radial-gradient(46% 42% at 50% 30%, #0b090899 0%, #0b090840 55%, transparent 100%),
  radial-gradient(120% 90% at 50% 45%, transparent 55%, #0b0908b3 100%); }

.menu-wrap { position: relative; z-index: 1; height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: var(--s-6) var(--s-4) 72px; }
.brand { text-align: center; pointer-events: none; }
.logo { margin: 0; line-height: 0; }
.logo img { --lw: min(760px, 70vw, 80vh); width: round(var(--lw), 4px); height: round(calc(var(--lw) * 0.29375), 4px); object-fit: contain; filter: drop-shadow(0 var(--s-2) var(--s-6) #000); }
.tag { margin: var(--s-1) 0 var(--s-5); font-family: var(--serif); font-style: italic; font-size: var(--fs-xl); line-height: var(--h-sm); letter-spacing: 0.04em; color: var(--bone);
  text-shadow: 2px 2px 0 var(--soot), -1px -1px 0 var(--soot), 0 0 12px #000, 0 0 24px #000; }

/* the card: a flat ink panel with a worn bone rule inside and a hard print shadow */
.menu-card { position: relative; width: min(980px, 100%); padding: var(--s-5) var(--s-6); background: var(--card);
  border: var(--bw-2) solid var(--soot); box-shadow: inset 0 0 0 1px #8b7a5e66, var(--print) var(--print) 0 var(--soot), 0 var(--s-4) 48px #000c; }
#menu[data-mode="landing"] .menu-card { width: auto; max-width: 100%; padding: var(--s-4); }
/* the landing's How to play: always visible, four tiles (#72: the landing page had no instructions) */
#howplay { display: none; margin-top: var(--s-3); width: min(920px, 100%); padding: var(--s-3) var(--s-4); background: var(--card); border-color: var(--line-2); }
#menu[data-mode="landing"] #howplay { display: block; }
#howplay h2 { margin: 0 0 var(--s-2); font: 700 var(--fs-lg)/var(--lh-3) var(--serif); color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; }
#howplay .hp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
#howplay .hp { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-2); border: var(--bw) solid var(--line-2); border-radius: var(--r-2); background: var(--menu-well); }
#howplay .hp .pic { height: 96px; border-radius: var(--r-1); background: #0b0908 center 35% / cover no-repeat; }
#howplay .hp b { display: block; font: 700 var(--fs-md)/var(--lh-1) var(--serif); color: var(--bone); text-transform: uppercase; letter-spacing: 0.08em; }
#howplay .hp p { margin: var(--s-1) 0 0; font: 400 var(--fs-sm)/var(--lh-2) var(--sans); color: var(--ink); }
#howplay kbd { height: var(--lh-1); min-width: var(--lh-1); padding: 0 var(--s-h); line-height: calc(var(--lh-1) - 2 * var(--bw)); font-size: var(--fs-sm); vertical-align: baseline; }
#howplay .hp-foot { margin: var(--s-2) 0 0; font: 600 var(--fs-sm)/var(--lh-2) var(--sans); color: var(--gold); }
@media (max-height: 800px) { #howplay .hp .pic { height: 64px; } #howplay { margin-top: var(--s-2); } #menu[data-mode="landing"] .logo img { --lw: min(480px, 70vw); } }

/* controls: one height per row, 2px ink borders, flat fills, a print shadow that presses in on click */
#menu button { height: var(--h-md); padding: 0 var(--s-4); font-size: var(--fs-md); font-weight: 600; letter-spacing: 0.06em; line-height: 1;
  color: var(--bone); background: var(--outline); border: var(--bw-2) solid var(--soot); box-shadow: inset 0 0 0 1px #8b7a5e88, 2px 2px 0 var(--soot); cursor: pointer; }
#menu button:hover:not(:disabled) { background: #2a2019; box-shadow: inset 0 0 0 1px var(--paper-dim), 2px 2px 0 var(--soot); }
#menu button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: inset 0 0 0 1px #8b7a5e88; }
#menu button.primary { color: var(--paper); background: var(--red); text-transform: uppercase; letter-spacing: 0.1em; text-shadow: 1px 1px 0 var(--soot);
  box-shadow: inset 0 0 0 1px #d0745a88, 2px 2px 0 var(--soot); }
#menu button.primary:hover:not(:disabled) { background: var(--red-hi); box-shadow: inset 0 0 0 1px var(--paper), 2px 2px 0 var(--soot); }
#menu button:disabled { opacity: 0.5; }
#menu input, #menu select { height: var(--h-md); padding: 0 var(--s-2); font-size: var(--fs-md); color: var(--soot); background: var(--paper);
  border: var(--bw-2) solid var(--soot); box-shadow: inset 2px 2px 0 #0b090833; }
#menu input::placeholder { color: #6b6156; opacity: 1; }
#menu select:disabled { color: #4a4038; background: var(--paper-dim); opacity: 1; }
#menu input:focus, #menu select:focus, #menu button:focus-visible { outline: var(--bw-2) solid var(--gold); outline-offset: var(--bw-2); }

/* landing: name on one row, host / or / code / join on the next; narrow so the horn stays clear */
.name-field { display: flex; flex-direction: column; gap: var(--s-1); margin-bottom: var(--s-3); color: var(--dim); font-family: var(--serif); font-size: var(--fs-sm); line-height: 16px; text-transform: uppercase; letter-spacing: 0.12em; }
.land-row { display: flex; gap: var(--s-2); align-items: center; }
#menu .name-field input, #menu .land-row button, #menu .land-row input { height: var(--h-lg); font-size: var(--fs-lg); }
#menu .name-field input { width: 100%; }
#menu .land-row button { padding: 0 var(--s-4); }
.or { height: var(--h-lg); line-height: var(--h-lg); padding: 0; color: var(--dim); font-family: var(--serif); font-style: italic; font-size: var(--fs-lg); }
#menu #code { width: 88px; padding: 0; text-transform: uppercase; letter-spacing: 0.24em; text-indent: 0.24em; text-align: center; }
.error:empty { display: none; }
.error { color: #ff9a86; min-height: 20px; line-height: 20px; margin: var(--s-2) 0 var(--s-2); font-size: var(--fs-md); text-align: center; text-shadow: 1px 1px 0 var(--soot); }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }

/* lobby: the logo shrinks and the card takes the room */
#menu[data-mode="lobby"] .logo img { --lw: min(360px, 40vw); }
#menu[data-mode="lobby"] .tag { display: none; }
#menu[data-mode="lobby"] .brand { margin-bottom: var(--s-3); }
.lobby-head { display: flex; gap: var(--s-3); align-items: center; height: var(--s-10); margin-bottom: var(--s-3); }
.lobby-head > div { flex: 1; display: flex; align-items: center; gap: var(--s-3); color: var(--dim); font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-sm); }
.code { font-family: var(--serif); font-size: 32px; line-height: var(--s-10); letter-spacing: 0.22em; color: var(--gold); user-select: text; -webkit-user-select: text; text-shadow: 2px 2px 0 var(--soot); }
#seats { display: grid; gap: var(--s-1); }
#howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) max-content; gap: var(--s-3); align-items: stretch; margin-top: var(--s-2); padding: var(--s-2) var(--s-3); border-color: var(--gold); background: var(--menu-well); }
#howto[hidden] { display: none; }
#howto > div { display: flex; flex-direction: column; gap: var(--s-h); min-width: 0; font-family: var(--sans); font-size: var(--fs-sm); line-height: var(--lh-1); color: var(--dim); }
#howto > div b { font: 700 var(--fs-md)/var(--lh-1) var(--serif); color: var(--gold); }
#howto > div b i { font-style: normal; color: var(--ink); margin-right: var(--s-1); }
#howto kbd { height: var(--lh-1); min-width: var(--lh-1); padding: 0 var(--s-h); line-height: calc(var(--lh-1) - 2 * var(--bw)); font-size: var(--fs-sm); vertical-align: baseline; }
#howto button { align-self: center; }
#howto .k { white-space: nowrap; }
.seat { display: grid; grid-template-columns: 16px 1fr 136px 112px 88px; gap: var(--s-3); align-items: center; height: var(--s-10); padding: 0 var(--s-3);
  background: var(--menu-well); border: var(--bw-2) solid var(--soot); box-shadow: inset 0 0 0 1px #3a2b1f; }
.seat.me { box-shadow: inset 0 0 0 1px var(--gold); background: #261c14; }
.seat .swatch { width: 16px; height: 16px; border: var(--bw-2) solid var(--soot); transform: rotate(45deg) scale(0.8); }
.seat .swatch.mine { cursor: pointer; box-shadow: 0 0 0 2px var(--gold); }
.seat .nm { font-family: var(--serif); font-size: var(--fs-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat .nm small { color: var(--dim); margin-left: var(--s-2); font-family: var(--sans); font-size: var(--fs-sm); }
.seat > span:not(.nm):not(.swatch) { font-family: var(--serif); font-size: var(--fs-md); }
#menu .seat select { height: var(--h-sm); padding: 0 var(--s-1); font-size: var(--fs-sm); width: 100%; }
#menu .seat button.small { height: var(--h-sm); padding: 0 var(--s-2); font-size: var(--fs-sm); }
.seat .clstxt { display: flex; align-items: center; height: var(--h-sm); padding: 0 calc(var(--s-1) + var(--bw-2)); }
.seat .off { color: #ff9a86; }
#class-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); margin: var(--s-3) 0; }
#menu .cls { height: auto; white-space: normal; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: var(--s-3); text-align: left; line-height: 1.35; letter-spacing: normal; font-weight: 400; background: var(--menu-well);
  border-top: var(--s-1) solid var(--c); box-shadow: inset 0 0 0 1px #3a2b1f, 2px 2px 0 var(--soot); }
#menu .cls:hover:not(:disabled) { background: #261c14; box-shadow: inset 0 0 0 1px var(--c), 2px 2px 0 var(--soot); }
#menu .cls.on { background: #2b2018; box-shadow: inset 0 0 0 2px var(--c), 2px 2px 0 var(--soot); }
.cls > b { font-family: var(--serif); font-size: var(--fs-lg); display: block; }
.cls i { color: var(--c); font-style: normal; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; }
.cls p { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--dim); font-family: var(--sans); }
/* the class's four abilities as icons (hover for the text) */
.cls .kit { display: flex; gap: var(--s-1); margin-top: var(--s-2); }
.cls .kab { flex: 1 1 0; max-width: var(--s-8); aspect-ratio: 1; border: var(--bw) solid var(--line-2); border-radius: var(--r-1); background: var(--surface-3) center / cover no-repeat; }
.cls .kab.ult { border-color: var(--gold); }
.lobby-foot { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.lobby-foot label { display: flex; align-items: center; gap: var(--s-2); height: var(--h-lg); color: var(--dim); font-family: var(--serif); font-size: var(--fs-md); }
#menu .lobby-foot select, #menu .lobby-foot button { height: var(--h-lg); font-size: var(--fs-lg); }
#menu .lobby-foot #start { padding: 0 var(--s-6); }
#lobby-note { color: var(--dim); font-size: var(--fs-sm); }
.lobby-foot { position: relative; }
#menu .lobby-foot .selbtn { min-width: 112px; justify-content: space-between; padding: 0 var(--s-2); color: var(--soot); background: var(--paper); letter-spacing: normal; text-transform: none; }
#menu .lobby-foot .selbtn::after { content: '\25BE'; color: var(--soot); font-size: var(--fs-sm); }
#drill-pick { position: absolute; z-index: 3; background: var(--surface-solid); left: 0; bottom: calc(100% + var(--s-2)); width: min(640px, 100%); display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-2); border-color: var(--gold); }
#drill-pick .presets { display: flex; gap: var(--s-2); padding: 0 var(--s-2) var(--s-1); }
#menu #drill-pick .presets button.on { border-color: var(--gold); color: var(--gold); }
#drill-pick > p { margin: 0 0 var(--s-1); padding: 0 var(--s-2); color: var(--dim); font-size: var(--fs-sm); line-height: var(--lh-2); }
#drill-pick label { display: flex; align-items: center; gap: var(--s-3); height: var(--h-md); padding: 0 var(--s-2); border-radius: var(--r-2); cursor: pointer; font-family: var(--sans); }
#drill-pick label:hover { background: var(--surface-3); }
#drill-pick label.dis { cursor: default; }
#drill-pick label input { flex: none; width: var(--s-4); height: var(--s-4); margin: 0; padding: 0; accent-color: var(--gold); }
#drill-pick label b { flex: none; width: 128px; font: 700 var(--fs-md)/var(--lh-1) var(--sans); color: var(--ink); white-space: nowrap; }
#drill-pick label small { flex: 1 1 auto; min-width: 0; font-size: var(--fs-sm); line-height: var(--lh-1); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#drill-pick label.off { border-top: var(--bw) solid var(--line-2); border-radius: 0; margin-top: var(--s-1); padding-top: var(--s-1); height: calc(var(--h-md) + var(--s-1)); }

#menu #title-mute { position: absolute; z-index: 2; top: var(--s-3); right: var(--s-3); height: var(--h-md); font-size: var(--fs-sm); opacity: 0.8; }
#menu #title-mute:hover { opacity: 1; }
#menu #title-mute.off { color: var(--dim); text-decoration: line-through; }
#horn-prompt { position: absolute; z-index: 2; left: 50%; bottom: var(--s-6); transform: translateX(-50%); height: var(--s-10); display: flex; align-items: center; padding: 0 var(--s-5);
  font-family: var(--serif); font-style: italic; font-size: var(--fs-lg); color: var(--bone); background: #0b0908e6; border: var(--bw-2) solid var(--soot);
  box-shadow: inset 0 0 0 1px #8b7a5e88, var(--print) var(--print) 0 var(--soot); pointer-events: none; animation: hornpulse 2.4s ease-in-out infinite; white-space: nowrap; }
.horn-ico { display: inline-block; width: 20px; height: 12px; margin-right: var(--s-2); background: var(--gold);
  clip-path: polygon(0 40%, 70% 0, 100% 0, 100% 100%, 70% 100%, 0 60%); }
@keyframes hornpulse { 0%, 100% { color: var(--bone); } 50% { color: var(--gold); } }
/* a strike: the card and logo jolt with the scene's shudder (ART.md 5.7: at most 6 px) */
#menu.jolt .menu-wrap { animation: jolt 0.5s cubic-bezier(.36,.07,.19,.97); }
@keyframes jolt { 10%, 90% { transform: translate(-1px, 1px); } 20%, 80% { transform: translate(3px, -2px); } 30%, 50%, 70% { transform: translate(-4px, 2px); } 40%, 60% { transform: translate(4px, -1px); } }
/* the match starts: the title fades out over the game */
#menu.leaving { z-index: 50; pointer-events: none; animation: menuout 0.9s ease-in forwards; }
#menu.leaving .menu-wrap { animation: menuout 0.35s ease-in forwards; }
@keyframes menuout { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #horn-prompt { animation: none; } #menu.jolt .menu-wrap { animation: none; } .ts-layer { transition: none; } }
/* big screens: the whole column scales by a whole factor so the 4 px grid stays on whole pixels */
@media (min-height: 1400px) and (min-width: 2200px) { .menu-wrap, #menu #title-mute, #horn-prompt { zoom: 1.5; } }
@media (min-height: 2000px) and (min-width: 3000px) { .menu-wrap, #menu #title-mute, #horn-prompt { zoom: 2; } }
/* ultrawide: the horn sits closer to the centre column, so the logo stays narrower */
@media (min-aspect-ratio: 2/1) { #menu[data-mode="landing"] .logo img { --lw: min(600px, 70vw, 60vh); } }
@media (max-height: 800px) { .menu-wrap { padding-top: var(--s-4); } #class-pick { margin: var(--s-2) 0; } .cls p { margin-top: var(--s-1); } #howto { padding: var(--s-1) var(--s-3); } #menu[data-mode="lobby"] .logo img { --lw: min(280px, 40vw); } }

/* =====================================================================================
   match HUD
   ===================================================================================== */
#game { font-size: var(--fs-md); }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: default; }

/* ---------- top bar: resources left, clock centered, settings right; every control 28 px ---------- */
#topbar { position: absolute; top: 0; left: 0; right: 0; height: var(--top-h); display: flex; align-items: center; gap: var(--s-2); padding: 0 var(--edge);
  background: linear-gradient(#1a1410f8, #17120ef0); border-bottom: var(--bw) solid var(--line); box-shadow: var(--sh-1); font-variant-numeric: tabular-nums; }
#topbar > .tb { display: flex; align-items: center; gap: var(--s-2); height: var(--h-sm); }
.stat { display: inline-flex; align-items: center; gap: var(--s-1); height: var(--h-sm); padding: 0 var(--s-2); border-radius: var(--r-2); background: #0006; border: var(--bw) solid var(--line); font-size: var(--fs-md); white-space: nowrap; }
.stat b { font-weight: 700; font-size: var(--fs-lg); color: var(--bone); }
.stat small { color: var(--dim); font-size: var(--fs-sm); }
/* compact top bar under 1440 px: word labels go (tooltips stay), at most three tags show, and only the
   current phase names what it holds. With these the stats and the round bar never meet at 1280 px. */
@media (max-width: 1439px) {
  .stat .lbl { display: none; }
  .stat.tags span:nth-of-type(n+4) { display: none; }
  #cycle .seg:not(.on) small { display: none; }
}
.stat.full b { color: var(--bad); }
.stat .free { color: var(--good); font-weight: 700; }
.stat.lv b { color: var(--gold); font-family: var(--serif); }
.stat.tags { gap: var(--s-2); }
.stat.tags span { color: var(--dim); } .stat.tags span.lit { color: var(--gold); } .stat.tags span.set { color: var(--ash); background: var(--gold); border-radius: var(--r-1); padding: 0 var(--s-1); font-weight: 700; }
.ico { display: inline-block; width: 10px; height: 10px; border-radius: var(--r-1); flex: none; }
.skull { font-style: normal; color: var(--bone); }
#tb-center { position: absolute; left: 50%; top: 0; height: var(--top-h); transform: translateX(-50%); display: flex; align-items: center; gap: var(--s-2); }
#clock { display: inline-flex; align-items: center; height: var(--h-sm); font-family: var(--serif); font-size: var(--fs-xl); line-height: 1; min-width: 64px; justify-content: center; color: var(--bone); }
#clock.reck { color: var(--ember); }
/* the cycle: round, then the three phases of this round with the current one filling as it runs (DECISIONS 175) */
#cycle { display: flex; align-items: center; gap: var(--s-1); height: var(--h-sm); }
#cycle:empty { display: none; }
#cycle .rd { display: inline-flex; align-items: center; height: var(--h-sm); padding: 0 var(--s-2); font: 700 var(--fs-sm)/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
#cycle .rd b { color: var(--bone); font-size: var(--fs-md); margin-left: var(--s-1); }
#cycle .seg { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: var(--s-1); height: var(--h-sm); padding: 0 var(--s-3); border: var(--bw) solid var(--line); border-radius: var(--r-2);
  background: #0006; color: var(--faint); font: 700 var(--fs-sm)/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
#cycle .seg::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--pc, var(--gold)); opacity: 0.28; }
#cycle .seg > * { position: relative; }
#cycle .seg.done { color: var(--dim); }
#cycle .seg.on { color: var(--bone); border-color: var(--pc, var(--gold)); }
#cycle .seg b { font-family: var(--serif); font-size: var(--fs-lg); letter-spacing: 0; color: var(--pc, var(--gold)); }
#cycle .seg small { font: 600 var(--fs-sm)/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dim); }
#cycle .seg.on small { color: var(--ink); }
#cycle .seg.rise { --pc: var(--gold); } #cycle .seg.battle { --pc: var(--ember); } #cycle .seg.camp { --pc: var(--good); }
#cycle .rd .sv { margin-left: var(--s-2); padding: 0 var(--s-1); border-radius: var(--r-1); font: 700 var(--fs-sm)/var(--lh-1) var(--sans); font-style: normal; letter-spacing: 0; color: var(--dim); }
#cycle .rd .sv.on { color: var(--ember); }
#cycle .rd .sv.bad { color: var(--ash); background: var(--ember); animation: evhurry 1.2s ease-in-out infinite; }
#bigcount { position: absolute; top: var(--bc-top, calc(var(--top-h) + var(--s-10) * 6)); right: var(--edge); width: 240px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-1); pointer-events: none; z-index: 6; text-shadow: var(--sh-2); }
#bigcount b { font: 900 var(--fs-5xl)/1 var(--serif); color: var(--bone); }
#bigcount small { font: 700 var(--fs-lg)/1.3 var(--sans); letter-spacing: 0.12em; color: var(--gold); }
#bigcount.tick b { animation: bigtick 1s ease-out; }
@keyframes bigtick { 0% { transform: scale(1.5); opacity: 0; } 20% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.92); opacity: 0.85; } }
#bossframe .also { display: flex; align-items: center; gap: var(--s-2); height: var(--h-xs); font: 600 var(--fs-sm)/1 var(--sans); color: var(--dim); }
#bossframe .also span { flex: 0 0 auto; white-space: nowrap; }
#bossframe .also .bar { flex: 1 1 auto; }
#cycle .seg.soon { animation: evhurry 1.2s ease-in-out infinite; }
#cycle.fin .seg.on { --pc: var(--reck); }
/* the boss frame: under the top bar while a boss is up, with the damage meter */
#bossframe { position: absolute; top: calc(var(--top-h) + var(--edge)); left: 50%; transform: translateX(-50%); width: 400px; padding: calc(var(--s-2) - var(--bw)) calc(var(--s-3) - var(--bw)); display: flex; flex-direction: column; gap: var(--s-1); pointer-events: none; z-index: 5; }
#bossframe .bh { display: flex; align-items: center; gap: var(--s-2); height: var(--h-xs); }
#bossframe .bh b { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bossframe .bh .chip { margin-left: auto; color: var(--ash); background: var(--ember); }
#bossframe .bh .chip.rg { background: var(--reck); color: #fff; }
#bossframe .bh .chip + .chip { margin-left: 0; }
#bossframe .bar { height: var(--s-3); background: var(--well); border: var(--bw) solid var(--line); border-radius: var(--r-1); overflow: hidden; }
#bossframe .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--reck), var(--ember)); transition: width 0.2s; }
#bossframe .dm { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); min-height: var(--h-xs); align-items: center; font-size: var(--fs-sm); line-height: var(--h-xs); color: var(--dim); white-space: nowrap; } /* wraps to a second line rather than truncating your own row */
#bossframe .dm span { display: inline-flex; align-items: center; gap: var(--s-1); }
#bossframe .dm span.me { color: var(--bone); font-weight: 700; }
#bossframe .dm span { flex: 0 1 auto; min-width: 0; }
#bossframe .dm span .nm { display: inline-block; min-width: 0; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
#bossframe .chip.stagger { border-color: var(--gold); color: var(--gold); }
#tb-right { margin-left: auto; }
#afk-btn.on { background: var(--bad); border-color: #fff; color: #fff; }

/* ---------- top corners: Pit modifier (left), scores (right) ---------- */
#scores { position: absolute; top: calc(var(--top-h) + var(--edge)); right: var(--edge); padding: var(--s-1) var(--s-2); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; min-width: 256px; max-width: 288px; }
#scores div { display: flex; gap: var(--s-2); align-items: center; height: var(--h-xs); }
#scores .n { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#scores .me { font-weight: 700; color: var(--bone); }
#scores .dead { opacity: 0.45; text-decoration: line-through; }
#scores .hd { color: var(--dim); border-bottom: var(--bw) solid var(--line); margin-bottom: var(--s-h); }
#scores .hd b, #scores .hd .n { color: var(--dim); font-weight: 500; }
#scores .how { display: block; height: auto; margin-top: var(--s-1); padding-top: var(--s-1); border-top: var(--bw) solid var(--line); color: var(--dim); line-height: var(--lh-1); }
#scores .how b { color: var(--ink); }
#scores .crown { color: var(--gold); margin-right: var(--s-1); }
#scores .lv { color: var(--dim); flex: none; width: var(--s-6); text-align: right; }
#scores div > b { flex: none; width: var(--s-10); text-align: right; }
#edict { position: absolute; top: calc(var(--top-h) + var(--edge)); left: var(--edge); font-size: var(--fs-sm); line-height: var(--lh-1); color: var(--gold); padding: var(--s-1) var(--s-2); max-width: 320px; }
#edict:empty { display: none; }
#edict span { color: var(--ink); }

/* ---------- bottom bar: minimap | camp | hero ............ mana over the hand ---------- */
#bottom { position: absolute; z-index: 36; left: 0; right: 0; bottom: 0; height: var(--bar-top); display: flex; gap: var(--gap); align-items: stretch; padding: var(--edge); pointer-events: none; }
#bottom > * { pointer-events: auto; }
#minimap { width: var(--bar-h); height: var(--bar-h); flex: none; border: var(--bw) solid var(--line); border-radius: var(--r-2); background: #000; cursor: crosshair; box-shadow: var(--sh-2); }
#panel, #heropanel { flex: none; height: var(--bar-h); padding: calc(var(--s-2) - var(--bw)); display: flex; flex-direction: column; gap: var(--s-2); overflow: hidden; }
#panel { width: var(--camp-w); }
#panel .later { margin: 0; padding: 0 var(--s-1); font: 400 var(--fs-sm)/var(--lh-2) var(--sans); color: var(--dim); }
#panel .later .k { white-space: nowrap; }
#panel .later kbd { height: var(--lh-1); min-width: var(--lh-1); padding: 0 var(--s-h); line-height: calc(var(--lh-1) - 2 * var(--bw)); font-size: var(--fs-sm); vertical-align: baseline; }
#heropanel { width: var(--hero-w); gap: var(--s-1); }
/* panel header: one 24 px line, title left, status right */
.ph { display: flex; align-items: center; gap: var(--s-2); height: var(--head-h); flex: none; white-space: nowrap; min-width: 0; }
.ph h4 { margin: 0; font-family: var(--serif); font-size: var(--fs-lg); line-height: 1; color: var(--bone); white-space: nowrap; }
.ph .r { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ph .ok { color: var(--good); } .ph .away { color: var(--bad-ink); } .ph .dim { color: var(--dim); }
.charges { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--gold); font-size: var(--fs-sm); }
.charges i { width: 10px; height: 10px; border-radius: 50%; border: var(--bw-2) solid var(--gold); }
.charges i.on { background: var(--gold); box-shadow: 0 0 6px #e0a84a99; }
.charges small { color: var(--dim); font-size: var(--fs-sm); }
.chip.rally { color: var(--ash); background: var(--good); }
.chip.carry { color: var(--ash); background: var(--gold); animation: evhurry 1.2s ease-in-out infinite; }
.hpbar { height: var(--s-1); background: var(--well); border-radius: var(--r-1); overflow: hidden; flex: none; margin-top: calc(-1 * var(--s-1)); }
.hpbar i { display: block; height: 100%; background: var(--good); transition: width 0.2s; }
.hpbar.mid i { background: var(--warn); } .hpbar.low i { background: var(--bad); }
.hint { color: var(--dim); font-size: var(--fs-sm); line-height: var(--lh-1); }
.hint b { color: var(--ink); }

/* command buttons: a fixed-height cell, key chip top right, name, then one line of status */
.cmds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-1); flex: none; }
#heropanel .cmds { grid-template-columns: minmax(0, 1fr); }
/* hero rows: key, name, status on one line; the cooldown curtain slides off to the right */
#heropanel .cmd { flex-direction: row; align-items: center; justify-content: flex-start; gap: var(--s-1); height: var(--row-h); padding: 0 var(--s-2); }
#heropanel .cmd > span { display: flex; align-items: center; gap: var(--s-1); white-space: nowrap; }
#heropanel .cmd kbd { float: none; margin: 0; width: var(--h-xs); padding: 0; }
#heropanel .cmd small { margin-left: auto; flex: none; }
#heropanel .cmd[style*="--cd"]::before { top: 0; bottom: 0; left: auto; right: 0; height: auto; width: calc(var(--cd) * 100%); }
/* the ability bar: four square slots on 1 2 3 4, WoW style. Icon fills the slot, key chip top left,
   cooldown as a clockwise sweep with the seconds over it, locked slots greyed with their level */
.abar { display: grid; grid-template-columns: repeat(4, var(--ab-size)); gap: var(--s-1); flex: none; }
.ab { position: relative; width: var(--ab-size); height: var(--ab-size); padding: 0; border: var(--bw) solid var(--line-2); border-radius: var(--r-2); background: var(--well); overflow: hidden; }
.ab .ico { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; background: center / cover no-repeat; }
.ab .ico.glyph { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 30%, var(--c), #0000 75%), var(--surface-3); font: 700 var(--fs-xl)/1 var(--serif); color: var(--ink); text-shadow: var(--sh-1); }
.ab kbd { position: absolute; left: 0; top: 0; z-index: 2; min-width: var(--lh-1); height: var(--lh-1); padding: 0 var(--s-h); border-width: 0 var(--bw) var(--bw) 0; border-radius: 0 0 var(--r-1) 0; background: #000c; }
.ab b { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; font: 700 var(--fs-md)/1 var(--sans); color: var(--ink); text-shadow: 0 0 3px #000, 0 1px 2px #000; }
.ab b.lock { align-items: flex-end; padding-bottom: var(--s-h); font-size: var(--fs-sm); color: var(--bone); }
.ab[style*="--cd"]::before { content: ''; position: absolute; inset: 0; z-index: 1; background: conic-gradient(#000b calc(var(--cd) * 360deg), #0000 0); pointer-events: none; }
.ab.locked .ico { filter: grayscale(1) brightness(0.45); }
.ab[aria-disabled="true"] { cursor: default; }
.ab.ult { border-color: var(--gold); }
.ab.ult:not([aria-disabled="true"]) { box-shadow: 0 0 0 var(--bw) #e0a84a66, 0 0 8px #e0a84a88; }
.ab.on { border-color: var(--gold); box-shadow: 0 0 0 var(--bw-2) var(--gold); }
.ab:hover:not([aria-disabled="true"]) { border-color: var(--gold); background: var(--well); }
.ab.pop { animation: cmdpop 1.2s ease-out; }
#tip .ult { color: var(--gold); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.05em; }
/* name over a health line */
.ph.hero { flex-direction: column; align-items: stretch; justify-content: space-between; gap: 0; }
.ph.hero > div:first-child { display: flex; align-items: center; gap: var(--s-2); height: var(--lh-1); }
.ph.hero .hpbar { margin: 0; }
.cmd { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 0; height: var(--btn-h); padding: calc(var(--s-1) - var(--bw)) calc(var(--s-2) - var(--bw)); text-align: left; white-space: normal;
  font-size: var(--fs-sm); line-height: var(--lh-1); background: linear-gradient(#33281e, #261e17); overflow: hidden; }
.cmd > span { display: block; min-width: 0; }
.cmd kbd { float: left; margin: 0 var(--s-1) 0 0; height: var(--lh-1); min-width: var(--lh-1); }
.cmd kbd.sp { visibility: hidden; }
.cmd small { flex: none; display: block; color: var(--dim); font-size: var(--fs-sm); line-height: var(--lh-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.cmd.poor small { color: var(--bad-ink); }
.cmd.on { border-color: var(--gold); background: linear-gradient(#55402a, #3a2c1d); }
.cmd.drill { --band: #a07a40; --band-w: var(--bw-2); }
.cmd.maiden { --band: var(--maiden); --band-w: var(--bw-2); }
.cmd:disabled { opacity: 0.5; }
/* cooldown: a dark curtain that falls as the ability recharges */
.cmd[style*="--cd"]::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--cd) * 100%); background: #000a; pointer-events: none; }
/* usable again: a short gold flash so it catches the eye */
.cmd.pop { animation: cmdpop 1.2s ease-out; }
@keyframes cmdpop { 0% { box-shadow: 0 0 0 0 #e0a84a00; } 25% { box-shadow: 0 0 0 2px var(--gold), 0 0 16px #e0a84aaa; border-color: var(--gold); } 100% { box-shadow: 0 0 0 0 #e0a84a00; } }
.altar { display: flex; flex-direction: column; justify-content: space-between; height: var(--btn-h); padding: var(--s-1) var(--s-2); border: var(--bw) solid var(--line); border-radius: var(--r-2); background: #0005; font-size: var(--fs-sm); line-height: var(--lh-1); color: var(--dim); }
.altar div { display: flex; justify-content: space-between; gap: var(--s-h); }
.altar i { width: 12px; height: var(--s-4); border-radius: var(--r-1); background: var(--c); opacity: 0.35; cursor: pointer; border: var(--bw) solid #0008; }
.altar i.on { opacity: 1; box-shadow: 0 0 0 2px #fff8; }
.altar i:hover { opacity: 0.8; }

/* ---------- mana strip over the hand ---------- */
#handbox { flex: 0 1 calc(6 * var(--card-w) + 5 * var(--hand-gap)); margin-left: auto; min-width: 0; display: flex; flex-direction: column; gap: var(--s-1); position: relative; }
#mana { display: flex; gap: var(--s-1); height: var(--mana-h); flex: none; container-type: inline-size; }
@container (max-width: 520px) { .pip .nm { display: none; } }
.pip { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: var(--s-1); padding: 0 var(--s-2); height: var(--mana-h); overflow: hidden; border-radius: var(--r-2);
  background: var(--surface); border: var(--bw) solid color-mix(in srgb, var(--c) 45%, #000); font-size: var(--fs-sm); white-space: nowrap; box-shadow: var(--sh-1); }
.pip::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--f, 0) * 100%); background: color-mix(in srgb, var(--c) 22%, transparent); pointer-events: none; }
.pip .gem { position: relative; width: 10px; height: 10px; flex: none; background: var(--c); transform: rotate(45deg); border-radius: 1px; box-shadow: 0 0 6px var(--c); }
.pip .nm { position: relative; color: var(--c); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pip b { position: relative; margin-left: auto; font-size: var(--fs-lg); font-weight: 700; color: var(--bone); font-variant-numeric: tabular-nums; }
.pip small { position: relative; color: var(--dim); font-size: var(--fs-sm); }
.pip.zero { border-color: var(--line); }
.pip.zero .gem { opacity: 0.35; box-shadow: none; } .pip.zero b { color: var(--faint); }
.pip.full { box-shadow: 0 0 0 1px var(--c), 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); }
/* the one pool: wider, with a cell per point that fills as it charges; devotion chips stay narrow */
.pip.pool { flex: 3 1 0; }
.pip.pool .cells { position: relative; flex: 1 1 auto; display: flex; gap: var(--s-h); height: var(--s-3); min-width: 0; }
.pip.pool .cells i { flex: 1 1 0; border-radius: var(--r-1); background: linear-gradient(90deg, var(--c) calc(var(--k) * 100%), #0b0908 calc(var(--k) * 100%)); border: var(--bw) solid color-mix(in srgb, var(--c) 40%, #000); }
.pip.pool b { margin-left: 0; }
.pip.dev { flex: 1 1 0; max-width: 112px; }
.pip.dev.multi { flex: 0 0 auto; max-width: none; gap: var(--s-1); }
.pip.dev.multi .gem { background: var(--c); }

/* ---------- the hand: six fixed slots, cards are art first ---------- */
#hand { flex: 1 1 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--hand-gap); min-height: 0; }
.slot { border: var(--bw) dashed var(--line); border-radius: var(--r-3); background: var(--surface-solid); display: grid; place-items: center; color: var(--faint); font-size: var(--fs-sm); text-align: center; padding: var(--s-1); line-height: var(--lh-1); }
.card { position: relative; min-width: 0; overflow: hidden; border-radius: var(--r-3); border: var(--bw) solid color-mix(in srgb, var(--c) 55%, #000);
  background: linear-gradient(color-mix(in srgb, var(--c) 18%, #241d17), #17120e 70%); cursor: pointer; transition: transform 0.12s, filter 0.2s; box-shadow: var(--sh-2); transform-origin: 50% 100%; }
.card .pic { position: absolute; inset: 0 0 var(--s-8) 0; background: center 30% / cover no-repeat; pointer-events: none; }
.card .pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, #17120e); }
.card kbd { position: absolute; top: var(--s-1); left: var(--s-1); z-index: 1; background: #0b0908e0; }
.card .cost { position: absolute; top: var(--s-1); right: var(--s-1); z-index: 1; width: var(--s-6); height: var(--s-6); border-radius: 50%; background: var(--c); color: var(--ash); font: 800 var(--fs-md)/1 var(--sans);
  display: grid; place-items: center; box-shadow: 0 0 0 2px #0b0908, var(--sh-1); }
.card .nm { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--s-1) var(--s-2) var(--s-2); font-family: var(--serif); font-weight: 700; font-size: var(--fs-md); line-height: var(--lh-1); color: var(--bone);
  text-shadow: 0 1px 2px #000, 0 0 8px #000; display: flex; flex-direction: column; gap: var(--s-h); background: linear-gradient(transparent, #0b0908d8 var(--s-3)); }
.card .nm b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; }
.card .nm .tl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 var(--fs-sm)/var(--lh-1) var(--sans); font-style: normal; color: var(--ink); }
.card.poor .nm .tl { color: var(--dim); }
.card.rare { border-color: var(--gold); }
.card.rare .nm b::after { content: ' ◆'; color: var(--gold); }
/* not enough mana: dimmed art, hollow cost, and a bar filling toward castable */
.card.poor { border-color: var(--line); --band: color-mix(in srgb, var(--c) 45%, #000); }
.card.poor .pic { filter: grayscale(0.85) brightness(0.45); }
.card.poor .cost { background: #0b0908; color: var(--c); box-shadow: 0 0 0 2px var(--c); }
.card.poor .nm { color: var(--dim); }
.card .eta { position: absolute; left: 0; right: 0; top: calc(var(--s-6) + var(--s-2)); z-index: 1; /* under the key and cost, clear of the name and its tldr */ padding: 0 var(--s-h); text-align: center; font: 800 var(--fs-sm)/var(--lh-1) var(--sans); color: var(--bone); text-shadow: var(--sh-2); pointer-events: none; }
.card.ready .eta { display: none; }
.card .need { position: absolute; left: 0; right: 0; bottom: 0; height: var(--s-1); background: #000a; z-index: 2; }
.card .need i { display: block; height: 100%; background: var(--c); opacity: 0.8; }
/* castable: lit in its mana color, breathing, with a small idle wiggle */
.card.ready { box-shadow: 0 0 0 1px var(--c), 0 0 14px color-mix(in srgb, var(--c) 60%, transparent), var(--sh-2); animation: cardglow 2.4s ease-in-out infinite, cardwiggle 7s ease-in-out infinite; animation-delay: 0s, var(--wd, 0s); }
@keyframes cardglow { 0%, 100% { box-shadow: 0 0 0 1px var(--c), 0 0 10px color-mix(in srgb, var(--c) 45%, transparent), var(--sh-2); }
  50% { box-shadow: 0 0 0 2px var(--c), 0 0 22px color-mix(in srgb, var(--c) 85%, transparent), var(--sh-2); } }
@keyframes cardwiggle { 0%, 88%, 100% { transform: none; } 91% { transform: rotate(-2deg); } 94% { transform: rotate(2deg); } 97% { transform: rotate(-1deg); } }
/* the reminder after a minute unused: a hop and a flash */
.card.nudge { animation: cardglow 0.6s ease-in-out 3, cardhop 1.8s ease-out 1; }
@keyframes cardhop { 0%, 100% { transform: none; } 12% { transform: translateY(-14px) rotate(-3deg); } 24% { transform: translateY(0); } 36% { transform: translateY(-8px) rotate(2deg); } 48% { transform: none; } }
.card.denied { animation: carddeny 0.4s linear; }
@keyframes carddeny { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.card:hover { transform: translateY(calc(-1 * var(--s-2))); z-index: 3; animation-play-state: paused; }
.card.on { transform: translateY(calc(-1 * var(--s-3))); box-shadow: 0 0 0 2px var(--c), 0 0 24px var(--c); z-index: 3; animation: none; }
/* reminder label over the hand */
#handnote { position: absolute; left: 0; right: 0; bottom: calc(100% + var(--s-2)); display: flex; justify-content: center; pointer-events: none; }
#handnote:empty { display: none; }
#handnote span { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--h-sm); padding: 0 var(--s-3); border-radius: var(--r-pill); background: #17120ef5; border: var(--bw) solid var(--gold);
  color: var(--bone); font-size: var(--fs-sm); box-shadow: var(--sh-2); white-space: nowrap; }
#handnote span.cast { border-color: var(--c, var(--gold)); box-shadow: 0 0 0 1px var(--c, var(--gold)), var(--sh-2); }
#handnote span.go { animation: notehop 1.8s ease-out; }
@keyframes notehop { 0% { opacity: 0; transform: translateY(8px); } 15%, 85% { opacity: 1; transform: none; } }

/* hover preview: the card, big, with everything it does */
#cardpeek { position: absolute; z-index: 45; width: 320px; pointer-events: none; overflow: hidden; border-radius: var(--r-3); border: var(--bw) solid color-mix(in srgb, var(--c) 60%, #000);
  background: linear-gradient(color-mix(in srgb, var(--c) 18%, #241d17), var(--surface-solid) 60%); box-shadow: var(--sh-3), 0 0 0 1px #000; }
#cardpeek .art { height: 176px; background: center 30% / cover no-repeat; position: relative; }
#cardpeek .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 60%, var(--surface-solid)); }
#cardpeek .cost { position: absolute; top: var(--s-2); right: var(--s-2); z-index: 1; width: var(--s-8); height: var(--s-8); border-radius: 50%; background: var(--c); color: var(--ash); font: 800 var(--fs-lg)/1 var(--sans); display: grid; place-items: center; box-shadow: 0 0 0 2px #0b0908; }
#cardpeek .bd { padding: 0 var(--s-4) var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
#cardpeek h5 { margin: 0; font-family: var(--serif); font-size: var(--fs-2xl); line-height: var(--lh-3); color: var(--bone); }
#cardpeek .ty { font-size: var(--fs-sm); color: var(--c); text-transform: uppercase; letter-spacing: 0.08em; line-height: var(--lh-1); }
#cardpeek p { margin: 0; font-size: var(--fs-lg); line-height: var(--lh-3); color: var(--bone); }
#cardpeek .how { color: var(--dim); font-size: var(--fs-sm); line-height: var(--lh-2); }
#cardpeek .st { margin-top: var(--s-1); display: flex; align-items: center; gap: var(--s-2); height: var(--h-sm); padding: 0 var(--s-2); border-radius: var(--r-2); font-size: var(--fs-sm); font-weight: 700; }
#cardpeek .st.ok { background: color-mix(in srgb, var(--c) 22%, #0b0908); color: var(--bone); border: var(--bw) solid var(--c); }
#cardpeek .st.no { background: #3a1712; color: var(--bad-ink); border: var(--bw) solid var(--bad); }

/* ---------- floating bits above the bar ---------- */
/* the feed stacks above the coach's tallest line pair, so the two never share space */
#feed { position: absolute; left: var(--edge); bottom: calc(var(--bar-top) + var(--coach-h) + 2 * var(--s-2)); width: 420px; display: flex; flex-direction: column; gap: var(--s-h); pointer-events: none; font-size: var(--fs-sm); line-height: var(--lh-2); }
body:has(#recap:not([hidden])) #feed, body:has(#boonwin:not([hidden])) #feed { visibility: hidden; } /* the recap card and the boon pick share the left edge with the log */
#feed div { background: #14110ee0; padding: 0 var(--s-2); border-left: 3px solid var(--line-2); border-radius: var(--r-1); animation: fade 9s forwards; width: fit-content; max-width: 100%; }
#feed .warn { border-color: var(--bad); color: var(--bad-ink); }
#feed .war { border-color: var(--ember); }
#feed .event { border-color: var(--gold); color: var(--gold); }
#feed .boss { border-color: var(--reck); color: #ff9d8a; font-weight: 600; }
#feed .spell { border-color: var(--m-dusk); color: #d9c2f5; }
@keyframes fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
#coach { position: absolute; left: 50%; bottom: calc(var(--bar-top) + var(--s-2)); transform: translateX(-50%); display: flex; gap: var(--s-3); align-items: center; padding: var(--s-1) var(--s-1) var(--s-1) var(--s-4);
  background: #241b12f5; border: var(--bw) solid var(--gold); border-radius: var(--r-3); font-size: var(--fs-md); line-height: var(--lh-2); max-width: min(640px, calc(100vw - 2 * var(--bar-h))); max-height: var(--coach-h); overflow: hidden; box-shadow: var(--sh-2); }
#coach:empty { display: none; }
#coach button { flex: none; width: var(--h-sm); padding: 0; }
#toast { position: absolute; top: calc(var(--top-h) + var(--s-10) * 3); left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: var(--fs-xl); text-align: center; color: #fff3dc; text-shadow: 0 2px 10px #000, 0 0 30px #000; pointer-events: none; max-width: min(70%, calc(var(--s-10) * 16)); opacity: 0; transition: opacity 0.4s; }
#toast.on { opacity: 1; }
#toast.on:not(:empty) { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-3); padding: var(--s-2) var(--s-4); } /* solid: readable over a brawl */
#banner.solid { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-3); padding: var(--s-2) var(--s-4); }
/* the Rise's gold arrow from your hero toward the Pit (HUD layer; #72: newcomers did not know where to go) */
#pitarrow { position: absolute; z-index: 4; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-1); pointer-events: none; transform: translate(-50%, -50%); }
#pitarrow[hidden] { display: none; }
#pitarrow i { width: var(--s-10); height: var(--s-10); transform: rotate(var(--a, 0rad)); background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M4 15h20V6l14 14-14 14v-9H4z' fill='%23ffd76a' stroke='%23140f0b' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 6px #ffb02e); animation: pitpulse 1s ease-in-out infinite; }
#pitarrow b { font: 800 var(--fs-sm)/var(--lh-1) var(--sans); letter-spacing: 0.08em; color: var(--gold); text-shadow: var(--sh-2); }
@keyframes pitpulse { 50% { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { #pitarrow i { animation: none; } }
#banner { position: absolute; top: calc(var(--top-h) + var(--s-10) * 5); left: 50%; transform: translate(-50%, -50%) scale(0.9); text-align: center; pointer-events: none; opacity: 0; z-index: 35; } /* over the maiden window and drill (31): a banner is never hidden */
#banner b { display: block; font-family: var(--serif); font-size: var(--fs-4xl); font-variant: small-caps; letter-spacing: 0.05em; text-shadow: 0 3px 0 #000, 0 0 40px #000, 0 0 18px var(--reck); }
#banner small { display: block; font-size: var(--fs-lg); color: var(--ink); text-shadow: 0 2px 8px #000; margin-top: var(--s-1); }
body:has(#checklist:not([hidden])) #banner { top: calc(var(--top-h) + var(--s-10) * 7); } /* the Camp checklist owns the top middle */
#banner.on { animation: banner 2.6s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } 10% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.04); } }
#banner:has(img) { display: grid; grid-template-columns: auto auto; column-gap: var(--s-4); align-items: center; text-align: left; }
#banner img { grid-row: 1 / 3; width: 116px; height: 116px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid var(--c); box-shadow: 0 0 0 2px #000, 0 0 30px var(--c); }
#banner:has(img) b { white-space: nowrap; }
#game.shake #view { animation: shake 0.45s linear; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translate(6px, -4px); } 40% { transform: translate(-5px, 5px); } 60% { transform: translate(4px, 3px); } 80% { transform: translate(-3px, -3px); } }
#conn { position: absolute; top: calc(var(--top-h) + var(--edge)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; height: var(--h-md); background: var(--bad); color: #fff; padding: 0 var(--s-4); border-radius: var(--r-2); z-index: 60; }

/* ---------- tooltip ---------- */
#tip { position: fixed; z-index: 50; max-width: 280px; background: #100d0bf8; border: var(--bw) solid var(--gold); border-radius: var(--r-2); padding: var(--s-2) var(--s-3); font-size: var(--fs-sm); line-height: var(--lh-2); pointer-events: none; display: none; box-shadow: var(--sh-2); }
#tip b { font-family: var(--serif); font-size: var(--fs-md); color: var(--bone); }
#tip small { color: var(--dim); font-size: var(--fs-sm); }

/* ---------- missable event window (client/eventwin.js) ----------
   A floating window: drag by the title bar, minimize to a bar, close to the pill at top center. */
#event { --w: 448px; position: absolute; z-index: 30; left: 50%; top: calc(var(--top-h) + var(--edge)); width: var(--w); max-width: calc(100vw - 2 * var(--edge));
  background: linear-gradient(#2b2015f8, #1d1610f8); border: var(--bw) solid var(--gold); border-radius: var(--r-3); box-shadow: var(--sh-3), 0 0 0 3px #e0a84a1f; }
#event.ev-draft { --w: fit-content; min-width: 400px; }
#event.ev-boon { --w: 560px; }
#event.dragging { box-shadow: 0 18px 50px #000e, 0 0 0 3px #e0a84a55; }
#event.dragging .ev-head { cursor: grabbing; }
.ev-head { display: flex; align-items: center; gap: var(--s-2); height: var(--h-md); padding: 0 var(--s-1) 0 var(--s-3); cursor: grab; touch-action: none; }
.ev-grip { flex: none; width: 10px; height: var(--s-4); opacity: 0.55; background: radial-gradient(circle, var(--gold) 1.2px, transparent 1.6px) 0 0 / 5px 5px; }
.ev-title { margin: 0; font-family: var(--serif); font-size: var(--fs-xl); line-height: 1; font-weight: 600; color: var(--gold); white-space: nowrap; }
.ev-chip { display: inline-flex; align-items: center; height: var(--h-xs); font-size: var(--fs-sm); padding: 0 var(--s-2); border-radius: var(--r-pill); border: var(--bw) solid var(--line); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ev-chip.ok { color: var(--good); border-color: #4d7a44; background: #1d2c19; }
.ev-chip.todo { color: var(--gold); border-color: #7a5a26; }
.ev-chip.lost { color: var(--bad-ink); border-color: #6e3a32; }
.ev-left { margin-left: auto; font-family: var(--serif); font-size: var(--fs-xl); line-height: 1; font-variant-numeric: tabular-nums; min-width: var(--s-8); text-align: right; white-space: nowrap; }
.ev-btn { flex: none; width: var(--h-sm); height: var(--h-sm); padding: 0; font-size: var(--fs-lg); border-radius: var(--r-2); background: #0005; color: var(--dim); }
.ev-btn:hover { color: var(--ink); }
.ev-timer { height: var(--s-1); background: #0009; margin: 0 var(--s-3); border-radius: var(--r-1); overflow: hidden; }
.ev-timer i { display: block; height: 100%; background: var(--gold); transition: width 1s linear; }
.ev-body { padding: 0 var(--s-3) var(--s-3); }
#event .sub { color: var(--dim); font-size: var(--fs-sm); line-height: var(--lh-1); margin: var(--s-2) 0; max-width: 560px; }
#event .foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-top: var(--s-2); min-height: var(--lh-2); font-size: var(--fs-sm); color: var(--dim); font-variant-numeric: tabular-nums; }
#event .foot .yours { color: var(--good); } #event .foot b { font-size: var(--fs-md); }
#event .note { font-size: var(--fs-sm); line-height: var(--lh-1); padding: var(--s-1) var(--s-2); border-radius: var(--r-2); margin: 0 0 var(--s-2); border-left: 3px solid; max-width: 560px; }
#event .note.bad { color: var(--bad-ink); background: #3a1712; border-color: var(--bad); }
#event .note.ok { color: var(--good-ink); background: #1d2c19; border-color: var(--good); }
#event.hurry, #evpill.hurry { border-color: var(--bad); animation: evhurry 1s ease-in-out infinite; }
#event.hurry .ev-left, #evpill.hurry .ev-left { color: #ff8a78; font-weight: 700; }
#event.hurry .ev-timer i { background: var(--bad); }
#event.hurry .ev-title { color: #ffb9a8; }
@keyframes evhurry { 0%, 100% { box-shadow: 0 10px 36px #000c, 0 0 0 3px #e25c4a30; } 50% { box-shadow: 0 10px 36px #000c, 0 0 0 6px #e25c4a90, 0 0 26px #e25c4a70; } }
#event.min { width: auto; min-width: 0; border-radius: var(--r-pill); }
#event.min .ev-timer, #event.min .ev-body { display: none; }
#event.min .ev-head { height: var(--h-md); padding: 0 var(--s-1) 0 var(--s-3); cursor: pointer; }
#event.min .ev-title { font-size: var(--fs-lg); } #event.min .ev-left { font-size: var(--fs-lg); margin-left: var(--s-1); }
#event.min .ev-chip { max-width: 192px; } #event.min .ev-btn { border-radius: var(--r-pill); }
#evpill { position: absolute; z-index: 30; top: calc(var(--top-h) + var(--edge)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: var(--s-2); height: var(--h-md); padding: 0 var(--s-3);
  border-radius: var(--r-pill); border: var(--bw) solid var(--gold); background: #241b12f5; box-shadow: var(--sh-2); font-size: var(--fs-sm); white-space: nowrap; max-width: calc(100vw - 2 * var(--s-4)); }
#evpill b { font-family: var(--serif); font-size: var(--fs-md); color: var(--gold); }
#evpill .ev-left { font-size: var(--fs-md); min-width: 0; margin: 0; }
#evpill u { color: var(--dim); text-decoration: none; border-left: var(--bw) solid var(--line); padding-left: var(--s-2); }
#evpill:hover u { color: var(--ink); }
#evpill.result { border-color: var(--line); }
#event.result { --w: 400px; min-width: 0; border-color: var(--line); box-shadow: 0 8px 28px #000b; }
#event.result .ev-left { font-family: var(--sans); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
#event.result .ev-title { color: var(--dim); }
#event.result .ev-timer { visibility: hidden; }
.ev-result { margin-top: var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--r-2); border-left: var(--bw-band) solid var(--line); background: #0004; }
.ev-result b { display: block; font-family: var(--serif); font-size: var(--fs-xl); line-height: var(--lh-3); }
.ev-result p { margin: var(--s-1) 0 0; font-size: var(--fs-sm); line-height: var(--lh-2); }
.ev-result small { display: block; margin-top: var(--s-1); font-size: var(--fs-sm); color: var(--dim); line-height: var(--lh-1); }
.ev-result.win { border-color: var(--good); background: #1b2a17; } .ev-result.win b { color: #b9eeab; }
.ev-result.lost { border-color: var(--bad); } .ev-result.lost b { color: var(--bad-ink); }
.ev-result.miss { border-color: #6b5a48; } .ev-result.miss b { color: var(--dim); }
/* Council and Omen options: equal columns, equal heights */
#event .opts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-2); }
#event .opt { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; height: auto; min-height: 96px; white-space: normal; text-align: left; padding: var(--s-2) var(--s-3) var(--s-3); background: linear-gradient(#35291d, #261e17); }
#event .opt b { display: block; font-family: var(--serif); font-size: var(--fs-lg); line-height: var(--lh-2); }
#event .opt small { color: #d6c8b0; display: block; margin-top: var(--s-1); line-height: var(--lh-1); font-size: var(--fs-sm); }
#event .opt:hover:not(:disabled) { border-color: var(--gold); background: linear-gradient(#45341f, #2c2218); }
#event .opt.mine { border-color: var(--good); background: linear-gradient(#2a3d23, #1d2c19); opacity: 1; }
#event .opt.locked { opacity: 0.4; }
#event .tag { margin-top: auto; padding-top: var(--s-2); font-style: normal; font-size: var(--fs-sm); line-height: var(--lh-1); text-transform: uppercase; letter-spacing: 0.09em; color: var(--good); font-weight: 700; }
/* The Auction */
#event .lot { position: relative; padding: var(--s-2) var(--s-3) var(--s-2) var(--s-4); border: var(--bw) solid #7a5a26; border-left: var(--bw-band) solid var(--gold); border-radius: var(--r-2); background: linear-gradient(100deg, #3d2c14, #241b12 70%); margin-bottom: var(--s-2); }
#event .lot i { position: absolute; top: var(--s-2); right: var(--s-3); font-style: normal; font-size: var(--fs-sm); line-height: var(--lh-1); text-transform: uppercase; letter-spacing: 0.14em; color: #c09650; }
#event .lot b { display: block; font-family: var(--serif); font-size: var(--fs-lg); line-height: var(--lh-2); color: #ffe2a8; }
#event .lot small { display: block; margin-top: var(--s-1); color: #ddd0b8; font-size: var(--fs-sm); line-height: var(--lh-1); }
#event .bids { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-1); }
#event .bid { flex-direction: column; gap: 0; height: var(--h-lg); padding: 0 var(--s-1); font-weight: 700; font-variant-numeric: tabular-nums; line-height: var(--lh-1); background: linear-gradient(#3a2d1f, #2a2119); }
#event .bid small { display: block; font-weight: 400; font-size: var(--fs-sm); line-height: var(--lh-1); color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
#event .bid:hover:not(:disabled) { background: linear-gradient(#4c3922, #33281c); }
#event .bid.mine { border-color: var(--good); background: linear-gradient(#2a3d23, #1d2c19); color: var(--good-ink); box-shadow: 0 0 0 1px var(--good) inset; }
#event .bid:disabled { opacity: 0.32; text-decoration: line-through; text-decoration-color: #0009; }
#event .bid:disabled small { text-decoration: none; }
/* The Conclave: cards in the five colors, same frame as the hand */
.evcards { display: grid; grid-template-columns: repeat(var(--n), 128px); gap: var(--s-2); justify-content: center; }
.evcard { position: relative; height: 216px; padding: 0 var(--s-2) var(--s-2); white-space: normal; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; overflow: hidden; border-radius: var(--r-3);
  border: var(--bw) solid color-mix(in srgb, var(--c) 45%, #000);
  background: linear-gradient(color-mix(in srgb, var(--c) 22%, #241d17), #1a1512 78%); transition: transform 0.1s; }
.evcard .cost { position: absolute; top: var(--s-1); right: var(--s-1); z-index: 1; width: var(--s-6); height: var(--s-6); border-radius: 50%; background: var(--c); color: var(--ash); font: 800 var(--fs-md)/1 var(--sans); display: grid; place-items: center; box-shadow: 0 0 0 2px #0b0908; }
.evcard i { position: absolute; top: var(--s-1); left: var(--s-1); z-index: 1; display: inline-flex; align-items: center; height: var(--h-xs); padding: 0 var(--s-1); border-radius: var(--r-1); background: #0b0908d0; font-style: normal; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; color: var(--c); }
.evcard > u { position: absolute; right: var(--s-1); bottom: var(--s-1); text-decoration: none; color: var(--ash); background: var(--gold); border-radius: var(--r-1); padding: 0 var(--s-1); font-size: var(--fs-sm); line-height: var(--lh-1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.evcard .pic { display: block; flex: none; height: 88px; margin: 0 calc(-1 * var(--s-2)) var(--s-1); background: center 35% / cover no-repeat; border-bottom: var(--bw) solid color-mix(in srgb, var(--c) 45%, #000); }
.evcard b { display: block; font-family: var(--serif); font-size: var(--fs-md); line-height: var(--lh-1); margin: var(--s-1) 0; color: var(--bone); }
.evcard p { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-1); color: #ddd0b8; }
.evcard.rare { padding-bottom: var(--s-6); border-color: var(--gold); box-shadow: 0 0 0 1px #e0a84a66, 0 0 12px #e0a84a33; }
.evcard:hover:not(:disabled) { transform: translateY(calc(-1 * var(--s-1))); border-color: var(--c); box-shadow: 0 6px 14px #000a, 0 0 0 1px var(--c); }
.evcard:disabled { opacity: 1; }
.evcard.locked, .evcard.blocked { filter: saturate(0.55) brightness(0.72); }
.evcard.blocked { cursor: not-allowed; }
.evcard.taken { filter: grayscale(0.85) brightness(0.5); box-shadow: none; }
.evcard.mine { border-color: var(--good); box-shadow: 0 0 0 2px var(--good), 0 0 16px #7ccf6a66; }
.evcard.mine > u { display: none; }
.evcard .stamp { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%) rotate(-12deg); font-style: normal; font-weight: 800; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.12em;
  padding: var(--s-h) var(--s-2); border: var(--bw-2) solid; border-radius: var(--r-2); text-align: center; background: #14110ee0; white-space: nowrap; max-width: 112px; }
.evcard .stamp small { display: block; font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.02em; text-transform: none; overflow: hidden; text-overflow: ellipsis; }
.evcard.mine .stamp { color: var(--good); top: auto; bottom: var(--s-2); transform: translateX(-50%) rotate(-4deg); }
.evcard.taken .stamp { color: #ff9d8a; filter: brightness(2); }

/* ---------- the Maiden Bower window ---------- */
#maiden { position: absolute; z-index: 31; left: 50%; bottom: calc(var(--bar-top) + var(--s-2)); transform: translateX(-50%); display: flex; gap: var(--s-3); padding: var(--s-3); width: min(800px, calc(100vw - 2 * var(--edge)));
  max-height: calc(100vh - var(--bar-top) - var(--top-h) - 2 * var(--s-2)); overflow: auto;
  background: linear-gradient(#2a1a22f8, #1a1216f8); border: var(--bw) solid var(--maiden); border-radius: var(--r-3); box-shadow: var(--sh-3), 0 0 0 3px #a8456a22; }
#maiden .pt canvas { width: 152px; height: 152px; border-radius: var(--r-3); border: var(--bw) solid #0008; display: block; }
#maiden .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#maiden h3 { margin: 0; font-family: var(--serif); font-size: var(--fs-2xl); line-height: var(--lh-3); } #maiden h3 small { color: var(--dim); font-size: var(--fs-sm); font-family: var(--sans); font-weight: 400; }
#maiden .pips { color: var(--maiden-hi); font-size: var(--fs-sm); line-height: var(--lh-2); } #maiden .pips small { color: var(--dim); font-size: var(--fs-sm); }
#maiden .say { font-family: var(--serif); font-style: italic; color: #f0d8e0; margin: var(--s-1) 0 var(--s-2); font-size: var(--fs-md); line-height: var(--lh-2); }
#maiden .opts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-2); }
#maiden .bless { position: relative; height: auto; white-space: normal; text-align: left; padding: var(--s-2) var(--s-3) var(--s-3); background: linear-gradient(#3a2430, #241820); border-color: #5a3344;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: var(--s-1); }
#maiden .bless:hover:not(:disabled) { --band: var(--maiden-hi); border-color: var(--maiden-hi); background: linear-gradient(#4a2c3c, #2c1c26); }
#maiden .bless b { font-family: var(--serif); font-size: var(--fs-lg); line-height: var(--lh-2); padding-right: var(--s-6); }
#maiden .bless p { margin: 0; font-size: var(--fs-sm); color: #e2d3da; line-height: var(--lh-1); }
#maiden .bless kbd { position: absolute; top: var(--s-2); right: var(--s-2); }
#maiden .bless .tag { font-size: var(--fs-sm); line-height: var(--lh-1); color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }
#maiden .bless small, #maiden .bless .setp { font-size: var(--fs-sm); line-height: var(--lh-1); color: var(--dim); }
#maiden .bless .setp b { color: var(--gold); font-size: var(--fs-sm); font-family: var(--sans); padding: 0; }
#maiden .bless .rule { align-self: flex-end; margin-top: auto; font-size: var(--fs-sm); line-height: var(--lh-1); color: var(--ash); background: var(--maiden-hi); border-radius: var(--r-1); padding: 0 var(--s-1); font-weight: 700; letter-spacing: 0.08em; font-style: normal; }
#maiden .bless.tr b { font-size: var(--fs-xl); }
#maiden .opts.two { grid-auto-columns: minmax(0, 1fr); }
#maiden .foot { display: flex; gap: var(--s-2); align-items: center; margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--dim); }
#maiden .foot .cost { flex: 1; } #maiden .foot b { color: var(--ink); }
#maiden .birth { display: flex; flex-direction: column; align-items: center; }
#maiden .born { text-align: center; margin: var(--s-2) 0 0; font-size: var(--fs-sm); line-height: var(--lh-2); min-height: 40px; } #maiden .born b { font-family: var(--serif); font-size: var(--fs-lg); color: var(--gold); }

/* ---------- drill mini-game overlay (chrome only; the drill draws itself in #mg-canvas) ---------- */
#mg { position: absolute; inset: var(--top-h) 0 var(--bar-top) 0; z-index: 35; display: grid; place-items: start center; padding-top: var(--s-1); background: #0b090855; pointer-events: none; }
#mg .mg-box { pointer-events: auto; }
.mg-box { background: var(--surface-solid); border: var(--bw) solid var(--gold); border-radius: var(--r-3); padding: var(--s-3); box-shadow: var(--sh-3); width: min(860px, 94vw, calc((100vh - var(--bar-top) - var(--top-h) - 104px) * 1.5)); } /* above the bar: the hand stays in sight during a drill (104 px = head 64 + its gap 8 + padding 24 + border 2 + #mg's top 4) */ /* the rhythm highway wants height: 720x480 field */
.mg-head { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); align-items: center; margin: 0 0 var(--s-2); min-height: var(--h-sm); }
.mg-head b { font-family: var(--serif); font-size: var(--fs-xl); line-height: 1; color: var(--gold); white-space: nowrap; }
.mg-head span { order: 3; flex: 1 1 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--dim); font-size: var(--fs-sm); line-height: var(--lh-1); }
.mg-head button { flex: none; margin-left: auto; }
#mg-canvas { width: 100%; aspect-ratio: 720 / 480; display: block; border-radius: var(--r-2); touch-action: none; }

/* ---------- sheets: help and end screen ---------- */
#help, #end { position: absolute; inset: 0; background: #0b0908e8; display: flex; z-index: 40; overflow: auto; padding: var(--s-5); }
.sheet { margin: auto; width: min(840px, 100%); padding: var(--s-6) var(--s-8); }
.sheet h2 { font-family: var(--serif); color: var(--gold); margin: 0 0 var(--s-3); font-size: var(--fs-3xl); line-height: 1.1; }
.sheet h3 { font-family: var(--serif); margin: var(--s-4) 0 var(--s-1); font-size: var(--fs-lg); color: var(--bone); }
.sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet td, .sheet th { height: var(--h-md); padding: 0 var(--s-2); border-bottom: var(--bw) solid var(--line); text-align: left; }
.sheet th { color: var(--dim); font-weight: 500; font-size: var(--fs-sm); }
.sheet td small { font-size: var(--fs-sm); color: var(--dim); }
.sheet .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-8); font-size: var(--fs-md); line-height: var(--lh-3); }
.sheet .foot { margin-top: var(--s-5); display: flex; gap: var(--s-3); align-items: center; color: var(--dim); }
.sheet .foot button { height: var(--h-md); }
.sheet.wide { width: min(1000px, 100%); }
.sheet .why { color: var(--dim); margin: calc(-1 * var(--s-1)) 0 var(--s-4); }
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-2); margin: 0 0 var(--s-4); }
.award { background: var(--surface-2); border: var(--bw) solid var(--line); border-radius: var(--r-2); padding: var(--s-2) var(--s-3); line-height: var(--lh-2); }
.award b { display: block; font-family: var(--serif); color: var(--gold); } .award span { display: block; } .award small { color: var(--dim); font-size: var(--fs-sm); }
.sheet tr.build td { height: auto; padding: 0 var(--s-2) var(--s-2); font-size: var(--fs-sm); color: var(--dim); }
.sheet .bl { display: inline-block; margin: 0 var(--s-2) var(--s-h) 0; } .sheet .trn { color: var(--maiden-hi); }
.sheet .trn img.trp { width: var(--s-6); height: var(--s-6); border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: var(--s-1); border: var(--bw) solid var(--maiden-hi); }
.sheet .ico { margin-right: var(--s-2); }

/* ---------- motion off: nothing wiggles, pulses or hops ---------- */
@media (prefers-reduced-motion: reduce) {
  .card.ready, .card.nudge, .cmd.pop, .ab.pop, #cycle .seg.soon, .chip.carry, #event.hurry, #evpill.hurry, #handnote span.go { animation: none; }
  .card.ready { box-shadow: 0 0 0 2px var(--c), 0 0 16px color-mix(in srgb, var(--c) 70%, transparent), var(--sh-2); }
}

/* ---------- camp panel tabs and the Build tab (#12, #13) ---------- */
.ph .tab { height: var(--head-h); padding: 0 var(--s-2); font: 700 var(--fs-lg)/1 var(--serif); color: var(--dim); background: transparent; border: var(--bw) solid transparent; border-radius: var(--r-2); display: inline-flex; align-items: center; gap: var(--s-1); }
.ph .tab.on { color: var(--bone); border-color: var(--line-2); background: var(--surface-3); }
.ph .tab .n { display: inline-grid; place-items: center; min-width: var(--s-4); height: var(--s-4); padding: 0 var(--s-1); border-radius: var(--r-pill); background: var(--good); color: var(--ash); font: 700 var(--fs-xs)/1 var(--sans); }
.ph .tab.ready { color: var(--good); border-color: var(--good); animation: evhurry 1.4s ease-in-out infinite; }
#panel .cmds.homerow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#panel .cmds.builds { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#panel .cmds.builds .cmd, #panel .cmds.homerow .cmd { font-size: var(--fs-sm); }
.homeinfo { grid-column: span 3; display: flex; flex-direction: column; justify-content: center; gap: var(--s-1); height: var(--btn-h); padding: 0 var(--s-2); border: var(--bw) solid var(--line); border-radius: var(--r-2); background: #0005; font-size: var(--fs-sm); line-height: var(--lh-1); color: var(--dim); }
.homeinfo.max { grid-column: span 4; }
.homeinfo b { font: 700 var(--fs-lg)/1 var(--serif); color: var(--gold); }
.cmd.homeup { --band: var(--gold); --band-w: var(--bw-2); }
.cmd.bld { --band: #6b5a48; --band-w: var(--bw-2); }
.cmd.bld.ready { --band: var(--good); animation: evhurry 1.4s ease-in-out infinite; }
.cmd.plotbtn { color: var(--dim); border-style: dashed; }
.plot.locked { display: grid; place-items: center; height: var(--btn-h); padding: 0 var(--s-1); border: var(--bw) dashed var(--line); border-radius: var(--r-2); color: var(--faint); font-size: var(--fs-sm); line-height: var(--lh-1); text-align: center; }
.floattext { position: absolute; z-index: 26; transform: translate(-50%, -50%); pointer-events: none; font: 700 var(--fs-lg) var(--serif); text-shadow: 0 2px 4px #000, 0 0 12px #000; white-space: nowrap; animation: floatup 1.6s ease-out forwards; }
@keyframes floatup { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.8); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }

/* the end screen's discography: one record per boss of the match (Pit Rush, #27) */
#end .disco { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }
#end .disco .rec { display: flex; flex-direction: column; gap: var(--s-1); width: 136px; padding: var(--s-2); border: var(--bw) solid var(--line); border-radius: var(--r-2); background: var(--well); }
#end .disco .cover { position: relative; width: 120px; height: 120px; overflow: hidden; border-radius: var(--r-1); background: radial-gradient(circle at 50% 60%, hsl(var(--hue) 45% 22%), #050403 75%); }
#end .disco .cover img { position: absolute; left: 50%; bottom: -10%; width: 110%; transform: translateX(-50%); }
#end .disco .cover span { position: absolute; left: var(--s-1); top: var(--s-1); font: 700 var(--fs-sm)/1 var(--sans); letter-spacing: 0.1em; color: var(--dim); text-shadow: 0 1px 0 #000; }
#end .disco .rec.lost .cover img { filter: sepia(0.6) hue-rotate(-30deg) saturate(1.6); }
#end .bl.mut { border-color: var(--gold); color: var(--gold); }
#end .disco .rec b { font: 700 var(--fs-lg)/1 var(--serif); color: var(--bone); }
#end .disco .rec small { font: 600 var(--fs-sm)/1 var(--sans); color: var(--dim); }
#end .disco .rec.won { border-color: var(--gold); }
#end .disco .rec.lost { border-color: var(--ember); }

/* the "do this now" chip (Pit Rush, #27 C): the one thing worth doing right now, above the camp panel. Pulses. */
#nudge { position: absolute; left: var(--edge); max-width: calc(var(--bar-h) + var(--camp-w) - var(--s-10) * 4); bottom: calc(100% + var(--s-2)); display: inline-flex; align-items: center; gap: var(--s-2); height: var(--h-md); padding: 0 var(--s-3); border: var(--bw-2) solid var(--gold); border-radius: var(--r-pill); background: #17120ef5; color: var(--bone); font: 700 var(--fs-md)/1 var(--sans); box-shadow: var(--sh-2); cursor: pointer; animation: nudgepulse 1.4s ease-in-out infinite; z-index: 7; }
#nudge[hidden] { display: none; }
#nudge.red { border-color: var(--bad); }
#nudge.pink { border-color: var(--c, var(--gold)); }
#nudge kbd { margin-left: var(--s-1); }
@keyframes nudgepulse { 0%, 100% { box-shadow: var(--sh-2), 0 0 0 0 #e0a84a00; } 50% { box-shadow: var(--sh-2), 0 0 0 var(--s-1) #e0a84a66; } }
/* the maiden bar: pick-up lines */
#maiden .bless.line { text-align: left; }
#maiden .bless.line .odds { margin-left: auto; font: 700 var(--fs-sm)/1 var(--sans); color: var(--dim); }
#maiden .bless.line p { font-family: var(--serif); font-style: italic; }
#maiden .bless.line small { color: var(--dim); }
#maiden .bless.line.bold { border-color: var(--gold); }
#maiden .bless.line.unhinged { border-color: var(--ember); }
#maiden .said { font-family: var(--serif); font-style: italic; color: var(--dim); margin: 0; }
#maiden .born .rare { color: var(--gold); }
#maiden .born.snub { color: var(--bad); }
#maiden .born .legend { font-style: normal; font-weight: 900; color: var(--ember); letter-spacing: 0.1em; }

/* the album-cover rise (#27 E): a record sleeve for the monster, left of center, never over the boss */
#sleeve { position: absolute; left: var(--s-6); top: calc(var(--top-h) + var(--s-10) * 2); display: flex; gap: var(--s-3); align-items: flex-end; pointer-events: none; z-index: 6; animation: sleevein 0.6s ease-out; }
#sleeve[hidden] { display: none; }
#sleeve .cover { position: relative; width: 192px; height: 192px; overflow: hidden; border: var(--bw-2) solid var(--line-2); border-radius: var(--r-1); box-shadow: var(--sh-3); background: radial-gradient(circle at 50% 60%, hsl(var(--hue) 45% 22%), #050403 75%); transform: rotate(-3deg); }
#sleeve .cover.fin { border-color: var(--reck); background: radial-gradient(circle at 50% 60%, #5a1408, #050403 75%); }
#sleeve .cover img { position: absolute; left: 50%; bottom: -12%; width: 112%; transform: translateX(-50%); filter: contrast(1.15) saturate(0.85) drop-shadow(0 0 12px #000); }
#sleeve .band { position: absolute; left: 0; right: 0; top: var(--s-2); text-align: center; font: 900 var(--fs-2xl)/1 var(--serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone); text-shadow: 0 2px 0 #000, 0 0 12px #000; }
#sleeve .side { position: absolute; left: var(--s-2); bottom: var(--s-2); font: 700 var(--fs-sm)/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); text-shadow: 0 1px 0 #000; }
#sleeve .meta { display: flex; flex-direction: column; gap: var(--s-1); padding-bottom: var(--s-2); text-shadow: var(--sh-1); }
#sleeve .meta b { font: 700 var(--fs-xl)/1 var(--serif); color: var(--bone); }
#sleeve .meta small { font: 600 var(--fs-sm)/var(--lh-1) var(--sans); color: var(--dim); }
#sleeve .meta .feat { color: var(--ember); }
#sleeve .meta .when { font: 700 var(--fs-md)/1 var(--sans); color: var(--gold); }
@keyframes sleevein { from { transform: translateX(-40px) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
/* boss boons: pick one of three mutations, never blocking */
#boonwin { position: absolute; left: var(--edge); top: calc(var(--top-h) + var(--s-10) + var(--s-6)); width: 300px; display: flex; flex-direction: column; gap: var(--s-1); padding: calc(var(--s-2) - var(--bw)); z-index: 8; border-color: var(--gold); }
#boonwin[hidden] { display: none; }
#boonwin .bh { display: flex; flex-direction: column; gap: var(--s-1); }
#boonwin .bh b { font: 700 var(--fs-lg)/1 var(--serif); color: var(--gold); }
#boonwin .bh small { font: 600 var(--fs-sm)/1 var(--sans); color: var(--dim); }
#boonwin .boon { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); height: auto; padding: var(--s-2); text-align: left; }
#boonwin .boon b { font: 700 var(--fs-md)/1 var(--sans); color: var(--bone); }
#boonwin .boon span { font: 400 var(--fs-sm)/var(--lh-1) var(--sans); color: var(--dim); white-space: normal; }
#boonwin .boon.build { display: grid; grid-template-columns: var(--s-10) 1fr; column-gap: var(--s-2); row-gap: var(--s-1); align-items: center; }
#boonwin .boon.build .pic { grid-row: span 2; width: var(--s-10); height: var(--s-10); border-radius: var(--r-1); background: #0b0908 center / contain no-repeat; }
#boonwin .boon.build b small { font-weight: 600; color: var(--dim); }
#boonwin .reroll { align-self: stretch; }
#panel .chip.grow { color: var(--gold); background: #2a2016; border: var(--bw) solid color-mix(in srgb, var(--gold) 45%, transparent); text-transform: none; letter-spacing: normal; }
#scores .tier { width: var(--s-10); color: var(--gold); }
#scores .hd .tier { color: var(--dim); }

/* the Camp checklist (playtest): always up in the Camp, under the round bar (the boss frame's spot) */
#checklist { position: absolute; top: calc(var(--top-h) + var(--edge)); left: 50%; transform: translateX(-50%); width: 440px; display: flex; flex-direction: column; gap: var(--s-1); padding: calc(var(--s-2) - var(--bw)) calc(var(--s-3) - var(--bw)); z-index: 5; border-color: var(--good); }
#checklist[hidden] { display: none; }
#checklist .ch { display: flex; align-items: center; gap: var(--s-2); height: var(--h-sm); }
#checklist .ch b { font: 700 var(--fs-lg)/1 var(--serif); color: var(--good); }
#checklist .ch span { font: 700 var(--fs-md)/1 var(--sans); color: var(--bone); }
#checklist .ch .rdy { margin-left: auto; font: 700 var(--fs-md)/1 var(--sans); color: var(--good); }
#checklist .ch .rdy + .ready { margin-left: 0; }
#checklist .ch .ready { margin-left: auto; height: var(--h-sm); }
#checklist .ch .ready.on { border-color: var(--good); color: var(--good); }
#checklist .ch small { font: 600 var(--fs-sm)/1 var(--sans); color: var(--dim); }
#checklist .row { display: flex; align-items: center; gap: var(--s-2); min-height: var(--h-sm); padding: 0 var(--s-2); border: var(--bw) solid transparent; border-radius: var(--r-2); font: 600 var(--fs-md)/var(--lh-2) var(--sans); color: var(--ink); }
#checklist .row span { flex: 1 1 auto; min-width: 0; }
#checklist .row small { font: 600 var(--fs-sm)/1 var(--sans); color: var(--dim); }
#checklist .row i { flex: none; width: var(--s-5); font-style: normal; color: var(--gold); text-align: center; }
#checklist .row b { color: var(--gold); }
#checklist .row kbd { margin-left: auto; }
#checklist .row.done { color: var(--faint); }
#checklist .row.done i { color: var(--good); }
#checklist .row.now { border-color: var(--gold); background: #e0a84a14; cursor: pointer; animation: nudgepulse 1.4s ease-in-out infinite; }

/* the offering's card pick (camp economy) */
#maiden .bless.pick img { width: 100%; height: auto; border-radius: var(--r-1); }
#maiden .bless.pick.rare { border-color: var(--gold); }
#maiden .bless.pick .legend { color: var(--gold); font-weight: 700; }

/* the recap card after each Battle (FUN PLAN): left side, never over the boss, never eats input */
#recap { position: absolute; left: var(--s-6); top: calc(var(--top-h) + var(--s-10) * 6); width: 280px; display: flex; flex-direction: column; gap: var(--s-2); padding: calc(var(--s-2) - var(--bw)) calc(var(--s-3) - var(--bw)); pointer-events: none; z-index: 6; border-color: var(--gold); animation: sleevein 0.4s ease-out; }
#recap[hidden] { display: none; }
#recap .rh { display: flex; align-items: center; gap: var(--s-2); }
#recap .rh b { font: 700 var(--fs-lg)/1 var(--serif); color: var(--gold); }
#recap .rh span { margin-left: auto; font: 600 var(--fs-sm)/1 var(--sans); color: var(--ink); display: inline-flex; align-items: center; gap: var(--s-1); }
#recap .rr { display: flex; gap: var(--s-3); }
#recap .rr span { display: flex; flex-direction: column; gap: var(--s-1); font: 600 var(--fs-sm)/1 var(--sans); color: var(--dim); }
#recap .rr span b { font: 700 var(--fs-xl)/1 var(--serif); color: var(--bone); }
#recap .rr span b.up { font-size: var(--fs-md); color: var(--good); }
#recap .rr span b.down { font-size: var(--fs-md); color: var(--bad); }
#recap .rs, .rs { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); font: 600 var(--fs-sm)/var(--lh-1) var(--sans); color: var(--dim); }
.rs b { color: var(--bone); }
#recap small { font: 600 var(--fs-sm)/var(--lh-1) var(--sans); color: var(--dim); }
