/* zeitenwende.at: theme, static page and game-world layout.
   Fonts: Lato (SIL OFL 1.1), self-hosted, licence in assets/fonts/OFL.txt. */

@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url("assets/fonts/Lato-Light.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/Lato-Regular.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/Lato-Bold.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("assets/fonts/Lato-Black.woff2") format("woff2"); }

:root {
  --cw-canvas: #050b1c;  --cw-surface: #0b1733;
  --cw-ink: #eef6ff;     --cw-ink-soft: #a6bcdc;
  --cw-accent: #5fe3ff;  --cw-accent-ink: #03101f;
  --cw-font-display: "Lato", system-ui, sans-serif;
  --cw-font-text: "Lato", system-ui, sans-serif;
  --cw-font-mono: "Lato", system-ui, sans-serif;
  --cw-shadow-color: 222 70% 3%;
  --zw-r-panel: 18px;
  --zw-r-ctl: 10px;
  --zw-line: rgba(95, 227, 255, 0.2);
  --zw-dark: 0;
}

body { background: var(--cw-canvas); letter-spacing: 0.005em; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--cw-font-display); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  background: var(--cw-accent); color: var(--cw-accent-ink);
  padding: 10px 14px; border-radius: var(--zw-r-ctl); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform 160ms var(--cw-ease-out);
}
.skip:focus-visible { transform: none; }

/* ------------------------------------------------------------- the bar -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--cw-z-chrome);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--cw-gutter);
  background: linear-gradient(to bottom, rgba(3, 8, 20, 0.86), rgba(3, 8, 20, 0));
}
.bar__mark {
  font-weight: 900; font-size: 1.05rem; letter-spacing: 0.02em; text-decoration: none; color: var(--cw-ink);
  padding: 6px 0;
}
.map { position: relative; }
.map__list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(10px, 2.2vw, 28px); }
.map__stop {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px;
  color: var(--cw-ink-soft); text-decoration: none; font-size: 0.86rem; letter-spacing: 0.04em;
  transition: color 160ms var(--cw-ease-out);
}
.map__stop::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: transparent; border: 1.5px solid currentColor; flex: none;
}
.map__stop[aria-current] { color: var(--cw-ink); }
.map__stop[aria-current]::before { background: var(--cw-accent); border-color: var(--cw-accent); }
@media (hover: hover) and (pointer: fine) { .map__stop:hover { color: var(--cw-ink); } }
.map__you { display: none; }

/* --------------------------------------------------------------- shared -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--zw-r-ctl);
  font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 160ms var(--cw-ease-out), color 160ms var(--cw-ease-out), border-color 160ms var(--cw-ease-out), transform 120ms var(--cw-ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--cw-accent); color: var(--cw-accent-ink); }
.btn--ghost { background: rgba(5, 14, 34, 0.6); color: var(--cw-ink); border-color: rgba(95, 227, 255, 0.5); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #9aefff; }
  .btn--ghost:hover { border-color: var(--cw-accent); background: rgba(95, 227, 255, 0.1); }
}
.link { color: var(--cw-ink); font-weight: 700; text-underline-offset: 0.25em; text-decoration-color: rgba(95, 227, 255, 0.6); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }
.share__status { font-size: 0.88rem; color: var(--cw-accent); min-height: 1.2em; overflow-wrap: anywhere; }

.station__title { font-weight: 900; font-size: var(--cw-t-xl); line-height: 1.08; letter-spacing: -0.01em; }
.station__lede { font-size: var(--cw-t-lg); line-height: 1.4; margin-top: 14px; max-width: 40ch; text-wrap: pretty; }
.station__body { color: var(--cw-ink-soft); margin-top: 12px; max-width: 52ch; text-wrap: pretty; }

/* arrival */
.hero__title { font-weight: 900; line-height: 0.95; letter-spacing: -0.03em; font-size: clamp(3rem, 1.2rem + 6.4vw, 7.2rem); text-wrap: balance; }
.hero__title span { display: block; }
.hero__title span:first-child { font-weight: 300; font-size: 0.42em; letter-spacing: -0.005em; color: #cfe6ff; margin-bottom: 0.18em; }
.hero__sub { margin-top: 22px; font-size: var(--cw-t-lg); line-height: 1.45; color: var(--cw-ink-soft); max-width: 34ch; text-wrap: pretty; }

/* song */
.screen {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--zw-r-ctl); overflow: hidden;
  background: radial-gradient(ellipse at 50% 55%, #0d2550, #030915 70%);
  outline: 1px solid rgba(160, 225, 255, 0.28); outline-offset: 0;
}
.screen__video { width: 100%; height: 100%; object-fit: cover; background: #02060f; }
.screen__meta { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; margin-top: 16px; }
.screen__title { font-weight: 900; font-size: var(--cw-t-lg); letter-spacing: -0.005em; }
.screen__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.credit, .foot__credit { font-size: 0.86rem; color: var(--cw-ink-soft); margin-top: 4px; }
.lyrics { margin-top: 12px; }
.lyrics summary {
  cursor: pointer; display: inline-flex; align-items: center; min-height: 36px;
  font-weight: 700; font-size: 0.92rem; color: var(--cw-ink-soft); list-style: none;
}
.lyrics summary::-webkit-details-marker { display: none; }
.lyrics summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--cw-accent); font-weight: 900; }
.lyrics[open] summary::before { content: "\2212"; }
.lyrics__text { columns: 2 16rem; column-gap: 32px; padding-top: 8px; color: #d3e3f6; font-size: 0.95rem; line-height: 1.55; }
.lyrics__text p { break-inside: avoid; margin-bottom: 14px; }

/* theses */
.theses { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.thesis__text { font-weight: 700; font-size: var(--cw-t-lg); line-height: 1.3; letter-spacing: -0.005em; text-wrap: pretty; }
.thesis__src { font-size: 0.8rem; color: var(--cw-ink-soft); margin-top: 3px; letter-spacing: 0.03em; }

/* book */
.station--buch .station__panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.book { margin: 0; }
.book__name { font-weight: 300; font-size: var(--cw-t-lg); margin-top: 6px; color: #cfe6ff; }
.book__text .btn { margin-top: 22px; }
.book__date { margin-top: 12px; font-weight: 700; color: var(--cw-accent); }
.cover {
  position: relative; container-type: inline-size; aspect-ratio: 2 / 3; width: 100%;
  border-radius: 3px 6px 6px 3px; overflow: hidden;
  box-shadow: var(--cw-e3), inset 3px 0 0 rgba(255, 255, 255, 0.06);
  color: #f4fbff; text-align: center; line-height: 1;
}
.cover__art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.cover > span { position: absolute; left: 0; right: 0; white-space: nowrap; }
.cover__author { top: 9%; font-weight: 700; font-size: 3.75cqw; letter-spacing: 0.28em; text-transform: uppercase; color: #e8f6ff; padding-left: 0.28em; }
.cover__title { top: 67.5%; font-weight: 900; font-size: 14.5cqw; letter-spacing: -0.028em; }
.cover__sub { top: 78.4%; font-weight: 300; font-size: 5.5cqw; color: #bfeeff; }
.cover__badge { top: 88.6%; font-weight: 700; font-size: 2.62cqw; letter-spacing: 0.21em; text-transform: uppercase; color: var(--cw-accent); padding-left: 0.21em; }
.cover__pub { top: 94.3%; font-size: 2.5cqw; letter-spacing: 0.12em; color: #8aa6cc; }

/* close */
.ende__title { font-weight: 900; font-size: clamp(2rem, 1rem + 3.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; max-width: 15ch; }
.ende__sub { margin-top: 16px; color: var(--cw-ink-soft); font-size: var(--cw-t-lg); }
.ende__actions { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.ende__actions li[hidden], .ende__actions li:has(> [hidden]) { display: none; }

/* footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.86rem; color: var(--cw-ink-soft); }
.foot__links { display: flex; gap: 20px; }
.foot__links a { color: var(--cw-ink-soft); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover { color: var(--cw-ink); text-decoration: underline; } }

/* ======================================================= STATIC PAGE ==
   No JavaScript, reduced motion, or a viewport too small for the game:
   a plain, calm, readable page in the same world. */
.welt__back, .welt__front, .welt__maxerl, .bubble { display: none; }
html:not(.is-game) .welt { padding-top: 64px; }
html:not(.is-game) .station {
  padding: clamp(56px, 9vw, 120px) var(--cw-gutter);
  max-width: 76rem; margin-inline: auto;
  display: grid; gap: 28px; align-items: center;
}
html:not(.is-game) .station + .station { border-top: 1px solid rgba(95, 227, 255, 0.1); }
html:not(.is-game) .station--ankunft, html:not(.is-game) .station--ende { grid-template-columns: minmax(0, 1fr) auto; }
html:not(.is-game) .station__maxerl { order: 2; width: clamp(100px, 16vw, 170px); height: auto; }
html:not(.is-game) .station--ankunft { min-height: 82svh; }
html:not(.is-game) body:not(.legal-page) { background: radial-gradient(120% 60% at 70% 0%, #0d2352 0%, var(--cw-canvas) 70%) no-repeat, var(--cw-canvas); }
html:not(.is-game) .station--lied .station__panel { max-width: 62rem; }
html:not(.is-game) .station--thesen .station__panel,
html:not(.is-game) .station--vortrag .station__panel { max-width: 46rem; }
html:not(.is-game) .station--buch .station__panel { max-width: 56rem; }
html:not(.is-game) .foot { padding: 32px var(--cw-gutter) 40px; border-top: 1px solid rgba(95, 227, 255, 0.1); }
@media (max-width: 640px) {
  html:not(.is-game) .station--ankunft, html:not(.is-game) .station--ende { grid-template-columns: 1fr; }
  html:not(.is-game) .station__maxerl { order: 0; width: 96px; }
  html:not(.is-game) .map__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .station--buch .station__panel { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); }
}

/* ========================================================= GAME WORLD == */
.is-game body { overscroll-behavior-y: none; }
.is-game .welt { position: relative; }
.is-game .welt__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip;
  touch-action: pan-y;
}
.is-game .welt__stage.is-floor { cursor: pointer; }
.is-game .welt__back, .is-game .welt__front, .is-game .welt__maxerl {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none;
}
.is-game .welt__back { z-index: 0; }
.is-game .welt__track { position: absolute; left: 0; top: 0; width: 0; height: 100%; z-index: 2; will-change: transform; }
.is-game .welt__maxerl { z-index: 3; overflow: visible; }
.is-game .welt__front { z-index: 4; }
.is-game .station__maxerl { display: none; }
.is-game .station { position: static; }
.is-game .station__panel {
  position: absolute; left: 0; top: 0;
  opacity: 0.2;
  transition: opacity 520ms var(--cw-ease-out);
}
.is-game .station.is-on .station__panel { opacity: 1; }
.is-game .station:not(.is-on) .station__panel { pointer-events: none; }
.is-game .station--thesen .station__panel,
.is-game .station--buch .station__panel,
.is-game .station--vortrag .station__panel {
  background: rgba(8, 20, 48, 0.86);
  border: 1px solid var(--zw-line);
  border-radius: var(--zw-r-panel);
  box-shadow: var(--cw-e3), var(--cw-edge);
  padding: clamp(20px, 2.4vw, 36px);
}
.is-game .station--ende .station__panel, .is-game .station--ankunft .station__panel { padding-top: 8px; }
.is-game .station--ankunft .station__panel { opacity: 0.12; }
.is-game .station--ankunft.is-on .station__panel { opacity: 1; }

/* the cover never outgrows the free height */
.is-game .station--buch .station__panel { grid-template-columns: auto minmax(0, 1fr); }
.is-game .station--buch .book { width: min(24vw, calc((var(--avail) - 2 * clamp(20px, 2.4vw, 36px) - 4px) * 0.6667)); }
/* a panel that does not fit at full size steps its type down once */
.is-game .station__panel.is-tight { font-size: 0.92em; }
.is-game .is-tight .thesis__text { font-size: 1.05em; line-height: 1.25; }
.is-game .is-tight .theses { gap: 8px; margin-top: 10px; }
.is-game .is-tight .station__title { font-size: 1.3em; }
.is-game .is-tight .station__lede { font-size: 1.05em; margin-top: 8px; }
.is-game .is-tight .station__body { margin-top: 8px; }
.is-game .is-tight .actions { margin-top: 14px; }
.is-game .is-tight .hero__sub { margin-top: 10px; font-size: 1em; }

/* the screen switches on (an iris) when the robot has sat down */
.is-game .screen__video { clip-path: circle(0% at 50% 50%); transition: clip-path 1100ms var(--cw-ease-out); }
.is-game .station--lied.is-on .screen__video { clip-path: circle(80% at 50% 50%); }
.is-game .screen::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%;
  background: #bff8ff; opacity: 0.8; transition: opacity 400ms var(--cw-ease-out); pointer-events: none;
}
.is-game .station--lied.is-on .screen::after { opacity: 0; }
.is-game .station--lied .station__panel { opacity: 0.1; }
.is-game .station--lied.is-on .station__panel { opacity: 1; }
.is-game .lyrics__text { max-height: 34svh; overflow: auto; overscroll-behavior: contain; padding-right: 8px; }
.is-game .lyrics[open] { background: rgba(5, 12, 30, 0.94); border-radius: var(--zw-r-ctl); padding: 4px 14px 10px; margin-inline: -14px; }

/* theses light up one after another */
.is-game .thesis { opacity: 0.32; transition: opacity 420ms var(--cw-ease-out); position: relative; }
.is-game .thesis.is-past { opacity: 0.6; }
.is-game .thesis.is-lit { opacity: 1; }
.is-game .thesis::before {
  content: ""; position: absolute; left: -16px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cw-accent); opacity: 0; transition: opacity 300ms var(--cw-ease-out);
}
.is-game .thesis.is-lit::before { opacity: 1; }

/* speech bubble (the hint, once) */
.bubble {
  position: absolute; left: 0; top: 0; z-index: 5;
  translate: -50% -100%;
  max-width: min(78vw, 300px); padding: 10px 14px; border-radius: 14px;
  background: #eaf6ff; color: #071530; font-weight: 700; font-size: 0.95rem; line-height: 1.3; text-align: center; text-wrap: balance;
  box-shadow: var(--cw-e2);
  opacity: 0; scale: 0.95; transition: opacity 240ms var(--cw-ease-out), scale 240ms var(--cw-ease-out);
  pointer-events: none;
}
.bubble::after { content: ""; position: absolute; left: calc(50% + var(--tail, 0px)); bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #eaf6ff; }
.is-game .bubble { display: block; }
.bubble.is-on { opacity: 1; scale: 1; }

/* the map rail with the robot's position */
.is-game .map__list { position: relative; justify-content: space-between; }
.is-game .map__you {
  display: block; position: absolute; left: 0; bottom: -2px; width: 10px; height: 3px; margin-left: -5px;
  border-radius: 2px; background: var(--cw-accent); pointer-events: none;
}

/* footer lives on the floor of the last station */
.is-game .foot {
  position: absolute; z-index: 5; right: var(--cw-gutter); bottom: 14px; left: auto;
  opacity: 0; transition: opacity 500ms var(--cw-ease-out);
}
.is-game.at-end .foot { opacity: 1; }
.is-game .foot:focus-within { opacity: 1; }

.is-game .mx-reflection { opacity: 1; }

@media (max-width: 759px) {
  .bar { padding: 10px 16px; }
  .is-game .map__label, .map__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .map__list { gap: 6px; }
  .map__stop { min-width: 32px; min-height: 40px; justify-content: center; }
  .is-game .hero__title { font-size: clamp(2.8rem, 12.6vw, 4rem); }
  .is-game .hero__sub { font-size: 1.05rem; margin-top: 14px; }
  .is-game .station__title { font-size: 1.5rem; }
  .is-game .thesis__text { font-size: 1.04rem; }
  .is-game .theses { gap: 10px; margin-top: 12px; }
  .is-game .station--buch .station__panel { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
  .is-game .station--buch .book { width: 112px; }
  .is-game .book__name { font-size: 1.05rem; }
  .is-game .station__body { font-size: 0.95rem; }
  .is-game .station__lede { font-size: 1.1rem; }
  .is-game .ende__title { font-size: 2rem; }
  .is-game .ende__sub { font-size: 1rem; }
  .is-game .ende__actions .btn, .is-game .actions .btn { min-height: 44px; padding: 0 16px; }
  .is-game .foot { left: 16px; right: 16px; bottom: 8px; justify-content: center; text-align: center; font-size: 0.78rem; }
  .is-game .foot__credit { display: none; }
  .is-game .screen__actions { align-items: flex-start; }
}

/* ======================================================== LEGAL PAGES == */
.legal { max-width: 46rem; margin-inline: auto; padding: 120px var(--cw-gutter) 72px; }
.legal__title { font-weight: 900; font-size: var(--cw-t-2xl); line-height: 1.05; letter-spacing: -0.02em; }
.legal__note { margin-top: 18px; color: var(--cw-ink-soft); }
.legal h2 { font-weight: 900; font-size: var(--cw-t-lg); margin-top: 44px; margin-bottom: 10px; }
.legal p + p { margin-top: 12px; }
.legal p .btn { margin-top: 12px; }
.legal__list { margin: 0; display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 10px 20px; }
.legal__list dt { color: var(--cw-ink-soft); }
.legal__list dd { margin: 0; }
.ph { background: rgba(255, 196, 128, 0.14); color: #ffd9a6; padding: 1px 6px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.legal-foot { max-width: 46rem; margin-inline: auto; padding: 28px var(--cw-gutter) 40px; border-top: 1px solid rgba(95, 227, 255, 0.1); }
@media (max-width: 640px) { .legal__list { grid-template-columns: 1fr; gap: 2px; } .legal__list dd { margin-bottom: 10px; } }
[hidden] { display: none !important; }

/* ======================================================= CORNER CLOCK ==
   Progress as time: 11:00 at the start, five to twelve at the keynote,
   twelve at the close. Adapted from the clock variant, scaled down. */
.bar .map { margin-left: auto; }
.ck { flex: none; width: 46px; height: 46px; perspective: 400px; }
.ck__face { width: 100%; height: 100%; display: block; overflow: visible; transform-style: preserve-3d; }
.ck__tick { stroke: #b9d6e6; stroke-width: 22; stroke-linecap: round; }
.ck__tick--q { stroke: #eef7fb; stroke-width: 34; }
.ck__hand path { fill: #eef7fb; }
.ck__hand--hour path { fill: #dbeaf3; }
.ck__cap { fill: #0a1424; stroke: #eef7fb; stroke-width: 16; }
.ck__ring { stroke: #ff4a5e; stroke-width: 26; opacity: 0; transition: opacity 400ms var(--cw-ease-out); }
.ck.is-tense .ck__ring { opacity: 0.55; }
.ck.is-flip .ck__face { animation: ck-flip 900ms var(--cw-ease-in-out); }
@keyframes ck-flip {
  0% { transform: rotateY(0deg); }
  12% { transform: rotateY(-14deg); }
  85% { transform: rotateY(372deg); }
  100% { transform: rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) { .ck.is-flip .ck__face { animation: none; } }
@media (max-width: 759px) {
  .ck { width: 36px; height: 36px; }
  .bar { gap: 10px; }
  .bar__mark { font-size: 0.98rem; }
}
@media (max-width: 420px) {
  /* the wordmark already leads to the arrival; four stops leave room for the clock */
  .map__list > li:first-child { display: none; }
  .map__stop { min-width: 28px; }
  .map__list { gap: 4px; }
}

/* book: the longer description needs a compact layout in the game */
.is-game .station--buch .station__body { font-size: 0.98rem; line-height: 1.55; max-width: 60ch; }
.is-game .station--buch .book__text .btn { margin-top: 16px; }
@media (max-width: 759px) {
  .is-game .station--buch .station__panel { grid-template-columns: 70px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; }
  .is-game .station--buch .book { width: 70px; grid-column: 1; grid-row: 1 / span 3; }
  .is-game .station--buch .book__text { display: contents; }
  .is-game .station--buch .station__title { grid-column: 2; grid-row: 1; }
  .is-game .station--buch .book__name { grid-column: 2; grid-row: 2; margin-top: 2px; font-size: 1rem; }
  .is-game .station--buch .book__date { grid-column: 2; grid-row: 3; margin-top: 4px; font-size: 0.9rem; }
  .is-game .station--buch .station__body { grid-column: 1 / -1; grid-row: 4; margin-top: 12px; font-size: 0.9rem; line-height: 1.5; }
  .is-game .station--buch .btn { grid-column: 1 / -1; grid-row: 5; justify-self: start; margin-top: 12px; }
}
.is-game .station--buch .station__panel.is-tight .station__body { font-size: 0.88rem; line-height: 1.45; }
.is-game .station--buch .station__panel.is-tight .book { width: min(20vw, calc((var(--avail) - 76px) * 0.6667)); }
@media (max-width: 759px) {
  .is-game .station--buch .station__panel.is-tight { padding: 16px 16px 18px; grid-template-columns: 60px minmax(0, 1fr); }
  .is-game .station--buch .station__panel.is-tight .book { width: 60px; }
  .is-game .station--buch .station__panel.is-tight .station__body { font-size: 0.82rem; line-height: 1.42; margin-top: 10px; }
  .is-game .station--buch .station__panel.is-tight .btn { margin-top: 10px; min-height: 42px; }
}

/* keynote: long text, first paragraph always visible */
.vortrag__p1 { color: var(--cw-ink); font-size: 1.06rem; line-height: 1.55; margin-top: 14px; max-width: 70ch; }
.more { margin-top: 10px; }
.more summary {
  cursor: pointer; display: inline-flex; align-items: center; min-height: 40px;
  font-weight: 700; font-size: 0.95rem; color: var(--cw-accent); list-style: none;
}
.more summary::-webkit-details-marker { display: none; }
.more__close { display: none; }
.more[open] .more__open { display: none; }
.more[open] .more__close { display: inline; }
.is-full .more summary { display: none; }
.more__text { margin-top: 4px; max-width: 70ch; font-size: 0.98rem; line-height: 1.55; }
.more__text.is-scroll { overflow: auto; overscroll-behavior: contain; padding-right: 10px; scrollbar-width: thin; }
.station--vortrag .actions { margin-top: 18px; }
.is-game .station--vortrag .station__panel.is-tight .vortrag__p1 { font-size: 0.95rem; line-height: 1.48; margin-top: 10px; }
.is-game .station--vortrag .station__panel.is-tight .more__text { font-size: 0.9rem; line-height: 1.48; }
@media (max-width: 759px) {
  .is-game .vortrag__p1 { font-size: 0.92rem; line-height: 1.48; margin-top: 10px; }
  .is-game .more__text { font-size: 0.88rem; line-height: 1.48; }
  .is-game .station--vortrag .station__panel { padding: 18px; }
  .is-game .station--vortrag .actions { margin-top: 12px; gap: 10px 18px; }
}
@media (max-width: 759px) {
  .is-game .station--vortrag .station__panel.is-tight { padding: 14px 16px 16px; }
  .is-game .station--vortrag .station__panel.is-tight .vortrag__p1 { font-size: 0.86rem; line-height: 1.42; margin-top: 8px; }
  .is-game .station--vortrag .station__panel.is-tight .more { margin-top: 4px; }
}
.more__text.is-scroll { padding-bottom: 1.6em; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }

/* lyrics dialog */
.screen__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.lyrics-dlg {
  width: min(44rem, calc(100vw - 32px)); max-height: min(86svh, 52rem);
  padding: 0; border: 1px solid var(--zw-line); border-radius: var(--zw-r-panel);
  background: #08142f; color: var(--cw-ink); box-shadow: var(--cw-e3);
  overflow: auto; overscroll-behavior: contain;
}
.lyrics-dlg::backdrop { background: rgba(2, 6, 16, 0.78); }
.lyrics-dlg__head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px 14px; background: #08142f; border-bottom: 1px solid rgba(95, 227, 255, 0.12);
}
.lyrics-dlg__title { font-weight: 900; font-size: var(--cw-t-lg); }
.lyrics-dlg .lyrics__text { padding: 18px 24px 4px; columns: auto; max-height: none; overflow: visible; color: #d3e3f6; font-size: 1rem; line-height: 1.6; }
.lyrics-dlg .lyrics__text p { break-inside: avoid; margin-bottom: 16px; }
.lyrics-dlg > .credit { padding: 0 24px 22px; }
/* without JavaScript the lyrics are simply part of the page */
html:not(.is-js) .lyrics-dlg {
  display: block; position: static; width: auto; max-height: none; margin: 0 auto 64px; max-width: 62rem;
  border: 0; background: transparent; box-shadow: none; overflow: visible;
}
html:not(.is-js) .lyrics-dlg .lyrics-close { display: none; }

/* keynote duration */
.vortrag__dur { margin-top: 6px; font-weight: 700; font-size: 0.95rem; color: var(--cw-accent); }
@media (max-width: 759px) {
  .is-game .station--vortrag .station__panel.is-tight .vortrag__dur { margin-top: 2px; font-size: 0.82rem; }
  .is-game .station--vortrag .station__panel.is-tight .vortrag__p1 { line-height: 1.36; margin-top: 6px; }
  .is-game .station--vortrag .station__panel.is-tight .actions { margin-top: 8px; }
}

/* ===================================================== TOUCH + PHONES == */
/* touch: the world is driven by horizontal swipes, not by page scrolling */
@media (pointer: coarse) {
  .is-game .welt__stage, .is-game .bar { touch-action: none; }
  .is-game .more__text.is-scroll { touch-action: pan-y; }
  .is-game video { touch-action: auto; }
}

/* phone held sideways: slim header, compact panels beside the robot */
.is-short .bar { padding: 4px 16px; }
.is-short .bar__mark { font-size: 0.92rem; }
.is-short .ck { width: 30px; height: 30px; }
.is-short .map__stop { min-height: 32px; font-size: 0.78rem; }
.is-short .station__panel { font-size: 0.86rem; }
.is-short.is-game .station--buch .station__panel,
.is-short.is-game .station--vortrag .station__panel { padding: 12px 16px; }
.is-short.is-game .hero__title { font-size: clamp(2rem, 7.4vh, 2.8rem); }
.is-short.is-game .hero__sub { font-size: 0.95rem; margin-top: 10px; max-width: 46ch; }
.is-short.is-game .station__title { font-size: 1.15rem; }
.is-short.is-game .btn { min-height: 38px; padding: 0 14px; font-size: 0.88rem; }
.is-short.is-game .actions { margin-top: 10px; gap: 8px 16px; }
.is-short.is-game .vortrag__dur { font-size: 0.8rem; margin-top: 2px; }
.is-short.is-game .vortrag__p1 { font-size: 0.8rem; line-height: 1.4; margin-top: 6px; }
.is-short.is-game .more__text { font-size: 0.78rem; line-height: 1.4; }
.is-short.is-game .more summary { min-height: 30px; font-size: 0.82rem; }
/* song: the screen beside its caption */
.is-short.is-game .station--lied .station__panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: end; }
.is-short.is-game .station--lied .screen { width: min(58vw, calc((var(--avail) - 4px) * 1.7778)); }
.is-short.is-game .screen__meta { margin-top: 0; flex-direction: column; flex-wrap: nowrap; }
.is-short.is-game .screen__title { font-size: 1rem; }
.is-short.is-game .credit { font-size: 0.74rem; }
.is-short.is-game .screen__actions { align-items: flex-start; }
.is-short.is-game .screen__btns { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 6px; }
/* book: small cover beside title, the description below */
.is-short.is-game .station--buch .station__panel { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; }
.is-short.is-game .station--buch .book { width: 64px; grid-column: 1; grid-row: 1 / span 3; }
.is-short.is-game .station--buch .book__text { display: contents; }
.is-short.is-game .station--buch .station__title { grid-column: 2; grid-row: 1; }
.is-short.is-game .station--buch .book__name { grid-column: 2; grid-row: 2; margin-top: 0; font-size: 0.9rem; }
.is-short.is-game .station--buch .book__date { grid-column: 2; grid-row: 3; margin-top: 2px; font-size: 0.8rem; }
.is-short.is-game .station--buch .station__body { grid-column: 1 / -1; grid-row: 4; margin-top: 8px; font-size: 0.78rem; line-height: 1.4; max-width: none; }
.is-short.is-game .station--buch .btn { grid-column: 1 / -1; grid-row: 5; justify-self: start; margin-top: 8px; }
.is-short.is-game .ende__title { font-size: 1.7rem; }
.is-short.is-game .ende__sub { font-size: 0.88rem; margin-top: 8px; }
.is-short.is-game .ende__actions { margin-top: 12px; gap: 8px; }
.is-short.is-game .foot { bottom: 4px; font-size: 0.72rem; }
.is-short .bubble { font-size: 0.82rem; padding: 7px 10px; }

/* smartphone portrait: the classic vertical page, polished */
.tip-rotate { margin-top: 18px; font-size: 0.86rem; color: var(--cw-ink-soft); padding: 8px 12px; border: 1px dashed rgba(95, 227, 255, 0.35); border-radius: var(--zw-r-ctl); max-width: 34ch; }
html:not(.is-game) .station { scroll-margin-top: 64px; }
@media (max-width: 600px) and (orientation: portrait) {
  html:not(.is-game) body:not(.legal-page) { padding-bottom: 64px; }
  html:not(.is-game) body:not(.legal-page) .map {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--cw-z-chrome);
    background: rgba(4, 10, 24, 0.94); border-top: 1px solid rgba(95, 227, 255, 0.18);
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
  }
  html:not(.is-game) body:not(.legal-page) .map__list { justify-content: space-around; gap: 0; }
  html:not(.is-game) body:not(.legal-page) .map__list > li:first-child { display: list-item; }
  html:not(.is-game) body:not(.legal-page) .map__stop { flex-direction: column; gap: 3px; min-height: 52px; min-width: 64px; font-size: 0.78rem; justify-content: center; }
  html:not(.is-game) body:not(.legal-page) .map__label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  html:not(.is-game) body:not(.legal-page) .bar { background: rgba(4, 10, 24, 0.92); }
  html:not(.is-game) .station { padding: 28px 16px; gap: 18px; }
  html:not(.is-game) .station + .station { border-top: 0; }
  html:not(.is-game) .station--ankunft { min-height: 0; padding-top: 36px; }
  html:not(.is-game) .station--lied .station__panel,
  html:not(.is-game) .station--buch .station__panel,
  html:not(.is-game) .station--vortrag .station__panel {
    background: rgba(8, 20, 48, 0.86); border: 1px solid var(--zw-line); border-radius: var(--zw-r-panel);
    box-shadow: var(--cw-e2); padding: 18px;
  }
  html:not(.is-game) .station--lied .station__panel { padding: 0 0 18px; overflow: hidden; }
  html:not(.is-game) .station--lied .screen { border-radius: var(--zw-r-panel) var(--zw-r-panel) 0 0; outline: 0; }
  html:not(.is-game) .station--lied .screen__meta { padding: 0 18px; flex-direction: column; }
  html:not(.is-game) .screen__actions { align-items: stretch; width: 100%; }
  html:not(.is-game) .screen__btns { justify-content: flex-start; }
  html:not(.is-game) .station--buch .station__panel { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
  html:not(.is-game) .station--buch .book__text .btn { margin-top: 16px; }
  html:not(.is-game) .hero__title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  html:not(.is-game) .station__maxerl { width: 84px; }
  html:not(.is-game) .ende__title { font-size: 2rem; }
  html:not(.is-game) .foot { padding-bottom: 24px; }
}
@media (max-width: 600px) and (orientation: portrait) {
  html:not(.is-game) .station--buch .station__panel { grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; }
  html:not(.is-game) .station--buch .book { grid-column: 1; grid-row: 1 / span 3; }
  html:not(.is-game) .station--buch .book__text { display: contents; }
  html:not(.is-game) .station--buch .station__title { grid-column: 2; grid-row: 1; font-size: 1.4rem; }
  html:not(.is-game) .station--buch .book__name { grid-column: 2; grid-row: 2; font-size: 1.02rem; }
  html:not(.is-game) .station--buch .book__date { grid-column: 2; grid-row: 3; font-size: 0.9rem; }
  html:not(.is-game) .station--buch .station__body { grid-column: 1 / -1; grid-row: 4; margin-top: 14px; }
  html:not(.is-game) .station--buch .btn { grid-column: 1 / -1; grid-row: 5; justify-self: start; }
}

.is-short .bubble { max-width: 240px; }
.is-short.is-game .station--lied .station__panel { grid-template-columns: auto minmax(168px, 1fr); }
.is-short.is-game .station--lied .screen { width: min(46vw, calc((var(--avail) - 4px) * 1.7778)); }
.is-short.is-game .screen__btns .btn { white-space: nowrap; }
