/* Tetrix Air, Flight 001. Golden hour, dusk indigo, cockpit black, avionics green. */

:root {
  --peach: #FFB38A;
  --rose: #E86F8A;
  --indigo: #2B2F5E;
  --dusk: #1B1E40;
  --cloud: #FDF8F3;
  --black: #14171C;
  --green: #5BE38F;
  --amber: #FFC247;
  --magenta: #F062C8;
  --ink: #23264A;
  --ink-soft: #5f5a78;
  --f-disp: "Archivo", system-ui, sans-serif;
  --f-ui: "B612", system-ui, sans-serif;
  --f-mono: "B612 Mono", ui-monospace, Menlo, monospace;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
html.deck-open, html.deck-open body, html.lb-open, html.lb-open body { overflow: hidden; }
body {
  margin: 0;
  background: var(--black);
  color: var(--cloud);
  font-family: var(--f-disp);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--amber); color: var(--black); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: calc(10px + var(--safe-t)); }
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }

.sec-tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font: 700 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--peach);
}
.sec-tag span {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px;
  border: 1.5px solid currentColor; border-radius: 6px; letter-spacing: .04em;
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border: 0; border-radius: 14px;
  font: 700 17px/1.1 var(--f-disp); font-stretch: 108%;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-amber {
  background: linear-gradient(#ffd36e, var(--amber));
  color: var(--black);
  box-shadow: 0 4px 0 #b9821a, 0 10px 24px rgba(255, 194, 71, .28);
}
.btn-amber svg { transform: rotate(45deg); }
.btn-amber:active { transform: translateY(3px); box-shadow: 0 1px 0 #b9821a, 0 4px 10px rgba(255, 194, 71, .2); }
.btn-ghost { background: rgba(253, 248, 243, .08); color: var(--cloud); border: 1.5px solid rgba(253, 248, 243, .28); }
.btn-ghost:active { transform: translateY(2px); }
.btn-text {
  min-height: 44px; padding: 8px 6px;
  background: none; border: 0; cursor: pointer;
  font: 600 16px var(--f-disp); color: inherit;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}

/* ------------------------------------------------------------ top bar */
.topbar {
  position: fixed; z-index: 50; inset: 0 0 auto 0;
  height: calc(56px + var(--safe-t)); padding: var(--safe-t) 12px 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s, box-shadow .3s;
}
.topbar.solid { background: rgba(20, 23, 28, .84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(253, 248, 243, .07); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.brand-fin { width: 24px; height: 24px; color: var(--cloud); --fin-stripe: var(--rose); }
.brand-name { font: 800 15px/1 var(--f-disp); font-stretch: 125%; letter-spacing: .07em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.belt-sign, .sound-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(20, 23, 28, .55); border: 1px solid rgba(253, 248, 243, .18); border-radius: 12px;
  cursor: pointer; color: rgba(253, 248, 243, .45);
  transition: color .25s, box-shadow .25s, background .25s;
}
.belt-sign svg { width: 26px; height: 26px; }
.belt-sign.lit { color: var(--amber); background: #2a2312; box-shadow: 0 0 0 1px rgba(255, 194, 71, .35), 0 0 16px rgba(255, 194, 71, .35); }
.belt-sign.ping svg, .deck-sign.ping svg { animation: ping .5s ease; }
@keyframes ping { 40% { transform: scale(1.18); } }
.sound-btn { color: var(--cloud); }
.sound-btn svg { width: 22px; height: 22px; }
.sound-btn .cross { display: none; }
.sound-btn[aria-pressed="false"] .waves { display: none; }
.sound-btn[aria-pressed="false"] .cross { display: inline; }
.letter-pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  background: var(--rose); color: var(--black); border-radius: 12px;
  font: 700 14px var(--f-disp); font-stretch: 108%; text-decoration: none; white-space: nowrap;
}

/* ------------------------------------------------------------ 01 hero + boarding pass */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  padding: calc(62px + var(--safe-t)) 0 34px;
  background:
    linear-gradient(180deg, #23284f 0%, #3a3a72 20%, #6f4f86 38%, #b7678d 54%, #e8808a 66%, #ffa784 80%, #ffcf9f 100%);
}
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.hero-sun {
  position: absolute; right: -18vmax; bottom: -22vmax; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 190, .95) 0, rgba(255, 210, 150, .6) 9%, rgba(255, 170, 130, .25) 30%, rgba(255, 150, 130, 0) 62%);
}
.hero-clouds { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-clouds { display: none; }
.streak { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 226, 206, .5), rgba(255, 220, 200, .18) 55%, transparent); animation: drift 70s ease-in-out infinite alternate; }
.streak.s1 { left: -20%; top: 58%; width: 90%; height: 36px; }
.streak.s2 { right: -25%; top: 70%; width: 110%; height: 54px; opacity: .8; animation-duration: 90s; animation-direction: alternate-reverse; }
.streak.s3 { left: 10%; top: 84%; width: 120%; height: 70px; background: radial-gradient(closest-side, rgba(255, 240, 220, .55), rgba(255, 225, 205, .2) 60%, transparent); animation-duration: 110s; }
.streak.s4 { left: 30%; top: 40%; width: 60%; height: 18px; opacity: .55; animation-duration: 80s; }
@keyframes drift { to { transform: translateX(6vw); } }

.hero-jet {
  position: absolute; z-index: 0; top: calc(40px + var(--safe-t)); left: 0;
  width: 56px; height: 56px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--cloud);
  animation: overhead 34s linear infinite;
}
.hero-jet svg { position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; transform: rotate(84deg); filter: drop-shadow(0 0 4px rgba(255, 220, 190, .6)); }
.hero-jet .contrail {
  position: absolute; right: 38px; top: 27px; width: 46vw; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(253, 248, 243, 0), rgba(253, 248, 243, .55));
  transform-origin: right center; transform: rotate(-6deg);
}
.hero-jet.waggle svg { animation: waggle .9s ease-in-out; }
@keyframes waggle { 0%, 100% { transform: rotate(84deg); } 20% { transform: rotate(84deg) rotateY(50deg); } 45% { transform: rotate(84deg) rotateY(-50deg); } 70% { transform: rotate(84deg) rotateY(36deg); } }
@keyframes overhead { from { transform: translate(-80px, 22px); } to { transform: translate(calc(100vw + 80px), 2px); } }

.hero-inner { position: relative; z-index: 1; width: min(100% - 28px, 1180px); margin: 0 auto; pointer-events: none; }
.hero-inner .pass-wrap, .hero-inner .hero-skip, .hero-inner a { pointer-events: auto; }
.eyebrow { margin: 0 0 8px; font: 700 12px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--peach); }
.hero-title {
  margin: 0;
  font: 850 clamp(38px, 10.6vw, 112px)/.9 var(--f-disp); font-stretch: 125%;
  letter-spacing: -.025em; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(43, 47, 94, .35);
}
.hero-sub { margin: 10px 0 0; max-width: 30ch; font-size: clamp(17px, 4.5vw, 22px); line-height: 1.35; color: rgba(253, 248, 243, .9); }
.hero-skip { margin: 26px auto 0; max-width: 34ch; text-align: center; font-size: 16px; color: rgba(35, 38, 74, .9); }
.hero-skip a { font-weight: 700; }

/* the pass */
.pass-wrap { margin: 18px auto 0; max-width: 372px; }
.pass {
  --tp: 0;
  position: relative;
  display: flex; flex-direction: column;
  color: var(--ink);
  filter: drop-shadow(0 22px 26px rgba(30, 24, 60, .32)) drop-shadow(0 2px 3px rgba(30, 24, 60, .25));
  transform: rotate(-1.4deg);
  animation: pass-in .9s cubic-bezier(.2, .9, .3, 1.1) both .1s;
}
@keyframes pass-in { from { opacity: 0; transform: translateY(40px) rotate(4deg); } }
.pass-main {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q15 4 30 20 T60 20 T90 20 T120 20' fill='none' stroke='%23f4c9b3' stroke-width='.6'/%3E%3Cpath d='M0 26 Q15 10 30 26 T60 26 T90 26 T120 26' fill='none' stroke='%23f7d8c8' stroke-width='.5'/%3E%3C/svg%3E") 0 0 / 120px 40px,
    linear-gradient(170deg, #fffdf9, var(--cloud) 60%, #f8eee5);
  border-radius: 18px 18px 0 0;
  -webkit-mask: radial-gradient(circle 10px at 0 calc(100% - 2.5px), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% calc(100% - 2.5px), #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 10px at 0 calc(100% - 2.5px), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% calc(100% - 2.5px), #0000 97%, #000) right / 51% 100% no-repeat;
}
.pass-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 18px 18px 0 0;
  background: linear-gradient(100deg, var(--indigo), #3b3672 70%, #5a3f78);
  color: var(--cloud);
}
.pass-fin { width: 30px; height: 30px; color: var(--cloud); --fin-stripe: var(--peach); }
.pass-airline { font: 850 19px/1 var(--f-disp); font-stretch: 125%; letter-spacing: .06em; text-transform: uppercase; }
.pass-kind { text-align: right; font: 400 9.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.pass-kind b { display: block; font: 700 12px/1.3 var(--f-ui); letter-spacing: .08em; color: var(--peach); }
.pass-body { padding: 12px 16px 10px; }
.pf { display: flex; flex-direction: column; min-width: 0; }
.pl { font: 400 9.5px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #8d7f95; }
.pv { margin-top: 3px; font: 700 15px/1.15 var(--f-ui); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); overflow-wrap: anywhere; }
.ps { font: 400 10px/1.2 var(--f-mono); color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.pass-namerow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf-name .pv { font: 850 25px/1 var(--f-disp); font-stretch: 118%; letter-spacing: .01em; }
.boarding-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: rgba(19, 138, 76, .1); color: #138a4c; font: 700 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.boarding-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1fb866; box-shadow: 0 0 6px #1fb866; animation: blink 1.2s steps(2, jump-none) infinite; }
.pass-route { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 8px; margin: 8px 0 8px; }
.ap { display: flex; flex-direction: column; }
.ap-to { text-align: right; }
.ap-code { font: 850 36px/.9 var(--f-disp); font-stretch: 125%; letter-spacing: -.01em; color: var(--indigo); }
.ap-name { margin-top: 4px; font: 400 10px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.ap-path { position: relative; height: 40px; color: var(--rose); align-self: center; }
.ap-path svg:first-child { position: absolute; inset: 4px 0 0; width: 100%; height: 34px; }
.ap-jet { position: absolute; left: 50%; top: -2px; width: 20px; height: 20px; transform: translateX(-50%) rotate(90deg); color: var(--rose); }
.pass-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 10px;
  padding: 10px 0; border-top: 1.5px dashed rgba(43, 47, 94, .18); border-bottom: 1.5px dashed rgba(43, 47, 94, .18);
}
.pf-gate { grid-column: span 2; }
.pf-gate .pv { color: var(--rose); filter: saturate(1.2) brightness(.82); }
.pf-status .pv { color: #138a4c; }
.pass-foot { padding-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.barcode { display: block; width: 100%; height: 30px; color: var(--ink); }
.pass-fine { margin: 0; font: 400 9px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--ink-soft); }
.stamp {
  position: absolute; right: 16px; top: 57%;
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 12px 5px; border: 3px double var(--rose); border-radius: 10px;
  color: var(--rose); mix-blend-mode: multiply;
  transform: rotate(-14deg) scale(2); opacity: 0; pointer-events: none;
  transition: transform .32s cubic-bezier(.3, 1.6, .5, 1), opacity .15s;
}
.stamp span { font: 900 24px/1 var(--f-disp); font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; }
.stamp small { font: 700 10px/1.4 var(--f-mono); letter-spacing: .2em; }
.pass.stamped .stamp { opacity: .88; transform: rotate(-14deg) scale(1); }

.stub {
  position: relative; display: block; width: 100%;
  margin-top: -5px; padding: 15px 16px 13px;
  background: linear-gradient(175deg, #fffaf4, #f6ebe1);
  border: 0; border-radius: 0 0 18px 18px;
  text-align: left; color: var(--ink); cursor: grab;
  touch-action: none; user-select: none; -webkit-user-select: none;
  transform-origin: 100% 0;
  transition: transform .45s cubic-bezier(.3, 1.5, .5, 1);
  -webkit-mask: radial-gradient(circle 10px at 0 2.5px, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% 2.5px, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 10px at 0 2.5px, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% 2.5px, #0000 97%, #000) right / 51% 100% no-repeat;
}
.stub::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 3px;
  border-top: 2px dashed rgba(43, 47, 94, .3);
}
.tearing .stub { cursor: grabbing; }
.stub-in { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "top hint" "name hint" "meta hint"; align-items: center; column-gap: 12px; }
.stub-top { grid-area: top; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 700 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.stub-fin { width: 18px; height: 18px; color: var(--indigo); --fin-stripe: var(--rose); }
.stub-seat { color: var(--ink-soft); font-weight: 400; white-space: nowrap; }
.stub-top b { white-space: nowrap; }
.stub-name { grid-area: name; margin-top: 3px; font: 850 21px/1 var(--f-disp); font-stretch: 125%; text-transform: uppercase; color: var(--indigo); }
.stub-meta { grid-area: meta; display: flex; align-items: center; gap: 6px; margin-top: 5px; font: 700 12px/1 var(--f-mono); letter-spacing: .1em; }
.stub-extra { display: none; gap: 10px; margin-top: 18px; font: 700 12px/1.25 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.stub-extra i { display: block; font-style: normal; font-weight: 400; font-size: 9.5px; letter-spacing: .14em; color: #8d7f95; }
.stub-meta svg { width: 28px; height: 8px; color: var(--rose); }
.tear-hint {
  grid-area: hint; display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--indigo); color: var(--cloud);
  font: 700 11px/1.15 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-align: center;
  max-width: 108px;
}
.tear-arrow { width: 18px; height: 18px; border-right: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(45deg) translate(-3px, -3px); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: rotate(45deg) translate(2px, 2px); } }
.pass:not(.tearing):not(.torn) .stub { animation: loose 4.2s ease-in-out infinite 2.4s; }
@keyframes loose { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-1.6deg) translateY(2px); } 94% { transform: rotate(.6deg); } }
.pass.torn .pass-main { border-radius: 18px 18px 6px 6px; }

/* ------------------------------------------------------------ 02 take-off preview */
.takeoff {
  position: relative; padding: 72px 0 64px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 179, 138, .14), transparent 60%),
    linear-gradient(#1a1d24, var(--black) 40%);
}
.preview {
  position: relative; overflow: hidden;
  border-radius: 28px 28px 22px 22px;
  background: linear-gradient(#1c2027, #121419);
  box-shadow: 0 0 0 1px rgba(253, 248, 243, .08), 0 30px 60px rgba(0, 0, 0, .5);
}
.preview-window {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3.5; max-height: 62svh;
  margin: 10px 10px 0; border-radius: 22px 22px 10px 10px;
  background: #24284f;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4);
}
.preview-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.preview-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 30%); }
.preview-copy { padding: 18px 18px 22px; }
.preview-copy h2 { margin: 0 0 10px; font: 850 clamp(28px, 7.4vw, 44px)/1 var(--f-disp); font-stretch: 112%; letter-spacing: -.01em; text-wrap: balance; }
.atis { margin: 0 0 10px; font: 400 14px/1.4 var(--f-mono); color: #c9f5da; }
.atis-tag { display: inline-block; padding: 2px 6px; margin-right: 4px; border-radius: 4px; background: var(--green); color: var(--black); font-weight: 700; font-size: 11px; letter-spacing: .1em; vertical-align: 1px; }
.preview-how { margin: 0 0 16px; font-size: 16px; line-height: 1.45; color: rgba(253, 248, 243, .88); max-width: 46ch; }
.preview-how b { color: var(--amber); font-family: var(--f-mono); }
.preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.page-debrief { margin-top: 22px; padding: 18px; border-radius: 16px; background: #1b1f26; border: 1px solid rgba(91, 227, 143, .2); }
.page-debrief dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 10px 0; }
.page-debrief dt, .debrief-stats dt { font: 400 10.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(253, 248, 243, .6); }
.page-debrief dd, .debrief-stats dd { margin: 4px 0 0; font: 700 20px/1 var(--f-ui); color: var(--green); }
.pd-tag, .debrief-tag { margin: 0; font: 700 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--peach); }
.pd-note { margin: 0; color: rgba(253, 248, 243, .88); }

/* ------------------------------------------------------------ 03 cruise */
.cruise { position: relative; background: linear-gradient(#e9a08f, #c98a9c 45%, #8e6c96 80%, #57426f); }
.cruise-sky-wrap { position: absolute; inset: 0; overflow: clip; }
.cruise-sky { position: sticky; top: 0; display: block; width: 100%; height: 100vh; height: 100lvh; }
.cruise-inner { position: relative; z-index: 1; padding: 96px 0 120px; }
.cruise-head {
  padding: 22px 20px 20px; border-radius: 20px;
  background: rgba(27, 30, 64, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(27, 30, 64, .25);
  max-width: 720px;
}
.cruise-head h2 { margin: 0 0 8px; font: 850 clamp(27px, 7.5vw, 54px)/1 var(--f-disp); font-stretch: 118%; letter-spacing: -.01em; text-wrap: balance; }
.cruise-lede { margin: 0 0 16px; font-size: 17px; color: rgba(253, 248, 243, .9); }
.fms {
  margin: 0; padding: 12px 14px; border-radius: 12px;
  background: #0f1216; border: 1px solid rgba(253, 248, 243, .1);
  font: 400 13px/1.5 var(--f-mono); color: var(--green);
  display: grid; gap: 4px;
}
.fms div { display: grid; grid-template-columns: 38px 1fr; gap: 8px; }
.fms dt { color: rgba(253, 248, 243, .55); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; line-height: 19px; }
.fms dd { margin: 0; color: var(--green); overflow-wrap: anywhere; }
.fms div:first-child dd { color: var(--magenta); }

.route-wrap { --lx: 30px; position: relative; width: min(100% - 24px, 1080px); margin: 56px auto 0; }
.route-line {
  position: absolute; top: 0; bottom: 40px; left: var(--lx); width: 3px; margin-left: -1.5px;
  background: repeating-linear-gradient(180deg, rgba(253, 248, 243, .85) 0 10px, transparent 10px 18px);
  filter: drop-shadow(0 0 3px rgba(27, 30, 64, .5));
}
.route-flown { position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); border-radius: 3px; }
.route-plane {
  position: sticky; top: calc(50vh - 20px); width: 40px; height: 40px; margin-left: -18.5px;
  color: var(--cloud); filter: drop-shadow(0 4px 6px rgba(27, 30, 64, .45));
}
.route-plane svg { width: 100%; height: 100%; transform: rotate(180deg); }
.route { list-style: none; margin: 0; padding: 0 0 0 calc(var(--lx) + 28px); }
.wp { position: relative; padding: 0 0 64px; }
.wp-node { display: flex; align-items: center; gap: 10px; min-height: 30px; margin-bottom: 12px; }
.wp-sym {
  position: absolute; left: calc(-28px - 11px); top: 4px; width: 22px; height: 22px;
  background: var(--cloud);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  transition: background .3s, transform .3s;
}
.wp.passed .wp-sym { background: var(--magenta); transform: rotate(45deg) scale(1.1); }
.wp-fix {
  padding: 5px 9px; border-radius: 8px;
  background: rgba(15, 18, 22, .86); color: var(--cloud);
  font: 700 15px/1 var(--f-mono); letter-spacing: .12em;
  transition: color .3s;
}
.wp.passed .wp-fix { color: var(--magenta); }
.wp-leg { padding: 5px 7px; border-radius: 7px; background: rgba(15, 18, 22, .55); font: 700 12px/1 var(--f-mono); letter-spacing: .08em; color: var(--cloud); }
.wp-body { display: grid; gap: 18px; max-width: 520px; }
.msg {
  padding: 16px 18px 18px; border-radius: 16px;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .3, 1.1);
}
.wp:not(.in) .msg, .wp:not(.in) .window { opacity: 0; transform: translateY(18px); }
.window { transition: opacity .8s ease .15s, transform .8s cubic-bezier(.2, .9, .3, 1.1) .15s; }
.msg-from { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.msg-from i { font-style: normal; opacity: .5; }
.msg-text { margin: 0; }
.msg-atc { background: rgba(15, 18, 22, .92); border: 1px solid rgba(91, 227, 143, .3); box-shadow: 0 16px 40px rgba(20, 23, 28, .35); }
.msg-atc .msg-from { color: rgba(91, 227, 143, .75); }
.msg-atc .msg-text { font: 400 16px/1.55 var(--f-mono); color: var(--green); }
.msg-atc .msg-ico { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.6s steps(2, jump-none) infinite; }
.msg-cabin { background: var(--cloud); color: var(--ink); box-shadow: 0 16px 40px rgba(43, 47, 94, .25); }
.msg-cabin .msg-from { color: #b8405e; }
.msg-cabin .msg-ico { width: 14px; height: 14px; border-radius: 3px; background: currentColor; -webkit-mask: radial-gradient(circle at 50% 60%, #000 38%, #0000 40%); mask: radial-gradient(circle at 50% 60%, #000 38%, #0000 40%); }
.msg-cabin .msg-text { font: 500 19px/1.5 var(--f-disp); }
@keyframes blink { 50% { opacity: .25; } }

/* cabin windows: tall ones for the portrait photos, a big oval for the wide one */
.window { margin: 0; }
.window-frame {
  position: relative; width: min(232px, 100%); aspect-ratio: 3 / 4.1;
  padding: 14px; border-radius: 42% / 32%;
  background: linear-gradient(160deg, #fbf6f0, #e7ddd3 60%, #d8cdc2);
  box-shadow: inset 0 2px 0 #fff, inset 0 -3px 8px rgba(80, 60, 70, .25), 0 18px 34px rgba(27, 30, 64, .35);
}
.window.wide .window-frame { width: min(360px, 100%); aspect-ratio: 4 / 3; border-radius: 50%; padding: 16px; }
.window-view {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; overflow: hidden; cursor: pointer;
  border-radius: 40% / 30%; background: #9aa8c8;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .5), inset 0 6px 18px rgba(0, 0, 0, .35);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.window.wide .window-view { border-radius: 50%; }
.window-view img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s ease; }
.window.open .window-view img { transform: scale(1); }
.window-view::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 40%); pointer-events: none; }
.blind {
  position: absolute; inset: 0 0 7% 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 92%, rgba(80, 60, 70, .25)),
    repeating-linear-gradient(180deg, #f5efe7 0 9px, #e9e0d6 9px 10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  transition: transform .75s cubic-bezier(.5, 0, .2, 1.15);
}
.window.open .blind { transform: translateY(-88%); }
.blind-tab { position: absolute; left: 50%; bottom: 8px; width: 40px; height: 8px; margin-left: -20px; border-radius: 6px; background: #cbbcae; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px rgba(0, 0, 0, .2); }
.window figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 16px; color: var(--cloud); text-shadow: 0 1px 8px rgba(27, 30, 64, .7); }
.window .seat { padding: 3px 7px; border-radius: 6px; background: rgba(15, 18, 22, .8); font: 700 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; text-shadow: none; }
.window:not(.open) .window-view::before {
  content: "Tap to raise the blind"; position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: 80%; padding: 6px 10px; border-radius: 8px;
  background: rgba(35, 38, 74, .85); color: var(--cloud); font: 700 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
}

/* clouds sitting on the route */
.route-cloud { position: relative; height: 90px; margin: -30px 0 34px; }
.rc { position: absolute; left: calc(-28px - 70px); top: 0; width: 140px; height: 70px; padding: 0; border: 0; background: none; cursor: pointer; }
.rc span { position: absolute; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fffaf4, rgba(255, 228, 214, .9) 60%, rgba(255, 210, 200, 0) 72%); transition: transform 1.1s cubic-bezier(.2, .8, .3, 1), opacity 1.1s; }
.rc span:nth-child(1) { left: 6px; top: 22px; width: 70px; height: 44px; }
.rc span:nth-child(2) { left: 38px; top: 4px; width: 66px; height: 58px; }
.rc span:nth-child(3) { left: 76px; top: 20px; width: 60px; height: 44px; }
.route-cloud.parted .rc span:nth-child(1) { transform: translate(-60px, 6px) scale(.8); opacity: 0; }
.route-cloud.parted .rc span:nth-child(2) { transform: translate(0, -40px) scale(1.3); opacity: 0; }
.route-cloud.parted .rc span:nth-child(3) { transform: translate(60px, 8px) scale(.8); opacity: 0; }

.wp-dest { padding-bottom: 0; }
.wp-dest .wp-sym { width: 30px; height: 30px; left: calc(-28px - 15px); top: 0; background: var(--magenta); }
.wp-dest .wp-fix { font-size: 18px; color: var(--magenta); }
.dest-note { margin: 0; padding: 14px 16px; border-radius: 14px; background: rgba(15, 18, 22, .86); font: 400 16px/1.5 var(--f-mono); color: var(--cloud); }
.dest-note a { color: var(--amber); font-weight: 700; }

/* ------------------------------------------------------------ 04 the announcement */
.announce {
  position: relative; padding: 84px 0 96px;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(253, 248, 243, .7), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(253, 248, 243, .6), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 34%, rgba(253, 248, 243, .5), transparent 60%),
    radial-gradient(1px 1px at 33% 40%, rgba(253, 248, 243, .5), transparent 60%),
    radial-gradient(1px 1px at 55% 26%, rgba(253, 248, 243, .4), transparent 60%),
    linear-gradient(180deg, #57426f 0%, var(--indigo) 18%, var(--dusk) 70%, #15172e);
}
.announce:focus { outline: none; }
.announce .wrap { max-width: 760px; }
.ann-title { margin: 0 0 22px; font: 850 clamp(32px, 8.6vw, 60px)/1 var(--f-disp); font-stretch: 118%; letter-spacing: -.015em; text-wrap: balance; }
.ip-panel {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "grille status" "grille calling" "actions actions";
  gap: 6px 16px; align-items: center;
  padding: 18px; border-radius: 20px;
  background: linear-gradient(#1f232b, #16191f);
  border: 1px solid rgba(253, 248, 243, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 20px 40px rgba(0, 0, 0, .3);
}
.ip-grille {
  grid-area: grille; width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle, #0a0b0e 1.6px, transparent 2px) 0 0 / 8px 8px, radial-gradient(circle at 35% 30%, #3a3f49, #1a1d23 70%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6), 0 0 0 4px #0e1014, 0 0 0 5px rgba(255, 255, 255, .06);
}
.ringing:not(.answered) .ip-grille { animation: speaker .9s ease-in-out 3; }
@keyframes speaker { 30% { transform: scale(1.04); } 60% { transform: scale(.99); } }
.ip-status { grid-area: status; display: flex; align-items: center; gap: 10px; margin: 0; font: 700 13px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.ip-light { width: 14px; height: 14px; border-radius: 4px; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.ringing:not(.answered) .ip-light { animation: blink .7s steps(2, jump-none) infinite; }
.answered .ip-light { background: var(--green); box-shadow: 0 0 12px var(--green); animation: none; }
.answered .ip-status { color: var(--green); }
.ip-calling { grid-area: calling; margin: 0; font-size: 17px; line-height: 1.4; color: rgba(253, 248, 243, .9); }
.ip-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.answered .ip-actions { display: none; }
.ip-standby .ip-light { animation: none; opacity: .9; }

.letter { margin-top: 26px; }
.slip {
  position: relative;
  padding: 30px 22px 22px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .7), transparent 60%),
    linear-gradient(176deg, #fffdf9, var(--cloud) 50%, #f6ece2);
  color: var(--ink);
  border-radius: 4px 4px 10px 10px;
  box-shadow: 0 30px 60px rgba(10, 10, 30, .45), 0 2px 4px rgba(10, 10, 30, .3);
  -webkit-mask: linear-gradient(#000, #000) 0 10px / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at 50% 10px, #000 90deg, #0000 0) 0 0 / 14px 10px repeat-x;
  mask: linear-gradient(#000, #000) 0 10px / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at 50% 10px, #000 90deg, #0000 0) 0 0 / 14px 10px repeat-x;
}
.slip-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1.5px dashed rgba(43, 47, 94, .22); font: 700 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.slip-ok { color: #138a4c; margin-left: auto; }
.slip-route span { white-space: nowrap; }
.slip-route i { font-style: normal; opacity: .6; }
.greeting { margin: 20px 0 14px; font: 850 30px/1.05 var(--f-disp); font-stretch: 112%; color: var(--indigo); }
.greeting:focus { outline: none; }
.lp { margin: 0 0 16px; font: 450 19px/1.68 var(--f-disp); color: var(--ink); max-width: 62ch; }
.signoff { margin: 22px 0 2px; font: 450 19px/1.4 var(--f-disp); }
.signature { position: relative; display: inline-block; margin: 0 0 8px; font: italic 800 44px/1.1 var(--f-disp); font-stretch: 104%; color: #c64a6c; transform: rotate(-3deg); transform-origin: left; }
.signature svg { position: absolute; left: 0; bottom: -10px; width: 150px; height: 22px; color: #c64a6c; }
.slip-end { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1.5px dashed rgba(43, 47, 94, .22); font: 700 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.wilco { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--indigo); background: transparent; color: var(--indigo); font: 700 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.wilco:disabled { border-color: #138a4c; color: #138a4c; cursor: default; }
.wilco-sent { margin: 8px 0 0; min-height: 1.2em; text-align: right; font: 700 12px/1.2 var(--f-mono); color: #138a4c; letter-spacing: .06em; }
.card-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 18px; }
.card-imgs img { border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
/* printing out of the flight deck printer */
.letter.printing .slip { animation: print 1.25s cubic-bezier(.3, .7, .3, 1) both; }
.letter.printing .slip > * { animation: ink .5s ease both; }
.letter.printing .slip > :nth-child(2) { animation-delay: .35s; }
.letter.printing .slip > :nth-child(3) { animation-delay: .5s; }
.letter.printing .slip > :nth-child(4) { animation-delay: .65s; }
.letter.printing .slip > :nth-child(5) { animation-delay: .8s; }
.letter.printing .slip > :nth-child(n+6) { animation-delay: .95s; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-24px); } to { clip-path: inset(0 0 -40px 0); transform: none; } }
@keyframes ink { from { opacity: 0; transform: translateY(6px); } }

/* ------------------------------------------------------------ 05 logbook */
.logbook { position: relative; padding: 76px 0 72px; background: linear-gradient(#15172e, var(--black)); }
.logpage {
  position: relative; padding: 22px 16px 18px 26px; border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 15px, rgba(232, 111, 138, .55) 15px 16.5px, transparent 16.5px),
    linear-gradient(#f1f5ea, #e6eddc);
  color: var(--ink);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .2);
  transform: rotate(.5deg);
}
.logpage-head h2 { margin: 0; font: 850 30px/1 var(--f-disp); font-stretch: 118%; color: #24433a; }
.logpage-head p { margin: 6px 0 14px; font-size: 16px; color: #3b5a50; }
.logtable-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.logtable { width: 100%; border-collapse: collapse; font: 400 15px/1.35 var(--f-ui); }
.logtable th { padding: 8px 8px; text-align: left; vertical-align: bottom; font: 700 10.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #24433a; border-top: 2px solid #24433a; border-bottom: 3px double #24433a; }
.logtable th small { font-weight: 400; letter-spacing: .06em; }
.logtable td { padding: 9px 8px; border-bottom: 1px solid rgba(36, 67, 58, .22); vertical-align: top; }
.logtable td + td, .logtable th + th { border-left: 1px solid rgba(36, 67, 58, .2); }
.logtable .cls { font-weight: 700; }
.logtable .yr { white-space: nowrap; }
.yr-date { font: 700 15px/1.2 var(--f-mono); letter-spacing: .04em; color: #24433a; }
.yr-lvl { font: 400 12px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #3b5a50; }
.logtable .rem { white-space: nowrap; color: #3b5a50; }
.tick { display: inline-block; width: 7px; height: 12px; margin-right: 8px; border-right: 2.5px solid #1e7a52; border-bottom: 2.5px solid #1e7a52; transform: rotate(40deg) translateY(-2px); }
.logtable tfoot td { font: 700 12px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; border-top: 3px double #24433a; border-bottom: 0; color: #24433a; }
@media (max-width: 560px) {
  .col-crew { display: none !important; }
  .logtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .logtable tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 10px 2px; border-bottom: 1px solid rgba(36, 67, 58, .25); }
  .logtable tbody tr:first-child { border-top: 3px double #24433a; }
  .logtable td { display: block; padding: 0; border: 0 !important; grid-column: 1; }
  .logtable .yr { font: 700 11px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #3b5a50; }
  .logtable .yr-date { font-size: 12px; margin-right: 4px; }
  .logtable .yr-lvl { font-size: 11px; }
  .logtable .cls { font-size: 17px; line-height: 1.25; }
  .logtable .ins:empty { display: none; }
  .logtable .ins { font-size: 14px; color: #3b5a50; }
  .logtable .rem { grid-column: 2; grid-row: 1 / span 3; align-self: center; font: 700 10.5px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; white-space: normal; max-width: 80px; text-align: right; }
  .logtable tfoot tr { display: flex; justify-content: space-between; padding-top: 10px; }
  .logtable tfoot td { border: 0 !important; padding: 0; }
  .logtable tfoot td:empty { display: none; }
}

/* ------------------------------------------------------------ footer */
.footer {
  position: relative;
  padding: 72px 0 calc(64px + var(--safe-b)); text-align: center;
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(253, 248, 243, .7), transparent 60%),
    radial-gradient(1px 1px at 80% 20%, rgba(253, 248, 243, .6), transparent 60%),
    radial-gradient(1px 1px at 60% 70%, rgba(253, 248, 243, .4), transparent 60%),
    var(--black);
}
.souvenir { margin: 0 auto 30px; max-width: 340px; }
.souvenir-lbl { margin: 0 0 12px; font: 700 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--peach); }
.souvenir-stub { transform: rotate(-4deg); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .4)); }
.stub-souvenir { pointer-events: none; animation: none !important; border-radius: 6px 6px 16px 16px; clip-path: none !important; }
.stub-souvenir .tear-hint { display: none; }
.stub-souvenir .stub-in { grid-template-columns: 1fr; grid-template-areas: "top" "name" "meta"; }
.footer-thanks { margin: 0 0 18px; font: 850 clamp(26px, 6.6vw, 40px)/1.05 var(--f-disp); font-stretch: 118%; text-wrap: balance; }
.footer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.footer-sign { margin: 26px 0 0; font: 400 13px/1.4 var(--f-mono); letter-spacing: .08em; color: rgba(253, 248, 243, .6); }

/* ------------------------------------------------------------ the flight deck */
.deck {
  --panel-h: calc(200px + var(--safe-b));
  --oh: calc(48px + var(--safe-t));
  position: fixed; inset: 0; z-index: 100;
  background: var(--black); color: var(--cloud);
  opacity: 0; transition: opacity .45s ease;
  touch-action: none; user-select: none; -webkit-user-select: none; overscroll-behavior: none;
  overflow: hidden;
}
.deck.on { opacity: 1; }
.deck-world, .deck-hud { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.deck-hud { cursor: grab; }
.overhead {
  position: absolute; z-index: 3; inset: 0 0 auto 0; height: var(--oh); padding: var(--safe-t) 8px 0;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(#1d2129, #13161b);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45), inset 0 -1px 0 rgba(255, 255, 255, .05);
}
.deck-sign {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 3px 8px 3px 5px;
  border-radius: 6px; border: 1px solid rgba(255, 255, 255, .08); background: #0c0e11; cursor: pointer;
  color: rgba(253, 248, 243, .28); font: 700 8.5px/1.05 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; text-align: left;
  transition: color .3s, box-shadow .3s, text-shadow .3s;
}
.deck-sign svg { width: 22px; height: 22px; flex: none; }
.deck-sign.lit { color: var(--amber); text-shadow: 0 0 8px rgba(255, 194, 71, .7); box-shadow: inset 0 0 12px rgba(255, 194, 71, .18), 0 0 10px rgba(255, 194, 71, .2); }
.deck-sign.lit svg { filter: drop-shadow(0 0 4px rgba(255, 194, 71, .8)); }
.deck-id { font: 400 10.5px/1 var(--f-mono); letter-spacing: .1em; color: rgba(253, 248, 243, .5); white-space: nowrap; }
.deck-id i { font-style: normal; opacity: .5; }
.deck-keys { display: none; align-items: center; gap: 5px; margin-left: 14px; font: 400 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(253, 248, 243, .5); white-space: nowrap; }
.deck-keys kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 6px; border-radius: 4px; border: 1px solid rgba(253, 248, 243, .25); border-bottom-width: 2px; font: 700 10px/1 var(--f-mono); color: var(--cloud); }
.deck-keys kbd + kbd { margin-left: 2px; }
@media (hover: hover) and (pointer: fine) and (min-width: 1000px) { .deck-keys { display: inline-flex; } }
.deck-tools { margin-left: auto; display: flex; gap: 6px; }
.deck-btn {
  min-height: 36px; padding: 0 10px; border-radius: 8px;
  border: 1px solid rgba(253, 248, 243, .2); background: rgba(253, 248, 243, .06); cursor: pointer;
  font: 700 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cloud); white-space: nowrap;
}
.deck-btn[aria-pressed="true"] { border-color: var(--green); color: var(--green); }
.deck-skip { border-color: rgba(232, 111, 138, .6); color: #ffb1c2; }
@media (max-width: 560px) { .deck-id { display: none; } .sign-txt { display: none; } .deck-sign { padding: 3px 6px; } .deck-btn { padding: 0 8px; font-size: 10px; letter-spacing: .05em; } .deck-tools { gap: 5px; } }

.deck-msgs {
  position: absolute; z-index: 4; left: 12px; right: 12px; bottom: calc(var(--panel-h) + 10px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.radio {
  width: min(100%, 470px);
  padding: 8px 11px 9px; border-radius: 10px;
  background: rgba(10, 12, 16, .74); border-left: 3px solid var(--green);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s;
}
.radio:not(.on) { position: absolute; bottom: 0; }
.radio.on { opacity: 1; transform: none; }
.radio.fading, .coach.fading { opacity: 0; transform: translateY(8px); animation: none; }
.radio.cabin { border-left-color: var(--rose); }
.radio-from { display: block; margin-bottom: 3px; font: 700 10px/1 var(--f-mono); letter-spacing: .16em; color: var(--green); }
.radio.cabin .radio-from { color: #ff9fb6; }
.radio-text { display: block; font: 400 13px/1.38 var(--f-mono); color: #e6fff0; }

.coach {
  position: relative; max-width: min(100%, 420px); margin: 0; padding: 10px 14px;
  border-radius: 12px; background: var(--amber); color: var(--black);
  font: 800 16px/1.25 var(--f-disp); font-stretch: 105%; text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s;
}
.coach:not(.on) { position: absolute; bottom: 0; }
.coach.on { opacity: 1; transform: none; animation: coach 1.6s ease-in-out infinite .3s; }
.coach::after { content: ""; position: absolute; bottom: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; background: var(--amber); transform: rotate(45deg); border-radius: 2px; }
.coach.at-thrust { align-self: flex-end; }
.coach.at-thrust::after { left: auto; right: 34px; }
.coach.at-stick, .coach.at-stick-right { align-self: flex-start; }
.coach.at-stick::after, .coach.at-stick-right::after { left: 44px; }
.coach.at-speed::after { display: none; }
@keyframes coach { 50% { transform: translateY(-3px); } }

.panel {
  position: absolute; z-index: 3; inset: auto 0 0 0; height: var(--panel-h);
  padding: 18px 12px calc(10px + var(--safe-b));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  background:
    linear-gradient(180deg, #262b33 0, #1b1f26 10px, #15181d 40%, #101216);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.panel::before { content: ""; position: absolute; left: 18%; right: 18%; top: 6px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .05); }
.ctl-lbl { display: block; margin-top: 6px; font: 700 9.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(253, 248, 243, .5); text-align: center; white-space: nowrap; }
.ctl-lbl b { color: var(--amber); }

.stick { justify-self: start; display: flex; flex-direction: column; align-items: center; touch-action: none; cursor: grab; }
.stick-gate {
  position: relative; width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #1e222a, #0b0c0f 72%);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07), 0 0 0 6px #0c0e11;
}
.stick-cross { position: absolute; inset: 18px; border-radius: 50%; border: 1px dashed rgba(253, 248, 243, .12); }
.stick-cross::before, .stick-cross::after { content: ""; position: absolute; background: rgba(253, 248, 243, .1); }
.stick-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.stick-cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.stick-knob {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #5a616d, #2a2e36 55%, #16181d 80%);
  box-shadow: 0 8px 14px rgba(0, 0, 0, .6), inset 0 1px 1px rgba(255, 255, 255, .25);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.stick-knob::after { content: ""; position: absolute; left: 50%; top: 9px; width: 12px; height: 8px; margin-left: -6px; border-radius: 4px; background: #c43b3b; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.stick.grab .stick-knob { transition: none; }
/* a pair of amber chevrons that drift the way to move the stick */
.stick-cue { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.stick-cue i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-right: 4px solid var(--amber); border-bottom: 4px solid var(--amber); border-radius: 2px; filter: drop-shadow(0 0 4px rgba(255, 194, 71, .8)); opacity: 0; }
.deck[data-coach="stick"] .stick-cue, .deck[data-coach="stick-right"] .stick-cue { opacity: 1; }
.deck[data-coach="stick"] .stick-cue i { animation: cue-down 1.1s ease-in infinite; }
.deck[data-coach="stick-right"] .stick-cue i { animation: cue-right 1.1s ease-in infinite; }
.stick-cue i + i { animation-delay: .35s !important; }
@keyframes cue-down { 0% { opacity: 0; transform: translateY(-6px) rotate(45deg); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(34px) rotate(45deg); } }
@keyframes cue-right { 0% { opacity: 0; transform: translateX(-6px) rotate(-45deg); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateX(34px) rotate(-45deg); } }
.stick.grab .stick-cue { opacity: 0 !important; }
.deck[data-coach="stick"] .stick-gate, .deck[data-coach="stick-right"] .stick-gate { box-shadow: inset 0 3px 10px rgba(0, 0, 0, .8), 0 0 0 2px var(--amber), 0 0 18px rgba(255, 194, 71, .5); }

.panel-mid { display: flex; align-items: center; gap: 8px; }
.eng-wrap { display: none; flex-direction: column; align-items: center; }
.eng { width: 150px; height: 86px; display: block; }
.standby-wrap { display: flex; flex-direction: column; align-items: center; }
.standby { width: 86px; height: 86px; display: block; border-radius: 50%; box-shadow: 0 0 0 4px #0b0c0f, 0 0 0 5px rgba(255, 255, 255, .08); }

.gear {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 50px; padding: 8px 0 0; border: 0; background: none; cursor: pointer;
}
.gear-lights { display: flex; gap: 4px; padding: 4px 5px; border-radius: 6px; background: #0b0c0f; }
.gear-lights i { width: 9px; height: 9px; border-radius: 2px; background: #2b3a2f; }
.gear[data-state="down"] .gear-lights i { background: #45e07f; box-shadow: 0 0 6px #45e07f; }
.gear[data-state="transit"] .gear-lights i { background: #ff4f4f; box-shadow: 0 0 6px #ff4f4f; }
.gear-slot { position: relative; width: 16px; height: 64px; border-radius: 8px; background: #08090b; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.gear-knob {
  position: absolute; left: 50%; bottom: -4px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #2a2d33 0 24%, #e9e6e0 26% 60%, #b9b4ab 62% 70%, #8b867e 72%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .6);
  transition: bottom .5s cubic-bezier(.4, 1.6, .5, 1);
}
.gear:not([data-state="down"]) .gear-knob { bottom: 38px; }
.gear.ask .gear-slot { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .8), 0 0 0 2px var(--amber), 0 0 16px rgba(255, 194, 71, .6); }
.gear.nope { animation: nope .4s ease; }
@keyframes nope { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.thrust { justify-self: end; display: flex; flex-direction: column; align-items: center; height: 100%; max-height: 176px; touch-action: none; cursor: grab; }
.thrust-track {
  position: relative; flex: 1; width: 88px; border-radius: 14px;
  background: linear-gradient(90deg, #0b0c0f, #171a20 40%, #0b0c0f);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07);
}
.thrust-track::before { content: ""; position: absolute; left: 67%; top: 16px; bottom: 16px; width: 6px; margin-left: -3px; border-radius: 3px; background: #050607; box-shadow: inset 0 1px 2px #000; }
.detent { position: absolute; left: 7px; font: 700 8.5px/1 var(--f-mono); letter-spacing: .06em; color: rgba(253, 248, 243, .55); transform: translateY(-50%); }
.detent::after { content: ""; position: absolute; left: calc(100% + 3px); top: 50%; width: 6px; height: 1px; background: rgba(253, 248, 243, .35); }
.d-to { top: 22px; color: var(--green); }
.d-clb { top: calc(22px + (100% - 44px) * .18); }
.d-idle { bottom: 22px; transform: translateY(50%); }
.thrust-lever {
  --thr: 0;
  position: absolute; left: 67%; bottom: calc(22px + var(--thr) * (100% - 44px));
  width: 46px; height: 30px; transform: translate(-50%, 50%);
  transition: bottom .12s linear;
}
.thrust-lever::before, .thrust-lever::after {
  content: ""; position: absolute; top: 0; width: 21px; height: 30px; border-radius: 7px 7px 5px 5px;
  background: linear-gradient(180deg, #6b7280, #3a3f48 45%, #23262d);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.thrust-lever::before { left: 0; }
.thrust-lever::after { right: 0; }
.thrust-lever span { position: absolute; left: 6px; right: 6px; top: 12px; height: 6px; border-radius: 3px; background: #c9ccd2; z-index: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.thrust.grab .thrust-lever { transition: none; }
.deck[data-coach="thrust"] .thrust-track { box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8), 0 0 0 2px var(--amber), 0 0 20px rgba(255, 194, 71, .55); }
.n1 b { font: 700 11px var(--f-ui); color: var(--green); letter-spacing: .04em; }

.debrief {
  position: absolute; z-index: 6; inset: 0; display: grid; place-items: end center;
  padding: 12px 12px calc(12px + var(--safe-b));
  background: linear-gradient(rgba(10, 12, 16, 0) 30%, rgba(10, 12, 16, .6) 75%);
  opacity: 0; transition: opacity .5s;
}
.debrief.on { opacity: 1; }
.debrief-card {
  width: min(100%, 440px); padding: 18px 18px 14px; border-radius: 22px;
  background: rgba(20, 23, 28, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(91, 227, 143, .25);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  transform: translateY(16px); transition: transform .6s cubic-bezier(.2, .9, .3, 1.15);
}
.debrief.on .debrief-card { transform: none; }
.debrief-title { margin: 6px 0 12px; font: 850 26px/1.02 var(--f-disp); font-stretch: 115%; text-wrap: balance; }
.debrief-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 10px; margin: 0 0 12px; }
.debrief-stats div:last-child:nth-child(3n+2) { grid-column: span 2; }
.debrief-stats dd { font-size: 18px; }
.debrief-note { margin: 0 0 12px; font-size: 17px; line-height: 1.4; color: rgba(253, 248, 243, .92); }
.debrief-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }

/* ------------------------------------------------------------ lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 56px 14px 24px; background: rgba(12, 13, 26, .92); opacity: 0; transition: opacity .25s; }
.lightbox.on { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(100%, 1100px); }
.lightbox img { max-height: 78svh; width: auto; margin: 0 auto; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.lightbox figcaption { margin-top: 12px; text-align: center; font-size: 16px; color: rgba(253, 248, 243, .85); }
.lightbox-close { position: absolute; top: calc(10px + var(--safe-t)); right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(253, 248, 243, .3); background: rgba(253, 248, 243, .08); color: var(--cloud); font-size: 30px; line-height: 1; cursor: pointer; }

/* ------------------------------------------------------------ desktop */
@media (min-width: 720px) {
  .route-wrap { --lx: 50%; }
  .route { padding: 0; }
  .wp { display: grid; grid-template-columns: 1fr 1fr; column-gap: 96px; padding-bottom: 80px; }
  .wp-node { grid-column: 2; justify-content: flex-start; padding-left: 0; }
  .wp-body { grid-column: 2; }
  .wp.alt .wp-node { grid-column: 1; grid-row: 1; justify-content: flex-end; }
  .wp.alt .wp-body { grid-column: 1; grid-row: 2; justify-self: end; justify-items: end; }
  .wp-sym { left: calc(50% - 11px); }
  .wp-dest .wp-sym { left: calc(50% - 15px); }
  .wp > * { margin-left: 0; }
  .rc { left: calc(50% - 70px); }
  .msg { max-width: 460px; }
  .wp.alt .window figcaption { justify-content: flex-end; }
  .cruise-head { margin-inline: auto; text-align: left; }
  .preview-window { aspect-ratio: 16 / 8.4; max-height: 76vh; margin: 12px 12px 0; }
  .preview-copy { position: absolute; left: 12px; bottom: 0; padding: 34px 40px 38px; max-width: 720px; }
  .preview-glare { background: linear-gradient(180deg, rgba(20, 23, 28, 0) 46%, rgba(20, 23, 28, .55) 70%, rgba(20, 23, 28, .94)); }
  .preview { padding-bottom: 12px; }
  .slip { padding: 40px 48px 30px; }
  .greeting { font-size: 38px; }
  .lp { font-size: 21px; }
  .logpage { padding: 30px 30px 24px 44px; }
  .logpage { background:
    linear-gradient(90deg, transparent 26px, rgba(232, 111, 138, .55) 26px 27.5px, transparent 27.5px),
    linear-gradient(#f1f5ea, #e6eddc); }
  .deck { --panel-h: calc(214px + var(--safe-b)); --oh: calc(52px + var(--safe-t)); }
  .panel { grid-template-columns: 1fr auto 1fr; padding-inline: 8vw; }
  .stick-gate { width: 128px; height: 128px; }
  .standby { width: 112px; height: 112px; }
  .eng-wrap { display: flex; }
  .panel-mid { gap: 22px; }
  .thrust-track { width: 98px; }
  .thrust { max-height: 190px; }
  .deck-btn { font-size: 11.5px; padding: 0 12px; }
  .debrief { place-items: center; padding: 20px; background: rgba(10, 12, 16, .22); }
  .debrief-card { width: min(100%, 480px); padding: 24px 24px 18px; }
  .debrief-title { font-size: 32px; margin: 8px 0 16px; }
  .debrief-stats { gap: 14px 12px; margin-bottom: 16px; }
  .debrief-stats dd { font-size: 20px; }
}
/* the pass goes landscape, stub on the right */
@media (min-width: 980px) {
  .hero { display: flex; align-items: center; }
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "copy pass" "skip pass"; column-gap: 56px; align-items: center; }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-title { font-size: clamp(54px, 5.5vw, 92px); }
  .pass-wrap { grid-area: pass; margin: 0; max-width: 720px; width: 100%; }
  .hero-skip { grid-area: skip; align-self: start; margin: 26px 0 0; text-align: left; color: rgba(253, 248, 243, .85); }
  .pass { flex-direction: row; transform: rotate(-2deg); }
  .pass-main {
    flex: 1; border-radius: 18px 0 0 18px;
    -webkit-mask: radial-gradient(circle 11px at calc(100% - 2.5px) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at calc(100% - 2.5px) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 11px at calc(100% - 2.5px) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at calc(100% - 2.5px) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  }
  .pass-head { border-radius: 18px 0 0 0; }
  .pass-body { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-areas: "name name" "route route" "grid grid" "foot foot"; padding: 16px 22px 14px; }
  .pf-name { grid-area: name; }
  .pass-route { grid-area: route; }
  .pass-grid { grid-area: grid; grid-template-columns: repeat(4, 1fr); }
  .pf-gate { grid-column: span 2; }
  .pf-pax { grid-column: span 2; }
  .pf-status { grid-column: span 2; }
  .stub-extra { display: grid; }
  .pass-foot { grid-area: foot; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
  .ap-code { font-size: 46px; }
  .pf-name .pv { font-size: 30px; }
  .stub {
    width: 196px; flex: none; margin: 0 0 0 -5px; padding: 22px 18px 18px 24px;
    border-radius: 0 18px 18px 0; transform-origin: 0 100%;
    -webkit-mask: radial-gradient(circle 11px at 2.5px 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 2.5px 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 11px at 2.5px 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 2.5px 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  }
  .stub::before { left: 3px; right: auto; top: 16px; bottom: 16px; border-top: 0; border-left: 2px dashed rgba(43, 47, 94, .3); }
  .stub-in { height: 100%; grid-template-columns: 1fr; grid-template-rows: auto auto auto auto 1fr; grid-template-areas: "top" "name" "meta" "extra" "hint"; }
  .stub-extra { grid-area: extra; }
  .stub-name { font-size: 30px; margin-top: 18px; }
  .tear-hint { align-self: end; justify-self: stretch; max-width: none; flex-direction: row; justify-content: center; margin-top: 18px; }
  .tear-arrow { transform: rotate(-45deg) translate(-2px, -2px); animation-name: nudge-r; }
  @keyframes nudge-r { 50% { transform: rotate(-45deg) translate(3px, 3px); } }
  .pass.torn .pass-main { border-radius: 18px 6px 6px 18px; }
  .stamp { right: 30px; top: 34%; }
  .souvenir { max-width: 380px; }
  .souvenir-stub .stub-souvenir { width: 100%; border-radius: 16px; margin: 0; }
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; scroll-behavior: auto !important; }
  .hero-jet { animation: none; transform: translate(calc(100vw - 84px), 6px); }
  .pass:not(.tearing):not(.torn) .stub { animation: none; }
  .wp:not(.in) .msg, .wp:not(.in) .window { transform: none; }
}
