:root {
  --bg: #12100c;
  --bg-2: #1c1812;
  --panel: #241f18;
  --ink: #f4ecdc;
  --muted: #b5a690;
  --line: #3d3428;
  --gold: #e0b15a;
  --good: #8fceab;
  --bad: #e08b78;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
  font-family: "Segoe UI", Candara, sans-serif;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(224, 177, 90, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: Palatino, "Palatino Linotype", "Iowan Old Style", serif; font-weight: 600; }
h1 { margin: 0; font-size: 2.4rem; letter-spacing: 0.04em; }
h2 { margin: 0 0 0.4rem; font-size: 1.7rem; }
.live-title { text-align: center; }
h3 { margin: 0 0 0.35rem; }

.top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: end;
  width: 100%;
  max-width: 2200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
}
.version {
  margin: 0.15rem 0 0;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
}
.brand-role {
  font-size: 0.46em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--gold);
  margin-left: 0.15rem;
  white-space: nowrap;
}
.brand-portrait {
  width: 72px;
  height: 95px;
  object-fit: cover;
  object-position: center top;
  transform: scaleX(-1);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}
.header-end { display: flex; align-items: flex-end; gap: 0.85rem; }
.status-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.viewer { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-weight: 650; }
.viewer-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.viewer-gold { color: var(--gold); font-variant-numeric: tabular-nums; }
.header-auth {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  align-items: center;
}
.header-auth:empty { display: none; }
.header-auth .viewer-gold { font-weight: 650; }
.header-auth .btn,
.header-auth .ghost {
  padding: 0.25rem 0.7rem;
  font-size: 0.82rem;
}
.brand-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: -0.45rem;
}
.brand-sprite {
  width: 78px;
  height: 74px;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4));
}
.brand-aside .donate {
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
}
.eyebrow { margin: 0; color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; }
.tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tab, .btn, .ghost {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}
.tab.is-on, .btn { background: var(--gold); color: #22190c; border-color: transparent; }
a.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.ghost { background: transparent; }
.ghost.is-on { background: var(--gold); color: #22190c; border-color: transparent; }
.status { margin: 0; color: var(--muted); max-width: 18rem; text-align: right; font-size: 0.92rem; }
.loading-badge,
.loading-note {
  margin: 0;
  background: var(--gold);
  color: #22190c;
  border-radius: 999px;
  font-weight: 650;
  text-align: center;
}
.loading-badge {
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.loading-note {
  width: fit-content;
  margin: 0.15rem auto 0.45rem;
  padding: 0.28rem 0.85rem;
  font-size: 0.88rem;
}
.app { padding: 1.25rem 1.5rem 3rem; width: 100%; max-width: 2200px; margin: 0 auto; }
.live-page { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.live-page > .panel,
.live-page > .live-split { width: 100%; }
.live-head .eyebrow,
.live-head .live-record { text-align: center; }
.live-record { display: block; margin: 0 0 0.35rem; }
.live-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.live-bet, .live-drop {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.drop-skill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.35rem 0;
  font-size: 1.15rem;
}
.drop-skill .priority,
.drop-rec { margin: 0.15rem 0; }
.drop-skill .priority strong,
.drop-rec strong { margin-right: 0; }
.live-bet .lede { margin-inline: auto; }
.live-bracket h3 { text-align: center; }
.live-bracket .rows { width: min(100%, 64rem); margin-inline: auto; }
.lede { color: var(--muted); max-width: 62rem; line-height: 1.5; }
.credits { display: grid; gap: 0.9rem; }
.credits a { color: var(--gold); }
.credits p { margin: 0.15rem 0 0; color: var(--muted); }
.patch-list { display: grid; gap: 1rem; margin-top: 0.85rem; }
.patch {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
}
.patch:first-child { border-top: 0; padding-top: 0; }
.patch header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  justify-content: space-between;
}
.patch h3 { margin: 0; font-size: 1.15rem; }
.patch p { margin: 0; color: var(--muted); line-height: 1.5; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1rem; align-items: start; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.matchup { display: grid; grid-template-columns: minmax(0, 1fr) 11rem minmax(0, 1fr); gap: 0.8rem; align-items: start; }
.vs { text-align: center; padding-top: 1.5rem; }
.matchup h3 { text-align: center; }
.matchup.has-map { position: relative; isolation: isolate; }
.matchup.has-map::before {
  content: "";
  position: absolute;
  inset: -0.5rem 0;
  z-index: -1;
  background: var(--map) center / contain no-repeat;
  image-rendering: pixelated;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
  pointer-events: none;
}
.matchup.has-map .unit {
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  backdrop-filter: blur(2px);
}
.matchup.has-map .vs { text-shadow: 0 1px 3px #000, 0 0 10px #000; }
.your-bet, .match-pot {
  margin: 0.45rem auto 0;
  text-align: center;
  color: var(--gold);
  font-weight: 700;
  width: fit-content;
  max-width: 100%;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  box-shadow: 0 0 0 1px rgba(224, 177, 90, 0.28);
}
.side-bets {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0.45rem 0.55rem;
  display: grid;
  gap: 0.15rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
}
.side-bets li { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.92rem; }
.side-bets .is-you { color: var(--gold); font-weight: 650; }
.vs-team { margin: 0.1rem 0 0.35rem; font-weight: 700; color: var(--team, var(--ink)); }
.pct { font-family: Palatino, "Palatino Linotype", serif; font-size: 2.6rem; margin: 0.2rem 0; }
.team-name { text-transform: capitalize; }
.units { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.unit {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  border: 1px solid var(--line);
  border-left: 4px solid var(--team, var(--gold));
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  background: var(--bg-2);
  cursor: pointer;
  user-select: none;
}
.unit:not(:has(img.portrait)) { grid-template-columns: minmax(0, 1fr); }
.unit-face { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.unit-rate { margin: 0; width: 56px; text-align: center; line-height: 1.1; }
.unit-rate .score { font-size: 0.82rem; display: block; }
.unit-rate .grade { display: block; margin-top: 0.05rem; font-size: 0.78rem; }
.unit-rate .nudge { display: block; margin-top: 0.12rem; }
.portrait {
  width: 56px;
  height: 72px;
  object-fit: contain;
  object-position: center top;
  image-rendering: pixelated;
  background: #100e0b;
  border-radius: 8px;
}
.face-in .portrait { transform: scaleX(-1); }
.unit-body { min-width: 0; display: grid; gap: 0.18rem; }
.vitals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.55rem;
  margin: 0;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
.vital-hp { color: #e08b78; font-weight: 700; }
.vital-mp { color: #8eb7e8; font-weight: 700; }
.vital-stat { color: var(--ink); font-weight: 550; }
.evade-line, .meta-line, .muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}
.class-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
}
.job-name { color: var(--ink); font-weight: 650; }
.feature-hit { cursor: pointer; }
.kit-row.feature-hit,
.job-name.feature-hit,
.status-chip.feature-hit { cursor: pointer; }
.feature-hit.is-nudged { box-shadow: inset 0 0 0 1px var(--gold); border-radius: 6px; }
.job-name.feature-hit { padding: 0 0.15rem; }
.feature-hit .nudge { margin-left: 0.35rem; font-size: 0.72rem; }
.zodiac {
  color: var(--gold);
  font-size: 1.05em;
  line-height: 1;
}
.kit-list {
  list-style: none;
  margin: 0.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.12rem;
}
.kit-list li {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.2;
}
.kit-row[title] { cursor: help; }
.kit-row.feature-hit[title] { cursor: pointer; }
.kit-row[title]:hover span { color: var(--gold); }
.kit-row.is-locked { opacity: 0.55; }
.kit-row.is-locked span { color: var(--muted, #9a9a9a); }
.kit-list li span:not(.nudge) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kit-list li .nudge { flex: none; }
.gear-list { margin-top: 0.2rem; padding-top: 0.2rem; border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.ico {
  width: 16px;
  height: 16px;
  flex: none;
  object-fit: contain;
  image-rendering: pixelated;
}
.ico-slot { width: 14px; height: 14px; opacity: 0.85; }
.ico-slot.flip { transform: scaleX(-1); }
.ico-item { width: 24px; height: 24px; }
.piece-label { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.piece-rows {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  justify-content: center;
  column-gap: 2rem;
  margin-top: 0.8rem;
}
.piece-row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: center;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}
.piece-row > span:first-child,
.piece-row strong { white-space: nowrap; }
.piece-row .piece-label { min-width: max-content; }
.piece-rule {
  grid-column: 1 / -1;
  height: 0.55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.piece-rule + .piece-row { border-top: 0; }
.ico-ability { width: 16px; height: 16px; }
.status-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: 0.05rem 0;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.38rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--good) 18%, var(--bg));
  color: var(--good);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.unit:hover { border-color: var(--gold); }
.unit.is-nudged { box-shadow: inset 0 0 0 1px var(--gold); }
.unit header { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.unit header strong { overflow-wrap: anywhere; }
.unit header .score { display: flex; align-items: baseline; gap: 0.35rem; white-space: nowrap; }
.unit .nudge { color: var(--gold); }
.unit p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.score { color: var(--gold); font-variant-numeric: tabular-nums; }
.score .grade { margin-right: 0.28rem; }
.grade { font-weight: 700; letter-spacing: 0.02em; }
.matchup h3 .grade { margin-right: 0.28rem; }
.unit header .grade { margin-left: 0.35rem; }
.grade-S { color: #f0c56a; }
.grade-A { color: #b7d989; }
.grade-B { color: #9ec4e8; }
.grade-C { color: var(--muted); }
.grade-D { color: #d4a078; }
.grade-F { color: var(--bad); }
.team-red { --team: #e15b5b; }
.team-blue { --team: #6aa4ef; }
.team-green { --team: #6fbf7a; }
.team-yellow { --team: #e2c15a; }
.team-white { --team: #f4f1ea; }
.team-black { --team: #8d8d8d; }
.team-purple { --team: #b98ae0; }
.team-brown { --team: #c48a55; }
.team-champion { --team: #e0b15a; }
.rows { display: grid; gap: 0.45rem; margin-top: 0.8rem; }
.weights-page { text-align: center; }
.weights-page .lede,
.weights-page .tag { margin-inline: auto; }
.weights-page .form { justify-content: center; }
.weights-page #weight-query { width: min(100%, 22rem); }
.weights-page .weight-filters {
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem 1.4rem;
}
.weight-filter { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.weight-filters .tag { margin-inline: 0; }
.weights-page .weight-list {
  width: min(100%, 52rem);
  margin: 0.4rem auto 0;
  text-align: left;
}
.weight-list { margin-top: 0.4rem; }
.weight-row,
.weight-head {
  display: grid;
  grid-template-columns: minmax(8rem, 1.6fr) minmax(9rem, 1fr) 5.4rem 5.4rem 5.4rem;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.35rem;
  border-top: 1px solid var(--line);
}
.weight-head { color: var(--muted); font-size: 0.78rem; border-top: 0; }
.weight-row { cursor: pointer; user-select: none; }
.weight-row.is-static { cursor: default; }
.weight-row.is-nudged { box-shadow: inset 0 0 0 1px var(--gold); border-radius: 8px; }
.weight-name,
.weight-kind {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.weight-name > span,
.weight-kind > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.weight-kind { color: var(--muted); font-size: 0.82rem; }
.weight-name .ico-face {
  width: 18px;
  height: 24px;
  object-fit: contain;
  object-position: center top;
  background: #100e0b;
  border-radius: 3px;
}
.weight-head span:nth-child(n + 3),
.weight-row span:nth-child(n + 3),
.weight-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.weight-row .nudge { color: var(--gold); }
.recent { border-top: 1px solid var(--line); }
.recent .row { border-top: 0; }
.recent-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
}
.recent-toggle:hover,
.recent-toggle:focus-visible { background: rgba(224, 177, 90, 0.08); }
.recent-detail { margin: 0.15rem 0 0.35rem; padding: 0.15rem 0.15rem 0.15rem 0.45rem; }
.recent-detail[hidden] { display: none; }
.ready-row { font-size: 1.15rem; padding: 0.7rem 0.2rem; }
.ready-row strong { font-size: 1.35rem; }
.row {
  display: grid;
  grid-template-columns: 8.5rem 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.2rem;
  border-top: 1px solid var(--line);
}
.tag { color: var(--muted); font-size: 0.82rem; }
.class-row { display: flex; align-items: center; gap: 0.35rem; }
.class-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  padding: 0.2rem 0.1rem 0.55rem;
}
.class-pick {
  flex: 0 0 5.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 14px;
  padding: 0.35rem 0.25rem 0.45rem;
}
.class-pick img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
}
.class-pick span { font-size: 0.72rem; text-align: center; line-height: 1.15; }
.bonus-mark { color: var(--gold); font-size: 0.68rem; font-weight: 650; }
.class-pick.is-on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.pick-tip {
  position: fixed;
  z-index: 40;
  min-width: 16.5rem;
  display: grid;
  gap: 0.22rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.pick-tip[hidden] { display: none; }
.pick-tip span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.pick-tip b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 650; }
.class-row .ghost { padding: 0.35rem 0.55rem; }
.center { text-align: center; }
.build-toggles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin: 0.1rem 0 0.75rem;
}
.exclude-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  cursor: pointer;
}
.exclude-toggle input { cursor: pointer; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.7rem; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem; background: var(--bg-2); }
.rec-unit {
  display: grid;
  grid-template-columns: auto auto;
  align-items: stretch;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.rec-portrait {
  height: 100%;
  width: auto;
  aspect-ratio: 1;
  justify-self: start;
  object-fit: contain;
  image-rendering: pixelated;
}
.rec-copy { min-width: 0; max-width: 36rem; }
.rec-copy p { margin: 0.15rem 0; }
.rec-copy .ghost { margin-top: 0.45rem; }
.command { font-family: Consolas, "Cascadia Mono", monospace; color: var(--gold); word-break: break-word; }
.hall {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.35rem 1rem;
  align-items: start;
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--team, var(--gold));
}
.hall h3 { grid-column: 1 / -1; margin-bottom: 0.15rem; }
.hall:not(:has(img.portrait)) { grid-template-columns: minmax(0, 1fr); }
.hall .portrait {
  width: 112px;
  height: 144px;
  border-radius: 10px;
}
.hall-copy { min-width: 0; display: grid; gap: 0.28rem; }
.hall header { display: flex; justify-content: space-between; gap: 0.6rem; align-items: baseline; }
.hall header strong { font-size: 1.35rem; overflow-wrap: anywhere; }
.hall p { margin: 0; color: var(--muted); }
.hall .kit-list li { font-size: 0.95rem; }
.hall .ico-item { width: 28px; height: 28px; }
.hall .ico-ability { width: 18px; height: 18px; }
.hall-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0 0.15rem;
  font-variant-numeric: tabular-nums;
}
.hall-stats > span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  background: var(--bg);
  border-radius: 8px;
  padding: 0.22rem 0.5rem;
}
.hall-stats > span > span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.03em; }
.hall-stats b { font-weight: 650; color: var(--ink); }
.hall-stats b.vital-hp { color: #e08b78; }
.hall-stats b.vital-mp { color: #8eb7e8; }
.stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.stats-center { justify-content: center; }
.locker-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr) 18rem;
  gap: 1rem;
  align-items: start;
}
.bonus-panel,
.cooldown-panel {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}
.bonus-tag { margin: 0.15rem 0; color: var(--gold); }
.locker-main { min-width: 0; }
.locker-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.locker-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.35rem;
}
.locker-head .lede {
  margin-inline: auto;
}
.prestige-box {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.prestige-box p { margin: 0; }
.prestige-box .btn { justify-self: start; }
.cool-list { display: grid; gap: 0.7rem; }
.cool-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
}
.cool-count {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  font-family: Palatino, "Palatino Linotype", serif;
  font-size: 1.45rem;
  color: var(--gold);
}
button.cool-count { padding: 0; cursor: pointer; }
button.cool-count:hover,
button.cool-count:focus-visible { border-color: var(--gold); }
.cool-count.is-unknown { color: var(--muted); font-size: 1.05rem; }
.cool-recency { margin: 0 0 0.75rem; color: var(--gold); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.cool-copy { min-width: 0; }
.cool-copy strong { display: block; }
.cool-copy .tag { display: block; margin: 0.15rem 0 0; }
.bonus-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}
.bonus-toggle:hover,
.bonus-toggle:focus-visible { background: rgba(224, 177, 90, 0.08); border-radius: 10px; }
.bonus-class-list {
  margin: 0.15rem 0 0.2rem 3.95rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.85rem;
}
.bonus-class-list[hidden] { display: none; }
.bonus-class-list li { margin: 0.12rem 0; }
.stat { background: var(--bg-2); border-radius: 12px; padding: 0.55rem 0.7rem; min-width: 7rem; }
.stat b { display: block; font-size: 1.2rem; }
.form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.form.stack { flex-direction: column; align-items: stretch; }
.form.stack .btn { align-self: flex-start; }
textarea.line-box { min-height: 5.5rem; }
.unit.is-static {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  grid-template-columns: 56px minmax(0, max-content);
  cursor: default;
}
.unit.is-static:not(:has(img.portrait)) { grid-template-columns: minmax(0, max-content); }
.unit.is-static:hover { border-color: var(--line); }
.unit.is-static header { justify-content: flex-start; gap: 0.9rem; }
.unit-why { text-align: center; }
.unit-paste { text-align: center; }
.unit-paste .lede { margin-inline: auto; }
.unit-paste .form.stack .btn { align-self: center; }
.unit-paste textarea.line-box {
  width: min(100%, 52rem);
  align-self: center;
}
.fight-build { margin-top: 1.5rem; text-align: center; }
.fight-build .lede { margin-inline: auto; }
.fight-build .form { justify-content: center; }
input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
}
input:disabled, select:disabled {
  opacity: 0.45;
}
textarea { width: 100%; min-height: 7rem; }
.skills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.skill {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}
.skill.is-owned { background: #314838; border-color: #466b52; color: var(--good); }
.skill.is-hidden { border-style: dashed; opacity: 0.72; }
.priority { margin: 0.35rem 0 0.7rem; line-height: 1.45; }
.priority strong {
  display: inline-block;
  margin-right: 0.45rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.priority-strong strong { background: var(--gold); color: #22190c; }
.priority-buy strong { background: #314838; color: var(--good); }
.priority-optional strong { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); }
.priority-skip strong { background: #3a2420; color: var(--bad); }
.priority-owned strong { background: #314838; color: var(--good); }
.priority-unowned strong { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.priority-unread strong { background: var(--bg-2); color: var(--muted); }
.flash, .ok { color: var(--good); }
.warn { color: var(--bad); }
.quest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
}
.quest-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  padding: 0.45rem 0.4rem 0.6rem;
  text-align: center;
}
.quest-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
}
.quest-card strong { font-size: 0.92rem; }
.quest-card.is-done { border-color: #466b52; box-shadow: inset 0 0 0 1px #314838; }
.quest-card.is-unknown { opacity: 0.42; filter: grayscale(1); }
.quest-meter {
  width: 100%;
  height: 0.35rem;
  margin-top: 0.3rem;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}
.quest-meter span { display: block; height: 100%; background: var(--gold); }
.quest-card.is-done .quest-meter span { background: var(--good); }
.quest-line { grid-template-columns: minmax(0, 1.4fr) auto auto; }
.quest-line .quest-meter { display: block; margin-top: 0.35rem; }
.quest-line .blurb { display: block; margin-top: 0.15rem; }
.quest-line.is-done { box-shadow: inset 3px 0 0 var(--good); }
.zodiac-board {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.zodiac-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  padding: 0.3rem 0.7rem 0.3rem 0.35rem;
}
.zodiac-row img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
}
.zodiac-row strong {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  flex: 0 0 7.5rem;
  font-size: 0.92rem;
}
.zodiac-signs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  min-width: 0;
}
.zodiac-sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.15rem;
  border-radius: 8px;
  color: var(--muted);
  opacity: 0.28;
  font-size: 1.05rem;
  line-height: 1;
}
.zodiac-sign.is-on {
  opacity: 1;
  color: var(--gold);
  background: rgba(224, 177, 90, 0.12);
}
.zodiac-sign i {
  font-style: normal;
  margin-left: 0.08rem;
  font-size: 0.62rem;
  color: var(--ink);
}
.zodiac-row.is-done { border-color: #466b52; box-shadow: inset 0 0 0 1px #314838; }
.history-row { grid-template-columns: 9.2rem max-content max-content max-content 1rem; justify-content: start; column-gap: 1.1rem; }
.history-id { display: block; }
.history-item { border-top: 1px solid var(--line); }
.history-item .history-row { border-top: 0; }
.history-toggle {
  width: 100%;
  margin: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.history-toggle:hover,
.history-toggle:focus-visible,
.history-toggle[aria-expanded="true"] { background: rgba(224, 177, 90, 0.08); }
.history-caret { color: var(--muted); }
.history-caret::before { content: "▸"; }
.history-toggle[aria-expanded="true"] .history-caret::before { content: "▾"; }
.history-detail { padding: 0.35rem 0.15rem 0.9rem; }
.history-detail[hidden] { display: none; }
.history-meta { display: block; text-align: center; margin: 0.15rem 0 0.55rem; }
.weigh-title,
.weigh > .tag { text-align: center; }
.reasons {
  width: max-content;
  max-width: 100%;
  margin: 0.4rem auto 0;
  padding-left: 1.2rem;
  text-align: left;
}
.reasons li { margin: 0.2rem 0; }
.campaign-stack { display: grid; gap: 1rem; }
.campaign-page > h2,
.campaign-page > .lede {
  text-align: center;
}
.campaign-page > .lede { margin-inline: auto; }
.campaign-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.campaign-log li { color: var(--ink); }
.job-tree { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.job-trunk { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.job-root { grid-column: 1 / -1; justify-self: center; width: min(100%, 16rem); }
.job-col { display: grid; gap: 0.55rem; align-content: start; }
.job-caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; margin-top: 0.9rem; }
.job-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem 0.6rem;
}
button.job-card { cursor: pointer; }
button.job-card:hover, .job-card.is-current { border-color: var(--gold); }
.job-card.is-current { box-shadow: inset 0 0 0 1px var(--gold); }
.job-card.is-locked { opacity: 0.42; filter: grayscale(1); }
.job-face {
  width: 42px;
  height: 52px;
  object-fit: contain;
  object-position: center top;
  image-rendering: pixelated;
  background: #100e0b;
  border-radius: 8px;
}
.job-copy { display: grid; gap: 0.15rem; min-width: 0; }
.job-copy strong { font-size: 0.95rem; }
.job-reqs { display: flex; flex-wrap: wrap; gap: 0.25rem 0.45rem; color: var(--muted); font-size: 0.75rem; }
.job-reqs .is-met { color: var(--good); }
.job-reqs .is-sex { color: var(--bad); }
.job-bar { display: block; height: 4px; border-radius: 99px; background: #3a3228; overflow: hidden; }
.job-bar span { display: block; height: 100%; background: var(--gold); }
button:disabled { opacity: 0.45; cursor: default; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 1280px) {
  .matchup { grid-template-columns: 1fr; }
  .vs { padding-top: 0; }
}
@media (max-width: 900px) {
  .top, .grid-2, .matchup, .split, .live-split, .history-row, .locker-layout, .job-tree { grid-template-columns: 1fr; }
  .bonus-panel { order: -2; }
  .cooldown-panel { order: -1; }
  .header-end { align-items: center; }
  .status-stack { align-items: flex-start; }
  .header-auth { justify-content: flex-start; }
  .status { text-align: left; max-width: none; }
  .vs { padding-top: 0; }
}
@media (max-width: 720px) {
  .units, .job-caps { grid-template-columns: 1fr; }
  .zodiac-row { flex-wrap: wrap; }
  .zodiac-row strong { flex: 1 0 8rem; }
  .zodiac-signs { flex: 1 0 100%; width: 100%; padding-left: 0.35rem; }
}
