/* Nexus — check-in screens (PIN lock + sign-in) in three styles, on top of nexus.css.
   body.ci--seat   seatback screen: the in-flight screen on the seat in front
   body.ci--pass   boarding pass: the form is the ticket, on the dusk sky
   body.ci--board  departure board: split-flap board with a check-in kiosk */

.ci { --ci-fg: #f2efe9; --ci-fg-2: rgba(242, 239, 233, .62); --bad: #ff8a7a; --ok: #7fd6a4;
  --flap-ink: #f4ead0; --flap: #26272e; --flap-2: #1f2026; --board: #16171c;
  --paper: #fbfaf8; --rule: #d3d7e0;
  min-height: 100vh; min-height: 100dvh; background: #17151c; color: var(--ci-fg); }
.ci--pass { background: var(--sky-0); }
.ci--board { background: #0e0f13; }

/* ---------- Top bar (over every style) ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand__name { font: 400 26px/1 var(--font-display); letter-spacing: .01em; }
.eyebrow { margin: 0; font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; }
.nav-label { display: inline; }
.ci-top {
  position: absolute; z-index: 10; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 44px) 16px;
}
.ci-top__actions { display: flex; align-items: center; gap: 8px; }
.ci-style { position: relative; }
.ci-style summary { list-style: none; }
.ci-style summary::-webkit-details-marker { display: none; }
.ci-style[open] summary { background: rgba(255, 255, 255, .26); }
.ci-style__menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 236px; padding: 8px;
  border-radius: 14px; background: rgba(28, 26, 36, .96); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: ci-pop .16s ease-out;
}
@keyframes ci-pop { from { opacity: 0; transform: translateY(-4px); } }
.ci-style__head { margin: 4px 8px 6px; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ci-fg-2); }
.ci-style__note { margin: 6px 8px 2px; font-size: 11.5px; color: var(--ci-fg-2); }
.ci-style__opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ci-fg); font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer;
}
.ci-style__opt:hover { background: rgba(255, 255, 255, .07); }
.ci-style__opt[aria-pressed="true"] { background: rgba(255, 255, 255, .11); }
.ci-style__opt[aria-pressed="true"]::after { content: ''; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--glow); }
.ci-style__opt i { flex: none; width: 34px; height: 24px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.ci-style__opt--seat i { background: radial-gradient(60% 50% at 50% 55%, #1b2a45 0 58%, transparent 60%), linear-gradient(180deg, #36323f, #221f28); }
.ci-style__opt--pass i { background: linear-gradient(90deg, #fbfaf8 0 66%, #fdeedd 66%), linear-gradient(180deg, #536c91, #f3b468); background-size: 70% 50%, 100% 100%; background-position: center, center; background-repeat: no-repeat; }
.ci-style__opt--board i { background: repeating-linear-gradient(90deg, #2a2b33 0 5px, #16171c 5px 6px), #16171c; background-size: 100% 8px; background-position: 0 8px; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 -6px 0 #16171c; }

[hidden] { display: none !important; }   /* overlays like .ife__done set display themselves */
.ci-stage { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); }
.ci-stage > * { padding-top: calc(78px + env(safe-area-inset-top, 0px)); }

/* ---------- Shared controls ---------- */
.msg { min-height: 20px; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--bad); }
.msg.is-info { color: var(--ci-fg-2); font-weight: 500; }
.msg:empty { min-height: 0; }
.btn-sun { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--sun-btn); color: #fff; font-weight: 700; font-size: 15px; text-shadow: 0 1px 1px rgba(120, 40, 10, .25); cursor: pointer; }
.btn-sun:hover { filter: brightness(1.06); }
.btn-sun:disabled { opacity: .55; cursor: not-allowed; }
.btn-sun[aria-busy="true"] { opacity: .75; cursor: progress; }
@keyframes ci-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.shake { animation: ci-shake .42s; }

.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pad button { height: 54px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .07); color: #fff; font: 500 21px/1 var(--font-ui); cursor: pointer; transition: background .12s, transform .08s; }
.pad button:hover { background: rgba(255, 255, 255, .13); }
.pad button:active { transform: scale(.96); }
.pad button:disabled { opacity: .4; cursor: not-allowed; }
.pad .fn { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); background: transparent; }
.pad svg { width: 22px; height: 22px; vertical-align: middle; }

/* Sign-in pieces shared by the styles */
.auth[data-mode="signin"] [data-only="signup"] { display: none; }
#auth-form { display: grid; gap: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.auth-tabs button { height: 34px; border: 0; border-radius: 9px; background: transparent; color: rgba(255, 255, 255, .62); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.auth-tabs button:hover { color: #fff; }
.auth-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .13); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.field { display: grid; gap: 6px; }
.field > span:first-child { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.field input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: rgba(255, 255, 255, .3); }
.field input:focus { outline: none; border-color: rgba(246, 209, 137, .75); box-shadow: 0 0 0 3px rgba(246, 209, 137, .16); }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px #262435 inset; -webkit-text-fill-color: #fff; caret-color: #fff; }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field em, .tk-f em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--bad); }
.field em:empty, .tk-f em:empty { display: none; }
.pw { position: relative; display: block; }
.pw input { padding-right: 48px; }
.pw__eye { position: absolute; right: 5px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border: 0; border-radius: 9px; background: transparent; color: rgba(255, 255, 255, .5); cursor: pointer; display: grid; place-items: center; }
.pw__eye:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.pw__eye[aria-pressed="true"] { color: var(--glow); }
.pw__eye svg { width: 19px; height: 19px; }

/* =========================================================================================
   Seatback screen
   ========================================================================================= */
.cabin { display: grid; place-items: center; grid-template-columns: minmax(0, 1fr); justify-items: center; padding-bottom: clamp(20px, 5vh, 56px); padding-inline: 16px;
  background: radial-gradient(60% 50% at 92% 18%, rgba(246, 190, 130, .16), transparent 70%), linear-gradient(180deg, #1e1c25 0%, #17151c 100%); }
.seat {
  position: relative; overflow: hidden; width: min(980px, 100%);
  padding: clamp(22px, 4vw, 46px) clamp(14px, 5vw, 64px) 26px;
  border-radius: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 26px 26px;
  background: linear-gradient(180deg, #36323f 0%, #2a2731 38%, #221f28 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -30px 50px rgba(0, 0, 0, .25), 0 50px 100px rgba(0, 0, 0, .55);
}
.seat::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, transparent 46%, rgba(255, 196, 140, .11) 58%, transparent 72%); }
.seat::after { content: ''; position: absolute; left: 7%; right: 7%; top: 14px; border-top: 1px dashed rgba(255, 255, 255, .08); }
.seat__latch { display: block; width: 64px; height: 10px; margin: 0 auto 18px; border-radius: 6px; background: #47424f; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .06); }
.ife { position: relative; padding: 10px; border-radius: 18px; background: #0a0a0e; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 14px 34px rgba(0, 0, 0, .5); }
.ife__glare { position: absolute; inset: 10px; border-radius: 10px; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .075) 0%, transparent 34%); }
.ife__screen {
  position: relative; overflow: hidden; container-type: inline-size;
  display: grid; grid-template-rows: auto 1fr; min-height: clamp(400px, 52vh, 480px); border-radius: 10px;
  background: radial-gradient(80% 55% at 78% 112%, rgba(243, 180, 104, .34), transparent 62%), linear-gradient(180deg, #0e1727 0%, #17233b 55%, #272842 100%);
}
.ife__status { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.ife__status .mark { width: 20px; height: 20px; }
.ife__brand { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; color: #fff; font: 400 18px/1 var(--font-display); }
.ife__status .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ife__body { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 36px; padding: 26px clamp(18px, 4cqw, 40px); }
.ife__title { margin: 8px 0 6px; font: 400 clamp(36px, 6cqw, 52px)/1 var(--font-display); text-wrap: balance; }
.ife__sub { margin: 0 0 22px; color: rgba(255, 255, 255, .62); font-size: 14px; max-width: 34ch; }
.ife .eyebrow { color: var(--glow); }
.dots { display: flex; gap: 12px; margin-bottom: 12px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); transition: background .15s, border-color .15s, transform .15s; }
.dots i.on { background: var(--glow); border-color: var(--glow); transform: scale(1.08); }
.dots.ok i { background: var(--ok); border-color: var(--ok); }
.dots.bad i { border-color: var(--bad); }
.ife .msg { color: #ffb4a6; }
.ife .msg.is-info { color: var(--ci-fg-2); }
.ife__form { display: grid; gap: 14px; align-self: center; }
.ife__form h1 { margin: 0; font: 400 34px/1 var(--font-display); }
.ife__form .lead { margin: -6px 0 2px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.route { display: grid; gap: 14px; }
.route dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 28px; margin: 0; }
.route dt { font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.route dd { margin: 0; font-weight: 700; font-size: 14px; }
.map { display: block; width: 100%; max-width: 420px; height: auto; }
.map text { font: 500 11px var(--font-mono); letter-spacing: .1em; fill: rgba(255, 255, 255, .7); }
.ife__done { position: absolute; inset: 45px 0 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center;
  background: linear-gradient(180deg, rgba(14, 23, 39, .95), rgba(39, 40, 66, .97)); animation: ci-fade .4s ease both; }
.ife__done-title { margin: 0; font: 400 clamp(32px, 6cqw, 46px)/1 var(--font-display); }
.ife__done p:not(.eyebrow):not(.ife__done-title) { margin: 0; color: rgba(255, 255, 255, .66); font-size: 14px; }
.ife__done .map { width: min(420px, 80cqw); }
@keyframes ci-fade { from { opacity: 0; } }
.seat__ports { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.seat__ports i { display: block; background: #121116; box-shadow: 0 0 0 2px #3a3644, inset 0 1px 2px rgba(0, 0, 0, .8); }
.seat__ports .jack { width: 11px; height: 11px; border-radius: 50%; }
.seat__ports .usb { width: 22px; height: 8px; border-radius: 4px; }
.seat__ports span { font: 500 11px var(--font-mono); letter-spacing: .18em; color: rgba(255, 255, 255, .32); }
@container (max-width: 620px) {
  .ife__body { grid-template-columns: 1fr; gap: 22px; }
  .route { display: none; }
}

/* =========================================================================================
   Boarding pass
   ========================================================================================= */
.sky-desk { --horizon: 74%; --sun-x: 72%; display: grid; place-items: center; grid-template-columns: minmax(0, 1fr); justify-items: center; padding-bottom: clamp(24px, 6vh, 64px); padding-inline: 16px; }
.pass-stack { position: relative; z-index: 1; display: grid; justify-items: center; gap: 16px; width: min(900px, 100%); }
.ci--pass .auth-tabs { width: min(320px, 100%); background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ci--pass .auth-tabs button { color: rgba(255, 255, 255, .85); }
.ci--pass .auth-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.ticket { position: relative; display: grid; grid-template-columns: 1fr 232px; width: 100%; margin: 0; color: var(--ink); filter: drop-shadow(0 30px 50px rgba(30, 24, 48, .35)); }
.ticket__main {
  display: grid; gap: 20px; align-content: start; padding: 24px 30px 26px; min-width: 0; background: var(--paper); border-radius: 22px 0 0 22px;
  -webkit-mask: radial-gradient(circle 14px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 14px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 14px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 14px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket__stub {
  display: flex; flex-direction: column; gap: 16px; padding: 24px 22px 22px; border-left: 2px dashed var(--rule); border-radius: 0 22px 22px 0;
  background: linear-gradient(180deg, #fff8ef, #fdeedd);
  -webkit-mask: radial-gradient(circle 14px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 14px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 14px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 14px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  transition: transform 1s cubic-bezier(.5, 0, .3, 1), opacity .8s ease .25s;
}
.ticket.torn .ticket__stub { transform: translate(60px, 70px) rotate(9deg); opacity: 0; }
.tk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tk-brand { display: inline-flex; align-items: center; gap: 9px; font: 400 26px/1 var(--font-display); }
.tk-brand .mark { color: var(--ink); }
.tk-kind { font: 500 11px/1.4 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
.tk-route { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px; }
.tk-code { font: 400 clamp(46px, 7vw, 68px)/.9 var(--font-display); letter-spacing: .01em; }
.tk-code small { display: block; margin-top: 8px; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tk-code--to { text-align: right; }
.tk-path { position: relative; height: 2px; margin-bottom: 30px; border-top: 2px dashed var(--rule); }
.tk-path svg { position: absolute; left: 50%; top: -13px; width: 26px; height: 26px; margin-left: -13px; padding: 2px; background: var(--paper); fill: var(--ink); }
.tk-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; }
.tk-f { display: grid; gap: 3px; align-content: start; min-width: 0; }
.tk-f > span, .tk-label { margin: 0; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.tk-f b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tk-f--wide { grid-column: span 2; }
.tk-f input { width: 100%; min-width: 0; height: 40px; padding: 0; border: 0; border-radius: 0; border-bottom: 1.5px solid var(--rule); background: transparent; color: var(--ink); font-size: 19px; font-weight: 700; }
.tk-f input::placeholder { color: #b9bfcb; font-weight: 500; }
.tk-f input:focus, .tk-f input:focus-visible { outline: none; box-shadow: none; border-bottom-color: var(--w-orange); }
.tk-f input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--paper) inset; -webkit-text-fill-color: var(--ink); }
.tk-f input[aria-invalid="true"] { border-bottom-color: var(--w-red); }
.tk-f em { color: var(--w-red); }
.tk-f .pw__eye { color: var(--ink-3); }
.tk-f .pw__eye:hover { color: var(--ink); background: var(--tint); }
.tk-f .pw__eye[aria-pressed="true"] { color: var(--w-orange); }
.tk-pin { display: flex; gap: 8px; padding-top: 4px; }
.tk-pin i { display: grid; place-items: center; width: 36px; height: 42px; border-bottom: 2px solid var(--rule); transition: border-color .15s; }
.tk-pin i.cur { border-bottom-color: var(--w-orange); }
.tk-pin i.on::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.tk-pin.ok i { border-bottom-color: #2f8a68; }
.tk-pin.bad i { border-bottom-color: var(--w-red); }
.ticket .msg { color: var(--w-red); }
.ticket .msg.is-info { color: var(--ink-3); }
.tk-stub-f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.barcode { display: flex; align-items: stretch; height: 54px; margin-top: auto; }
.barcode i { display: block; background: var(--ink); }
.ticket .btn-sun { width: 100%; }
.stamp { position: absolute; left: 44%; top: 46%; z-index: 2; padding: 8px 14px; border: 3px solid #c8352b; border-radius: 8px; color: #c8352b;
  font: 700 20px/1.1 var(--font-mono); letter-spacing: .12em; text-align: center; text-transform: uppercase; transform: rotate(-11deg); opacity: 0; pointer-events: none; mix-blend-mode: multiply; }
.stamp small { display: block; font-size: 11px; letter-spacing: .2em; }
.stamp.on { animation: ci-stamp .45s cubic-bezier(.2, 1.5, .4, 1) forwards; }
@keyframes ci-stamp { from { opacity: 0; transform: rotate(-11deg) scale(1.9); } to { opacity: .88; transform: rotate(-11deg) scale(1); } }
.glasspad { width: min(340px, 100%); padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.glasspad .pad button { height: 50px; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); }
.pass-note { margin: 0; max-width: 60ch; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(40, 40, 70, .4); text-align: center; }
@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket__main { border-radius: 22px 22px 0 0; padding: 20px 20px 22px;
    -webkit-mask: radial-gradient(circle 14px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 14px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat; }
  .ticket__stub { border-left: 0; border-top: 2px dashed var(--rule); border-radius: 0 0 22px 22px; padding: 18px 20px;
    -webkit-mask: radial-gradient(circle 14px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 14px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat; }
  .tk-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-pin { gap: 5px; }
  .tk-pin i { width: 28px; }
  .barcode { display: none; }
  .stamp { left: 30%; top: 30%; }
}

/* =========================================================================================
   Departure board
   ========================================================================================= */
.hall { display: grid; place-items: center; grid-template-columns: minmax(0, 1fr); justify-items: center; padding-bottom: clamp(20px, 5vh, 56px); padding-inline: 16px;
  background: radial-gradient(70% 50% at 50% 0%, #25262e 0%, #0e0f13 72%); }
.housing { min-width: 0; width: min(1080px, 100%); padding: clamp(14px, 2.4vw, 26px); border-radius: 18px; background: var(--board); border: 1px solid #26272f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .6); color: var(--flap-ink); }
.bd-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid #25262e; }
.bd-title { display: grid; gap: 8px; }
.bd-sub { font: 500 11px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: rgba(244, 234, 208, .45); }
.bd-clock { display: grid; gap: 8px; justify-items: end; }
.flaps { display: inline-flex; gap: 3px; }
.fl { --w: 22px; --h: 32px; --fs: 18px;
  position: relative; display: inline-grid; place-items: center; width: var(--w); height: var(--h); overflow: hidden; border-radius: 4px;
  background: linear-gradient(180deg, var(--flap) 0 50%, var(--flap-2) 50% 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .04);
  font: 700 var(--fs)/1 var(--font-mono); color: var(--fl-c, var(--flap-ink)); }
.fl::after { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - .5px); height: 1px; background: rgba(0, 0, 0, .7); }
.fl b { font-weight: inherit; }
.fl.tick b { animation: ci-roll .06s linear; }
@keyframes ci-roll { from { transform: translateY(-40%) scaleY(.5); opacity: .4; } }
.flaps--xl .fl { --w: clamp(30px, 5.4vw, 52px); --h: clamp(42px, 7.4vw, 72px); --fs: clamp(24px, 4.4vw, 44px); }
.flaps--lg .fl { --w: clamp(26px, 4.4vw, 42px); --h: clamp(36px, 6vw, 56px); --fs: clamp(20px, 3.4vw, 32px); }
.flaps--md .fl { --w: 26px; --h: 38px; --fs: 21px; }
.bd-table { overflow-x: auto; padding: 14px 0 6px; }
.bd-grid { display: grid; grid-template-columns: repeat(5, max-content); gap: 8px 18px; min-width: max-content; }
.bd-grid .th { font: 500 10.5px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(244, 234, 208, .4); padding-bottom: 2px; }
.amber { --fl-c: var(--amber); }
.green { --fl-c: var(--ok); }
.red { --fl-c: var(--bad); }
.kiosk { display: grid; grid-template-columns: 1fr minmax(260px, 360px); gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: 10px; padding-top: 22px; border-top: 1px solid #25262e; }
.kiosk h1 { margin: 6px 0 14px; font: 400 clamp(32px, 4vw, 44px)/1 var(--font-display); color: #fff; }
.kiosk .lead { margin: -4px 0 16px; font-size: 14px; color: rgba(244, 234, 208, .55); }
.kiosk .eyebrow { color: var(--amber); }
.kiosk .msg { margin-top: 12px; }
.kiosk .pad button { height: 52px; border-radius: 10px; background: #202128; border-color: #2c2d36; font-family: var(--font-mono); color: var(--flap-ink); }
.kiosk .pad button:hover { background: #292a33; }
.kiosk .pad .fn { font-family: var(--font-ui); background: transparent; }
.kiosk .auth-tabs { margin-bottom: 14px; }
.kiosk .field input { font-family: var(--font-mono); background: #1d1e25; border-color: #2c2d36; color: var(--flap-ink); }
.kiosk #auth-form .msg { margin-top: 0; }
@media (max-width: 760px) {
  .kiosk { grid-template-columns: 1fr; }
  .bd-clock { display: none; }
  /* the board scrolls sideways on phones; fade the right edge so it reads as "more this way" */
  .bd-table { -webkit-mask: linear-gradient(90deg, #000 82%, transparent); mask: linear-gradient(90deg, #000 82%, transparent); }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .nav-label { display: none; }
  .ci-top .btn--sm { width: 32px; padding: 0; }
  .ci-style__menu { right: -40px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticket__stub { transition: none; }
}
