/* ==========================================================
   CABIN — the new rooms in her world:
   stars, seatbelt sign, departures board, seatback screen,
   gate stickers, boarding-pass route.
   ========================================================== */

/* stars above the clouds */
.bg-stars { position: absolute; inset: 0 0 45% 0; background-image:
  radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 246, 224, .8), transparent 60%),
  radial-gradient(1px 1px at 28% 8%, rgba(255, 246, 224, .6), transparent 60%),
  radial-gradient(1.4px 1.4px at 46% 22%, rgba(255, 246, 224, .7), transparent 60%),
  radial-gradient(1px 1px at 63% 12%, rgba(255, 246, 224, .5), transparent 60%),
  radial-gradient(1.3px 1.3px at 78% 26%, rgba(255, 246, 224, .75), transparent 60%),
  radial-gradient(1px 1px at 91% 9%, rgba(255, 246, 224, .55), transparent 60%),
  radial-gradient(1.1px 1.1px at 6% 38%, rgba(255, 246, 224, .5), transparent 60%),
  radial-gradient(1px 1px at 55% 40%, rgba(255, 246, 224, .4), transparent 60%);
  animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .45; } }
.jet.small path { fill: rgba(255, 228, 190, .7); filter: none; }

/* ---------- seatbelt sign in the nav ---------- */
.seatbelt { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #15171d; border: 1px solid #2a2d36; cursor: pointer; margin-right: 4px; }
.seatbelt svg { width: 22px; height: 22px; fill: #5a5547; stroke: #5a5547; transition: fill .2s; }
.seatbelt.lit svg { animation: beltLit 2.4s ease-out; }
.seatbelt.lit { animation: beltBox 2.4s ease-out; }
@keyframes beltLit { 0%, 70% { fill: #ffd27a; stroke: #ffd27a; filter: drop-shadow(0 0 6px #f2b134); } 100% { fill: #5a5547; stroke: #5a5547; } }
@keyframes beltBox { 0%, 70% { box-shadow: 0 0 18px -2px rgba(242, 177, 52, .7); border-color: #f2b134; } }

/* ---------- hero: first word is a sigh ---------- */
.mega-copy .live-pill { flex-wrap: wrap; row-gap: 2px; }

/* ---------- marquee stickers ---------- */
.r1 .slogan-track img { height: 1.05em; width: auto; transform: rotate(-6deg); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.r1 .slogan-track img:nth-of-type(even) { transform: rotate(5deg); }

/* ---------- departures board ---------- */
.board-sec { padding: 20px 20px 80px; }
.board-sec .sec-head, .ife-sec .sec-head { max-width: 1240px; margin-left: auto; margin-right: auto; }
.fids { max-width: 1240px; margin: 28px auto 0; background: linear-gradient(180deg, #111216, #08090c); border-radius: 22px; padding: 22px 26px 18px; border: 1px solid #23252d; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06); font-family: var(--mono); }
.fids-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid #22242b; }
.fids-title { display: inline-flex; align-items: center; gap: 12px; color: #ffd27a; font: 800 18px var(--display); letter-spacing: .22em; text-transform: uppercase; }
.fids-title svg { width: 26px; height: 26px; fill: #f2b134; }
.fids-clock { font: 700 26px var(--mono); color: #f4ecd9; background: #000; padding: 4px 12px; border-radius: 6px; letter-spacing: .08em; }
.colon-off { opacity: .92; }
.fids-head, .fids-row { display: grid; grid-template-columns: 82px 96px minmax(0, 1.5fr) 64px minmax(0, 1.5fr); gap: 14px; align-items: center; }
.fids-head { padding: 14px 0 8px; color: #7d7868; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.fids-row { padding: 9px 0; border-top: 1px solid #191b21; font-size: 17px; color: #f4ecd9; }
.f-time { color: #ffd27a; font-weight: 700; }
.f-fl { color: #c9c2b0; font-weight: 600; letter-spacing: .04em; }
.f-gate { text-align: center; font-weight: 700; }
.flap { display: flex; gap: 2px; overflow: hidden; }
.flap i { font-style: normal; display: inline-grid; place-items: center; width: 1.05em; height: 1.5em; flex: 0 0 auto; border-radius: 3px; font-weight: 700; background: linear-gradient(#1c1e25 0 49%, #050506 49% 51%, #16181e 51%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); color: inherit; }
.flap i.flip { animation: flapDown .1s linear; }
@keyframes flapDown { 0% { transform: scaleY(1); } 50% { transform: scaleY(.15); } 100% { transform: scaleY(1); } }
.f-st.st-boarding { color: #7ef2ad; }
.f-st.st-cancelled { color: #ff6b6b; }
.f-st.st-ontime { color: #f2b134; }
.f-st.st-final { color: #ffd27a; }
.f-st.st-delayed { color: #ff8a4c; }
.fids-row:first-child { background: linear-gradient(90deg, rgba(126, 242, 173, .07), transparent 60%); }
.fids-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid #22242b; color: #7d7868; font: 500 12px var(--mono); letter-spacing: .06em; }

/* ---------- boarding pass route ---------- */
.pass-route { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font: 800 30px var(--mono); color: var(--paper-ink); letter-spacing: .04em; }
.pass-line { flex: 1; max-width: 220px; height: 2px; position: relative; background: repeating-linear-gradient(90deg, rgba(27, 26, 34, .45) 0 6px, transparent 6px 12px); }
.pass-line i { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin-top: -11px; background: var(--teal-d); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 12L12 10.6 7.5 2H5.6l2.2 8.3H3.9L2.4 8H1l.9 4-.9 4h1.4l1.5-2.3h3.9L5.6 22h1.9l4.5-8.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 12L12 10.6 7.5 2H5.6l2.2 8.3H3.9L2.4 8H1l.9 4-.9 4h1.4l1.5-2.3h3.9L5.6 22h1.9l4.5-8.6z'/%3E%3C/svg%3E") center / contain no-repeat; animation: passFly 4s ease-in-out infinite; }
@keyframes passFly { 0% { left: 0; } 80%, 100% { left: calc(100% - 22px); } }

/* ---------- seatback screen ---------- */
.ife-sec { padding: 30px 20px 80px; }
.ife { max-width: 1240px; margin: 28px auto 0; padding: 16px; border-radius: 30px; background: linear-gradient(160deg, #23262e, #0d0f13 60%); box-shadow: 0 60px 100px -50px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px #2c2f38; }
.ife-screen { position: relative; overflow: hidden; border-radius: 18px; background: radial-gradient(120% 90% at 80% 0%, #1a2440, #0a1020 55%, #070b14); border: 1px solid #000; }
.ife-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .07) 0 18%, transparent 30%); }
.ife-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 22px; background: rgba(0, 0, 0, .35); border-bottom: 1px solid rgba(255, 228, 190, .08); font: 600 13px var(--mono); color: #c9c2b0; }
.ife-logo { font: 900 15px var(--display); letter-spacing: .16em; color: var(--frost); }
.ife-logo b { color: var(--scarf); margin-left: 4px; }
.ife-status { display: inline-flex; align-items: center; gap: 8px; color: #ffd27a; }
.ife-status .sb-on { width: 9px; height: 9px; border-radius: 50%; background: #f2b134; box-shadow: 0 0 10px #f2b134; animation: navBlink 2s steps(1) infinite; }
.ife-time { font-size: 16px; color: var(--frost); }
.ife-body { display: grid; grid-template-columns: 1.45fr 1fr; min-height: 380px; }
.ife-map { position: relative; border-right: 1px solid rgba(255, 228, 190, .08); }
.ife-map svg { display: block; width: 100%; height: 100%; }
.ife-stars circle { fill: rgba(255, 246, 224, .7); }
.ife-lbl { font: 700 13px var(--mono); fill: #ffd27a; letter-spacing: .14em; }
#ifePlane { filter: drop-shadow(0 0 6px rgba(255, 210, 122, .9)); }
.ife-panel { padding: 22px 24px; position: relative; }
.ife-tab-body { display: none; animation: ifeIn .35s ease; }
.ife-tab-body.on { display: block; }
@keyframes ifeIn { from { opacity: 0; transform: translateY(6px); } }
.ife-panel h4 { font: 800 18px var(--display); color: var(--ink); letter-spacing: -.01em; margin-bottom: 14px; }
.ife-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 228, 190, .08); }
.ife-stats dt { font: 500 12px var(--mono); color: #8f8a7c; letter-spacing: .06em; text-transform: uppercase; }
.ife-stats dd { font: 700 16px var(--mono); color: var(--frost); text-align: right; }
.ife-stats dd small { display: block; font: 600 16px var(--hand); color: var(--scarf); }
.batt { display: inline-flex; align-items: center; gap: 8px; color: #ff6b6b !important; }
.batt i { width: 34px; height: 14px; border: 2px solid currentColor; border-radius: 3px; position: relative; background: linear-gradient(90deg, currentColor var(--b), transparent var(--b)); animation: navBlink 1.6s steps(1) infinite; }
.ife-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid rgba(255, 228, 190, .08); }
.ife-list b { color: var(--ink); font: 700 15px var(--sans); }
.ife-list span { color: #8f8a7c; font: 500 12px var(--mono); }
.ife-call { display: flex; gap: 16px; align-items: center; }
.ife-call img { width: 120px; height: auto; flex-shrink: 0; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); animation: callPop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes callPop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
.ife-call p { color: var(--dim); font-size: 15px; line-height: 1.5; }
.ife-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 228, 190, .08); background: rgba(0, 0, 0, .3); }
.ife-tabs button { padding: 16px 10px; font: 700 13px var(--sans); color: #a8a291; border-right: 1px solid rgba(255, 228, 190, .06); letter-spacing: .02em; transition: background .2s, color .2s; }
.ife-tabs button:last-child { border-right: 0; }
.ife-tabs button:hover { background: rgba(255, 228, 190, .05); color: var(--ink); }
.ife-tabs button.on { color: var(--paper-ink); background: var(--scarf); }
.ife-tabs button.call.on { background: #ff6b6b; color: #fff; }

/* ---------- gate stickers on the terminal map ---------- */
.hub-card { overflow: hidden; }
.hub-st { position: absolute; right: -8px; bottom: -34px; width: 96px; height: auto; transform: rotate(8deg) translateY(18px); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1); pointer-events: none; z-index: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.hub-card:hover .hub-st { transform: rotate(-4deg) translateY(-14px); }
.hub-card h3, .hub-card p, .hub-go, .hub-n { position: relative; z-index: 2; }

@media (max-width: 900px) {
  .ife-body { grid-template-columns: 1fr; }
  .ife-map { border-right: 0; border-bottom: 1px solid rgba(255, 228, 190, .08); height: 240px; }
  .fids-head, .fids-row { grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .fids-head span:nth-child(2), .fids-head span:nth-child(4), .f-fl, .f-gate { display: none; }
  .fids-row { font-size: 13px; }
  .flap i { width: .95em; }
}
@media (max-width: 640px) {
  .seatbelt { display: none; }
  .fids { padding: 16px 12px; border-radius: 16px; }
  .fids-title { font-size: 13px; letter-spacing: .14em; }
  .fids-clock { font-size: 18px; }
  .ife { padding: 8px; border-radius: 20px; }
  .ife-bar { padding: 10px 12px; font-size: 11px; }
  .ife-status { display: none; }
  .ife-tabs button { padding: 13px 4px; font-size: 11.5px; }
  .ife-call img { width: 84px; }
  .pass-route { font-size: 22px; }
}

/* ---------- fixes after the first look ---------- */
.r1 .slogan-track img { height: clamp(58px, 7vw, 112px) !important; width: auto !important; margin: 0 18px; }
.f-st[class*="st-"] { background: none !important; text-decoration: none !important; animation: none !important; padding: 0 !important; }
.f-st.st-final { color: #ffd27a !important; }
.f-st.st-final i, .f-st.st-boarding i { animation: navBlink 1.4s steps(1) infinite; }
.hub-card.buy .hub-go { color: var(--scarf) !important; }
.note-badge { top: 2% !important; right: -46px !important; --r: 8deg; }
@media (max-width: 900px) { .note-badge { right: 0 !important; top: -2% !important; } }
@keyframes softBlink { 50% { opacity: .38; } }
.f-st.st-final i, .f-st.st-boarding i { animation: softBlink 1.6s steps(1) infinite !important; }
@media (max-width: 640px) {
  .fids-row { font-size: 11px; }
  .flap { gap: 1px; }
  .flap i { width: .92em; height: 1.6em; }
}
.ticker .st-final, .ticker .st-boarding { animation: softBlink 1.6s steps(1) infinite !important; }
@media (max-width: 640px) { .flap { gap: 0; } .flap i { width: .8em; } .fids-head, .fids-row { grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } }
