/* Schriften lokal ausgeliefert (keine Verbindung zu Google Fonts). Lizenz: SIL Open Font License 1.1, siehe /assets/LIZENZEN.txt */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/newsreader-latin-opsz-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/newsreader-latin-ext-opsz-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/newsreader-latin-opsz-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/cinzel-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/cinzel-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/cinzel-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/cinzel-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Schriften für das Aussehen „Hell“ (werden nur geladen, wenn sie gebraucht werden) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/outfit-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/outfit-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Layout: Vollbild-Globus als Bühne. Links (Desktop) bzw. unten (Handy) liegen Hinweiskarte und Zeitstrahl darüber. */
:root {
  color-scheme: dark;
  --ink: #0a1015;
  --panel: rgba(13, 21, 27, 0.88);
  --raise: #17252e;
  --line: rgba(232, 220, 190, 0.16);
  --line-strong: rgba(232, 220, 190, 0.34);
  --text: #eee8d8;
  --muted: #9ea9a4;
  --dim: #86928e;
  --brass: #e2b24e;
  --brass-ink: #1a1305;
  --cinnabar: #f0704f;
  --good: #86cfa3;
  --sea-hi: #1f6a7e;
  --sea-mid: #0d3444;
  --sea-lo: #05141c;
  --glow: rgba(86, 196, 208, 0.34);
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
html, body { height: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 16px/1.5 var(--font-body); overflow: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; cursor: pointer; }
#app { position: relative; height: 100%; overflow: hidden; }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* Bühne */
#stage { position: absolute; inset: 0; background:
  radial-gradient(1px 1px at 8% 18%, rgba(238, 232, 216, 0.55), transparent 60%),
  radial-gradient(1px 1px at 17% 71%, rgba(238, 232, 216, 0.4), transparent 60%),
  radial-gradient(1.2px 1.2px at 29% 36%, rgba(238, 232, 216, 0.5), transparent 60%),
  radial-gradient(1px 1px at 41% 88%, rgba(238, 232, 216, 0.35), transparent 60%),
  radial-gradient(1px 1px at 58% 12%, rgba(238, 232, 216, 0.45), transparent 60%),
  radial-gradient(1.2px 1.2px at 73% 79%, rgba(238, 232, 216, 0.5), transparent 60%),
  radial-gradient(1px 1px at 86% 27%, rgba(238, 232, 216, 0.4), transparent 60%),
  radial-gradient(1px 1px at 93% 64%, rgba(238, 232, 216, 0.45), transparent 60%),
  radial-gradient(1px 1px at 66% 52%, rgba(238, 232, 216, 0.25), transparent 60%),
  radial-gradient(1px 1px at 12% 47%, rgba(238, 232, 216, 0.3), transparent 60%),
  radial-gradient(ellipse at 50% 42%, #10222c 0%, #0a1419 55%, #070c10 100%); }
#globegl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#globe.dragging { cursor: grabbing; }
#globe.armed { cursor: crosshair; }
#pins { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* Kopfzeile */
#top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px;
  padding: 14px 16px 12px; pointer-events: none; }
/* Verlauf hinter der Kopfzeile: reicht etwas tiefer als die Zeile, damit Punkte und Fortschritt auch über heller Karte lesbar bleiben */
#top::before { content: ""; position: absolute; z-index: -1; inset: 0 0 -30px 0; pointer-events: none; background: linear-gradient(to bottom, rgba(7, 12, 16, 0.9), rgba(7, 12, 16, 0.6) 40%, rgba(7, 12, 16, 0.22) 72%, rgba(7, 12, 16, 0)); }
#top > * { pointer-events: auto; }
#top > #previewTag { pointer-events: none; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: 0.22em; }
.edtag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-strong); border-radius: 3px; padding: 2px 6px; color: var(--brass); white-space: nowrap; }
#previewTag { position: absolute; top: 1px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--dim); line-height: 1.1; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pips { display: flex; gap: 6px; margin-left: auto; }
.pip { width: 26px; height: 6px; background: rgba(232, 220, 190, 0.16); transition: background 0.3s; }
.pip.now { background: rgba(232, 220, 190, 0.55); }
.pip[data-tier="4"] { background: var(--good); }
.pip[data-tier="3"] { background: var(--brass); }
.pip[data-tier="2"] { background: #d98a4a; }
.pip[data-tier="1"] { background: var(--cinnabar); }
.score { font-family: var(--font-mono); font-size: 13px; display: flex; align-items: baseline; gap: 5px; min-width: 76px; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.score small { color: var(--muted); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.ghost { background: rgba(13, 21, 27, 0.6); border: 1px solid var(--line); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--text); font-family: var(--font-mono); font-size: 13px; }
.ghost:hover { border-color: var(--line-strong); }
#langBtn { width: auto; min-width: 34px; padding: 0 9px; border-radius: 17px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Steuerung am Globus */
#stageTools { position: absolute; z-index: 4; right: 16px; top: 64px; display: flex; flex-direction: column; gap: 8px; }
#stageTools button { width: 40px; height: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--text); font-family: var(--font-mono); font-size: 18px; line-height: 1; }
#stageTools button:hover { border-color: var(--line-strong); }
#stageTools button[aria-pressed="true"] { border-color: var(--brass); color: var(--brass); }
#stageTools svg { width: 18px; height: 18px; }

/* Karten */
.panel, .modal { box-sizing: border-box; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
#sheet { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px; padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
#sheet > .panel { pointer-events: auto; }

#cluePanel { padding: 14px 16px 12px; position: relative; }
#cluePanel::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line); border-radius: 6px; pointer-events: none; }
.clue-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: 2px 7px; border-radius: 3px; color: var(--text); }
#clueToggle { margin-left: auto; width: 30px; height: 30px; }
.timer { margin-left: auto; font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; color: var(--brass); border: 1px solid var(--line-strong); border-radius: 3px; padding: 1px 7px; }
.timer.low { color: var(--cinnabar); border-color: var(--cinnabar); }
.timer:not([hidden]) + #clueToggle { margin-left: 0; }
.ask { font-style: italic; font-size: 19px; line-height: 1.25; margin: 8px 0 10px; font-variation-settings: "opsz" 36; text-wrap: balance; }
#hints { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 26vh; overflow-y: auto; }
.hint { border-top: 1px solid var(--line); padding-top: 8px; }
.hint .idx { display: block; margin-bottom: 2px; }
.hint p { margin: 0; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.hint.open { animation: fadeUp 0.35s ease both; }
.hint.locked { opacity: 0.4; }
.hint.locked p { color: var(--dim); font-style: italic; }
.unlock { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: transparent; border: 1px dashed var(--line-strong); border-radius: 6px; padding: 8px 10px; color: var(--text); }
.unlock:hover { border-color: var(--brass); }
.unlock small { font-family: var(--font-mono); font-size: 11px; color: var(--brass); white-space: nowrap; }
.factor { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.factor b { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--brass); font-variant-numeric: tabular-nums; }
#cluePanel.collapsed #hints, #cluePanel.collapsed .factor { display: none; }
#cluePanel.collapsed .ask { margin-bottom: 0; font-size: 16px; }

#dock { padding: 12px 16px 14px; }
.dock-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.year-read { display: flex; flex-direction: column; min-width: 0; }
.year { font-family: var(--font-display); font-weight: 500; font-size: 34px; line-height: 1.1; letter-spacing: 0.02em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.year.unset { color: var(--dim); }
.nudges { display: flex; gap: 6px; }
.nudges button { min-width: 44px; height: 36px; background: var(--raise); border: 1px solid var(--line); border-radius: 6px; font-family: var(--font-mono); font-size: 12px; }
.nudges button:hover { border-color: var(--line-strong); }
.slider-wrap { position: relative; margin: 10px 0 0; padding-bottom: 20px; }
#yearRange { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
#yearRange::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, rgba(232,220,190,.25), rgba(232,220,190,.55)); border-radius: 2px; }
#yearRange::-moz-range-track { height: 3px; background: rgba(232,220,190,.4); border-radius: 2px; }
#yearRange::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9.5px; border-radius: 50%; background: var(--brass); border: 3px solid var(--ink); box-shadow: 0 0 0 1px var(--brass); }
#yearRange::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--brass); border: 3px solid var(--ink); box-shadow: 0 0 0 1px var(--brass); }
#ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; pointer-events: none; }
#ticks span { position: absolute; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10px; color: var(--dim); white-space: nowrap; }
.dock-bottom { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.status { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); font-style: italic; }
.primary { background: var(--brass); color: var(--brass-ink); border: 0; border-radius: 6px; padding: 12px 20px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; transition: transform 0.15s, background 0.15s; }
.primary:hover:not(:disabled) { background: #efc466; }
.primary:active:not(:disabled) { transform: scale(0.97); }
.primary:disabled { background: transparent; color: var(--dim); border: 1px dashed var(--line-strong); cursor: not-allowed; }
.secondary { background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.secondary:hover { border-color: var(--brass); }

/* Ergebniskarte */
#result { padding: 16px 16px 16px; position: relative; }
#result h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: 0.02em; margin: 10px 0 2px; text-wrap: balance; }
#result .where { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.rows { margin: 0 0 10px; display: grid; gap: 8px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px 9px; display: grid; gap: 1px; min-width: 0; align-content: start; }
.pts { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.pts b { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; }
.pts small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--dim); }
.tile .d { font-size: 14px; line-height: 1.3; color: var(--muted); text-wrap: balance; }
.tile.perf { border-color: var(--good); }
.tile.perf .pts b, .tile.perf .d { color: var(--good); }
.mods { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13.5px; color: var(--muted); }
.mods em { font-style: normal; font-size: 10px; }
.mods b { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.sum { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-strong); padding-top: 6px; }
.sum .pts b { font-size: 30px; color: var(--brass); }
.fact { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--text); text-wrap: pretty; }
#nextBtn { width: 100%; }

/* Overlays */
.overlay { position: absolute; z-index: 10; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(6, 10, 13, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); overflow-y: auto; }
.modal { width: min(560px, 100%); max-height: 100%; overflow-y: auto; background: rgba(12, 20, 26, 0.94); border: 1px solid var(--line-strong); border-radius: 12px; padding: 28px 24px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: fadeUp 0.5s ease both; }
.modal h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 8vw, 46px); letter-spacing: 0.2em; margin: 0 0 4px; line-height: 1.1; }
.modal .tag { font-style: italic; font-size: 20px; color: var(--brass); margin: 0 0 18px; }
.modal p { margin: 0 0 14px; text-wrap: pretty; }
.edseg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
.edbtn { text-align: left; background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.edbtn:hover { border-color: var(--brass); }
.edbtn b { font-family: var(--font-display); font-weight: 500; font-size: 16px; letter-spacing: 0.08em; }
.edbtn small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.edbtn[aria-pressed="true"] { border-color: var(--brass); background: rgba(226, 178, 78, 0.1); }
.edbtn[aria-pressed="true"] b { color: var(--brass); }
.langseg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.langseg .lbtn { flex: 1 1 100px; text-align: center; background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text); text-decoration: none; display: block; }
.prefhead { margin: 18px 0 8px; }
.prefrow { margin: 0 0 4px; }
.prefrow > .mono { display: block; margin: 0 0 6px; color: var(--dim); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.linkbtn { background: none; border: 0; padding: 0 0 0 6px; color: var(--brass); font: inherit; text-decoration: underline; cursor: pointer; }
.langseg .lbtn:hover { border-color: var(--brass); }
.langseg .lbtn[aria-pressed="true"], .langseg .lbtn[aria-current="true"] { border-color: var(--brass); background: rgba(226, 178, 78, 0.1); color: var(--brass); }
.previewnote { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--dim); margin: 14px 0 0 !important; text-wrap: balance; }
.steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: baseline; font-size: 15.5px; }
.steps li::before { content: counter(s); font-family: var(--font-mono); font-size: 12px; color: var(--brass); border: 1px solid var(--line-strong); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions > * { flex: 1 1 180px; }
.big { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 12vw, 64px); line-height: 1; letter-spacing: 0.02em; font-variant-numeric: lining-nums tabular-nums; }
.big small { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--muted); margin-left: 6px; }
.rank { font-style: italic; font-size: 22px; color: var(--brass); margin: 6px 0 16px; }
.recap { list-style: none; margin: 0 0 18px; padding: 0; }
.recap li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.recap li:last-child { border-bottom: 1px solid var(--line); }
.recap .t { min-width: 0; }
.recap .pts { font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.recap .bar { grid-column: 1 / -1; height: 3px; background: rgba(232,220,190,.12); }
.recap .bar i { display: block; height: 100%; background: var(--brass); }
.meta { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
#toast { position: absolute; z-index: 20; left: 50%; top: 68px; transform: translate(-50%, -8px); background: var(--brass); color: var(--brass-ink); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; padding: 8px 14px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
  .panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(13, 21, 27, 0.96); }
  .overlay { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(6, 10, 13, 0.68); }
  #stageTools { top: 56px; right: 12px; }
  #stageTools button { width: 36px; height: 36px; }
  #top { gap: 10px; }
  .pip { flex: 1 1 14px; max-width: 14px; min-width: 4px; }
  #pips { gap: 4px; flex: 1 1 0; min-width: 0; justify-content: flex-end; }
  .score { min-width: 0; flex: none; }
  .brand { flex: none; }
  .wordmark { font-size: 14px; letter-spacing: 0.14em; }
  .brand { gap: 7px; }
  .edtag { font-size: 9px; padding: 2px 5px; }
  #cluePanel { padding: 10px 14px 8px; }
  .ask { font-size: 16.5px; margin: 6px 0 8px; }
  #hints { max-height: 24vh; gap: 6px; }
  .hint { padding-top: 6px; }
  .hint p { font-size: 15.5px; line-height: 1.4; }
  .hint.locked { display: none; }
  .factor { margin-top: 8px; padding-top: 6px; }
  #dock { padding: 8px 14px 12px; }
  .year { font-size: 28px; }
  .status { display: none; }
  .primary { width: 100%; padding: 12px 16px; }
  .slider-wrap { margin-top: 4px; }
  .clue-head { flex-wrap: nowrap; gap: 8px; }
  .clue-head .chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #clueToggle { flex: none; }
}
@media (max-width: 420px) {
  #top { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .wordmark { font-size: 12.5px; letter-spacing: 0.1em; }
  .brand { gap: 6px; }
  .ghost { width: 30px; height: 30px; }
  #langBtn { width: auto; min-width: 30px; padding: 0 7px; font-size: 10px; }
  #pips { gap: 3px; }
  .pip { min-width: 7px; }
  .score { font-size: 12px; }
}
@media (max-width: 350px) { .wordmark { display: none; } }
@media (max-width: 899px) and (max-height: 720px) {
  #stageTools { gap: 6px; }
  #stageTools button { width: 32px; height: 32px; }
  #sheet { gap: 6px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  #cluePanel { padding: 8px 12px 6px; }
  .ask { font-size: 15.5px; margin: 4px 0 6px; }
  #hints { max-height: 20vh; }
  .hint p { font-size: 15px; }
  .factor { margin-top: 6px; padding-top: 4px; }
  #dock { padding: 6px 12px 8px; }
  .year { font-size: 24px; }
  .nudges button { height: 32px; }
  .primary { padding: 10px 14px; }
  #result { padding: 10px 12px 12px; }
  #result h2 { font-size: 18px; margin: 6px 0 2px; }
  #result .where { font-size: 13.5px; margin-bottom: 8px; }
  .fact { font-size: 14px; margin-bottom: 10px; }
  .modal { padding: 20px 18px 16px; }
  .modal .tag { margin-bottom: 12px; font-size: 18px; }
  .steps { gap: 8px; margin-bottom: 14px; }
  .steps li { font-size: 14.5px; }
}
@media (min-width: 900px) {
  #sheet { display: contents; }
  #cluePanel, #result { position: absolute; left: 24px; top: 68px; width: 390px; max-height: calc(100% - 92px); overflow-y: auto; }
  #cluePanel { overflow: visible; }
  #hints { max-height: calc(100vh - 340px); }
  #dock { position: absolute; left: 438px; right: 72px; bottom: 24px; margin: 0 auto; width: min(640px, calc(100% - 510px)); }
  #clueToggle { display: none; }
  #stageTools { right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal, .hint.open { animation: none; }
  #toast { transition: none; }
}

/* Ergänzungen für die veröffentlichte Seite */
[hidden]:not([hidden="until-found" i]) { display: none !important; }
.legal { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--dim); margin: 8px 0 0 !important; }
.legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover, .legal a:focus-visible { color: var(--text); }

/* Version 2: Menü, Uhr, Teilen */
.brandbtn { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; margin: 0; color: inherit; cursor: pointer; border-radius: 6px; }
.brandbtn:hover .wordmark { color: var(--brass); }
.brandbtn svg { flex: none; display: block; }
#timebar { position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: 3px; background: rgba(232, 220, 190, 0.1); pointer-events: none; }
#timebar i { display: block; height: 100%; width: 100%; background: var(--brass); transition: width 0.2s linear; }
#timebar.low i { background: var(--cinnabar); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.timeseg { margin: 0 0 16px; }
.timeseg .langseg { margin-bottom: 6px; }
.timeseg .lbtn { flex: 1 1 56px; padding: 8px 6px; }
@media (max-width: 899px) { .brandbtn { gap: 7px; } }
@media (max-width: 420px) { .brandbtn svg { width: 24px; height: 24px; } .brandbtn { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { #timebar i { transition: none; } }

/* ---------- Aussehen „Hell“ (wählbar in den Einstellungen; Standard bleibt „Klassisch“) ---------- */
html[data-theme="hell"] { color-scheme: light; --ink: #f3f0e8; --panel: rgba(255,255,255,.96); --raise: #f1eee6; --line: rgba(24,40,52,.12); --line-strong: rgba(24,40,52,.26);
  --text: #17242e; --muted: #5a6b76; --dim: #6f7e88; --brass: #e4572e; --brass-ink: #ffffff; --cinnabar: #7b2ff7; --good: #1f9d6b;
  --sea-hi: #8fdcf0; --sea-mid: #3fa7d6; --sea-lo: #2374b8; --glow: rgba(63,167,214,.30); --logo: #e4572e; --logo-ink: #ffffff;
  --font-display: "Outfit", system-ui, sans-serif; --font-body: "Inter", system-ui, sans-serif; --font-mono: "Inter", system-ui, sans-serif; }
html[data-theme="hell"] body { background: #f3f0e8; }
html[data-theme="hell"] #stage { background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #f3f0e8 55%, #e6e1d4 100%); }
html[data-theme="hell"] #top::before { background: linear-gradient(to bottom, rgba(243,240,232,.96), rgba(243,240,232,.68) 40%, rgba(243,240,232,.25) 72%, rgba(243,240,232,0)); }
html[data-theme="hell"] .wordmark { letter-spacing: .02em; font-weight: 700; font-size: 21px; }
html[data-theme="hell"] .mono { letter-spacing: .04em; font-weight: 600; }
html[data-theme="hell"] .panel { border-radius: 20px; border-color: transparent; box-shadow: 0 10px 34px rgba(23,36,46,.14); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme="hell"] #cluePanel::after { display: none; }
html[data-theme="hell"] .modal { background: #ffffff; border: 0; border-radius: 24px; box-shadow: 0 24px 70px rgba(23,36,46,.22); }
html[data-theme="hell"] .modal h1 { letter-spacing: .01em; font-weight: 800; }
html[data-theme="hell"] .modal .tag, html[data-theme="hell"] .rank, html[data-theme="hell"] .ask { font-style: normal; font-weight: 500; }
html[data-theme="hell"] .overlay { background: rgba(243,240,232,.72); }
html[data-theme="hell"] .primary { border-radius: 999px; font-weight: 700; letter-spacing: .03em; font-size: 14px; text-transform: none; padding: 14px 22px; }
html[data-theme="hell"] .primary:hover:not(:disabled) { background: #f06a44; }
html[data-theme="hell"] .secondary { border-radius: 999px; text-transform: none; font-weight: 600; letter-spacing: .02em; font-size: 14px; padding: 14px 22px; }
html[data-theme="hell"] .edbtn, html[data-theme="hell"] .langseg .lbtn { border-radius: 14px; }
html[data-theme="hell"] .edbtn b { letter-spacing: .01em; font-weight: 700; }
html[data-theme="hell"] .edbtn[aria-pressed="true"], html[data-theme="hell"] .langseg .lbtn[aria-pressed="true"] { background: rgba(228,87,46,.09); }
html[data-theme="hell"] .ghost { background: #fff; border-color: var(--line); box-shadow: 0 2px 8px rgba(23,36,46,.08); }
html[data-theme="hell"] #stageTools button { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(23,36,46,.1); }
html[data-theme="hell"] .pip { border-radius: 3px; background: rgba(23,36,46,.14); height: 7px; }
html[data-theme="hell"] .pip.now { background: rgba(23,36,46,.5); }
html[data-theme="hell"] .pip[data-tier="4"] { background: var(--good); }
html[data-theme="hell"] .pip[data-tier="3"] { background: #e2a52e; }
html[data-theme="hell"] .pip[data-tier="2"] { background: #e07b39; }
html[data-theme="hell"] .pip[data-tier="1"] { background: #c93a3a; }
html[data-theme="hell"] .chip, html[data-theme="hell"] .edtag, html[data-theme="hell"] .timer { border-radius: 999px; font-weight: 600; padding: 3px 10px; }
html[data-theme="hell"] .year, html[data-theme="hell"] .big, html[data-theme="hell"] #result h2 { letter-spacing: 0; font-weight: 700; }
html[data-theme="hell"] .unlock { border-radius: 12px; }
html[data-theme="hell"] .nudges button { border-radius: 10px; background: #f1eee6; font-weight: 600; }
html[data-theme="hell"] .steps li::before { font-weight: 700; }
html[data-theme="hell"] .hint.locked p, html[data-theme="hell"] .status { font-style: normal; }
html[data-theme="hell"] #yearRange::-webkit-slider-runnable-track { background: rgba(23,36,46,.2); height: 5px; border-radius: 3px; }
html[data-theme="hell"] #yearRange::-moz-range-track { background: rgba(23,36,46,.2); }
html[data-theme="hell"] #yearRange::-webkit-slider-thumb { border-color: #fff; margin-top: -9px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
html[data-theme="hell"] .recap .bar { background: rgba(23,36,46,.1); height: 5px; border-radius: 3px; }
html[data-theme="hell"] .recap .bar i { border-radius: 3px; }
html[data-theme="hell"] #timebar { background: rgba(23,36,46,.08); }
html[data-theme="hell"] #toast { border-radius: 999px; }
html[data-theme="hell"] .legal a { color: var(--muted); }
@media (max-width: 899px) { html[data-theme="hell"] .panel { background: #ffffff; } html[data-theme="hell"] .overlay { background: rgba(243,240,232,.82); } html[data-theme="hell"] .wordmark { font-size: 16px; letter-spacing: 0; } html[data-theme="hell"] .edtag { padding: 2px 7px; } }
@media (max-width: 420px) { html[data-theme="hell"] .wordmark { font-size: 14px; } }

/* Editionsmarke in der Kopfzeile ist ein Knopf (öffnet das Menü) */
button.edtag { background: transparent; cursor: pointer; line-height: inherit; }
button.edtag:hover { border-color: var(--brass); }
.actions + .prefhead { margin-top: 24px; }

/* Rangliste */
.lbbox { border: 1px solid var(--line-strong); border-radius: 10px; padding: 14px 14px 12px; margin: 0 0 16px; }
.lbline { margin: 0 !important; font-size: 16px; }
.lberr { margin: 0 0 10px !important; color: var(--cinnabar); font-size: 15px; }
.lbform { display: flex; gap: 8px; }
.lbform input { flex: 1 1 auto; min-width: 0; background: var(--raise); color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 12px; font: 400 16px var(--font-body); }
.lbform input:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.lbform .primary { width: auto; flex: none; }
.lbmeta { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px !important; }
.lblist { list-style: none; margin: 0 0 10px; padding: 0; max-height: 46vh; overflow-y: auto; border-top: 1px solid var(--line); }
.lblist li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: baseline; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.lblist .r { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lblist .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lblist .v { font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.lblist .v small { display: block; font-size: 10px; color: var(--dim); letter-spacing: 0.04em; }
.lblist li.me { background: rgba(226, 178, 78, 0.12); }
.lblist li.me .n { color: var(--brass); font-weight: 600; }
.lblist li:nth-child(-n+3) .r { color: var(--brass); font-weight: 600; }
.lbmine { margin: 0 0 12px !important; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--brass); }
.lbmine.dim { color: var(--dim); }
.lbown { margin: 6px 0 0; }
html[data-theme="hell"] .lbbox { border-radius: 16px; }
html[data-theme="hell"] .lbform input { border-radius: 12px; background: #fff; }
html[data-theme="hell"] .lblist li.me { background: rgba(228, 87, 46, 0.09); }
.previewnote a { color: var(--muted); text-underline-offset: 2px; }
.previewnote a:hover, .previewnote a:focus-visible { color: var(--text); }
.langseg .lbtn[data-lbscope] { flex: 1 1 70px; }

/* ---------- Fehler melden ---------- */
.repbtn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 44px; margin: 4px 0 -10px; padding: 0 8px; background: none; border: 0; color: var(--muted); font: 400 13.5px var(--font-body); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); cursor: pointer; }
.repbtn:hover:not(:disabled), .repbtn:focus-visible { color: var(--text); }
.repbtn:focus-visible, .repflag:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; border-radius: 6px; }
.repbtn:disabled { text-decoration: none; cursor: default; color: var(--good); }
.repbtn[hidden] { display: none; }
.recap li.hasflag { grid-template-columns: 1fr auto 44px; align-items: center; padding: 2px 0; }
.repflag { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -12px; background: none; border: 0; color: var(--dim); cursor: pointer; }
.repflag:hover:not(:disabled) { color: var(--brass); }
.repflag:disabled { color: var(--good); cursor: default; }
.recap li.hasflag .bar { margin-top: -6px; margin-bottom: 8px; }
.modal h1.reph { font-size: 25px; letter-spacing: 0.04em; margin-top: 6px; line-height: 1.2; }
.reptitle { margin: 0 0 14px !important; color: var(--brass); font-style: italic; font-size: 17px; }
.repform { display: block; }
.repset { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.repset legend { padding: 0; margin-bottom: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.repopt { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 2px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.3; cursor: pointer; }
.repopt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--brass); }
.rephints { display: flex; gap: 8px; }
.rephints .repopt { flex: 1 1 0; min-width: 0; justify-content: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 8px; font-family: var(--font-mono); font-size: 15px; }
.replabel { display: block; margin: 12px 0 6px; font-size: 15px; }
.repform textarea, .repform input[type="url"] { display: block; box-sizing: border-box; width: 100%; background: var(--raise); color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 12px; font: 400 16px/1.4 var(--font-body); }
.repform textarea { resize: vertical; min-height: 76px; }
.repform textarea:focus-visible, .repform input[type="url"]:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.repcount { margin: 4px 0 0 !important; text-align: right; font-size: 10px; color: var(--dim); }
.rephp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.repform .lberr { margin: 12px 0 0 !important; }
.repform .actions { margin-top: 14px; }
html[data-theme="hell"] .repform textarea, html[data-theme="hell"] .repform input[type="url"] { border-radius: 12px; background: #fff; }
html[data-theme="hell"] .rephints .repopt { border-radius: 12px; }
html[data-theme="hell"] .reptitle { font-style: normal; font-weight: 600; }
html[data-theme="hell"] .modal h1.reph { letter-spacing: 0; }
html[data-theme="hell"] .repset legend { text-transform: none; letter-spacing: .02em; font-size: 13px; }
/* ---------- Version 6: Auflösung, Abschluss-Statistik, Kategorien, Töne, Handy-Aufteilung ---------- */
/* Sterne: zweite, langsam atmende Ebene (nur „Klassisch“) */
#stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; animation: twinkle 7s ease-in-out infinite alternate; background:
  radial-gradient(1px 1px at 4% 62%, rgba(238, 232, 216, 0.5), transparent 60%),
  radial-gradient(1.3px 1.3px at 22% 9%, rgba(238, 232, 216, 0.55), transparent 60%),
  radial-gradient(1px 1px at 35% 58%, rgba(238, 232, 216, 0.35), transparent 60%),
  radial-gradient(1px 1px at 47% 24%, rgba(200, 232, 238, 0.5), transparent 60%),
  radial-gradient(1.3px 1.3px at 63% 91%, rgba(238, 232, 216, 0.5), transparent 60%),
  radial-gradient(1px 1px at 78% 44%, rgba(238, 232, 216, 0.4), transparent 60%),
  radial-gradient(1px 1px at 89% 8%, rgba(200, 232, 238, 0.5), transparent 60%),
  radial-gradient(1.2px 1.2px at 97% 86%, rgba(238, 232, 216, 0.45), transparent 60%),
  radial-gradient(1px 1px at 53% 70%, rgba(238, 232, 216, 0.3), transparent 60%),
  radial-gradient(1px 1px at 15% 90%, rgba(238, 232, 216, 0.4), transparent 60%); }
@keyframes twinkle { from { opacity: 0.2; } to { opacity: 1; } }
html[data-theme="hell"] #stage::before { display: none; }

/* Kategorien: Zeichen und Akzentfarbe */
#app { --cat: var(--brass); }
#app[data-cat="w"] { --cat: #7fd0d8; }
#app[data-cat="k"] { --cat: #e3a17c; }
#app[data-cat="m"] { --cat: #b9a8f0; }
html[data-theme="hell"] #app[data-cat="g"] { --cat: #a86a12; }
html[data-theme="hell"] #app[data-cat="w"] { --cat: #14788f; }
html[data-theme="hell"] #app[data-cat="k"] { --cat: #b5532a; }
html[data-theme="hell"] #app[data-cat="m"] { --cat: #6a48c9; }
.chip { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.chip svg { flex: none; }
.chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#clueCat, #resCat { color: var(--cat); border-color: var(--cat); }
#cluePanel::before, #result::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; background: linear-gradient(to right, transparent, var(--cat), transparent); opacity: 0.75; pointer-events: none; }

/* Jahr: Ziehen auf der Zahl, Jahrhundert daneben */
.year { cursor: ew-resize; touch-action: none; -webkit-user-select: none; user-select: none; }
.year.scrub { color: var(--brass); }
#yearEra { color: var(--dim); }

/* Auflösung in Stufen */
.rv { animation: rvIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes rvIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#result.now .rv, #result.now .strip * { animation: none; }
.strip { display: flex; align-items: center; gap: 8px; height: 46px; }
.strip .end { flex: none; font-family: var(--font-mono); font-size: 10px; color: var(--dim); white-space: nowrap; }
.strip .axis { position: relative; flex: 1; min-width: 0; height: 100%; }
.strip .axis::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-strong); }
.strip .seg { position: absolute; top: calc(50% - 1px); height: 3px; border-radius: 2px; background: var(--text); opacity: 0.55; animation: segGrow 0.5s ease both; animation-delay: calc(var(--d, 0ms) + 350ms); }
.strip .mk { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5px 0 0 -5.5px; box-sizing: border-box; border: 2px solid var(--ink); }
.strip .mk.g { border-radius: 50%; background: var(--brass); }
.strip .mk.t { background: var(--cinnabar); transform: rotate(45deg); animation: mkPop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) both; animation-delay: calc(var(--d, 0ms) + 800ms); }
.strip .lb { position: absolute; font-family: var(--font-mono); font-style: normal; font-size: 11px; line-height: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.strip .lb.g { top: 0; color: var(--brass); }
.strip .lb.t { bottom: 0; color: var(--cinnabar); animation: rvFade 0.3s ease both; animation-delay: calc(var(--d, 0ms) + 800ms); }
.strip.exact .mk.t { box-shadow: 0 0 0 4px rgba(134, 207, 163, 0.4); }
@keyframes segGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mkPop { from { opacity: 0; transform: rotate(45deg) scale(0); } to { opacity: 1; transform: rotate(45deg) scale(1); } }
@keyframes rvFade { from { opacity: 0; } to { opacity: 1; } }
.verdict { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 26px; }
.verdict b { font-style: italic; font-weight: 400; font-size: 20px; line-height: 1.2; font-variation-settings: "opsz" 36; color: var(--muted); }
.verdict[data-tier="4"] b { color: var(--good); }
.verdict[data-tier="3"] b { color: var(--brass); }
.verdict[data-tier="2"] b { color: #d98a4a; }
.verdict.both b { font-family: var(--font-display); font-style: normal; font-weight: 600; font-size: 24px; letter-spacing: 0.16em; color: var(--brass); text-shadow: 0 0 18px rgba(226, 178, 78, 0.5); }
.verdict.both span { font-style: italic; font-size: 16px; }
.badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--good); color: var(--good); border-radius: 3px; padding: 2px 7px; white-space: nowrap; }
#result { cursor: default; }

/* Volltreffer: Einblendung über dem Globus */
#cheer { position: absolute; z-index: 4; transform: translateX(-50%); display: grid; gap: 2px; justify-items: center; text-align: center; white-space: nowrap; pointer-events: none;
  padding: 10px 18px 11px; border-radius: 10px; background: rgba(8, 16, 21, 0.88); border: 1px solid var(--good); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(134, 207, 163, 0.25); animation: cheer 2.8s ease both; }
#cheer b { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: 0.12em; color: var(--good); }
#cheer span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text); }
#cheer.both { border-color: var(--brass); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 44px rgba(226, 178, 78, 0.35); padding: 12px 22px 13px; }
#cheer.both b { color: var(--brass); font-size: clamp(26px, 6vw, 40px); letter-spacing: 0.2em; margin-right: -0.2em; }
@keyframes cheer { 0% { opacity: 0; transform: translateX(-50%) scale(0.7); } 9% { opacity: 1; transform: translateX(-50%) scale(1.06); } 15% { transform: translateX(-50%) scale(1); } 86% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) translateY(-8px); } }
html[data-theme="hell"] #cheer { background: rgba(255, 255, 255, 0.96); border-radius: 16px; }
html[data-theme="hell"] .tile, html[data-theme="hell"] .stat { border-radius: 14px; }
html[data-theme="hell"] .pts b, html[data-theme="hell"] .stat b { letter-spacing: 0; font-weight: 700; }
html[data-theme="hell"] .verdict b { font-style: normal; font-weight: 600; }
html[data-theme="hell"] .verdict[data-tier="2"] b { color: #a9571a; }
html[data-theme="hell"] .verdict[data-tier="3"] b { color: #c2451f; }
html[data-theme="hell"] .verdict[data-tier="4"] b, html[data-theme="hell"] .badge, html[data-theme="hell"] .tile.perf .pts b, html[data-theme="hell"] .tile.perf .d, html[data-theme="hell"] .recap li.perf .t small, html[data-theme="hell"] #cheer b { color: #14734d; }
html[data-theme="hell"] #cheer.both b { color: #c2451f; }
html[data-theme="hell"] .verdict.both b { letter-spacing: 0.04em; font-weight: 800; text-shadow: none; }
html[data-theme="hell"] .badge, html[data-theme="hell"] .streakline b { border-radius: 999px; }
html[data-theme="hell"] #cheer.both b { letter-spacing: 0.04em; margin-right: 0; font-weight: 800; }

/* Abschluss: Kennzahlen, Volltreffer, Serie */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; align-items: baseline; min-width: 0; }
.stat b { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stat .bar { grid-column: 1 / -1; height: 3px; background: rgba(232, 220, 190, 0.12); }
.stat .bar i { display: block; height: 100%; background: var(--brass); }
.stat small { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--muted); }
.perfs { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px !important; }
.recap .t small { display: block; margin-top: 1px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--dim); }
.recap li.perf .t small { color: var(--good); }
.meta .hot { color: var(--brass); }
.streakline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px !important; }
.streakline b { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); border: 1px solid var(--brass); border-radius: 3px; padding: 2px 8px; }
.streakline span { font-size: 15px; font-style: italic; color: var(--muted); }
html[data-theme="hell"] .stat .bar { background: rgba(23, 36, 46, 0.1); height: 5px; border-radius: 3px; }
html[data-theme="hell"] .stat .bar i { border-radius: 3px; }

/* Handy: mehr Fläche für den Globus. Die feste Frage steht im Startdialog und bleibt für Vorlesehilfen erhalten;
   die Faktorzeile erscheint erst, wenn ein Hinweis genutzt wurde; die Ergebniskarte ist dichter gesetzt. */
@media (max-width: 899px) {
  .ask { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #cluePanel.collapsed .ask { margin: 0; }
  #cluePanel.nofactor .factor { display: none; }
  #cluePanel { padding: 8px 12px 10px; }
  #cluePanel::after { display: none; }
  #hints { margin-top: 8px; max-height: 22vh; }
  .hint .idx { font-size: 10px; margin-bottom: 0; }
  .unlock { padding: 6px 10px; }
  #clueNo, #resNo { white-space: nowrap; }
  #dock { padding: 6px 12px 10px; }
  .dock-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 10px; }
  .year-read { display: contents; }
  .year-read .mono { grid-column: 1 / -1; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .year { font-size: 26px; }
  .year.long { font-size: 19px; line-height: 1.5; }
  .nudges button { min-width: 42px; height: 34px; }
  .slider-wrap { margin-top: 2px; padding-bottom: 16px; }
  #yearRange { height: 26px; }
  .dock-bottom { margin-top: 2px; }
  #result { padding: 10px 12px 12px; max-height: calc(100vh - 250px); max-height: calc(100dvh - 250px); overflow-y: auto; display: flex; flex-direction: column; }
  #result > * { flex-shrink: 0; }
  #result h2 { font-size: 19px; margin: 6px 0 1px; }
  #result .where { font-size: 14px; line-height: 1.35; margin-bottom: 8px; }
  .rows { gap: 6px; margin-bottom: 6px; }
  .tile { padding: 6px 9px 7px; }
  .pts b { font-size: 22px; }
  .tile .d { font-size: 13px; }
  .strip { height: 40px; }
  .mods { font-size: 12.5px; }
  .sum { padding-top: 4px; }
  .sum .pts b { font-size: 26px; }
  .verdict { margin-bottom: 6px; min-height: 24px; }
  .verdict b { font-size: 18px; }
  .verdict.both b { font-size: 21px; }
  .fact { font-size: 14.5px; line-height: 1.45; margin-bottom: 10px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; cursor: pointer; }
  .fact.open { display: block; overflow: visible; }
  #cheer { padding: 6px 14px 7px; }
  #cheer b { font-size: 17px; }
  #cheer.both { padding: 7px 16px 8px; }
  #cheer.both b { font-size: 24px; }
  .stats { gap: 8px; }
  .stat { padding: 8px 10px; }
}
@media (max-width: 899px) and (max-height: 720px) {
  #result { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
  #result h2 { font-size: 17px; }
  #result .where { margin-bottom: 6px; }
  .tile { padding: 5px 8px 6px; }
  .pts b { font-size: 20px; }
  .strip { height: 36px; }
  .sum .pts b { font-size: 23px; }
  .fact { -webkit-line-clamp: 2; line-clamp: 2; margin-bottom: 8px; }
  #cluePanel { padding: 6px 12px 8px; }
  .year { font-size: 23px; }
  .year.long { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #stage::before, .rv, .strip *, #cheer { animation: none; }
}
@media (max-width: 340px) {
  .nudges { gap: 4px; }
  .nudges button { min-width: 34px; }
  .year.long { font-size: 16px; }
}
.recap li.hasflag .bar { margin-top: 0; }   /* unter der Zeile mit Entfernung und Jahren, nicht darüber */

/* ---------- Version 8: Bedienoberfläche im Stil der gemalten Karte ----------
   Nur Aussehen: Messingkanten, Glanzlicht oben, geprägte Knöpfe, schlanker Startdialog, kurze Übergänge (150 bis 300 ms).
   Gilt für „Klassisch“; „Hell“ bekommt nur den schlanken Startdialog und die Übergänge. */
:root { --brass-hi: #f3cf80; --brass-lo: #c8962f; --shine: rgba(255, 236, 190, 0.16); --ease: cubic-bezier(0.2, 0.7, 0.2, 1); }
.panel, .modal { position: relative; }
#dock { position: relative; }
@media (min-width: 900px) { #dock { position: absolute; } }

/* Karten: Verlauf, Glanzkante, Messinglinie oben, feiner Innenrahmen */
:root:not([data-theme="hell"]) .panel { background: linear-gradient(180deg, rgba(20, 31, 39, 0.9), rgba(11, 18, 23, 0.9)); border-color: rgba(232, 220, 190, 0.22); border-radius: 12px;
  box-shadow: inset 0 1px 0 var(--shine), 0 18px 50px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35); }
:root:not([data-theme="hell"]) #dock::before, :root:not([data-theme="hell"]) .modal::before { content: ""; position: absolute; z-index: 1; left: 14%; right: 14%; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(243, 207, 128, 0.7), transparent); }
:root:not([data-theme="hell"]) #result::after, :root:not([data-theme="hell"]) #dock::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(232, 220, 190, 0.1); border-radius: 8px; pointer-events: none; }
@media (max-width: 899px) { :root:not([data-theme="hell"]) .panel { background: linear-gradient(180deg, rgba(20, 31, 39, 0.97), rgba(11, 18, 23, 0.97)); } }

/* Dialog: Messingrahmen innen, ruhiger Auftritt */
:root:not([data-theme="hell"]) .modal { background: linear-gradient(180deg, rgba(20, 31, 39, 0.95), rgba(10, 16, 21, 0.96)); border-radius: 14px; border-color: rgba(232, 220, 190, 0.28);
  outline: 1px solid rgba(232, 220, 190, 0.1); outline-offset: -7px; box-shadow: inset 0 1px 0 var(--shine), 0 30px 80px rgba(0, 0, 0, 0.6); }
:root:not([data-theme="hell"]) .modal h1 { text-shadow: 0 2px 18px rgba(226, 178, 78, 0.2); }
.modal { animation: modalIn 0.28s var(--ease) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#cluePanel:not([hidden]), #dock:not([hidden]) { animation: panelIn 0.26s var(--ease) both; }
#result:not([hidden]) { animation: panelIn 0.22s var(--ease) both; }

/* Startdialog: schlank, der Globus bleibt dahinter sichtbar */
.overlay[data-kind="intro"] { background: radial-gradient(ellipse at 50% 46%, rgba(6, 10, 13, 0.2) 0%, rgba(6, 10, 13, 0.62) 100%); backdrop-filter: none; -webkit-backdrop-filter: none; }
.overlay[data-kind="intro"] .modal { width: min(480px, 100%); }
:root:not([data-theme="hell"]) .overlay[data-kind="intro"] .modal { background: linear-gradient(180deg, rgba(20, 31, 39, 0.82), rgba(10, 16, 21, 0.88)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html[data-theme="hell"] .overlay[data-kind="intro"] { background: radial-gradient(ellipse at 50% 46%, rgba(243, 240, 232, 0.1) 0%, rgba(243, 240, 232, 0.6) 100%); }
html[data-theme="hell"] .overlay[data-kind="intro"] .modal { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 899px) {
  .overlay[data-kind="intro"] .modal { background: rgba(12, 20, 26, 0.9); backdrop-filter: none; -webkit-backdrop-filter: none; }
  html[data-theme="hell"] .overlay[data-kind="intro"] .modal { background: rgba(255, 255, 255, 0.94); }
}
.more { margin: 0 0 14px; border-top: 1px solid var(--line); }
.more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; min-height: 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.15s; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s var(--ease); }
.more[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.more > summary:hover { color: var(--brass); }
.more > summary:focus-visible { outline-offset: 0; border-radius: 4px; }
.more[open] > :not(summary) { animation: panelIn 0.22s var(--ease) both; }
.more .steps { margin-top: 4px; }

/* Knöpfe: geprägt, mit kurzer Rückmeldung */
:root:not([data-theme="hell"]) .primary { background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo)); border: 1px solid rgba(26, 19, 5, 0.35); border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 246, 214, 0.55), 0 6px 16px rgba(226, 178, 78, 0.18); text-shadow: 0 1px 0 rgba(255, 240, 200, 0.35); }
:root:not([data-theme="hell"]) .primary:hover:not(:disabled) { background: linear-gradient(180deg, #f8dc95, #edbd5a 55%, #d4a038); box-shadow: inset 0 1px 0 rgba(255, 246, 214, 0.6), 0 8px 22px rgba(226, 178, 78, 0.3); }
:root:not([data-theme="hell"]) .primary:disabled { background: transparent; box-shadow: none; text-shadow: none; border: 1px dashed var(--line-strong); }
:root:not([data-theme="hell"]) .secondary { background: rgba(232, 220, 190, 0.04); border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.06); }
.primary, .secondary, .edbtn, .langseg .lbtn, .nudges button, .ghost, #stageTools button, .unlock { transition: transform 0.15s var(--ease), background-color 0.18s, border-color 0.18s, box-shadow 0.18s, color 0.18s; }
.secondary:hover, .edbtn:hover, .langseg .lbtn:hover { background-color: rgba(226, 178, 78, 0.07); }
html[data-theme="hell"] .secondary:hover, html[data-theme="hell"] .edbtn:hover, html[data-theme="hell"] .langseg .lbtn:hover { background-color: rgba(228, 87, 46, 0.06); }
.secondary:active, .edbtn:active, .langseg .lbtn:active, .nudges button:active, .ghost:active, #stageTools button:active, .unlock:active { transform: scale(0.97); }
:root:not([data-theme="hell"]) .ghost, :root:not([data-theme="hell"]) #stageTools button { box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.08), 0 4px 12px rgba(0, 0, 0, 0.3); }
:root:not([data-theme="hell"]) .ghost:hover, :root:not([data-theme="hell"]) #stageTools button:hover { border-color: var(--brass); color: var(--brass); }
:root:not([data-theme="hell"]) .edbtn[aria-pressed="true"], :root:not([data-theme="hell"]) .langseg .lbtn[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(226, 178, 78, 0.4), 0 0 18px rgba(226, 178, 78, 0.1); }
:root:not([data-theme="hell"]) .nudges button { background: linear-gradient(180deg, #1b2c36, #14222b); box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.07); }
:root:not([data-theme="hell"]) .unlock { background: rgba(232, 220, 190, 0.03); }

/* Zeitstrahl: Messingknopf mit Ring */
:root:not([data-theme="hell"]) #yearRange::-webkit-slider-thumb { background: radial-gradient(circle at 35% 30%, var(--brass-hi), var(--brass) 55%, var(--brass-lo)); box-shadow: 0 0 0 1px var(--brass), 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 14px rgba(226, 178, 78, 0.35); transition: transform 0.15s var(--ease); }
:root:not([data-theme="hell"]) #yearRange:active::-webkit-slider-thumb { transform: scale(1.12); }
:root:not([data-theme="hell"]) #yearRange::-moz-range-thumb { background: var(--brass); box-shadow: 0 0 0 1px var(--brass), 0 0 14px rgba(226, 178, 78, 0.35); }
:root:not([data-theme="hell"]) #yearRange::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.4); }

/* Abschluss und Listen: Balken mit Verlauf, Zeilen mit Hover */
:root:not([data-theme="hell"]) .recap .bar { height: 4px; border-radius: 2px; background: rgba(232, 220, 190, 0.1); }
:root:not([data-theme="hell"]) .recap .bar i { border-radius: 2px; background: linear-gradient(90deg, var(--brass-lo), var(--brass-hi)); }
:root:not([data-theme="hell"]) .rank { text-shadow: 0 0 24px rgba(226, 178, 78, 0.25); }
:root:not([data-theme="hell"]) .big { text-shadow: 0 2px 22px rgba(226, 178, 78, 0.18); }
:root:not([data-theme="hell"]) .pip { border-radius: 2px; }
:root:not([data-theme="hell"]) .chip, :root:not([data-theme="hell"]) .edtag { background: rgba(232, 220, 190, 0.04); }
.pip { transition: background 0.3s, transform 0.2s var(--ease); }
.pip.now { transform: scaleY(1.35); }

@media (prefers-reduced-motion: reduce) {
  .modal, #cluePanel, #dock, #result, .more[open] > :not(summary) { animation: none !important; }
  .primary, .secondary, .edbtn, .langseg .lbtn, .nudges button, .ghost, #stageTools button, .unlock, .more > summary::after, .pip { transition: none; }
  .primary:active, .secondary:active, .edbtn:active, .langseg .lbtn:active, .nudges button:active, .ghost:active, #stageTools button:active { transform: none; }
}
@media (max-width: 899px) { :root:not([data-theme="hell"]) #result::after, :root:not([data-theme="hell"]) #dock::after { display: none; } }
.overlay[data-kind="intro"] .langseg { flex-wrap: nowrap; gap: 6px; }
.overlay[data-kind="intro"] .langseg .lbtn { flex: 1 1 0; min-width: 0; padding: 8px 4px; font-size: 11px; }
@media (max-width: 899px) {
  /* Handy: Startdialog als Blatt am unteren Rand, der Globus bleibt oben sichtbar; der Einleitungssatz steht ohnehin in den Spielregeln */
  .overlay[data-kind="intro"] { align-items: end; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, rgba(6, 10, 13, 0) 20%, rgba(6, 10, 13, 0.7) 60%); }
  html[data-theme="hell"] .overlay[data-kind="intro"] { background: linear-gradient(to bottom, rgba(243, 240, 232, 0) 20%, rgba(243, 240, 232, 0.8) 60%); }
  .overlay[data-kind="intro"] .modal { padding: 18px 18px 14px; }
  .overlay[data-kind="intro"] .lead { display: none; }
  .overlay[data-kind="intro"] .modal h1 { font-size: 34px; }
  .overlay[data-kind="intro"] .modal .tag { margin-bottom: 10px; }
  .overlay[data-kind="intro"] .edseg { margin-bottom: 12px; }
}

/* Version 9: Themenwahl im freien Spiel (Startdialog). Einzeilige Auswahlliste direkt unter den Knöpfen, ohne zweite Knopfreihe. */
.themepick { margin: -8px 0 18px; }
.themepick > .mono { display: block; margin: 0 0 6px; color: var(--dim); font-size: 11px; letter-spacing: 0.06em; }
.themepick select { display: block; width: 100%; min-height: 44px; appearance: none; -webkit-appearance: none; background-color: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 34px 10px 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-overflow: ellipsis; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.themepick select:hover { border-color: var(--brass); }
.themepick select option { background: var(--raise); color: var(--text); }
.themepick .previewnote { margin: 6px 0 0 !important; }
.themepick .previewnote:empty { display: none; }
html[data-theme="hell"] .themepick select { border-radius: 14px; }

/* Version 10: Einwilligungsleiste für die Statistik (nur mit Mess-ID im Build), klein und ohne Sperre */
.consent { position: fixed; z-index: 30; top: calc(env(safe-area-inset-top, 0px) + 56px); left: 50%; transform: translateX(-50%); width: min(460px, calc(100vw - 24px)); box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 8px 7px 12px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); font-family: var(--font-mono); font-size: 11px; line-height: 1.4; color: var(--muted); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 200px; }
.consent a { color: var(--text); text-underline-offset: 2px; white-space: nowrap; }
.consent .cbtns { display: flex; gap: 6px; margin-left: auto; }
.consent .cbtns button { padding: 6px 12px; min-width: 94px; min-height: 34px; font-size: 11px; letter-spacing: 0.06em; border-radius: 6px; flex: 0 0 auto; }
html[data-theme="hell"] .consent { border-radius: 14px; box-shadow: 0 8px 24px rgba(24, 40, 52, 0.14); }
html[data-theme="hell"] .consent .cbtns button { border-radius: 999px; padding: 6px 14px; font-size: 12px; letter-spacing: 0; }
@media (max-width: 899px) { .consent { top: calc(env(safe-area-inset-top, 0px) + 54px); } }
@media (min-width: 900px) { .consent { left: 16px; transform: none; width: 360px; top: 60px; } .consent p { flex-basis: 100%; } }

/* Version 11: Stufenwahl (Leicht / Schwer) in einer Zeile neben der Themenliste im Startdialog */
.themepick { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
.themepick > .mono, .themepick > .previewnote { grid-column: 1 / -1; }
.themepick .levelseg { margin: 0; flex-wrap: nowrap; gap: 6px; }
.themepick .levelseg .lbtn { flex: 0 0 auto; padding: 0 12px; min-height: 44px; display: grid; place-items: center; }

/* Version 12: Rangliste (Monat, Vorschläge, Wiederherstellungscode) */
.lbscopeseg .lbtn { flex: 1 1 64px; min-height: 44px; padding: 9px 6px; }
.lbsug { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin: 4px 0 10px !important; font-size: 15px; }
.lbform.stack { flex-direction: column; }
.lbform.stack input { font: 500 18px var(--font-mono); letter-spacing: 0.06em; }
.lbform.stack .primary { width: 100%; }
.lbsug .linkbtn { padding: 8px 4px; min-height: 44px; }
.lbown .linkbtn, .lbform + .previewnote .linkbtn, .lbbox .linkbtn { min-height: 32px; }
@media (max-width: 359px) { .lbscopeseg { display: grid; grid-template-columns: 1fr 1fr; } }
#lbBack, .lbown .actions button, .lbbox .actions button, .lbform button, .lbform input { min-height: 44px; }
.lbcode { margin: 4px 0 !important; padding: 14px 10px; border: 1px solid var(--brass); border-radius: 8px; text-align: center; font: 600 22px/1.3 var(--font-mono); letter-spacing: 0.08em; color: var(--brass); user-select: all; overflow-wrap: anywhere; }
@media (max-width: 360px) { .lbcode { font-size: 18px; letter-spacing: 0.04em; } }
#codeSheet { display: none; }
@media print { body > *:not(#codeSheet) { display: none !important; } #codeSheet { display: block; color: #000; background: #fff; font: 16px/1.5 Georgia, serif; padding: 24px; } #codeSheet h1 { font-size: 22px; } #codeSheet .code { display: inline-block; border: 2px solid #000; padding: 14px 18px; font: 700 26px/1.3 monospace; letter-spacing: 0.08em; } }

/* Freundesrunden (Version 15) */
.frlist { list-style: none; margin: 0 0 14px; padding: 0; }
.frlist li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 16px; }
.frlist li:last-child { border-bottom: 1px solid var(--line); }
.frlist:not(.res) li { grid-template-columns: 1fr auto; }
.frlist .nm { min-width: 0; overflow-wrap: anywhere; }
.frlist .nm small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.frlist .nm small:not(:only-child), .frlist .nm > small { margin-top: 2px; }
.frlist .pr, .frlist .rk { font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.frlist.res .pr { color: var(--text); }
.frlist .rk { min-width: 1.4em; color: var(--dim); }
.frlist li.me { background: rgba(226, 178, 78, 0.08); }
.frlist li.me .nm { color: var(--brass); }
.frlist li.best .pr { color: var(--good); }
.frlist.cmp li { grid-template-columns: 1fr auto; }
.frq { border-top: 1px solid var(--line); }
.frq summary { cursor: pointer; padding: 10px 0; font-size: 16px; min-height: 44px; display: flex; align-items: center; }
.frq .frlist { margin-bottom: 6px; }
.frqs { margin: 0 0 6px; }
.frlink { width: 100%; box-sizing: border-box; background: var(--raise); color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 12px; font: 400 14px var(--font-mono); }
.frform { margin: 0; }
.frform .lbform { margin-top: 6px; }
.btnlink { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; min-height: 44px; box-sizing: border-box; }
html[data-theme="hell"] .frlink { border-radius: 12px; background: #fff; }
html[data-theme="hell"] .frlist li.me { background: rgba(228, 87, 46, .08); }
html[data-theme="hell"] .frlist li.me .nm { color: var(--brass); }
/* Startdialog: Rangliste und Freundesrunde teilen sich eine Zeile, der Dialog wird nicht höher */
#lbOpenBtn, #friendBtn, #friendResumeBtn { flex: 1 1 140px; }

/* Version 20: Auswahl „Edition“ (Welt, Länder, Pakete) unter der Themenwahl, im Menü, im Abschluss und in der Freundesrunde */
.themepick .scopelab { grid-column: 1 / -1; display: block; margin: 10px 0 6px; color: var(--dim); font-size: 11px; letter-spacing: 0.06em; }
.themepick .scopesel { grid-column: 1 / -1; }
.themepick select:disabled { opacity: 0.45; cursor: not-allowed; }
.themepick select:disabled:hover { border-color: var(--line-strong); }
.themepick.scopepick { margin: 0 0 18px; }
.themepick.scopepick .scopelab, .themepick.frscope .scopelab { margin-top: 0; }
.themepick.frscope { margin: 0 0 10px; }
.langseg .lbtn:disabled { opacity: 0.45; cursor: not-allowed; }
/* Startdialog mit Edition: Zeile 1 Beschriftung und Stufe, Zeile 2 Thema und Edition nebeneinander (der Dialog wächst nur um gut eine halbe Zeile) */
.themepick.mitedition { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 8px; align-items: center; }
.themepick.mitedition > label.mono:not(.scopelab) { grid-column: 1; margin: 0; }
.themepick.mitedition .levelseg { grid-column: 2; justify-self: end; }
.themepick.mitedition #themeSel { grid-column: 1; }
.themepick.mitedition .scopesel { grid-column: 2; }
.srlab { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Land oder Paket gewählt: die Themenwahl ist ausgeblendet (Themen gibt es nur für die ganze Welt), die Edition nimmt die ganze Breite */
.themepick #themeSel[hidden] { display: none; }
/* Mods mit Heimatland (Version 24): Spielform und Zeitabschnitt, zwei Listen unter der Kartenwahl */
.themepick .pfrow { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 8px 0 0; }
.themepick .pfrow select { text-overflow: ellipsis; }
@media (max-width: 599px) { .themepick .previewnote.pfnote { display: none; } }   /* am Handy bleibt der Dialog so niedrig wie möglich: die Beschreibung des Mods entfällt */
@media (min-width: 560px) { .themepick .pfrow:not(.eins) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.themepick.mitedition.scoped .scopesel { grid-column: 1 / -1; }
/* Lange Namen von Paketen und Ländern in der Kopfzeile kürzen (Auslassungspunkte), statt die Zeile über den Rand zu schieben; der volle Name steht im title */
.brand { min-width: 0; }
.edtag { min-width: 0; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) { .brand { flex: 0 1 auto; } .edtag { max-width: 36vw; } }
@media (max-width: 899px) { #pips { flex: 1 0 auto; } }   /* die Fortschrittspunkte behalten ihre Breite, gekürzt wird der Name */
@media (max-width: 599px) { #top.scoped .wordmark { display: none; } }
/* Sprachwahl: fünf Sprachen passen bei 360–390 px nicht in eine Zeile („Nederlands“). Im Startfenster auf dem Handy nur das Kürzel (eine Zeile, der Dialog bleibt so hoch wie mit vier Sprachen), sonst der Name; in der Karte Zeilenumbruch. */
.langseg .lbtn[data-lang] { flex: 1 1 auto; white-space: nowrap; font-size: 11px; letter-spacing: 0.04em; padding: 9px 8px; }
.langseg .lbtn .lc { display: none; }
@media (max-width: 560px) {
  .overlay[data-kind="intro"] .langseg .lbtn .ln { display: none; }
  .overlay[data-kind="intro"] .langseg .lbtn .lc { display: inline; }
  .overlay[data-kind="intro"] .langseg .lbtn[data-lang] { letter-spacing: 0.08em; }
}
