/* Flight share links: the member's invite button and check-in sheet (airshow_share_flight.js), and watch
   mode for guests (airshow_watch_tour.js, only when html.airshow-watch is set).
   Motifs come from the cabin, not from dashboards: a paper guest pass that tears at boarding, a backlit
   cabin sign, a PA line above the IFE bar, cabin lights that dim when the viewer is away, an arrival screen. */
@font-face { font-family: "Aeroshow Display"; src: url("/fonts/josefin-sans-latin.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Aeroshow Pass"; src: url("/fonts/ocr-b-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --aw-vw: 100vw;
  --aw-vh: 100dvh;
  --aw-paper: #f3efe6;
  --aw-paper-shade: #e6e0d2;
  --aw-ink: #1c1f29;
  --aw-ink-soft: rgba(28, 31, 41, 0.62);
  --aw-navy: #18237a;
  --aw-band: #d7eaf5;
  --aw-live: #e5483b;
  --aw-lamp: #ffe7c7;
  --aw-sky: #9fdfff;
  --aw-night: #030509;
  --aw-display: "Aeroshow Display", "Josefin Sans", "Century Gothic", sans-serif;
  --aw-pass: "Aeroshow Pass", "OCR-B", "Consolas", monospace;
  --aw-body: "Pretendard", "Segoe UI", system-ui, sans-serif;
}
html.airshow-watch.airshow-force-landscape {
  --aw-vw: var(--airshow-orientation-vw);
  --aw-vh: var(--airshow-orientation-vh);
}
html.airshow-watch #airshow-navigate-intro-start { visibility: hidden; }

/* ---- Guest pass ------------------------------------------------------------------------------ */
/* Above the app's boarding intro (z-index 4000), which makes every lower layer inert while it is open. */
.aw-pass-overlay {
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(120% 70% at 50% 120%, rgba(30, 60, 120, 0.35), transparent 60%), rgba(3, 5, 9, 0.38);
  transition: background-color 240ms ease, opacity 240ms ease;
}
.aw-pass-overlay.is-gone { opacity: 0; pointer-events: none; }
.aw-pass {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  width: min(720px, calc(100vw - 32px));
  color: var(--aw-ink);
  font-family: var(--aw-pass);
  text-transform: uppercase;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.55));
  animation: aw-pass-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes aw-pass-in { from { opacity: 0; transform: translateY(18px) rotate(-1.2deg); } to { opacity: 1; transform: none; } }
.aw-pass-main,
.aw-pass-stub {
  position: relative;
  background: linear-gradient(180deg, var(--aw-paper), var(--aw-paper) 70%, var(--aw-paper-shade));
}
.aw-pass-main { border-radius: 16px 0 0 16px; overflow: hidden; }
.aw-pass-stub {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 18px;
  border-radius: 0 16px 16px 0;
  /* Perforation: a row of punched holes plus the two half-moon notches. */
  background-image:
    radial-gradient(circle at 0 6px, transparent 2.6px, transparent 2.7px),
    linear-gradient(180deg, var(--aw-paper), var(--aw-paper) 70%, var(--aw-paper-shade));
  -webkit-mask: radial-gradient(circle at 0 0, transparent 11px, #000 11.5px) top left / 100% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent 11px, #000 11.5px) bottom left / 100% 51% no-repeat;
  mask: radial-gradient(circle at 0 0, transparent 11px, #000 11.5px) top left / 100% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent 11px, #000 11.5px) bottom left / 100% 51% no-repeat;
}
.aw-pass-stub::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 2px;
  background: repeating-linear-gradient(180deg, rgba(28, 31, 41, 0.28) 0 5px, transparent 5px 10px);
}
.aw-pass-main {
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 11px, #000 11.5px) top right / 100% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 11px, #000 11.5px) bottom right / 100% 51% no-repeat;
  mask: radial-gradient(circle at 100% 0, transparent 11px, #000 11.5px) top right / 100% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 11px, #000 11.5px) bottom right / 100% 51% no-repeat;
}
.aw-pass-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  background: var(--aw-band);
  color: var(--aw-navy);
  font: 700 15px/1 var(--aw-display);
  letter-spacing: 0.08em;
}
.aw-pass-brand { display: inline-flex; align-items: center; gap: 10px; }
.aw-pass-brand svg { width: 34px; height: 14px; }
.aw-pass-class { font: 400 19px/1 var(--aw-pass); letter-spacing: 0.1em; color: var(--aw-ink); }
.aw-pass-stub .aw-pass-band { margin: 0 -18px; padding-left: 26px; justify-content: flex-start; font-size: 12px; letter-spacing: 0.16em; white-space: nowrap; }
.aw-pass-body { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 20px; padding: 18px 22px 10px; }
.aw-pass-barcode { width: 34px; height: 100%; min-height: 150px; color: var(--aw-ink); }
.aw-pass-barcode svg { display: block; width: 100%; height: 100%; }
.aw-pass-invite { display: flex; align-items: baseline; gap: 12px; margin: 0; font-size: 13px; letter-spacing: 0.08em; }
.aw-pass-invite span { font-size: 10px; letter-spacing: 0.12em; color: var(--aw-ink-soft); }
.aw-pass-invite b { font-weight: 400; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-pass-route { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 16px; margin: 12px 0 14px; }
.aw-pass-code { display: block; font-size: 46px; line-height: 1; letter-spacing: 0.04em; }
.aw-pass-city { display: block; margin-top: 6px; font: 600 12px/1.2 var(--aw-body); text-transform: none; color: var(--aw-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.aw-pass-route > :last-child { text-align: right; }
.aw-pass-route > :last-child .aw-pass-city { margin-left: auto; }
.aw-pass-path { position: relative; height: 18px; }
.aw-pass-path::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dotted rgba(28, 31, 41, 0.35); }
.aw-pass-path i { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; width: 0; background: var(--aw-navy); transition: width 600ms ease; }
.aw-pass-path svg { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; color: var(--aw-navy); transition: left 600ms ease; }
.aw-pass-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.aw-pass-grid dt { font-size: 10px; letter-spacing: 0.1em; color: var(--aw-ink-soft); }
.aw-pass-grid dd { margin: 4px 0 0; font-size: 19px; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-pass-grid dd small { display: block; margin-top: 2px; font-size: 10px; color: var(--aw-ink-soft); }
.aw-pass-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 22px 14px; font-size: 11px; letter-spacing: 0.06em; color: var(--aw-ink-soft); }
.aw-pass-seat { display: grid; place-items: center; gap: 4px; margin-top: 4px; padding: 10px 6px; border: 2px solid var(--aw-ink); border-radius: 999px; }
.aw-pass-seat small { font-size: 10px; letter-spacing: 0.12em; }
.aw-pass-seat b { font-weight: 400; font-size: 22px; letter-spacing: 0.06em; }
.aw-pass-board {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--aw-navy);
  color: #fff;
  padding: 0 10px;
  font: 400 16px/1 var(--aw-pass);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease;
}
.aw-pass-board:hover { background: #222f95; }
.aw-pass-board:active { transform: translateY(1px); }
.aw-pass-board:focus-visible { outline: 3px solid var(--aw-sky); outline-offset: 3px; }
.aw-pass-board[aria-busy="true"] { opacity: 0.55; cursor: progress; }
.aw-pass-status { min-height: 1.2em; font-size: 11px; letter-spacing: 0.14em; text-align: center; color: var(--aw-ink-soft); }
/* Class of the inviting member, in the colours of the member boarding passes (images/boarding/Y.webp, F.webp).
   Economy: green band, seat 58K. First: blue-violet band, seat 01A, priority, lounge line and a soft violet
   glow. Free: grey standby pass, seat SBY, and a STANDBY stamp that lands once the pass is filled in. */
.aw-pass .aw-pass-band { transition: background-color 240ms ease; }
.aw-pass[data-cabin="economy"] { --aw-band: #d9f4cd; }
.aw-pass[data-cabin="free"] { --aw-band: #dddee2; }
.aw-pass[data-cabin="first"] .aw-pass-main .aw-pass-band { background: linear-gradient(90deg, #96b8ff, #cf9eff); }
.aw-pass[data-cabin="first"] .aw-pass-stub .aw-pass-band { background: linear-gradient(90deg, #d39bff, #e595ff); }
.aw-pass-priority { margin-top: -4px; font: 700 11px/1 var(--aw-display); letter-spacing: 0.22em; text-align: center; color: var(--aw-navy); }
.aw-pass-perk { margin: 12px 0 0; font: 700 11px/1 var(--aw-display); letter-spacing: 0.18em; text-align: right; color: var(--aw-navy); }
.aw-pass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(214, 178, 255, 0.45), 0 0 26px 4px rgba(194, 166, 247, 0.6), 0 0 80px 22px rgba(170, 140, 240, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.aw-pass[data-cabin="first"]::before { opacity: 1; animation: aw-first-aura 2.9s ease-in-out infinite; }
.aw-pass.is-torn::before { opacity: 0; animation: none; }
@keyframes aw-first-aura { 50% { opacity: 0.55; } }
.aw-pass-stamp {
  position: absolute;
  right: 22px;
  bottom: 30px;
  padding: 7px 14px;
  border: 4px double rgba(176, 46, 38, 0.82);
  border-radius: 8px;
  color: rgba(176, 46, 38, 0.82);
  font: 400 24px/1 var(--aw-pass);
  letter-spacing: 0.2em;
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
  pointer-events: none;
  /* Uneven ink, as a rubber stamp leaves it. */
  -webkit-mask: repeating-linear-gradient(115deg, #000 0 7px, rgba(0, 0, 0, 0.72) 7px 9px, #000 9px 15px);
  mask: repeating-linear-gradient(115deg, #000 0 7px, rgba(0, 0, 0, 0.72) 7px 9px, #000 9px 15px);
  animation: aw-stamp 260ms cubic-bezier(0.2, 0.8, 0.2, 1) 360ms both;
}
@keyframes aw-stamp {
  from { opacity: 0; transform: rotate(-9deg) scale(1.7); }
  70% { opacity: 1; transform: rotate(-9deg) scale(0.95); }
  to { opacity: 1; transform: rotate(-9deg) scale(1); }
}
/* Boarding: the main part drops away, the stub turns into the cabin sign. */
.aw-pass.is-torn .aw-pass-main { animation: aw-tear 300ms cubic-bezier(0.5, 0, 0.75, 0) forwards; }
.aw-pass.is-torn .aw-pass-stub { animation: aw-stub 300ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes aw-tear { to { opacity: 0; transform: translate(-18px, 70px) rotate(-5deg); } }
@keyframes aw-stub { 40% { transform: rotate(3deg) translateY(-4px); } to { opacity: 0; transform: translateY(-38vh) scale(0.35) rotate(0deg); } }

/* ---- Cabin sign (live indicator) ------------------------------------------------------------- */
/* An oval sign whose ends keep the curve of a short sign however long the callsign gets, so the lamp and
   the last letters never sit in a tapering tip; past the width limit the callsign ends in an ellipsis. */
.aw-sign {
  position: fixed;
  top: calc(var(--aw-top, 46px) + 10px);
  left: var(--aw-sign-x, 50%);
  z-index: 2410;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(calc(var(--aw-vw) - 140px), var(--aw-sign-max, 100vw));
  padding: 9px 28px 9px 22px;
  border-radius: min(50%, 160px) / 50%;
  background: radial-gradient(120% 140% at 50% 20%, #6c7074 0%, #4b4f53 52%, #36393c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -3px 8px rgba(0, 0, 0, 0.45), 0 8px 22px rgba(0, 0, 0, 0.45);
  color: var(--aw-lamp);
  font: 700 14px/1 var(--aw-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(255, 196, 128, 0.75);
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}
.aw-sign.is-on { animation: aw-sign-on 420ms steps(1, end) both; }
@keyframes aw-sign-on { 0% { filter: brightness(0.35); } 30% { filter: brightness(1.15); } 45% { filter: brightness(0.5); } 60%, 100% { filter: none; } }
.aw-sign-live { color: #ffb3a8; text-shadow: 0 0 8px rgba(255, 90, 70, 0.95); }
.aw-sign-lamp { width: 9px; height: 9px; border-radius: 50%; background: var(--aw-live); box-shadow: 0 0 8px 2px rgba(255, 80, 60, 0.75); }
.aw-sign-text { overflow: hidden; text-overflow: ellipsis; }
.aw-sign[data-state="waiting"] { color: #ffd38a; }
.aw-sign[data-state="waiting"] .aw-sign-lamp { background: #ffb547; animation: aw-blink 1.6s ease-in-out infinite; }
@keyframes aw-blink { 50% { opacity: 0.25; } }
/* Tap on the locked screen: a ring where the finger landed, and the sign chimes once. */
.aw-tap {
  position: fixed;
  z-index: 2405;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 231, 199, 0.9);
  border-radius: 50%;
  pointer-events: none;
  animation: aw-tap 620ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes aw-tap { to { opacity: 0; transform: scale(4.2); border-width: 1px; } }
.aw-sign.is-ding { animation: aw-ding 520ms ease-out; }
@keyframes aw-ding {
  0% { filter: none; }
  18% { filter: brightness(1.7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 0 3px rgba(255, 196, 128, 0.35), 0 8px 22px rgba(0, 0, 0, 0.45); }
  100% { filter: none; }
}

/* ---- PA line above the IFE bar --------------------------------------------------------------- */
/* Centred on the IFE bar so the map credits (left) and zoom buttons (right) stay visible. */
.aw-pa {
  position: fixed;
  left: 50%;
  bottom: var(--aw-ife-h, 64px);
  z-index: 2410;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(620px, calc(var(--aw-vw) - 460px));
  padding: 8px 8px 8px 10px;
  border-radius: 12px 12px 0 0;
  background: var(--aw-navy);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.3);
  color: #eef1ff;
  font: 500 13px/1.3 var(--aw-body);
}
.aw-pa-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 4px; font: 400 11px/1 var(--aw-pass); letter-spacing: 0.08em; }
.aw-pa-tag svg { width: 12px; height: 12px; }
.aw-pa p { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-pa-btn {
  flex: none;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: 600 13px/1 var(--aw-body);
  cursor: pointer;
}
.aw-pa-btn:hover, .aw-pa-btn:focus-visible { background: rgba(255, 255, 255, 0.12); outline: none; }

/* ---- Small paper cards: "your flight here", arrival ------------------------------------------ */
.aw-card-overlay {
  position: fixed;
  inset: 0;
  z-index: 2620;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(3, 5, 9, 0.55);
}
.aw-card-overlay.open { display: grid; }
.aw-card {
  width: min(440px, calc(var(--aw-vw) - 32px));
  border-radius: 14px;
  overflow: hidden;
  background: var(--aw-paper);
  color: var(--aw-ink);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  animation: aw-pass-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.aw-card .aw-pass-band { font-size: 13px; text-transform: uppercase; }
.aw-card .aw-pass-class { font-size: 16px; }
.aw-card-body { padding: 18px 22px 20px; }
.aw-card h2 { margin: 0 0 14px; font: 400 24px/1.15 var(--aw-pass); letter-spacing: 0.04em; text-transform: uppercase; }
.aw-card-fields { display: grid; gap: 8px; margin: 0 0 18px; padding: 12px 0; border-top: 1px dashed rgba(28, 31, 41, 0.25); border-bottom: 1px dashed rgba(28, 31, 41, 0.25); font-family: var(--aw-pass); text-transform: uppercase; }
.aw-card-fields div { display: flex; justify-content: space-between; gap: 12px; }
.aw-card-fields dt { font-size: 11px; letter-spacing: 0.12em; color: var(--aw-ink-soft); }
.aw-card-fields dd { margin: 0; font-size: 13px; letter-spacing: 0.02em; text-align: right; white-space: nowrap; }
.aw-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.aw-card-actions .aw-pass-board { padding: 0 18px; font-size: 14px; }
.aw-link { border: 0; background: none; color: var(--aw-navy); font: 400 13px/1 var(--aw-pass); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---- Cabin lights dimmed (15 minutes without a tap) ------------------------------------------ */
.aw-dim {
  position: fixed;
  inset: 0;
  z-index: 2590;
  display: grid;
  place-items: center;
  background: radial-gradient(34% 30% at 50% 50%, rgba(3, 5, 9, 0.94), rgba(3, 5, 9, 0.8) 70%, rgba(3, 5, 9, 0.86));
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}
.aw-dim.is-on { opacity: 1; pointer-events: auto; cursor: pointer; }
.aw-dim-inner { display: grid; justify-items: center; gap: 10px; max-width: 360px; padding: 16px; text-align: center; color: #e9e6df; }
.aw-dim-inner img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 26px rgba(255, 196, 128, 0.35); animation: aw-breathe 3.2s ease-in-out infinite; }
@keyframes aw-breathe { 50% { box-shadow: 0 0 6px rgba(255, 196, 128, 0.1); } }
.aw-dim-title { font: 700 13px/1 var(--aw-display); letter-spacing: 0.28em; text-transform: uppercase; color: var(--aw-lamp); }
.aw-dim-cue { font: 400 12px/1 var(--aw-pass); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(233, 230, 223, 0.62); }

/* ---- Arrival / link ended ------------------------------------------------------------------- */
.aw-arrival {
  position: fixed;
  inset: 0;
  z-index: 4300;
  display: none;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(140% 80% at 50% 115%, #0f2346 0%, #060a16 45%, var(--aw-night) 75%);
  color: #f6f2ea;
  text-align: center;
}
.aw-arrival.open { display: grid; animation: aw-fade 400ms ease both; }
@keyframes aw-fade { from { opacity: 0; } }
.aw-arrival-over { margin: 0 0 18px; font: 600 12px/1 var(--aw-display); letter-spacing: 0.32em; text-transform: uppercase; color: var(--aw-sky); }
.aw-arrival h2 { max-width: 16ch; margin: 0 auto; font: 300 clamp(28px, 4.6vw, 64px)/1.12 var(--aw-display); letter-spacing: 0.12em; text-transform: uppercase; text-wrap: balance; }
.aw-arrival-rule { width: min(420px, 70%); height: 1px; margin: 22px auto; background: linear-gradient(90deg, transparent, rgba(255, 214, 153, 0.7), transparent); }
.aw-arrival-sub { margin: 0 auto 28px; max-width: 560px; font: 400 15px/1.5 var(--aw-pass); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246, 242, 234, 0.7); }
.aw-arrival-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.aw-arrival .aw-pass-board { padding: 0 20px; background: #f6f2ea; color: var(--aw-navy); letter-spacing: 0.06em; }
.aw-arrival .aw-link { color: var(--aw-sky); }

/* The shared flight plays on its own: this layer takes taps, drags, wheel and pinch. */
.aw-shield { position: fixed; inset: 0; z-index: 2400; touch-action: none; -webkit-tap-highlight-color: transparent; }

/* ---- Narrow and short screens ---------------------------------------------------------------- */
/* Large screens: the pass and sign scale up so they read from a sofa, like a real seatback screen. */
@media (min-width: 1600px) and (min-height: 900px) {
  .aw-pass { zoom: 1.28; }
  .aw-sign { font-size: 16px; padding: 11px 32px 11px 26px; border-radius: min(50%, 200px) / 50%; }
  .aw-pa { font-size: 15px; }
  .aw-card, .aw-share { zoom: 1.15; }
}
@media (max-width: 620px) {
  .aw-pass { grid-template-columns: 1fr; width: min(400px, calc(100vw - 24px)); }
  .aw-pass-main { border-radius: 16px 16px 0 0; -webkit-mask: none; mask: none; }
  .aw-pass-stub { flex-direction: row; flex-wrap: wrap; align-items: center; border-radius: 0 0 16px 16px; padding: 0 16px 16px; -webkit-mask: none; mask: none; overflow: hidden; }
  .aw-pass-stub::before { top: 0; left: 14px; right: 14px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, rgba(28, 31, 41, 0.28) 0 5px, transparent 5px 10px); }
  .aw-pass-stub .aw-pass-band { flex: 0 0 calc(100% + 32px); margin: 0 -16px; }
  .aw-pass-foot [data-w="server"] { display: none; }
  .aw-pass-seat { flex: none; padding: 6px 14px; }
  .aw-pass-board { flex: 1; }
  .aw-pass-status { flex: 1 0 100%; min-height: 0; order: 2; }
  .aw-pass-priority { flex: 1 0 100%; order: 1; margin: 0; }
  .aw-pass-stamp { right: 14px; bottom: 34px; font-size: 19px; }
  .aw-pass-body { grid-template-columns: 1fr; padding: 14px 16px 6px; }
  .aw-pass-barcode { display: none; }
  .aw-pass-code { font-size: 36px; }
  .aw-pass-foot { padding: 8px 16px 12px; }
}
@media (max-height: 500px) {
  .aw-pass { width: min(640px, calc(100vw - 24px)); grid-template-columns: minmax(0, 1fr) 150px; }
  .aw-pass-band { padding: 8px 16px; font-size: 12px; }
  .aw-pass-class { font-size: 14px; }
  .aw-pass-body { padding: 10px 16px 4px; gap: 14px; }
  .aw-pass-barcode { min-height: 110px; }
  .aw-pass-route { margin: 6px 0 8px; }
  .aw-pass-code { font-size: 34px; }
  .aw-pass-grid dd { font-size: 15px; }
  .aw-pass-foot { padding: 6px 16px 10px; }
  .aw-pass-stub { padding: 0 14px 12px; }
  .aw-pass-stub .aw-pass-band { margin: 0 -14px; padding-left: 20px; font-size: 10px; letter-spacing: 0.1em; }
  .aw-pass-seat { padding: 6px 4px; }
  .aw-pass-seat b { font-size: 16px; }
  .aw-pass-priority { margin-top: -6px; font-size: 9px; }
  .aw-pass-perk { margin-top: 6px; font-size: 9px; }
  .aw-pass-stamp { right: 16px; bottom: 22px; padding: 5px 10px; font-size: 17px; }
  .aw-pass-board { min-height: 38px; font-size: 13px; }
  .aw-sign { top: calc(var(--aw-top, 34px) + 6px); padding: 5px 16px 5px 13px; font-size: 11px; gap: 9px; border-radius: min(50%, 55px) / 50%; }
  .aw-pa { max-width: calc(var(--aw-vw) - 300px); padding: 5px 5px 5px 8px; gap: 8px; font-size: 12px; }
  .aw-pa-long { display: none; }
  .aw-pa-btn { min-height: 26px; padding: 0 9px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .aw-pass, .aw-card, .aw-sign.is-on, .aw-sign.is-ding, .aw-tap, .aw-dim-inner img, .aw-arrival.open,
  .aw-pass-stamp, .aw-pass[data-cabin="first"]::before { animation: none; }
  .aw-pass.is-torn .aw-pass-main, .aw-pass.is-torn .aw-pass-stub { animation: aw-fade-out 160ms linear forwards; }
  @keyframes aw-fade-out { to { opacity: 0; } }
  .aw-dim { transition: none; }
}

/* ---- Member side: invite button and check-in sheet ------------------------------------------- */
.aw-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 34px;
  margin-left: 12px;
  padding: 0 11px 0 9px;
  border: 1px solid rgba(24, 35, 122, 0.22);
  border-radius: 9px;
  background: var(--aw-paper);
  color: var(--aw-navy);
  font: 400 13px/1 var(--aw-pass);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}
.aw-share-btn:hover { background: #fffaf0; }
.aw-share-btn:active { transform: translateY(1px); }
.aw-share-btn:focus-visible { outline: 2px solid var(--aw-navy); outline-offset: 2px; }
.aw-share-btn.is-float { position: fixed; z-index: 2300; width: auto; margin: 0; padding: 0 12px 0 10px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.aw-share-btn.is-float span { display: inline; }
@media (max-width: 1400px), (max-height: 500px) {
  .aw-share-btn { width: 34px; margin-left: 8px; padding: 0; justify-content: center; }
  .aw-share-btn span { display: none; }
}
.aw-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(3, 5, 9, 0.5);
}
.aw-share-overlay.open { display: grid; }
.aw-share [hidden], .aw-pass [hidden], .aw-card [hidden] { display: none !important; }
/* The check-in sheet is a wide pass too: details on the left, the gate stub with guests and actions. */
.aw-share {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 228px;
  width: min(820px, calc(var(--aw-vw) - 32px));
  max-height: calc(var(--aw-vh) - 32px);
  color: var(--aw-ink);
  font-family: var(--aw-pass);
  text-transform: uppercase;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5));
  animation: aw-pass-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.aw-share-main, .aw-share-stub { background: var(--aw-paper); overflow: hidden; }
.aw-share-main {
  border-radius: 16px 0 0 16px;
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 11px, #000 11.5px) top right / 100% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 11px, #000 11.5px) bottom right / 100% 51% no-repeat;
  mask: radial-gradient(circle at 100% 0, transparent 11px, #000 11.5px) top right / 100% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 11px, #000 11.5px) bottom right / 100% 51% no-repeat;
}
.aw-share-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 0 16px 16px 0;
  -webkit-mask: radial-gradient(circle at 0 0, transparent 11px, #000 11.5px) top left / 100% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent 11px, #000 11.5px) bottom left / 100% 51% no-repeat;
  mask: radial-gradient(circle at 0 0, transparent 11px, #000 11.5px) top left / 100% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent 11px, #000 11.5px) bottom left / 100% 51% no-repeat;
}
.aw-share-stub::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 0; width: 2px; background: repeating-linear-gradient(180deg, rgba(28, 31, 41, 0.28) 0 5px, transparent 5px 10px); }
.aw-share .aw-pass-band { white-space: nowrap; }
.aw-share-stub .aw-pass-band { position: relative; justify-content: flex-start; padding-left: 24px; font-size: 12px; letter-spacing: 0.16em; }
.aw-share-x { position: absolute; top: 50%; right: 8px; width: 32px; height: 32px; margin-top: -16px; border: 0; border-radius: 8px; background: transparent; color: var(--aw-navy); font: 400 24px/1 var(--aw-body); cursor: pointer; }
.aw-share-x:hover, .aw-share-x:focus-visible { background: rgba(24, 35, 122, 0.1); outline: none; }
.aw-share-body { padding: 18px 24px 22px; }
.aw-share-flight { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.aw-share-flight span { font-size: 10px; letter-spacing: 0.12em; color: var(--aw-ink-soft); }
.aw-share-flight b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; font-size: 18px; letter-spacing: 0.04em; }
.aw-share h2 { margin: 0 0 16px; font: 400 34px/1.05 var(--aw-pass); letter-spacing: 0.02em; }
.aw-share-lede { margin: 0; font: 400 12px/1.5 var(--aw-pass); letter-spacing: 0.03em; color: var(--aw-ink-soft); }
.aw-share-link { display: flex; gap: 8px; margin-bottom: 16px; }
/* The full address (www.infinite-airshow.com/w/ + 10 characters) fits on one line at 12px beside the copy
   button; a narrower sheet wraps it instead of cutting it off. */
.aw-share-url {
  flex: 1;
  min-width: 0;
  padding: 12px 10px;
  border: 1.5px dashed rgba(28, 31, 41, 0.35);
  border-radius: 10px;
  background: #fffdf7;
  font: 400 12px/1.35 var(--aw-pass);
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
  overflow: hidden;
  user-select: all;
}
.aw-share-link .aw-pass-board { padding: 0 20px; min-height: 46px; font-size: 14px; }
.aw-share-link [data-s-copy] { min-width: 8.8em; }
.aw-share-facts { display: grid; grid-template-columns: 0.8fr 1fr 1.3fr; gap: 12px; margin: 0; padding-top: 14px; border-top: 1px dashed rgba(28, 31, 41, 0.25); }
.aw-share-facts dt { font-size: 10px; letter-spacing: 0.1em; color: var(--aw-ink-soft); }
.aw-share-facts dd { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 7px; margin: 5px 0 0; font-size: 14px; letter-spacing: 0.02em; }
.aw-share-facts dd small { flex: 1 0 100%; font-size: 10px; letter-spacing: 0.06em; color: var(--aw-ink-soft); }
.aw-share-lamp { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.18); }
.aw-share-error { margin: 12px 0 0; color: #8f2219; font: 400 12px/1.4 var(--aw-pass); letter-spacing: 0.06em; }
.aw-share-guests { display: grid; justify-items: center; gap: 4px; padding: 18px 16px 8px; }
.aw-share-guests small { font-size: 10px; letter-spacing: 0.12em; color: var(--aw-ink-soft); }
.aw-share-guests b { font-weight: 400; font-size: 48px; line-height: 1; }
.aw-share-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding: 8px 18px 18px; }
.aw-share-actions .aw-pass-board { min-height: 44px; font-size: 13px; letter-spacing: 0.05em; }
.aw-share-ghost { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--aw-navy); border-radius: 10px; background: transparent; color: var(--aw-navy); font: 400 13px/1 var(--aw-pass); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.aw-share-actions .aw-link { align-self: center; padding: 4px; }
.aw-share-stop { min-height: 36px; padding: 0 10px; white-space: nowrap; border: 1px solid rgba(143, 34, 25, 0.4); border-radius: 8px; background: transparent; color: #8f2219; font: 400 12px/1 var(--aw-pass); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.aw-share-stop:hover, .aw-share-ghost:hover { background: rgba(24, 35, 122, 0.06); }
@media (max-height: 500px) {
  .aw-share { grid-template-columns: minmax(0, 1fr) 190px; }
  .aw-share .aw-pass-band { padding: 8px 16px; font-size: 12px; }
  .aw-share-body { padding: 10px 16px 12px; }
  .aw-share h2 { margin-bottom: 10px; font-size: 24px; }
  .aw-share-link { margin-bottom: 10px; }
  .aw-share-url { padding: 9px 10px; font-size: 13px; }
  .aw-share-link .aw-pass-board { min-height: 38px; }
  .aw-share-facts { padding-top: 8px; }
  .aw-share-guests { padding: 8px 12px 0; }
  .aw-share-guests b { font-size: 34px; }
  .aw-share-actions { gap: 6px; padding: 6px 12px 12px; }
  .aw-share-actions .aw-pass-board { min-height: 36px; }
  .aw-share-ghost { min-height: 32px; }
  .aw-share-stop { min-height: 30px; font-size: 11px; white-space: nowrap; }
  .aw-share-actions .aw-pass-board { font-size: 12px; letter-spacing: 0.03em; }
}
@media (max-width: 620px) {
  .aw-share { grid-template-columns: 1fr; overflow: auto; }
  .aw-share-main { border-radius: 16px 16px 0 0; -webkit-mask: none; mask: none; }
  .aw-share-stub { border-radius: 0 0 16px 16px; -webkit-mask: none; mask: none; }
  .aw-share-stub::before { top: 0; left: 14px; right: 14px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, rgba(28, 31, 41, 0.28) 0 5px, transparent 5px 10px); }
  .aw-share-facts { grid-template-columns: 1fr 1fr; }
  .aw-share-facts div:last-child { grid-column: 1 / -1; }
  .aw-share-link { flex-wrap: wrap; }
  .aw-share-url { flex: 1 0 100%; }
  .aw-share-link .aw-pass-board { flex: 1; }
}
