/* City of Heroes CCG — comic-book art direction.
 *
 * The look is a printed page: heavy ink outlines, hard offset shadows instead
 * of soft blur, Ben-Day halftone under the panels, cream caption boxes for
 * narration, and display type for names. Nothing here loads an external font
 * or asset — the server is self-hosted and should stay that way.
 *
 * Class names are load-bearing: app.js and decks.js build the DOM. Restyle
 * freely, rename nothing.
 */

:root {
  /* Ink and paper */
  --ink: #0d0f14;
  --ink-2: #1a1d26;
  --paper: #f3ead3;          /* caption cream */
  --paper-2: #e6dabc;

  /* Night-city base */
  --bg: #10131b;
  --panel: #1b1f2b;
  --panel-2: #232838;
  --line: var(--ink);

  --text: #eef1f8;
  --muted: #8f97ad;

  /* Paragon palette */
  --accent: #3d7bd9;         /* hero blue */
  --accent-2: #7fb2ff;
  --gold: #f0b429;
  --good: #35a86b;
  --bad: #d93b30;
  --warn: #e0932a;

  /* One knob drives card size, power size, tooltip width and base text size,
     so everything grows together instead of drifting out of proportion. */
  --ui-scale: 1;
  --card-w: calc(92px * var(--ui-scale));
  --power-w: calc(62px * var(--ui-scale));
  --tip-w: calc(260px * var(--ui-scale));
  --font: calc(14px * var(--ui-scale));

  /* Comic furniture */
  --ink-w: 2px;                              /* outline weight */
  --pop: 4px;                                /* hard shadow offset */
  --gutter: calc(14px * var(--ui-scale));

  /* No webfont: the server is self-hosted and should not reach out to a CDN.
     Ordered so a machine without Impact still lands on *some* condensed face
     rather than falling back to the body font and losing the look entirely. */
  --display: "Haettenschweiler", "Impact", "Franklin Gothic Bold",
             "Arial Narrow", "Fira Sans Condensed", "Roboto Condensed",
             "DejaVu Sans Condensed", "Liberation Sans Narrow",
             system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font: var(--font) / 1.5 var(--body);
  background-color: var(--bg);
  /* Ben-Day dots + a soft spotlight, so the page reads as printed stock. */
  background-image:
    radial-gradient(circle at 30% 12%, rgba(61, 123, 217, .16), transparent 55%),
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.2px);
  background-size: 100% 100%, 6px 6px;
  background-attachment: fixed;
}

.hidden { display: none !important; }
.muted { color: var(--muted); font-weight: 400; }

/* ---------- ink furniture ---------- */

.panel, .side, .missions, .log, .modal-inner, .tooltip, .react-bar {
  border: var(--ink-w) solid var(--ink);
  border-radius: 3px;
  box-shadow: var(--pop) var(--pop) 0 rgba(0, 0, 0, .55);
}

/* ---------- header ---------- */

header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  background: var(--ink);
  border-bottom: var(--ink-w) solid #000;
  position: relative;
}
header::after {                       /* torn-page hairline */
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px;
  background: repeating-linear-gradient(90deg,
    var(--gold) 0 10px, transparent 10px 20px);
  opacity: .55;
}
.wordmark {
  height: calc(30px * var(--ui-scale)); width: auto; display: block;
  border: 2px solid var(--ink); border-radius: 2px;
}
@media (max-width: 640px) { .wordmark { display: none; } }

header h1 {
  margin: 0;
  font: 700 calc(20px * var(--ui-scale)) / 1 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 2px 2px 0 var(--accent);
}
header h1 .muted { color: var(--gold); text-shadow: none; }
header a { color: var(--muted); text-decoration: none; }
header a:hover { color: var(--accent-2); }

#seat { color: var(--gold); font-weight: 600; letter-spacing: .04em; }

.status {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: .92em;
}
.status.turn { color: var(--gold); }
.status.wait { color: var(--muted); }
.status.err  { color: #ff7a6e; }

main { padding: 18px; margin: 0 auto;
       max-width: min(100%, calc(1240px * var(--ui-scale))); }

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

.panel, .side, .missions, .log {
  background-color: var(--panel);
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.2px);
  background-size: 5px 5px;
  padding: 14px;
  margin-bottom: var(--gutter);
}
.panel h2 {
  margin: 0 0 12px;
  font: 400 calc(15px * var(--ui-scale)) / 1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.panel h2 a { color: var(--muted); font-family: var(--body); font-size: .8em; }

.row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
label.check { flex-direction: row; align-items: flex-start; gap: 8px;
              color: var(--muted); margin: 12px 0; max-width: 62ch; }
label.check.inline { align-items: center; gap: 6px; margin: 0; white-space: nowrap; }

/* ---------- controls ---------- */

select, input, output {
  background: var(--ink-2);
  color: var(--text);
  border: var(--ink-w) solid var(--ink);
  border-radius: 3px;
  padding: 6px 9px;
  font: inherit;
}
button {
  background: var(--panel-2);
  color: var(--text);
  border: var(--ink-w) solid var(--ink);
  border-radius: 3px;
  padding: 6px 11px;
  font: 600 inherit;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .6);
  transition: transform .04s ease, box-shadow .04s ease;
}
button:hover:not(:disabled) { background: #2b3247; }
button:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);       /* the button presses into the page */
}
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

button.primary { background: var(--accent); color: #fff; }
button.primary:hover:not(:disabled) { background: #4c8ceb; }
button.danger  { background: var(--bad); color: #fff; }
button.innate  { margin-top: 8px; background: var(--gold); color: var(--ink);
                 font-size: .9em; padding: 4px 9px; }

.zoom { display: flex; align-items: center; gap: 8px; color: var(--muted);
        font-size: 12px; white-space: nowrap; }
.zoom input[type="range"] { width: 120px; padding: 0; accent-color: var(--gold);
                            border: none; background: none; }
.zoom output { padding: 1px 5px; min-width: 3.4em; text-align: right;
               font-variant-numeric: tabular-nums; }
.zoom button { padding: 3px 7px; font-size: 12px; }

/* ---------- accounts ---------- */

.account { display: flex; align-items: center; gap: 10px; }
#whoami { color: var(--gold); font-weight: 700; letter-spacing: .04em; }
#account button { padding: 3px 8px; font-size: 12px; }

/* The notification: a name and a duel, never a hero. */
.bell {
  background: var(--bad); color: #fff; border: 2px solid var(--ink);
  border-radius: 2px; padding: 1px 7px;
  font: 700 11px/1.5 var(--body); letter-spacing: .05em; text-transform: uppercase;
  animation: bell-pop .5s ease;
}
@keyframes bell-pop {
  0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); }
}

.panel.narrow { max-width: 44ch; margin-inline: auto; }

.sub {
  margin: 10px 0 6px;
  font: 400 12px/1.4 var(--display);
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.challenge {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-left: 6px solid var(--accent);
  border-radius: 2px; padding: 8px 10px; margin-bottom: 6px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
}
.challenge strong { flex: 1; }
.challenge button { box-shadow: 2px 2px 0 rgba(0, 0, 0, .5); }

/* ---------- lobby ---------- */

.games { list-style: none; padding: 0; margin: 0; }
.games strong { flex: 1; }
.games li { display: flex; gap: 12px; align-items: center;
            padding: 9px 0; border-top: 1px dashed #3a415a; }
.games code { color: var(--gold); font-weight: 700; letter-spacing: .05em; }

/* ---------- board ---------- */

.side { padding: 12px; }
.side.me { border-color: var(--accent); box-shadow: var(--pop) var(--pop) 0 rgba(20, 50, 100, .55); }

.super { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.super img {
  width: var(--card-w); display: block; cursor: pointer;
  border: var(--ink-w) solid var(--ink); border-radius: 3px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .6);
}
.super img:hover { outline: 2px solid var(--gold); }
/* Run-'n'-Gun: the super leans away from the fight (rulesheet, Combat Tactics). */
.super.rng img { transform: rotate(-5deg); }

.super strong {
  display: block;
  font: 400 calc(19px * var(--ui-scale)) / 1.05 var(--display);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 1.5px 1.5px 0 var(--ink);
  margin-bottom: 4px;
}

.statline { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stat { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.stat b { color: var(--accent-2); }
.stat.buffed b { color: var(--gold); text-shadow: 0 0 8px rgba(240, 180, 41, .5); }

.hp-bar {
  width: calc(140px * var(--ui-scale)); height: calc(9px * var(--ui-scale));
  background: var(--ink); border: 2px solid var(--ink); border-radius: 2px;
}
.hp-bar > i { display: block; height: 100%; background: var(--good);
              transition: width .25s ease; }
.hp-bar.low > i { background: var(--bad); }

.badge {
  font-size: 11px; padding: 1px 7px; border-radius: 2px;
  border: 2px solid var(--ink); background: var(--ink-2); color: var(--muted);
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.badge.status { background: var(--bad); color: #fff; border-color: var(--ink); }
.badge.tactic { background: var(--gold); color: var(--ink); }
.badge.tag    { background: var(--accent); color: #fff; }

/* Powers sit beside their super; clicks rotate the card, as on the table. */
.powers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.power { position: relative; cursor: pointer; }
.power img {
  width: var(--power-w); display: block; border-radius: 2px;
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 rgba(0, 0, 0, .6);
  transition: transform .18s cubic-bezier(.3, 1.4, .5, 1);
}
.power[data-clicks="1"] img { transform: rotate(90deg) scale(.86); }
.power[data-clicks="2"] img { transform: rotate(180deg); }
.power[data-clicks="3"] img { transform: rotate(270deg) scale(.86); }
.power.on::after {
  content: "ON"; position: absolute; top: -6px; right: -6px; z-index: 2;
  background: var(--gold); color: var(--ink); font: 700 9px/1.4 var(--body);
  padding: 2px 5px; border: 2px solid var(--ink); border-radius: 2px;
}
.power.ready img { outline: 2px solid var(--accent-2); }
.power.dim img { filter: grayscale(.75) brightness(.55); }

/* ---------- zones: deck, hand, discard ---------- */

.zones { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 10px; }
.zone { text-align: center; }
.zone-label {
  font: 700 10px/1.6 var(--body); letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.stack { position: relative; width: calc(var(--card-w) * .62); }
.stack img {
  width: 100%; display: block; border: var(--ink-w) solid var(--ink);
  border-radius: 3px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .6);
}
.stack.empty {
  aspect-ratio: 314 / 450; border: 2px dashed #3a415a; border-radius: 3px;
}
.stack .n {
  position: absolute; inset: auto 0 6px 0; margin: auto; width: max-content;
  background: var(--ink); color: var(--paper); border: 2px solid var(--gold);
  font: 700 11px/1.5 var(--body); padding: 0 6px; border-radius: 2px;
}

/* The opponent's hand: face-down cards, fanned. 205.2a — countable, not readable. */
.fan { display: flex; }
.fan img {
  width: calc(var(--card-w) * .40); display: block;
  border: 2px solid var(--ink); border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
  margin-left: calc(var(--card-w) * -.26);
}
.fan img:first-child { margin-left: 0; }

.hand { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; min-height: 40px; }
.hand .card img {
  width: var(--card-w); display: block; border-radius: 3px;
  border: var(--ink-w) solid var(--ink); box-shadow: 3px 3px 0 rgba(0, 0, 0, .6);
}
.hand .card { cursor: pointer; transition: transform .12s ease; }
.hand .card:hover { transform: translateY(-8px) rotate(-1.5deg); }
.hand .card.sel img { outline: 3px solid var(--gold); }

/* ---------- board: the table, and the narration beside it ---------- */

.table {
  display: grid; gap: var(--gutter); align-items: start;
  grid-template-columns: minmax(0, 1fr) calc(340px * var(--ui-scale));
}
.play { min-width: 0; }               /* let the table column shrink, not overflow */

/* The log is its own column, sticky and self-scrolling, so it can run the full
   height of the viewport without pushing the table down the page. */
.feed { position: sticky; top: var(--gutter); }
.feed h2 {
  margin: 0 0 8px;
  font: 400 calc(15px * var(--ui-scale)) / 1 var(--display);
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
}
@media (max-width: 900px) {
  .table { grid-template-columns: 1fr; }
  .feed { position: static; }
}

.missions { min-height: 90px; }

/* A column of comic caption boxes. */
.log {
  font-size: calc(12px * var(--ui-scale));
  overflow-y: auto;
  /* Fill the viewport minus the chrome above it. The header and the "Gameplay
     log" heading both scale with --ui-scale, so the offset must too. */
  height: calc(100vh - 110px - 40px * var(--ui-scale));
  min-height: calc(200px * var(--ui-scale));
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px; margin-bottom: 0;
}
@media (max-width: 900px) {
  .log { height: auto; max-height: calc(320px * var(--ui-scale)); }
}
.ev {
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-left-width: 6px;
  border-radius: 2px; padding: 4px 8px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
}
.ev-them { background: var(--paper-2); }

.ev-sep {
  margin-top: 8px; align-self: flex-start;
  font: 400 11px/1.4 var(--display); letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink);
  background: var(--gold); border: 2px solid var(--ink); padding: 1px 8px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
}
.ev-sep:first-child { margin-top: 0; }

.ev-action { border-left-color: var(--accent); }
.ev-detail { border-left-color: #8a93a8; color: #3b4152; font-size: .95em; }
.ev-cost   { border-left-color: #8a93a8; color: #3b4152; font-size: .95em; }
.ev-result { border-left-color: var(--warn); font-weight: 600; }
.ev-damage {
  border-left-color: var(--bad); background: #ffe0d6;
  font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
}
.ev-status { border-left-color: var(--bad); }
.ev-react  { border-left-color: #2f6fb5; background: #dbe8fb; }
.ev-manual { border-left-color: var(--gold); background: #fff2cc; }
.ev-win {
  border-left-color: var(--good); background: var(--gold); color: var(--ink);
  font: 400 calc(15px * var(--ui-scale)) / 1.3 var(--display);
  letter-spacing: .06em; text-transform: uppercase;
}
.log .reminder {
  color: var(--gold); background: transparent; border: none;
  border-top: 1px dashed #3a415a; box-shadow: none;
  padding: 4px 2px; font-size: .95em;
}

/* A card name inside the feed: hover previews it, click opens it full size. */
.cardref { color: #1c4f9c; cursor: pointer; font-weight: 700;
           border-bottom: 2px dotted currentColor; }
.cardref:hover, .cardref:focus { outline: none; background: var(--gold); }
.ev-them .cardref { color: #1c4f9c; }

/* ---------- actions ---------- */

.actions { display: flex; gap: 8px; flex-wrap: wrap;
           position: sticky; bottom: 0; padding: 12px 0;
           background: linear-gradient(transparent, var(--bg) 40%); }

.react-bar {
  background: var(--gold); color: var(--ink);
  padding: 10px 14px; margin-bottom: 12px; width: 100%;
}
.react-bar h3 {
  margin: 0 0 6px;
  font: 400 calc(16px * var(--ui-scale)) / 1 var(--display);
  letter-spacing: .1em; text-transform: uppercase;
}
.react-bar .muted { color: #5a4a1c; }
.react-bar button { box-shadow: 2px 2px 0 rgba(0, 0, 0, .5); }

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

.modal { position: fixed; inset: 0; background: rgba(6, 8, 12, .8);
         display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal-inner {
  background-color: var(--panel);
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.2px);
  background-size: 5px 5px;
  padding: 20px; width: min(820px, 92vw); max-height: 86vh; overflow-y: auto;
}
.modal-inner h3 {
  margin: 0 0 8px;
  font: 400 calc(22px * var(--ui-scale)) / 1 var(--display);
  letter-spacing: .05em; text-transform: uppercase; color: var(--paper);
  text-shadow: 2px 2px 0 var(--accent);
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.modal .bad { color: #ff8a7e; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.choice button { text-align: left; }

/* Card text set as a comic caption. */
.cardtext {
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-left: 6px solid var(--gold);
  padding: 10px 12px; border-radius: 2px; margin: 10px 0;
  white-space: pre-wrap; box-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
}
.cardview { display: flex; gap: 16px; align-items: flex-start; }
.cardview img { width: calc(240px * var(--ui-scale)); max-width: 45%;
                border: var(--ink-w) solid var(--ink); border-radius: 3px;
                box-shadow: var(--pop) var(--pop) 0 rgba(0,0,0,.6); display: block; }
.cardview > div { flex: 1; }
.flavor { font-style: italic; margin-top: 8px; }

.adjustments { margin-top: 12px; border-top: 2px solid var(--ink); padding-top: 10px; }
.adj { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.adj span { flex: 1; }
.adj button { padding: 1px 8px; }

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

.tooltip {
  position: fixed; z-index: 60; pointer-events: none;
  background: var(--panel); padding: 8px; width: var(--tip-w); max-width: 92vw;
}
.tooltip img { width: 100%; border-radius: 2px; display: block;
               border: 2px solid var(--ink); }
.tooltip .muted { margin-top: 6px; }

/* ---------- deck editor ---------- */

.deck-head .row { align-items: flex-end; margin-bottom: 0; }
.deck-head input { min-width: 200px; }

.build { display: grid; grid-template-columns: 1fr calc(360px * var(--ui-scale));
         gap: var(--gutter); align-items: start; }
@media (max-width: 900px) { .build { grid-template-columns: 1fr; } }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
           align-items: center; }
.filters input { flex: 1; min-width: 180px; }

.grid { display: grid; gap: 10px; max-height: 70vh; overflow-y: auto;
        grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); }
.cell { position: relative; cursor: pointer; }
.cell img { width: 100%; display: block; border-radius: 3px;
            border: 2px solid var(--ink); box-shadow: 2px 2px 0 rgba(0,0,0,.6); }
.cell:hover img { outline: 3px solid var(--gold); }
.cell.maxed img { filter: grayscale(.6) brightness(.6); }
.cell .count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; text-align: center;
  background: var(--gold); color: var(--ink); font: 700 11px/1.5 var(--body);
  padding: 1px 5px; border: 2px solid var(--ink); border-radius: 2px;
}

.deck { position: sticky; top: 12px; }
.deck-group { margin-bottom: 12px; }
.deck-group h3 { margin: 0 0 4px; font: 400 12px/1.4 var(--display);
                 letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.deck-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.deck-row .qty { color: var(--muted); font-variant-numeric: tabular-nums;
                 min-width: 2.2em; font-weight: 700; }
.deck-row .nm { flex: 1; cursor: pointer; }
.deck-row .nm:hover { color: var(--gold); }
.deck-row button { padding: 0 8px; line-height: 1.5; box-shadow: 2px 2px 0 rgba(0,0,0,.5); }

.verdict {
  padding: 6px 10px; margin-bottom: 8px; border: 2px solid var(--ink);
  border-radius: 2px; box-shadow: 2px 2px 0 rgba(0,0,0,.5);
  font: 400 calc(15px * var(--ui-scale)) / 1.3 var(--display);
  letter-spacing: .08em; text-transform: uppercase;
}
.verdict.ok  { background: var(--good); color: #06180f; }
.verdict.bad { background: var(--bad); color: #fff; }
.err-line  { color: #ff8a7e; font-size: .92em; padding: 2px 0; }
.warn-line { color: var(--gold); font-size: .92em; padding: 2px 0; }
.own-line  { color: var(--accent-2); font-size: .92em; padding: 2px 0; }

.stats { margin-top: 12px; border-top: 2px solid var(--ink); padding-top: 8px; }
.stats h3 { margin: 8px 0 4px; font: 400 12px/1.4 var(--display);
            letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.bar-row { display: flex; align-items: center; gap: 8px; padding: 1px 0;
           font-size: .9em; }
.bar-label { width: 8.5em; color: var(--muted); }
.bar { flex: 1; height: 9px; background: var(--ink); border: 2px solid var(--ink);
       border-radius: 2px; }
.bar > i { display: block; height: 100%; background: var(--accent); }
.bar > i[data-insp="insight"]        { background: #6fb1ff; }
.bar > i[data-insp="luck"]           { background: #59c48a; }
.bar > i[data-insp="respite"]        { background: #57c9c1; }
.bar > i[data-insp="catch a breath"] { background: #b78bea; }
.bar > i[data-insp="break free"]     { background: var(--gold); }
.bar > i[data-insp="enrage"]         { background: var(--bad); }
.bar > i[data-insp="none"]           { background: #4a5060; }
.bar-n { width: 2em; text-align: right; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* The seated account's name, beside its P1/P2 badge. */
.who {
  font: 700 12px/1.6 var(--body);
  letter-spacing: .04em;
  color: var(--muted);
}
.who.you { color: var(--gold); }

/* ---------- admin portal ---------- */

.tiles { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tile {
  background: var(--ink-2); border: 2px solid var(--ink); border-radius: 3px;
  padding: 8px 14px; min-width: 88px; text-align: center;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
}
.tile-n { font: 400 calc(24px * var(--ui-scale)) / 1 var(--display); color: var(--gold); }
.tile-k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
          color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95em; }
th {
  text-align: left; padding: 6px 8px; white-space: nowrap;
  font: 400 11px/1.6 var(--display); letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
  border-bottom: 2px solid var(--ink);
}
td { padding: 6px 8px; border-bottom: 1px dashed #3a415a; vertical-align: middle; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: #232838; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions button { padding: 2px 8px; font-size: 12px;
                      box-shadow: 2px 2px 0 rgba(0, 0, 0, .5); }

#task-output { max-height: 220px; overflow: auto; font-size: 12px; }
