/* ==========================================================================
   aaronmoradi.com: "Departures"
   A split-flap departure board + airport/freeway wayfinding.
   Type: Overpass (Highway Gothic lineage, the US freeway-sign face) and
   Overpass Mono for the flaps. Black, concrete, signage yellow, amber.
   ========================================================================== */

@font-face { font-family: "Overpass"; src: url("fonts/overpass.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Overpass Mono"; src: url("fonts/overpass-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overpass Mono"; src: url("fonts/overpass-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Lounge: graphite flaps, warm-white signage, champagne type, one cobalt accent */
  --night: #0b0c0e;
  --housing: #131518;
  --flap: #1d2024;
  --flap-2: #181a1e;
  --glyph: #f3f2ee;
  --dim: #8b9099;
  --amber: #d9bd85;         /* champagne */
  --green: #45d09a;
  --sign: #f3f2ee;          /* warm-white wayfinding */
  --sign-ink: #0f1113;
  --blue: #3d7dff;
  --concrete: #f4f3ef;
  --concrete-2: #e7e5df;
  --ink: #121417;
  --muted: #5f6570;
  --accent: #3d7dff;        /* map.js route colour */
  --sans: "Overpass", "Highway Gothic", "Helvetica Neue", Arial, sans-serif;
  --mono: "Overpass Mono", ui-monospace, Menlo, monospace;
  --max: 1240px;
  --gut: clamp(14px, 3vw, 36px);
  --flapH: 32ms;            /* half of Flap STEP_MS */
  color-scheme: dark;
}
/* Showtime (Konami): purple & gold livery */
:root.showtime { --night: #2a1047; --housing: #3a175f; --flap: #4a1f78; --flap-2: #42196c; --glyph: #fdb927; --amber: #ffffff; --sign: #fdb927; --concrete: #efe3c4; --accent: #fdb927; --blue: #fdb927; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--glyph); font: 400 18px/1.55 var(--sans); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--sign); color: var(--sign-ink); }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- split-flap cells ---------- */
.flaps { display: inline-flex; gap: var(--gap, 3px); white-space: nowrap; }
.cell {
  --cw: 22px; --ch: 34px;
  position: relative; display: inline-block; flex: none; width: var(--cw); height: var(--ch);
  font: 600 calc(var(--ch) * .7) / var(--ch) var(--mono); color: var(--glyph);
  perspective: 280px; border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 2px 3px rgba(0, 0, 0, .6);
}
.cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: #000; z-index: 6; box-shadow: 0 1px 0 rgba(255, 255, 255, .05); }
.cell .h, .cell .leaf { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: var(--flap); }
.cell .t, .cell .lt { top: 0; border-radius: 2px 2px 0 0; background: linear-gradient(var(--flap), var(--flap-2)); }
.cell .b, .cell .lb { bottom: 0; border-radius: 0 0 2px 2px; background: linear-gradient(var(--flap-2), var(--flap)); }
.cell i { position: absolute; left: 0; right: 0; height: var(--ch); text-align: center; font-style: normal; }
.cell .t i, .cell .lt i { top: 0; }
.cell .b i, .cell .lb i { bottom: 0; }
.cell .leaf { visibility: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; z-index: 3; }
.cell .lt { transform-origin: 50% 100%; }
.cell .lb { transform-origin: 50% 0; transform: rotateX(90deg); }
.cell.go .leaf { visibility: visible; }
.cell.go .lt { animation: fallTop var(--flapH) ease-in forwards; }
.cell.go .lb { animation: landBot var(--flapH) ease-out var(--flapH) forwards; }
@keyframes fallTop { to { transform: rotateX(-90deg); filter: brightness(.55); } }
@keyframes landBot { from { transform: rotateX(90deg); filter: brightness(1.5); } to { transform: rotateX(0); filter: none; } }
.amber .cell { color: var(--amber); }
.green .cell { color: var(--green); }
.dim .cell { color: var(--dim); }

/* ---------- the board housing ---------- */
.board {
  position: relative; background: var(--housing); border: 1px solid #000; padding: clamp(14px, 2.4vw, 28px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), inset 0 30px 60px -30px rgba(0, 0, 0, .8), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.board::before, .board::after { /* mounting bolts */
  content: ""; position: absolute; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: #2a2a2d; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .15);
}
.board::before { left: 10px; } .board::after { right: 10px; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font: 700 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.board-head .title { display: flex; align-items: center; gap: 12px; color: var(--glyph); font-size: clamp(16px, 2vw, 22px); letter-spacing: .12em; }
.board-head svg { width: 30px; height: 30px; fill: var(--sign); }
.clock { display: flex; align-items: center; gap: 10px; }
.clock .cell { --cw: 18px; --ch: 28px; }

/* hero */
.hero { padding: clamp(18px, 4vw, 44px) 0 0; }
.name { display: flex; justify-content: flex-start; margin: 6px 0 14px; }
.name .cell { --cw: clamp(22px, 6.6vw, 84px); --ch: clamp(34px, 9.6vw, 122px); }
.name { --gap: clamp(2px, .5vw, 6px); }
.subline { margin: 0 0 10px; }
.subline .cell { --cw: clamp(10px, 2.55vw, 32px); --ch: clamp(17px, 4vw, 50px); }
.subline { --gap: clamp(1px, .25vw, 3px); }
.ticker-line .cell { --cw: clamp(9px, 2.1vw, 26px); --ch: clamp(15px, 3.3vw, 40px); }
.ticker-line { --gap: clamp(1px, .2vw, 3px); }
.board-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #000; box-shadow: 0 -1px 0 rgba(255, 255, 255, .04); font: 600 12px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.board-foot button { all: unset; cursor: pointer; color: var(--glyph); border-bottom: 1px solid var(--dim); }
.board-foot button:focus-visible { outline: 2px solid var(--sign); }

/* departures list */
.dep { margin-top: 0; }
.dep-labels, .dep-row { display: grid; grid-template-columns: var(--cols); column-gap: clamp(8px, 1.4vw, 18px); align-items: center; }
.dep-labels { font: 700 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding-bottom: 10px; border-bottom: 1px solid #000; }
.dep-row { padding: 10px 0 6px; border-bottom: 1px solid rgba(0, 0, 0, .9); box-shadow: 0 1px 0 rgba(255, 255, 255, .03); cursor: default; }
.dep-row .cell { --cw: var(--dw, 20px); --ch: var(--dh, 30px); }
.dep-row .via { grid-column: 2 / -1; margin-top: 6px; }
.dep-row .via .cell { --cw: calc(var(--dw, 20px) * .62); --ch: calc(var(--dh, 30px) * .62); color: var(--amber); }
.dep-row .flaps { --gap: 2px; }
.live-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* ---------- wayfinding signage ---------- */
.signs { display: flex; flex-wrap: wrap; gap: 3px; margin: 0; padding: 0; list-style: none; }
.signs a { display: flex; align-items: center; gap: 12px; padding: 12px 18px 10px; background: var(--sign); color: var(--sign-ink); text-decoration: none; font: 800 clamp(15px, 1.6vw, 19px)/1 var(--sans); letter-spacing: .01em; }
.signs a svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.signs a:hover { background: var(--sign-ink); color: var(--sign); }
.signs a.alt { background: var(--sign-ink); color: var(--sign); }
.signs a.alt:hover { background: var(--sign); color: var(--sign-ink); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--night); border-bottom: 1px solid #222; }
.topbar .in { display: flex; align-items: center; gap: 14px; height: 58px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 18px/1 var(--sans); letter-spacing: .02em; text-transform: uppercase; user-select: none; }
.mark span.code { background: var(--sign); color: var(--sign-ink); padding: 6px 7px 4px; font-size: 16px; letter-spacing: .06em; transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.mark:hover span.code { transform: rotate(-6deg); }
.topnav { display: flex; gap: 3px; margin-left: auto; }
.topnav a { padding: 9px 12px 7px; text-decoration: none; font: 700 14px/1 var(--sans); letter-spacing: .04em; color: var(--glyph); border: 1px solid #2a2a2d; }
.topnav a:hover, .topnav a[aria-current] { background: var(--sign); color: var(--sign-ink); border-color: var(--sign); }
.tbtn { height: 34px; padding: 0 10px; border: 1px solid #2a2a2d; background: transparent; color: var(--glyph); font: 700 12px var(--mono); cursor: pointer; letter-spacing: .06em; }
.tbtn:hover, .tbtn[aria-pressed="true"] { background: var(--glyph); color: var(--night); }
.tools { display: flex; gap: 4px; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .topnav { position: fixed; inset: 58px 0 auto 0; flex-direction: column; gap: 0; background: var(--night); padding: 8px var(--gut) 16px; border-bottom: 1px solid #222; transform: translateY(-140%); transition: transform .25s; }
  .topnav.open { transform: none; }
  .topnav a { border: 0; border-top: 1px solid #222; padding: 15px 4px; font-size: 18px; }
  .tools { margin-left: auto; }
}

/* ---------- concourse sections (concrete) ---------- */
.concourse { background: var(--concrete); color: var(--ink); }
.concourse ::selection { background: var(--ink); color: var(--sign); }
.zone { padding: clamp(56px, 8vw, 110px) 0; }
.zone + .zone { border-top: 1px solid var(--concrete-2); }
.zone-head { display: flex; align-items: stretch; gap: 0; margin-bottom: clamp(26px, 4vw, 44px); }
.zone-head .pict { width: clamp(64px, 8vw, 96px); flex: none; display: grid; place-items: center; background: var(--sign-ink); }
.zone-head .pict svg { width: 58%; height: 58%; fill: var(--sign); }
.zone-head .txt { background: var(--sign); color: var(--sign-ink); padding: clamp(10px, 1.6vw, 18px) clamp(16px, 2.4vw, 28px); display: flex; flex-direction: column; justify-content: center; }
.zone-head h2 { margin: 0; font: 900 clamp(30px, 5vw, 64px)/.95 var(--sans); letter-spacing: -.01em; }
.zone-head p { margin: 4px 0 0; font: 700 clamp(13px, 1.3vw, 15px)/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.dark-zone { background: var(--night); color: var(--glyph); }

/* information desk (about) */
.info { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.info .lede { font: 300 clamp(24px, 3vw, 38px)/1.25 var(--sans); margin: 0 0 22px; letter-spacing: -.01em; }
.info .lede strong { font-weight: 800; }
.info p { margin: 0 0 14px; max-width: 54ch; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 4px solid var(--ink); }
.facts li { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--concrete-2); }
.facts b { font: 800 12px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.photo-sign { position: relative; }
.photo-sign img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; height: auto; filter: grayscale(.15) contrast(1.05); }
.photo-sign figcaption { display: flex; justify-content: space-between; gap: 10px; background: var(--sign-ink); color: var(--sign); padding: 10px 14px 8px; font: 700 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 860px) { .info { grid-template-columns: 1fr; } .facts li { grid-template-columns: 110px 1fr; } }

/* gates (projects) */
.gates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.gate { background: var(--sign-ink); color: var(--glyph); display: flex; flex-direction: column; min-height: 100%; }
.gate .gno { display: flex; align-items: center; justify-content: space-between; background: var(--sign); color: var(--sign-ink); padding: 12px 16px 8px; font: 900 clamp(40px, 5vw, 64px)/1 var(--sans); }
.gate .gno small { font: 800 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-align: right; }
.gate img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.05); border-bottom: 1px solid #222; }
.gate .gbody { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.gate h3 { margin: 0 0 8px; font: 800 26px/1.1 var(--sans); }
.gate p { margin: 0 0 16px; color: #c9c5bb; font-size: 16px; }
.gate .board-line { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 14px; border-top: 1px solid #2a2a2d; font: 600 13px var(--mono); text-transform: uppercase; }
.gate .board-line span { color: var(--dim); }
.gate a { color: var(--sign); }
@media (max-width: 900px) { .gates { grid-template-columns: 1fr; } }

/* route */
.route { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.route h3 { margin: 0 0 12px; font: 900 clamp(32px, 4vw, 52px)/.95 var(--sans); }
.route p { color: #c9c5bb; max-width: 44ch; }
.route svg { width: 100%; height: auto; display: block; }
.route .legs { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 16px; font: 600 14px var(--mono); text-transform: uppercase; margin: 18px 0 24px; }
.route .legs span:nth-child(3n) { text-align: right; color: var(--amber); }
.route .legs span:nth-child(3n+2) { color: var(--dim); }
@media (max-width: 860px) { .route { grid-template-columns: 1fr; } }

/* ---------- boarding pass (contact) ---------- */
.pass {
  display: grid; grid-template-columns: 1fr 250px; background: #fbfaf6; color: var(--ink); max-width: 980px;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
  -webkit-mask: radial-gradient(circle 14px at calc(100% - 250px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 14px at calc(100% - 250px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 14px at calc(100% - 250px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 14px at calc(100% - 250px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.pass-main { padding: 0 0 22px; border-right: 2px dashed #b9b4a8; }
.pass-band { display: flex; justify-content: space-between; align-items: center; background: var(--sign-ink); color: var(--sign); padding: 12px 24px 10px; font: 900 18px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.pass-band span { font: 600 12px var(--mono); color: var(--glyph); letter-spacing: .1em; }
.pass-route { display: flex; align-items: center; gap: 16px; padding: 20px 24px 6px; }
.pass-route b { font: 900 clamp(42px, 6vw, 64px)/1 var(--sans); letter-spacing: -.01em; }
.pass-route small { display: block; font: 700 11px var(--sans); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.pass-route svg { width: 40px; height: 40px; fill: var(--ink); flex: none; }
.pass-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; padding: 10px 24px 0; }
.pass-fields .full { grid-column: 1 / -1; }
.pass label { display: block; font: 800 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.pass input, .pass textarea { width: 100%; border: 0; border-bottom: 2px solid var(--ink); background: transparent; color: var(--ink); font: 700 19px var(--mono); padding: 4px 0 6px; text-transform: none; resize: vertical; }
.pass textarea { min-height: 84px; border: 2px solid var(--ink); padding: 8px 10px; font-weight: 400; font-size: 16px; }
.pass input:focus, .pass textarea:focus { outline: none; background: rgba(255, 205, 0, .22); }
.pass-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px 24px 0; }
.board-btn { border: 0; cursor: pointer; background: var(--sign); color: var(--sign-ink); padding: 14px 22px 12px; font: 900 16px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.board-btn:hover { background: var(--sign-ink); color: var(--sign); }
.pass-stub { padding: 0 0 18px; display: flex; flex-direction: column; }
.pass-stub .pass-band { justify-content: center; }
.stub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; padding: 18px 20px 0; }
.stub-grid div b { display: block; font: 900 26px/1 var(--sans); }
.barcode { margin: auto 20px 0; height: 64px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); }
.pass.torn .pass-stub { animation: tear .9s cubic-bezier(.5, 0, .6, 1) forwards; }
@keyframes tear { 40% { transform: rotate(4deg) translate(6px, 4px); } to { transform: rotate(16deg) translate(60px, 140px); opacity: 0; } }
@media (max-width: 760px) {
  .pass { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .pass-main { border-right: 0; border-bottom: 2px dashed #b9b4a8; }
  .pass-fields { grid-template-columns: 1fr; }
}

/* ---------- arrivals (footer) ---------- */
.arrivals { padding: clamp(40px, 6vw, 70px) 0 36px; }
.arrivals .welcome { font: 900 clamp(38px, 7vw, 96px)/.9 var(--sans); letter-spacing: -.02em; margin: 0 0 26px; }
.arrivals .welcome span { color: var(--sign); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; align-items: center; border-top: 1px solid #222; padding-top: 18px; font: 600 13px var(--mono); color: var(--dim); text-transform: uppercase; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-row a { color: var(--glyph); text-decoration: none; border-bottom: 1px solid #333; }
.team-btns { display: flex; gap: 3px; }
.team-btn { border: 0; padding: 9px 12px 7px; cursor: pointer; font: 800 13px var(--sans); letter-spacing: .04em; }
.team-btn.lakers { background: #552583; color: #fdb927; }
.team-btn.dodgers { background: #005a9c; color: #fff; }
.egg-meter { color: var(--sign) !important; border: 0 !important; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   Shared machinery, re-skinned: PA announcements, gate-agent console
   ========================================================================== */
#confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 9990; overflow: hidden; }
.confetti { position: absolute; top: -20px; animation: fall linear forwards; border-radius: 0 !important; }
@keyframes fall { to { transform: translateY(110vh) rotate(var(--spin, 720deg)); } }
.toast-stack { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9995; display: flex; flex-direction: column; gap: 0; pointer-events: none; }
.toast { pointer-events: auto; background: var(--sign); color: var(--sign-ink); padding: 12px var(--gut) 10px; font: 800 15px/1.3 var(--sans); letter-spacing: .02em; display: flex; gap: 14px; align-items: center; border-top: 2px solid var(--sign-ink); animation: pa .35s ease; }
.toast::before { content: ""; flex: none; width: 22px; height: 22px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10v4h4l5 5V5L7 10H3zm13.5 2a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E"); }
.toast b { font-weight: 900; text-transform: uppercase; }
.toast.out { animation: paOut .3s ease forwards; }
@keyframes pa { from { transform: translateY(100%); } }
@keyframes paOut { to { transform: translateY(100%); } }
.term-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 9980; display: none; }
.term-backdrop.open { display: block; }
.term { position: fixed; z-index: 9985; left: 50%; top: 9vh; transform: translateX(-50%); width: min(780px, calc(100% - 24px)); height: min(500px, 76vh); display: none; flex-direction: column; background: #0d0d0e; color: var(--amber); border: 1px solid #2a2a2d; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); font: 14px/1.55 var(--mono); }
.term.open { display: flex; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--sign); color: var(--sign-ink); }
.term-bar i { width: 13px; height: 13px; background: var(--sign-ink); display: inline-block; cursor: pointer; }
.term-bar span { margin-left: auto; font: 900 13px var(--sans); letter-spacing: .14em; }
.term-out { flex: 1; overflow-y: auto; padding: 12px 16px; white-space: pre-wrap; word-break: break-word; }
.term-out .c-accent, .term-out .c-gold { color: var(--sign); }
.term-out .c-dim { color: var(--dim); }
.term-out .c-ok { color: var(--glyph); }
.term-out .c-err { color: #ff6a55; }
.term-out a { color: var(--sign); }
.term-in { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid #2a2a2d; }
.term-in label { color: var(--sign); white-space: nowrap; }
.term-in input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--glyph); font: inherit; outline: none; caret-color: var(--sign); }
#matrix { position: fixed; inset: 0; z-index: 9970; pointer-events: none; opacity: 0; transition: opacity .6s; }
#matrix.on { opacity: .85; }
.barrel-roll { animation: roll 1.4s cubic-bezier(.4, 0, .2, 1); }
@keyframes roll { 50% { transform: rotate(180deg) scale(.85); } to { transform: rotate(360deg); } }
.gravity-fall { transition: transform 1.4s cubic-bezier(.55, 0, 1, .45); }
.otto-pop { position: fixed; right: 16px; bottom: 70px; z-index: 9992; width: min(280px, calc(100% - 32px)); background: var(--sign-ink); border: 3px solid #f76900; }
.otto-pop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.otto-pop div { padding: 8px 10px; font: 900 15px var(--sans); color: #f76900; text-transform: uppercase; letter-spacing: .06em; }
.otto-pop div::before { content: "Connecting via SYR · "; }
.otto-pop.out { display: none; }

@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 72px; }
@media (max-width: 760px) {
  .dep { --dw: 11px !important; --dh: 18px !important; padding: 12px; }
  .dep-row .flaps { --gap: 1px; }
  .dep-labels, .dep-row { column-gap: 8px; }
  .board-foot .kbd { display: none; }
  .board-head { flex-wrap: wrap; }
}
@media (pointer: coarse) { .board-foot .kbd { display: none; } }
@media (max-width: 760px) { .dep-row .via .cell { --cw: 10px; --ch: 15px; } }


/* ==========================================================================
   Lounge layer: quiet graphite surfaces, hairline borders, a single cobalt accent
   ========================================================================== */
.hero { background: radial-gradient(90% 60% at 50% 0%, #17191d 0%, var(--night) 70%); }
.hero .board { box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px #1f2226; }
.mark span.code { background: var(--blue); color: #fff; }
.signs a.alt { background: transparent; color: var(--sign); box-shadow: inset 0 0 0 1px #3a3e45; }
.signs a.alt:hover { background: var(--sign); color: var(--sign-ink); box-shadow: none; }
.zone-head .pict svg { fill: var(--blue); }
.dark-zone { background: var(--night); }
.gate { background: #111316; box-shadow: 0 0 0 1px #1f2226; }
.gate .board-line { border-top-color: #24272c; }
.gate a, .term-out a, .arrivals .welcome span { color: var(--blue); }
.topbar { background: rgba(11, 12, 14, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: #1c1f23; }
.topnav a, .tbtn { border-color: #262a2f; }
.pass-band { background: var(--sign-ink); color: var(--glyph); }
.pass-band b, .pass-band strong { color: var(--amber); }
.live-dot { box-shadow: 0 0 8px rgba(69, 208, 154, .6); }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline-color: var(--blue); }
.signs { position: relative; z-index: 2; margin-top: 14px; gap: 8px; }
.signs a { background: #15171a; color: var(--glyph); box-shadow: inset 0 0 0 1px #2a2e34; transition: background .2s, color .2s, box-shadow .2s; }
.signs a svg { color: var(--blue); }
.signs a:hover, .signs li:first-child a { background: var(--sign); color: var(--sign-ink); box-shadow: none; }
.signs a:hover svg, .signs li:first-child a svg { color: inherit; }
.topbar { background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; }
.concourse .zone-head .pict { background: var(--blue); }
.concourse .zone-head .pict svg { fill: #fff; }
.concourse .zone-head .txt { background: var(--ink); color: var(--glyph); }
.board-btn { background: var(--ink); color: #fff; transition: background .2s; }
.board-btn:hover { background: var(--blue); color: #fff; }
