/* DopaSpeak landing page as an explainer game: a fixed 3D island path (scene.js) behind,
   the stations as cards on top. Colours follow the game's daylight island look, not the old pink. */
:root {
  /* Farbkarte (design/farbkarte.html): warm plum text, paper clay, coral main action */
  --ink: #4A3236;
  --ink-soft: #6E5458;
  --ink-mute: #8A6E68;
  --plum: #4B3346;
  --paper: #FFF9F0;
  --card: #FFF9F0;
  --line: rgba(170, 125, 100, .22);
  --coral-1: #F7AE97; --coral-2: #E7826C; --coral-ink: #D0664E;
  --sky-1: #CFE0F2; --sky-2: #A9C3E2; --sky: #5A7FB0; --sky-soft: #E3ECF7;
  --sage-1: #D7E8C8; --sage-2: #B4D19F; --leaf: #5E8E48; --leaf-soft: #E6F0DC;
  --honey-1: #FFE3A6; --honey-2: #F2C46E;
  --sunk-1: #F1E3D0; --sunk-2: #EAD9C3;
  --r: 28px;
  --felt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .3 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  --clay: inset 0 2px 0 rgba(255,255,255,.95), inset 0 -6px 14px rgba(170,125,100,.16), inset 0 0 0 1px rgba(255,255,255,.55), 0 22px 44px rgba(70,45,80,.28), 0 6px 14px rgba(70,45,80,.16);
  --shadow: var(--clay);
  --nav-h: 64px;
  --f-head: 'Bricolage Grotesque', 'Bricolage Fallback', Nunito, system-ui, sans-serif;
  --f-body: Nunito, 'Figtree Fallback', system-ui, sans-serif;
  --f-hand: 'Patrick Hand', 'Hand Fallback', 'Comic Sans MS', cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font: 600 17px/1.6 var(--f-body); color: var(--ink);
  background: #E6DAEE;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sky); }
h1, h2 { text-wrap: balance; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--coral-2); outline-offset: 3px; }

/* ---------- sky fallback: a still of the start island (visible before the 3D scene loads and without WebGL) ---------- */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--poster-wide, url(poster-wide.webp?v=20261021c)) center / cover no-repeat, linear-gradient(180deg, #ABA3E4 0%, #E8CDEB 45%, #F7E6EE 75%, #E6DAEE 100%);
}
@media (max-width: 760px), (max-width: 1000px) and (orientation: portrait) {
  .sky { background: var(--poster-tall, url(poster-tall.webp?v=20261021c)) center top / cover no-repeat, linear-gradient(180deg, #ABA3E4 0%, #E8CDEB 45%, #F7E6EE 75%, #E6DAEE 100%); }
}
#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
#world.on { opacity: 1; }
body.past-hero:not(.has-3d) .sky { filter: blur(10px) saturate(.85); transform: scale(1.05); transition: filter .6s ease; }
html:not(.js) .tok .d { filter: none; opacity: 1; }

/* ---------- buttons: clay knobs; .btn-play / .btn-ghost carry a plush fur layer (::before) when the art is there ---------- */
.btn {
  --c1: #FFFBF4; --c2: #EFE1CE; --sh: 150, 115, 90;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 900 16px/1 var(--f-body); color: var(--ink); text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 999px; border: 0;
  background: var(--felt), linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: inset 0 2px 1px rgba(255,255,255,.75), inset 0 -4px 8px rgba(var(--sh),.28), 0 7px 14px rgba(var(--sh),.3), 0 2px 3px rgba(var(--sh),.25);
  transition: transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn::before { content: ""; position: absolute; inset: -5px -7px; z-index: -1; border-radius: inherit; background: var(--plush, none) center / 100% 100% no-repeat; pointer-events: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px) scale(.99); box-shadow: inset 0 2px 3px rgba(var(--sh),.3), 0 2px 5px rgba(var(--sh),.25); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-play { --c1: var(--coral-1); --c2: var(--coral-2); --sh: 180, 90, 70; color: #fff; text-shadow: 0 1px 2px rgba(150,60,40,.35); }
.btn-ghost { --c1: var(--sky-1); --c2: var(--sky-2); --sh: 80, 110, 160; color: #2F4A72; }
.has-plush .btn-play { --plush: url(/app/img/deco/plush/pill_coral.webp); background: none; box-shadow: none; }
.has-plush .btn-ghost { --plush: url(/app/img/deco/plush/pill_sky.webp); background: none; box-shadow: none; }
.btn-lg { font-size: 18px; padding: 17px 26px; }
.btn-sm { font-size: 14px; padding: 10px 15px; }

/* ---------- navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: rgba(255, 249, 240, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(70, 45, 80, .12); }
.nav-inner { max-width: 1280px; margin: 0 auto; height: var(--nav-h); display: flex; align-items: center; gap: 20px; padding: 0 16px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 800 20px var(--f-head); }
.logo img { border-radius: 22%; }
.nav-links { display: flex; gap: 22px; margin-inline-start: 12px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; padding: 8px 10px; border-radius: 999px; color: var(--ink-soft); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-width: 260px; }
.lang-menu a { color: var(--ink); text-decoration: none; padding: 7px 10px; border-radius: 10px; font-size: 15px; }
.lang-menu a:hover { background: var(--sunk-1); }
.menu-toggle { display: none; padding: 8px; width: 42px; height: 42px; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .ico-x, .menu-toggle[aria-expanded="true"] .ico-burger { display: none; }
.menu-toggle[aria-expanded="true"] .ico-x { display: block; }
.mobile-menu { display: grid; padding: 6px 16px 14px; gap: 2px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { color: var(--ink); text-decoration: none; font: 800 18px var(--f-head); padding: 11px 4px; border-bottom: 1px solid var(--line); }
.trail { height: 5px; background: rgba(170, 125, 100, .16); }
.trail-fill { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--coral-1), var(--coral-2)); border-radius: 0 4px 4px 0; transition: width .15s linear; }

/* ---------- stations ---------- */
main { position: relative; z-index: 2; }
.station { position: relative; min-height: 130vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 16px 24px; }
.station-goal { min-height: 115vh; }
.hero { min-height: 100vh; }
.card {
  position: relative; width: 100%; max-width: 520px; margin-left: max(0px, calc(5vw - 16px));
  background: var(--felt), linear-gradient(170deg, #FFF9F0 0%, #F6EBDC 60%, #EFE1CE 100%); border-radius: var(--r); box-shadow: var(--clay);
  padding: 26px 26px 22px;
}
.card-wide { max-width: 640px; }
.card-hero { max-width: 600px; padding: 32px 30px 26px; }
.badge { display: inline-block; background: linear-gradient(180deg, var(--sunk-1), var(--sunk-2)); box-shadow: inset 0 1px 2px rgba(140,100,80,.25), 0 1px 0 #fff; color: var(--ink-mute); font: 900 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px 6px; border-radius: 999px; margin-bottom: 14px; }
.badge-goal { background: linear-gradient(180deg, #B9D7A4, #8FB977); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 6px rgba(60,100,50,.25); }
.eyebrow { display: block; font: 900 12.5px/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: 10px; }
h1 { font-size: clamp(38px, 6.2vw, 66px); line-height: 1.02; margin-bottom: 18px; }
h1 .h1-a { display: block; }
.accent { color: var(--coral-2); }
.sec-head { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.sec-head-sm { font-size: clamp(24px, 2.6vw, 30px); }
h3 { font-size: 24px; margin: 4px 0 10px; }
.hero-sub { font-size: 18px; color: var(--ink-soft); }
.hero-game { font-size: 18px; font-weight: 600; }
.lead { font-size: 18px; color: var(--ink-soft); }
.step-num { font: 800 15px var(--f-head); color: var(--ink-mute); margin-top: 18px; }
.game-line { background: linear-gradient(180deg, var(--sage-1), #CBE0B8); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -3px 6px rgba(90,130,70,.16); border-radius: 18px; padding: 12px 14px; font-size: 16px; }
.game-line b { color: var(--leaf); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.actions-center { justify-content: center; }
.note { font-size: 14px; color: var(--ink-mute); margin: 0; }
.note strong { color: var(--ink); }
.scroll-cue { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--ink); text-decoration: none; font: 800 15px var(--f-head); }
.scroll-cue svg { width: 22px; height: 22px; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(5px); } }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.links a, .more { font-weight: 700; text-decoration: none; }
.links a::after, .more::after { content: " →"; }
.links a:hover, .more:hover { text-decoration: underline; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 14px; }
.chips li { background: linear-gradient(180deg, var(--sky-1), #BFD4EC); color: #3F5E8C; font-weight: 800; font-size: 14px; padding: 6px 13px; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 5px rgba(80,110,160,.18); }
.chips-lang li { background: linear-gradient(180deg, #FFFBF4, var(--sunk-1)); color: var(--ink); }
.feat + .feat { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.feat h3 { font-size: 22px; }
.founder p { font-size: 17px; }
.founder .sig { font: 800 italic 19px var(--f-body); color: var(--ink-soft); margin: 4px 0 0; }

/* ---------- mini demo: decode ---------- */
.decode { margin: 14px 0 16px; background: linear-gradient(180deg, var(--sunk-1), #F3E8DA); box-shadow: inset 0 2px 5px rgba(140,100,80,.22), 0 1px 0 #fff; border-radius: 22px; padding: 14px 14px 12px; }
.decode-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.decode-pair { font: 900 12.5px var(--f-body); background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); color: #2F4A72; padding: 5px 11px; border-radius: 999px; }
.decode-hint { color: var(--ink-mute); font-weight: 600; }
.decode-tokens { display: flex; flex-wrap: wrap; gap: 8px 8px; min-height: 86px; }
.tok { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; padding: 0; background: none; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.tok .w { display: block; font: 900 20px/1 var(--f-body); padding: 12px 14px 11px; border-radius: 16px; background: var(--felt), linear-gradient(180deg, var(--honey-1), var(--honey-2)); box-shadow: inset 0 2px 1px rgba(255,255,255,.7), inset 0 -4px 7px rgba(170,120,40,.3), 0 5px 10px rgba(170,120,40,.28); transition: transform .12s ease; }
.tok:nth-child(4n+2) .w { background: var(--felt), linear-gradient(180deg, var(--sky-1), var(--sky-2)); box-shadow: inset 0 2px 1px rgba(255,255,255,.7), inset 0 -4px 7px rgba(80,110,160,.3), 0 5px 10px rgba(80,110,160,.28); }
.tok:nth-child(4n+3) .w { background: var(--felt), linear-gradient(180deg, var(--sage-1), var(--sage-2)); box-shadow: inset 0 2px 1px rgba(255,255,255,.7), inset 0 -4px 7px rgba(90,130,70,.3), 0 5px 10px rgba(90,130,70,.28); }
.tok:nth-child(4n+4) .w { background: var(--felt), linear-gradient(180deg, #FBC2B0, #EF9C86); box-shadow: inset 0 2px 1px rgba(255,255,255,.7), inset 0 -4px 7px rgba(180,90,70,.3), 0 5px 10px rgba(180,90,70,.28); }
.tok:active .w { transform: translateY(2px); }
.tok .d { font: 400 21px/1.1 var(--f-hand); color: var(--ink-soft); filter: blur(5px); opacity: .55; transition: filter .25s ease, opacity .25s ease; user-select: none; }
.tok.on .d { filter: none; opacity: 1; color: var(--sky); }
.decode-meaning { min-height: 1.6em; margin: 8px 0 8px; font-weight: 700; }
.decode-meaning:empty::before { content: attr(data-hint); font-weight: 500; color: var(--ink-mute); font-size: 14px; }
.decode-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- mini demo: balloons ---------- */
.balloons { margin: 16px 0 4px; background: linear-gradient(180deg, #DCD3F1, #F6E3EE 70%, #FBEDE6); box-shadow: inset 0 2px 6px rgba(90,70,120,.18), 0 1px 0 #fff; border-radius: 22px; padding: 14px 10px 12px; text-align: center; }
.balloons-q { font: 900 19px var(--f-body); margin-bottom: 6px; }
.balloons-row { display: flex; justify-content: center; gap: 6px; }
.balloon { position: relative; display: flex; flex-direction: column; align-items: center; border: 0; background: none; cursor: pointer; padding: 0 0 6px; width: 31%; max-width: 120px; font: inherit; color: var(--ink); -webkit-tap-highlight-color: transparent; animation: bob 3s ease-in-out infinite; }
.balloon:nth-child(2) { animation-delay: -1s; }
.balloon:nth-child(3) { animation-delay: -2s; }
.balloon::before { content: ""; display: block; width: 62px; height: 74px; margin: 0 auto; border-radius: 50% 50% 48% 48%; border: 2.5px solid var(--plum); background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.85) 0 9%, transparent 10%), radial-gradient(circle at 40% 30%, rgba(255,255,255,.35), transparent 60%), var(--bc, #F49A84); transition: transform .2s ease, opacity .2s ease; }
.balloon::after { content: ""; display: block; order: 1; width: 2px; height: 22px; margin: 0 auto; background: var(--plum); }
.balloon span { order: 2; }
.balloon span { display: inline-block; font: 900 15px var(--f-body); background: var(--paper); border-radius: 12px; padding: 6px 9px; white-space: nowrap; box-shadow: inset 0 1px 0 #fff, 0 3px 6px rgba(70,45,80,.18); }
.b1 { --bc: #F49A84; } .b2 { --bc: #93BCEE; } .b3 { --bc: #FFCF72; }
.balloon.popped::before { transform: scale(1.5); opacity: 0; }
.balloon.popped::after { opacity: 0; }
.balloon.popped span { background: linear-gradient(180deg, #B9D7A4, #8FB977); color: #fff; }
.balloon.nope { animation: shake .4s ease; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.balloons-res { min-height: 1.5em; margin: 8px 0 0; font: 900 18px var(--f-body); }
.balloons-res.ok { color: var(--leaf); }
.balloons-res.bad { color: var(--coral-ink); }

/* ---------- stars ---------- */
.stars { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stars li { text-align: center; background: linear-gradient(180deg, #FFF3D6, var(--honey-1)); box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 4px 10px rgba(170,120,40,.18); border-radius: 18px; padding: 10px 6px; font-weight: 800; font-size: 14px; line-height: 1.3; }
.stars b { display: block; font-size: 30px; line-height: 1.1; color: var(--honey-2); text-shadow: 0 2px 0 #C9963F; }

/* ---------- comparison ---------- */
.cmp { margin-top: 8px; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.4); box-shadow: inset 0 0 0 1px var(--line); }
.cmp-row { display: grid; grid-template-columns: 1fr 1.1fr 1.5fr; }
.cmp-row > div { padding: 11px 12px; font-size: 15px; border-top: 1px solid var(--line); }
.cmp-head > div { border-top: 0; font: 800 14px var(--f-head); background: var(--sunk-1); }
.cmp .lbl { font-weight: 800; }
.cmp .them { color: var(--ink-mute); }
.cmp .us { background: var(--leaf-soft); font-weight: 600; }
.cmp-head .us { background: var(--sage-1); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 2px; font: 800 18px/1.3 var(--f-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(180deg, var(--honey-1), var(--honey-2)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 3px 6px rgba(170,120,40,.3); display: grid; place-items: center; font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 2px 16px; color: var(--ink-soft); font-size: 16px; }

/* ---------- goal + read more ---------- */
.card-goal { text-align: center; max-width: 600px; }
.goal-cat { margin: 4px auto 14px; border-radius: 26%; box-shadow: 0 10px 22px rgba(70, 45, 80, .22); }
.card-goal h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; }
.readmore { position: relative; padding: 0 16px 90px; display: flex; }
.more-list { display: flex; flex-wrap: wrap; gap: 8px; }
.more-list a { background: linear-gradient(180deg, #FFFBF4, var(--sunk-1)); box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(70,45,80,.14); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.more-list a:hover { color: var(--coral-ink); }

/* ---------- stickers: the game's figures sit on the cards, a cat naps on top, plants stand at the foot
   (decorative, added by landing.js when the art is there; bottoms are aligned with anchors.json) ---------- */
.sticker { position: absolute; z-index: 3; pointer-events: none; user-select: none; height: auto; filter: drop-shadow(0 8px 10px rgba(70, 45, 80, .18)); }
.st-sit { right: 22px; width: 132px; }
.st-sit.l { right: auto; left: 22px; }
.st-lean { left: -34px; width: 150px; }
.st-cat { right: 70px; width: 128px; }
.st-plant { bottom: -14px; width: 74px; }
.st-plant.l { left: -18px; } .st-plant.r { right: -16px; }
.st-plant.r2 { right: 44px; width: 58px; }
@media (max-width: 760px), (max-width: 1000px) and (orientation: portrait) {
  .st-sit { width: 104px; right: 14px; } .st-lean { width: 118px; left: -10px; } .st-cat { width: 100px; right: 50px; }
  .st-plant { width: 58px; } .st-plant.r2 { width: 46px; right: 34px; }
}

/* ---------- floating play button (phones) ---------- */
.nav-cta-short { display: none; }

/* ---------- footer ---------- */
footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 34px; background: linear-gradient(rgba(255, 249, 240, 0), var(--paper)); pointer-events: none; }
footer { position: relative; z-index: 2; background: var(--felt), var(--paper); padding: 44px 16px 26px; }
.foot-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 3fr; gap: 32px; }
.foot-brand p { color: var(--ink-mute); margin-top: 10px; font-size: 15px; }
.foot-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.foot-links h4 { font-size: 15px; margin-bottom: 10px; }
.foot-links a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 14px; padding: 3px 0; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { max-width: 1200px; margin: 30px auto 0; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-mute); }
.foot-bottom p { margin: 0; }

/* ---------- desktop: cards left, the path and the walker on the right ---------- */
@media (min-width: 1100px) {
  .card { margin-left: max(0px, calc(7vw - 16px)); }
}

/* ---------- tablet and phone ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot-links { grid-template-columns: repeat(3, 1fr); }
}
/* phones, and tablets held upright: the scene shows above each card */
@media (max-width: 760px), (max-width: 1000px) and (orientation: portrait) {
  :root { --nav-h: 58px; }
  body { font-size: 16px; }
  .nav-inner { gap: 8px; padding: 0 12px; }
  .logo { font-size: 18px; }
  .nav-cta { display: none; }
  .nav-cta-short { display: inline-flex; padding: 8px 14px; }
  .lang summary { padding: 8px 6px; }
  /* the scene shows above each card: the walker stands in the upper part of the screen */
  .station { min-height: 0; display: block; padding: 50vh 16px 22vh; }
  .hero { min-height: 100vh; padding: calc(var(--nav-h) + clamp(90px, 20vh - 20px, 170px)) 16px 40vh; }
  .station-goal { padding-bottom: 8vh; }
  .card, .card-wide, .card-hero, .card-goal { max-width: 640px; margin: 0 auto; padding: 22px 18px 18px; }
  .readmore { display: block; }
  .card-hero { padding-top: 24px; }
  h1 { font-size: clamp(34px, 9.6vw, 44px); }
  .hero-sub, .hero-game, .lead { font-size: 16.5px; }
  h3 { font-size: 22px; }
  .actions .btn-lg { width: 100%; }
  .cmp-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row .lbl { grid-column: 1 / -1; background: var(--sunk-1); padding: 8px 12px; }
  .cmp-row .them, .cmp-row .us { border-top: 0; }
  .cmp-row .them::before, .cmp-row .us::before { content: attr(data-col); display: block; font: 800 11px var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); margin-bottom: 2px; }
  .faq summary { font-size: 17px; }
  .foot-links { grid-template-columns: 1fr 1fr; }
  .readmore { padding-bottom: 60px; }
}
@media (max-width: 380px) {
  .tok .w { font-size: 18px; padding: 10px 10px 9px; }
  .balloon span { font-size: 13px; padding: 5px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg, .balloon { animation: none; }
  #world { transition: none; }
}
@media (max-width: 380px) {
  .hero-sub, .hero-game { font-size: 15.5px; }
  .card-hero h1 { margin-bottom: 12px; }
}
/* phones held sideways: little height, keep the hero compact */
@media (max-height: 520px) and (orientation: landscape) {
  h1 { font-size: 34px; margin-bottom: 10px; }
  .card-hero { padding: 20px 22px 18px; }
  .hero-sub, .hero-game { font-size: 15px; }
  .station { min-height: 150vh; }
}

/* one coral action per view: the play button in the bar stays paper while the page shows its own */
.nav .btn-play { --c1: #FFFBF4; --c2: #EFE1CE; --sh: 150, 115, 90; color: var(--coral-ink); text-shadow: none; }

/* other page languages (2026-10-23): fonts per script, right-to-left layout for Arabic.
   Bricolage has Latin only, so scripts without it take the body face for headings too. */
:root:lang(ru) { --f-head: Nunito, system-ui, sans-serif; --f-hand: Nunito, system-ui, sans-serif; }
:root:lang(ar) { --f-head: 'Baloo Bhaijaan 2', Nunito, Tahoma, sans-serif; --f-body: 'Baloo Bhaijaan 2', Nunito, Tahoma, sans-serif; --f-hand: 'Baloo Bhaijaan 2', Nunito, Tahoma, sans-serif; }
:root:lang(hi) { --f-head: Nunito, 'Baloo 2', 'Nirmala UI', sans-serif; --f-body: Nunito, 'Baloo 2', 'Nirmala UI', sans-serif; --f-hand: Nunito, 'Baloo 2', 'Nirmala UI', sans-serif; }
:root:lang(ja) { --f-body: Nunito, 'Hiragino Maru Gothic ProN', 'Yu Gothic UI', Meiryo, 'Noto Sans JP', sans-serif; --f-hand: var(--f-body); --f-head: Nunito, 'DS Head JA', var(--f-body); }
:root:lang(ko) { --f-body: Nunito, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; --f-hand: var(--f-body); --f-head: Nunito, 'DS Head KO', var(--f-body); }
:root:lang(zh) { --f-head: Nunito, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; --f-body: var(--f-head); --f-hand: var(--f-head); }
/* joined scripts break apart with letter-spacing; CJK and Devanagari need none either */
:lang(ar) *, :lang(hi) *, :lang(ja) *, :lang(ko) *, :lang(zh) * { letter-spacing: 0 !important; }
[dir=rtl] .links a::after, [dir=rtl] .more::after { content: " ←"; }
[dir=rtl] .trail-fill { border-radius: 4px 0 0 4px; }
/* cards stay on the left like the master: the 3D scene is composed for a walker on the right; only the text runs right to left */
[dir=rtl] .station, [dir=rtl] .readmore { direction: ltr; } [dir=rtl] .station > *, [dir=rtl] .readmore > * { direction: rtl; }
/* the hidden skip link sits off-screen on the end side; on the left it widened right-to-left pages by 1000px */
[dir=rtl] .skip { left: auto; right: -999px; } [dir=rtl] .skip:focus { right: 8px; }
/* line breaks: Korean breaks between words, Japanese between phrases; Chinese system faces have no 600 weight */
:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) body { word-break: auto-phrase; line-break: strict; }
:lang(ja) body, :lang(ko) body, :lang(zh) body { font-weight: 400; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { font-weight: 700; }
/* these scripts have no italics; the browser would slant them artificially */
:lang(ar) *, :lang(hi) *, :lang(ja) *, :lang(ko) *, :lang(zh) * { font-style: normal !important; }
/* the still before the 3D scene shows the scene's words, so each language has its own render */
:root:lang(en) { --poster-wide: url(poster-wide-en.webp?v=20261023b); --poster-tall: url(poster-tall-en.webp?v=20261023b); }
:root:lang(es) { --poster-wide: url(poster-wide-es.webp?v=20261023b); --poster-tall: url(poster-tall-es.webp?v=20261023b); }
:root:lang(fr) { --poster-wide: url(poster-wide-fr.webp?v=20261023b); --poster-tall: url(poster-tall-fr.webp?v=20261023b); }
:root:lang(it) { --poster-wide: url(poster-wide-it.webp?v=20261023b); --poster-tall: url(poster-tall-it.webp?v=20261023b); }
:root:lang(pt) { --poster-wide: url(poster-wide-pt.webp?v=20261023b); --poster-tall: url(poster-tall-pt.webp?v=20261023b); }
:root:lang(tr) { --poster-wide: url(poster-wide-tr.webp?v=20261023b); --poster-tall: url(poster-tall-tr.webp?v=20261023b); }
:root:lang(ru) { --poster-wide: url(poster-wide-ru.webp?v=20261023b); --poster-tall: url(poster-tall-ru.webp?v=20261023b); }
:root:lang(ja) { --poster-wide: url(poster-wide-ja.webp?v=20261023b); --poster-tall: url(poster-tall-ja.webp?v=20261023b); }
:root:lang(ko) { --poster-wide: url(poster-wide-ko.webp?v=20261023b); --poster-tall: url(poster-tall-ko.webp?v=20261023b); }
:root:lang(zh) { --poster-wide: url(poster-wide-zh.webp?v=20261023b); --poster-tall: url(poster-tall-zh.webp?v=20261023b); }
:root:lang(ar) { --poster-wide: url(poster-wide-ar.webp?v=20261023b); --poster-tall: url(poster-tall-ar.webp?v=20261023b); }
:root:lang(hi) { --poster-wide: url(poster-wide-hi.webp?v=20261023b); --poster-tall: url(poster-tall-hi.webp?v=20261023b); }
/* Devanagari vowel signs need room above and below; Baloo at 600 reads heavy */
:lang(hi) body { font-weight: 500; line-height: 1.75; }
:lang(hi) h1, :lang(hi) h2 { line-height: 1.3; }
/* rounded heading faces for Japanese and Korean, subset to the page's heading characters
   (M PLUS Rounded 1c 800, Jua; OFL). Rebuild with build_head_fonts.sh when heading texts change. */
@font-face { font-family: 'DS Head JA'; font-weight: 400 900; font-display: swap; src: url(head-ja.woff2?v=20261023b) format('woff2'); }
@font-face { font-family: 'DS Head KO'; font-weight: 400 900; font-display: swap; src: url(head-ko.woff2?v=20261023b) format('woff2'); }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) h4 { font-synthesis: none; }
