/* ================================================================ Modus „Fernweh“: die Karten-Show
   Alte Reise-Romantik: tiefes Ozeanblau mit Gradnetz und Kompassrose, Pergament-Karten, Reisepass-Stempel,
   Bordkarte als Rundenintro, Flugrouten. Quizzly mit Tropenhelm und Fernglas.
   Gilt für Host (body.host) und Handy (body.play), sobald body[data-mode="geo"] gesetzt ist. */

body[data-mode="geo"] {
  --chip-bg: rgba(6, 32, 42, 0.62); --chip-bd: rgba(242, 193, 78, 0.32);
  --ink: #1b2a33;
  --ink-soft: #3d5361;
  --bg1: #0b2a3a;
  --bg2: #0f4f5c;
  --paper: #fbf2dc;
  --paper-2: #f1e3c2;
  --pink: #d9534f;
  --stamp: #c4432b;
  --brass: #d9a441;
  --gold: #f2c14e;
  --yellow: #f2c14e;
  --green: #3f9a5b;
  --teal: #2a9d8f;
  --sea: #8fc3c8;
  --blue: #2f6f8f;
  --red: #c4432b;
  --orange: #e07a2f;
  --purple: #7b5ea7;
  --opt-0: #c4432b;
  --opt-1: #2f6f8f;
  --opt-2: #d99a2b;
  --opt-3: #3f8a52;
  --accent: #d9a441;
  --radius: 18px;
  --shadow: 0 6px 0 rgba(4, 18, 26, 0.55);
  --shadow-sm: 0 3px 0 rgba(4, 18, 26, 0.55);
  --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-poster: 'Bebas Neue', 'Oswald', 'Fredoka', sans-serif;
  --font-hand: 'Caveat', 'Fredoka', cursive;
  /* Karten in Altkarten-Farben */
  --map-sea: #9fcdd0;
  --map-grid: rgba(70, 60, 40, 0.16);
  --map-land: #f1e1b8;
  --map-land2: #ead39f;
  --map-land3: #f6ead0;
  --map-land4: #e6cfa0;
  --map-land5: #efdcb1;
  --map-land6: #e3d0a3;
  --map-land7: #f3dfae;
  --map-border: #8c6a3e;
  --map-other: #e4d8bd;
  --map-other-border: #a89272;
  --map-state: #8c6a3e;
  --map-water-line: #6ea5ad;
  --map-river: #6aa9b6;
  --map-hl: #c4432b;
}

/* ------------------------------------------------------------ Hintergrund: Ozean mit Gradnetz, Kompassrose, Flugroute */
body[data-mode="geo"] .bg {
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(80, 170, 170, 0.35), transparent 70%),
    radial-gradient(ellipse 70% 50% at 85% 110%, rgba(217, 164, 65, 0.22), transparent 70%),
    linear-gradient(170deg, #11586a 0%, #0b3a4b 55%, #071f2c 100%);
}
body[data-mode="geo"] .bg::before {
  inset: -8%;
  opacity: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1.5'%3E%3Cpath d='M0 200 Q300 140 600 200'/%3E%3Cpath d='M0 120 Q300 70 600 120'/%3E%3Cpath d='M0 280 Q300 230 600 280'/%3E%3Cpath d='M0 40 Q300 0 600 40'/%3E%3Cpath d='M0 360 Q300 320 600 360'/%3E%3Cpath d='M100 0 Q60 200 100 400'/%3E%3Cpath d='M250 0 Q230 200 250 400'/%3E%3Cpath d='M400 0 Q420 200 400 400'/%3E%3Cpath d='M550 0 Q590 200 550 400'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 900px 600px;
  animation: geoDrift 120s linear infinite;
}
@keyframes geoDrift { to { background-position: 900px 0; } }
/* Kompassrose rechts unten, gestrichelte Flugroute oben */
body[data-mode="geo"] .bg::after {
  content: '';
  position: absolute;
  right: -6vmin;
  bottom: -6vmin;
  width: 46vmin;
  height: 46vmin;
  opacity: 0.12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2'%3E%3Ccircle r='92'/%3E%3Ccircle r='78' stroke-dasharray='3 5'/%3E%3Ccircle r='30'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cpath d='M0 -96 L10 -10 L0 0 L-10 -10Z'/%3E%3Cpath d='M0 96 L10 10 L0 0 L-10 10Z' opacity='.6'/%3E%3Cpath d='M96 0 L10 10 L0 0 L10 -10Z' opacity='.6'/%3E%3Cpath d='M-96 0 L-10 10 L0 0 L-10 -10Z' opacity='.6'/%3E%3Cpath d='M55 -55 L6 -2 L0 0 L2 -6Z' opacity='.45'/%3E%3Cpath d='M-55 55 L-6 2 L0 0 L-2 6Z' opacity='.45'/%3E%3Cpath d='M55 55 L2 6 L0 0 L6 2Z' opacity='.45'/%3E%3Cpath d='M-55 -55 L-2 -6 L0 0 L-6 -2Z' opacity='.45'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: geoRose 90s linear infinite;
}
@keyframes geoRose { to { transform: rotate(360deg); } }
body[data-mode="geo"] .bg .blob { opacity: 0.28; }
body[data-mode="geo"] .bg .blob.b1 { background: #2a9d8f; }
body[data-mode="geo"] .bg .blob.b2 { background: #d9a441; }
body[data-mode="geo"] .bg .blob.b3 { background: #1f6f8b; }

/* ------------------------------------------------------------ Grundbausteine */
body[data-mode="geo"] .card { border-width: 3px; }
body[data-mode="geo"] .intro .rname, body[data-mode="geo"] .scores h1, body[data-mode="geo"] .podium h1 { font-family: var(--font-poster); font-weight: 400; letter-spacing: 0.05em; }

/* Logo: Buchstaben wie Gepäckanhänger-Stempel */
body[data-mode="geo"] .logo { font-family: var(--font-poster); font-weight: 400; letter-spacing: 0.06em; -webkit-text-stroke: 0; text-shadow: 0 0.06em 0 rgba(0, 0, 0, 0.45); }
body[data-mode="geo"] .logo span { color: var(--paper) !important; }
body[data-mode="geo"] .logo span:nth-child(3n + 1) { color: var(--brass) !important; }
body[data-mode="geo"] .logo-sub, body[data-mode="geo"] .editionbadge {
  font-family: var(--font-hand);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}
body[data-mode="geo"] .splash .logo-sub { font-size: clamp(2.2rem, min(3.8vw, 6.6vh), 4rem); opacity: 1; transform: rotate(-3deg); margin-top: -0.1em; animation: stamp 0.6s 0.3s var(--ease-back) both; }
body[data-mode="geo"] .editionbadge { display: inline-block; position: absolute; left: calc(6.5rem + 1.6rem); bottom: -1.4rem; font-size: 2.1rem; line-height: 1; white-space: nowrap; transform: rotate(-3deg); animation: stamp 0.5s var(--ease-back) both; pointer-events: none; }
body[data-mode="geo"] .lobby .brand { position: relative; }
body[data-mode="geo"] .insertcoin { display: block; font-family: var(--font-hand); font-weight: 700; font-size: 1.8rem; line-height: 1; color: var(--stamp); margin-top: 0.6rem; transform: rotate(-2deg); }

/* Quizzly als Entdecker: Tropenhelm und Fernglas */
body[data-mode="geo"] .quizzly .qz-pith, body[data-mode="geo"] .quizzly .qz-binos { display: inline; }
body[data-mode="geo"] .quizzly .qz-cap, body[data-mode="geo"] .quizzly .qz-bow { display: none; }
body[data-mode="geo"] .quizzly .qz-binos > g { transform-origin: 120px 205px; animation: geoBinos 3.6s ease-in-out infinite; }
@keyframes geoBinos { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(-2deg) translateY(-2px); } }

/* Handy-Lobby */
.lobbyv .geonote { display: none; font-family: var(--font-hand); font-weight: 700; color: var(--gold); font-size: 30px; line-height: 1; transform: rotate(-3deg); }
body.play[data-mode="geo"] .lobbyv .geonote { display: block; }

/* Stempel-Einblendung (z. B. bei Treffern) */
.geostamp { display: inline-block; font-family: var(--font-poster); letter-spacing: 0.08em; color: var(--stamp); border: 3px solid var(--stamp); border-radius: 8px; padding: 0.05em 0.45em; transform: rotate(-8deg); animation: stamp 0.45s var(--ease-back) both; }

/* ================================================================ Karten-Färbungen der Runden */
.geomap .c.heat0 { fill: #7cc4e8; }
.geomap .c.heat1 { fill: #a9d8c8; }
.geomap .c.heat2 { fill: #f3e48a; }
.geomap .c.heat3 { fill: #f7b955; }
.geomap .c.heat4 { fill: #f08a3c; }
.geomap .c.heat5 { fill: #e2522f; }
.geomap .c.heat6 { fill: #a1161b; }
.geomap .c.heat7 { fill: #2fbf71; }
.geomap .c.goal { fill: #2fbf71; stroke: var(--ink); stroke-width: 2.4px; }
.geomap .c.sel { fill: #fffaf0; stroke: var(--stamp, #c4432b); stroke-width: 2.5px; }
.geomap .c.found { fill: #8fd19e; stroke: var(--ink); stroke-width: 1.4px; }
.geomap .c.missed { fill: #f2a7a0; stroke: var(--ink); stroke-width: 1.4px; }
.geolabel { display: inline-flex; align-items: center; gap: 0.35em; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 0.05em 0.6em; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.25; box-shadow: var(--shadow-sm); white-space: nowrap; }
.geolabel.big { font-size: 1.5rem; padding: 0.1em 0.8em; }
.geolabel.small { font-size: 12px; padding: 0 0.45em; box-shadow: none; }
.geolabel b { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 0.85em; }
.geolabel small { opacity: 0.65; font-weight: 800; }
.tapdot { display: block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.tapdot.bad { background: var(--stamp, #c4432b); }
.geoshape { display: block; width: 100%; height: 100%; overflow: visible; }
.geoshape path { fill: var(--ink); stroke: var(--ink); stroke-width: 0.6; stroke-linejoin: round; fill-rule: evenodd; }

/* ================================================================ Runden auf dem großen Bildschirm */
/* Ausgesetzt!: Foto groß, Karte daneben; zur Auflösung wird das Foto zur Postkarte */
.ggwrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.2rem; min-height: 0; transition: grid-template-columns 0.9s var(--ease-out); }
.ggwrap.solo { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.ggphoto { position: relative; overflow: hidden; border: var(--outline); border-radius: var(--radius); box-shadow: var(--shadow); background: #0b1a22; min-height: 0; animation: popIn 0.5s var(--ease-back) both; }
.ggphoto img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; user-select: none; }
/* Langsame Fahrt über die GPU (transform) – object-position rastet pixelweise ein und zittert */
.ggphoto img.moving { animation: ggZoom linear both; will-change: transform; backface-visibility: hidden; }
.ggphoto.pano { container-type: inline-size; }
.ggphoto.pano img { width: auto; min-width: 100%; max-width: none; }
.ggphoto.pano img.moving { animation-name: ggPan; }
@keyframes ggZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes ggPan { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(min(0px, calc(100cqw - 100%)), 0, 0); } }
.ggphoto .imgfail { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; font-size: 4rem; color: #fff; }
.ggphoto .imgfail small { font-size: 1.2rem; }
.ggside { display: flex; flex-direction: column; justify-content: center; gap: 1rem; min-height: 0; }
.ggside .qcard { font-size: clamp(1.2rem, 1.7vw, 2.1rem); padding: 0.7rem 1.1rem; }
/* während der Frage: Karte in Kartenform direkt unter der Frage, beides mittig; zur Auflösung füllt sie die Spalte */
.ggside .mapbox { flex: none; width: 100%; aspect-ratio: 2.02; max-height: 70%; animation: popIn 0.5s var(--ease-back) both; }
/* Am PC wird auf der Show-Karte geklickt: Karte bekommt mehr Fläche (gleich breit wie das Foto, volle Höhe) */
.screen.question.pc-has-answer .ggwrap:not(.revealed):not(.solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.screen.question.pc-has-answer .ggwrap:not(.revealed) .ggside { justify-content: flex-start; }
.screen.question.pc-has-answer .ggwrap:not(.revealed) .ggside .mapbox { flex: 1; aspect-ratio: auto; max-height: none; min-height: 0; }
.ggwrap.revealed .ggside { justify-content: flex-start; }
.ggwrap.revealed .ggside .mapbox { flex: 1; aspect-ratio: auto; max-height: none; min-height: 0; }
.ggwrap.revealed { grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.7fr); }
.ggwrap.revealed .ggphoto { align-self: start; aspect-ratio: 4 / 3.4; border: 0.5rem solid var(--paper); border-bottom-width: 2.2rem; border-radius: 4px; transform: rotate(-3deg); box-shadow: 0 0 0 3px var(--ink), var(--shadow); overflow: visible; }
.ggwrap.revealed .ggphoto img { animation: none; transform: none; }
.ggwrap.revealed .ggphoto.pano img { width: 100%; }
.ggcredit { position: absolute; left: 0.3rem; right: 0.3rem; bottom: -1.9rem; font-family: var(--font-hand); font-size: 1.05rem; line-height: 1.6rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.ggwrap .solution { position: absolute; right: 1rem; bottom: 1rem; z-index: 6; padding: 0.5rem 1.4rem; font-family: var(--font-head); font-size: 1.7rem; animation: slideDown 0.5s var(--ease-back) both; white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; }

/* Schattenriss */
.olwrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.4rem; min-height: 0; }
.olstage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; min-height: 0; padding: 1.2rem; overflow: hidden; background: radial-gradient(circle at 50% 42%, #d7ecec, #9fcdd0 72%); }
/* Größe aus dem freien Platz (Container-Einheiten): auch schräg gedreht passt der Umriss hinein */
.olbox { position: relative; flex: 1; min-height: 0; width: 100%; container-type: size; transition: opacity 0.6s; }
.olbox .geoshape { position: absolute; left: 50%; top: 50%; width: min(74cqw, 74cqh); height: min(74cqw, 74cqh); translate: -50% -50%; filter: drop-shadow(0 0.5rem 0 rgba(0, 0, 0, 0.22)); animation: popIn 0.6s var(--ease-back) both; }
.olq { font-family: var(--font-head); font-size: clamp(1.4rem, 2vw, 2.6rem); color: var(--ink); text-align: center; z-index: 4; }
.olname { display: inline-block; font-family: var(--font-poster); font-size: 1.7em; letter-spacing: 0.05em; color: var(--stamp); animation: stamp 0.5s var(--ease-back) both; }
.olhintbox { min-height: 3.2rem; transition: opacity 0.6s; }
.olhint { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; color: var(--ink); }
.olcont { background: var(--paper); border: 2px solid var(--ink); border-radius: 99px; padding: 0.1rem 0.9rem; font-weight: 900; font-size: 1.2rem; animation: stamp 0.4s var(--ease-back) both; }
.olmask { display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: center; font-family: var(--font-poster); font-size: 2rem; line-height: 1; }
.olmask i, .olmask b { display: inline-grid; place-items: center; width: 1.1em; height: 1.25em; border-bottom: 3px solid var(--ink); font-style: normal; font-weight: 400; }
.olmask i.sp { border: 0; width: 0.5em; }
.olmask b { animation: pop 0.4s var(--ease-back) both; color: var(--stamp); }
.olstage .olmap { position: absolute; inset: 0.6rem; z-index: 3; animation: fadeIn 0.9s ease both; }
.olstage.tomap .olbox, .olstage.tomap .olhintbox { opacity: 0; }
.olstage.tomap .olq { position: absolute; top: 1.2rem; background: var(--paper); border: var(--outline); border-radius: 14px; padding: 0.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.olstage.tomap .olq .olname { font-size: 1.4em; }
.olfails { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.4rem; }
.olfails .fl { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; opacity: 0.85; animation: slideLeft 0.4s var(--ease-back) both; }
.olfails s { text-decoration-thickness: 2px; text-decoration-color: var(--stamp); }
.olwrap .solvedcol .factcard { font-size: 1rem; margin-top: auto; }

/* Heiß oder kalt? */
.heatready { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; text-align: center; }
.heatready .bigtherm { font-size: 7rem; line-height: 1; animation: pulse 0.9s ease-in-out infinite alternate; }
.heatwrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1.2rem; min-height: 0; }
.heatmain { display: flex; flex-direction: column; gap: 0.8rem; min-height: 0; }
.heatmain .qcard { font-size: clamp(1.2rem, 1.7vw, 2.1rem); padding: 0.6rem 1rem; }
.heatmain .mapbox { flex: 1; min-height: 0; }
.heatside { display: flex; flex-direction: column; gap: 0.6rem; min-height: 0; overflow: hidden; padding: 0.9rem 1rem; color: var(--ink); }
.heatside h3 { font-size: 1.3rem; text-align: center; }
/* Liste in em: bei vielen Spielern und wenig Höhe setzt fitList sie dichter, statt Zeilen abzuschneiden */
.hrace { display: flex; flex-direction: column; gap: 0.45em; min-height: 0; overflow: hidden; flex: 1; }
.hr { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(4em, 0.9fr) 3.4em; align-items: center; gap: 0.6em; font-weight: 900; }
.hr .avatar { --size: 2.1em !important; }
.hr .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr .hn { text-align: right; white-space: nowrap; }
.hr.found .nm { color: #1f7a45; }
.therm { height: 0.95rem; border-radius: 99px; background: rgba(27, 42, 51, 0.1); border: 2px solid var(--ink); overflow: hidden; }
.therm i { display: block; height: 100%; border-radius: 99px; transition: width 0.6s var(--ease-out), background 0.6s; }
/* viele Spieler: zwei Spalten */
.hrace.many { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35em 0.8em; align-content: start; }
.hrace.many .hr { font-size: 0.82em; gap: 0.35em; grid-template-columns: auto minmax(0, 1fr) 2.6em 2.4em; }
.hrace.many .hr .avatar { --size: 1.9em !important; }
.hrace.many .therm { height: 0.75em; }
.hlegend { display: flex; align-items: center; gap: 0.2rem; margin-top: auto; font-size: 0.85rem; font-weight: 800; opacity: 0.8; }
.hlegend i { width: 1.4rem; height: 0.7rem; border-radius: 3px; border: 1px solid rgba(0, 0, 0, 0.3); }
.hlegend span { margin-left: 0.4rem; }

/* Länder-Rallye */
.rallywrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1.2rem; min-height: 0; }
.rallymain { display: flex; min-height: 0; }
.rallymain .mapbox { flex: 1; min-height: 0; }
.rallyside { display: flex; flex-direction: column; gap: 0.6rem; min-height: 0; overflow: hidden; padding: 0.9rem 1rem; color: var(--ink); }
.rallyside h3 { font-size: 1.25rem; text-align: center; }
.rroute { display: flex; flex-direction: column; gap: 0.35rem; min-height: 0; flex: 1; }
/* eine Zeile je Station: Nummer, Land, wer gerade dort ist (rechts) – so passt die Route auch neben der PC-Leiste;
   sind es zu viele Avatare für den Platz neben dem Namen, rutschen sie in eine eigene Zeile */
.rst, .rfinish { display: flex; flex-wrap: wrap; align-items: center; row-gap: 0.2rem; column-gap: 0.6rem; padding: 0.3rem 0.5rem; border-radius: 12px; background: rgba(27, 42, 51, 0.07); animation: slideLeft 0.4s var(--ease-back) both; }
.rst:nth-child(2) { animation-delay: 0.08s; }
.rst:nth-child(3) { animation-delay: 0.16s; }
.rst:nth-child(4) { animation-delay: 0.24s; }
.rst:nth-child(5) { animation-delay: 0.32s; }
.rst:nth-child(6) { animation-delay: 0.4s; }
.rst > b, .rfinish > b { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--font-poster); font-weight: 400; font-size: 1.3rem; }
.rfinish > b { background: var(--brass); font-size: 1.1rem; }
.rst > span, .rfinish > span { flex: 1 1 auto; min-width: 0; font-weight: 900; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rwho { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.15rem; min-height: 0; margin-left: auto; }
.rwho:empty { display: none; }
.rdone { display: inline-flex; align-items: center; gap: 0.1rem; font-weight: 900; font-size: 0.8rem; }
.rst.good { background: rgba(63, 154, 91, 0.22); }
.rst.bad { background: rgba(196, 67, 43, 0.16); }
.rst small { font-weight: 900; opacity: 0.8; }
.rallywrap.ready .rst > span { font-size: 1.35rem; }

/* Grenzgänger */
.nbwrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 1.2rem; min-height: 0; }
.nbmain { display: flex; flex-direction: column; gap: 0.8rem; min-height: 0; }
.nbmain .qcard { font-size: clamp(1.2rem, 1.7vw, 2.1rem); padding: 0.6rem 1rem; display: flex; align-items: center; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.nbmain .mapbox { flex: 1; min-height: 0; }
.nbn { background: var(--ink); color: var(--paper); border-radius: 99px; padding: 0 0.7em; font-size: 0.7em; }
.nbside { display: flex; flex-direction: column; gap: 0.6rem; min-height: 0; overflow: hidden; padding: 0.9rem 1rem; color: var(--ink); }
.nbside h3 { font-size: 1.3rem; text-align: center; }
.nbrace { display: flex; flex-direction: column; gap: 0.45rem; min-height: 0; overflow: hidden; }
.nr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 1.8rem; align-items: center; gap: 0.55rem; font-weight: 900; }
.nr .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr > b { text-align: right; }
.nr.all .nm { color: #1f7a45; }
.bricks { display: flex; flex-wrap: wrap; gap: 2px; max-width: 8.5rem; justify-content: flex-end; }
.bricks i { width: 0.7rem; height: 0.85rem; border-radius: 2px; background: rgba(27, 42, 51, 0.1); border: 1.5px solid var(--ink); }
.bricks i.on { background: var(--brass); }
.nbrace.many { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 0.8rem; align-content: start; }
.nbrace.many .nr { font-size: 0.82rem; gap: 0.35rem; }
.nbrace.many .bricks { max-width: 4.6rem; gap: 1px; }
.nbrace.many .bricks i { width: 0.42rem; height: 0.7rem; border-width: 1px; }

/* Kompass-Duell */
.cpwrap { flex: 1; display: flex; flex-direction: column; gap: 1rem; min-height: 0; }
.cpq { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.cparrow { display: inline-block; font-size: 1.3em; line-height: 1; animation: cpNudge 1.2s ease-in-out infinite; }
.cparrow.cp-N { --dx: 0; --dy: -0.15em; }
.cparrow.cp-S { --dx: 0; --dy: 0.15em; }
.cparrow.cp-E { --dx: 0.15em; --dy: 0; }
.cparrow.cp-W { --dx: -0.15em; --dy: 0; }
@keyframes cpNudge { 50% { transform: translate(var(--dx), var(--dy)); } }
.cpwrap .opts { flex: none; max-height: 13rem; }
.cpwrap .opt { font-size: clamp(1.4rem, 2.2vw, 2.8rem); min-height: 6rem; }
.cpwrap .opt .osub { display: block; font-size: 0.55em; opacity: 0.8; }
.cpmap { flex: 1; min-height: 0; display: flex; animation: popIn 0.5s var(--ease-back) both; }
.cpmap .mapbox { flex: 1; min-height: 0; }
.mapbox svg.lines .cpline { stroke-width: 3; }
.mapbox svg.lines .cpline.win { stroke-width: 4.5; }
.cpwrap .factcard { flex: none; }

/* Luftlinie */
.distwrap { flex: 1; display: flex; flex-direction: column; gap: 0.9rem; min-height: 0; }
.distwrap > .qcard { font-size: clamp(1.4rem, 2.2vw, 2.8rem); padding: 0.8rem 1.2rem; }
.distmap { position: relative; flex: 1; min-height: 0; display: flex; }
.distmap .mapbox { flex: 1; min-height: 0; }
.distkm { position: absolute; right: 0.8rem; bottom: 0.6rem; z-index: 6; font-family: var(--font-poster); font-size: 2.6rem; letter-spacing: 0.04em; padding: 0.1rem 1.2rem; color: var(--ink); animation: slideUp 0.5s var(--ease-back) both; }
.distaxis { flex: none; height: 8.4rem; padding: 0.3rem 3.4rem; color: var(--ink); animation: popIn 0.5s var(--ease-back) both; }
.distaxis .dtrack { position: relative; height: 100%; }
.distaxis .dline { position: absolute; left: 0; right: 0; top: 5.5rem; height: 4px; border-radius: 2px; background: var(--ink); }
.distaxis .dtrue { position: absolute; top: 4.9rem; translate: -50% 0; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.distaxis .dtrue::before { content: ''; width: 4px; height: 1.3rem; background: var(--stamp); border-radius: 2px; }
.distaxis .dtrue b { display: block; white-space: nowrap; background: var(--stamp); color: #fff; border-radius: 99px; padding: 0 0.6em; font-size: 0.95rem; }
.distaxis .dg { position: absolute; top: calc(var(--row) * 1.45rem); translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 0.05rem; animation: pop 0.4s var(--ease-back) both; }
.distaxis.many .dg { top: calc(var(--row) * 1.2rem); }
.distaxis .dg small { font-weight: 900; font-size: 0.75rem; background: var(--paper); border-radius: 99px; padding: 0 0.3em; }
.distaxis .dg.best .avatar { box-shadow: 0 0 0 3px var(--brass); }
.distaxis .dzero, .distaxis .dmax { position: absolute; top: 6.1rem; font-size: 0.8rem; font-weight: 900; opacity: 0.6; white-space: nowrap; }
.distaxis .dzero { left: 0; translate: -50% 0; }
.distaxis .dmax { right: 0; translate: 50% 0; }

/* Finale „Die große Weltreise“: links Karte mit Route, rechts die Tankanzeigen (bemessen an der Bühne: --vq) */
.tripwrap { flex: 1; display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(12rem, 1fr); gap: min(1.2rem, calc(1.6 * var(--vq))); min-height: 0; }
.tripmain { display: flex; flex-direction: column; gap: min(0.8rem, calc(1.2 * var(--vq))); min-height: 0; }
.tripmain .mapbox { flex: 1; min-height: 0; animation: popIn 0.5s var(--ease-back) both; }
.tripq { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25em 0.7em; font-size: clamp(1.05rem, calc(2.9 * var(--vq)), 2.3rem); padding: 0.45em 1em; text-align: center; }
.tripq .triptxt { font-family: var(--font-head); line-height: 1.15; }
.tripleg, .tripzone { font-size: max(0.62rem, 0.6em); border: 2px solid var(--ink); border-radius: 99px; padding: 0.05em 0.75em; white-space: nowrap; font-weight: 900; }
.tripleg { background: var(--rc, var(--stamp)); color: #fff; font-family: var(--font-head); font-weight: 600; letter-spacing: 0.03em; }
.tripzone { background: var(--ink); color: var(--paper); }
.tripfact { flex-basis: 100%; font-size: max(0.65rem, 0.5em); font-weight: 800; opacity: 0.8; line-height: 1.25; animation: fadeIn 0.6s both; }
.tripside { display: flex; flex-direction: column; gap: 0.45rem; min-height: 0; overflow: hidden; padding: 0.7rem 0.85rem; color: var(--ink); font-size: clamp(0.8rem, calc(2.2 * var(--vq)), 1.15rem); }
.tripside h3 { font-size: 1.2em; text-align: center; }
.triplegend { margin: 0; font-size: max(0.62rem, 0.75em); font-weight: 800; opacity: 0.65; text-align: center; }
/* Tankanzeigen: Avatar | Name | km, darunter der Balken – in em, damit fitList bei vielen Spielern dichter setzt */
.triptanks { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0.5em; }
.triptanks.many { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: min-content; align-content: start; gap: 0.35em 0.7em; }
.triptanks.many .tk { grid-template-columns: 1.8em minmax(0, 1fr) auto; grid-template-areas: "av nm nm" "av g km"; column-gap: 0.35em; }
.triptanks.many .tk .avatar { --size: 1.8em !important; }
.triptanks.many .tk .km::after { content: ''; }
.tk { position: relative; display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; grid-template-areas: "av nm km" "av g g"; column-gap: 0.5em; row-gap: 0.15em; align-items: center; font-weight: 900; line-height: 1.15; }
.tk .avatar { grid-area: av; --size: 2.2em !important; transition: filter 0.4s, transform 0.4s; }
.tk .nm { grid-area: nm; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk .km { grid-area: km; font-family: var(--font-head); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk .km::after { content: ' km'; font-family: var(--font-body, inherit); font-size: 0.75em; opacity: 0.6; }
.tk.out .km::after { content: ''; }
.tk .gauge { grid-area: g; height: 0.8em; border-radius: 99px; border: 2px solid var(--ink); background: rgba(27, 42, 51, 0.1); overflow: hidden; }
.tk .gauge i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2f7d4a, #6cc58a); transition: width 1.7s cubic-bezier(0.45, 0, 0.55, 1), background 0.4s; }
.tk.reserve .gauge i { background: linear-gradient(90deg, #a1161b, #e2522f); animation: tripBlink 0.6s steps(2, jump-none) infinite; }
.tk.reserve .km { color: #b0301b; }
.tk.out { opacity: 0.6; }
.tk.out .avatar { filter: grayscale(0.85); }
.tk.out .gauge { border-style: dashed; background: transparent; }
.tk.crash { opacity: 1; animation: shake 0.5s; }
.tk.crash .avatar { filter: grayscale(0.9); transform: rotate(-14deg); }
.tk.crash .gauge { border-color: #a1161b; }
.tk .fin-badge { position: absolute; right: -0.2em; top: -0.35em; font-size: 0.6em; z-index: 2; animation: stamp 0.5s var(--ease-back) both; }
@keyframes tripBlink { 50% { opacity: 0.3; } }
/* Karte: Route (Abflug + Etappen-Stempel), Flieger am Gate, Notlandungen */
.mapbox svg.lines .ln.triproute { stroke-width: 4; }
.geolabel.tripstamp { padding: 0; background: none; border: 0; box-shadow: none; }
.geolabel.tripstamp b { width: 1.6em; height: 1.6em; background: var(--stamp); color: #fff; border: 2px solid var(--paper); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }
.geolabel.tripstamp.home { background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; width: 1.9em; height: 1.9em; justify-content: center; font-size: 0.9rem; }
.tripgate { display: inline-flex; align-items: flex-end; font-size: 2rem; translate: 0.9rem -1.1rem; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.45)); animation: geoFly 2.4s ease-in-out infinite; }
.tripgate small { font-family: var(--font-head); font-size: 0.5em; background: var(--ink); color: var(--paper); border-radius: 99px; padding: 0 0.35em; }
.flyer.tripfly span { font-size: 24px; }
.pin.tripcrash .head { filter: grayscale(1); }
@keyframes geoFly { 0%, 100% { transform: translate(-0.4rem, 0.2rem) rotate(-6deg); } 50% { transform: translate(0.4rem, -0.4rem) rotate(4deg); } }

/* ================================================================ Handy */
body.play .geoshape path { fill: var(--paper); stroke: var(--paper); }
/* Ausgesetzt! */
.ggv .ggthumb { position: relative; flex: none; height: 19dvh; border: var(--outline); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); background: #0b1a22; }
.ggv .ggthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ggv .ggthumb span { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 13px; font-weight: 900; border-radius: 99px; padding: 2px 9px; }
.ggv .qtxt { font-size: 16px; padding: 8px 12px; }
.view.ggv .mapbox { min-height: 170px; }
.ggfull { position: fixed; inset: 0; z-index: 90; background: #05121a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; touch-action: pinch-zoom; }
.ggfull img { max-width: 100%; max-height: 85dvh; object-fit: contain; }
.ggfull .ggclose { color: #fff; font-weight: 900; font-size: 17px; background: rgba(255, 255, 255, 0.15); border-radius: 99px; padding: 8px 18px; }
/* Schattenriss */
.olv .olphone { position: relative; flex: 1; min-height: 120px; max-height: 34dvh; container-type: size; }
.olv .olphone .geoshape { position: absolute; left: 50%; top: 50%; width: min(80cqw, 80cqh); height: min(80cqw, 80cqh); translate: -50% -50%; }
.olv .olhintbox { min-height: 28px; }
.olv .olhint { color: #fff; }
.olv .olcont { color: var(--ink); font-size: 15px; }
.olv .olmask { font-size: 24px; }
.olv .olmask i, .olv .olmask b { border-bottom-color: #fff; }
.olv .olmask b { color: var(--gold); }
/* Heiß oder kalt?, Grenzgänger */
.heatv, .nbv { gap: 10px; }
.heathead, .nbhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-head); font-size: 17px; }
.heathead .hcount, .nbhead .nbcount { flex: none; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 0 10px; font-weight: 900; }
.heatv .mapbox { flex: 1; min-height: 150px; }
.nbv .mapbox { flex: 1; min-height: 160px; }
.hpick { display: flex; align-items: center; gap: 8px; background: var(--paper); color: var(--ink); border: var(--outline); border-radius: 14px; padding: 6px 6px 6px 12px; box-shadow: var(--shadow-sm); }
.hpick .hpname { flex: 1; font-family: var(--font-head); font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hpick .btn { padding: 8px 14px; font-size: 16px; }
.hlist { display: flex; gap: 6px; overflow-x: auto; flex: none; padding-bottom: 2px; scrollbar-width: none; }
.hguess { flex: none; display: flex; flex-direction: column; gap: 1px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-left: 8px solid var(--hc); border-radius: 10px; padding: 3px 9px; font-weight: 900; font-size: 13px; line-height: 1.2; }
.hguess.new { animation: pop 0.35s var(--ease-back) both; }
.hguess .hn { font-size: 14px; }
.hguess .hk { opacity: 0.75; white-space: nowrap; }
.geoinput { display: flex; flex-direction: column; gap: 6px; }
.geoinput .sugg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-height: 0; }
.geoinput .sugg:empty { display: none; }
.geoinput .sugg button { flex: none; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 99px; padding: 5px 12px; font-weight: 900; font-size: 15px; }
.geoinput .feedback { min-height: 22px; font-size: 16px; }
.geoinput .feedback.correct { color: #9ff0bf; }
.heatv.done .geoinput, .heatv.done .hpick, .nbv.done .geoinput { display: none; }
.nbfound { display: flex; flex-wrap: wrap; gap: 5px; flex: none; }
.nbfound span { background: #8fd19e; color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 1px 9px; font-weight: 900; font-size: 13px; }
/* Länder-Rallye */
.rallyhead { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rtarget { display: flex; flex-direction: column; align-items: center; background: var(--paper); color: var(--ink); border: var(--outline); border-radius: 14px; padding: 4px 18px 6px; box-shadow: var(--shadow-sm); min-width: 70%; }
.rtarget small { font-weight: 900; opacity: 0.6; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.rtarget b { font-family: var(--font-head); font-size: 26px; line-height: 1.1; text-align: center; }
.rdots, .pc-rdots { display: flex; gap: 6px; }
.rdots i, .pc-rdots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; opacity: 0.5; }
.rdots i.cur, .pc-rdots i.cur { opacity: 1; background: var(--brass); }
.rdots i.ok, .pc-rdots i.ok { opacity: 1; background: #2fbf71; }
.rdots i.bad, .pc-rdots i.bad { opacity: 1; background: #c4432b; }
.view.rallyv .mapbox { min-height: 200px; }
.rdone .rmedal { font-style: normal; font-size: 0.9em; margin-right: -0.2rem; }
.rallyside .rrule { text-align: center; margin: -0.3rem 0 0.2rem; font-size: 0.85rem; font-weight: 800; opacity: 0.7; line-height: 1.25; }
.rallyv.done .mapbox { opacity: 0.6; pointer-events: none; }
/* Finale: eigener Tank am Handy, Tank im Ergebnis */
.tripv .qtxt { font-size: 17px; padding: 8px 12px; }
.tripme { display: flex; flex-direction: column; gap: 5px; flex: none; }
.tripme .tm-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 900; font-size: 14px; }
.tripme .tm-pax { background: rgba(255, 255, 255, 0.12); border: 2px dashed rgba(255, 255, 255, 0.5); border-radius: 12px; padding: 6px 10px; font-weight: 800; font-size: 14px; line-height: 1.3; text-align: center; }
.tgauge { position: relative; height: 26px; border-radius: 99px; border: 2px solid var(--ink); background: rgba(255, 255, 255, 0.85); overflow: hidden; box-shadow: var(--shadow-sm); }
.tgauge i { position: absolute; inset: 0 auto 0 0; width: var(--to); background: linear-gradient(90deg, #2f7d4a, #6cc58a); border-radius: 99px; }
.tgauge span { position: relative; display: grid; place-items: center; height: 100%; color: var(--ink); font-weight: 900; font-size: 14px; }
.tgauge.reserve i { background: linear-gradient(90deg, #a1161b, #e2522f); animation: tripBlink 0.6s steps(2, jump-none) infinite; }
.resultv .tgauge { width: min(100%, 22rem); }
.resultv .tgauge i { animation: tripDrain 1.6s 0.5s cubic-bezier(0.45, 0, 0.55, 1) both; }
.resultv .tgauge.reserve i { animation: tripDrain 1.6s 0.5s cubic-bezier(0.45, 0, 0.55, 1) both, tripBlink 0.6s 2.1s steps(2, jump-none) infinite; }
.resultv .tgauge.crash { border-color: #a1161b; animation: shake 0.5s 2.1s; }
@keyframes tripDrain { from { width: var(--from); } }
.trippax { font-weight: 800; opacity: 0.85; }
/* Kompass */
.cpqtxt { display: flex; align-items: center; justify-content: center; gap: 10px; }
/* Ergebnisse */
.geoans { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.geoans .geoshape.small { width: 64px; height: 64px; }
.geoans .geoshape.small path { fill: var(--ink); stroke: var(--ink); }
.heatans .hdots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; width: 100%; }
.heatans .hdots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); }
.rallyans, .nbans { gap: 4px 10px; font-weight: 900; font-size: 15px; }
.rallyans .ok, .nbans .ok { color: #1f7a45; }
.rallyans .bad { color: #b0301b; }
.nbans span:not(.ok) { opacity: 0.6; }

/* ================================================================ PC-Antwortleiste */
.pc-heatlist { display: flex; gap: 0.4rem; overflow: hidden; flex-wrap: nowrap; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.pc-heatlist .hguess { font-size: 0.8rem; }
.pc-rtarget b { font-size: 1.3em; }
.pc-rdots { color: var(--ink); }
.pc-nbfound { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.pc-nbfound span { background: #8fd19e; color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 0 0.6em; font-weight: 900; font-size: 0.85rem; }

/* Niedrige Fenster: Reiseroute der Rallye dichter, damit das Ziel nicht abgeschnitten wird */
@media (max-height: 800px) {
  .rroute { gap: 0.2rem; }
  .rst, .rfinish { padding: 0.12rem 0.45rem; }
  .rst > b, .rfinish > b { width: 1.6rem; height: 1.6rem; font-size: 1rem; }
}

/* ------------------------------------------------ Rundenintro: Requisit (intro-props.js) */
/* Fernweh: Bordkarte hochkant */
.rp-pass { width: 33em; height: 58em; transform: rotate(-3deg); }
.rp-pass .body { position: absolute; inset: 0; background: #f7eedb; border: 0.4em solid var(--ink); border-radius: 2em; box-shadow: 0 1.2em 0 rgba(12, 3, 36, 0.45); display: grid; grid-template-rows: auto auto auto 1fr auto; overflow: hidden; color: var(--ink); }
.rp-pass .hd { background: #1d4e89; color: #fff; font-family: var(--font-poster); font-size: 2.6em; letter-spacing: 0.12em; padding: 0.5em 0.7em; }
.rp-pass .route { padding: 0.8em 1.6em 0; font-family: var(--font-poster); line-height: 0.85; }
.rp-pass .route small { display: block; font-size: 3.2em; color: #c0392b; letter-spacing: 0.08em; }
.rp-pass .route b { font-size: 16em; font-weight: 400; }
.rp-pass .grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0.4em 1.6em; font-family: var(--font-poster); }
.rp-pass .grid span { font-size: 2.2em; color: #7a6a52; letter-spacing: 0.06em; }
.rp-pass .grid b { display: block; font-size: 1.6em; color: var(--ink); font-weight: 400; }
.rp-pass .stub { border-top: 0.35em dashed #b9a98a; margin: 0 1em; padding: 1.6em 0.6em 1.8em; }
.rp-pass .stub i { display: block; height: 6em; background: repeating-linear-gradient(90deg, var(--ink) 0 0.35em, transparent 0.35em 0.7em, var(--ink) 0.7em 0.9em, transparent 0.9em 1.5em); }
.rp-pass .stamp { position: absolute; right: 0.5em; top: 10.2em; transform: rotate(-14deg); font-family: var(--font-poster); font-size: 3.6em; color: #c0392b; border: 0.14em solid #c0392b; border-radius: 0.2em; padding: 0 0.3em; opacity: 0.85; animation: stamp 0.45s 1.5s var(--ease-back) both; }
.rp-pass .rp-ic { right: -6em; top: -5em; transform: rotate(10deg); }

