/* Art Guesser – Galerie-Design (Vorlage: artguesser-site/style.css), ergänzt um Spiel-Bausteine */
:root {
  --bleiweiss: #ECE6DA;   /* Grund */
  --saalschild: #F6F2EA;  /* Karten / Schilder */
  --beinschwarz: #1C1A17; /* Text */
  --umbra: #5B4636;       /* Nebentext */
  --text-2: #3A322A;
  --linie: #CFC5B3;
  --galeriegruen: #24332C;/* Spielwand */
  --gruen-linie: #4E5F55;
  --gruen-text: #CFC8B8;
  --gruen-text-2: #A9B3A8;
  --zinnober: #A33A26;    /* Aktion */
  --ocker: #C29545;       /* Rahmen, Punkte – nur auf Grün */
  --rahmen: #8E6A2E;
  --papier: #E4D8BF;      /* Karte */

  --serif: 'IM Fell English', Georgia, serif;
  --sans: Archivo, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--beinschwarz); background: var(--bleiweiss); }
img { max-width: 100%; display: block; }
a { color: var(--zinnober); }
a:hover { color: #7E2B1B; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
@media (max-width: 640px) { .wrap { padding-left: 20px; padding-right: 20px; } }

.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--umbra); }
.serif { font-family: var(--serif); font-weight: 400; }

/* ---------- Kopfzeile ---------- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--beinschwarz); }
.logo { font-family: var(--serif); font-size: 30px; color: inherit; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 32px; font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.nav a { color: var(--beinschwarz); text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav a.accent { color: var(--zinnober); }

/* ---------- Startseite ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 72px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.01em; text-wrap: balance; }
.hero h1 em { color: var(--zinnober); }

.modes { margin: 8px 0 0; padding: 0; border: 0; border-top: 1px solid var(--beinschwarz); display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.modes legend { padding: 18px 0 0; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; padding-top: 14px; }
.mode { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer; border: 1px solid var(--linie); background: transparent; transition: background .15s, border-color .15s; }
.mode:has(input:checked) { background: var(--saalschild); border-color: var(--beinschwarz); }
.mode input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--zinnober); flex: none; cursor: pointer; }
.mode strong { display: block; font-size: 16px; font-weight: 600; }
.mode span span { display: block; font-size: 13px; line-height: 1.4; color: var(--umbra); }
.start-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 6px; }
.start-group { flex: 1 1 240px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.count { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--umbra); }
.no-modes { flex: 1 1 240px; margin: 0; min-height: 56px; display: flex; align-items: center; padding: 0 24px; border: 1px dashed var(--umbra); font-size: 15px; color: var(--umbra); }
.link-plain { font-size: 15px; font-weight: 500; color: var(--beinschwarz); text-underline-offset: 5px; }
[hidden] { display: none !important; }

/* Gemälde im Goldrahmen */
.frame { padding: 18px; background: var(--rahmen); border: 1px solid var(--umbra); box-shadow: inset 0 0 0 6px var(--ocker), inset 0 0 0 7px var(--umbra), 0 24px 40px -24px rgba(28,26,23,.55); }
.frame--dark { border-color: var(--beinschwarz); box-shadow: inset 0 0 0 7px var(--ocker), inset 0 0 0 8px var(--umbra), 0 30px 60px -20px rgba(0,0,0,.6); padding: 20px; }
.frame--small { padding: 12px; box-shadow: inset 0 0 0 4px var(--ocker), inset 0 0 0 5px var(--umbra); width: 200px; }
.painting { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: #231C16; }
/* Platzhalter, bis echte Bilder drin sind */
.painting--placeholder { background: radial-gradient(ellipse 34% 28% at 52% 38%, #DDBF8F 0%, #A97F4E 42%, transparent 74%), radial-gradient(ellipse 55% 34% at 40% 90%, #4F3826 0%, transparent 70%), #261E17; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; }
.painting--placeholder::after { content: '[Gemälde]'; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #CDBFA6; }

.hero-figure { margin: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px; }
.hero-figure .frame { flex: 1 1 300px; }

/* Saalschild */
.label { background: var(--saalschild); color: var(--beinschwarz); border: 1px solid var(--linie); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; }
.label .inv { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--umbra); }
.label .name { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.label .meta { color: var(--text-2); }
.label .row { display: flex; justify-content: space-between; border-top: 1px solid var(--linie); padding-top: 8px; margin-top: 4px; }
.label .row strong { color: var(--zinnober); }
.hero-figure .label { flex: 0 1 200px; }

/* Ablauf */
.steps { background: var(--galeriegruen); color: var(--bleiweiss); }
.steps .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 56px; }
.steps-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--gruen-linie); padding-bottom: 24px; }
.steps-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1; }
.steps-head p { margin: 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ocker); }
.steps ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; }
.steps li { display: flex; flex-direction: column; gap: 14px; }
.steps .num { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--ocker); }
.steps h3 { margin: 0; font-size: 20px; font-weight: 600; }
.steps li p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--gruen-text); max-width: 32ch; }

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px; align-items: start; padding-top: 96px; padding-bottom: 96px; }
.about h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.05; }
.about p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 52ch; }

.site-footer { border-top: 1px solid var(--beinschwarz); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--umbra); }
.site-footer .logo { font-size: 18px; color: var(--beinschwarz); }

/* ---------- Weiter-Link mit Pfeil ---------- */
.go { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--zinnober); --go-line: var(--zinnober); --go-arrow: var(--zinnober); }
.go:hover { color: var(--zinnober); }
.go-text { padding-bottom: 6px; background-image: linear-gradient(var(--go-line), var(--go-line)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px; transition: background-size .45s cubic-bezier(.65,0,.35,1); }
.go-arrow { color: var(--go-arrow); opacity: 0; transform: translateX(-14px); transition: opacity .2s ease .12s, transform .55s cubic-bezier(.34,1.56,.64,1) .12s; }
.go:hover .go-text, .go:focus-visible .go-text { background-size: 100% 1.5px; }
.go:hover .go-arrow, .go:focus-visible .go-arrow { opacity: 1; transform: translateX(0); }
.go:focus-visible { outline: 2px solid var(--go-line); outline-offset: 8px; }
.go--light, .go--light:hover { color: var(--bleiweiss); --go-line: var(--ocker); --go-arrow: var(--ocker); }
button.go { background: none; border: 0; padding: 0; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .go-text, .go-arrow { transition: none; } }

/* ---------- Spielseiten (Galeriewand) ---------- */
body.wall { background: var(--galeriegruen); color: var(--bleiweiss); }
.wall-bg { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse 55% 45% at 50% 30%, #2F4239 0%, var(--galeriegruen) 70%); }
.wall a { color: var(--ocker); }
.wall a:hover { color: #E0B866; }
.game-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--gruen-linie); }
.game-header .logo { font-size: 26px; color: var(--bleiweiss); }
.score { display: flex; gap: 40px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gruen-text); }
.score strong { font-weight: 600; color: var(--bleiweiss); }
.score .pts { color: var(--ocker); font-variant-numeric: tabular-nums; }
.stepper { margin: 0; padding: 0; list-style: none; display: flex; gap: 28px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gruen-text-2); }
.stepper li { display: flex; gap: 8px; align-items: center; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.stepper .n { font-family: var(--serif); font-size: 18px; letter-spacing: 0; text-transform: none; }
.stepper [aria-current] { color: var(--bleiweiss); border-color: var(--ocker); }
.stepper [aria-current] .n { color: var(--ocker); }

.game-main { flex: 1; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 64px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.game-figure { margin: 0; justify-self: center; width: min(100%, 460px); display: flex; flex-direction: column; gap: 20px; }
.panel { display: flex; flex-direction: column; gap: 36px; }
.panel-head { display: flex; flex-direction: column; gap: 10px; }
.panel-head .eyebrow { color: var(--ocker); font-weight: 400; }
.panel-head h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.05; }
.panel-head h1.big { font-size: 64px; line-height: 1; }
.year-out { font-family: var(--serif); font-size: 120px; line-height: .9; font-variant-numeric: lining-nums tabular-nums; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hint { font-size: 14px; color: var(--gruen-text-2); }

/* Zeitachse mit Pin */
.timeline { position: relative; height: 76px; }
.timeline .axis { position: absolute; left: 0; right: 0; top: 56px; height: 2px; background: var(--bleiweiss); }
.timeline .tick { position: absolute; top: 51px; width: 1px; height: 12px; background: var(--gruen-text-2); }
.timeline .tick--minor { top: 54px; height: 6px; background: #6E7E74; }
.timeline input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.timeline .pin { position: absolute; top: 13px; transform: translateX(-50%); pointer-events: none; }
.timeline input:focus-visible ~ .pin svg { outline: 2px solid var(--ocker); outline-offset: 4px; }
.years { position: relative; height: 16px; font-size: 12px; letter-spacing: .06em; color: var(--gruen-text-2); font-variant-numeric: tabular-nums; }
.years span { position: absolute; transform: translateX(-50%); }

/* Karte */
.map-main { flex: 1; width: 100%; display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; padding-top: 40px; padding-bottom: 48px; }
.map-side { flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column; gap: 28px; }
.tip { border-top: 1px solid var(--gruen-linie); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.tip .k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gruen-text-2); }
.tip .v { font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.map-side .actions { margin-top: auto; }
.map-frame { flex: 999 1 560px; min-width: 0; min-height: 560px; position: relative; padding: 10px; background: var(--papier); border: 1px solid var(--beinschwarz); box-shadow: inset 0 0 0 4px var(--papier), inset 0 0 0 5px var(--umbra); }
.map { position: relative; width: 100%; height: 100%; min-height: 540px; cursor: crosshair; overflow: hidden; background-color: #D9CCAF; background-image: linear-gradient(#B9A783 1px, transparent 1px), linear-gradient(90deg, #B9A783 1px, transparent 1px); background-size: 12.5% 16.66%; }
.map:focus-visible { outline: 2px solid var(--ocker); outline-offset: 4px; }
.map .placeholder-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--umbra); background: var(--papier); padding: 8px 14px; border: 1px solid #B9A783; }
.map .coord { position: absolute; font-size: 11px; color: var(--umbra); font-variant-numeric: tabular-nums; }
.map .compass { position: absolute; left: 24px; bottom: 36px; }
.map .scale { position: absolute; right: 64px; bottom: 30px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--umbra); }
.map .scale .bar { display: flex; width: 120px; height: 6px; border: 1px solid var(--umbra); }
.map .scale .bar span:first-child { flex: 1; background: var(--umbra); }
.map .scale .bar span:last-child { flex: 1; }
.map .scale .nums { display: flex; justify-content: space-between; width: 122px; }
.map-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.map-pin .tag { background: var(--beinschwarz); color: var(--bleiweiss); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; margin-bottom: 6px; white-space: nowrap; }
.zoom { position: absolute; right: 24px; top: 24px; display: flex; flex-direction: column; border: 1px solid var(--umbra); background: var(--saalschild); z-index: 2; }
.zoom button { width: 44px; height: 44px; border: 0; background: var(--saalschild); color: var(--beinschwarz); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.zoom button + button { border-top: 1px solid var(--umbra); }
.zoom button:hover { background: var(--bleiweiss); }

/* Auflösung */
.result-line { position: relative; height: 112px; }
.result-line .axis { position: absolute; left: 0; right: 0; top: 56px; height: 2px; background: #6E7E74; }
.result-line .gap { position: absolute; top: 52px; height: 10px; background: var(--ocker); }
.result-line .guess { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.result-line .guess span:first-child { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gruen-text); white-space: nowrap; }
.result-line .guess span:last-child { width: 2px; height: 34px; background: var(--bleiweiss); }
.result-line .actual { position: absolute; top: 47px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.result-line .actual .stem { width: 2px; height: 14px; background: var(--zinnober); }
.result-line .actual .txt { margin-top: 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.result-line .ends { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: 12px; color: var(--gruen-text-2); font-variant-numeric: tabular-nums; }
.points { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; border-top: 1px solid var(--gruen-linie); padding-top: 24px; }
.points .v { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--ocker); font-variant-numeric: tabular-nums; }
.points .k { font-size: 15px; color: var(--gruen-text); }
.game-figure .label { padding: 16px 20px; font-size: 14px; gap: 4px; }
.game-figure .label .name { font-size: 22px; }

/* =====================================================================
   Ergänzungen für das echte Spiel (eine Seite mit mehreren «Screens»)
   ===================================================================== */
.screen { display: none; }
.screen.active { display: block; animation: fade-in .35s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.muted { color: var(--umbra); }
body[data-screen="game"], body[data-screen="result"], body[data-screen="summary"] { background: var(--galeriegruen); }

/* Startseite */
.go:disabled { opacity: .45; cursor: progress; }
.local-best { margin: 0; font-size: 14px; color: var(--umbra); min-height: 1.2em; }
.hero-figure .painting { object-fit: cover; }
#hero-img { animation: fade-in .6s ease; }
.about--line { border-top: 1px solid var(--linie); }
.lb-mode { margin: 12px 0 0 !important; font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--umbra) !important; }

/* Bestenliste (hell und auf Grün) */
.leaderboard { margin: 0; padding: 0; list-style: none; counter-reset: lb; border-top: 1px solid var(--beinschwarz); }
.leaderboard li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linie); font-size: 17px; }
.leaderboard li:not(.muted)::before { counter-increment: lb; content: counter(lb, upper-roman); font-family: var(--serif); font-size: 20px; color: var(--zinnober); min-width: 40px; }
.leaderboard .lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard .lb-score { font-family: var(--serif); font-size: 22px; font-variant-numeric: tabular-nums; }
.leaderboard li.me { background: var(--saalschild); }
.leaderboard li.muted { font-size: 15px; }
.leaderboard--dark { border-top-color: var(--gruen-linie); }
.leaderboard--dark li { border-bottom-color: var(--gruen-linie); font-size: 16px; }
.leaderboard--dark li:not(.muted)::before { color: var(--ocker); }
.leaderboard--dark li.me { background: rgba(194,149,69,.14); }
.leaderboard--dark li.muted { color: var(--gruen-text-2); }

/* Bild im Rahmen (echte Werke: ganzes Bild, nicht beschnitten) */
.zoomable { display: block; position: relative; width: fit-content; max-width: 100%; margin: 0 auto; cursor: zoom-in; font: inherit; color: inherit; }
.zoomable:focus-visible { outline: 2px solid var(--ocker); outline-offset: 6px; }
.painting--real { aspect-ratio: auto; width: auto; max-width: 100%; height: auto; max-height: min(58vh, 620px); min-width: 120px; min-height: 120px; object-fit: contain; background: #231C16; transition: opacity .3s; }
.painting--real.is-loading { opacity: 0; }
.frame--small .painting--real { max-height: 200px; min-width: 80px; min-height: 80px; }
.frame--small { width: fit-content; max-width: 100%; margin: 0; }
.loading { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid rgba(236,230,218,.25); border-top-color: var(--ocker); animation: spin .8s linear infinite; display: none; }
.zoomable.is-loading .loading { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hinweise zum Werk */
.clues { gap: 8px; }
.clues .name { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.clues .meta b { font-weight: 600; }
.clues--dark { background: transparent; border-color: var(--gruen-linie); color: var(--bleiweiss); padding: 14px 16px; }
.clues--dark .inv { color: var(--gruen-text-2); }
.clues--dark .meta { color: var(--gruen-text); }
.clues--dark .name { font-size: 18px; }
.panel-head .sub { margin: 4px 0 0; font-size: 15px; color: var(--gruen-text); }
.year-out { white-space: nowrap; font-size: clamp(64px, 11vw, 120px); }
.year-out.is-price { font-size: clamp(48px, 7vw, 84px); }

/* Karte im Sepia-Stil (OpenStreetMap, per Filter eingefärbt) */
.map-frame .map { cursor: crosshair; background: var(--papier); }
.map-frame .compass { position: absolute; left: 30px; bottom: 34px; z-index: 450; pointer-events: none; opacity: .85; }
.leaflet-container { font-family: var(--sans); background: #D9CCAF; }
.tiles-sepia .leaflet-tile { filter: grayscale(1) sepia(.55) contrast(.92) brightness(1.04); }
.leaflet-control-attribution { font-size: 10px; background: rgba(246,242,234,.85) !important; color: var(--umbra); }
.leaflet-control-attribution a { color: var(--umbra) !important; }
.leaflet-control-scale-line { background: rgba(246,242,234,.75); border-color: var(--umbra); color: var(--umbra); }
.map-pin-icon { position: relative; }
.map-pin-icon .tag { position: absolute; left: 50%; bottom: 50px; transform: translateX(-50%); background: var(--beinschwarz); color: var(--bleiweiss); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; white-space: nowrap; }
.map-pin-icon .tag--answer { background: var(--zinnober); }
.map-pin-icon svg { display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.route-line { stroke: var(--beinschwarz); }
.zoom { z-index: 450; }

/* Auflösung */
.res-parts { display: flex; flex-direction: column; gap: 28px; }
.res-part { display: flex; flex-direction: column; gap: 10px; }
.res-part-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--gruen-linie); padding-top: 14px; }
.res-part-head .t { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gruen-text); }
.res-part-head .t .n { font-family: var(--serif); font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--ocker); margin-right: 8px; }
.res-part-head .p { font-family: var(--serif); font-size: 24px; color: var(--ocker); font-variant-numeric: tabular-nums; }
.res-part .says { margin: 0; font-size: 16px; color: var(--bleiweiss); }
.res-part .says em { font-family: var(--serif); font-size: 20px; font-style: italic; }
.result-line .actual .txt { color: var(--bleiweiss); }
.result-line .guess, .result-line .actual, .result-line .gap { transition: left .7s cubic-bezier(.2,.8,.2,1), width .7s cubic-bezier(.2,.8,.2,1); }
.res-map { height: 280px; border: 1px solid var(--beinschwarz); box-shadow: inset 0 0 0 4px var(--papier), inset 0 0 0 5px var(--umbra); padding: 6px; background: var(--papier); }
.res-map > div { width: 100%; height: 100%; }
.panel-head h1.big { font-size: clamp(42px, 6vw, 64px); }
.panel-head h1.big em { color: var(--ocker); }
.more { font-size: 15px; text-underline-offset: 5px; }
.label .lic { font-size: 12px; color: var(--umbra); }
.points .v { animation: rise .6s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Auswertung */
.summary-main { flex: 1; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 64px; align-items: start; padding-top: 48px; padding-bottom: 56px; }
.round-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.round-list li { display: grid; grid-template-columns: 36px 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gruen-linie); }
.round-list .n { font-family: var(--serif); font-size: 20px; color: var(--ocker); }
.round-list img { width: 56px; height: 56px; object-fit: cover; border: 3px solid var(--rahmen); box-shadow: inset 0 0 0 1px var(--ocker); background: #231C16; }
.round-list .t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.round-list .t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-list .t span { font-size: 13px; color: var(--gruen-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-list .p { font-family: var(--serif); font-size: 22px; color: var(--ocker); font-variant-numeric: tabular-nums; }
.eyebrow--ocker { color: var(--ocker); margin-bottom: 12px; }
.save-form { display: flex; flex-direction: column; gap: 12px; }
.save-form .eyebrow { color: var(--ocker); }
.save-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.save-row input { flex: 1 1 200px; min-width: 0; font: inherit; font-size: 18px; padding: 10px 2px; color: var(--bleiweiss); background: transparent; border: 0; border-bottom: 1.5px solid var(--gruen-text-2); border-radius: 0; }
.save-row input:focus { outline: none; border-bottom-color: var(--ocker); }
.save-row input::placeholder { color: var(--gruen-text-2); }
.go--small { font-size: 26px; }
.hint:empty { display: none; }

/* Bild gross */
.lightbox { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 24px; background: rgba(20,24,21,.94); cursor: zoom-out; animation: fade-in .2s ease; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; border: 1px solid var(--gruen-linie); background: var(--galeriegruen); color: var(--bleiweiss); font-size: 30px; line-height: 1; cursor: pointer; }

.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 4000; background: var(--saalschild); color: var(--beinschwarz); border: 1px solid var(--beinschwarz); padding: 10px 16px; font-size: 15px; max-width: calc(100vw - 32px); }

/* Handy */
@media (max-width: 760px) {
  .game-header { padding-top: 14px; padding-bottom: 14px; gap: 10px 20px; }
  .game-header .logo { font-size: 22px; }
  .score { gap: 18px; font-size: 12px; }
  .stepper { order: 3; width: 100%; gap: 18px; }
  .game-main, .summary-main { gap: 28px; padding-top: 24px; padding-bottom: 32px; }
  .panel { gap: 24px; }
  .panel-head h1 { font-size: 32px; }
  .painting--real { max-height: 42vh; }
  .map-main { gap: 20px; padding-top: 18px; padding-bottom: 24px; }
  .map-side { max-width: none; gap: 16px; }
  .map-frame { min-height: 0; flex-basis: 100%; }
  .map-frame .map { min-height: 56vh; }
  .map-frame .compass { display: none; }
  .map-side .frame--small { display: none; }
  .clues--dark { padding: 10px 12px; }
  .tip { padding-top: 12px; }
  .tip .v { font-size: 20px; }
  .go { font-size: 28px; }
  .hero { padding-top: 36px; padding-bottom: 56px; gap: 40px; }
  .steps .wrap, .about { padding-top: 56px; padding-bottom: 56px; }
  .steps-head h2 { font-size: 40px; }
  .round-list li { grid-template-columns: 28px 44px 1fr auto; gap: 10px; }
  .round-list img { width: 44px; height: 44px; }
  .res-map { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Korrekturen nach dem ersten Browser-Test */
.screen.wall { color: var(--bleiweiss); }
.screen.wall a { color: var(--ocker); }
.screen.wall a:hover { color: #E0B866; }
.game-header { width: 100%; }
.points .v, .res-part-head .p, .round-list .p, .leaderboard .lb-score, .score strong, .tip .v { font-variant-numeric: lining-nums tabular-nums; }
.result-line .txt, .result-line .guess span:first-child { font-variant-numeric: lining-nums; }
.res-map { height: 240px; }
@media (max-width: 760px) {
  /* Ort-Frage auf dem Handy: Frage, Hinweise, Karte, Tipp, Knopf untereinander */
  .map-main { flex-direction: column; flex-wrap: nowrap; }
  .map-side { display: contents; }
  .map-side .panel-head { order: 1; }
  .map-side .clues { order: 2; }
  .map-frame { order: 3; }
  .map-side .tip { order: 4; }
  .map-side .actions { order: 5; margin-top: 0; }
}
.screen.wall .logo, .screen.wall .logo:hover { color: var(--bleiweiss); }
/* Nadeln am Rand der Zeitachse dürfen die Seite nicht verbreitern */
.wall-bg, #screen-start { overflow-x: clip; }
@media (max-width: 760px) {
  .painting--real { max-height: 34vh; }
  .frame--dark { padding: 12px; }
  .game-figure { gap: 12px; }
  .game-figure .label { padding: 10px 14px; }
  .game-figure .label .name { font-size: 18px; }
  .year-out { font-size: 72px; }
  .year-out.is-price { font-size: 52px; }
  .timeline { height: 70px; }
  .panel-head h1.big { font-size: 40px; }
  .points .v { font-size: 44px; }
}

/* ------------------------------------------------------------ 14.11.: Menü, zentrierte Startseite, Modus «Alle» */
.nav { align-items: center; }
.menu { position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--beinschwarz);
  padding: 8px 14px; border: 1px solid var(--beinschwarz);
}
.menu > summary::-webkit-details-marker, .menu-item > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
.menu[open] > summary { background: var(--beinschwarz); color: var(--bleiweiss); }
.menu[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: min(440px, calc(100vw - 40px));
  background: var(--saalschild); border: 1px solid var(--beinschwarz); box-shadow: 0 18px 50px rgba(28, 26, 23, .18);
  text-transform: none; letter-spacing: 0; font-weight: 400; max-height: min(70vh, 640px); overflow-y: auto;
  animation: menu-in .25s ease both;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu-item + .menu-item { border-top: 1px solid var(--linie); }
.menu-item > summary {
  list-style: none; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--serif); font-size: 24px; color: var(--beinschwarz);
}
.menu-item > summary::after { content: "+"; font-family: var(--sans); font-size: 20px; color: var(--zinnober); transition: transform .25s; }
.menu-item[open] > summary::after { transform: rotate(45deg); }
.menu-item > summary:hover { background: var(--bleiweiss); }
.menu-body { padding: 0 20px 20px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.menu-body p { margin: 0; }
.menu-sub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--umbra); margin-bottom: 12px !important; }
.menu-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.menu-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.menu-steps .num { font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--zinnober); }
.menu-steps h3 { margin: 0 0 2px; font-size: 16px; font-weight: 600; color: var(--beinschwarz); }
.menu-body .leaderboard li { font-size: 15px; padding: 9px 0; }
.menu summary:focus-visible, .menu-item summary:focus-visible { outline: 2px solid var(--zinnober); outline-offset: 2px; }

/* Startseite ohne Bild: alles mittig */
.hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 72px; padding-bottom: 88px; }
.hero-text { align-items: center; max-width: 860px; }
.modes { max-width: 640px; width: 100%; text-align: left; }
.modes legend { text-align: center; width: 100%; }
.mode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mode--all { grid-column: 1 / -1; border-color: var(--beinschwarz); }
.mode--all strong { font-size: 18px; }
.start-row { justify-content: center; flex-direction: column; gap: 12px; }
.start-group { justify-content: center; flex: 0 0 auto; }
.local-best { text-align: center; }
@media (max-width: 640px) { .mode-grid { grid-template-columns: 1fr; } }

/* Im Spiel: «Schätzung abgeben» / «Ort bestätigen» klar als Knopf mit Rahmen */
.wall .actions .go[data-submit] {
  padding: 14px 22px 14px 24px; border: 2px solid var(--ocker); background: rgba(194, 149, 69, .12);
  box-shadow: 0 0 0 4px rgba(194, 149, 69, .08); transition: background .2s, box-shadow .2s, transform .2s;
}
.wall .actions .go[data-submit] .go-text { padding-bottom: 0; background-image: none; }
.wall .actions .go[data-submit] .go-arrow { opacity: 1; transform: none; }
.wall .actions .go[data-submit]:hover:not(:disabled) { background: rgba(194, 149, 69, .26); box-shadow: 0 0 0 6px rgba(194, 149, 69, .16); transform: translateY(-1px); }
.wall .actions .go[data-submit]:not(:disabled) { animation: submit-glow 2.4s ease-in-out infinite; }
.wall .actions .go[data-submit]:disabled { border-color: var(--gruen-linie); background: transparent; box-shadow: none; animation: none; }
@keyframes submit-glow { 0%, 100% { box-shadow: 0 0 0 4px rgba(194, 149, 69, .08); } 50% { box-shadow: 0 0 0 9px rgba(194, 149, 69, .2); } }
@media (prefers-reduced-motion: reduce) { .wall .actions .go[data-submit], .menu-panel { animation: none; } }
@media (max-width: 640px) { .menu-panel { left: 0; right: auto; width: calc(100vw - 40px); } }

/* ------------------------------------------------------------ 14.11. (2): Menü-Links, Unterseiten, Spiel ohne Scrollen */
body[data-screen="game"] #site-header, body[data-screen="result"] #site-header, body[data-screen="summary"] #site-header { display: none; }
.menu-panel { width: min(300px, calc(100vw - 40px)); padding: 6px 0; }
.menu-link {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px;
  font-family: var(--serif); font-size: 24px; color: var(--beinschwarz); text-decoration: none; text-transform: none; letter-spacing: 0;
  transition: background .15s, padding .2s;
}
.menu-link + .menu-link { border-top: 1px solid var(--linie); }
.menu-link .menu-go { font-family: var(--sans); font-size: 18px; color: var(--zinnober); transition: transform .2s; }
.menu-link:hover, .menu-link:focus-visible { background: var(--bleiweiss); padding-left: 24px; }
.menu-link:hover .menu-go { transform: translateX(4px); }
.menu-link:focus-visible { outline: 2px solid var(--zinnober); outline-offset: -2px; }
.page .steps { margin-top: 0; }
.page-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 72px; }
.page-note { margin-top: 16px !important; font-size: 15px !important; color: var(--umbra) !important; }
.page .about { padding-bottom: 32px; }

/* Spielseiten füllen genau den Bildschirm: kein Scrollen */
html:has(body[data-screen="game"]), html:has(body[data-screen="result"]), html:has(body[data-screen="summary"]) { overflow: hidden; height: 100%; }
body[data-screen="game"], body[data-screen="result"], body[data-screen="summary"] { height: 100dvh; overflow: hidden; }
.screen.wall.active { height: 100dvh; overflow: hidden; }
.wall .wall-bg { min-height: 0; height: 100dvh; overflow: hidden; }
.wall .game-header { flex: none; padding-top: clamp(8px, 2vh, 24px); padding-bottom: clamp(8px, 2vh, 24px); }
.wall .game-main, .wall .map-main, .wall .summary-main {
  flex: 1 1 auto; min-height: 0; padding-top: clamp(10px, 3vh, 44px); padding-bottom: clamp(10px, 3vh, 44px);
}
.wall .game-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; align-content: center; }
.wall .game-figure { max-height: 100%; min-height: 0; gap: clamp(8px, 1.6vh, 20px); }
.wall .game-figure .painting--real { max-height: calc(100dvh - clamp(250px, 34vh, 340px)); }
.wall .game-figure .label { padding: clamp(8px, 1.4vh, 16px) clamp(12px, 1.6vw, 20px); }
.wall .game-figure .label .name { font-size: clamp(16px, 2.4vh, 22px); }
.wall .clues .name { -webkit-line-clamp: 2; }
.wall .panel { gap: clamp(10px, 2.4vh, 36px); max-height: 100%; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.wall .panel-head { gap: clamp(4px, 1vh, 10px); }
.wall .panel-head h1 { font-size: clamp(24px, 4.4vh, 44px); }
.wall .panel-head h1.big { font-size: clamp(32px, 6.4vh, 64px); }
.wall .year-out { font-size: clamp(52px, 11vh, 120px); }
.wall .points { padding-top: clamp(10px, 2vh, 24px); }
.wall .points .v { font-size: clamp(32px, 6vh, 56px); }
.wall .res-parts { gap: clamp(8px, 1.8vh, 28px); }
/* Karte: Seite links, Karte füllt den Rest */
.wall .map-main { flex-wrap: nowrap; align-items: stretch; gap: clamp(20px, 3vw, 48px); }
.wall .map-side { max-height: 100%; min-height: 0; overflow-y: auto; gap: clamp(10px, 2.2vh, 28px); scrollbar-width: thin; }
.wall .map-side .frame--small .painting--real { max-height: clamp(70px, 18vh, 200px); }
.wall .map-frame { min-height: 0; flex: 1 1 auto; }
.wall .map-frame .map { min-height: 0; height: 100%; }
.wall .summary-main { align-items: start; overflow: hidden; }
.wall .summary-main > .panel { max-height: 100%; }
.wall .round-list li { padding: clamp(4px, 1vh, 10px) 0; }

@media (max-width: 760px) {
  .wall .game-header { gap: 8px 16px; }
  .wall .game-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-content: stretch; gap: 12px; }
  .wall .game-figure { justify-self: center; }
  .wall .game-figure .painting--real { max-height: 26dvh; min-height: 0; }
  .wall .game-figure .label { display: none; }
  #screen-result .game-figure .label { display: flex; }
  #screen-result .game-figure .painting--real { max-height: 18dvh; }
  .wall .panel { gap: 10px; }
  .wall .year-out { font-size: clamp(44px, 8vh, 80px); }
  .wall .map-main { flex-direction: column; gap: 10px; }
  .wall .map-side { flex: none; max-width: none; max-height: 42%; }
  .wall .map-side .clues--dark { display: none; }
  .wall .map-side .tip { padding-top: 8px; flex-direction: row; align-items: baseline; gap: 10px; }
  .wall .map-side .tip .v { font-size: 18px; }
  .wall .map-frame { flex: 1 1 auto; min-height: 0; }
  .wall .summary-main { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
}

/* ------------------------------------------------------------ 14.11. (3): Ergebnis im Klartext, Bild-Zoom */
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { margin: 0; padding: clamp(8px, 1.4vh, 14px) clamp(10px, 1.2vw, 16px); border: 1px solid var(--gruen-linie); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gruen-text-2); }
.fact dd { margin: 0; font-family: var(--serif); font-size: clamp(20px, 3.2vh, 30px); line-height: 1.1; color: var(--bleiweiss); overflow-wrap: anywhere; }
.fact dd small { display: block; font-family: var(--sans); font-size: 13px; color: var(--gruen-text); margin-top: 4px; }
.fact--right { border-color: var(--ocker); background: rgba(194, 149, 69, .12); }
.fact--right dd { color: #E8C878; }
.res-part .says--small { font-size: 13px; color: var(--gruen-text-2); }
.wall .result-line { transform: scale(.92); transform-origin: left center; }

/* Grosse Bildansicht mit Zoom */
.lightbox { cursor: default; padding: 0; overflow: hidden; touch-action: none; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px 24px 96px; overflow: hidden; touch-action: none; cursor: zoom-in; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center; transition: transform .12s ease-out; user-select: none; -webkit-user-drag: none; }
.lb-stage img.zoomed { cursor: grab; transition: none; }
.lb-stage:active img.zoomed { cursor: grabbing; }
.lb-tools { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--galeriegruen); border: 1px solid var(--ocker); z-index: 2; }
.lb-tools button { min-width: 44px; height: 40px; border: 0; background: transparent; color: var(--bleiweiss); font-size: 22px; cursor: pointer; }
.lb-tools button:hover { background: rgba(194, 149, 69, .2); }
.lb-tools .lb-fit { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 0 12px; border-left: 1px solid var(--gruen-linie); }
.lb-tools span { min-width: 64px; text-align: center; font-size: 14px; color: var(--ocker); font-variant-numeric: tabular-nums; }
.lb-hint { position: absolute; left: 0; right: 0; top: 18px; margin: 0; text-align: center; font-size: 13px; color: var(--gruen-text-2); pointer-events: none; padding: 0 70px; }
.lightbox-close { z-index: 3; }
.zoomable { cursor: zoom-in; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; gap: 6px; } .fact dd { font-size: 18px; } .lb-hint { display: none; } }

/* Mehrere Fragen pro Bild: kompakte Auflösung, damit alles ohne Scrollen sichtbar ist */
.res-part--multi .result-line, .res-part--multi + .res-part--multi .says--small { display: none; }
.wall .res-map { height: clamp(110px, 20vh, 260px); }
.wall .res-part--multi .res-map { height: clamp(90px, 15vh, 200px); }
.wall .res-part { gap: clamp(6px, 1vh, 10px); }
.wall .res-part-head { padding-top: clamp(6px, 1vh, 14px); }
@media (max-width: 760px) {
  #screen-result .game-figure { display: none; }
  .wall .res-part--multi .res-map { height: clamp(80px, 13vh, 140px); }
}

/* Auflösung bei mehreren Fragen weiter verdichtet: Punkte und «Nächstes Bild» bleiben sichtbar */
#screen-result:has(.res-part--multi) .panel { gap: clamp(8px, 1.6vh, 24px); }
#screen-result:has(.res-part--multi) .panel-head h1.big { font-size: clamp(26px, 4.6vh, 56px); }
#screen-result:has(.res-part--multi) .panel-head .eyebrow { display: none; }
.res-part--multi .fact { padding: clamp(5px, 0.9vh, 10px) clamp(10px, 1.2vw, 14px); flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.res-part--multi .fact dt { flex-basis: 100%; }
.res-part--multi .fact dd { font-size: clamp(18px, 2.8vh, 26px); }
.res-part--multi .fact dd small { display: inline; margin: 0 0 0 8px; }
#screen-result:has(.res-part--multi) .points { padding-top: clamp(6px, 1.2vh, 18px); }
#screen-result:has(.res-part--multi) .points .v { font-size: clamp(28px, 5vh, 48px); }
#screen-result:has(.res-part--multi) .points .k { font-size: 13px; }
@media (max-width: 760px) {
  #screen-result:has(.res-part--multi) .panel-head { display: none; }
  .wall .res-part--multi .res-map { height: clamp(70px, 11vh, 120px); }
  .res-part--multi .fact dt { font-size: 10px; }
  .res-part--multi .fact dd { font-size: 17px; }
  #screen-result:has(.res-part--multi) .actions { gap: 14px; }
  .wall .game-header { padding-top: 8px; padding-bottom: 8px; }
}
/* Kein seitlicher Scrollbalken in den Spiel-Feldern */
.wall .panel, .wall .map-side, .wall .summary-main { overflow-x: hidden; }
.wall .timeline, .wall .result-line { max-width: 100%; }
@media (max-height: 700px) and (max-width: 760px) { .wall .res-part--multi .res-map { height: 64px; } .res-part--multi .fact dd { font-size: 16px; } }
@media (max-height: 700px) and (max-width: 760px) {
  .wall .year-out { font-size: 40px; }
  .wall .game-figure .painting--real { max-height: 22dvh; }
  .wall .panel-head h1 { font-size: 22px; }
}
/* «Nächste Frage / Nächstes Bild» gleich gut sichtbar wie «Schätzung abgeben» */
.wall .actions #btn-next { padding: 14px 22px 14px 24px; border: 2px solid var(--ocker); background: rgba(194, 149, 69, .12); transition: background .2s, transform .2s; }
.wall .actions #btn-next .go-text { padding-bottom: 0; background-image: none; }
.wall .actions #btn-next .go-arrow { opacity: 1; transform: none; }
.wall .actions #btn-next:hover { background: rgba(194, 149, 69, .26); transform: translateY(-1px); }

/* 14.11. (4): Bild im Spiel grösser */
.wall .game-main { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.wall .game-figure { width: min(100%, 640px); }
.wall .game-figure .painting--real { max-height: calc(100dvh - clamp(200px, 27vh, 280px)); }
.wall .map-side { max-width: 420px; }
.wall .map-side .frame--small .painting--real { max-height: clamp(90px, 26vh, 290px); }
.lb-stage img { cursor: zoom-in; }
.lb-stage img.zoomed { cursor: grab; }
@media (max-width: 760px) {
  .wall .game-main { grid-template-columns: minmax(0, 1fr); }
  .wall .game-figure .painting--real { max-height: 32dvh; }
}
@media (max-height: 700px) and (max-width: 760px) {
  .wall .game-figure .painting--real { max-height: 26dvh; }
}

/* Grosse Ansicht: Bild füllt den ganzen Bildschirm (eingepasst), Bedienung liegt darüber */
.lightbox { background: #0f1411; }
.lightbox:fullscreen { background: #0f1411; }
.lb-stage { padding: 8px; }
.lb-stage img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; box-shadow: none; }
.lb-tools { bottom: 14px; background: rgba(36, 51, 44, .88); backdrop-filter: blur(6px); }
.lb-hint { top: 12px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); color: var(--gruen-text); }
.lightbox-close { top: 10px; right: 12px; background: rgba(36, 51, 44, .88); }
.lb-stage { display: block; }
.lb-stage img { position: absolute; left: 8px; top: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
