/* The Danish Train Journey: game landing page. DW Innovation.
   Mobile first. System fonts only. Top bar, buttons and colours match the game pages (/dsb/journeys/). */

:root {
  --bg: #0d0e11;
  --bg-2: #14161b;
  --bg-3: #1b1e25;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef0f3;
  --muted: #a5abb6;
  --faint: #79808c;
  --red: #d2122e;
  --red-2: #ef3349;
  --red-glow: rgba(210, 18, 46, .35);
  --amber: #f2b33d;
  --green: #2fbf71;
  --sea: #0f1d27;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1120px;
  --gutter: 16px;
  --top: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); scrollbar-gutter: stable; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: #111; padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.i { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* ---------- Buttons (same as the game) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; text-align: center; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px -10px var(--red-glow); }
.btn--ghost { background: rgba(255, 255, 255, .08); border-color: var(--line-2); color: var(--text); }
.btn--dark { background: #3a3f49; color: #fff; border: 1px solid rgba(255, 255, 255, .12); }
.btn--big { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--red-2); transform: translateY(-1px); }
  .btn--ghost:hover { background: rgba(255, 255, 255, .14); }
  .btn--dark:hover { background: #474d59; }
}

/* ---------- Top bar (same as the game) ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(13, 14, 17, .72); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); transition: background-color .3s; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .topbar { background: rgba(13, 14, 17, .96); } }
.topbar__in { height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--red); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.brand__text { font-size: 15px; }
.so-bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.so-lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.so-lang button { position: relative; min-width: 42px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .06em; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.so-lang button::after { content: ""; position: absolute; inset: -4px 0; }
.so-lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (hover: hover) { .so-lang button:not([aria-pressed="true"]):hover { color: var(--text); } }
.tb-play { min-height: 44px; padding: 0 14px; font-size: 14px; white-space: nowrap; gap: 6px; }
.tb-play .i { width: 16px; height: 16px; }
@media (max-width: 379px) { .tb-play span { display: none; } .tb-play { width: 44px; padding: 0; } .tb-play .i { width: 20px; height: 20px; } }
@media (max-width: 339px) { .brand__text { display: none; } }

/* ---------- Shared section bits ---------- */
.sec { position: relative; padding: 56px 0; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--red-2); margin-bottom: 14px; }
.eyebrow--amber { color: var(--amber); }
.h2 { font-size: clamp(30px, 7.6vw, 52px); font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.h2 em { font-style: normal; color: var(--red-2); }
.lead { margin-top: 16px; font-size: 17px; color: var(--muted); max-width: 640px; text-wrap: pretty; }
.lead b { color: var(--text); font-weight: 650; }
.sec-head { margin-bottom: 36px; }
.plate { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(13, 14, 17, .45); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: calc(var(--top) + 24px) 0 40px; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; transform-origin: 30% 55%; animation: kb 28s ease-out both; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 14, 17, .55) 0%, rgba(13, 14, 17, 0) 22%, rgba(13, 14, 17, 0) 38%, rgba(13, 14, 17, .78) 66%, var(--bg) 100%); }
.hero__in { width: 100%; }
.hero__logo { width: min(56vw, 290px); height: auto; margin: 0 0 8px -2%; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .55)); }
.hero h1 { font-size: clamp(30px, 8vw, 60px); font-weight: 850; letter-spacing: -.03em; max-width: 15ch; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.hero__lede { margin-top: 14px; max-width: 560px; font-size: 17px; color: #d5d9df; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); text-wrap: pretty; }
.hero__lede b { color: #fff; }
.hero__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__act .btn { flex: 1 1 220px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero__chips .plate { font-size: 11px; color: #d0d4da; }
.hero__chips .plate b { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.scrollcue { display: none; }

/* ---------- Counters ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 22px 8px 22px 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 16px; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat__n { display: block; font: 800 clamp(30px, 8vw, 44px)/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__n small { font-size: .5em; font-weight: 700; margin-left: 3px; color: var(--muted); }
.stat__l { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.stats__note { padding: 14px 0 18px; font-size: 13px; color: var(--faint); border-top: 1px solid var(--line); }

/* ---------- USP list ---------- */
.usp { display: grid; gap: 12px; }
/* Darren's blue-hour picture behind "Why you will love it": top of the section on phones, the whole section from 900px */
.why { overflow: hidden; isolation: isolate; }
.why__bg { position: absolute; left: 0; right: 0; top: 0; height: 640px; z-index: -1; background-size: cover; background-position: 22% 50%; }
.why::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 641px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(13, 14, 17, .45) 0%, rgba(13, 14, 17, .12) 38%, rgba(13, 14, 17, .55) 72%, var(--bg) 100%); }
.why .usp li { background: rgba(21, 23, 28, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.usp li { list-style: none; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.usp ol, ol.usp { margin: 0; padding: 0; }
.usp__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(210, 18, 46, .14); color: var(--red-2); }
.usp__ico .i { width: 24px; height: 24px; }
.usp h3 { font-size: 17.5px; font-weight: 750; }
.usp p { margin-top: 4px; font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- Trains ---------- */
.trains { overflow: hidden; }
.tr-stage { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #10141a; isolation: isolate; }
.tr-bg { position: absolute; inset: 0; z-index: -2; }
.tr-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease), transform 6s ease-out; transform: scale(1.06); }
.tr-bg img.is-on { opacity: 1; transform: scale(1); }
.tr-bg img[data-train="vec"] { object-position: 88% 50%; }
@media (max-width: 959px) { .tr-bg img[data-train="vec"] { filter: brightness(.55); } }
.tr-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 15, .2) 0%, rgba(10, 12, 15, .55) 38%, rgba(10, 12, 15, .95) 70%); }
.tr-in { padding: 16px; min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.tr-tabs { display: inline-flex; align-self: flex-start; padding: 4px; border-radius: 999px; background: rgba(13, 14, 17, .7); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tr-tabs button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 750; font-size: 15px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tr-tabs button[aria-selected="true"] { background: #3a3f49; color: #fff; }
.tr-card { max-width: 560px; }
.tr-card .plate { margin-bottom: 10px; }
.tr-name { font-size: clamp(34px, 9vw, 58px); font-weight: 850; letter-spacing: -.03em; }
.tr-desc { margin-top: 8px; color: #cfd3d9; font-size: 16px; max-width: 520px; }
.tr-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 18px 0 0; border-radius: 12px; overflow: hidden; background: var(--line-2); border: 1px solid var(--line-2); }
.tr-facts div { background: rgba(13, 14, 17, .82); padding: 10px 12px; }
.tr-facts dt { font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.tr-facts dd { margin: 4px 0 0; font: 700 17px/1.2 var(--mono); }
.tr-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.snd { position: relative; }
.snd .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; width: 18px; }
.snd .eq i { display: block; width: 3px; height: 4px; background: currentColor; border-radius: 1px; }
.snd.is-playing .eq i { animation: eq .9s ease-in-out infinite; }
.snd.is-playing .eq i:nth-child(2) { animation-delay: -.3s; }
.snd.is-playing .eq i:nth-child(3) { animation-delay: -.6s; }
.snd.is-playing .eq i:nth-child(4) { animation-delay: -.45s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 15px; } }
.snd-note { margin-top: 10px; font-size: 13px; color: var(--faint); }

/* ---------- Ferry ---------- */
.ferry { padding: 0; background: #120f0d; overflow: hidden; }
.fy-hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; isolation: isolate; }
.fy-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 18%; z-index: -2; }
.fy-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 15, 13, 0) 30%, rgba(18, 15, 13, .72) 62%, #120f0d 96%); }
.fy-hero .wrap { padding-bottom: 28px; }
.fy-title { font-size: clamp(32px, 8.4vw, 64px); font-weight: 850; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; text-shadow: 0 2px 20px rgba(0, 0, 0, .55); }
.fy-route { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.fy-route i { display: block; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; background: var(--red); box-shadow: 0 0 0 2px var(--red); }
.fy-route s { display: block; width: 60px; height: 0; border-top: 3px dashed var(--red-2); text-decoration: none; }
.fy-body { padding-top: 8px; padding-bottom: 72px; }
.fy-lead { font-size: 17px; color: #d6cfc9; max-width: 620px; }
.fy-steps { counter-reset: fy; display: grid; gap: 12px; margin: 30px 0 0; padding: 0; }
.fy-steps li { list-style: none; position: relative; padding: 16px 16px 16px 60px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.fy-steps li::before { counter-increment: fy; content: counter(fy); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #1a1405; font: 800 14px/1 var(--mono); }
.fy-steps h3 { font-size: 16.5px; font-weight: 750; }
.fy-steps p { margin-top: 4px; font-size: 14.5px; color: #b9b1aa; }
.fy-media { position: relative; margin-top: 30px; }
.fy-media figure { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
.fy-media figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fy-media figcaption { padding: 10px 14px; font-size: 13px; color: #a79f98; background: rgba(255, 255, 255, .04); }
.fy-postmark { position: absolute; width: 104px; right: 4px; top: -44px; transform: rotate(14deg); opacity: .92; pointer-events: none; mix-blend-mode: screen; }
.fy-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.fy-alt { margin-top: 18px; font-size: 14.5px; color: #a79f98; }
.fy-alt b { color: #e7e1dc; }

/* ---------- STOP board taster ---------- */
.stopgame { background: radial-gradient(1000px 500px at 80% 0%, rgba(210, 18, 46, .12), transparent 70%), var(--bg); }
.sg-wrap { display: grid; gap: 22px; }
.sg-guide { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: end; }
.sg-guide img { width: 96px; height: 96px; object-fit: cover; object-position: 50% 12%; border-radius: 50%; background: #2a2622; border: 2px solid var(--line-2); }
.sg-bubble { position: relative; padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: #f3efe8; color: #1d1a16; font-size: 15px; line-height: 1.45; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); }
.sg-bubble b { color: #8f0f22; }
.sg-rules { display: grid; gap: 10px; margin: 0; padding: 0; }
.sg-rules li { list-style: none; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.sg-rules b.n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-2); font: 800 14px/1 var(--mono); color: var(--amber); }
.sg-rules h3 { font-size: 16px; font-weight: 750; }
.sg-rules p { font-size: 14.5px; color: var(--muted); }

.sg { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: #0a0c10; isolation: isolate; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.sg-view { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
@media (min-width: 600px) { .sg-view { aspect-ratio: 16 / 11; } }
.sg-view > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform-origin: 50% 56%; will-change: transform; }
.sg-view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .55)); pointer-events: none; }
.sg-hud { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; gap: 8px; }
.sg-speed, .sg-dist { display: flex; align-items: baseline; gap: 5px; padding: 8px 12px; border-radius: 12px; background: rgba(13, 14, 17, .78); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sg-speed b, .sg-dist b { font: 800 24px/1 var(--mono); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.sg-speed span, .sg-dist span { font-size: 12px; color: var(--muted); font-weight: 650; }
.sg-dist { flex-direction: column; gap: 2px; align-items: flex-start; }
.sg-dist span:first-child { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-2); font-weight: 800; }
.sg-dist b { font-size: 18px; }
.sg-clock { position: absolute; right: 10px; top: 10px; z-index: 2; padding: 8px 12px; border-radius: 12px; background: rgba(13, 14, 17, .78); border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); line-height: 1.3; text-align: right; }
.sg-clock b { display: block; font: 800 18px/1.1 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.sg-msg { position: absolute; left: 10px; right: 76px; bottom: 10px; z-index: 2; padding: 10px 14px; border-radius: 12px; background: rgba(8, 9, 12, .82); border: 1px solid var(--line-2); font-size: 14px; line-height: 1.4; }
.sg-msg.is-warn { border-color: rgba(242, 179, 61, .7); }
.sg-board { position: absolute; left: 50%; top: 52%; z-index: 1; width: 40px; transform-origin: 50% 100%; pointer-events: none; opacity: 0; transition: opacity .3s; }
.sg-board.is-on { opacity: 1; }
.sg-board svg { width: 100%; height: auto; overflow: visible; }

.sg-strip { position: relative; height: 54px; margin: 0; padding: 0 16px; background: #111419; border-top: 1px solid var(--line); }
.sg-track { position: absolute; left: 16px; right: 16px; top: 30px; height: 4px; border-radius: 2px; background: #2b3038; }
.sg-plat { position: absolute; top: 20px; height: 8px; border-radius: 2px; background: #5a6170; }
.sg-stopmk { position: absolute; top: 8px; width: 2px; height: 34px; background: var(--red-2); }
.sg-stopmk::before { content: "STOP"; position: absolute; top: -2px; left: 4px; font: 800 9px/1 var(--mono); letter-spacing: .06em; color: var(--red-2); }
.sg-train { position: absolute; top: 24px; height: 16px; border-radius: 4px 9px 9px 4px; background: linear-gradient(90deg, #c9ced6, #f1f3f6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.sg-train::after { content: ""; position: absolute; right: 2px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: #ffe9a8; box-shadow: 0 0 8px 2px rgba(255, 233, 168, .7); }

.sg-lever { position: absolute; right: 10px; bottom: 10px; top: 72px; z-index: 3; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sg-lever__lbl { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sg-lever__lbl--p { color: var(--green); }
.sg-lever__lbl--b { color: var(--amber); }
.sg-lever__track { position: relative; flex: 1; width: 44px; border-radius: 12px; background: rgba(13, 14, 17, .82); border: 1px solid var(--line-2); cursor: grab; touch-action: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sg-lever__track::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 4px; margin-left: -2px; border-radius: 2px; background: linear-gradient(180deg, var(--green) 0%, rgba(47, 191, 113, .25) 48%, #555 50%, rgba(242, 179, 61, .25) 52%, var(--amber) 100%); }
.sg-lever__track::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; margin-top: -1px; background: rgba(255, 255, 255, .5); }
.sg-lever__knob { position: absolute; left: 3px; right: 3px; height: 30px; margin-top: -15px; border-radius: 9px; background: linear-gradient(180deg, #f6f7f9, #c3c8d0); box-shadow: 0 4px 12px rgba(0, 0, 0, .55), inset 0 -2px 0 rgba(0, 0, 0, .15); display: grid; place-items: center; font: 800 11px/1 var(--mono); color: #1a1d22; }
.sg-lever__track:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sg-eb { min-height: 34px; padding: 0 6px; border-radius: 8px; border: 0; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; cursor: pointer; }

.sg-start { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; background: rgba(8, 9, 12, .55); }
.sg-start__card { max-width: 420px; text-align: center; padding: 22px 20px; border-radius: 18px; background: rgba(13, 14, 17, .9); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sg-start__card h3 { font-size: 22px; font-weight: 800; }
.sg-start__card p { margin: 8px 0 16px; font-size: 14.5px; color: var(--muted); }

.sg-res { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 12px; background: rgba(8, 9, 12, .6); overflow: auto; }
.sg-res__card { width: 100%; max-width: 440px; padding: 18px; border-radius: 18px; background: rgba(13, 14, 17, .95); border: 1px solid var(--line-2); text-align: center; }
.sg-res__eb { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); }
.sg-res__score { margin-top: 2px; font: 850 54px/1 var(--font); letter-spacing: -.03em; }
.sg-res__score small { font-size: 18px; font-weight: 700; color: var(--muted); }
.sg-res__v { margin-top: 4px; font-weight: 750; color: var(--green); }
.sg-res__v.is-low { color: var(--amber); }
.sg-bars { display: grid; gap: 7px; margin: 14px 0 0; text-align: left; }
.sg-bars div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: center; }
.sg-bars dt { font-size: 13px; color: var(--muted); }
.sg-bars dd { position: relative; margin: 0; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.sg-bars dd i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--green); border-radius: 6px; transition: width .9s var(--ease); }
.sg-bars dd span { position: relative; display: block; padding-right: 8px; text-align: right; font: 750 12.5px/22px var(--mono); }
.sg-res__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 12px; border-radius: 10px; overflow: hidden; background: var(--line-2); border: 1px solid var(--line-2); }
.sg-res__facts div { background: #111419; padding: 7px 6px; }
.sg-res__facts dt { font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.sg-res__facts dd { margin: 2px 0 0; font: 700 14px/1.2 var(--mono); }
.sg-res__act { display: grid; gap: 8px; margin-top: 14px; }
.sg-note { margin-top: 10px; font-size: 13px; color: var(--faint); }
.sg-keys { display: none; }

/* ---------- Network map ---------- */
.network { background: #0b0d10; overflow: hidden; isolation: isolate; }
.network__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: 50% 50%; opacity: .22; filter: saturate(.8); }
.network::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0b0d10 0%, rgba(11, 13, 16, .6) 20%, rgba(11, 13, 16, .6) 80%, #0b0d10 100%); }
.nw { display: grid; gap: 18px; }
.nw-map { position: relative; border-radius: 20px; border: 1px solid var(--line-2); background: var(--sea); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.nw-map svg { width: 100%; height: auto; }
.m-sea { fill: var(--sea); }
.m-grid { stroke: rgba(255, 255, 255, .035); stroke-width: 1; }
.m-dk { fill: #2e3529; stroke: #3d4636; stroke-width: 1.2; }
.m-other { fill: #1c211d; }
.m-line { cursor: pointer; }
.m-line .hit { stroke: transparent; stroke-width: 44; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-line .glow { stroke: var(--red); stroke-width: 18; fill: none; opacity: .22; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s, stroke-width .25s; }
.m-line .ln { stroke: var(--red-2); stroke-width: 6.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-line.is-sel .glow { opacity: .55; stroke-width: 26; }
.m-line.is-dim .ln { opacity: .45; }
.m-line.is-dim .glow { opacity: .08; }
.m-ferry .ln { stroke: var(--amber); stroke-width: 6; stroke-dasharray: 2 13; }
.m-ferry .glow { stroke: var(--amber); }
.m-soon .ln { stroke: #b7bdc6; stroke-width: 5; stroke-dasharray: 14 12; opacity: .75; }
.m-soon .glow { stroke: #b7bdc6; opacity: .06; }
.m-st { fill: #fff; stroke: #0b0d10; stroke-width: 3.5; }
.m-st--small { fill: #d8dce2; }
.m-lbl { fill: #e9ecef; font: 700 27px var(--font); paint-order: stroke; stroke: rgba(11, 13, 16, .92); stroke-width: 7px; stroke-linejoin: round; pointer-events: none; }
.m-lbl--soon { fill: #c7ccd3; font-weight: 650; font-style: italic; }
.m-sea-lbl { fill: rgba(170, 200, 220, .35); font: 700 19px var(--font); letter-spacing: .3em; pointer-events: none; }
.m-dot { fill: #fff; }
.m-ship { fill: var(--amber); }
.nw-legend { position: absolute; left: 10px; top: 10px; display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(11, 13, 16, .82); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.nw-legend span { display: flex; align-items: center; gap: 8px; }
.nw-legend i { display: block; width: 22px; height: 0; border-top: 3px solid var(--red-2); }
.nw-legend i.f { border-top: 3px dotted var(--amber); }
.nw-legend i.s { border-top: 3px dashed #b7bdc6; }
.nw-panel { border-radius: 20px; border: 1px solid var(--line-2); background: rgba(20, 22, 27, .92); padding: 18px; }
.nw-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.nw-tabs button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nw-tabs button[aria-pressed="true"] { background: #3a3f49; color: #fff; border-color: transparent; }
.nw-info h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.nw-info .sub { margin-top: 6px; color: var(--muted); font-size: 15px; }
.nw-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 16px 0 0; border-radius: 12px; overflow: hidden; background: var(--line-2); border: 1px solid var(--line-2); }
.nw-facts div { background: #111419; padding: 10px 12px; }
.nw-facts dt { font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.nw-facts dd { margin: 4px 0 0; font: 700 16px/1.2 var(--mono); }
.nw-hl { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; }
.nw-hl li { list-style: none; position: relative; padding-left: 20px; font-size: 14.5px; color: #cfd3d9; }
.nw-hl li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-2); }
.nw-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.nw-soonbadge { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(183, 189, 198, .12); color: #d5d9df; font-size: 12.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Departure board: see cph-board.css (Copenhagen H style) ---------- */
/* Explore København H card (link to /dsb/train-journey/explore/), same colours and font as the board */
.explore { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "sq txt" "go go"; gap: 12px 12px; align-items: start; margin-top: 18px; padding: 16px; border: 7px solid #050607; border-radius: 12px; background: #2178c8; color: #fff; text-decoration: none; font-family: "CPH Board", "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif; box-shadow: 0 0 0 1px #24272c; -webkit-tap-highlight-color: transparent; transition: background-color .15s; }
.explore[hidden] { display: none; }
.explore__sq { grid-area: sq; width: 15px; height: 15px; margin-top: 6px; background: #ffe94a; border-radius: 1px; }
.explore__txt { grid-area: txt; min-width: 0; }
.explore__h { display: block; font-weight: 700; font-size: 23px; line-height: 1.1; }
.explore__p { display: block; margin-top: 6px; font-weight: 500; font-size: 16px; line-height: 1.35; color: rgba(255, 255, 255, .88); }
.explore__go { grid-area: go; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #ffe94a; color: #0b1b2c; font-weight: 700; font-size: 18px; }
.explore__go .i { width: 16px; height: 16px; }
@media (hover: hover) { .explore:hover { background: #2c86da; } }
.explore:focus { outline: none; }
.explore:focus-visible { outline: 3px solid #ffe94a; outline-offset: 2px; }
@media (min-width: 760px) {
  .explore { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "sq txt go"; align-items: center; gap: 16px; padding: 18px 22px; border-width: 10px; border-radius: 14px; }
  .explore__sq { width: 18px; height: 18px; margin-top: 0; align-self: start; margin-top: 7px; }
  .explore__h { font-size: 28px; }
  .explore__p { font-size: 17px; }
}
/* The landing page board has no Spor (track) column (Darren 14-11): same look, one column less.
   #board beats cph-board.css whatever the load order. */
#board .brow a { grid-template-columns: 50px minmax(0, 1fr) 12px; grid-template-areas: "t n go" "nt m go" ". info go"; }
@media (max-width: 359.98px) { #board .brow a { grid-template-columns: 46px minmax(0, 1fr) 10px; } }
@media (min-width: 760px) {
  #board .board__cols, #board .brow a { grid-template-columns: 64px minmax(0, 1fr) 52px 66px minmax(96px, 150px) 16px; }
  #board .brow a { grid-template-areas: "t n km arr rem go" "nt m km arr rem go"; }
  #board .board__cols span:nth-child(3), #board .board__cols span:nth-child(4) { text-align: right; }
  #board .board__cols span:nth-child(5) { text-align: left; }
}
.flap { display: inline-block; min-width: .62em; text-align: center; }

/* ---------- Window gadget ---------- */
.window { background: linear-gradient(180deg, var(--bg) 0%, #15120f 50%, var(--bg) 100%); }
.win { position: relative; max-width: 1040px; margin: 0 auto; }
.win__view { position: absolute; left: 12.6%; right: 12.4%; top: 4.2%; bottom: 8.3%; overflow: hidden; border-radius: 4.5% / 7.5%; background: #1b232b; }
.win__view img { position: absolute; inset: -4% -6%; width: 112%; height: 108%; max-width: none; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.win__view img.is-on { opacity: 1; animation: pan 9s linear both; }
@keyframes pan { from { transform: translateX(2.5%); } to { transform: translateX(-2.5%); } }
.win__view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .06) 100%); pointer-events: none; }
.win__frame { position: relative; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.win__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.win__cap { min-width: 0; }
.win__cap b { display: block; font-size: 16px; font-weight: 750; }
.win__cap span { display: block; font-size: 13.5px; color: var(--muted); }
.win__nav { display: flex; gap: 8px; flex: none; }
.win__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); display: grid; place-items: center; cursor: pointer; color: var(--text); -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .win__nav button:hover { background: rgba(255, 255, 255, .14); } }
.win__dots { display: flex; gap: 0; justify-content: center; margin-top: 12px; }
.win__dots button { width: 32px; height: 32px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.win__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4a505b; transition: background-color .2s, transform .2s; }
.win__dots button[aria-current="true"]::before { background: var(--amber); transform: scale(1.3); }
.win__note { margin-top: 10px; text-align: center; font-size: 13px; color: var(--faint); }

/* ---------- Your way (features) ---------- */
.feat { display: grid; gap: 12px; }
.fcard { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); padding: 20px; isolation: isolate; }
.fcard h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.fcard p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.fcard .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); margin-bottom: 14px; }
.fcard .ico .i { width: 22px; height: 22px; }
.fcard--img { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.fcard--img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.fcard--img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 14, 17, 0) 25%, rgba(13, 14, 17, .92) 85%); }
.fcard--img p { color: #cfd3d9; }
.moods { display: flex; gap: 6px; margin-top: 14px; }
.moods span { flex: 1; padding: 10px 6px 8px; border-radius: 10px; text-align: center; font-size: 12.5px; font-weight: 750; border: 1px solid var(--line); }
.moods span:nth-child(1) { background: #b9d3e6; color: #18222b; }
.moods span:nth-child(2) { background: #b8714a; color: #fff; }
.moods span:nth-child(3) { background: #16213a; color: #cfd8ea; }
.moods em { display: block; font: 700 11px/1.3 var(--mono); font-style: normal; opacity: .8; }

/* ---------- Everyone ---------- */
.who { display: grid; gap: 12px; }
.who li { list-style: none; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.who ol, ul.who { margin: 0; padding: 0; }
.who h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.who h3 .i { color: var(--amber); }
.who p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- Coming soon ---------- */
.soon { display: grid; gap: 18px; align-items: center; padding: 22px; border-radius: 20px; border: 1px dashed rgba(183, 189, 198, .4); background: linear-gradient(135deg, rgba(183, 189, 198, .06), rgba(183, 189, 198, .015)); }
.soon__stamp { width: 110px; transform: rotate(-6deg); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.soon h3 { font-size: clamp(24px, 6vw, 34px); font-weight: 850; letter-spacing: -.02em; }
.soon p { margin-top: 8px; color: var(--muted); }
.soon .nw-soonbadge { margin-top: 0; margin-bottom: 12px; }

/* ---------- Final call ---------- */
.final { text-align: center; padding: 64px 0 56px; background: radial-gradient(900px 420px at 50% 0%, rgba(210, 18, 46, .16), transparent 70%), var(--bg); }
.final__sign { width: min(300px, 76vw); margin: 0 auto 20px; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .55)); }
.final .h2 { max-width: 18ch; margin: 0 auto; }
.final .lead { margin-left: auto; margin-right: auto; }
.final__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.final__act .btn { flex: 0 1 280px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); background: #0a0b0d; font-size: 13.5px; color: var(--muted); }
.foot__credit { color: #c9cdd3; line-height: 1.6; }
.foot__credit a { color: #fff; font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.foot__maps { margin-top: 8px; color: var(--faint); }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
.foot__links a { color: var(--muted); text-underline-offset: 3px; }
.foot__links a:hover { color: var(--text); }

/* ---------- Trailer (YouTube) ---------- */
.film__box { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; isolation: isolate; border: 1px solid var(--line-2); background: #000; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.film__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; color: #fff; font: inherit; }
.film__play img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .3s, transform .6s; }
.film__btn { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center; background: var(--red); box-shadow: 0 12px 40px -8px rgba(210, 18, 46, .8); transition: transform .2s; }
.film__btn .i { width: 34px; height: 34px; margin-left: 4px; }
.film__note { margin: 12px 2px 0; font-size: 13px; color: var(--muted); }
.film__play:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
@media (hover: hover) { .film__play:hover img { transform: scale(1.02); } .film__play:hover .film__btn { transform: scale(1.08); } }
.film__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 26px 16px !important; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:nth-child(3n) { border-right: 0; }
  .stat:nth-last-child(-n+3) { border-bottom: 0; }
  .usp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fcard--wide { grid-column: 1 / -1; }
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-in { padding: 24px; min-height: 560px; }
  .fy-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soon { grid-template-columns: 130px 1fr; padding: 28px; }
  .soon__stamp { width: 130px; }
  .sg-hud { left: 14px; top: 14px; }
  .sg-speed b { font-size: 30px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .sec { padding: 80px 0; }
  .sec-head { margin-bottom: 48px; }
  .hero { align-items: center; padding-bottom: 72px; }
  .hero__in { padding-top: 40px; }
  .hero__act .btn { flex: 0 0 auto; }
  .hero__lede { font-size: 19px; }
  .scrollcue { display: grid; place-items: center; position: absolute; left: 50%; bottom: 22px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); text-decoration: none; animation: bob 2.4s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
  .stats__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stat { border-bottom: 0 !important; border-right: 1px solid var(--line) !important; }
  .stat:last-child { border-right: 0 !important; }
  .usp { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .usp li { grid-template-columns: 1fr; padding: 22px; }
  .tr-in { flex-direction: row; align-items: flex-end; padding: 32px; min-height: 600px; }
  .tr-card { flex: 1; }
  .tr-tabs { position: absolute; top: 32px; left: 32px; }
  .fy-hero { min-height: 720px; }
  .fy-hero .wrap { padding-bottom: 48px; }
  .fy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .fy-steps { grid-template-columns: 1fr; }
  .fy-media { margin-top: 0; }
  .fy-postmark { width: 150px; top: -70px; right: -24px; }
  .sg-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
  .sg-keys { display: block; margin-top: 10px; font-size: 13px; color: var(--faint); }
  .sg-lever { width: 64px; right: 14px; bottom: 14px; top: 84px; }
  .sg-lever__track { width: 50px; }
  .sg-msg { left: 14px; bottom: 14px; right: 92px; }
  .nw { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
  .nw-panel { position: sticky; top: calc(var(--top) + 20px); padding: 24px; }
  .feat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .fcard--wide { grid-column: 1 / -1; }
  .fcard--tall { grid-row: span 2; }
  .who { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .soon { grid-template-columns: 160px 1fr auto; padding: 32px 36px; }
  .soon__stamp { width: 150px; }
}
@media (min-width: 1280px) {
  :root { --wrap: 1200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg img, .scrollcue, .win__view img.is-on { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .tr-bg img { transition: opacity .3s; transform: none; }
}

/* "Why you will love it": the picture fills the whole section on wider screens */
@media (min-width: 900px) {
  .why__bg { height: auto; bottom: 0; background-position: 50% 62%; }
  .why::after { height: auto; bottom: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(13, 14, 17, .25) 16%, rgba(13, 14, 17, .32) 72%, var(--bg) 100%); }
}
@media (max-width: 599px) { .film__btn { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .film__btn .i { width: 26px; height: 26px; } .film__note { font-size: 12px; } }

/* ============ The story behind the game + build your own world (13-11-2026) ============ */
.story__grid { display: grid; gap: 28px; align-items: center; }

.story__text .lead { margin-top: 16px; }
.story__sig { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 18px; color: var(--amber); }
.story__sig::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.story__film { margin: 0; min-width: 0; }
.story__len {
  position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 6px;
  background: rgba(0, 0, 0, .78); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.story__film .film__note a { display: inline-block; padding: 8px 0; white-space: nowrap; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.story__film .film__note a:hover { text-decoration-color: var(--text); }

.build {
  display: grid; margin-top: 44px; overflow: hidden; isolation: isolate;
  border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2);
}
.build__pic { display: block; position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.build__pic img { display: block; width: 100%; height: 100%; aspect-ratio: 1600 / 670; object-fit: cover; transition: transform .6s var(--ease); }
.build__pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 22, 27, 0) 55%, rgba(20, 22, 27, .55) 100%); pointer-events: none; }
@media (hover: hover) { .build:hover .build__pic img { transform: scale(1.025); } }
.build__body { padding: 22px 20px 24px; min-width: 0; }
.build__h { margin-top: 0; font-size: clamp(21px, 5.4vw, 28px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.build__body p { margin-top: 10px; font-size: 15.5px; color: var(--muted); max-width: 40em; }
.build__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; padding: 0; list-style: none; }
.build__list li {
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-3);
  font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.2;
}
@media (prefers-reduced-motion: reduce) { .build__pic img { transition: none; } .build:hover .build__pic img { transform: none; } }
@media (min-width: 960px) {
  .story__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
  .build { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); margin-top: 64px; }
  .build__pic img { aspect-ratio: auto; min-height: 100%; }
  .build__pic::after { background: linear-gradient(90deg, rgba(20, 22, 27, 0) 60%, rgba(20, 22, 27, .7) 100%); }
  .build__body { padding: 36px 40px; align-self: center; }
}

/* ============ Install as an app (13-11-2026) ============ */
.appcard {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px 16px; align-items: center;
  max-width: 600px; margin: 36px auto 0; padding: 18px; text-align: left;
  border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2);
}
.appcard[hidden] { display: none; }
.appcard__icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 24px -12px rgba(210, 18, 46, .8); }
.appcard__txt h3 { font-size: 17px; font-weight: 800; line-height: 1.25; }
.appcard__txt p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.appcard__go { grid-column: 1 / -1; width: 100%; }
@media (min-width: 600px) {
  .appcard { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 18px 20px; }
  .appcard__go { grid-column: auto; width: auto; }
}
.apphelp {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center;
  padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.apphelp[hidden] { display: none; }
.apphelp__card {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 26px 22px 22px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--bg-3);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
}
.apphelp__x {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.apphelp__x:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.apphelp__x .i { width: 22px; height: 22px; }
.apphelp__icon { width: 56px; height: 56px; border-radius: 13px; }
.apphelp h3 { margin-top: 14px; padding-right: 30px; font-size: 20px; font-weight: 800; line-height: 1.25; }
.apphelp p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.apphelp__steps { margin: 14px 0 18px; padding: 0; list-style: none; counter-reset: ah; }
.apphelp__steps li {
  position: relative; counter-increment: ah; padding: 10px 0 10px 40px; font-size: 15.5px; line-height: 1.4;
  border-top: 1px solid var(--line);
}
.apphelp__steps li:first-child { border-top: 0; }
.apphelp__steps li::before {
  content: counter(ah); position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff; font-size: 14px; font-weight: 800;
}
.apphelp .btn { width: 100%; }
.apphelp #apphelp-app .btn { margin-bottom: 0; }
.apphelp-open, .apphelp-open body { overflow: hidden; }
@media (min-width: 600px) { .apphelp { align-items: center; } }

/* Two plain sections in a row would add both paddings: keep the gap at the same rhythm as the others
   (about 105 px on desktop, about 80 px on phones). */
#try, #departures { padding-bottom: 20px; }
#window, #everyone { padding-bottom: 4px; }
