/*
 * Roster Studio. Its look is the website's and the game's menus (site/assets/css/site.css, Game.uss):
 * the same ink, gold and text colours, Barlow Condensed for headings, and the gold left edge that marks
 * what's selected. A tool, so denser than the site: smaller type, tables, panels.
 */

@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/BarlowCondensed-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/BarlowCondensed-Bold.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/Barlow-Medium.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/Barlow-SemiBold.ttf") format("truetype"); }

:root {
  --ink: #090e1a;
  --ink-2: #0d1426;
  --ink-3: #121b31;
  --ink-4: #18233d;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --gold: #ffc933;
  --gold-deep: #c8961a;
  --gold-soft: rgba(255, 201, 51, 0.14);
  --text: #f4f6fa;
  --body: #d6dce8;
  --muted: #96a0b2;
  --dim: #5c6678;
  --ice: #8cbfff;
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, 0.14);
  --amber: #ffb347;
  --amber-soft: rgba(255, 179, 71, 0.12);
  --green: #6fdc8c;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  --side: 232px;
  --top: 60px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--body);
  font: 500 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffe08a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
h1:focus { outline: none; }
::selection { background: var(--gold); color: var(--ink); }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--ink-3); padding: 1px 5px; border-radius: 4px; color: var(--text); }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; color: var(--text); margin: 0; }
h1 { font-weight: 800; font-size: 34px; letter-spacing: 0.03em; line-height: 1; }
h2 { font-weight: 700; font-size: 20px; letter-spacing: 0.06em; }
h3 { font-weight: 700; font-size: 16px; letter-spacing: 0.08em; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.caps { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; color: var(--muted); }
.gold { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bar { width: 56px; height: 4px; border-radius: 2px; background: var(--gold); margin: 14px 0 18px; }

/* ------------------------------------------------------------------ Buttons and fields */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border-radius: 9px; border: 1px solid var(--line-strong);
  background: var(--ink-3); color: var(--text);
  font: 700 15px/1 var(--display); text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.button:disabled { opacity: .4; cursor: default; }
.button.gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.button.gold:hover:not(:disabled) { background: #ffd65c; color: var(--ink); }
.button.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.button.quiet:hover:not(:disabled) { color: var(--gold); border-color: transparent; }
.button.small { min-height: 32px; padding: 0 11px; font-size: 13px; }
.button svg { width: 18px; height: 18px; }

input[type="text"], input[type="number"], input[type="url"], input[type="password"], input:not([type]), select, textarea {
  background: var(--ink-2); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 8px 10px; font: 500 15px/1.3 var(--sans);
  min-height: 38px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
label.field { display: grid; gap: 6px; }
label.field > span { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ The frame */

.app { display: grid; grid-template-columns: var(--side) 1fr; grid-template-rows: var(--top) 1fr; height: 100vh; }
.app.bare { grid-template-columns: 1fr; }
.top {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px;
  padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--ink-2);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: 8px; }
.brand img { width: 34px; height: 34px; }
.brand b { font: 800 19px/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; }
.brand b i { font-style: normal; color: var(--gold); }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 14px; }
.crumbs .sep { color: var(--dim); }
.crumbs strong { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 700 12px/1.4 var(--display); text-transform: uppercase; letter-spacing: 0.1em; background: var(--ink-4); color: var(--muted); }
.pill.gold { background: var(--gold-soft); color: var(--gold); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }

.side { border-right: 1px solid var(--line); background: var(--ink-2); padding: 14px 0; overflow-y: auto; }
.side nav { display: grid; gap: 2px; }
.side .group { padding: 16px 20px 6px; }
.side a {
  display: flex; align-items: center; gap: 10px; padding: 9px 18px 9px 16px;
  border-left: 4px solid transparent; color: var(--body); text-decoration: none;
  font: 700 16px/1 var(--display); text-transform: uppercase; letter-spacing: 0.08em;
}
.side a:hover { color: var(--gold); background: rgba(255, 255, 255, 0.02); }
.side a.active { border-left-color: var(--gold); color: var(--text); background: var(--gold-soft); }
.side a .count { margin-left: auto; }
.side a.off { pointer-events: none; color: var(--dim); }

main { overflow-y: auto; }
.page { padding: 28px 32px 64px; max-width: 1400px; }
.page.wide { max-width: none; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .lede { color: var(--muted); max-width: 70ch; margin: 8px 0 0; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.page > .panel, .page > .grid { margin-top: 16px; }
.page > .page-head + .panel, .page > .page-head + .grid { margin-top: 0; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel-head .actions { margin-left: auto; display: flex; gap: 6px; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ------------------------------------------------------------------ Start */

.start { min-height: calc(100vh - var(--top)); display: grid; place-items: start center; padding: 56px 24px; background: radial-gradient(90% 70% at 70% 0%, #17223d 0%, var(--ink) 70%); }
.start-inner { width: min(1040px, 100%); }
.start h1 { font-size: clamp(40px, 6vw, 68px); }
.start .lede { max-width: 60ch; color: var(--body); font-size: 17px; }
.dropzone {
  margin-top: 28px; padding: 30px; border: 2px dashed var(--line-strong); border-radius: 18px;
  background: rgba(13, 20, 38, 0.6); display: grid; gap: 14px; justify-items: start;
  transition: border-color .15s ease, background-color .15s ease;
}
.dropzone.dragging { border-color: var(--gold); background: var(--gold-soft); }
.dropzone .title { font: 800 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); }
.address { display: flex; gap: 8px; width: 100%; max-width: 680px; }
.address input { flex: 1; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.choice {
  text-align: left; display: grid; gap: 4px; padding: 16px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line); border-left: 4px solid transparent; color: var(--body); cursor: pointer; font: inherit;
}
.choice:hover { border-left-color: var(--gold); }
.choice strong { font: 700 17px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.choice span { color: var(--muted); font-size: 14px; }
.error { color: var(--red); background: var(--red-soft); padding: 10px 14px; border-radius: 8px; }
.notice { color: var(--body); background: var(--ink-3); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line-strong); }
.busy { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ Teams */

.team-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line);
  border-left: 4px solid var(--team, var(--line)); text-decoration: none; color: var(--body);
}
.team-card:hover { border-color: var(--line-strong); border-left-color: var(--team, var(--gold)); background: var(--ink-3); color: var(--body); }
.team-card .name { font: 700 18px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); }
.team-card .meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.logo { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 10px; background: var(--ink-3); overflow: hidden; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo.big { width: 128px; height: 128px; border-radius: 16px; }
.logo .letters { font: 800 22px/1 var(--display); color: var(--text); letter-spacing: 0.04em; }
.swatches { display: inline-flex; gap: 4px; }
.swatch { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-strong); display: inline-block; }
.swatch.big { width: 36px; height: 36px; border-radius: 8px; }

.lineup { display: grid; gap: 10px; }
.unit { display: grid; grid-template-columns: 90px repeat(3, minmax(0, 1fr)) 14px repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.unit .label { font: 700 13px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); align-self: center; }
.spot { padding: 8px 10px; border-radius: 8px; background: var(--ink-3); border: 1px solid var(--line); min-width: 0; }
.spot .pos { font: 700 11px/1 var(--display); letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; }
.spot .who { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.spot .num { color: var(--gold); font-family: var(--display); font-weight: 700; margin-right: 4px; }
.spot.filled { border-color: rgba(140, 191, 255, 0.35); }
.spot.callup { border-style: dashed; }
.spot.callup .who { color: var(--muted); font-weight: 500; }
.spot .why { font-size: 11px; color: var(--ice); }
.key { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--ink-3); border: 1px solid var(--line); }
.key i.filled { border-color: rgba(140, 191, 255, 0.6); }
.key i.callup { border-style: dashed; border-color: var(--muted); }

/* ------------------------------------------------------------------ Tables */

.table-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.table-tools input[type="search"] { min-width: 240px; background: var(--ink-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; font: inherit; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); max-height: calc(100vh - var(--top) - 190px); }
table.data { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 14px; }
table.data th {
  position: sticky; top: 0; z-index: 2; background: var(--ink-3); text-align: left;
  font: 700 12px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  padding: 9px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; cursor: pointer; user-select: none;
}
table.data th.sorted { color: var(--gold); }
table.data th.n, table.data td.n { text-align: right; }
table.data td { padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data tr:hover td { background: rgba(255, 255, 255, 0.025); }
table.data td.sticky, table.data th.sticky { position: sticky; left: 0; z-index: 1; background: var(--ink-2); }
table.data th.sticky { z-index: 3; background: var(--ink-3); }
table.data a { color: var(--text); text-decoration: none; font-weight: 600; }
table.data a:hover { color: var(--gold); }
.rating { display: inline-block; min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.r-hi { color: var(--green); }
.r-lo { color: var(--amber); }
.flag { color: var(--amber); margin-left: 4px; }
.flag.red { color: var(--red); }

/* ------------------------------------------------------------------ Problems */

.problems { display: grid; gap: 6px; }
.problem { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 9px 12px; border-radius: 8px; background: var(--ink-3); }
.problem .icon { font: 800 13px/22px var(--display); width: 22px; height: 22px; text-align: center; border-radius: 50%; }
.problem.Error .icon { background: var(--red-soft); color: var(--red); }
.problem.Warning .icon { background: var(--amber-soft); color: var(--amber); }
.problem.Note .icon { background: var(--ink-4); color: var(--ice); }
.problem .where { font-size: 13px; color: var(--muted); white-space: nowrap; }
.problem .where a { color: var(--muted); }
.problem .where a:hover { color: var(--gold); }
.summary { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ Facts */

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.facts dt { font: 700 12px/1.9 var(--display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
dl.facts dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.updates { display: grid; gap: 8px; }
.update { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--ink-3); border-left: 4px solid transparent; }
.update:hover { border-left-color: var(--gold); }
.update.latest { border-left-color: var(--gold-deep); }
.update .date { font: 700 17px/1 var(--display); letter-spacing: 0.06em; color: var(--text); }

.bars { display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 34px; gap: 10px; align-items: center; font-size: 14px; }
.bar-row .track { height: 8px; border-radius: 4px; background: var(--ink-4); position: relative; overflow: hidden; }
.bar-row .track .fill { position: absolute; inset: 0 auto 0 0; background: var(--ice); border-radius: 4px; }
.bar-row .track::after { content: ""; position: absolute; left: 50.5%; top: -2px; bottom: -2px; width: 1px; background: var(--line-strong); }
.bar-row .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }

#blazor-error-ui { display: none; position: fixed; inset: auto 0 0; z-index: 1000; padding: 12px 20px; background: #3a1420; color: var(--text); }
#blazor-error-ui .reload { margin-left: 8px; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

.boot { height: 100vh; display: grid; place-items: center; text-align: center; color: var(--muted); }
.boot img { width: 72px; margin: 0 auto 16px; opacity: .9; }
.boot .track { width: 220px; height: 4px; border-radius: 2px; background: var(--ink-3); overflow: hidden; margin: 14px auto 0; }
.boot .track div { height: 100%; width: var(--blazor-load-percentage, 0%); background: var(--gold); transition: width .2s ease; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; grid-template-rows: var(--top) auto 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .side nav { display: flex; overflow-x: auto; }
  .side .group { display: none; }
  .side a { border-left: 0; border-bottom: 3px solid transparent; padding: 10px 14px; }
  .side a.active { border-bottom-color: var(--gold); }
  .page { padding: 20px 16px 48px; }
  .unit { grid-template-columns: repeat(3, 1fr); }
  .unit .label, .unit .gap { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ Editing */

.form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.form .wide { grid-column: 1 / -1; }
label.field small { font-size: 12px; }
.color-field input[type="color"] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--ink-2); cursor: pointer; }
.rating-edit { display: grid; grid-template-columns: 130px 1fr 64px 30px; gap: 10px; align-items: center; font-size: 14px; }
.rating-edit .name { color: var(--body); }
.rating-edit input[type="number"] { width: 64px; min-height: 32px; padding: 4px 8px; text-align: right; }
.rating-edit.unset .name, .rating-edit.unset input[type="number"]::placeholder { color: var(--dim); }
.rating-edit.unset input[type="range"] { opacity: .45; }
.rating-edit .clear { min-height: 28px; padding: 0 6px; font-size: 18px; }
input[type="range"] { accent-color: var(--gold); width: 100%; }
.group-title { margin: 14px 0 6px; }
.danger { border-color: rgba(255, 107, 107, 0.35); color: var(--red); }
.button.danger:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.save-state { font-size: 13px; color: var(--muted); white-space: nowrap; }
.save-state.bad { color: var(--red); }

/* The lines editor: spots you drop players on, and the roster to drag them from. */
.lines-edit { display: grid; grid-template-columns: 1fr 260px; gap: 18px; align-items: start; }
.lines-edit .bench { position: sticky; top: 0; max-height: 70vh; overflow-y: auto; display: grid; gap: 6px; padding: 12px; border-radius: var(--radius); background: var(--ink-3); }
.chip {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--ink-2);
  border: 1px solid var(--line); cursor: grab; user-select: none; font-size: 14px; color: var(--text);
}
.chip .num { color: var(--gold); font: 700 14px/1 var(--display); min-width: 20px; }
.chip .pos { margin-left: auto; color: var(--muted); font: 700 12px/1 var(--display); letter-spacing: .1em; }
.chip.used { opacity: .45; }
.chip.picked, .spot.picked { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.spot.target { cursor: pointer; }
.spot.target.over { border-color: var(--gold); background: var(--gold-soft); }
.spot.empty .who { color: var(--dim); font-weight: 500; }
.spot .x { float: right; color: var(--dim); background: none; border: 0; cursor: pointer; font-size: 15px; padding: 0 2px; }
.spot .x:hover { color: var(--red); }
.spot.off { border-color: rgba(255, 179, 71, 0.5); }
@media (max-width: 1100px) { .lines-edit { grid-template-columns: 1fr; } .lines-edit .bench { position: static; max-height: none; } }

table.data td.edit { padding: 0; }
table.data td.edit input, table.data td.edit select {
  width: 100%; min-height: 32px; border: 0; border-radius: 0; background: transparent; padding: 5px 8px; font-size: 14px; color: var(--text);
}
table.data td.edit input[type="number"] { text-align: right; width: 58px; -moz-appearance: textfield; }
table.data td.edit input::-webkit-inner-spin-button { display: none; }
table.data td.edit input:focus, table.data td.edit select:focus { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.lines-edit .lineup { align-content: start; align-self: start; }
.lines-edit .spot .who { white-space: normal; line-height: 1.25; }
.form { align-items: start; }
label.field { align-content: start; }
.rating-edit .clear { opacity: .45; }
.rating-edit:hover .clear, .rating-edit .clear:focus-visible { opacity: 1; }

label.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
label.check input { margin-top: 4px; accent-color: var(--gold); flex: none; }
.keep { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.keep label { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; cursor: pointer; }
.keep input { accent-color: var(--gold); }
details summary { cursor: pointer; }

/* ------------------------------------------------------------------ Kits */

.kits { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.kit { margin: 0; display: grid; justify-items: center; gap: 4px; padding: 10px 8px 6px; border-radius: 12px; background: radial-gradient(circle at 50% 30%, #2a3654, var(--ink-3)); }
.kit svg { width: 120px; height: 190px; }
.kit figcaption { font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kit-names { font-size: 13px; display: grid; gap: 2px; }
.team-card .kits .kit { padding: 4px; background: none; }
.team-card .kits .kit svg { width: 44px; height: 70px; }
.team-card .kits .kit figcaption { display: none; }

/* ------------------------------------------------------------------ The viewer */

.viewer-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: radial-gradient(70% 60% at 50% 35%, #2b3a5c 0%, #141d33 60%, var(--ink-2) 100%); }
.viewer-stage canvas { display: block; width: 100%; height: min(70vh, 640px); touch-action: none; cursor: grab; }
.viewer-stage canvas:active { cursor: grabbing; }
.viewer-busy { position: absolute; inset: auto 16px 16px 16px; }
.viewer-tools { justify-content: space-between; margin-top: 10px; }
.art-box { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--ink-3); }
.art-box h3 { margin-bottom: 8px; }
.range { position: relative; height: 10px; border-radius: 5px; background: var(--ink-4); }
.range .span { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: rgba(140, 191, 255, 0.45); }
.range .mark { position: absolute; top: -3px; width: 3px; height: 16px; margin-left: -1px; border-radius: 2px; background: var(--gold); }
