/* Schachserver im Stil von genelec.com (Werte dort gemessen):
   Schwarz, Grautöne und ein einziges Grün (#00865B); Helvetica Neue, Fließtext 300, Überschriften 700;
   Knöpfe als Pillen (25px), Karten mit 15px Radius auf hellgrauer Fläche; Titel mit grünem 8px-Balken. */
:root {
  color-scheme: light;
  --black: #000;
  --band: #111;
  --bg: #e8e8e8;
  --card: #fff;
  --soft: #f3f3f3;
  --line: #eee;
  --line2: #d3d3d3;
  --text: #1a1a1a;
  --text2: #333;
  --muted: #808080;
  --faint: #999;
  --accent: #00865b;
  --accent-soft: rgba(0, 134, 91, .12);
  --warn: #b36b00;
  --danger: #c8102e;
  --ok: #00865b;
  --sans: "Helvetica Neue", helvetica-neue-lt-pro, Helvetica, Arial, "Nimbus Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --wrap: 1296px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text2); }
body { font: 300 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
#app { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 700; color: var(--text); margin: 0; }
h2 { font-size: 20.8px; line-height: 1.2; margin-top: 22px; }
h3 { font-size: 18px; line-height: 1.2; }
b, strong { font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--danger); font-size: 14px; }
.warn { color: var(--warn); font-size: 14px; }
.ok { color: var(--ok); font-size: 13px; font-weight: 500; }
.lbl { font-size: 12.8px; font-weight: 500; color: var(--text2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Grüne Pille mit Rand, wie die Kategorie-Marken auf genelec.com */
.tag {
  display: inline-block; font-size: 10.4px; font-weight: 500; line-height: 1.4;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 50px; padding: 3px 10px; white-space: nowrap;
}

/* Kopf: schwarz, zwei Zeilen, dünne Linie dazwischen */
header.top { position: sticky; top: 0; z-index: 10; background: var(--black); color: #fff; }
header.top .bar { max-width: var(--wrap); margin: 0 auto; padding: 0 48px; display: flex; align-items: center; }
header.top .bar:first-child { height: 64px; justify-content: space-between; border-bottom: 1px solid #444; }
.wordmark { font: 700 24px/1 var(--sans); letter-spacing: -.02em; color: #fff; }
a.wordmark:hover { text-decoration: none; }
.util { display: flex; gap: 20px; align-items: center; }
.pill {
  font: 500 13.6px/1.5 var(--sans); color: #fff; border: 1px solid #fff; border-radius: 25px; padding: 5px 22px;
}
.pill:hover, .pill.active { background: #fff; color: var(--black); text-decoration: none; }
nav.bar { gap: 56px; height: 40px; }
.tab { font: 500 13.6px/1 var(--sans); color: #fff; padding: 13px 0 11px; border-bottom: 2px solid transparent; }
.tab:hover { text-decoration: none; border-bottom-color: #666; }
.tab.active { border-bottom-color: var(--accent); }

/* Titelband: dunkel, Überschrift mit grünem Balken links */
.band { background: var(--band); color: #f8f9fa; }
.inner { max-width: var(--wrap); margin: 0 auto; padding: 0 48px; }
.band .inner { padding-top: 30px; padding-bottom: 28px; }
.band h1 {
  color: #f8f9fa; font-size: 36px; line-height: 1.2; letter-spacing: -.5px;
  border-left: 8px solid var(--accent); padding-left: 20px; overflow-wrap: anywhere;
}
.band h1 .dash { font-weight: 300; color: #999; }
.band .lead { margin: 10px 0 0 28px; font-size: 16px; color: #ccc; }
code.fen { font: 13px var(--mono); color: #bbb; word-break: break-all; }
main { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 28px 48px 48px; }

/* Fuß */
.foot { background: var(--black); color: #999; font-size: 13px; }
.foot .inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.foot .wordmark { font-size: 16px; }

/* Karten: weiß auf hellgrau, 15px Radius, ohne Schatten */
.card, .step, .setup, .ceval, .tview, .table-wrap, .drop, .editor .side, .help-box, .review, .wp-card {
  background: var(--card); border-radius: 15px;
}

/* Knöpfe: Pillen. Standard weiß mit grauem Rand, Hauptaktion schwarz gefüllt */
.btn {
  display: inline-block; font: 500 12.8px/1.5 var(--sans); color: var(--black); background: var(--card);
  border: 1px solid var(--line2); padding: 8px 26px; border-radius: 25px; cursor: pointer; text-align: center;
}
.btn:hover { border-color: var(--black); text-decoration: none; }
.btn.accent { background: var(--black); color: #fff; border-color: var(--black); }
.btn.accent:hover { background: #333; }
.btn:disabled { opacity: .4; cursor: default; }
button.link, a.link { font: 500 13px var(--sans); color: var(--accent); background: none; border: 0; cursor: pointer; padding: 2px 0; }
button.link:hover, a.link:hover { text-decoration: underline; }
button.link.danger { color: var(--danger); }
input.search, textarea, select {
  background: var(--card); color: var(--text); border: 1px solid var(--line2); font: 300 14px var(--sans);
}
input.search { flex: 1; min-width: 200px; padding: 9px 18px; border-radius: 25px; }
input.search:focus, textarea:focus, select:focus { outline: none; border-color: var(--black); }
textarea { width: 100%; padding: 14px 16px; border-radius: 15px; resize: vertical; font: 13px var(--mono); }
select { padding: 5px 12px; border-radius: 25px; font-size: 13px; }
input[type=range], input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

/* Bibliothek */
.library { display: grid; gap: 16px; }
.drop {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  border: 1px dashed var(--line2); padding: 22px 24px; cursor: pointer;
}
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.busy { opacity: .6; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.count { font-size: 13px; font-variant-numeric: tabular-nums; }
.paste { display: grid; gap: 10px; justify-items: start; }
.report { background: var(--card); border-radius: 15px; border-left: 8px solid var(--accent); padding: 14px 18px; font-size: 14px; }
.report p { margin: 0; }
.report ul { margin: 6px 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; padding: 6px 12px 12px; }
table.games { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.games th {
  text-align: left; font-size: 12.8px; font-weight: 500; color: var(--muted);
  padding: 12px 12px; border-bottom: 1px solid var(--line2); white-space: nowrap;
}
table.games td { padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.games td a { color: var(--text); font-weight: 500; }
table.games tr:hover td { background: var(--soft); }
td.num { text-align: right; }
.more { margin: 14px 12px 4px; }
.empty { color: var(--muted); padding: 30px 0; }

/* Analyse */
.analyse { display: grid; gap: 16px; }
.analyse-body { display: grid; grid-template-columns: 18px minmax(0, 1fr) minmax(290px, 390px); gap: 16px; align-items: start; }
.board-col { position: relative; max-width: min(calc(100vh - 300px), 100%); min-width: 280px; }
.cg-wrap-host { width: 100%; aspect-ratio: 1; }
.evalbar { align-self: stretch; max-height: min(calc(100vh - 300px), 100%); position: relative; background: #333; border-radius: 9px; overflow: hidden; }
.evalbar .white { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; transition: height .4s; }
.evalbar .tick { position: absolute; left: 0; right: 0; height: 1px; background: var(--accent); }
.evalbar.off .white { background: #bbb; }
.side { display: grid; gap: 12px; min-width: 0; }
.ceval { font-size: 13.5px; overflow: hidden; }
.ceval-head { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ceval-head .eval { font: 700 22px var(--sans); color: var(--text); min-width: 62px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.engine-name { color: var(--text2); font-weight: 500; }
.threat { color: var(--danger); }
.switch { position: relative; width: 34px; height: 20px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #ccc; border-radius: 10px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(14px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pvs { display: grid; }
.pv { padding: 6px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.pv:last-child { border-bottom: 0; }
.pv strong { display: inline-block; min-width: 54px; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.pv-move { cursor: pointer; margin-right: 5px; }
.pv-move:hover { color: var(--accent); }
.pv .no, .tview .no { color: var(--faint); margin-right: 3px; }
.tview { display: grid; grid-template-columns: 42px 1fr 1fr; max-height: 46vh; overflow: auto; font-size: 14px; }
.tview .index { color: var(--faint); background: var(--soft); padding: 5px 10px 5px 0; text-align: right; font-variant-numeric: tabular-nums; }
.tview .move { font: inherit; font-weight: 400; color: var(--text); background: none; border: 0; text-align: left; padding: 5px 10px; cursor: pointer; }
.tview .move:hover { background: var(--soft); }
.tview .move.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.tview .move.empty { cursor: default; color: var(--faint); }
.tview .variations { grid-column: 1 / -1; padding: 6px 14px 8px 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); font-size: 13px; }
.tview .var { padding: 2px 0; }
.tview .variations .move { display: inline; padding: 1px 3px; }
.tview .move.variation { color: #555; }
.tview .sub { color: var(--muted); }
.ctl { display: flex; gap: 6px; }
.ctl .btn { flex: 1; padding-inline: 0; font-size: 14px; }
.tools { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 13px; }
details.pgn summary { font: 500 13px var(--sans); color: var(--accent); cursor: pointer; }
details.pgn pre { white-space: pre-wrap; font: 12px var(--mono); color: var(--text2); background: var(--card); border-radius: 15px; padding: 14px 16px; max-height: 240px; overflow: auto; }
.promotion { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; z-index: 20; }
.promotion .choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 60%; height: auto; }
.promotion button { aspect-ratio: 1; background: var(--card); border: 1px solid var(--line2); border-radius: 50%; cursor: pointer; position: relative; }
.promotion button:hover { border-color: var(--accent); }
.help { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; z-index: 30; }
.help-box { padding: 24px 30px; }
.help-box h2 { margin: 0 0 12px; }
.help-box td { padding: 4px 16px 4px 0; font-size: 14px; }
.help-box td.k { color: var(--accent); font-weight: 700; }
@media (max-width: 900px) { .analyse-body { grid-template-columns: 14px minmax(0, 1fr); } .analyse-body .side { grid-column: 1 / -1; } }

/* Bretter der App: Grautöne passend zur Seite, Markierungen im Genelec-Grün.
   Das Wallpaper behält seine eigenen Brett-Themen. */
.board-col cg-board, .editor-board cg-board, .result-board cg-board {
  background-image: none; background: repeating-conic-gradient(#8e9397 0 25%, #dcdcdc 0 50%) 0 0 / 25% 25%;
}
.board-col cg-board square.last-move, .editor-board cg-board square.last-move, .result-board cg-board square.last-move { background-color: rgba(0, 134, 91, .38); }
.board-col cg-board square.selected { background-color: rgba(0, 134, 91, .55); }
.board-col cg-board square.move-dest { background: radial-gradient(rgba(0, 134, 91, .6) 22%, rgba(0, 0, 0, 0) 0); }
.board-col cg-board square.oc.move-dest { background: radial-gradient(transparent 0%, transparent 80%, rgba(0, 134, 91, .45) 80%); }
.board-col cg-board square.move-dest:hover { background: rgba(0, 134, 91, .3); }
.cg-wrap-host .cg-wrap { border-radius: 4px; }

/* Brett-Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 350px); gap: 20px; align-items: start; }
.editor-board { display: grid; gap: 8px; max-width: min(calc(100vh - 330px), 100%); min-width: 280px; }
.palette { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: auto; }
.palette button { aspect-ratio: 1; background: var(--card); border: 1px solid var(--card); border-radius: 10px; cursor: pointer; position: relative; padding: 0; }
.palette button.active { border-color: var(--accent); background: var(--accent-soft); }
.palette.cg-wrap piece, .promotion .cg-wrap piece { top: 8%; left: 8%; width: 84%; height: 84%; background-size: cover; }
.palette .tool { font: 500 12px var(--sans); color: var(--muted); }
.palette .tool.active { color: var(--accent); }
.editor .side { gap: 0; overflow: hidden; }
.editor .side > .row { padding: 14px 18px 4px; }
.editor .side > p, .editor .side > a.go { margin: 12px 18px 16px; }
input.fen { width: 100%; font: 12px var(--mono); border-radius: 15px; }
a.btn.go { text-align: center; }
@media (max-width: 860px) { .editor { grid-template-columns: 1fr; } }

/* Wallpaper */
.wallpaper { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .wallpaper { grid-template-columns: 1fr; } }
.desk { position: relative; aspect-ratio: 16/10; background: #000; border-radius: 15px; overflow: hidden; container-type: size; }
.desk.empty { display: grid; place-items: center; color: #999; }
.stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: max(calc(var(--bs) * 0.026), 0.8cqh); padding-inline: 6cqw; }
.stage.left { align-items: flex-start; }
.stage.right { align-items: flex-end; }
.wpboard { width: var(--bs); aspect-ratio: 1; filter: brightness(var(--dim)); }
.wpboard .cg-wrap-host { width: 100%; height: 100%; }
.theme-night cg-board { background-image: none; background: repeating-conic-gradient(#2f3439 0 25%, #4b525a 0 50%) 0 0 / 25% 25%; }
.theme-blue cg-board { background-image: none; background: repeating-conic-gradient(#8ca2ad 0 25%, #dee3e6 0 50%) 0 0 / 25% 25%; }
.theme-night cg-board square.last-move { background-color: rgba(240, 217, 181, .22); }
.nolast cg-board square.last-move { background: none !important; }
.caption { width: var(--bs); text-align: center; display: grid; gap: .6cqh; color: rgba(235, 232, 226, .8); filter: brightness(var(--dim)); }
.stage.left .caption { text-align: left; }
.stage.right .caption { text-align: right; }
.caption .pl { font-size: max(calc(var(--bs) * 0.032), 1cqh); font-weight: 400; letter-spacing: .02em; }
.caption .yr { font: max(calc(var(--bs) * 0.026), 0.8cqh) var(--mono); color: rgba(235, 232, 226, .5); letter-spacing: .2em; }
.caption .mv { font: max(calc(var(--bs) * 0.023), 0.72cqh) var(--mono); color: rgba(235, 232, 226, .35); }
.wp-status { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 14px; font-size: 14px; color: var(--muted); }
.wp-status b { font-weight: 500; color: var(--text); }
.playlist { background: var(--card); border-radius: 15px; margin: 12px 0 0; padding: 12px 18px 12px 44px; font-size: 14px; }
.playlist li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.playlist li:last-child { border-bottom: 0; }
.playlist li a { color: var(--text); font-weight: 500; }
.playlist li .link { margin-left: 12px; }
.setup { overflow: hidden; }
.setup .hd { padding: 18px 20px 12px; }
.fld { padding: 12px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.editor .side .fld:first-child { border-top: 0; }
.fld .row { justify-content: space-between; font-size: 14px; }
.fld output { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.fld input[type=range] { width: 100%; }
.chk { display: flex; gap: 7px; align-items: center; font-size: 14px; cursor: pointer; }
.fld p { margin: 0; }

/* Computeranalyse · Farben der Fehlerzeichen wie lichess (helles Thema) */
.inaccuracy { color: #1c85c4; }
.mistake { color: #c77c00; }
.blunder { color: #d0312d; }
.glyph { margin-left: 3px; font-weight: 700; }
.review { display: grid; gap: 10px; padding: 14px; }
.review-comment { margin: 0; font-size: 13.5px; border-left: 3px solid currentColor; padding: 3px 0 3px 10px; }
.review-comment strong { font-weight: 700; }
.progress { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.progress .bar { height: 100%; background: var(--accent); transition: width .3s; }
.review-graph svg { display: block; width: 100%; height: 110px; cursor: pointer; border-radius: 9px; }
.review-graph .bg { fill: #333; }
.review-graph .area { fill: #fff; }
.review-graph .mid { stroke: var(--muted); stroke-opacity: .6; stroke-width: 1; }
.review-graph .line { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.review-graph .cur { stroke: var(--accent); stroke-width: 2; }
.review-graph circle.inaccuracy { fill: #1c85c4; }
.review-graph circle.mistake { fill: #c77c00; }
.review-graph circle.blunder { fill: #d0312d; }
table.review-sum { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.review-sum th, table.review-sum td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: right; }
table.review-sum th:first-child { text-align: left; font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.review-sum thead th { font-weight: 500; color: var(--muted); white-space: nowrap; }

/* Foto */
.photo .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .photo .steps { grid-template-columns: 1fr; } }
.step { padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.step .sh { display: grid; gap: 10px; justify-items: start; }
.step h3 { font-size: 20.8px; }
.upl { flex-direction: column; align-items: flex-start; min-height: 150px; justify-content: center; }
.photo-box { position: relative; user-select: none; touch-action: none; border-radius: 9px; overflow: hidden; }
.photo-box img { display: block; width: 100%; height: auto; }
.photo-box .frame { position: absolute; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); cursor: move; }
.photo-box .handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: nwse-resize; }
.result { display: grid; gap: 10px; }
.result-board .cg-wrap-host { width: 100%; }
cg-board square.unsure { background: repeating-linear-gradient(45deg, rgba(230, 159, 0, .6) 0 4px, transparent 4px 8px); }

/* Setup */
.setup-page { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
code.path { font: 12px var(--mono); color: var(--muted); word-break: break-all; }

@media (max-width: 700px) {
  header.top .bar, .inner, main { padding-left: 16px; padding-right: 16px; }
  nav.bar { gap: 22px; overflow-x: auto; }
  .band h1 { font-size: 28px; }
}

/* Figurenwahl im Setup */
.set-choice { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; cursor: pointer; }
.set-choice.active { border-color: var(--accent); background: var(--accent-soft); }
.set-choice input { position: absolute; opacity: 0; }
.set-choice b { color: var(--text); }
.set-preview { display: grid; grid-template-columns: repeat(6, 1fr); width: 100%; height: auto; aspect-ratio: 6 / 1; background: repeating-linear-gradient(90deg, #dcdcdc 0 16.666%, #8e9397 16.666% 33.333%); border-radius: 9px; overflow: hidden; }
.set-preview piece { position: relative; display: block; width: 100%; height: 100%; background-size: cover; }
/* Zeilenaktionen bleiben grau, Grün nur bei Hover: ein Akzent, nicht in jeder Zeile */
table.games button.link { color: var(--muted); font-weight: 400; }
table.games button.link:hover { color: var(--danger); text-decoration: none; }
table.games button.link.danger { color: var(--danger); font-weight: 500; }

/* Sprachwahl im Kopf, wie "EN" auf genelec.com: schlicht, aktive Sprache weiß */
.langs { display: flex; gap: 2px; }
.lang { font: 500 13px/1 var(--sans); color: #888; background: none; border: 0; padding: 6px 7px; cursor: pointer; letter-spacing: .04em; }
.lang:hover { color: #fff; }
.lang.active { color: #fff; font-weight: 700; }

/* Spielen gegen Stockfish */
.play-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 16px; align-items: start; }
.play .board-col { max-width: min(calc(100vh - 300px), 100%); }
.play-moves { max-height: 34vh; border-radius: 0; }
.play-moves .move { cursor: default; }
.play-result { font-size: 20.8px; font-weight: 700; color: var(--text); }
.play .setup + .setup { margin-top: 0; }
.play .fld .row .btn { flex: none; }
@media (max-width: 900px) { .play-body { grid-template-columns: 1fr; } }

/* Vollbild (z): nur das Brett auf Schwarz, Namen klein darüber und darunter, wie das Wallpaper */
.focus-cap { display: none; }
.focus-exit { display: none; }
#app.focus { background: #000; }
#app.focus header.top, #app.focus .band, #app.focus .foot, #app.focus .side, #app.focus .evalbar,
#app.focus .game-head, #app.focus .help { display: none; }
#app.focus main { max-width: none; width: 100%; min-height: 100vh; padding: 0; display: grid; place-items: center; }
#app.focus .analyse, #app.focus .play { display: block; }
#app.focus .analyse-body, #app.focus .play-body { display: block; }
#app.focus .board-col { width: min(calc(100vh - 120px), 96vw); max-width: none; min-width: 0; margin: 0 auto; }
#app.focus .focus-cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  color: rgba(235, 232, 226, .75); font: 400 clamp(14px, 1.9vh, 24px) var(--sans); letter-spacing: .02em; padding: 12px 2px;
}
#app.focus .focus-cap .mv { color: rgba(235, 232, 226, .45); font-variant-numeric: tabular-nums; }
#app.focus .focus-cap .mv.result { color: #19e28f; }
#app.focus .focus-exit {
  display: block; position: fixed; top: 14px; right: 18px; z-index: 50; width: 40px; height: 40px;
  font: 300 26px/1 var(--sans); color: #fff; background: none; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%; cursor: pointer; opacity: .3; transition: opacity .2s;
}
#app.focus .focus-exit:hover, #app.focus .focus-exit:focus-visible { opacity: 1; }
