/* De Coimbra a Cracóvia
   Palette: noite (stratosphere blue-black), indigo, gelo (text), âmbar (choices, prices), linha (instrument lines)
   Type: Anybody (display, variable width) + Instrument Sans (text, tabular figures for telemetry) */

@font-face { font-family: "Anybody"; src: url(../vendor/fonts/anybody-latin.woff2) format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anybody"; src: url(../vendor/fonts/anybody-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; src: url(../vendor/fonts/instrument-latin.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; src: url(../vendor/fonts/instrument-latin-ext.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --noite: #060A22;
  --indigo: #121A48;
  --gelo: #EEF3FF;
  --ambar: #FFB02E;
  --linha: #86B8FF;
  --texto: rgba(238, 243, 255, .84);
  --fraco: rgba(238, 243, 255, .62);
  --fio: rgba(134, 184, 255, .28);
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --bar-h: 4.25rem;
  --display: "Anybody", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--noite); color: var(--gelo); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font: 400 1.0625rem/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

main { position: relative; z-index: 1; }

/* ---------- stage: fixed photo backdrop that follows the active place ---------- */
.stage { position: fixed; inset: 0; height: 100lvh; z-index: 0; overflow: hidden; background: var(--noite); }
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease, filter .8s ease; will-change: opacity, transform; }
.stage__img.is-on { opacity: 1; }
.stage__img.is-moving { animation: drift 11s linear both; }
@keyframes drift {
  from { transform: scale(1.05) translate3d(var(--dx0, 0), 0, 0); }
  to   { transform: scale(1.13) translate3d(var(--dx1, 0), 0, 0); }
}
.stage__scrim { position: absolute; inset: 0; z-index: 3; transition: background-color .8s ease;
  background: linear-gradient(to top, rgba(6,10,34,.97) 0%, rgba(6,10,34,.88) 30%, rgba(6,10,34,.62) 52%, rgba(6,10,34,.16) 76%, rgba(6,10,34,.30) 100%); }
@media (min-width: 900px) {
  .stage__scrim { background:
    linear-gradient(to right, rgba(6,10,34,.62) 0%, rgba(6,10,34,.30) 34%, rgba(6,10,34,0) 62%),
    linear-gradient(to top, rgba(6,10,34,.96) 0%, rgba(6,10,34,.74) 26%, rgba(6,10,34,.20) 58%, rgba(6,10,34,.08) 78%, rgba(6,10,34,.30) 100%); }
}
.stage[data-tone="sober"] .stage__img { filter: grayscale(1) contrast(1.06) brightness(.82); animation: none; transform: scale(1.02); }
.stage[data-mode="plain"] .stage__scrim { background-color: rgba(6,10,34,.84); }
.stage[data-mode="arrival"] .stage__scrim { background-color: rgba(6,10,34,.74); }

/* ---------- flight ---------- */
/* The flight plays by itself (js/flight.js). Until it lands the page is held at the top:
   no scroll gesture may start on the flight view. */
.flight { position: relative; height: 100lvh; z-index: 2; }
.flight__view { position: relative; height: 100lvh; overflow: hidden; background: #04071a; }
html.is-flying .flight__view { touch-action: none; }
html.is-flying { overscroll-behavior: none; }
.flight__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.flight__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6,10,34,.50) 0%, rgba(6,10,34,0) 26%, rgba(6,10,34,0) 52%, rgba(6,10,34,.78) 100%); }
.flight__ui { position: absolute; inset: 0; height: 100svh; pointer-events: none; }

.flight__intro { position: absolute; left: var(--pad); right: var(--pad); top: 50%; transform: translateY(-50%); display: grid; justify-items: center; text-align: center; transition: opacity .6s ease, transform .9s var(--out), visibility 0s linear .6s; }
.flight[data-state="playing"] .flight__intro, .flight[data-state="landed"] .flight__intro { opacity: 0; transform: translateY(calc(-50% - 30px)); visibility: hidden; }
.flight__intro h1 { font: 800 clamp(3.1rem, 14.5vw, 10rem)/.86 var(--display); font-stretch: 78%; letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 2px 40px rgba(6,10,34,.55); }
.flight__lede { margin-top: 1.1rem; max-width: 30rem; font-size: clamp(1.0625rem, 2.2vw, 1.3rem); color: var(--gelo); text-shadow: 0 1px 18px rgba(6,10,34,.8); }
.flight__cue { margin-top: 1.6rem; display: flex; align-items: center; gap: .8rem; padding: 0; border: 0; background: none; font-size: .9375rem; font-weight: 500; color: var(--ambar); text-shadow: 0 1px 12px rgba(6,10,34,.9); pointer-events: auto; font-variant-numeric: tabular-nums; }
.flight__cue.is-waiting { color: var(--texto); cursor: progress; }
.flight__cue.is-waiting .flight__cue-line { animation: none; opacity: .4; }
.flight__again { margin-top: 1.1rem; padding: .5rem 1rem; border: 1px solid var(--fio); border-radius: 999px; background: rgba(6,10,34,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .875rem; color: var(--texto); pointer-events: auto; }
.flight__again:hover { border-color: var(--linha); color: var(--gelo); }
.flight__cue-line { width: 1px; height: 2.6rem; background: linear-gradient(var(--ambar), transparent); transform-origin: top; animation: cue 2.2s var(--out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.telemetry { position: absolute; top: max(1.1rem, env(safe-area-inset-top)); left: var(--pad); right: var(--pad); display: flex; gap: clamp(1rem, 4vw, 3rem); opacity: 0; transition: opacity .5s ease; }
.telemetry.is-on { opacity: 1; }
.telemetry div { border-top: 1px solid var(--fio); padding-top: .45rem; min-width: 0; flex: 0 1 auto; }
.telemetry dt { font-size: .75rem; color: var(--fraco); }
.telemetry dd { font-size: clamp(.95rem, 2.6vw, 1.25rem); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 12px rgba(6,10,34,.9); }

.flight__arrival { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(3rem, 14svh, 8rem); opacity: 0; visibility: hidden; transform: translateY(26px); transition: opacity .9s ease .5s, transform 1.1s var(--out) .5s, visibility 0s linear 0s; }
.flight[data-state="landed"] .flight__arrival { opacity: 1; visibility: visible; transform: none; }
/* over the video: the big title bows out after a few seconds, the "continue" line stays at the bottom */
.flight__arrival { bottom: clamp(1.4rem, 5svh, 3rem); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.flight__arrival > h2, .flight__arrival-pre, .flight__arrival-post { grid-column: 1 / -1; }
.flight[data-state="landed"] .flight__arrival > h2, .flight[data-state="landed"] .flight__arrival-pre, .flight[data-state="landed"] .flight__arrival-post { animation: bow 1.4s ease 5.2s forwards; }
@keyframes bow { to { opacity: 0; transform: translateY(-14px); visibility: hidden; } }
.flight__cue--next { grid-row: 4; grid-column: 2; margin-top: clamp(1.6rem, 6svh, 3.4rem); font-size: 1.0625rem; font-weight: 600; }
.flight__arrival .flight__again { grid-row: 4; grid-column: 1; justify-self: start; margin-top: clamp(1.6rem, 6svh, 3.4rem); }
@media (max-width: 720px) {
  .flight__arrival { grid-template-columns: 1fr; }
  .flight__cue--next { grid-column: 1; justify-self: center; }
  .flight__arrival .flight__again { grid-row: 5; justify-self: center; margin-top: .9rem; }
}
.flight__arrival h2 { font: 900 clamp(3.6rem, 19vw, 15rem)/.84 var(--display); font-stretch: 60%; letter-spacing: -.02em; text-shadow: 0 2px 50px rgba(6,10,34,.6); }
.flight__arrival-pre { font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--ambar); margin-bottom: .5rem; }
.flight__arrival-post { margin-top: .9rem; font-variant-numeric: tabular-nums; color: var(--texto); }


/* ---------- the front door: a fake 1990s home page (markup in index.html, behaviour in js/gate.js) ----------
   Everything here is ugly on purpose: default serif type, grey page, a table wider than a phone
   screen (so part of it is cut off and cannot be reached), blinking text. */
/* ---------- the loading screen ("A carregar a viagem", js/boot.js) ---------- */
/* which front door shows: <html data-gate="off"> = this loading screen, anything else = the old 1990s page */
html[data-gate="off"] .gate { display: none; }
html:not([data-gate="off"]) .boot { display: none; }
.boot { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(.2rem, 1.6svh, 1.2rem); padding: clamp(3.4rem, 9svh, 5rem) var(--pad) clamp(1.4rem, 5svh, 3rem); background: var(--noite); overflow: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.boot[hidden] { display: none; }
.boot.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
/* two soft lights that drift, and a few stars */
.boot__sky { position: absolute; inset: -20%; background: radial-gradient(46% 38% at 72% 30%, rgba(134,184,255,.22), rgba(134,184,255,0) 70%), radial-gradient(40% 34% at 22% 78%, rgba(255,176,46,.13), rgba(255,176,46,0) 70%); animation: bootDrift 12s ease-in-out infinite alternate; }
.boot__sky::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 31% 62%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 47% 27%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 81%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 69% 44%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 83% 12%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 91% 67%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 88%, #fff 50%, transparent 51%), radial-gradient(1.1px 1.1px at 76% 91%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 5% 49%, #fff 50%, transparent 51%); background-size: 46% 46%; opacity: .5; animation: bootTwinkle 3.4s ease-in-out infinite alternate; }
@keyframes bootDrift { from { transform: translate(-3%, 2%) scale(1); } to { transform: translate(4%, -3%) scale(1.12); } }
@keyframes bootTwinkle { from { opacity: .25; } to { opacity: .65; } }
/* thin curved lines over the whole screen, like the grid of a globe, flowing towards Kraków */
.boot__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.boot__lines path { fill: none; stroke: rgba(134,184,255,.26); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 9; animation: bootFlow 2.6s linear infinite; }
@keyframes bootFlow { to { stroke-dashoffset: -44; } }
/* the route */
.boot__map { position: relative; flex: 0 1 auto; width: min(96vw, 58svh); aspect-ratio: 1; min-height: 0; overflow: visible; transition: transform .9s cubic-bezier(.7, 0, .84, 0), opacity .6s ease .2s; transform-origin: 87% 27%; }
.boot__route { fill: none; stroke-linecap: round; }
.boot__route--bg { stroke: rgba(238,243,255,.24); stroke-width: 3; stroke-dasharray: 2 16; }
.boot__route--on { stroke: var(--ambar); stroke-width: 7; filter: drop-shadow(0 0 10px rgba(255,176,46,.95)) drop-shadow(0 0 26px rgba(255,176,46,.5)); }
.boot__city circle { fill: var(--gelo); }
.boot__city .boot__ping { fill: none; stroke: var(--linha); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: bootPing 2.2s ease-out infinite; }
.boot__city text { font: 800 40px/1 var(--display); font-stretch: 110%; letter-spacing: .14em; fill: var(--gelo); }
.boot__city--b { opacity: .45; transition: opacity .5s ease; }
.boot__city--b .boot__ping { animation-play-state: paused; opacity: 0; }
.boot.is-ready .boot__city--b { opacity: 1; }
.boot.is-ready .boot__city--b circle { fill: var(--ambar); }
.boot.is-ready .boot__city--b .boot__ping { stroke: var(--ambar); opacity: 1; animation: bootPing 1.2s ease-out infinite; animation-play-state: running; }
@keyframes bootPing { from { transform: scale(1); opacity: .9; } to { transform: scale(5.5); opacity: 0; } }
.boot__plane path { fill: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,.9)); }
.boot__halo { fill: rgba(255,176,46,.28); transform-box: fill-box; transform-origin: center; animation: bootHalo 1.1s ease-in-out infinite alternate; }
@keyframes bootHalo { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.35); opacity: .35; } }
.boot.is-ready .boot__plane { opacity: 0; transition: opacity .5s ease; }
/* the number, the words, and the button that takes the number's place */
.boot__panel { position: relative; display: grid; justify-items: center; gap: clamp(.5rem, 1.8svh, 1rem); text-align: center; transition: opacity .4s ease, transform .5s ease; }
.boot__swap { display: grid; place-items: center; }
.boot__swap > * { grid-area: 1 / 1; }
.boot__pct { pointer-events: none; }      /* it fades out under the button: it must never take the tap */
.boot__go { position: relative; z-index: 1; }
.boot__pct { font: 800 clamp(4rem, 21vw, 8.5rem)/.82 var(--display); font-stretch: 112%; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--gelo); transition: opacity .45s ease, transform .6s var(--out); }
.boot__pct i { font-style: normal; font-size: .36em; letter-spacing: 0; color: var(--ambar); margin-left: .1em; }
.boot__go { min-height: 3.9rem; padding: .8rem 2.6rem; border: 0; border-radius: 999px; background: var(--ambar); color: var(--noite); font: 800 clamp(1.3rem, 5.4vw, 1.9rem)/1 var(--display); font-stretch: 96%; opacity: 0; transform: scale(.7); pointer-events: none; transition: opacity .5s ease .25s, transform .7s var(--out) .25s; }
.boot.is-ready .boot__pct { opacity: 0; transform: scale(.6) translateY(-10%); }
.boot.is-ready .boot__go { opacity: 1; transform: none; pointer-events: auto; animation: bootBeat 1.7s ease-in-out 1s infinite; }
@keyframes bootBeat { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,176,46,.55); } 60% { box-shadow: 0 0 0 1.4rem rgba(255,176,46,0); } }
.boot__label { font: 600 clamp(.82rem, 3.3vw, 1.05rem)/1.2 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--texto); }
.boot:not(.is-ready) .boot__label::after { content: "…"; display: inline-block; width: 1.2em; text-align: left; overflow: hidden; vertical-align: bottom; animation: bootDots 1.3s steps(4, end) infinite; }
@keyframes bootDots { from { width: 0; } to { width: 1.2em; } }
/* "LIGAR O SOM": there from the first moment, big enough not to be missed, the speaker's waves pulsing */
.boot__sound { display: inline-flex; align-items: center; gap: .55em; margin-top: clamp(.3rem, 1.4svh, .9rem); padding: .5em 1.05em .5em .8em; border: 1.5px solid rgba(255,176,46,.55); border-radius: 999px; font: 800 clamp(1rem, 4.6vw, 1.35rem)/1 var(--display); font-stretch: 100%; letter-spacing: .1em; color: var(--ambar); }
.boot__sound svg { width: 1.5em; height: 1.5em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.boot__sound-body { fill: currentColor; stroke-width: 1; }
.boot__sound-wave { animation: bootWave 1.2s ease-in-out infinite; }
.boot__sound-wave + .boot__sound-wave { animation-delay: .22s; }
@keyframes bootWave { 0%, 100% { opacity: .25; } 45% { opacity: 1; } }
/* pressed: we dive into Kraków */
.boot.is-leaving .boot__map { transform: scale(3.2); opacity: 0; }
.boot.is-leaving .boot__panel { opacity: 0; transform: translateY(1.5rem); }
.boot.is-leaving .boot__lines { opacity: 0; transition: opacity .5s ease; }

.gate { position: fixed; inset: 0; z-index: 100; background: #000; overflow: hidden; transition: opacity 1s ease, visibility 0s linear 1s; }
.gate.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
/* the page is wider and taller than a phone on purpose; it can be dragged around to see the rest */
.gate__page { position: absolute; inset: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px; background: #C0C0C0; color: #000; font: 16px/1.25 "Times New Roman", Times, serif; -webkit-font-smoothing: auto; transform-origin: 50% 50%; }
.gate__page p { margin: 10px 0; }
.gate__page a { color: #0000EE; text-decoration: underline; }
.gate__page table { font: inherit; border-color: #808080; }
.gate__page td, .gate__page th { white-space: nowrap; }
.gate__page marquee { margin-top: 6px; padding: 3px 0; }
.gate__page hr { border: 0; border-top: 2px groove #fff; margin: 10px 0; }
.gate__blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
.gate__btn { font: 13px "MS Sans Serif", Arial, Helvetica, sans-serif; color: #000; background: #C0C0C0; border: 2px outset #fff; border-radius: 0; padding: 5px 16px; min-width: 9.5em; cursor: default; }
.gate__btn:active { border-style: inset; }
/* the two buttons that matter are big and sit at the top, in view straight away */
.gate__btn { font-size: 22px; padding: 14px 26px; border-width: 3px; }
.gate__btn--go { font-weight: bold; font-size: 24px; padding: 18px 28px; }
.gate__btn--small { font-size: 13px; padding: 5px 12px; border-width: 2px; min-width: 0; }      /* the full-screen button: small on purpose */
.gate.is-crashing .gate__page { overflow: hidden; }
.gate__btn[disabled] { color: #808080; text-shadow: 1px 1px 0 #fff; }
.gate__bar { width: 220px; height: 18px; border: 2px inset #fff; background: #fff; overflow: hidden; }
.gate__bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .3s linear;
  background: repeating-linear-gradient(90deg, #000080 0 10px, #fff 10px 12px); }
.gate__counter { font-family: "Courier New", Courier, monospace; background: #000; color: #00FF00; padding: 0 4px; letter-spacing: 2px; }
.gate__foot { white-space: nowrap; }
.gate__construction { background: repeating-linear-gradient(45deg, #FFFF00 0 14px, #000 14px 28px); padding: 4px; width: max-content; }
.gate__construction b { background: #FFFF00; padding: 0 6px; }
html.is-gate .sound { display: none; }

/* the breakdown after ENTRAR */
.gate__fx { position: absolute; inset: 0; pointer-events: none; }
.gate__dialog { position: absolute; width: min(300px, 78vw); background: #C0C0C0; border: 2px outset #fff; box-shadow: 2px 2px 0 #000; color: #000; font: 12px "MS Sans Serif", Arial, Helvetica, sans-serif; }
.gate__dialog-bar { display: flex; justify-content: space-between; background: #000080; color: #fff; font-weight: bold; padding: 3px 6px; }
.gate__dialog-body { display: flex; gap: 10px; align-items: center; padding: 12px 10px 6px; }
.gate__dialog-body b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #FF0000; color: #fff; display: grid; place-items: center; font-size: 20px; }
.gate__dialog-body p { margin: 0; }
.gate__dialog-foot { text-align: center; padding: 6px 0 10px; }
.gate__dialog-foot span { display: inline-block; border: 2px outset #fff; padding: 2px 22px; }
.gate.is-crashing .gate__page, .gate.is-crashing .gate__btn { cursor: wait; }
.gate.is-shaking .gate__page { animation: quake .09s steps(2) infinite; text-shadow: 2px 0 #FF0000, -2px 0 #00FFFF; }
.gate.is-shaking .gate__page > *, .gate.is-shaking .gate__page tr { animation: jitter .13s steps(2) infinite; }
@keyframes quake { 0% { transform: translate(-4px, 3px); } 50% { transform: translate(5px, -3px) skewX(.6deg); } 100% { transform: translate(-2px, -4px); } }
@keyframes jitter { 0% { transform: translate(0, 0); } 50% { transform: translate(var(--jx, 3px), var(--jy, -2px)) rotate(var(--jr, .5deg)); } 100% { transform: translate(calc(var(--jx, 3px) * -.6), calc(var(--jy, -2px) * -.8)); } }
.gate.is-shaking .gate__fx::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 2px, rgba(0,0,0,0) 2px 5px); animation: roll .5s linear infinite; }
@keyframes roll { to { background-position: 0 20px; } }
/* the slow start: a small tremor and single flashes */
.gate.is-uneasy .gate__page > *, .gate.is-uneasy .gate__page tr { animation: jitter .26s steps(2) infinite; }
.gate.is-flash .gate__page { filter: invert(1); }
/* lights out: everything goes dark red, and the whole screen jumps with each heartbeat */
.gate.is-dark .gate__page { filter: grayscale(1) sepia(1) hue-rotate(-50deg) saturate(7) brightness(.42) contrast(1.5); }
.gate.is-dark .gate__fx { filter: grayscale(1) sepia(1) hue-rotate(-50deg) saturate(7) brightness(.5); }
.gate { transition: opacity 1s ease, visibility 0s linear 1s, transform .16s ease-out; }
.gate.is-beat { transform: scale(1.07); transition-duration: 1s, 0s, .05s; }
.gate.is-inverted .gate__page { filter: invert(1) hue-rotate(180deg) contrast(1.6); }
.gate.is-melting .gate__page { background: #1a0000; color: #FF2A2A; transition: background-color .7s ease-in, color .3s; }
.gate.is-melting .gate__page > *, .gate.is-melting .gate__page tr { animation: none; transform: translate(var(--mx, 0), var(--my, 60vh)) rotate(var(--mr, 30deg)); opacity: .2; transition: transform .75s cubic-bezier(.5, 0, .9, .4), opacity .75s ease-in; }
.gate.is-melting .gate__dialog { transform: translateY(120vh) rotate(25deg); transition: transform .7s cubic-bezier(.5, 0, .9, .4); }
.gate.is-off .gate__page { animation: crt .5s cubic-bezier(.2, .8, .3, 1) forwards; filter: brightness(6); background: #fff; }
.gate.is-off .gate__fx { display: none; }
@keyframes crt { 0% { transform: scale(1, 1); } 45% { transform: scale(1, .006); } 100% { transform: scale(0, .006); } }

/* ---------- split screen: Coimbra | Mortágua, divided on a slant that follows the pointer ---------- */
.split { position: absolute; inset: 0; --at: 50%; --lean: 6%; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.flight[data-state="playing"] .split, .flight[data-state="landed"] .split { opacity: 0; visibility: hidden; }
.split__img { position: absolute; top: 0; height: 100%; width: 62%; object-fit: cover; }
.split__img--a { left: 0; object-position: 42% 50%; clip-path: polygon(0 0, calc((var(--at) + var(--lean)) / .62) 0, calc((var(--at) - var(--lean)) / .62) 100%, 0 100%); }
.split__img--b { left: 38%; object-position: 70% 50%; clip-path: polygon(calc((var(--at) + var(--lean) - 38%) / .62) 0, 100% 0, 100% 100%, calc((var(--at) - var(--lean) - 38%) / .62) 100%); }
.split__line { position: absolute; inset: 0; background: var(--ambar); opacity: .9; clip-path: polygon(calc(var(--at) + var(--lean) - 1px) 0, calc(var(--at) + var(--lean) + 1px) 0, calc(var(--at) - var(--lean) + 1px) 100%, calc(var(--at) - var(--lean) - 1px) 100%); }
.split::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 46% at 50% 50%, rgba(6,10,34,.66), rgba(6,10,34,0) 72%); }
/* 100lvh - 100svh = the strip a phone's browser bars can cover: the names stay above it */
.split__name { position: absolute; z-index: 1; bottom: calc(100lvh - 100svh + clamp(1.4rem, 6svh, 3.2rem)); font: 700 clamp(1.3rem, 3.4vw, 2.3rem)/1 var(--display); font-stretch: 100%; text-shadow: 0 2px 22px rgba(6,10,34,.85); }
.split__name--a { left: var(--pad); }
.split__name--b { right: var(--pad); text-align: right; }
@media (orientation: portrait) {
  .split { --lean: 4%; }
  .split__img { left: 0; width: 100%; height: 62%; }
  .split__img--a { top: 0; object-position: 50% 45%; clip-path: polygon(0 0, 100% 0, 100% calc((var(--at) - var(--lean)) / .62), 0 calc((var(--at) + var(--lean)) / .62)); }
  .split__img--b { top: 38%; left: 0; object-position: 68% 60%; clip-path: polygon(0 calc((var(--at) + var(--lean) - 38%) / .62), 100% calc((var(--at) - var(--lean) - 38%) / .62), 100% 100%, 0 100%); }
  .split__line { clip-path: polygon(0 calc(var(--at) + var(--lean) - 1px), 100% calc(var(--at) - var(--lean) - 1px), 100% calc(var(--at) - var(--lean) + 1px), 0 calc(var(--at) + var(--lean) + 1px)); }
  .split__name--a { top: calc(max(.8rem, env(safe-area-inset-top)) + .7rem); bottom: auto; }
  .split__name--b { bottom: calc(100lvh - 100svh + 15svh); }
}

/* The split screen tells itself slowly, one piece at a time: Coimbra, its name, Mortágua, its
   name, the line between them, the question, the invitation, and last the cue to scroll.
   js/intro.js (STORY) holds the take-off until the cue is there. */
.split { background: var(--noite); }
@keyframes story-in { from { opacity: 0; } }
@keyframes story-photo { from { opacity: 0; transform: scale(1.08); } }
@keyframes story-up { from { opacity: 0; transform: translateY(20px); } }
.flight[data-state="split"] .split__img--a { animation: story-photo 2.8s ease .3s both; }
.flight[data-state="split"] .split__name--a { animation: story-up 1.3s var(--out) 2.0s both; }
.flight[data-state="split"] .split__img--b { animation: story-photo 2.8s ease 3.0s both; }
.flight[data-state="split"] .split__name--b { animation: story-up 1.3s var(--out) 4.7s both; }
.flight[data-state="split"] .split__line { animation: story-in 1.5s ease 5.4s both; }
.flight[data-state="split"] .split::after { animation: story-in 1.6s ease 5.8s both; }
.flight__intro h1 span { display: inline-block; }
.flight[data-state="split"] .flight__intro h1 span { animation: story-up 1.4s var(--out) 6.2s both; }
.flight[data-state="split"] .flight__intro h1 span:last-of-type { animation-delay: 7.0s; }
.flight[data-state="split"] .flight__lede { animation: story-up 1.3s var(--out) 8.0s both; }
.flight[data-state="split"] .flight__intro .flight__cue { animation: story-in 1.2s ease 9.2s both; }

/* ---------- the Krakow video, full screen after touchdown ---------- */
.flight__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.flight[data-state="landed"] .flight__video { opacity: 1; }

/* ---------- hops: map flight from the main square, played on the backdrop ---------- */
.stage__hop { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; opacity: 0; transition: opacity .9s ease; }
.stage__hop.is-on { opacity: 1; transition-duration: .45s; }

/* ---------- arrival ---------- */
.arrival { min-height: 110svh; display: flex; align-items: center; padding: 16svh var(--pad); }
.arrival__body { max-width: 44rem; }
.arrival h2 { font: 800 clamp(2rem, 6vw, 4.2rem)/.98 var(--display); font-stretch: 86%; letter-spacing: -.015em; text-wrap: balance; }
.arrival__body > p { margin-top: 1.4rem; max-width: 36rem; color: var(--texto); font-size: clamp(1.0625rem, 1.9vw, 1.2rem); }
.arrival__how { padding-left: 1rem; border-left: 2px solid var(--ambar); color: var(--gelo) !important; }

.facts { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 0 clamp(1.1rem, 4vw, 2.4rem); margin-top: 1.5rem; }
.facts > div { border-top: 1px solid var(--fio); padding-top: .5rem; }
.facts dt { font-size: .8125rem; color: var(--fraco); }
.facts dd { font: 600 clamp(1.25rem, 4.6vw, 1.7rem)/1.15 var(--display); font-stretch: 92%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts dd small { font: 400 .8125rem var(--body); color: var(--fraco); margin-left: .3rem; }
.facts--trip { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 1.2rem clamp(1.4rem, 5vw, 3rem); margin-top: 2rem; }
@media (min-width: 720px) { .facts--trip { grid-template-columns: repeat(4, max-content); } }

/* ---------- places ---------- */
.scene { position: relative; min-height: 205svh; padding: 78svh var(--pad) 0; display: flex; align-items: flex-end; overflow-x: clip; }
.scene__body { position: sticky; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + clamp(1rem, 4svh, 2.6rem)); width: 100%; max-width: 40rem; opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .55s ease, transform .8s var(--out); }
.scene.is-live .scene__body { opacity: 1; transform: none; }

.scene__where { font-size: .9375rem; font-weight: 600; color: var(--ambar); text-shadow: 0 1px 10px rgba(6,10,34,.95), 0 0 2px rgba(6,10,34,.8); }
.scene__name { margin-top: .35rem; font: 800 clamp(2.9rem, 13.2vw, 8.4rem)/.86 var(--display); font-stretch: 55%; letter-spacing: -.02em; width: max-content; max-width: calc(100vw - 2 * var(--pad)); overflow-wrap: break-word; text-shadow: 0 2px 44px rgba(6,10,34,.5); transition: font-stretch 1.1s var(--out); }
.scene.is-live .scene__name { font-stretch: var(--wdth, 100%); }
.scene__say { margin-top: .55rem; font-size: .875rem; color: var(--texto); text-shadow: 0 1px 10px rgba(6,10,34,.9); }
.scene__pitch { margin-top: .9rem; color: var(--texto); max-width: 34rem; text-shadow: 0 1px 14px rgba(6,10,34,.7); }
.scene__note { margin-top: .9rem; font-size: .875rem; color: var(--fraco); max-width: 34rem; }
.scene__act { margin-top: 1.25rem; display: flex; align-items: center; gap: 1.1rem; }

.want { display: inline-flex; align-items: center; gap: .8rem; min-height: 3.25rem; padding: .55rem 1.35rem .55rem .7rem; border: 1.5px solid var(--gelo); border-radius: 999px; background: rgba(6,10,34,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 600; font-size: 1.0625rem; transition: background-color .25s, border-color .25s, color .25s; }
.want__box { width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; flex: none; }
.want__box svg { width: 1.05rem; height: 1.05rem; stroke: currentColor; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s ease .05s; }
.want[aria-pressed="true"] { background: var(--ambar); border-color: var(--ambar); color: var(--noite); }
.want[aria-pressed="true"] .want__box svg { stroke-dashoffset: 0; }
@media (hover: hover) { .want:hover { border-color: var(--ambar); } }

.pips { display: flex; gap: .35rem; margin-left: auto; align-items: center; }
.pips i { width: 1.1rem; height: 2px; background: rgba(238,243,255,.3); transition: background-color .4s, width .4s; }
.pips i.is-on { background: var(--gelo); width: 1.9rem; }

.scene__stamp { position: absolute; right: 0; top: clamp(-8.5rem, -15vw, -5.4rem); width: clamp(5.6rem, 21vw, 9.5rem); aspect-ratio: 1; color: var(--ambar); transform: rotate(-13deg) scale(1.7); opacity: 0; pointer-events: none; filter: url(#ink); }
.scene.is-picked .scene__stamp { opacity: .95; transform: rotate(-13deg) scale(1); transition: transform .28s cubic-bezier(.2, 1.6, .4, 1), opacity .12s ease; }
.scene__stamp svg { width: 100%; height: 100%; display: block; }
.scene[data-tone="sober"] .scene__stamp { display: none; }
.scene[data-tone="sober"] .scene__name { font-weight: 600; }

/* The page moves one step per scroll here (js/steps.js), so a swipe must not pan it natively. */
html.has-steps .flight, html.has-steps .arrival, html.has-steps .scene, html.has-steps .hosts { touch-action: none; }

/* ---------- sound: the speaker button (on / off), always on screen ---------- */
.sound { position: fixed; z-index: 30; top: max(.8rem, env(safe-area-inset-top)); right: max(.8rem, env(safe-area-inset-right)); display: flex; align-items: center; padding: .2rem; border: 1px solid var(--fio); border-radius: 999px; background: rgba(6,10,34,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.sound__btn { width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--gelo); }
.sound__btn svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sound__body { fill: currentColor; stroke-width: 1; }
.sound__x { display: none; }
.sound[data-on="false"] .sound__wave { display: none; }
.sound[data-on="false"] .sound__x { display: inline; }
.sound[data-on="false"] .sound__btn { color: var(--fraco); }
.sound.is-waiting .sound__btn { color: var(--ambar); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.sound__hint { position: absolute; right: calc(100% + .6rem); top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: .8125rem; font-weight: 500; color: var(--ambar); text-shadow: 0 1px 10px rgba(6,10,34,.95); pointer-events: none; }
@media (max-width: 700px) { .telemetry { top: calc(max(.8rem, env(safe-area-inset-top)) + 3.6rem); } }
@media (min-width: 701px) { .telemetry { right: calc(var(--pad) + 5rem); } }

/* ---------- menu: a button in the corner, a full-screen list of every part of the page ---------- */
.burger { position: fixed; z-index: 41; top: max(.8rem, env(safe-area-inset-top)); left: max(.8rem, env(safe-area-inset-left)); width: 3.05rem; height: 3.05rem; padding: 0; border: 1px solid var(--fio); border-radius: 50%; background: rgba(6,10,34,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; place-content: center; gap: 5px; opacity: 0; visibility: hidden; transform: scale(.6); transition: opacity .4s ease, transform .5s var(--out), visibility 0s linear .4s, border-color .2s; }
.burger.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.burger span { display: block; width: 1.25rem; height: 2px; border-radius: 2px; background: var(--gelo); transition: transform .45s var(--out), opacity .2s ease, width .3s var(--out); }
.burger:hover { border-color: var(--ambar); }
.burger:hover span:nth-child(2) { width: .8rem; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
html.is-gate .burger { display: none; }

.menu { position: fixed; inset: 0; z-index: 40; background: #060A22; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; clip-path: circle(0 at var(--x, 2.3rem) var(--y, 2.3rem)); transition: clip-path .7s cubic-bezier(.7, 0, .2, 1); }
.menu.is-open { clip-path: circle(150vmax at var(--x, 2.3rem) var(--y, 2.3rem)); }
.menu__bg { position: fixed; inset: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1.08); transition: opacity .7s ease, transform 6s ease-out; pointer-events: none; }
.menu__bg.is-on { opacity: .3; transform: scale(1); }
.menu__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(6,10,34,.9), rgba(6,10,34,.2)); }
.menu__list { position: relative; min-height: 100%; padding: clamp(4.6rem, 11svh, 6.5rem) var(--pad) clamp(2rem, 6svh, 4rem); display: grid; gap: clamp(1.1rem, 3svh, 2rem) clamp(2rem, 6vw, 6rem); align-content: center; }
@media (min-width: 900px) { .menu__list { grid-template-columns: repeat(3, max-content); justify-content: start; align-content: center; } .menu__group:nth-child(4) { grid-column: 1; }
  .menu__group button { font-size: clamp(1.5rem, 2.5vw, 2.5rem); } .menu__group button:hover, .menu__group button:focus-visible { font-stretch: 100%; } }
.menu__group h2 { font: 600 .9375rem/1.2 var(--body); color: var(--ambar); margin-bottom: .35rem; }
.menu__group ul { display: grid; }
.menu__group h2, .menu__group li { opacity: 0; transform: translateY(26px); transition: opacity .3s ease, transform .3s ease; }
.menu.is-open .menu__group h2, .menu.is-open .menu__group li { opacity: 1; transform: none; transition: opacity .6s ease calc(.22s + var(--i) * .035s), transform .9s var(--out) calc(.22s + var(--i) * .035s); }
.menu__group button { display: inline-flex; align-items: center; gap: .6rem; padding: .12em 0; border: 0; background: none; text-align: left; font: 800 clamp(1.7rem, 6.4vw, 3.1rem)/1.04 var(--display); font-stretch: 78%; letter-spacing: -.015em; color: var(--gelo); transition: font-stretch .5s var(--out), color .25s ease; }
.menu__group button::before { content: ""; width: 0; height: 2px; background: var(--ambar); transition: width .45s var(--out); }
.menu__group button:hover, .menu__group button:focus-visible { font-stretch: 112%; color: var(--ambar); outline: none; }
.menu__group button:hover::before, .menu__group button:focus-visible::before { width: 1.6rem; }
.menu__group button.is-here { color: var(--ambar); }
.menu__group button.is-here::before { width: .55rem; height: .55rem; border-radius: 50%; }
/* On a computer (a mouse), pointing at a name only changes its colour. Nothing grows, stretches or
   slides in, so no name ever pushes another. Phones keep the livelier version above. */
@media (hover: hover) and (pointer: fine) {
  .menu__group button { transition: color .25s ease; }
  .menu__group button:hover, .menu__group button:focus-visible { font-stretch: 78%; }
  .menu__group button:hover::before, .menu__group button:focus-visible::before { width: 0; }
  .menu__group button.is-here:hover::before, .menu__group button.is-here:focus-visible::before { width: .55rem; }
}

/* ---------- text over pictures: readable on any photo ---------- */
.flight__arrival-pre { font-size: clamp(1.45rem, 3.6vw, 2.3rem); font-weight: 600; text-shadow: 0 2px 16px rgba(6,10,34,.95), 0 0 4px rgba(6,10,34,.9); }
.flight__arrival h2 { text-shadow: 0 4px 44px rgba(6,10,34,.9), 0 2px 8px rgba(6,10,34,.7); }
.flight__arrival-post, .flight__cue--next { text-shadow: 0 1px 12px rgba(6,10,34,.95), 0 0 3px rgba(6,10,34,.9); }
.scene__where { font-size: clamp(1rem, 2.5vw, 1.2rem); text-shadow: 0 2px 14px rgba(6,10,34,.98), 0 0 4px rgba(6,10,34,.95); }
.scene__name { text-shadow: 0 4px 40px rgba(6,10,34,.9), 0 2px 8px rgba(6,10,34,.7); }
.scene__pitch, .scene__say, .scene__note, .facts dt, .facts dd { text-shadow: 0 1px 12px rgba(6,10,34,.95), 0 0 3px rgba(6,10,34,.85); }

/* next photo: a small round button beside the lines that count the photos */
.nextphoto { flex: none; width: 2.75rem; height: 2.75rem; border: 1.5px solid rgba(238,243,255,.75); border-radius: 50%; background: rgba(6,10,34,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; transition: border-color .2s, background-color .2s, transform .3s var(--out); }
.nextphoto svg { width: 1rem; height: 1rem; fill: none; stroke: var(--gelo); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nextphoto:hover { border-color: var(--ambar); transform: translateX(3px); }
.nextphoto:active { background: var(--ambar); }
html.no-choices .scene__act { gap: .9rem; }

/* ---------- rail (desktop place index) ---------- */
.rail { display: none; }
@media (min-width: 1100px) and (hover: hover) {
  .rail { position: fixed; z-index: 15; right: 1.1rem; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: .1rem; opacity: 0; pointer-events: none; transition: opacity .4s; }
  .rail.is-on { opacity: 1; pointer-events: auto; }
  .rail button { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; background: none; border: 0; padding: .22rem 0; font-size: .8125rem; color: transparent; transition: color .2s; }
  .rail button::after { content: ""; width: 1.1rem; height: 2px; background: rgba(238,243,255,.38); transition: background-color .2s, width .3s var(--out); }
  .rail:hover button, .rail button:focus-visible { color: var(--fraco); }
  .rail button:hover { color: var(--gelo); }
  .rail button.is-live { color: var(--gelo); }
  .rail button.is-live::after { width: 2.2rem; background: var(--gelo); }
  .rail button.is-picked::after { background: var(--ambar); }
}

/* ---------- base costs ---------- */
.costs, .total, .save { padding: 14svh var(--pad); }
.costs__body { max-width: 46rem; }
.costs h2, .save h2 { font: 800 clamp(1.9rem, 5.4vw, 3.6rem)/1 var(--display); font-stretch: 86%; letter-spacing: -.015em; text-wrap: balance; }
.costs__lede { margin-top: 1rem; color: var(--texto); max-width: 34rem; }

.group { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.stepper { display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; column-gap: .35rem; align-items: center; }
.stepper__label { grid-column: 1 / -1; font-size: .8125rem; color: var(--fraco); margin-bottom: .3rem; }
.stepper button { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid var(--fio); background: rgba(18,26,72,.6); font-size: 1.35rem; line-height: 1; }
.stepper button:hover { border-color: var(--linha); }
.stepper output { min-width: 2.4rem; text-align: center; font: 700 1.7rem/1 var(--display); font-variant-numeric: tabular-nums; }
.switch { display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem; align-self: flex-end; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__box { width: 3.1rem; height: 1.8rem; border-radius: 999px; border: 1.5px solid var(--fio); background: rgba(18,26,72,.6); position: relative; transition: background-color .25s, border-color .25s; }
.switch__box::after { content: ""; position: absolute; top: 50%; left: .2rem; width: 1.2rem; height: 1.2rem; margin-top: -.6rem; border-radius: 50%; background: var(--gelo); transition: transform .25s var(--out), background-color .25s; }
.switch input:checked + .switch__box { background: var(--ambar); border-color: var(--ambar); }
.switch input:checked + .switch__box::after { transform: translateX(1.3rem); background: var(--noite); }
.switch input:focus-visible + .switch__box { outline: 2px solid var(--ambar); outline-offset: 3px; }

.lines { margin-top: 2.2rem; border-top: 1px solid var(--fio); }
.lines li { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1.2rem; padding: 1rem 0; border-bottom: 1px solid var(--fio); }
.lines h3 { font: 600 1.0625rem/1.3 var(--body); }
.lines .amount { font: 700 clamp(1.15rem, 3.8vw, 1.45rem)/1.2 var(--display); font-stretch: 92%; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.lines p { grid-column: 1 / -1; font-size: .9375rem; color: var(--fraco); max-width: 38rem; }

/* ---------- total: the boarding pass ---------- */
.total { padding-top: 6svh; }
.pass { --paper: #EEF3FF; --ink: #0B1238; max-width: 62rem; color: var(--ink); display: grid; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.pass__main { background: var(--paper); padding: clamp(1.3rem, 4vw, 2.6rem); border-radius: 18px 18px 0 0;
  -webkit-mask: radial-gradient(circle 11px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat; }
.pass__stub { background: var(--paper); padding: clamp(1.3rem, 4vw, 2.2rem); border-radius: 0 0 18px 18px; border-top: 2px dashed rgba(11,18,56,.28);
  -webkit-mask: radial-gradient(circle 11px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat; }
@media (min-width: 900px) {
  .pass { grid-template-columns: 1fr 19rem; }
  .pass__main { border-radius: 18px 0 0 18px;
    -webkit-mask: radial-gradient(circle 11px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
            mask: radial-gradient(circle 11px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
  .pass__stub { border-radius: 0 18px 18px 0; border-top: 0; border-left: 2px dashed rgba(11,18,56,.28);
    -webkit-mask: radial-gradient(circle 11px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
            mask: radial-gradient(circle 11px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
}
.pass__route { display: flex; align-items: center; gap: clamp(.6rem, 3vw, 1.4rem); }
.pass__code { font: 900 clamp(2.6rem, 11vw, 5rem)/.9 var(--display); font-stretch: 112%; letter-spacing: -.01em; }
.pass__plane { flex: 1; max-width: 9rem; height: 1rem; color: #B3261E; }
.pass__sub { margin-top: .5rem; color: rgba(11,18,56,.7); }
.pass__lines { margin-top: 1.5rem; border-top: 1px solid rgba(11,18,56,.18); }
.pass__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-bottom: 1px solid rgba(11,18,56,.12); }
.pass__lines span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pass__lines small { display: block; font-size: .8125rem; color: rgba(11,18,56,.62); }
.pass__sum { margin-top: 1.3rem; display: grid; gap: .5rem; }
.pass__sum p { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pass__sum span { color: rgba(11,18,56,.7); }
.pass__sum b { font: 800 clamp(1.5rem, 6vw, 2.3rem)/1 var(--display); font-stretch: 90%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pass__per b { font-size: clamp(2.1rem, 9.5vw, 3.8rem); }
.pass__fine { margin-top: 1.2rem; font-size: .8125rem; color: rgba(11,18,56,.62); max-width: 34rem; }
.pass__stub h3 { font: 700 1.05rem/1.2 var(--display); font-stretch: 100%; }
.pass__stamps { margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr)); gap: .55rem .9rem; }
.pass__stamps li { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; line-height: 1.2; }
.pass__stamps svg { width: 1.9rem; height: 1.9rem; flex: none; color: #B3261E; transform: rotate(-12deg); }
.pass__stamps small { display: block; color: rgba(11,18,56,.62); font-variant-numeric: tabular-nums; }
.pass__empty { margin-top: 1rem; color: rgba(11,18,56,.7); font-size: .9375rem; }

/* ---------- save ---------- */
.save { padding-bottom: 4rem; }
.save__form { max-width: 34rem; }
.save__form > p { margin-top: .9rem; color: var(--texto); }
.save__form label { display: block; margin-top: 1.8rem; font-size: .875rem; color: var(--fraco); }
.save__row { margin-top: .45rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.save__row input { flex: 1 1 13rem; min-height: 3.25rem; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--fio); background: rgba(18,26,72,.6); }
.save__row input::placeholder { color: rgba(238,243,255,.4); }
.save__row input:focus { border-color: var(--linha); outline: none; }
.save__row button { min-height: 3.25rem; padding: 0 1.6rem; border-radius: 999px; border: 0; background: var(--ambar); color: var(--noite); font-weight: 700; }
.save__row button[disabled] { opacity: .6; cursor: progress; }
.save__msg { margin-top: 1rem; min-height: 1.5em; }
.save__msg.is-error { color: #FF9C8F; }
.save__msg.is-ok { color: var(--ambar); }

/* ---------- hosts: a title page, João's two photos, Kasia's video full screen ---------- */
.hosts { position: relative; min-height: 100lvh; overflow: hidden; }
.hosts__name { position: absolute; z-index: 2; left: var(--pad); top: clamp(4.2rem, 9svh, 6rem); font: 800 clamp(2.6rem, 11vw, 7rem)/.9 var(--display); font-stretch: 100%; letter-spacing: -.02em; }

.hosts--title { display: grid; align-content: center; gap: clamp(1.6rem, 5svh, 3.4rem); padding: 0 var(--pad); height: 100svh; min-height: 0; }
.hosts--title h2 { font: 800 clamp(2.2rem, 8.6vw, 6rem)/.92 var(--display); font-stretch: 84%; letter-spacing: -.02em; text-wrap: balance; max-width: 14ch; }
/* The two names are two little people (js/hosts.js, "the argument").
   Without the script (or for people who asked for less motion) they are just two lines of big text.
   With it (.is-live) each name is placed by the script: --x / --y is where it stands, --lx / --ly
   how far from there it lies as normal text; .is-up stands it on its feet (its last letter),
   .is-fight is the argument further down the screen. */
.duo { font: 800 min(11.5svh, 19.5vw)/.9 var(--display); font-stretch: 112%; letter-spacing: -.03em; color: var(--ambar); }
.duo .who { position: relative; display: block; --dir: 1; }
.duo .who--b { color: var(--gelo); --dir: -1; }
.duo .who__body { display: block; }
.duo .who__name { display: inline-block; white-space: nowrap; }
.duo .who__name b { display: inline-block; font-weight: inherit; transform-origin: 100% 60%; will-change: transform; }      /* the head */
.duo.is-live { position: relative; }
.duo.is-live .who { position: absolute; left: 0; top: 0; transform: translate(var(--x, 0px), var(--y, 0px)); transition: transform 1.25s cubic-bezier(.5, 0, .2, 1); }
.duo.is-live .who__body { position: absolute; inset: 0; transform-origin: 50% 100%; transition: transform .3s var(--out); }
.duo.is-live .who__name { position: absolute; right: 100%; bottom: 0; transform-origin: 100% 100%; transform: translate(var(--lx, 0px), var(--ly, 0px)) rotate(0deg); transition: transform 1.15s cubic-bezier(.3, 1.35, .5, 1); }
.duo.is-up .who__name { transform: translate(0px, 0px) rotate(90deg); }
.duo.is-still, .duo.is-still * { transition: none !important; }
.duo .who.is-talking .who__body { transform: rotate(calc(5deg * var(--dir))); }                       /* leaning in to make a point */
.duo .who.is-listening .who__body { transform: rotate(calc(-6deg * var(--dir))) scaleY(.97); }        /* leaning away, not having it */
.duo.is-fight .who.is-talking .who__body { transform: rotate(calc(10deg * var(--dir))) scaleY(1.03); }
.duo.is-fight .who.is-listening .who__body { transform: rotate(calc(-9deg * var(--dir))) scaleY(.95); }
/* speech bubbles, like in a comic: words for the calm lines, symbols for the argument */
.who__bubble { position: absolute; z-index: 2; left: 0; bottom: calc(100% + .8rem); margin: 0; width: max-content; max-width: var(--bw, 11rem); padding: .55em .85em; border-radius: 1.1em; background: #fff; color: var(--noite); font: 700 clamp(.82rem, 3.5vw, 1.05rem)/1.2 var(--body); font-stretch: 100%; letter-spacing: 0; text-align: center; box-shadow: 0 6px 22px rgba(0,0,0,.4); opacity: 0; transform: translateX(var(--bx, 0px)) scale(.3); transform-origin: var(--tail, 50%) 100%; transition: transform .16s var(--out), opacity .12s ease; pointer-events: none; }
.who__bubble::after { content: ""; position: absolute; left: var(--tail, 50%); top: 100%; margin-left: -.45em; border: .5em solid transparent; border-top-color: #fff; border-bottom: 0; }
.who__bubble.is-on { opacity: 1; transform: translateX(var(--bx, 0px)) scale(1); }
.who__bubble.is-rude { font: 800 clamp(1rem, 4.4vw, 1.4rem)/1 var(--display); letter-spacing: .06em; animation: rude .17s linear infinite; }
@keyframes rude { 0%, 100% { translate: -1px 0; } 50% { translate: 2px -2px; } }

/* the cousins' dinner: a title, a very big ZERO, and who pays in small letters */
.hosts--dinner { gap: clamp(1rem, 3.4svh, 2.4rem); }
.dinner__cost { font: 800 clamp(2rem, 8vw, 5rem)/.9 var(--display); font-stretch: 100%; letter-spacing: -.02em; }
.dinner__cost b { display: block; margin-top: .06em; font-size: clamp(5.5rem, 31vw, 20rem); line-height: .8; font-stretch: 112%; letter-spacing: -.04em; color: var(--ambar); }
.dinner__who { font-size: clamp(1rem, 2.2vw, 1.35rem); color: var(--fraco); letter-spacing: .02em; }
.dinner__hope { margin-top: calc(-1 * clamp(.5rem, 2.2svh, 1.6rem)); font-size: clamp(.82rem, 1.7vw, 1rem); font-style: italic; color: var(--fraco); opacity: .8; }

/* João: studio photos on white, so this one step is a white page */
.hosts--joao { background: #FEFEFE; color: var(--noite); height: 100lvh; }
.joao__photos { position: absolute; inset: 0; height: 100svh; }
.joao__photos img { position: absolute; right: 0; bottom: 0; height: min(100%, 150vw); width: auto; max-width: none; opacity: 0; transition: opacity 1.3s ease; }
.joao__photos img.is-on { opacity: 1; }
.joao__caption { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: calc(100lvh - 100svh + clamp(1.6rem, 7svh, 4.5rem)); max-width: 15ch; font: 700 clamp(1.5rem, 5.4vw, 3rem)/1.08 var(--display); font-stretch: 92%; letter-spacing: -.01em; text-wrap: balance; opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .7s var(--out); }
.joao__caption.is-on { opacity: 1; transform: none; }
@media (max-width: 720px) {
  .joao__photos img { right: 50%; transform: translateX(50%); height: min(86%, 150vw); }
  .joao__caption { max-width: none; padding: .5rem .8rem; margin: 0 calc(var(--pad) * -.35); background: rgba(254,254,254,.86); border-radius: 12px; }
}

/* Kasia: the upright video fills the screen on a phone; on a wide screen it stands in the middle
   at full height, over a blurred still of itself */
.hosts--kasia { height: 100lvh; background: #000; }
.hosts--kasia::before { content: ""; position: absolute; inset: -6%; background: url(../video/kasia.jpg) center / cover; filter: blur(46px) brightness(.38) saturate(1.2); }
.kasia__frame { position: relative; height: 100svh; width: min(100%, calc(100svh * 9 / 16)); margin: 0 auto; overflow: hidden; background: #000; }
.kasia__frame video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.kasia__frame .hosts__name { left: 6%; top: clamp(4rem, 9svh, 5.4rem); font-size: clamp(2.4rem, 7svh, 4.4rem); text-shadow: 0 2px 24px rgba(0,0,0,.6); pointer-events: none; }
.hosts__sub { position: absolute; left: 4%; right: 4%; bottom: 6%; text-align: center; font-weight: 600; font-size: clamp(1.25rem, 3.3svh, 2rem); line-height: 1.45; color: #fff; pointer-events: none; }
.hosts__sub span { background: rgba(0,0,0,.78); padding: .14em .45em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hosts__play { position: absolute; inset: 0; margin: auto; width: 4.4rem; height: 4.4rem; border: 0; border-radius: 50%; background: rgba(6,10,34,.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; }
.hosts__play svg { width: 1.9rem; height: 1.9rem; fill: var(--gelo); }
/* the sound control is dark-on-light friendly already; on João's white page it needs its dark pill */
.joao__next { position: absolute; z-index: 2; left: var(--pad); bottom: calc(100lvh - 100svh + clamp(.5rem, 1.6svh, 1.2rem)); margin: 0; color: var(--noite); text-shadow: none; font-weight: 600; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.joao__next.is-on { opacity: 1; }
.joao__next .flight__cue-line { background: linear-gradient(var(--noite), transparent); height: 1.8rem; }
.hosts--joao .joao__caption { bottom: calc(100lvh - 100svh + clamp(4.2rem, 11svh, 6.5rem)); }

/* ---------- the last screen: "eu vou" ---------- */
.going { margin-top: 1.8rem; min-height: 3.6rem; padding: .7rem 1.8rem; border: 0; border-radius: 999px; background: var(--ambar); color: var(--noite); font: 800 clamp(1.15rem, 4.6vw, 1.6rem)/1.1 var(--display); font-stretch: 92%; transition: transform .25s var(--out), background-color .25s; }
/* a heartbeat: two bumps, the first a little bigger (js/going.js restarts it and plays the two thumps) */
.going.is-beat { animation: heart .62s ease-out; }
@keyframes heart { 0% { transform: scale(1); } 12% { transform: scale(1.13); } 30% { transform: scale(1); } 46% { transform: scale(1.08); } 70%, 100% { transform: scale(1); } }
.going { box-shadow: 0 0 0 0 rgba(255,176,46,.5); }
.going.is-beat { box-shadow: 0 0 0 0 rgba(255,176,46,0); transition: box-shadow 0s; }
.going.is-beat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--ambar); animation: ring .9s ease-out; opacity: 0; pointer-events: none; }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35, 1.7); } }
.going { position: relative; }
.going:hover { filter: brightness(1.08); }
.going.is-done { background: var(--gelo); }
.going__done { margin-top: .8rem !important; color: var(--ambar) !important; font-weight: 600; }
/* on a phone the box sits in the top half, so the keyboard does not cover the name field */
@media (max-width: 720px) { .going__box { margin-top: 9svh; } }
.going__box { width: min(26rem, calc(100vw - 2rem)); padding: clamp(1.4rem, 5vw, 2.2rem); border: 1px solid var(--fio); border-radius: 22px; background: var(--indigo); color: var(--gelo); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.going__box::backdrop { background: rgba(6,10,34,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.going__box[open] { animation: rise .45s var(--out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.going__box h3 { font: 800 clamp(1.5rem, 6vw, 2rem)/1 var(--display); font-stretch: 88%; }
.going__box form > p { margin-top: .6rem; color: var(--texto); }
.going__box label { display: block; margin-top: 1.4rem; font-size: .875rem; color: var(--fraco); }
.going__box input { width: 100%; margin-top: .4rem; min-height: 3.25rem; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--fio); background: rgba(6,10,34,.6); }
.going__box input:focus { border-color: var(--linha); outline: none; }
.going__msg { min-height: 1.5em; }
.going__msg.is-error { color: #FF9C8F !important; }
.going__msg.is-ok { color: var(--ambar) !important; }
.going__row { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.going__row button { min-height: 3.1rem; padding: 0 1.5rem; border-radius: 999px; border: 1.5px solid var(--fio); background: none; font-weight: 600; }
.going__row button[type="submit"] { border: 0; background: var(--ambar); color: var(--noite); font-weight: 700; }
.going__row button[disabled] { opacity: .6; }

/* ---------- closing screen ---------- */
.outro { padding: 0 var(--pad); }
.outro__text { min-height: 100svh; flex-direction: column; justify-content: center; }
.outro h2 { font: 800 clamp(3rem, 13vw, 9rem)/.88 var(--display); font-stretch: 80%; letter-spacing: -.02em; }
.outro__text p { margin-top: 1.4rem; max-width: 30rem; font-size: clamp(1.0625rem, 2.2vw, 1.3rem); color: var(--texto); }
.nb { white-space: nowrap; }

/* the people we are asking: one portrait at a time, edges faded away, with a glow behind it */
.crew { position: relative; flex: none; width: min(68vw, 33svh); margin: 0 auto 1.2rem; }
.crew__frame { position: relative; aspect-ratio: 4 / 5; }
.crew__frame::before { content: ""; position: absolute; inset: -26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(134,184,255,.9), rgba(134,184,255,.42) 46%, rgba(134,184,255,0) 76%); filter: blur(22px); animation: crewGlow 4.6s ease-in-out infinite; pointer-events: none; }
/* a little of the same light over the face, so the picture itself seems to shine */
.crew__frame::after { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(238,243,255,.26), rgba(134,184,255,.12) 55%, rgba(134,184,255,0) 80%); mix-blend-mode: screen; animation: crewGlow 4.6s ease-in-out infinite; pointer-events: none; }
@keyframes crewGlow { 0%, 100% { opacity: .55; transform: scale(.93); } 50% { opacity: 1; transform: scale(1.05); } }
.crew__one { position: absolute; inset: 0; margin: 0; opacity: 0; }
.crew__one img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* each portrait drifts slowly closer while it is showing (and keeps going while it leaves, so it never snaps back) */
.crew__one.is-on img, .crew__one.is-out img { animation: crewZoom 5s linear both; }
@keyframes crewZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.crew__one.is-on { animation: crewIn 1.15s var(--out) .3s both; }      /* waits for the one before to be on its way out */
.crew__one.is-out { animation: crewOut .6s ease-in both; }
@keyframes crewIn { from { opacity: 0; transform: translateX(38%) scale(.93); } to { opacity: 1; transform: none; } }
@keyframes crewOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-38%) scale(.93); } }
.outro__text .crew__ask { position: relative; margin: -1.6rem 0 0; max-width: none; text-align: center; white-space: nowrap; font: 800 clamp(1.8rem, 7.4vw, 3.2rem)/1 var(--display); font-stretch: 86%; color: var(--gelo); text-shadow: 0 2px 20px rgba(6,10,34,.95), 0 0 2px rgba(6,10,34,.8); }
.crew__ask b { font-weight: inherit; color: var(--ambar); }
/* the question may be wider than the portrait: let it reach past both sides, still centred */
.outro__text .crew__ask { margin-inline: -22vw; }
.crew__ask.is-long { font-size: clamp(1.5rem, 6.3vw, 2.8rem); }
.crew__ask.is-in { animation: crewAsk .9s var(--out) .3s both; }
@keyframes crewAsk { from { opacity: 0; transform: translateX(1.4em); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .outro__text { flex-direction: row; align-items: center; justify-content: space-between; gap: 4vw; }
  .outro__say { order: 1; flex: 1 1 0; min-width: 0; }
  .crew { order: 2; width: min(32vw, 58svh); margin: 0 3vw 0 0; }
}

/* ---------- parts switched off in js/data.js (VP.features) ---------- */
.only-plain { display: none; }
html.no-choices p.only-plain { display: block; }
html.no-choices .outro__text { display: flex; }
html.no-choices .only-choices, html.no-choices #guardar, html.no-choices .scene__stamp, html.no-choices .bar__picks { display: none; }
html.no-prices #custos, html.no-prices #total, html.no-prices .bar__total, html.no-prices .bar__go { display: none; }
html.no-prices.no-choices .bar { display: none; }
html.no-choices .pips { margin-left: 0; }
html.no-prices.no-choices { --bar-h: 0rem; }

/* ---------- bottom bar ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; min-height: var(--bar-h); display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2rem); padding: .55rem var(--pad) calc(.55rem + env(safe-area-inset-bottom)); background: rgba(6,10,34,.8); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-top: 1px solid var(--fio); transform: translateY(105%); transition: transform .5s var(--out); }
.bar.is-up { transform: none; }
.bar__picks { font-size: .875rem; color: var(--fraco); white-space: nowrap; }
.bar__picks b { font: 800 1.5rem/1 var(--display); color: var(--ambar); font-variant-numeric: tabular-nums; margin-right: .15rem; }
.bar__total { margin-left: auto; text-align: right; line-height: 1.15; min-width: 0; }
.bar__total span { display: block; font-size: .75rem; color: var(--fraco); }
.bar__total b { font: 700 clamp(1.05rem, 4.4vw, 1.4rem)/1.15 var(--display); font-stretch: 90%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar__go { flex: none; padding: .7rem 1.1rem; border-radius: 999px; background: var(--gelo); color: var(--noite); font-weight: 700; font-size: .9375rem; text-decoration: none; white-space: nowrap; }

/* ---------- results page ---------- */
.results { position: relative; z-index: 1; padding: clamp(1.5rem, 6vw, 4rem) var(--pad) 6rem; max-width: 70rem; }
.results h1 { font: 800 clamp(2.2rem, 7vw, 4.4rem)/.95 var(--display); font-stretch: 84%; letter-spacing: -.015em; }
.results h2 { margin-top: 3rem; font: 700 1.5rem/1.1 var(--display); font-stretch: 92%; }
.results > p { margin-top: .8rem; color: var(--texto); max-width: 40rem; }
.results table { width: 100%; border-collapse: collapse; margin-top: 1.1rem; font-variant-numeric: tabular-nums; }
.results th, .results td { text-align: left; padding: .65rem .8rem .65rem 0; border-bottom: 1px solid var(--fio); vertical-align: top; }
.results th { font-size: .8125rem; font-weight: 400; color: var(--fraco); }
.results .num { text-align: right; white-space: nowrap; }
.results .meter { display: block; height: 4px; margin-top: .4rem; background: var(--ambar); border-radius: 2px; min-width: 2px; }
.results small { color: var(--fraco); }

@keyframes crewFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .stage__img.is-moving { animation: none; }
  .flight__cue-line, .sound.is-waiting .sound__btn { animation: none; }
  .gate__blink { animation: none; }
  .boot__sky, .boot__sky::after, .boot__lines path, .boot__ping, .boot__halo, .boot__go, .boot__label::after, .boot__sound-wave { animation: none !important; }
  .crew__frame::before, .crew__frame::after, .crew__one img { animation: none !important; }
  .crew__one.is-on, .crew__one.is-out, .crew__ask.is-in { animation-name: crewFade; }
  .crew__one.is-out { animation-direction: reverse; }
  .menu, .menu__group h2, .menu__group li, .menu__group button { transition-duration: .01s !important; transition-delay: 0s !important; }
  .flight[data-state="split"] .split *, .flight[data-state="split"] .split::after, .flight[data-state="split"] .flight__intro * { animation: none !important; }
  .scene__body, .scene__name, .scene.is-picked .scene__stamp, .stage__img { transition-duration: .01s; }
}
