:root {
  --wall: #d9d5cc;
  --wall-2: #cfcabf;
  --floor: #b9b3a6;
  --bezel: #232326;
  --board: #10239a;
  --row-a: #1b38c4;
  --row-b: #152eaa;
  --head: #0c1c80;
  --navy: #0b1660;
  --text: #f4f6ff;
  --soft: #b9c3f5;
  --paper: #f6f3ea;
  --ink: #1d1f24;
  --muted: #6b6a66;
  --steel: #8d9096;
  --steel-d: #5d6066;
  --rubber: #2e2f33;
  --red: #b23b2e;
  --green: #3f7d4e;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--wall); overflow: hidden; font-family: var(--font); color: var(--ink); user-select: none; -webkit-user-select: none; }
button, input, select { font-family: inherit; }
img { -webkit-user-drag: none; }

.stage { position: absolute; left: 50%; top: 50%; width: 1440px; height: 900px; transform-origin: center; }
.view { position: absolute; inset: 0; display: none; }
.view.show { display: block; animation: fadein .35s both; }
@keyframes fadein { from { opacity: 0; } }
.floor { position: absolute; left: -2000px; right: -2000px; top: 700px; bottom: -2000px; background: var(--floor); }
.char { position: absolute; display: block; }

/* ---------- Top bar ---------- */
.topbar { position: absolute; left: 80px; right: 80px; top: 18px; display: flex; align-items: center; z-index: 50; }
.tb-right { margin-left: auto; display: flex; gap: 10px; }
.pill { border: 0; border-radius: 6px; padding: 9px 16px; background: var(--bezel); color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.pill.ghost { background: transparent; color: var(--bezel); box-shadow: inset 0 0 0 1.5px var(--bezel); }
.pill[hidden] { display: none; }
.steps { display: flex; gap: 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.steps span { padding: 7px 12px; border-radius: 4px; }
.steps span.on { background: var(--board); color: var(--text); }
.steps span.done { color: var(--ink); }

/* ---------- Departures board ---------- */
.board { position: absolute; left: 80px; top: 70px; width: 1280px; background: var(--bezel); border-radius: 22px; padding: 16px; }
.screen { background: var(--board); border-radius: 8px; overflow: hidden; color: var(--text); }
.top { display: flex; align-items: center; gap: 18px; padding: 18px 30px 14px; background: var(--head); }
.top .mark { width: 50px; height: 50px; border-radius: 9px; background: var(--text); display: grid; place-items: center; }
.top .title { min-width: 330px; font-size: 44px; letter-spacing: .04em; line-height: 1; }
.top .airline { font-size: 15px; letter-spacing: .28em; color: var(--soft); margin-top: 6px; }
.top .clock { margin-left: auto; font-size: 54px; font-weight: 300; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.top .clock i { font-style: normal; }
.top .clock i.off { opacity: .25; }
.grid { display: grid; grid-template-columns: 160px 240px minmax(0, 1fr) 118px 70px 176px; column-gap: 16px; padding: 0 30px; align-items: center; }
.cols { height: 46px; font-size: 17px; letter-spacing: .1em; color: var(--soft); background: var(--head); }
.rows { height: 400px; }
.row { height: 40px; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; font-variant-numeric: tabular-nums; }
.row:nth-child(odd) { background: var(--row-a); }
.row:nth-child(even) { background: var(--row-b); }
.row:hover { box-shadow: inset 4px 0 0 var(--text); }
.row > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .task { letter-spacing: .06em; font-size: 20px; color: var(--soft); }
.row .gate { text-align: center; }
.row.empty { cursor: default; box-shadow: none; }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.row.fresh > div { animation: scramble .5s steps(4) both; }
@keyframes scramble { 0% { opacity: 0; } 50% { opacity: .5; } 100% { opacity: 1; } }
.ticker { height: 46px; background: var(--head); overflow: hidden; position: relative; font-size: 19px; letter-spacing: .12em; text-transform: uppercase; }
.ticker span { position: absolute; top: 50%; white-space: nowrap; transform: translate(0, -50%); }

/* ---------- Travelers ---------- */
.crowd { position: absolute; inset: 0; pointer-events: none; }
.walker { position: absolute; left: 0; will-change: transform; }
.walker img { display: block; height: 100%; }
.walker.left img { scale: -1 1; }

/* Moving walkways seen side-on. Riders stand between a far glass wall and a near one, handrail at hip height. */
.ww { position: absolute; left: -60px; right: -60px; pointer-events: none; }
.ww.glass { background: rgba(206, 226, 236, .26); border-top: 12px solid #1f2024; border-radius: 7px 7px 0 0; }
.ww.glass::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 238px, rgba(255, 255, 255, .6) 238px 240px); }
.ww.glass::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 150px, rgba(255, 255, 255, .2) 150px 186px, transparent 186px 214px, rgba(255, 255, 255, .12) 214px 226px, transparent 226px 560px); }
.ww.glass.far { opacity: .8; border-top-width: 9px; }
.ww.glass.near { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35); }
.ww.tread { overflow: hidden; background: #4a4c52; border-top: 3px solid #a3a6ac; border-bottom: 10px solid #2e2f33; }
.ww.tread.back { height: 30px; } .ww.tread.front { height: 40px; }
.ww .ribs { position: absolute; left: -120px; right: -120px; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, #4a4c52 0 9px, #393a3f 9px 12px); will-change: transform; }
.ww.tread.back .ribs { animation: beltR 1s linear infinite; }
.ww.tread.front .ribs { animation: beltL .9s linear infinite; }
@keyframes beltR { from { transform: translateX(-72px); } to { transform: translateX(0); } }
@keyframes beltL { from { transform: translateX(0); } to { transform: translateX(-96px); } }

/* ---------- Scene furniture ---------- */
.scene { background: var(--wall); }
.sign { position: absolute; background: var(--board); color: var(--text); text-align: center; font-size: 26px; letter-spacing: .22em; padding: 16px 0; border-radius: 6px; }
.sign.hang { top: 80px; }
.sign.hang::before, .sign.hang::after { content: ""; position: absolute; top: -80px; width: 3px; height: 80px; background: var(--steel-d); }
.sign.hang::before { left: 18%; } .sign.hang::after { right: 18%; }
.actions { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; justify-content: center; gap: 12px; z-index: 20; }
.btn { border: 0; border-radius: 8px; padding: 16px 26px; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; background: var(--board); color: var(--text); }
.btn.alt { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.danger { background: var(--paper); color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn:disabled { opacity: .5; cursor: default; }
.bubble {
  position: absolute; max-width: 380px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 16px 20px;
  font-size: 19px; line-height: 1.4; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s; z-index: 15;
}
.bubble.show { opacity: 1; transform: none; }
.bubble::after { content: ""; position: absolute; left: -10px; top: 26px; border: 10px solid transparent; border-left: 0; border-right-color: var(--paper); }

/* ---------- Kiosk ---------- */
.kiosk { position: absolute; top: 190px; width: 330px; height: 640px; background: #3a3c42; border-radius: 18px 18px 6px 6px; }
.kiosk::after { content: ""; position: absolute; left: 40px; right: 40px; bottom: -12px; height: 14px; background: #2a2b30; border-radius: 0 0 6px 6px; }
.kiosk.off { opacity: .75; transform: scale(.92); transform-origin: bottom; }
.kiosk.main { width: 420px; top: 170px; height: 680px; background: #2f3137; z-index: 2; }
.kscreen { position: absolute; left: 22px; right: 22px; top: 26px; height: 300px; background: #e9ebf0; border-radius: 8px; overflow: hidden; }
.kiosk.main .kscreen { height: 380px; background: #fff; }
.oos { height: 100%; display: grid; place-items: center; text-align: center; color: #7d808a; font-size: 18px; letter-spacing: .06em; line-height: 1.5; }
.oos small { font-size: 13px; }
.slot { position: absolute; left: 60px; right: 60px; top: 360px; height: 14px; background: #121316; border-radius: 3px; }
.kiosk.main .slot { top: 432px; left: 70px; right: 70px; overflow: visible; }
.printed { position: absolute; left: 50%; top: 6px; width: 260px; translate: -50% 0; height: 0; overflow: hidden; transition: height 2.4s steps(24); z-index: 3; }
.printed.out { height: 330px; }
.printed .pass { transform: rotate(90deg) translate(0, -100%); transform-origin: top left; position: absolute; left: 0; top: 0; }
.khead { height: 48px; background: var(--board); color: var(--text); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 12px; letter-spacing: .2em; }
.kbody { padding: 20px 22px; height: calc(100% - 48px); display: flex; flex-direction: column; color: var(--ink); }
.kbody h3 { margin: 0 0 6px; font-size: 22px; font-weight: 500; }
.kbody p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.kbody textarea { min-height: 120px; border: 0; border-radius: 6px; background: #eef0f5; font: 17px/1.4 var(--font); padding: 12px 14px; outline: none; color: var(--ink); resize: none; }
.kbody textarea:focus { box-shadow: inset 0 0 0 2px var(--board); }
.kbody input { height: 50px; border: 0; border-radius: 6px; background: #eef0f5; font-size: 19px; padding: 0 14px; outline: none; color: var(--ink); }
.kbody input:focus { box-shadow: inset 0 0 0 2px var(--board); }
.kbody .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kbody .chip { border: 0; border-radius: 16px; padding: 8px 12px; background: #eef0f5; color: var(--ink); font-size: 13px; cursor: pointer; }
.kbody .chip.on { background: var(--board); color: var(--text); }
.kbody .grow { flex: 1; }
.kbody .kbtn { height: 54px; border: 0; border-radius: 8px; background: var(--board); color: var(--text); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.kbody .kbtn:disabled { opacity: .45; }
.kbody .kerr { color: var(--red); font-size: 13px; min-height: 18px; margin: 6px 0; }
.kbody .itin { font-size: 14px; }
.kbody .itin div { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; padding: 5px 0; border-bottom: 1px solid #e3e5ea; align-items: baseline; }
.kbody .itin b { font-weight: 600; }
.kbody .itin span { color: var(--muted); font-size: 12.5px; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid #dfe3ef; border-top-color: var(--board); animation: spin .9s linear infinite; margin: 30px auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.welcome { flex: 1; display: grid; place-items: center; text-align: center; }
.welcome h3 { font-size: 26px; }

/* ---------- Boarding pass ---------- */
.pass {
  width: 640px; height: 250px; display: grid; grid-template-columns: 1fr 180px; background: var(--paper); color: var(--ink);
  border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); font-size: 12px; position: relative;
}
.pass .main { padding: 0 0 14px; display: flex; flex-direction: column; }
.pass .band { height: 46px; background: var(--board); color: var(--text); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; letter-spacing: .2em; font-size: 12px; }
.pass .band b { font-weight: 500; font-size: 13px; }
.pass .route { display: flex; align-items: center; gap: 16px; padding: 12px 18px 4px; }
.pass .route .code { font-size: 40px; font-weight: 600; letter-spacing: .04em; line-height: 1; }
.pass .route .city { font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-top: 4px; text-transform: uppercase; }
.pass .route svg { flex: 0 0 auto; }
.pass .fields { display: grid; grid-template-columns: repeat(5, auto); gap: 6px 18px; padding: 8px 18px 0; justify-content: start; }
.pass .f small { display: block; font-size: 9.5px; letter-spacing: .16em; color: var(--muted); }
.pass .f b { font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.pass .taskline { padding: 8px 18px 0; font-size: 13px; }
.pass .taskline small { font-size: 9.5px; letter-spacing: .16em; color: var(--muted); display: block; }
.pass .taskline b { font-size: 15px; font-weight: 600; }
.pass .stub { border-left: 2px dashed #cfcab9; padding: 0 14px 12px; display: flex; flex-direction: column; position: relative; }
.pass .stub::before, .pass .stub::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--wall); }
.pass .stub::before { top: -10px; } .pass .stub::after { bottom: -10px; }
.pass .stub .band { margin: 0 -14px 10px; padding: 0 14px; }
.pass .stub .f { margin-bottom: 7px; }
.pass .barcode { margin-top: auto; height: 46px; display: flex; gap: 1.5px; align-items: stretch; }
.pass .barcode i { background: var(--ink); display: block; }
.pass .stamp { position: absolute; right: 200px; top: 70px; border: 3px solid currentColor; padding: 6px 12px; font-size: 20px; font-weight: 700; letter-spacing: .14em; transform: rotate(-9deg); opacity: .85; border-radius: 6px; }
.pass .stamp.landed { color: var(--green); }
.pass .stamp.cancelled { color: var(--red); }
.pass .stamp.inflight { color: var(--board); }
.pass .stamp.delayed { color: var(--red); }

/* ---------- Entry: the click that lets the browser play sound ---------- */
.entry { position: absolute; inset: -2000px; background: var(--board); z-index: 90; display: grid; place-items: center; transition: opacity .6s; }
.entry.gone { opacity: 0; pointer-events: none; }
.entry-card { text-align: center; color: var(--text); }
.entry-card .mark { width: 84px; height: 84px; border-radius: 16px; background: var(--text); display: grid; place-items: center; margin: 0 auto 26px; }
.entry-card small { display: block; font-size: 15px; letter-spacing: .32em; color: var(--soft); }
.entry-card h1 { margin: 10px 0 34px; font-size: 64px; font-weight: 300; letter-spacing: .08em; }
.entry-card .btn { background: var(--text); color: var(--board); padding: 18px 34px; }
.veil { position: absolute; inset: -2000px; background: rgba(10, 14, 40, .45); display: none; z-index: 60; }
.veil.show { display: block; }
.ticketview { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: none; z-index: 61; }
.ticketview.show { display: block; animation: rise .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) rotate(-2deg); } }
.ticketview .pass { zoom: 1.3; }
.ticketview .ticketacts { margin-top: 22px; }
.ticketacts { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }

/* ---------- Bag drop ---------- */
.counter { position: absolute; left: -100px; width: 760px; top: 570px; height: 330px; background: #5a5d63; border-top: 18px solid #3f4247; z-index: 3; }
.scale { position: absolute; left: 700px; top: 330px; width: 660px; height: 420px; }
.readout { position: absolute; left: 30px; top: 0; width: 260px; height: 120px; background: #141519; border-radius: 10px; color: #e7ecff; display: flex; align-items: baseline; justify-content: center; gap: 8px; padding-top: 30px; font-variant-numeric: tabular-nums; }
.readout small { position: absolute; left: 14px; top: 10px; font-size: 11px; letter-spacing: .2em; color: #8a90a6; }
.readout b { font-size: 56px; font-weight: 300; }
.readout span { font-size: 18px; color: #8a90a6; }
.readout.over b, .readout.over span { color: #ff9c8c; }
.readout .flag { position: absolute; left: 0; right: 0; bottom: -30px; text-align: center; font-size: 15px; letter-spacing: .2em; color: var(--red); font-weight: 600; }
.platform { position: absolute; left: 0; top: 330px; width: 320px; height: 26px; background: var(--steel); border-radius: 4px; }
.belt { position: absolute; left: 320px; top: 336px; width: 300px; height: 20px; background: var(--rubber); }
.curtain { position: absolute; left: 560px; top: 150px; width: 90px; height: 206px; background: repeating-linear-gradient(90deg, #3a3b40 0 14px, #2c2d31 14px 16px); border-radius: 4px 4px 0 0; z-index: 4; }
.bags { position: absolute; left: 0; top: 0; width: 600px; height: 100%; overflow: hidden; }
.bag { position: absolute; bottom: 90px; transition: transform .7s cubic-bezier(.3, .8, .3, 1), opacity .5s; }
.bag .tag, .cbag .tag { position: absolute; left: 50%; top: -6px; translate: -50% -100%; width: max-content; max-width: 124px; background: var(--paper); border-radius: 4px; padding: 5px 8px; font-size: 11px; letter-spacing: .02em; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); text-align: center; line-height: 1.35; }
.bag .tag b, .cbag .tag b { display: block; font-size: 13px; letter-spacing: .14em; }

/* ---------- Security ---------- */
.monitor { position: absolute; left: 780px; top: 170px; width: 480px; height: 300px; background: #141519; border-radius: 12px; padding: 14px; }
.xray { position: relative; width: 100%; height: 240px; background: #0d1a3a; border-radius: 6px; overflow: hidden; }
.mlabel { color: #8a90a6; font-size: 11px; letter-spacing: .2em; margin-top: 8px; }
.machine { position: absolute; left: 640px; top: 520px; width: 340px; height: 200px; background: #c9c6be; border-radius: 10px 10px 0 0; z-index: 4; }
.tunnel { position: absolute; left: 40px; right: 40px; bottom: 0; height: 120px; background: #222327; border-radius: 6px 6px 0 0; overflow: hidden; }
.flaps { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #45464b 0 10px, #36373b 10px 12px); opacity: .8; }
.light { position: absolute; right: 16px; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: #6b6a66; }
.light.go { background: var(--green); } .light.stop { background: var(--red); }
.xbelt { position: absolute; left: 380px; width: 900px; top: 700px; height: 24px; background: var(--rubber); z-index: 3; }
.tote { position: absolute; bottom: 22px; left: 30px; width: 150px; height: 110px; transition: left 2.2s linear; }
.bin { position: absolute; left: 1060px; top: 600px; width: 260px; height: 130px; background: #8e9aa8; border-radius: 6px 6px 14px 14px; z-index: 5; }
.binlabel { position: absolute; left: 0; right: 0; top: 10px; text-align: center; font-size: 13px; letter-spacing: .22em; color: #f1f3f5; font-weight: 600; }
.binitems { position: absolute; left: 10px; right: 10px; top: 34px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.binitems span { background: var(--paper); border-radius: 4px; padding: 3px 8px; font-size: 13px; animation: drop .5s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes drop { from { transform: translateY(-60px); opacity: 0; } }
.xitem { flex: 1 1 0; min-width: 0; color: #9fd0ff; font-size: 13px; letter-spacing: .04em; line-height: 1.3; text-align: center; transition: opacity .4s; }
.xitem .shape { margin: 0 auto 6px; background: rgba(159, 208, 255, .25); box-shadow: inset 0 0 0 2px rgba(159, 208, 255, .7); }
.xitem.flag .shape { box-shadow: inset 0 0 0 2px rgba(159, 208, 255, .7), 0 0 0 4px #e0645a; }
.xitem.flag { color: #ffd2cc; }
.xitem.gone { opacity: 0; }
.xbag { position: absolute; left: 30px; right: 30px; top: 28px; bottom: 28px; border-radius: 22px; box-shadow: inset 0 0 0 3px rgba(159, 208, 255, .45); display: flex; align-items: center; gap: 14px; padding: 0 22px; }
.xscan { position: absolute; top: 0; bottom: 0; width: 3px; background: rgba(159, 208, 255, .8); left: -10px; }

/* ---------- Gate ---------- */
.window { position: absolute; left: 0; right: 0; top: 0; height: 600px; background: #2c2e33; }
.window .sky { position: absolute; left: 0; right: 0; top: 0; height: 420px; background: #a9bccb; }
.window .tarmac { position: absolute; left: 0; right: 0; top: 420px; bottom: 0; background: #6e6f72; }
.window::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 236px, #2c2e33 236px 252px); }
.plane { position: absolute; left: 380px; top: 250px; width: 760px; height: 220px; transition: transform 3.5s cubic-bezier(.5, 0, .9, .4); }
.gatesign { position: absolute; left: 80px; top: 70px; width: 420px; background: var(--board); color: var(--text); border-radius: 8px; padding: 20px 24px; z-index: 4; }
.gatesign .g { font-size: 64px; font-weight: 300; letter-spacing: .06em; line-height: 1; }
.gatesign .l { font-size: 15px; letter-spacing: .16em; margin-top: 10px; color: var(--soft); }
.gatesign .s { margin-top: 12px; font-size: 20px; letter-spacing: .16em; }
.podium { position: absolute; left: 1050px; top: 560px; width: 280px; height: 340px; background: #4b4e55; border-radius: 8px 8px 0 0; z-index: 4; }
.scanner { position: absolute; left: 70px; top: -30px; width: 140px; height: 50px; background: #1c1d21; border-radius: 6px; }
.scanner i { position: absolute; left: 12px; right: 12px; top: 18px; height: 6px; border-radius: 3px; background: #4c4f56; }
.scanner.ok i { background: #6fcf86; }
.passslot { position: absolute; left: 340px; top: 620px; z-index: 6; transition: transform .9s cubic-bezier(.3, .8, .3, 1); }
.passslot .pass { transform: scale(.72); transform-origin: top left; }

/* ---------- Cabin ---------- */
.cabin { background: #d8d2c4; }
.seatbelt { position: absolute; left: 640px; top: 70px; width: 300px; height: 56px; border-radius: 8px; background: #2b2c30; color: #5d5f66; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; letter-spacing: .18em; }
.seatbelt.on { color: #f3e3b0; }
.porthole { position: absolute; left: 110px; top: 160px; width: 360px; height: 470px; border-radius: 180px; background: #9fb6c8; overflow: hidden; box-shadow: 0 0 0 26px #ece7da, 0 0 0 30px #c9c2b2; }
.clouds { position: absolute; inset: 0; }
.cloud { position: absolute; background: #f3f5f6; border-radius: 60px; opacity: .95; }
.wing { position: absolute; left: -40px; bottom: 60px; width: 380px; height: 60px; background: #c9ccd1; transform: skewY(-12deg); border-radius: 4px; }
.seatback { position: absolute; left: 560px; top: 170px; width: 640px; height: 470px; background: #2b2c30; border-radius: 26px; padding: 26px; }
.map { height: 270px; background: #10239a; border-radius: 10px; overflow: hidden; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 16px; color: var(--text); }
.stats div small { display: block; font-size: 11px; letter-spacing: .18em; color: #9aa0b8; }
.stats div b { font-size: 26px; font-weight: 300; font-variant-numeric: tabular-nums; }
.stats .wide { grid-column: 1 / -1; }
.stats .wide b { font-size: 22px; font-weight: 400; }

/* ---------- Baggage claim ---------- */
.claimsign { position: absolute; left: 80px; top: 70px; right: 80px; height: 110px; background: #1d1f24; color: #f2d36b; border-radius: 8px; display: flex; align-items: center; padding: 0 30px; gap: 30px; z-index: 4; }
.claimsign .n { font-size: 70px; font-weight: 300; color: #f2d36b; }
.claimsign .t { font-size: 18px; letter-spacing: .16em; color: #e8e9ed; line-height: 1.5; }
.claimsign .t b { color: #f2d36b; font-weight: 500; }
.carousel { position: absolute; left: 80px; right: 80px; top: 470px; height: 120px; background: #3b3d42; border-radius: 60px; overflow: hidden; z-index: 3; }
.plates { position: absolute; left: 0; right: -200px; top: 14px; bottom: 30px; background: repeating-linear-gradient(90deg, #6d7077 0 96px, #55585e 96px 100px); border-radius: 46px; animation: plates 4s linear infinite paused; }
.plates.run { animation-play-state: running; }
@keyframes plates { to { transform: translateX(-100px); } }
.onbelt { position: absolute; left: 80px; right: 80px; top: 360px; height: 220px; z-index: 5; pointer-events: none; }
.onbelt .cbag { position: absolute; bottom: 0; cursor: pointer; pointer-events: auto; }
.onbelt .cbag:hover { filter: brightness(1.06); }
.beacon { position: absolute; left: 1320px; top: 400px; width: 26px; height: 26px; border-radius: 50%; background: #6b5a2a; z-index: 4; }
.beacon.on { background: #f2b33d; animation: blink .6s steps(1) infinite; }
.transit { position: absolute; left: 80px; top: 210px; width: 600px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.transit b { color: var(--ink); letter-spacing: .14em; font-size: 12px; display: block; }
.claimed { position: absolute; left: 80px; right: 80px; top: 640px; height: 160px; display: flex; gap: 20px; align-items: flex-end; z-index: 6; }
.claimed .cbag { position: relative; animation: drop .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.claimed .cbag .ok { position: absolute; right: -6px; top: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.done-banner { position: absolute; left: 50%; top: 250px; translate: -50% 0; background: var(--board); color: var(--text); padding: 22px 34px; border-radius: 10px; font-size: 24px; letter-spacing: .1em; text-align: center; z-index: 30; animation: rise .4s both; }
.done-banner small { display: block; font-size: 13px; letter-spacing: .2em; color: var(--soft); margin-bottom: 6px; }

/* ---------- Cabin: cargo, call button, chat ---------- */
.char.flip { scale: -1 1; }
.seatback { height: 560px; top: 190px; left: 520px; }
.cargo { margin-top: 16px; border-top: 1px solid #44464d; padding-top: 12px; }
.cargo-h { font-size: 11px; letter-spacing: .2em; color: #9aa0b8; margin-bottom: 8px; }
.cargo-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.cargo-list .empty { color: #6f7486; font-size: 14px; }
.cargo-list { gap: 12px 18px; align-items: center; min-height: 0; }
.ftag { position: relative; display: flex; flex-direction: row; align-items: flex-end; gap: 8px; border: 0; background: none; padding: 0; cursor: pointer; animation: drop .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.ftag:hover svg { transform: translateY(-3px); }
.ftag svg { transition: transform .15s; }
.ftag .ltag { position: relative; margin-bottom: 8px; max-width: 170px; padding: 4px 9px 4px 16px; background: var(--paper); color: var(--ink); border-radius: 3px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftag .ltag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #2b2c30; }
.callbtn-old { position: absolute; right: 50px; top: 170px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 30px; padding: 12px 20px; background: #2b2c30; color: #f3e3b0; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; z-index: 8; }
.callbtn.ringing { animation: blink .8s steps(1) 3; }
.chat { position: absolute; right: 30px; top: 70px; bottom: 30px; width: 420px; background: var(--paper); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); display: none; flex-direction: column; overflow: hidden; z-index: 30; }
.chat.show { display: flex; animation: rise .3s both; }
.chat-h { height: 54px; background: var(--board); color: var(--text); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 13px; letter-spacing: .2em; }
.chat-h button { border: 0; background: none; color: var(--soft); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; }
.msg.crew { background: #e8e5db; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.you { background: var(--board); color: var(--text); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.sys { align-self: center; background: none; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-align: center; }
.msg.typing { color: var(--muted); }
.chat-in { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e0dccf; }
.chat-in input { flex: 1; height: 46px; border: 0; border-radius: 23px; background: #ebe8de; padding: 0 16px; font-size: 15px; outline: none; color: var(--ink); }
.chat-in button { border: 0; border-radius: 23px; padding: 0 18px; background: var(--board); color: var(--text); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

/* ---------- Modals: file viewer, key ---------- */
.modal { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 900px; height: 700px; background: var(--paper); border-radius: 14px; display: none; flex-direction: column; overflow: hidden; z-index: 61; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.modal.show { display: flex; animation: rise .3s both; }
.modal.small { width: 520px; height: auto; padding-bottom: 22px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e0dccf; }
.modal-h b { font-size: 18px; font-weight: 600; }
.modal-h span { display: flex; gap: 8px; }
.modal-h .btn { padding: 10px 16px; font-size: 13px; }
.file-body { position: relative; flex: 1; overflow: auto; padding: 34px 64px 48px; color: var(--ink); font-size: 16px; line-height: 1.6; user-select: text; -webkit-user-select: text; background: #fff; }
.file-body > :first-child { margin-top: 0; }
.file-body .changed::after { content: "Updated"; margin-left: 12px; padding: 2px 8px; border-radius: 4px; background: #e8ebfa; color: #16239a; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.file-body h1 { font-size: 30px; font-weight: 600; line-height: 1.2; margin: 0 0 18px; letter-spacing: -.01em; }
.file-body h2 { font-size: 21px; font-weight: 600; margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #e6e2d6; }
.file-body h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.file-body h4 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 22px 0 6px; }
.file-body p { margin: 0 0 14px; }
.file-body ul, .file-body ol { margin: 0 0 16px; padding-left: 24px; }
.file-body li { margin: 4px 0; }
.file-body li.sub { margin-left: 22px; list-style-type: circle; }
.file-body strong { font-weight: 600; }
.file-body a { color: var(--board); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.file-body hr { border: 0; border-top: 1px solid #e6e2d6; margin: 26px 0; }
.file-body blockquote { margin: 0 0 16px; padding: 8px 16px; border-left: 3px solid var(--board); color: #44454a; background: #f6f4ee; }
.file-body code { font: 14px ui-monospace, "SF Mono", Menlo, monospace; background: #f1efe8; padding: 1px 5px; border-radius: 4px; }
.file-body pre { font: 14px/1.55 ui-monospace, "SF Mono", Menlo, monospace; background: #f6f4ee; padding: 14px 16px; border-radius: 8px; white-space: pre-wrap; margin: 0 0 16px; }
.file-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; }
.file-body th { text-align: left; font-weight: 600; background: #f1efe8; }
.file-body th, .file-body td { padding: 9px 12px; border: 1px solid #e3dfd2; vertical-align: top; }
.msg a { color: inherit; }
.modal.small p { margin: 16px 20px 12px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.modal.small input { margin: 0 20px; width: calc(100% - 40px); height: 46px; border: 0; border-radius: 8px; background: #ebe8de; padding: 0 14px; font-size: 15px; outline: none; }
.modal-acts { display: flex; justify-content: flex-end; gap: 10px; margin: 16px 20px 0; }
.working { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #f2d36b; margin-right: 8px; animation: blink 1s steps(1) infinite; }

/* ---------- The aisle: the attendant rolls up when you call ---------- */
.aisle { position: absolute; inset: 0; display: none; z-index: 25; overflow: hidden; background: #2f3a5a; }
.aisle.show { display: block; animation: fadein .3s both; }
.aisle-bg { position: absolute; left: -80px; top: 0; width: 1600px; height: 900px; }
.crewmate { position: absolute; left: 520px; bottom: -60px; height: 760px; transform-origin: 50% 100%; transform: translate(120px, -400px) scale(.26); transition: transform 2.6s cubic-bezier(.3, .6, .35, 1); }
.crewmate.here { transform: none; }
.bubble.right::after { left: auto; right: -10px; border-left: 10px solid var(--paper); border-right: 0; }

/* ---------- Overhead passenger panel: light, call, cargo ---------- */
.psu { position: absolute; left: 520px; top: 50px; width: 640px; height: 112px; padding: 12px 18px; background: #e6e1d4; border-radius: 0 0 22px 22px; box-shadow: inset 0 0 0 2px #cfc8b6; display: flex; align-items: center; gap: 22px; z-index: 8; }
.psu .signs { display: flex; gap: 8px; padding-right: 22px; border-right: 2px solid #cfc8b6; height: 100%; align-items: center; }
.sign-lit { width: 92px; height: 80px; border-radius: 10px; background: #2b2c30; color: #55575e; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; text-align: center; transition: color .2s; }
.sign-lit.on { color: #f3e3b0; }
.psu-btns { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.psu-btn { position: relative; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #5b5a55; cursor: pointer; padding: 0; line-height: 1.25; }
.psu-btn span { width: 58px; height: 58px; border-radius: 50%; background: #2b2c30; color: #8c8f97; display: grid; place-items: center; box-shadow: 0 3px 0 #17181b; transition: transform .08s, box-shadow .08s; }
.psu-btn:active span { transform: translateY(3px); box-shadow: 0 0 0 #17181b; }
.psu-btn.on span { color: #f3e3b0; box-shadow: 0 3px 0 #17181b, 0 0 0 3px #f3e3b0; }
.psu-btn.ringing span { animation: blink .8s steps(1) 3; color: #f3e3b0; }
.psu-btn i { position: absolute; top: -4px; right: 6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--board); color: var(--text); font-style: normal; font-size: 11px; display: grid; place-items: center; padding: 0 5px; letter-spacing: 0; }
.psu-btn i:empty { display: none; }
.lightcone { position: absolute; left: 700px; top: 160px; width: 300px; height: 740px; background: #fff3c9; opacity: 0; clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); transition: opacity .25s; pointer-events: none; z-index: 2; }
.lightcone.on { opacity: .35; }
.cargopop { position: absolute; left: 910px; top: 170px; width: 250px; background: var(--paper); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); padding: 8px; display: none; z-index: 9; }
.cargopop.show { display: block; animation: rise .25s both; }
.cargopop button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; padding: 10px; border-radius: 6px; font-size: 14px; cursor: pointer; color: var(--ink); }
.cargopop button:hover { background: #ebe7dc; }
.cargopop button i { width: 8px; height: 8px; border-radius: 50%; background: var(--board); flex: none; }
.cargopop .empty { padding: 10px; font-size: 13px; color: var(--muted); line-height: 1.4; }

.chat-in .mic { width: 46px; flex: none; padding: 0; border-radius: 50%; background: #ebe8de; color: var(--ink); display: grid; place-items: center; }
.chat-in .mic.rec { background: var(--red); color: #fff; animation: blink 1s steps(1) infinite; }
.chat-in .mic.busy { opacity: .5; }

/* ---------- Board tabs: departures, in the air, arrivals ---------- */
.boardtabs { display: flex; gap: 4px; margin-left: 40px; background: #08155f; border-radius: 10px; padding: 4px; }
.boardtabs button { position: relative; border: 0; border-radius: 7px; background: none; color: var(--soft); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 16px; cursor: pointer; }
.boardtabs button.on { background: var(--text); color: var(--board); }
.boardtabs i { margin-left: 8px; font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: #f2d36b; color: #0b1660; font-size: 12px; letter-spacing: 0; padding: 0 5px; }
.boardtabs i:empty { display: none; }
.row.note { cursor: default; color: var(--soft); font-size: 18px; letter-spacing: .2em; }
.row.note:hover { box-shadow: none; }
.progress { position: relative; height: 6px; border-radius: 3px; background: #0c1c80; margin-right: 26px; }
.progress b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--text); }
.progress svg { position: absolute; top: 50%; translate: -50% -50%; color: #f2d36b; }

.scanner.no i { background: #e0645a; }
.firstclass { transform: translateX(-400px) scaleX(-1); visibility: hidden; }
.firstclass.walking { visibility: visible; }

.chat-in .mic.busy { opacity: 1; color: transparent; position: relative; }
.chat-in .mic.busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #cfcab9; border-top-color: var(--board); animation: spin .8s linear infinite; }
.chat-in .mic.rec { animation: none; box-shadow: 0 0 0 0 rgba(178, 59, 46, .5); animation: pulse 1.2s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(178, 59, 46, 0); } }
.chat-in input:disabled { color: var(--muted); }
.chat-in input:disabled::placeholder { color: var(--ink); }
.msg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8d8a80; animation: dot 1.2s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.aisle.leaving { opacity: 0; transition: opacity .45s; }

/* ---------- Seatback screen: map, Wi-Fi, entertainment (both broken) ---------- */
.tvtabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tvtabs button { border: 0; border-radius: 6px; padding: 8px 14px; background: #3a3b41; color: #b5b9c6; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.tvtabs button.on { background: var(--text); color: #0b1660; }
.seatback .map { position: relative; height: 220px; }
.seatback .map svg { width: 100%; height: 100%; display: block; }
.tvpane { position: absolute; inset: 0; background: #10239a; color: var(--text); display: none; padding: 22px 26px; }
.tvpane.show { display: block; }
.tvpane h4 { margin: 0 0 4px; font-size: 13px; letter-spacing: .2em; color: var(--soft); font-weight: 400; }
.tvpane .big { font-size: 26px; font-weight: 300; margin-bottom: 14px; }
.tvpane .plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tvpane .plan { border: 0; text-align: left; border-radius: 8px; padding: 12px 14px; background: #1b38c4; color: var(--text); cursor: pointer; font-size: 14px; }
.tvpane .plan b { display: block; font-size: 22px; font-weight: 400; margin-top: 4px; }
.tvpane .plan:hover { background: #2446d6; }
.tvpane .movies { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tvpane .movie { border: 0; padding: 0; background: none; color: var(--text); cursor: pointer; text-align: left; font-size: 11.5px; line-height: 1.3; }
.tvpane .poster { height: 100px; border-radius: 6px; margin-bottom: 6px; display: flex; align-items: flex-end; padding: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 1.15; color: #f4f1e8; }
.tvpane .movie:hover .poster { outline: 2px solid var(--text); }
.tvpane .center { height: 100%; display: grid; place-items: center; text-align: center; }
.tvpane .center b { display: block; font-size: 22px; font-weight: 400; margin: 12px 0 6px; }
.tvpane .center small { color: var(--soft); font-size: 13px; letter-spacing: .04em; }
.tvpane .err { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #f2d36b; color: #f2d36b; display: grid; place-items: center; font-size: 24px; font-weight: 600; margin: 0 auto; }
.tvpane .spinner { margin: 0 auto; border-color: #2a46c9; border-top-color: var(--text); }


/* Baggage claim chutes: bags push out through rubber flaps on the left and disappear into the right. */
.chute { position: absolute; top: 330px; width: 190px; height: 262px; background: #73767c; border-radius: 16px 16px 0 0; z-index: 7; }
.chute.in { left: 70px; } .chute.out { right: 70px; }
.chute::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: #5d6066; border-radius: 16px 16px 0 0; }
.chute .chute-flaps { position: absolute; left: 22px; right: 22px; bottom: 0; height: 196px; background: #1d1e21; border-radius: 10px 10px 0 0; overflow: hidden; }
.chute .chute-flaps::after { content: ""; position: absolute; inset: 6px 0 0; background: repeating-linear-gradient(90deg, #34353a 0 17px, #1d1e21 17px 19px); transform-origin: top; }
.chute.in .chute-flaps::after { animation: flapIn 2.6s ease-in-out infinite; }
.chute.out .chute-flaps::after { animation: flapOut 2.6s ease-in-out infinite; }
@keyframes flapIn { 0%, 70%, 100% { transform: none; } 80% { transform: skewX(14deg); } }
@keyframes flapOut { 0%, 30%, 100% { transform: none; } 40% { transform: skewX(14deg); } }
.onbelt { overflow: hidden; }

/* Landing: the clouds clear and the destination shows through the window. */
.porthole .view { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2.4s ease; }
.porthole .clouds { transition: opacity 1.6s ease; }
.porthole.landed .view { opacity: 1; }
.porthole.landed .clouds { opacity: 0; }

/* The agent updating a file the passenger asked the crew to change */
.msg.sys.working::after { content: ""; display: inline-block; width: 1.4em; text-align: left; animation: ellipsis 1.2s steps(4) infinite; }
@keyframes ellipsis { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.upd { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #16239a; background: #e8ebfa; border-radius: 3px; padding: 2px 6px; margin-left: 8px; }
.ftag .upd { position: absolute; left: 54px; top: -10px; margin: 0; }
.psu-btn.updating span { animation: blink 1s steps(1) infinite; }
.psu-btn.updated span { animation: blink .5s steps(1) 4; color: #f3e3b0; }
