:root {
  --bg: #0d0f13;
  --panel: #151920;
  --panel-2: #1b202a;
  --line: #262c38;
  --text: #e6e9ef;
  --muted: #8b93a3;
  --accent: #e0603a;
  --accent-dim: #a8462a;
  --win: #4f9d69;
  --loss: #c04a3f;
  --hot: #e0a03a;
  --radiant: #5fae5a;
  --radiant-bg: rgba(95, 174, 90, 0.12);
  --dire: #d0503c;
  --dire-bg: rgba(208, 80, 60, 0.12);
  /* The gold of the Dota menu, as in the chat (EVALS/chat.html) */
  --gold: #e1b95f;
  --gold-light: #f6dc95;
  --gold-deep: #a9802f;
  --display: "Spectral SC", "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 860px; margin: 0 auto; padding: 0 20px 64px; }

header.site {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 20px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.brand-why { color: var(--accent); }
.brand-rest { color: var(--text); }
.tagline { color: var(--muted); font-size: 14px; }

footer.site {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 20px; margin: 32px 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; }
a { color: var(--accent); }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-variant-numeric: tabular-nums; }
.hint { color: var(--muted); font-size: 14px; }
.error { color: #ff8f7a; }
.notice {
  background: var(--panel);
  border-left: 3px solid var(--hot);
  padding: 12px 16px;
  border-radius: 4px;
}

/* --- главная --- */
.hero { padding: 24px 0 8px; }
.lead { font-size: 18px; color: #c8cedb; max-width: 620px; }

.lookup { display: flex; gap: 10px; margin: 28px 0 12px; flex-wrap: wrap; }
.lookup input {
  flex: 1 1 320px;
  padding: 13px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
}
.lookup input:focus { outline: none; border-color: var(--accent-dim); }

button {
  padding: 13px 22px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: var(--accent-dim); }

.explain-head h2 { margin: 40px 0 0; }
.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.recent ul { list-style: none; padding: 0; }
.recent li a {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 8px; text-decoration: none; color: var(--text);
}
.recent li a:hover { border-color: var(--accent-dim); }

/* --- профиль и матчи --- */
.profile { display: flex; align-items: center; gap: 18px; padding: 16px 0 8px; }
.avatar { width: 64px; height: 64px; border-radius: 10px; }
.profile h1 { margin: 0; font-size: 26px; }
.profile p { margin: 2px 0 0; font-size: 13px; }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); font-weight: 600;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
}
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hero-name { font-weight: 600; }
.hero-name.big { font-size: 20px; }
/* pictures of heroes, items and abilities next to their names (app/icons.py) */
.named { white-space: nowrap; }
.ico { height: 1.4em; vertical-align: -0.35em; margin-right: 0.3em; border-radius: 3px; object-fit: cover; }
.ico-hero { aspect-ratio: 16 / 9; }
.ico-item { aspect-ratio: 11 / 8; }
.ico-ability { aspect-ratio: 1; }
.ico-side { aspect-ratio: 1; border-radius: 0; object-fit: contain; }
.ico-hero.big { height: 48px; vertical-align: middle; margin-right: 0; border-radius: 5px; }
.kda { font-variant-numeric: tabular-nums; }
td button { padding: 8px 16px; font-size: 14px; }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.badge.win { background: rgba(79, 157, 105, 0.16); color: var(--win); }
.badge.loss { background: rgba(192, 74, 63, 0.16); color: var(--loss); }
.badge.draw { background: rgba(230, 233, 239, 0.12); color: var(--text); }

/* --- ожидание --- */
.pending { text-align: center; padding: 60px 0; }
.pending h1 { font-size: 24px; }
.stage { color: var(--accent); }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 22px;
  border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* a block of the report the model is still writing (templates/_wait.html) */
.block-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.spinner.small { width: 16px; height: 16px; margin: 0; border-width: 2px; flex: none; }

/* --- отчёт --- */
.report-head { padding: 12px 0 4px; }
.match-line { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 14px; }
.headline { font-size: 27px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; margin: 4px 0 18px; }

/* The table of contents of the report: one row of links that stays on top while the page scrolls. Gold capitals
   like the title of the chat, diamonds between the links and a gold line that fades to the edges. Spectral SC, not
   the chat's Forum: Forum is thin and narrow and hard to read this small */
.toc {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -20px; padding: 13px 20px 11px;
  background: linear-gradient(180deg, #181c23, #0f1216);
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, transparent, var(--gold-deep) 18%, var(--gold) 50%, var(--gold-deep) 82%, transparent) 1;
  box-shadow: 0 10px 18px -12px rgb(0 0 0 / .9);
}
.toc::-webkit-scrollbar { display: none; }
.toc a {
  flex: none; position: relative; padding: 2px 0;
  font: 600 16px/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #f7e7bd 15%, var(--gold) 60%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: filter .15s;
}
.toc a + a::before {
  content: ""; position: absolute; left: -15px; top: 50%; width: 5px; height: 5px; margin-top: -3px;
  transform: rotate(45deg); border: 1px solid var(--gold); background: #12151a;
}
.toc a:hover, .toc a:focus-visible {
  background-image: linear-gradient(180deg, #fffaf0 10%, var(--gold-light) 55%, var(--gold) 100%);
  filter: drop-shadow(0 0 6px rgb(225 185 95 / .5)); outline: none;
}
main section[id] { scroll-margin-top: 60px; }

/* The summary (templates/_summary.html): the two or three things for the next game, a numbered card each */
.summary-points { list-style: none; counter-reset: point; margin: 0; padding: 0; display: grid; gap: 12px; }
.summary-points li {
  counter-increment: point; position: relative;
  background: linear-gradient(180deg, rgba(224,96,58,0.10), rgba(224,96,58,0.03));
  border: 1px solid var(--accent-dim); border-radius: 10px; padding: 16px 20px 14px 58px;
}
.summary-points li::before {
  content: counter(point); position: absolute; left: 20px; top: 11px;
  font-size: 26px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums;
}
.summary-do { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.summary-why { margin: 0 0 8px; color: #c8cedb; }
.summary-where { margin: 0; font-size: 14px; color: var(--muted); }
.summary-where a { color: var(--muted); text-underline-offset: 3px; }
.summary-where a:hover { color: var(--text); }

/* Inside "Смерти" the parts are subsections */
.deaths-all > h2 { margin-bottom: 8px; }
.deaths-all .damage > h3, .deaths-all .episodes > h3 { font-size: 17px; }
.episodes { margin-top: 34px; }

.signal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.signal.sev-5 { border-left-color: var(--loss); }
.signal.sev-4 { border-left-color: var(--accent); }
.signal.sev-3 { border-left-color: var(--hot); }
.signal header { display: flex; align-items: baseline; gap: 12px; }
.signal h3 { margin: 0 0 12px; font-size: 18px; }
.sev {
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--panel-2); padding: 3px 8px; border-radius: 6px;
  white-space: nowrap;
}
.signal dl { margin: 0; display: grid; grid-template-columns: 88px 1fr; gap: 6px 14px; }
.signal dt {
  color: var(--muted); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.05em; padding-top: 3px;
}
.signal dd { margin: 0; }

/* --- разбивка урона ---
   Цвета — первые три слота валидированной категориальной палитры; проверены
   на этом фоне (#151920) по шести проверкам, включая различимость при дальтонизме.
   Идентичность несут не только цвета: у каждого сегмента подпись и легенда. */
.damage { margin-top: 34px; }
.damage h3 { margin-bottom: 4px; }
.damage-total { color: var(--muted); margin: 0 0 14px; }
.damage-total strong {
  color: var(--text); font-size: 26px; font-variant-numeric: tabular-nums;
}

.dmg-bar {
  display: flex;
  gap: 2px;              /* зазор поверхностью между сегментами */
  height: 34px;
  margin-bottom: 16px;
}
.dmg-bar .seg {
  display: flex; align-items: center; justify-content: center;
  min-width: 4px;
  font-size: 13px; font-weight: 700; color: #0d0f13;
  border-radius: 2px;
}
.dmg-bar .seg:first-child { border-radius: 4px 2px 2px 4px; }
.dmg-bar .seg:last-child { border-radius: 2px 4px 4px 2px; }

/* fill — for the same classes on SVG rects of the damage charts (static/damage_mix.js) */
.seg-physical, .dot-physical { background: #d95926; fill: #d95926; }
.seg-magical,  .dot-magical  { background: #3987e5; fill: #3987e5; }
.seg-pure,     .dot-pure     { background: #199e70; fill: #199e70; }
.seg-hp_removal, .dot-hp_removal { background: #8a5cc7; fill: #8a5cc7; }

.dmg-legend { list-style: none; padding: 0; margin: 0 0 18px; }
.dmg-legend li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 5px 0; font-size: 14px;
}
.dot {
  display: inline-block; width: 9px; height: 9px;
  border-radius: 2px; flex: none;
}
.lg-label { font-weight: 600; min-width: 96px; }
.lg-value { color: var(--text); font-variant-numeric: tabular-nums; min-width: 120px; }
.lg-hint { color: var(--muted); font-size: 13px; }

/* Мини-полоска у каждой смерти: та же кодировка типов, что и в общем блоке,
   поэтому цвет читается без отдельной легенды у таблицы. */
.episodes { margin-top: 34px; }
.episodes .hint { margin-bottom: 12px; }
.episodes .hint .dot { margin: 0 2px 0 8px; }
.dmg-mini {
  display: flex;
  gap: 1px;
  width: 120px;
  height: 9px;
  border-radius: 3px;
  overflow: hidden;
  cursor: help;
}
.dmg-mini i { display: block; min-width: 2px; }

.dmg-sources { font-size: 14px; }
.dmg-sources th:last-child, .dmg-sources td:last-child { text-align: right; }
.dmg-sources td .dot { margin-right: 6px; }

.raw { margin-top: 32px; }
.raw summary { cursor: pointer; color: var(--muted); padding: 10px 0; }
.raw code { background: var(--panel-2); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.deaths td.hot { color: var(--hot); font-weight: 600; }
.caveats { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 14px; }
.glossary dl { margin: 0; display: grid; grid-template-columns: 88px 1fr; gap: 10px 14px; }
.glossary dt { font-weight: 600; }
.glossary dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 620px) {
  h1 { font-size: 27px; }
  .signal dl { grid-template-columns: 1fr; gap: 2px; }
  .signal dt { padding-top: 8px; }
  .glossary dl { grid-template-columns: 1fr; gap: 2px; }
  .glossary dt { padding-top: 8px; }
  .matches { overflow-x: auto; }
}

/* --- Драфт: шанс по раундам пиков и по длине матча (templates/_draft.html, static/draft.js) --- */
.draft { margin: 28px 0 8px; }
.draft h2 { margin-bottom: 4px; }
.draft a { color: var(--muted); }
.draft-flow { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 0; }
.draft-stage {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px;
  position: relative; margin-bottom: 22px;
}
.draft-stage:not(:last-child)::after {  /* the arrow to the next round */
  content: "↓"; position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  color: var(--muted); font-size: 16px; line-height: 22px;
}
.draft-stage.final { border-color: #3a4352; }
.draft-stage h3 { margin: 0 0 4px; font-size: 15px; }
.stage-picks { margin: 0 0 6px; font-size: 14px; color: #c8cedb; }
.draft-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 2px 0 10px; }
.draft-team { padding: 5px 10px 8px; border-radius: 6px; border-left: 3px solid; font-size: 14px; text-align: center; }
.draft-team.radiant { background: var(--radiant-bg); border-left-color: var(--radiant); }
.draft-team.dire { background: var(--dire-bg); border-left-color: var(--dire); }
.team-label { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; }
.draft-team.radiant .team-label { color: var(--radiant); }
.draft-team.dire .team-label { color: var(--dire); }
.team-heroes { display: flex; justify-content: center; align-items: center; gap: 8px; }
.face { flex: 0 1 80px; min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }  /* the hero's name only when there is no picture */
.face .ico-hero.big { display: block; width: 100%; height: auto; border-radius: 4px; }
.face.before { opacity: 0.45; }  /* picked in an earlier round */
/* The hero of the player the report is for: a gold frame, as round a portrait in the game.
   From an earlier round only the portrait dims, the frame keeps its colour. */
.face.you {
  flex-basis: 84px;  /* the portrait's 80px inside 2px of frame */
  border: 2px solid transparent; border-radius: 6px;
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(180deg, #fbeeb0 0%, #e4ae39 42%, #8f5f17 100%) border-box;
  box-shadow: 0 0 0 1px #2e2008, 0 0 9px rgba(228, 174, 57, 0.5);
}
.face.you.before { opacity: 1; color: var(--muted); }
.face.you.before .ico-hero { opacity: 0.45; }
.stage-chance { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.big-num { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* batru.gg's chance: a second reading of the same number, smaller than ours, since the curve below is ours */
.other-model { display: inline-flex; align-items: baseline; gap: 6px; padding-left: 12px;
  border-left: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.other-model b { font-size: 21px; font-weight: 600; color: #c8cedb; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; }
.draft .other-model a { color: var(--muted); text-decoration-color: rgba(139, 147, 163, 0.45); text-underline-offset: 3px; }
.draft .other-model a:hover { color: var(--text); }
.gap { color: var(--hot); font-size: 14px; white-space: nowrap; }
.curve-mini { width: 100%; height: auto; display: block; }
.curve-big-wrap { position: relative; }
.curve-big { width: 100%; height: auto; display: block; }
.curve-tip { position: absolute; pointer-events: none; background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.curve-tip b { font-size: 15px; font-variant-numeric: tabular-nums; }
.verdict { font-weight: 600; margin: 12px 0 0; }
.c-grid line { stroke: #20252f; stroke-width: 1; }
.c-axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.curve-big .c-axis { font-size: 12px; }
.c-fifty { stroke: var(--muted); stroke-width: 1; }
.c-line { fill: none; stroke: #3987e5; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-wash { fill: #3987e5; opacity: 0.1; }
.c-end { stroke: var(--text); stroke-width: 1.5; }
.c-dot { stroke: var(--panel); stroke-width: 2; }
.c-win { fill: var(--win); }
.c-loss { fill: var(--loss); }
.c-peak { fill: #3987e5; }
.c-label { fill: var(--text); font-size: 12px; }
.c-label-muted { fill: var(--muted); font-size: 12px; }
.c-cross { stroke: var(--muted); stroke-width: 1; }
.draft-more { margin-top: 20px; }
.draft-more summary { cursor: pointer; color: var(--muted); }
.draft-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; margin-top: 8px; }
.draft-why h3, .draft-more h3 { font-size: 15px; margin: 14px 0 6px; }
.draft-why ul { margin: 0; padding-left: 18px; font-size: 14px; }
.draft-why li { margin: 3px 0; }
.draft-lesson-title { font-size: 18px; margin: 24px 0 0; }
.pp { font-weight: 600; white-space: nowrap; }
.pp-plus { color: var(--win); }
.pp-minus { color: var(--loss); }
.pp-zero { color: var(--hot); }
.scroll { overflow-x: auto; }
.breakdown { width: 100%; font-size: 14px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.breakdown th { color: var(--muted); font-weight: 500; text-align: right; padding: 4px 0 8px 16px; white-space: nowrap; }
.breakdown td { padding: 4px 0 4px 16px; border-top: 1px solid #20252f; text-align: right; }
.breakdown td:first-child, .breakdown th:first-child { text-align: left; padding-left: 0; }
.breakdown tr.total td { font-weight: 700; border-top: 1px solid var(--line); }
/* The player's pick against the heroes he saw (templates/_draft_pick.html) */
.pick { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 16px 6px; margin-top: 16px; }
.pick.weak { border-left: 3px solid var(--loss); }
.pick h3 { font-size: 15px; margin: 10px 0 6px; }
.pick p { margin: 6px 0; }
.pick-seen { list-style: none; padding: 0; margin: 4px 0 8px; }
.pick-seen li { margin: 3px 0; }
.pick-seen .muted { display: inline-block; min-width: 52px; }
.pick-options { width: auto; min-width: min(100%, 460px); }
.pick-options tr.yours td { color: #c8cedb; }
.local-replays { margin-top: 18px; }
.local-replays ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.local-replays a { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: 14px; }
.local-replays a:hover { border-color: var(--muted); }
@media (max-width: 640px) {
  .draft-teams { grid-template-columns: minmax(0, 1fr); }
}

/* --- Линия (templates/_lane.html) --- */
.lane { margin: 36px 0 8px; }
.lane h2 { margin-bottom: 6px; }
.lane h3 { font-size: 15px; margin: 18px 0 6px; }
.lane-outcome { margin: 0 0 12px; }
.lane-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.lane-table th { color: var(--muted); font-weight: 500; text-align: right; padding: 4px 0 8px 14px; white-space: nowrap; }
.lane-table td { padding: 5px 0 5px 14px; border-top: 1px solid #20252f; text-align: right; }
.lane-table td:first-child, .lane-table th:first-child { text-align: left; padding-left: 0; }
.lane-table tr.theirs td:first-child { color: #c8cedb; }
.lane-table tr.total td { font-weight: 700; border-top: 1px solid var(--line); }
.lane-read { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 16px 12px; margin-top: 16px; }
.lane-read ul { margin: 0; padding-left: 20px; }
.lane-read li { margin: 4px 0; }
.lane-text { white-space: pre-wrap; }
.lane-combo, .lane-leave { background: rgba(192, 74, 63, 0.12); border: 1px solid rgba(192, 74, 63, 0.45); border-radius: 8px;
  padding: 10px 14px; margin: 14px 0 0; }
.lane-leave { margin: 0 0 12px; }
.lane-deaths { margin: 0; padding-left: 20px; font-size: 14px; }
.lane-deaths li { margin: 3px 0; }

/* --- Урон по тебе по минутам: типы и герои (templates/_build.html, static/damage_mix.js) --- */
.dmix-wrap { margin: 0 0 14px; }
.dmix { width: 100%; height: auto; display: block; touch-action: pan-y; }
.dmix-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted);
  cursor: pointer; margin: 0 0 8px; }
.dmix-toggle input { accent-color: var(--accent); margin: 0; }
.build .hint .dot { margin: 0 2px 0 8px; }
.build .hint .dot:first-child { margin-left: 0; }
.dm-col { transition: opacity 0.12s; }
.dm-col.dim { opacity: 0.35; }
.dm-tick { fill: var(--muted); }
.dm-buy { stroke: var(--text); stroke-width: 1.5; }
.dm-buy-dot { fill: var(--text); }
.curve-tip .muted { color: var(--muted); }
.curve-tip .dot { vertical-align: 0; }
.hero-legend { list-style: none; padding: 0; margin: 4px 0 10px; display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: 14px; }
.hero-legend li { display: flex; align-items: center; gap: 8px; }
/* Enemy heroes: a palette apart from the damage types, so the two charts never share a hue (validated on the panel
   for the dark theme). */
.hero-c1 { background: #c98500; fill: #c98500; }
.hero-c2 { background: #9085e9; fill: #9085e9; }
.hero-c3 { background: #e66767; fill: #e66767; }
.hero-c4 { background: #008300; fill: #008300; }
.hero-c5 { background: #d55181; fill: #d55181; }
.deaths .how { display: block; font-size: 12px; color: var(--hot); }
.dmix-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0 0 8px; }
.dmix-controls .dmix-toggle { margin: 0; }
.dmix-scope { display: inline-flex; gap: 14px; font-size: 14px; }
.dmix-scope label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); }
.dmix-scope label:has(input:checked) { color: var(--text); }
.dmix-scope input { accent-color: var(--accent); margin: 0; }
.dmix-wrap .curve-tip { white-space: normal; max-width: min(440px, calc(100% - 8px)); }
/* his items (_build.html): a row of numbers, then a row across the table with what speaks for and against the item */
.build-summary { margin: 0 0 8px; padding-left: 18px; }
.build-summary li { margin: 4px 0; }
.build-mine td:first-child { white-space: nowrap; }
.build-mine td:first-child .muted { white-space: normal; }
.build-mine tr.build-verdict td { text-align: left; white-space: normal; border-top: none; padding-top: 0;
  font-size: 14px; }
.build-verdict ul { margin: 0 0 4px; padding-left: 18px; }
.build-verdict li { margin: 2px 0; }
.build-verdict ul.pros li::marker { content: "+  "; color: var(--win); font-weight: 600; }
.build-verdict ul.cons li::marker { content: "−  "; color: var(--hot); font-weight: 600; }
/* the items he could have bought (_build.html): how each answers is text, the rest are numbers */
.build-answers td { vertical-align: top; }
.build-answers td.how, .build-answers th:nth-child(3), .build-answers td.name, .build-answers th:nth-child(2) {
  text-align: left; }
.build-answers td.how p { margin: 0 0 4px; }
.build-answers td.name, .build-answers td.mono { white-space: nowrap; }
/* seven columns in the page's width: their headings wrap, and the casts are pictures (their names on hover) */
.build-stretches th { white-space: normal; vertical-align: bottom; }
.build-stretches td { vertical-align: top; }
.build-stretches .ico[title] { cursor: help; }
/* what an item is for, from the notes written by hand (_build.html): folded under the reason */
.item-note { margin-top: 4px; font-size: 14px; }
.item-note summary { cursor: pointer; color: var(--muted); }
.item-note p { margin: 6px 0 0; }

/* --- sign-in through Steam (app/steam.py) --- */
.site-nav { margin-left: auto; display: flex; gap: 16px; align-items: baseline; font-size: 14px; }
.site-nav form { margin: 0; }
.link-button { padding: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 400; }
.link-button:hover { background: none; color: var(--text); }
a.button {
  display: inline-block; padding: 13px 22px; background: var(--accent); color: #fff;
  border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none;
}
a.button:hover { background: var(--accent-dim); }
td a.button { padding: 8px 16px; font-size: 14px; white-space: nowrap; }
a.button.ghost { background: none; color: var(--accent); border: 1px solid var(--accent-dim); }
a.button.ghost:hover { background: var(--panel); }
.sign-in { margin: 28px 0 12px; }
.own-games h2 { margin-top: 28px; }
.history li a .when { margin-left: auto; }
