:root {
  --bg: #0e0e10;
  --panel: #18181b;
  --panel-2: #212125;
  --line: #2c2c31;
  --text: #ececee;
  --muted: #9a9aa3;
  --accent: #e5484d;
  --bad: #ef5a5f;
  --mid: #f0a23b;
  --good: #4cc38a;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

body.locked { overflow: hidden; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

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

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 14px max(16px, calc((100vw - 1280px) / 2));
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; flex: none; border-radius: 12px; }
.brand img { display: block; width: 46px; height: 46px; transition: transform 0.15s ease; }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }

.tabs { display: flex; gap: 4px; margin-right: auto; }
.tabs a {
  padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--muted);
  font-weight: 600; white-space: nowrap;
}
.tabs a:hover { color: var(--text); background: var(--panel); }
.tabs a.active { color: var(--text); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--accent); }

.controls { display: flex; flex-wrap: wrap; gap: 8px; }

input[type="search"], input[type="text"], input[type="number"], input[type="password"], input[type="date"], select, textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  min-height: 40px;
}

input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, .card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#search { width: 240px; }

button {
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  min-height: 40px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); font-weight: 500; }
button.danger { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
button:disabled { opacity: 0.5; cursor: default; }

.adminbar {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.adminbar .ghost { margin-left: auto; }
.check { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- grid */

main { max-width: 1280px; margin: 0 auto; padding: 16px 16px 48px; }

.count { color: var(--muted); font-size: 0.85rem; margin: 0 0 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: #45454d; }
.card.draft { opacity: 0.55; border-style: dashed; }
.vthumb { position: relative; aspect-ratio: 16 / 9; background: var(--panel-2); overflow: hidden; }
.vthumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vtime, .vage { position: absolute; bottom: 8px; padding: 1px 6px; border-radius: 5px; font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.vtime { right: 8px; background: rgba(0, 0, 0, 0.8); color: #fff; }
.vage { left: 8px; background: var(--accent); color: #fff; }
.vcard .card-title { font-size: 0.98rem; }
.vcard .card-meta { margin-bottom: 0; }

.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel-2); }
/* app.js sizes and positions the image inside the frame (focus point and zoom). */
.card-img img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

.card-body { padding: 14px 16px 16px; }
.card-title { margin: 0; font-size: 1.05rem; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.card-meta { margin: 2px 0 8px; color: var(--muted); font-size: 0.85rem; display: flex; gap: 8px; align-items: center; }
.card-tag { margin: 0; color: #c9c9cf; font-size: 0.93rem; overflow-wrap: anywhere; }

.rating { font-weight: 650; font-variant-numeric: tabular-nums; }
.rating.bad { color: var(--bad); }
.rating.mid { color: var(--mid); }
.rating.good { color: var(--good); }
.imdb { display: inline-flex; align-items: center; text-decoration: none; }
.imdb img { display: block; height: 22px; width: auto; }
.imdb:hover img { filter: brightness(1.12); }

.scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.score {
  display: grid; gap: 4px; padding: 12px 14px 12px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  --tone: var(--accent);
}
.score.overall.good { --tone: var(--good); }
.score.overall.mid { --tone: var(--mid); }
.score.overall.bad { --tone: var(--bad); }
.score.overall { border-color: var(--tone); }
.score-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.score-value { font-size: 1.9rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.score.overall .score-value { color: var(--tone); }
.score-value small { font-size: 0.9rem; font-weight: 500; color: var(--muted); margin-left: 2px; }
.score-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.score-fill { display: block; height: 100%; border-radius: 3px; background: var(--tone); }
.score-rank { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dot::before { content: "·"; margin-right: 8px; color: var(--muted); }
.video { white-space: nowrap; }
.type { font-size: 0.72rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.type-series { color: #8ab4ff; }
.type-game { color: #c79bff; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.tag { padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
button.tag { min-height: 0; background: none; font-weight: 400; cursor: pointer; }
button.tag:hover { color: var(--text); border-color: var(--accent); }

#tags-toggle.on { background: var(--panel-2); border-color: #55555e; }
.tagbar { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-height: 132px; overflow-y: auto; }
.tagbar-label { color: var(--muted); font-size: 0.8rem; margin: 0 2px 0 6px; }
.tagbar-label:first-child { margin-left: 0; }
.tagchip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 11px; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 500; font-size: 0.84rem; white-space: nowrap; }
.tagchip:hover { color: var(--text); border-color: #55555e; }
.tagchip small { color: var(--muted); font-size: 0.72rem; }
.tagchip.suggest { color: var(--text); border-style: dashed; border-color: #55555e; }
.tagchip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tagchip.on span { font-size: 1rem; line-height: 1; }

/* ---------------------------------------------------------------- all ratings */
.ratings { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.rrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) 52px 64px 48px; gap: 12px; align-items: center; padding: 9px 16px; border-top: 1px solid var(--line); }
.rrow:first-child { border-top: 0; }
.rrow:hover { background: var(--panel-2); }
.rtitle { overflow-wrap: anywhere; }
.rtitle a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.rtitle a:hover { text-decoration-color: var(--accent); }
.rbadge { margin-left: 8px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.ryear { color: var(--muted); font-variant-numeric: tabular-nums; }
.rrow .rating { text-align: right; }
.more { text-align: center; margin: 18px 0 0; }
.rthumb { width: 26px; height: 38px; object-fit: cover; border-radius: 3px; vertical-align: middle; margin-right: 10px; background: var(--panel-2); }
.rauthor { margin-left: 8px; color: var(--muted); font-size: 0.85rem; }
.rlink { color: var(--muted); font-size: 0.8rem; text-underline-offset: 3px; }
.type-book { color: #e0b26a; }
#also { margin-top: 26px; }
.find-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.find { width: 260px; max-width: 100%; }
.find-results { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------------------------------------------------------------- statistics */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { display: grid; gap: 2px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.kpi strong { font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 0.82rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 22px; margin-bottom: 20px; min-width: 0; }
.panel h2 { margin: 0 0 4px; font-size: 1.15rem; }
.panel h3 { margin: 0 0 6px; font-size: 0.95rem; }
.panel-note { margin: 0 0 12px; color: var(--muted); font-size: 0.88rem; max-width: 80ch; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.chip { min-height: 32px; padding: 4px 12px; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 500; font-size: 0.88rem; }
.chip.on { background: var(--panel-2); color: var(--text); border-color: #55555e; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.bar { fill: #8d8d97; }
.bar.bad { fill: var(--bad); } .bar.mid { fill: var(--mid); } .bar.good { fill: var(--good); }
.chart g:hover .bar { filter: brightness(1.2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; color: var(--muted); font-size: 0.82rem; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 50%; }
.swatch.bad { background: var(--bad); } .swatch.mid { background: var(--mid); } .swatch.good { background: var(--good); }
.scatter { max-width: 760px; margin: 0 auto; }
.pt { stroke: var(--panel); stroke-width: 2; cursor: pointer; }
.pt.bad { fill: var(--bad); } .pt.mid { fill: var(--mid); } .pt.good { fill: var(--good); }
.pt:hover, .pt:focus { stroke: #fff; outline: none; }
.loading { stroke: #77777f; stroke-width: 1.5; }
.arrowhead { fill: #b9b9c2; }
.dir { font-size: 12.5px; paint-order: stroke; stroke: var(--panel); stroke-width: 4px; }
.dir.more { fill: var(--text); font-weight: 700; }
.dir.less { fill: var(--muted); }
.tip { position: fixed; z-index: 30; display: grid; gap: 2px; max-width: 320px; padding: 8px 10px; background: #26262b; border: 1px solid #3a3a42; border-radius: 8px; font-size: 0.82rem; pointer-events: none; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
.tip span { color: #c9c9cf; }

.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; align-items: start; }
.map-box { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #131316; }
.map { cursor: grab; touch-action: none; overflow: hidden; user-select: none; }
.map-zoom { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; }
.map-zoom button { width: 36px; min-height: 36px; padding: 0; font-size: 1.1rem; background: var(--panel); }
.node { cursor: pointer; }
.node circle { fill: #8d8d97; }
.node .hit { fill: transparent !important; }
.dense .node text { display: none; }
.dense .node.selected text, .dense .node.near text { display: block; }
.node text { fill: #c9c9cf; }
.node:hover text, .node:focus text { fill: #fff; }
.node:focus { outline: none; }
.node.far { opacity: 0.22; }
.node.near circle { fill: var(--mid); } .node.near text { fill: #fff; }
.node.selected circle { fill: var(--accent); } .node.selected text { fill: #fff; font-weight: 700; }
.link { stroke: var(--mid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-side h3 { font-size: 1.05rem; } .map-side h3 small { color: var(--muted); font-weight: 400; }
.map-side h4 { margin: 16px 0 6px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.map-side .tags { margin: 0 0 12px; }
.similar { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.similar li { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9rem; }
.similar li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.similar small { color: var(--muted); font-weight: 400; }
.linkish.unreviewed { text-decoration-style: dotted; color: #c9c9cf; }
.linkish { min-height: 0; padding: 3px 0; background: none; color: var(--text); font-weight: 500; text-align: left; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.trainer-wrap { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.pair { display: grid; grid-template-columns: minmax(0, 260px) auto minmax(0, 260px); gap: 16px; align-items: center; justify-content: center; }
.pair .card { pointer-events: none; } .pair .card .tags { padding: 0 16px 14px; margin: 0; }
.vs { color: var(--muted); font-weight: 700; }
.answers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 10px; }
.answers button { display: inline-flex; gap: 8px; align-items: center; font-size: 0.88rem; }
.answers b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--panel-2); }
.answers .skip { color: var(--muted); }

.toggle { display: inline-flex; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; white-space: nowrap; }
.toggle input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.card-edit {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 0.8rem;
  background: rgba(14, 14, 16, 0.85);
  border: 1px solid var(--line);
  color: var(--text);
}

.empty { color: var(--muted); text-align: center; padding: 60px 0; }

.foot { display: flex; justify-content: center; gap: 20px; padding: 24px 16px 40px; color: var(--muted); font-size: 0.85rem; }

/* ---------------------------------------------------------------- overlay */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(6, 6, 8, 0.88);
  padding: 32px 76px;
}

.sheet {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.sheet-img { display: block; width: 100%; max-height: 62vh; object-fit: contain; background: #000; }

.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-start { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border-radius: 0; background: #000; }
.player-start img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 76px; height: 76px; padding-left: 5px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.8rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}
.player-start:hover .player-icon { transform: translate(-50%, -50%) scale(1.06); }

.sheet-body { padding: 22px 28px 30px; }
.sheet-title { margin: 0; font-size: 1.7rem; line-height: 1.2; overflow-wrap: anywhere; }
.sheet-meta { margin: 6px 0 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sheet-tag { margin: 14px 0 0; font-size: 1.1rem; font-weight: 550; overflow-wrap: anywhere; }
.sheet-text { margin-top: 16px; color: #d6d6db; overflow-wrap: anywhere; }
.sheet-text p { margin: 0 0 1em; white-space: pre-line; }
.sheet-text a { color: var(--accent); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sheet-actions a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: 0.92rem; }
.sheet-actions a:hover { border-color: var(--accent); }

.close, .nav {
  position: fixed;
  z-index: 11;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
}
.close:hover, .nav:hover:not(:disabled) { border-color: var(--accent); }
.close { top: 14px; right: 14px; }
.nav { top: 50%; transform: translateY(-50%); }
.nav.prev { left: 14px; }
.nav.next { right: 14px; }

/* ---------------------------------------------------------------- admin forms */

.form { padding: 24px 28px 28px; display: grid; gap: 14px; }
.form h2 { margin: 0; font-size: 1.3rem; }
.form label { display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.form label.check { display: inline-flex; font-size: 0.95rem; color: var(--text); }
.form input, .form textarea { width: 100%; color: var(--text); }
.form input[type="checkbox"] { width: auto; min-height: 0; }
.form textarea { min-height: 260px; resize: vertical; line-height: 1.5; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-actions .danger { margin-left: auto; }
.error { color: var(--accent); margin: 0; min-height: 1.2em; font-size: 0.9rem; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 0; }

.focus { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; align-items: start; }
.focus-pick { position: relative; cursor: crosshair; touch-action: none; border-radius: 10px; overflow: hidden; background: #000; line-height: 0; user-select: none; }
.focus-pick img { width: 100%; max-height: 380px; object-fit: contain; pointer-events: none; }
.focus-frame {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 2000px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.zoom { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; margin-top: 10px; }
.zoom input { min-height: 0; padding: 0; accent-color: var(--accent); }
.focus-preview .card { pointer-events: none; }
.focus-preview .card:hover { transform: none; }

@media (max-width: 720px) {
  .top { position: static; padding: 10px 16px 12px; gap: 10px 12px; }
  .brand img { width: 38px; height: 38px; }
  .tabs { flex: 1 1 0; min-width: 0; gap: 2px; margin-right: 0; }
  .tabs a { flex: 1 1 auto; padding: 8px 3px; font-size: 0.78rem; text-align: center; }
  .rauthor { display: block; margin-left: 0; }
  .controls { width: 100%; }
  #search { flex: 1 1 100%; width: auto; }
  .controls select { flex: 1 1 30%; min-width: 0; padding: 8px 8px; font-size: 0.9rem; }
  #search { flex: 1 1 60%; min-width: 0; }
  #tags-toggle { flex: 0 0 auto; }
  .tagbar { order: 3; max-height: 104px; }
  main { padding: 14px 16px 40px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 0.98rem; }
  .card-meta { flex-wrap: wrap; gap: 2px 6px; font-size: 0.8rem; }
  .card-meta .dot::before { margin-right: 6px; }
  .card-tag { font-size: 0.88rem; }
  .overlay { padding: 0 0 84px; }
  .sheet { border-radius: 0; border-width: 0 0 1px; }
  .sheet-img { max-height: 46vh; }
  .sheet-body, .form { padding: 18px 16px 24px; }
  .sheet-title { font-size: 1.4rem; padding-right: 52px; }
  .sheet-meta { gap: 6px; }
  .scores { grid-template-columns: repeat(2, 1fr); }
  .nav, .close { width: 44px; height: 44px; background: rgba(33, 33, 37, 0.9); backdrop-filter: blur(8px); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6); }
  .nav { top: auto; bottom: 16px; transform: none; }
  .nav:disabled { display: none; }
  .nav.prev { left: 16px; }
  .nav.next { right: 16px; }
  .close { top: 10px; right: 10px; }
  .focus { grid-template-columns: 1fr; }
  .focus-preview { max-width: 240px; }
  .adminbar .ghost { margin-left: auto; }
  .rrow { grid-template-columns: minmax(0, 1fr) 40px 56px 40px; gap: 8px; padding: 9px 12px; }
  .rrow .type { display: none; }
  .rrow .imdb img { height: 18px; }
  .rbadge { display: inline-block; margin-left: 6px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi:first-child { grid-column: 1 / -1; }
  .kpi strong { font-size: 1.4rem; }
  .panel { padding: 16px 14px 18px; }
  .two { grid-template-columns: 1fr; }
  .map-wrap { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
  .pair .vs, .pair .card-tag { display: none; }
  .pair .card .tags { padding: 0 12px 10px; gap: 4px; }
  .pair .tag { font-size: 0.7rem; padding: 1px 7px; }
  .answers { display: grid; grid-template-columns: 1fr 1fr; }
  .answers button { justify-content: flex-start; padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
