@font-face{font-family:"Window Seat LED";src:url("./window-seat-led.woff") format("woff");font-style:normal;font-weight:400;font-display:swap}
:root{color-scheme:dark;--bg:#101a29;--panel:#142132;--panel-deep:#101a29;--line:#2b394c;--muted:#9faec2;--ink:#f3f3ee;--accent:#ffc17f;--led:"Window Seat LED",ui-monospace,monospace;--mono:ui-monospace,'SFMono-Regular',Consolas,monospace;--sans:Geist,'Noto Sans KR',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',Arial,sans-serif}
*,*::before,*::after{box-sizing:border-box}html{min-width:300px}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);line-height:1.5}body:has(dialog[open]),body:has(.cabin:not([hidden])),body:has(.boarding-bridge:not([hidden])){overflow:hidden}button,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button:disabled{cursor:wait;opacity:.65}button svg,.board-icon svg,.brand-mark svg,.search-field svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}button,dialog{border:0}button{background:none}button[hidden],[hidden]{display:none!important}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.wrap{width:min(1120px,calc(100% - 104px));margin-inline:auto}
.site-header{position:relative;z-index:1;border-bottom:1px solid #cde0ff18;background:#101a29}.header-inner{height:76px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:12px;padding:0;text-align:left}.brand-mark{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:7px;background:var(--accent);color:#18202b}.brand-mark svg{width:24px;height:24px;stroke-width:1.7}.brand strong{display:block;font-size:15px;font-weight:800;letter-spacing:.12em;line-height:1.1}.brand small{display:block;color:#a6b4c6;font-size:11px;margin-top:4px}.outline-btn{border:1px solid #62758e75;border-radius:6px;min-height:42px;display:inline-flex;gap:9px;align-items:center;justify-content:center;padding:8px 13px;font-size:13px;white-space:nowrap;background:#142132;color:#e5eaf1;transition:background .2s,border-color .2s}.outline-btn:hover{background:#253752;border-color:#8091a7}.outline-btn svg{width:17px;height:17px;color:var(--accent)}
.hero{position:relative;isolation:isolate;height:max(470px,calc(100dvh - 77px));overflow:hidden;background:#28384b;border-bottom:1px solid #4e5c70;display:grid;grid-template-rows:auto 1fr auto}.terminal-scene{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab}.terminal-scene:active{cursor:grabbing}.terminal-scene:focus-visible{outline-offset:-5px}.terminal-scene.pointer-control:focus{outline:none}.terminal-hud,.terminal-dock{position:relative;z-index:1;pointer-events:none}.terminal-hud{grid-row:1;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-top:26px}.terminal-title{padding:11px 16px 12px;background:#101a29df;border:1px solid #b4c5dc43;border-radius:8px;box-shadow:0 9px 35px #11172437}.terminal-title .eyebrow{margin:0 0 5px}.hero h1{font-size:clamp(19px,3vw,31px);line-height:1.15;letter-spacing:-.05em;margin:0;font-weight:750}.eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 16px;color:var(--accent);font:600 11px/1.5 var(--mono);letter-spacing:.15em}.status-light{width:7px;height:7px;display:inline-block;flex:none;background:var(--accent);border-radius:50%;box-shadow:0 0 12px #ffc17f85}.airport-clock{text-align:right;color:#e5ecf6;display:grid;gap:4px;white-space:nowrap;padding:9px 11px;background:#101a29d9;border:1px solid #b4c5dc43;border-radius:8px}.airport-clock span,.airport-clock small{font:600 9px/1.25 var(--mono);letter-spacing:.08em;color:#b6c5d8}.airport-clock time{font:400 26px/1 var(--mono);letter-spacing:-.07em;color:#f6e1c6}.terminal-dock{grid-row:3;display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:21px}.terminal-instruction{margin:0;padding:8px 11px;font-size:12px;color:#e7edf5;background:#101a29e8;border-radius:5px;min-height:36px;display:flex;align-items:center}.terminal-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;pointer-events:auto}.terminal-button{min-height:44px;background:#101b2e;border:1px solid #8496af;color:#eaf0f8;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 10px;white-space:nowrap;font-size:13px;box-shadow:0 4px 13px #0d173243}.terminal-button:hover{background:#30435b}.terminal-button svg{width:16px;height:16px;color:var(--accent)}.terminal-button-primary{background:#ffc17f;color:#172336;border-color:#ffc17f;font-weight:750}.terminal-button-primary:hover{background:#ffdab1}.terminal-button-primary svg{color:inherit}.scene-reset{width:44px;padding:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.board{--board-cols:110px minmax(0,1fr) 95px 170px 28px;background:#0d0e0f;border:1px solid #4b4436;border-radius:14px;padding:9px;box-shadow:0 14px 38px #060a1194,inset 0 0 0 2px #000}.board-header{display:flex;align-items:center;gap:12px;min-height:64px;padding:8px 12px;border-radius:8px;background:linear-gradient(#ffe991 0%,#ffc759 37%,#f1a637 100%);color:#1a1711;border:1px solid #ffe3a7;box-shadow:inset 0 0 8px #fff3bd78}.board-header h3{margin:0;font-size:clamp(24px,4vw,38px);font-family:Geist,Arial,sans-serif;font-weight:900;letter-spacing:-.05em;line-height:1}.board-icon{display:grid;place-items:center;width:40px;height:40px;background:#fff1ae;border:1px solid #ad6b2385;border-radius:5px;color:#251c11;flex:none;box-shadow:inset 0 0 5px #a35e1b39}.board-icon svg{width:28px;height:28px;stroke-width:2.2}.board-header time{font:400 clamp(22px,3.6vw,38px)/1 var(--led);background:#fff1ae;margin-left:auto;border:1px solid #ad6b23a8;border-radius:6px;padding:6px 12px 4px;white-space:nowrap;color:#271a0e;box-shadow:inset 0 0 6px #e7a240}.board-columns,.board-row{display:grid;grid-template-columns:var(--board-cols);align-items:center;text-align:left;gap:14px;padding-inline:15px}.board-columns{min-height:33px;color:#e6c38b;font:500 13px/1.1 var(--sans)}.board-display{border:1px solid #403d38;border-radius:8px;overflow:hidden;background:#181818}.board-row{width:100%;min-height:66px;border-bottom:1px solid #35312a;background-image:radial-gradient(circle at center,#292927 0 .66px,transparent 1px);background-size:5px 5px;transition:background-color .18s}.board-row:last-child{border-bottom:0}.board-row:hover,.board-row:focus-visible{background-color:#2c261a}.board-row:focus-visible{outline-offset:-3px}.led-value{font:400 clamp(19px,2.55vw,32px)/1.05 var(--led);color:#fff5e2;white-space:nowrap}.board-city{min-width:0;display:grid;align-content:center;gap:2px;overflow:hidden}.board-city strong{overflow:hidden;text-overflow:ellipsis;color:#ffca69;text-shadow:0 0 5px #ffbe682a}.board-city small{color:#b7ad96;font:500 11px/1.1 var(--sans);white-space:nowrap}.board-status{color:#ffca69;justify-self:start}.board-status.now{color:#c5ef6a;text-shadow:0 0 5px #b4e85844}.row-arrow{justify-self:end;color:#e2b981}.row-arrow svg{width:16px;height:16px}
.dialog{position:fixed;max-height:min(88dvh,820px);width:min(520px,calc(100% - 28px));border:1px solid #4b5d75;border-radius:14px;padding:24px;background:#152233;color:var(--ink);box-shadow:0 20px 100px #090e19ba;overscroll-behavior:contain}.dialog::backdrop{background:#080e19c9;backdrop-filter:blur(6px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:22px}.dialog-heading .eyebrow{margin:0 0 6px;font-size:10px}.dialog-heading h2{margin:0;font-size:27px;line-height:1.2;letter-spacing:-.045em}.icon-button,.flight-icon{width:41px;height:41px;display:grid;place-items:center;flex:none;border-radius:6px;border:1px solid #64768e62;color:#dce6f2;background:#18293d}.icon-button:hover,.flight-icon:hover{background:#2d3f57}.search-field{display:flex;align-items:center;gap:10px;padding-inline:13px;min-height:48px;border:1px solid #50647e;border-radius:7px;background:#101a29;color:#b4c4d8}.search-field:focus-within{outline:2px solid var(--accent);outline-offset:2px}.search-field input{width:100%;min-width:0;color:var(--ink);background:none;border:0;outline:none!important;font-size:16px}.search-field input::placeholder{color:#a9b9cd}.region-filters{display:flex;gap:6px;overflow:auto;padding:13px 3px 12px}.region-filters button{min-height:38px;font-size:12px;padding:0 11px;border:1px solid #415573;border-radius:5px;white-space:nowrap}.region-filters button[aria-pressed=true]{color:#182235;background:var(--accent);border-color:var(--accent);font-weight:700}.empty{color:#adbbcc;margin:16px 0;font-size:14px}
.route-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;background:#101b2a;border:1px solid var(--line);border-radius:7px;margin-bottom:18px}.route-summary div{min-width:0}.route-summary div:last-child{text-align:right}.route-summary strong{display:block;font:750 clamp(27px,7vw,39px)/1 var(--mono);color:var(--accent)}.route-summary small{display:block;color:#c1ccdb;margin-top:5px;font-size:12px}.route-summary svg{width:24px;height:24px;fill:none;stroke:var(--accent);stroke-width:1.6;flex:none}.ticket-form label{display:block;font-size:14px;font-weight:650;margin-bottom:7px}.ticket-form label small{font-weight:400;color:var(--muted);margin-left:5px}.ticket-form input{display:block;width:100%;min-height:48px;margin-bottom:16px;background:#101b2a;color:var(--ink);border:1px solid #526782;border-radius:6px;padding:0 12px;font-size:16px}.primary-btn{display:flex;gap:10px;align-items:center;justify-content:center;min-height:48px;width:100%;padding:8px 13px;border:1px solid var(--accent);border-radius:6px;background:var(--accent);color:#1c222a;font-weight:800;font-size:14px;transition:background .2s}.primary-btn:hover{background:#ffd4a6}.ticket-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}.ticket-actions .outline-btn{min-height:48px}.ticket-status{min-height:1em;margin:10px 0 0;color:#b8c8dc;font-size:12px}.ticket-status:empty{display:none}.ticket-preview{width:100%;max-width:none;margin-inline:auto;line-height:0;overflow:hidden;background:transparent}.ticket-preview svg{width:100%;height:auto;aspect-ratio:1040 / 408}.ticket-preview.printing{animation:print .56s cubic-bezier(.21,.78,.36,1) both;transform-origin:top}@keyframes print{from{clip-path:inset(0 0 100%);transform:translateY(-8px)}to{clip-path:inset(0);transform:translateY(0)}}
.history-dialog{width:min(630px,calc(100% - 28px))}.history-dialog canvas{display:block;width:100%;height:auto;aspect-ratio:2;border:1px solid #445873;border-radius:7px;background:#101b2f}.history-list{max-height:175px;overflow:auto;margin-block:12px}.log-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid var(--line);font-size:13px}.log-row time{color:var(--muted);font-size:11px;white-space:nowrap}
.cabin{--frame:#d1bbaa;--wall:#292830;inset:0;position:fixed;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:8px;padding:18px 26px max(18px,env(safe-area-inset-bottom));min-height:100%;background:radial-gradient(ellipse at 51% 42%,#565662,#222530 61%,#141923 97%);transition:background .45s}.cabin.day{--frame:#dcccba;background:radial-gradient(ellipse at 52% 34%,#899197,#504f55 57%,#2b303d 100%)}.flight-header,.flight-bottom{width:min(1120px,100%);display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;position:relative;z-index:1}.flight-route{display:flex;align-items:center;gap:10px;min-width:0}.flight-route strong,.flight-route small{display:block}.flight-route strong{font:700 15px/1.2 var(--mono);letter-spacing:.06em;white-space:nowrap}.flight-route small{margin-top:4px;color:#c6cfdf;font:500 10px/1.3 var(--mono);letter-spacing:.06em}.flight-controls,.sky-control{display:flex;align-items:center;gap:6px}.sky-control{padding:3px;border:1px solid #8391a17d;border-radius:7px;background:#182131a6}.sky-control button{display:flex;align-items:center;gap:5px;justify-content:center;min-width:47px;min-height:34px;padding:5px 7px;font-size:12px;border-radius:4px}.sky-control button[aria-pressed=true]{background:var(--accent);color:#192235;font-weight:700}.sky-control button svg{width:15px;height:15px}.flight-icon{width:43px;height:43px}.flight-bottom{padding-block:3px}.flight-phase{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:13px;font-weight:700}.flight-bottom p{margin:0;color:#ced3df;font-size:12px;text-align:center}.finish-btn{padding-inline:10px;min-height:42px}.finish-btn svg{width:15px;height:15px}
@media(max-width:900px){.wrap{width:calc(100% - 60px)}.board{--board-cols:78px minmax(0,1fr) 60px 128px 20px}.board-columns,.board-row{gap:10px;padding-inline:11px}}
@media(max-width:600px){.wrap{width:calc(100% - 32px)}.header-inner{height:61px}.brand{gap:9px}.brand-mark{width:34px;height:34px}.brand-mark svg{width:20px;height:20px}.brand strong{font-size:12px}.brand small{font-size:10px}.history-btn{min-height:39px;padding:6px 9px;font-size:12px}.outline-btn svg{width:15px;height:15px}.hero{height:max(390px,calc(100dvh - 62px))}.terminal-hud{padding-top:13px;gap:5px}.terminal-title{padding:7px 9px;border-radius:6px}.terminal-title .eyebrow{font-size:8px;gap:5px;margin-bottom:3px}.terminal-title .status-light{width:5px;height:5px}.hero h1{font-size:18px}.airport-clock{gap:3px;border-radius:6px;padding:6px 7px}.airport-clock span,.airport-clock small{font-size:6.5px}.airport-clock time{font-size:19px}.terminal-dock{flex-direction:column;align-items:flex-start;gap:6px;padding-bottom:11px}.terminal-instruction{font-size:10px;min-height:27px;padding:5px 7px}.terminal-actions{gap:5px}.terminal-button{padding:5px 7px;font-size:11px;gap:4px}.scene-reset{width:44px;padding:0}.terminal-button svg{width:14px;height:14px}.board{--board-cols:48px minmax(0,1fr) 36px 82px 13px;padding:6px;border-radius:10px}.board-header{min-height:45px;padding:5px 8px;gap:8px}.board-header h3{font-size:23px}.board-icon{width:30px;height:30px}.board-icon svg{width:21px;height:21px}.board-header time{font-size:22px;padding:5px 8px 3px}.board-columns,.board-row{gap:4px;padding-inline:7px}.board-columns{min-height:27px;font-size:10px}.board-row{min-height:49px;background-size:4px 4px}.led-value{font-size:16px}.board-city strong{font-size:18px}.board-status{font-size:14.7px}.board-city small{font-size:8px;line-height:1.2}.row-arrow svg{width:13px;height:13px}.dialog{padding:17px;border-radius:10px;max-height:91dvh}.dialog-heading{margin-bottom:15px}.dialog-heading h2{font-size:23px}.cabin{gap:7px;padding:12px 12px max(12px,env(safe-area-inset-bottom))}.flight-header{gap:5px}.flight-route{gap:6px}.flight-route strong{font-size:12px}.flight-route small{font-size:8px}.flight-controls,.sky-control{gap:3px}.sky-control button{min-width:34px;min-height:34px;font-size:10px;padding:4px;gap:2px}.sky-control svg{width:12px;height:12px}.flight-icon{width:42px;height:42px}.flight-bottom p{display:none}.flight-phase{font-size:12px}.finish-btn{font-size:12px}}
@media(max-width:365px){.airport-clock span{display:none}.terminal-title .eyebrow{letter-spacing:.09em}.board{--board-cols:40px minmax(0,1fr) 31px 61px 11px}.board-columns,.board-row{padding-inline:5px}.led-value{font-size:13px}.header-inner{gap:6px}.sky-control button span{display:none}.sky-control button{min-width:35px}}
@media(max-height:500px) and (orientation:landscape){.cabin{overflow:auto}.flight-bottom p{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}}
.boarding-bridge {
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#121d2e;
  z-index:5;
}
.bridge-label {
  position:absolute;
  top:max(16px,env(safe-area-inset-top));
  left:max(16px,env(safe-area-inset-left));
  pointer-events:none;
  display:grid;
  justify-items:start;
  gap:4px;
  padding:10px 16px;
  border:1px solid #889baa;
  border-left:3px solid var(--accent);
  border-radius:5px;
  background:#142133ed;
  box-shadow:0 12px 30px #09132254;
}
.bridge-label span,.bridge-label small {font:600 12px/1.4 var(--mono);color:#d1dae5}
.bridge-label strong {font:700 clamp(28px,6vw,43px)/1 var(--mono);color:var(--accent)}

.ticket-actions a{text-decoration:none}.ticket-actions a svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.ticket-status a{color:var(--accent);text-underline-offset:2px}
.journey-location{margin:5px 0 0;color:#c1cbd8;font:500 9px/1.2 var(--mono);letter-spacing:.06em}.journey-navigation{display:flex;align-items:flex-start;flex-direction:column;gap:6px;max-width:100%}.journey-progress{display:flex;align-items:center;gap:4px;flex-wrap:wrap;list-style:none;padding:0;margin:0}.journey-progress li{background:#111c2cf5;color:#aebbd0;border:1px solid #61718c99;border-radius:4px;padding:4px 6px;font-size:11px;white-space:nowrap}.journey-progress li[aria-current=step]{background:#2d2c27;border-color:#ffc17f;color:#ffcf9f;font-weight:750}.journey-progress .completed{color:#b9dbab}.cabin-explore{position:relative;flex:1;width:min(1160px,100%);min-height:250px;overflow:hidden;border:1px solid #5b687a;border-radius:12px;background:#293041}.cabin-explore-actions{position:absolute;inset:auto 10px 10px;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;pointer-events:none}.cabin-explore-actions span{backdrop-filter:blur(5px);font-size:11px;padding:6px 8px;background:#141c2ce6;border-radius:4px;color:#d7e1ee}.cabin-explore-actions button{pointer-events:auto}.pa-subtitle{max-width:min(600px,100%);margin:0 auto;text-align:center;padding:8px 12px;background:#151c2be6;border:1px solid #61708a;border-radius:5px;color:#f3f1e7;font-size:13px;line-height:1.5}.flight-bottom .belt-light{color:#ffd196;display:inline-flex;align-items:center;padding:5px 8px;border-radius:4px;border:1px solid #d99e6380;background:#362b20;white-space:nowrap}.flight-bottom .belt-light::before{content:"";width:6px;height:6px;background:#ffca7d;border-radius:50%;margin-right:6px}
@media(max-width:810px){.terminal-dock{flex-direction:column;align-items:flex-start;gap:7px}.journey-progress li{font-size:10px;padding:3px 4px}.journey-location{font-size:8px}}
@media(max-width:600px){.journey-progress{gap:3px}.journey-progress li{font-size:9px;padding-inline:3px}.cabin-explore-actions{inset:auto 7px 7px;gap:4px}.cabin-explore-actions span{font-size:9px;padding:6px 5px}.cabin-explore-actions button{font-size:11px}.flight-bottom .belt-light{font-size:9px;padding:3px 5px}.pa-subtitle{font-size:11px;padding:6px 8px}}

.flight-texture{position:absolute;inset:0 auto auto 0;width:360px;height:264px;visibility:hidden;pointer-events:none}

#terminal .terminal-instruction{max-width:min(66vw,520px);line-height:1.45;overflow-wrap:break-word}
@media(max-width:600px){#terminal .terminal-instruction{max-width:100%;font-size:11px}}

.checkin-conversation {
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: min(320px, calc(100% - 32px));
  padding: 12px 14px;
  border: 1px solid #c4a17a;
  border-radius: 12px;
  background: #151e2c66;
  color: #fffaf2;
  box-shadow: 0 4px 16px #0b14222b;
  pointer-events: none;
}
.checkin-conversation :is(button, input, label) {
  pointer-events: auto;
}
.checkin-conversation :is(.conversation-role, .conversation-speech, .conversation-reply, label) {
  text-shadow: 0 1px 2px #07101b, 0 0 4px #07101bdf;
}
.checkin-conversation[data-mode="greeting"] {
  left: clamp(128px, var(--clerk-x), calc(100% - 128px));
  top: max(114px, calc(var(--clerk-y) - 12px));
  transform: translate(-50%, -100%);
  width: 240px;
}
.checkin-conversation:not([data-mode="greeting"]) {
  left: clamp(16px, calc(var(--clerk-x) + 96px), calc(100% - 336px));
  top: clamp(84px, calc(var(--clerk-y) - 38px), calc(100% - 255px));
  width: 320px;
}
.checkin-conversation::after {
  position: absolute;
  content: "";
  width: 9px;
  height: 9px;
  background: inherit;
  transform: rotate(45deg);
}
.checkin-conversation[data-mode="greeting"]::after {
  left: calc(50% - 4.5px);
  bottom: -5px;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  border-right: 1px solid #c4a17a;
  border-bottom: 1px solid #c4a17a;
}
.checkin-conversation:not([data-mode="greeting"])::after {
  left: -5px;
  top: 39px;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  border-left: 1px solid #c4a17a;
  border-bottom: 1px solid #c4a17a;
}
.conversation-role {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.conversation-speech {
  margin: 0 0 9px;
  font-size: 14px;
  line-height: 1.45;
  word-break: keep-all;
}
.conversation-reply {
  margin: 0 0 7px;
  font-size: 12px;
  color: #b9ccdf;
}
.checkin-conversation .ticket-form {
  gap: 5px;
}
.checkin-conversation .ticket-form label {
  margin-bottom: 3px;
  font-size: 13px;
}
.checkin-conversation .ticket-form input {
  min-height: 36px;
  margin-bottom: 8px;
  padding: 7px 9px;
  font-size: 16px;
}
.checkin-conversation :is(.primary-btn, .outline-btn) {
  min-height: 36px;
  padding: 5px 10px;
  font-size: 12px;
}
.conversation-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
}
.hero:has(.checkin-conversation:not([hidden]):not([data-mode="greeting"])) .terminal-instruction {
  visibility: hidden;
}
@media (max-width: 730px) {
  .hero:has(.checkin-conversation:not([hidden])) .terminal-hud {
    visibility: hidden;
  }
  .checkin-conversation[data-mode="greeting"] {
    top: max(136px, calc(var(--clerk-y) - 12px));
  }
  .checkin-conversation :is(.primary-btn, .outline-btn) {
    min-height: 44px;
  }
  .checkin-conversation:not([data-mode="greeting"]) {
    left: 50%;
    top: max(218px, calc(var(--clerk-y) - 12px));
    transform: translate(-50%, -100%);
  }
  .checkin-conversation:not([data-mode="greeting"])::after {
    left: calc(50% - 4.5px);
    top: auto;
    bottom: -5px;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    border-left: 0;
    border-right: 1px solid #c4a17a;
  }
}

.checkpoint-items {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}
.checkpoint-items > p {
  position: absolute;
  left: 50%;
  bottom: 86px;
  max-width: calc(100% - 28px);
  width: max-content;
  transform: translateX(-50%);
  margin: 0;
  padding: 5px 8px;
  border-radius: 5px;
  background: #101a29ed;
  color: #e0e9ee;
  font-size: 11px;
  text-align: center;
}
.checkpoint-items button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 126px;
  padding: 6px 10px;
  transform: translate(-50%, -50%);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: auto;
  touch-action: none;
}
.checkpoint-item {
  gap: 6px;
  background: #ffca8d;
  color: #172535;
  border: 1px solid #ffe0bc;
  box-shadow: 0 4px 15px #10172176;
  cursor: grab;
}
.checkpoint-item::before {
  content: '';
  width: 14px;
  height: 18px;
  flex: none;
  border: 2px solid #6b5340;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, #906143 0 2px, #bd956a 2px 4px);
}
.checkpoint-item[data-kind="passport"]::before {
  background: radial-gradient(circle at center, #e1ba78 0 2px, #546e6c 3px);
}
.checkpoint-item[data-kind="ticket"]::before {
  width: 19px;
  height: 12px;
  background: linear-gradient(90deg,#ffffd5 0 75%,#d1974c 75%);
}
.checkpoint-item.dragging {
  z-index: 1;
  cursor: grabbing;
  opacity: .88;
}
.checkpoint-target {
  background: #132332ef;
  color: #f8e4c5;
  border: 2px dashed #dda376;
}
.checkpoint-target.ready {
  background: #254e45;
  border-color: #d2f1b8;
}
@media (max-width: 600px) {
  .checkpoint-items > p {
    bottom: 63px;
  }
  .checkpoint-items button {
    max-width: 112px;
    padding-inline: 8px;
  }
}

.checkpoint-items[data-object="suitcase"] :is(.checkpoint-item,.checkpoint-target) {
  min-height: 0;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: transparent;
  box-shadow: none;
}
.checkpoint-items[data-object="suitcase"] .checkpoint-item::before {
  display: none;
}
.checkpoint-items[data-object="suitcase"] .checkpoint-target.ready {
  outline: 2px dashed #ffd49be6;
  outline-offset: 1px;
  background: #ffd49b14;
}

.checkpoint-items[data-object="suitcase"] > p {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 730px) {
  .checkin-conversation[data-station="baggage"]:not([data-mode="greeting"]) {
    top: max(156px, calc(var(--clerk-y) - 12px));
  }
}

.checkpoint-touch {
  display: none;
}
@media (max-width: 730px), (pointer: coarse) {
  .checkpoint-touch:not([hidden]) {
    display: block;
    width: 100%;
  }
  .checkpoint-touch .terminal-button {
    width: 100%;
    min-height: 48px;
    padding: 8px 16px;
    font-size: 14px;
    pointer-events: auto;
    touch-action: manipulation;
  }
  .checkpoint-touch-status {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #758798;
    border-radius: 6px;
    background: #162435eb;
    color: #f4eadb;
    font-size: 13px;
    text-wrap: pretty;
  }
  .terminal-dock:has(.checkpoint-touch:not([hidden])) {
    z-index: 4;
  }
  .hero:has(.checkpoint-touch-status:not([hidden])) .checkin-conversation {
    visibility: hidden;
  }
  .terminal-dock:has(.checkpoint-touch:not([hidden])) .terminal-instruction,
  .hero:has(.checkpoint-touch:not([hidden])) .checkpoint-items > p {
    display: none;
  }
}
@media (max-width: 730px) {
  .terminal-dock:has(.checkpoint-touch:not([hidden])) .journey-navigation {
    width: 100%;
  }
  .hero:has(.checkpoint-touch:not([hidden])) .checkin-conversation:not([data-mode="greeting"]) {
    top: 14px;
    transform: translateX(-50%);
  }
  .hero:has(.checkpoint-touch:not([hidden])) .checkin-conversation:not([data-mode="greeting"])::after {
    display: none;
  }
}

.terminal-button.is-third-person {
  border-color:var(--accent);
}
.entry-dialog {
  width: min(422px, calc(100% - 28px));
}
.entry-dialog::backdrop {
  background: #080e1973;
  backdrop-filter: none;
}
.entry-dialog .dialog-heading {
  margin-bottom: 18px;
}
.entry-dialog .ticket-form input {
  margin-bottom: 8px;
}
.entry-dialog p {
  margin: 0 0 18px;
  color: #b9c8da;
  font-size: 13px;
  word-break: keep-all;
}
.avatar-nickname {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.avatar-dialog {
  width:min(430px,calc(100% - 26px));
}
.avatar-dialog .dialog-heading {
  align-items:center;
  margin-bottom:14px;
}
.avatar-preview {
  width:100%;
  height:clamp(148px,29dvh,235px);
  display:block;
  touch-action:none;
  cursor:grab;
  border:1px solid #435973;
  border-radius:10px;
  background:radial-gradient(ellipse at 49% 34%,#d7e4eb,#849db7 88%);
}
.avatar-preview:active {
  cursor:grabbing;
}
.avatar-controls {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:9px 0;
  color:#c6d3e4;
  font-size:12px;
}
.avatar-turn {
  flex:0 0 44px;
  padding:0;
  min-height:44px;
  justify-content:center;
}
.avatar-turn[data-avatar-turn="-1"] svg {
  transform:rotate(180deg);
}
.avatar-view-toggle {
  width:100%;
  min-height:44px;
  justify-content:center;
}

#scene-guide[hidden]{display:none}
.terminal-scene.guide-hover:not(:active){cursor:pointer}

.checkpoint-items[data-object="prop"] button {
  min-height: 44px;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: transparent;
  box-shadow: none;
}
.checkpoint-items[data-object="prop"] button[hidden] { display: none; }
.checkpoint-items[data-object="prop"] .checkpoint-item::before { display: none; }
.checkpoint-items[data-object="prop"] .checkpoint-target.ready {
  outline: 1px solid #ffe3a5c9;
  background: #ffd49b16;
}
.checkpoint-items[data-object="prop"] .checkpoint-target { cursor: pointer; }

.destination-flag {
  font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-weight: 400;
  line-height: 1;
}
.board-city .flagged-city {
  display: flex;
  align-items: center;
  gap: .37em;
}
.flagged-city .destination-flag {
  flex: none;
  font-size: .75em;
}
.flagged-city > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.avatar-options {
  display: grid;
  gap: 10px;
  margin: 2px 0 12px;
}
.avatar-choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.avatar-choice legend {
  margin-bottom: 4px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}
.avatar-choice-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.avatar-option {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #526781;
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
}
.avatar-option:has(input:checked) {
  border-color: var(--accent);
  background: #ffc17f18;
  color: #ffe4be;
}
.avatar-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.avatar-swatch {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 5px;
  border-color: transparent;
}
.avatar-color {
  width: 29px;
  height: 29px;
  border: 1px solid #ffffff6b;
  border-radius: 50%;
  background: var(--swatch);
}
@media (max-width: 400px) {
  .avatar-dialog {padding: 16px;}
}

.destinations-dialog[open] {
  width: min(720px, calc(100% - 24px));
  display: grid;
  grid-template-rows: auto auto auto minmax(112px, 1fr);
  max-height: min(88dvh, 780px);
}
.destinations-dialog .board {
  --board-cols: 80px minmax(0,1fr) 64px 105px 20px;
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr);
  min-height: 0;
}
.destinations-dialog .board-display {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.destinations-dialog .board-row {
  min-height: 54px;
}
.destinations-dialog .led-value {
  font-size: clamp(16px, 2.8vw, 23px);
}
.destinations-dialog .board-header h3 {
  font-size: clamp(20px, 4vw, 31px);
}
@media (max-width: 600px) {
  .destinations-dialog[open] {
    width: calc(100% - 20px);
    padding: 14px;
  }
  .destinations-dialog .board {
    --board-cols: 42px minmax(0,1fr) 34px 65px;
  }
  .destinations-dialog .board-row {
    min-height: 51px;
  }
  .destinations-dialog .board-row .row-arrow,
  .destinations-dialog .board-columns span:last-child {
    display: none;
  }
  .destinations-dialog .led-value {
    font-size: clamp(13px, 3.5vw, 16px);
  }
  .destinations-dialog .board-status {
    font-size: 12px;
  }
}
@media (max-width: 375px) {
  .destinations-dialog .board {
    --board-cols: 36px minmax(0,1fr) 29px 56px;
  }
  .destinations-dialog .board-header h3 {
    font-size: 18px;
  }
  .destinations-dialog .board-status {
    font-size: 11px;
  }
}


.cabin-seat-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
  margin-inline-start: auto;
  text-align: end;
}
.cabin-seated-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.cabin-seated-buttons:has(> :not([hidden])) { min-height: 44px; }
.cabin-seated-buttons .outline-btn { min-height: 44px; padding: 6px 10px; white-space: nowrap; }
.cabin-seat-actions .primary-btn {
  min-height: 44px;
  max-width: 100%;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}
.cabin-seat-actions #cabin-instructions {
  max-width: 100%;
  color: #f8edda;
  line-height: 1.5;
}

.cabin-directions {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 3px;
  flex: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.cabin-directions button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #d6e0f0aa;
  border-radius: 7px;
  background: #142132dd;
  color: #f5e1c9;
  touch-action: none;
}
.cabin-directions button[data-direction="ArrowUp"] {
  grid-column: 2;
}
.cabin-directions button[data-direction="ArrowLeft"] {
  grid-column: 1;
}
.cabin-directions button[data-direction="ArrowUp"] svg { rotate: -90deg; }
.cabin-directions button[data-direction="ArrowLeft"] svg { rotate: 180deg; }
.cabin-directions button[data-direction="ArrowDown"] svg { rotate: 90deg; }
.cabin-directions button[data-held],
.cabin-directions button:active {
  background: var(--accent);
  border-color: var(--accent);
  color: #172336;
}
.cabin-directions:not([hidden]) + .cabin-seat-actions {
  max-width: 200px;
}

.cabin-explore .pa-subtitle {
  position: absolute;
  inset: 10px 0 auto;
  width: min(600px, calc(100% - 20px));
  background: #151c2bbf;
  pointer-events: none;
}

.seat-dialog .dialog-heading {
  margin-bottom: 14px;
}
.seat-layout {
  max-height: min(50dvh, 440px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 0 5px 4px 0;
}
.seat-row {
  display: grid;
  grid-template-columns: 1.5rem repeat(3,minmax(0,1fr)) .9rem repeat(3,minmax(0,1fr));
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  text-align: center;
}
.seat-column-labels {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 30px;
  margin-bottom: 5px;
  background: #152233;
  color: #aec0d6;
  font-size: 11px;
}
.seat-row-number {
  color: #aec0d6;
  font: 12px var(--mono);
}
.seat-option {
  position: relative;
  display: block;
}
.seat-option span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid #667a95;
  border-radius: 5px 5px 8px 8px;
  background: #25374e;
  color: #f1f4fa;
  font: 650 13px var(--mono);
  cursor: pointer;
}
.seat-option:hover span {
  border-color: #b7c9e0;
  background: #344b66;
}
.seat-option input:focus-visible + span {
  outline: 2px solid #ffd49e;
  outline-offset: -2px;
}
.seat-option input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: #1c2736;
}
.seat-option input:disabled + span {
  border-color: #3b4b61;
  background: #1b2839;
  color: #8c9bb0;
  cursor: default;
}
.seat-selection-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 8px 0 11px;
}
.seat-selection-summary p {
  margin: 0;
  color: #f8e2c6;
  font-size: 14px;
  font-weight: 650;
}
.seat-occupied-note {
  color: #b9c8da;
  font-size: 12px;
  white-space: nowrap;
}
.seat-occupied-note::before {
  content: '×';
  display: inline-block;
  padding: 1px 5px;
  margin-right: 4px;
  border: 1px solid #3b4b61;
  border-radius: 3px;
}

.history-actions,
.history-reset-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.history-actions .primary-btn {
  flex: 1;
}
.history-reset-link,
.history-reset-confirm {
  color: #ffc3b8;
  border-color: #a36461;
}
.history-reset-confirm:hover {
  background: #602e31;
  border-color: #f6a197;
}
#history-reset {
  max-width: 400px;
}
#history-reset-description,
#history-reset-error {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
}
#history-reset-error {
  color: #ffc3b8;
}
.history-reset-actions {
  justify-content: flex-end;
}
@media (max-width: 370px) {
  .history-actions {
    flex-direction: column;
  }
}

.entry-dialog #entry-title:focus {
  outline: none;
}
.entry-profile {
  display: grid;
  grid-template-columns: clamp(86px, 26vw, 108px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.entry-avatar-preview {
  height: 134px;
}
.entry-preview-controls {
  display:flex;
  justify-content:space-between;
  gap:4px;
  margin-top:5px;
}
.entry-preview-controls .avatar-turn {min-height:32px;flex:1;padding:4px}
@media (pointer:coarse) {
  .entry-preview-controls .avatar-turn {min-height:44px}
}
.entry-profile #entry-nickname-hint {
  margin: 0;
}
.entry-avatar-options {
  margin: 14px 0 16px;
}
.entry-avatar-options .avatar-choice-options:has(.avatar-swatch) {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
}
.entry-avatar-options .avatar-swatch {
  width: 100%;
  min-width: 0;
  padding-inline: 1px;
}
.entry-avatar-options .avatar-color {
  width: min(28px, 100%);
  height: auto;
  aspect-ratio: 1;
}


.header-actions {display:flex;align-items:center;gap:7px}
.terminal-sound {min-width:42px;min-height:42px}
.terminal-sound svg {color:var(--accent)}
.flight-phase {min-width:0;white-space:normal}
.flight-phase .status-light {flex:none}
.finish-btn:disabled {cursor:default}
.arrival-dialog {padding:0;overflow:auto}
.arrival-heading {
  padding:clamp(24px,5vw,40px);
  background:
    linear-gradient(145deg,#0c1523 25%,#1e3248b0),
    repeating-linear-gradient(0deg,#60758b 0 1px,#203650 1px 5px);
  border-bottom:1px solid #62758e75;
}
.arrival-heading .eyebrow {margin:0 0 10px}
.arrival-code {
  margin:0;
  font:400 clamp(56px,16vw,100px)/1 var(--led);
  color:var(--accent);
  text-shadow:0 0 24px #ffc17f39;
}
.arrival-heading h2 {margin:8px 0 0;font-size:clamp(24px,6vw,36px);letter-spacing:-.045em}
.arrival-flight {margin:0;padding:16px 20px;color:#c4cfde;font:500 14px/1.5 var(--mono)}
.arrival-actions {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px;
  padding:0 20px 20px;
}
.arrival-actions button {min-height:48px;white-space:normal}
@media(max-width:600px) {
  .terminal-sound {width:42px;height:42px}
  .flight-bottom {flex-wrap:wrap;gap:6px}
  .flight-bottom .belt-light {font-size:11px}
  .finish-btn {margin-left:auto}
}

.travelers-hud {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px 8px;
  margin-top:7px;
  color:#aabbd0;
  font-size:12px;
  line-height:1.4;
}
.travelers-hud[hidden], .travelers-hud button[hidden], .seat-flight-status[hidden] {display:none}
.travelers-hud[data-state="connected"] [data-travelers]::before {
  content:'';
  display:inline-block;
  width:6px;
  height:6px;
  margin-right:6px;
  border-radius:50%;
  vertical-align:1px;
  background:#82d6bd;
}
.travelers-hud button {
  min-height:32px;
  padding:3px 8px;
  color:#e5fff7;
  border:1px solid #82d6bd63;
  border-radius:5px;
  background:#243b46;
  pointer-events:auto;
  font:inherit;
  cursor:pointer;
}
.travelers-hud button:active {background:#365765}
.cabin-travelers {
  position:absolute;
  left:10px;
  top:10px;
  margin:0;
  padding:5px 9px;
  border-radius:5px;
  background:#141c2ced;
}
.seat-flight-status {margin:2px 0 0;color:#fbd6a9;font-size:13px;line-height:1.45}

@media (pointer:coarse) {
  .travelers-hud button {min-height:44px}
}

.terminal-status-column {
  display:grid;
  justify-items:stretch;
  gap:7px;
  flex:none;
}
.terminal-map-button {
  justify-content:center;
  min-height:38px;
  padding:5px 9px;
  pointer-events:auto;
  white-space:nowrap;
  font-size:13px;
  gap:6px;
}
.terminal-map-button svg {width:16px;height:16px;color:var(--accent)}
.terminal-map-dialog {width:min(502px,calc(100% - 24px));padding:16px 20px 14px}
.terminal-map-dialog .dialog-heading {align-items:center;margin-bottom:13px}
.terminal-map-dialog .dialog-heading .icon-button {min-width:40px;min-height:40px}
.terminal-map-legend {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
.terminal-map-legend>div {
  display:grid;
  gap:4px;
  padding:8px 10px;
  background:#0d1928;
  border:1px solid #3e536a;
  border-radius:8px;
}
.terminal-map-legend span {display:flex;align-items:center;gap:6px;color:#b8c9dc;font-size:12px}
.terminal-map-legend span::before {
  content:'';
  width:8px;
  height:8px;
  border-radius:50%;
  background:#80e4d4;
}
.terminal-map-legend>div:last-child span::before {background:var(--accent)}
.terminal-map-legend strong {font-size:14px;color:#f1f6fd;line-height:1.35;overflow-wrap:anywhere}
.terminal-map-floor {
  display:block;
  width:100%;
  height:auto;
  max-height:min(61dvh,535px);
  background:#0e1a29;
  border:1px solid #3e546c;
  border-radius:10px;
}
.terminal-map-floor .map-lobby {fill:#21364a;stroke:#688298;stroke-width:.24}
.terminal-map-floor .map-concourse {fill:#28475c}
.terminal-map-floor .map-screening {fill:#233b52}
.terminal-map-floor .map-grid {fill:url(#terminal-map-grid)}
.terminal-map-floor .map-grid-line {fill:none;stroke:#accce0;stroke-opacity:.13;stroke-width:.10}
.terminal-map-floor .map-wall {fill:#87aac2}
.terminal-map-floor .map-counter {fill:#4c687f;stroke:#8ca2b4;stroke-width:.11}
.terminal-map-floor .map-bridge {fill:#53788c}
.terminal-map-floor text {font:700 2.15px/1 system-ui,sans-serif;dominant-baseline:middle;fill:#e0ecf7;paint-order:stroke;stroke:#1a2a3a;stroke-width:.37;stroke-linejoin:round}
.terminal-map-floor .map-board-label {fill:#afc4d9;font-size:1.82px}
.terminal-map-floor .map-stop circle {fill:#91afc6;stroke:#122333;stroke-width:.20}
.terminal-map-floor .map-stop.is-next text {fill:#ffce94}
.terminal-map-floor .map-route {fill:none;stroke:#ffc17f;stroke-width:.54;stroke-dasharray:.8 .83;stroke-linecap:round;stroke-linejoin:round}
.terminal-map-floor .map-target {fill:none;stroke:#ffc17f;stroke-width:.34}
.terminal-map-floor .map-player-halo {fill:#80e4d438;stroke:#80e4d47d;stroke-width:.19}
.terminal-map-floor .map-player-core {fill:#80e4d4;stroke:#143d44;stroke-width:.22}
.terminal-map-floor .map-heading {fill:#123340}
@media (max-width:610px) {
  .terminal-map-dialog {padding:12px}
  .terminal-map-dialog .dialog-heading {margin-bottom:8px}
  .terminal-map-legend {margin-bottom:8px}
}
@media (pointer:coarse) {
  .terminal-map-button,.terminal-map-dialog .dialog-heading .icon-button {min-height:44px}
}

.terminal-camera-controls {
  position:absolute;
  z-index:2;
  right:max(16px,calc((100% - 1120px)/2),env(safe-area-inset-right));
  top:50%;
  transform:translateY(-50%);
  display:grid;
  justify-items:end;
  gap:7px;
}
.terminal-orbit-actions,.terminal-zoom-buttons {display:grid;justify-items:end;gap:7px}
.terminal-camera-controls .terminal-button {
  width:48px;
  min-height:44px;
  padding:0;
  font-weight:700;
  background:#122032f2;
}
.terminal-camera-controls .terminal-button:hover {background:#30445d}
.terminal-camera-controls .terminal-button svg {width:19px;height:19px}
.terminal-camera-controls .camera-front-button {flex-direction:column;gap:0;font-size:11px}
.terminal-camera-controls .camera-front-button[aria-pressed=true] {border-color:var(--accent);background:#332c2b}
.terminal-zoom-buttons {gap:0}
.terminal-zoom-buttons button:first-child {border-radius:6px 6px 0 0}
.terminal-zoom-buttons button:last-child {border-radius:0 0 6px 6px;border-top:0}
@media (max-height:480px) and (min-width:660px) {
  .terminal-camera-controls {top:44%;transform:none;display:flex;align-items:center}
  .terminal-orbit-actions,.terminal-zoom-buttons {display:flex;align-items:center}
  .terminal-zoom-buttons button:first-child {border-radius:6px 0 0 6px}
  .terminal-zoom-buttons button:last-child {border-radius:0 6px 6px 0;border-top:1px solid #8496af;border-left:0}
}


.bridge-actions {
  position:absolute;
  inset:auto max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  display:flex;
  justify-content:space-between;
  gap:8px;
}
.cabin-explore .terminal-camera-controls {right:10px}

:is(#terminal,.boarding-bridge) {
  --terminal-ink:#263652;
  --terminal-muted:#4e6385;
  --terminal-accent:#4e4596;
  --terminal-glass:linear-gradient(145deg,#fffffff7,#edf2ffee);
  --terminal-edge:#9eafd1;
  --terminal-shadow:0 5px 18px #455d9020;
  color:var(--terminal-ink);
}
#terminal .site-header {
  background:linear-gradient(110deg,#fbf9ff,#eef6ff 62%,#f2eeff);
  border-color:#c2cdeb;
}
#terminal .hero {background:#dce8ff;border-color:#bccbea}
#terminal .brand-mark {
  background:linear-gradient(155deg,#f5e8ff,#c4b8f4);
  box-shadow:inset 0 1px 0 white,0 3px 10px #564b982b;
  color:#382b70;
}
#terminal .brand small,
#terminal :is(.journey-location,.travelers-hud,.airport-clock span,.airport-clock small) {
  color:var(--terminal-muted);
}
#terminal :is(.eyebrow,.airport-clock time) {color:var(--terminal-accent)}
#terminal .status-light {
  background:#7470bd;
  box-shadow:0 0 10px #7168de82;
}
#terminal :is(.terminal-title,.airport-clock,.terminal-instruction,.journey-progress li),
:is(#terminal,.boarding-bridge) :is(.terminal-button,.history-btn,.terminal-sound,.bridge-label) {
  color:var(--terminal-ink);
  background:var(--terminal-glass);
  border:1px solid var(--terminal-edge);
  box-shadow:var(--terminal-shadow);
}
#terminal .journey-progress .completed {color:#236459}
#terminal .journey-progress li[aria-current=step],
:is(#terminal,.boarding-bridge) .camera-front-button[aria-pressed=true] {
  background:#e5ddff;
  color:#483883;
  border-color:#8d7ec6;
}
:is(#terminal,.boarding-bridge) :is(.terminal-button,.history-btn,.terminal-sound):hover {
  background:#e5ecff;
  border-color:#7e92be;
}
:is(#terminal,.boarding-bridge) :is(.terminal-button,.history-btn,.terminal-sound) svg {
  color:var(--terminal-accent);
}
:is(#terminal,.boarding-bridge) .terminal-button-primary {
  background:linear-gradient(155deg,#fff0d5,#ffd5a1);
  border-color:#c99055;
  color:#52351d;
}
:is(#terminal,.boarding-bridge) .terminal-button-primary:hover {background:#ffd095;border-color:#ad7540}
:is(#terminal,.boarding-bridge) .terminal-button-primary svg {color:inherit}
:is(#terminal,.boarding-bridge) :is(button,input,[tabindex]):focus-visible {outline-color:#6655ae}
:is(#terminal,.boarding-bridge) .terminal-zoom-buttons button:last-child {border-top:0}
@media (max-height:480px) and (min-width:660px) {
  :is(#terminal,.boarding-bridge) .terminal-zoom-buttons button:last-child {border-top:1px solid var(--terminal-edge);border-left:0}
}
.boarding-bridge {background:#d7e7ff}
.boarding-bridge .bridge-label :is(span,small) {color:var(--terminal-muted)}
.boarding-bridge .bridge-label strong {color:var(--terminal-accent)}

:is(.entry-dialog,.avatar-dialog) {
  width:min(510px,calc(100% - 24px));
  max-height:calc(100dvh - 24px);
  color-scheme:light;
  background:#f9f7ff;
  color:#292749;
  border-color:#c9c0ee;
}
:is(.entry-dialog,.avatar-dialog)::backdrop {background:#25204486}
:is(.entry-dialog,.avatar-dialog) .dialog-heading {margin-bottom:12px}
:is(.entry-dialog,.avatar-dialog) .dialog-heading h2 {font-size:clamp(21px,5vw,27px)}
:is(.entry-dialog,.avatar-dialog) .avatar-preview {
  height:clamp(174px,28dvh,255px);
  border-color:#c3b5e6;
  background:radial-gradient(ellipse at 49% 75%,#fffffff2 0%,#ece4fa 51%,#c9d9f5 100%);
}
.entry-dialog .entry-profile {display:grid;grid-template-columns:1fr;gap:8px}
.entry-dialog .entry-preview-controls {gap:8px}
.entry-dialog .entry-preview-controls .avatar-turn {min-height:44px}
.entry-dialog .ticket-form input {background:#fff;color:#292749;border-color:#9c91c0}
:is(.entry-dialog,.avatar-dialog) :is(.avatar-nickname,.avatar-controls,#entry-nickname-hint) {color:#635780}
:is(.entry-dialog,.avatar-dialog) :is(.outline-btn,.icon-button) {
  background:#fff;color:#4d4077;border-color:#b5a9d9;
}
:is(.entry-dialog,.avatar-dialog) .outline-btn svg {color:inherit}
:is(.entry-dialog,.avatar-dialog) .primary-btn {
  background:#5f4a94;color:#fff;border-color:#5f4a94;
}
:is(.entry-dialog,.avatar-dialog) .primary-btn:hover {background:#4a367d}
.styling-categories {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:3px;
  padding:3px;
  background:#ebe7f8;
  border-radius:9px;
}
.styling-categories button {
  min-height:44px;
  padding:4px;
  border-radius:6px;
  font-size:13px;
  font-weight:650;
  color:#534770;
}
.styling-categories button[aria-pressed=true] {color:#473479;background:#fff;box-shadow:0 1px 4px #5539822b}
:is(.entry-dialog,.avatar-dialog) .avatar-choice-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
:is(.entry-dialog,.avatar-dialog) .avatar-option {
  display:flex;
  align-items:center;
  gap:8px;
  color:#403653;
  background:#fff;
  border-color:#d7cdeb;
}
:is(.entry-dialog,.avatar-dialog) .avatar-option:has(input:checked) {
  color:#443176;
  border-color:#826bbc;
  background:#ece3fd;
  font-weight:750;
}
:is(.entry-dialog,.avatar-dialog) .avatar-option:has(input:focus-visible),
:is(.entry-dialog,.avatar-dialog) :is(button,input):focus-visible {outline-color:#7354b5}
.styling-swatch {
  flex:none;width:19px;height:19px;border-radius:50%;
  background:var(--swatch);border:1px solid #22183e30;
}
.styling-actions {display:grid;grid-template-columns:auto 1fr;gap:8px}

/* Airport wardrobe and the full-look review share the same preview stage. */
.dialog.wardrobe {
  --wardrobe-edge:#d9cded;
  --wardrobe-ink:#261843;
  --wardrobe-purple:#6b32a8;
  --wardrobe-lilac:#d9bdf6;
  width:min(1260px,calc(100% - 24px));
  max-height:calc(100dvh - 24px);
  padding:clamp(10px,1.6vw,19px);
  background:linear-gradient(145deg,#f8f2ff 0%,#f1e9fc 55%,#f9f6ff 100%);
  border:1px solid #d8c4f1;
  border-radius:18px;
  color:var(--wardrobe-ink);
  box-shadow:0 18px 70px #2b14546b,inset 0 1px 0 #fff;
}
.dialog.wardrobe::backdrop {background:#2518418c;backdrop-filter:blur(4px)}
.dialog.wardrobe .dialog-heading {align-items:center;min-height:36px;margin:0 0 10px}
.dialog.wardrobe .dialog-heading h2 {
  font-size:clamp(23px,3.4vw,51px);
  font-weight:850;
  letter-spacing:-.050em;
  color:#321766;
}
.dialog.wardrobe .icon-button {
  width:40px;height:40px;border-radius:10px;border-color:#d1bbec;
  color:#744bb0;background:#ffffffe0;box-shadow:0 1px 4px #8d64bd25;
}
.wardrobe-layout {
  display:grid;
  grid-template-columns:minmax(0,39fr) minmax(0,61fr);
  gap:clamp(7px,1.24vw,14px);
  min-height:440px;
}
.wardrobe-stage {
  position:relative;
  isolation:isolate;
  min-height:100%;
  overflow:hidden;
  border:1px solid #fbf7ff;
  border-radius:13px;
  background:#dfe8f9;
  box-shadow:0 1px 7px #6e4b9225;
}
.wardrobe-scenery {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.dialog.wardrobe .wardrobe-stage .avatar-preview {
  position:absolute;inset:0;width:100%;height:100%;
  background:transparent;border:0;border-radius:0;
}
.wardrobe-turn {
  position:absolute;z-index:1;left:0;right:0;bottom:5px;
  display:block;text-align:center;white-space:nowrap;
  font-size:clamp(10px,1.2vw,13px);line-height:15px;font-weight:600;
  color:#66547f;pointer-events:none;
}
.wardrobe-turn[hidden] {display:none}
.wardrobe-review-actions>button:first-child:hover {background:#e9dcfa}
.wardrobe-picker {
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
  border:1px solid #fdf9ff;border-radius:13px;
  padding:clamp(6px,1vw,12px);
  background:#f9f5ffb5;
  box-shadow:0 1px 5px #6e4b9215;
}
.wardrobe .avatar-options {display:flex;flex-direction:column;gap:9px;margin:0}
.wardrobe .styling-categories {padding:0;background:none;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.wardrobe .styling-categories button {
  min-width:0;
  display:flex;align-items:center;justify-content:center;gap:5px;
  padding:4px 2px;
  color:#35254c;background:linear-gradient(#f2eafb,#eee5f9);
  border:1px solid #f7f1ff;border-radius:9px;
  white-space:nowrap;
  font-size:clamp(10px,1.25vw,16px);
  line-height:1.1;
}
.wardrobe .styling-categories svg {width:19px;height:19px;color:#4b3768}
.wardrobe .styling-categories button[aria-pressed=true] {
  background:linear-gradient(150deg,#e8d2fb,#d2b1f4);
  color:#2d1948;
  box-shadow:inset 0 1px 0 #fff8;
}
.wardrobe-subtabs {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  width:min(70%,346px);margin:2px auto;
  padding:3px;border:1px solid #dbd0e9;border-radius:24px;
  background:#f7f2fc;
}
.wardrobe-subtabs button {
  min-height:34px;padding:3px 1px;
  color:#463257;font-size:clamp(11px,1.24vw,15px);font-weight:700;border-radius:20px;
}
.wardrobe-subtabs button[aria-pressed=true] {background:#dfc5f9;color:#352049}
.dialog.wardrobe .avatar-choice-options {grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.dialog.wardrobe [data-field="bottom"] .avatar-choice-options {grid-template-columns:repeat(4,minmax(0,1fr))}
.dialog.wardrobe .avatar-option {
  display:flex;flex-direction:column;justify-content:space-between;gap:0;
  min-width:0;min-height:0;padding:0;overflow:hidden;
  border:1px solid #e2d5ef;border-radius:10px;
  background:linear-gradient(#eee6fa,#f7f1ff);
  color:#2b1c41;
}
.dialog.wardrobe .avatar-option:hover {border-color:#b890dc}
.dialog.wardrobe .avatar-option:has(input:checked) {
  border-color:#8544c8;box-shadow:inset 0 0 0 1px #a469e2; color:#321851;
  background:#f3e7fe;
}
.wardrobe .avatar-option:has(input:checked)::after {
  content:'✓';position:absolute;top:6px;right:6px;z-index:1;
  display:grid;place-items:center;
  width:clamp(17px,2.15vw,26px);aspect-ratio:1;
  border-radius:50%;background:linear-gradient(145deg,#a65ee5,#6f28ba);
  color:white;box-shadow:0 1px 4px #5f238143;
  border:1px solid #fff9;font:750 clamp(11px,1.4vw,16px)/1 var(--sans);
}
.wardrobe .avatar-option .wardrobe-tile,.wardrobe-empty {
  width:100%;height:clamp(79px,12dvh,147px);object-fit:contain;display:block;flex:none;
}
.wardrobe [data-field="cut"] .avatar-option .wardrobe-tile,.wardrobe [data-field="suitcaseColor"] .avatar-option .wardrobe-tile {
  height:clamp(108px,19dvh,203px);object-fit:contain;
}
.wardrobe [data-field="outfit"] .avatar-option .wardrobe-tile {
  height:clamp(65px,10.5dvh,112px);
}
.wardrobe [data-field="bottom"] .avatar-option .wardrobe-tile {
  height:clamp(83px,14dvh,154px);object-fit:contain;
}
.wardrobe-empty {
  display:grid;place-items:center;color:#8464ac;font-size:clamp(30px,4vw,50px);
}
.wardrobe .wardrobe-suitcase-title {
  margin:4px 0 9px;font-size:clamp(15px,1.65vw,20px);font-weight:800;color:#34204f;
}
.wardrobe-suitcase-title small {display:block;font-size:.78em;font-weight:500;color:#6e6180}
.dialog.wardrobe .primary-btn {
  min-height:clamp(46px,6dvh,56px);border:1px solid #8664bb;border-radius:12px;
  background:linear-gradient(175deg,#9c55d2 0%,#7741b7 53%,#573094 100%);
  color:#fff;font-size:clamp(15px,1.8vw,22px);
  box-shadow:inset 0 1px 0 #d6acf5,0 2px 6px #6b3b9d29;
}
.dialog.wardrobe .primary-btn:hover {background:linear-gradient(175deg,#aa69df,#6633a7)}
.wardrobe-identity {display:flex;align-items:center;gap:10px;margin:0 0 8px;font-size:14px;font-weight:700}
.wardrobe-identity input {
  width:min(218px,68%);min-height:37px;border-radius:7px;border:1px solid #b6a7cf;
  background:#fcfaff;color:#392853;padding:4px 9px;font-size:16px;
}
.wardrobe.wardrobe-review .wardrobe-layout {display:block;min-height:0}
.wardrobe-review .wardrobe-stage {height:clamp(265px,64dvh,690px)}
.dialog.wardrobe .wardrobe-review-status {margin:0 0 8px;color:#6839a1;font-size:17px;font-weight:800}
.wardrobe-review-actions {
  display:grid;grid-template-columns:42fr 58fr;gap:9px;margin-top:10px;
}
.wardrobe-review-actions>button:first-child {
  color:#65359b;border:1px solid #c5a7e4;border-radius:12px;background:#fbf4ff;
  font-size:clamp(14px,1.7vw,20px);font-weight:800;
}
@media (max-width:730px) {
  .dialog.wardrobe .wardrobe-layout {grid-template-columns:1fr;gap:7px;min-height:0}
  .dialog.wardrobe .wardrobe-stage {height:clamp(190px,39dvh,390px);min-height:0}
  .wardrobe .styling-categories button {flex-direction:column;gap:1px}
  .wardrobe .styling-categories svg {width:16px;height:16px}
    .wardrobe .avatar-option .wardrobe-tile,.wardrobe-empty {height:clamp(57px,9.5dvh,103px)}
  .wardrobe [data-field="cut"] .avatar-option .wardrobe-tile,.wardrobe [data-field="suitcaseColor"] .avatar-option .wardrobe-tile {
    height:clamp(72px,12dvh,140px);
  }
  .wardrobe [data-field="outfit"] .avatar-option .wardrobe-tile {height:clamp(53px,8dvh,91px)}
  .wardrobe [data-field="bottom"] .avatar-option .wardrobe-tile {height:clamp(70px,11dvh,128px)}
  .wardrobe.wardrobe-review .wardrobe-stage {height:clamp(245px,59dvh,500px)}
}


.sandbox-bar {
  position:relative; z-index:20; display:flex; gap:16px; align-items:center; padding:6px 16px;
  min-height:36px; background:#242345; color:#eeeaff; font-size:13px; font-weight:650;
}
.sandbox-bar a {color:#fff; text-decoration:underline; text-underline-offset:3px}
.airport-sandbox :is(.hero,.cabin,.boarding-bridge) {min-height:calc(100dvh - 36px)}

/* Startup overlay is independent of the WebGL renderer and visible before modules load. */
.airport-loading{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 35%,#f7f1ff,#dce8fb 65%,#cad8f3);color:#352657;text-align:center}
.airport-loading[hidden],.wardrobe-identity[hidden]{display:none!important}
.airport-loading-content{width:min(100%,360px);display:grid;justify-items:center;gap:14px}
.airport-loading-mark{display:grid;place-items:center;width:64px;height:64px;border-radius:19px;background:#fff9;box-shadow:0 8px 28px #675aa52b}
.airport-loading-mark svg{width:34px;height:34px;color:#7052b4}
.airport-loading-eyebrow{margin:0;font-size:11px;letter-spacing:.24em;font-weight:750;color:#66538c}
.airport-loading h1{font-size:clamp(22px,5.5vw,30px);margin:0;letter-spacing:-.045em}
.airport-loading-track{height:4px;width:min(220px,75%);background:#fff9;border-radius:8px;overflow:hidden;margin:8px 0 0}
.airport-loading-track span{display:block;width:40%;height:100%;background:#9376c9;border-radius:8px;animation:airport-loading-slide 1.3s ease-in-out infinite}
#airport-loading-status{margin:0;color:#645a7d;font-size:13px}
@keyframes airport-loading-slide{from{transform:translateX(-100%)}to{transform:translateX(350%)}}
@media(prefers-reduced-motion:reduce){.airport-loading-track span{animation:none;width:100%;opacity:.65}}
#entry-dialog.wardrobe-review .wardrobe-identity{justify-content:center;margin:0 0 12px;gap:12px}
#entry-dialog.wardrobe-review .wardrobe-identity input{min-height:44px;width:min(260px,70%)}

/* Appearance tabs use the same segmented control as clothing. Color cards
   remain image-only: a solid swatch instead of an expensive 3D thumbnail. */
.wardrobe-subtabs[hidden]{display:none!important}
.wardrobe-appearance-tabs{width:min(96%,420px)}
.wardrobe-appearance-tabs button{white-space:nowrap}
.dialog.wardrobe .wardrobe-color-panel .avatar-option{position:relative;min-height:clamp(64px,10dvh,112px);padding:7px}
.wardrobe-color-swatch{display:block;width:100%;flex:1;min-height:48px;border-radius:7px;background:var(--swatch);border:1px solid #30234620}

.dialog.ticket-dialog{width:min(1040px,calc(100% - 28px));padding:clamp(14px,2.5vw,28px)}
.ticket-dialog .ticket-actions{gap:10px;margin-top:18px}
.ticket-dialog .ticket-actions>:is(button,a){min-width:0;white-space:nowrap;word-break:keep-all;font-size:clamp(11px,2.8vw,15px);padding-inline:8px;gap:6px}
.ticket-dialog .ticket-actions svg{flex:none;width:16px;height:16px}
@media(max-width:600px){.dialog.ticket-dialog{width:calc(100% - 16px);padding:12px}.ticket-dialog .dialog-heading{margin-bottom:14px}.ticket-dialog .dialog-heading h2{font-size:20px}.ticket-dialog .ticket-actions{margin-top:14px}}

/* Live terminal behind the short receipt cinematic; no opaque result box. */
.dialog.ticket-dialog.boarding-cinematic::backdrop{background:linear-gradient(0deg,#102438a6,transparent 46%,#12233322);backdrop-filter:none}
.dialog.ticket-dialog.boarding-cinematic{background:transparent;border:0;box-shadow:none;color:#fff;position:fixed;inset:auto 0 max(12px,env(safe-area-inset-bottom));margin:0 auto;width:min(560px,calc(100% - 24px));padding:16px;max-height:92dvh}
.boarding-cinematic .dialog-heading{justify-content:center;text-align:center;text-shadow:0 2px 12px #102438}
.boarding-cinematic .dialog-heading .icon-button{display:none}
.boarding-cinematic .ticket-preview{filter:drop-shadow(0 6px 15px #12253844)}
.boarding-cinematic .ticket-actions .outline-btn{background:#122438bb;border-color:#c2d2da;color:white}
.boarding-playing .ticket-preview,.boarding-playing .ticket-actions,.boarding-playing .ticket-status,.boarding-playing .dialog-heading{display:none}
.boarding-skip{display:block;margin:0 0 0 auto;padding:10px 18px;background:#142b42aa;color:#fff;border:1px solid #ffffff6a;border-radius:24px;cursor:pointer;font:inherit}
.boarding-skip:focus-visible{outline:2px solid white;outline-offset:3px}

/* On successful live handoff, leave the avatar visible; the download remains available. */
.boarding-live:not(.boarding-playing) .ticket-preview{display:none}
.boarding-live:not(.boarding-playing) .dialog-heading{margin-bottom:10px}
.boarding-live:not(.boarding-playing) .ticket-actions{margin-top:0}

/* Let the scene carry the emotion; remove game HUD only during issuance. */
.boarding-scene-active .hero .terminal-hud,.boarding-scene-active .hero .terminal-dock,
.boarding-scene-active .hero .terminal-camera-controls,.boarding-scene-active .hero .checkin-conversation,
.boarding-scene-active .hero .checkpoint-items{visibility:hidden}
.dialog.ticket-dialog.boarding-cinematic::backdrop{background:linear-gradient(0deg,#101e30c7, #1b304024 29%,transparent 55%,#182e4315);backdrop-filter:none}
.boarding-cinematic #ticket-subtitle{font-size:10px;letter-spacing:.24em;color:#f4e3cb;text-align:center}
.boarding-cinematic #ticket-title{font-family:Georgia,'Noto Serif KR',serif;font-size:clamp(25px,5vw,40px);font-weight:500;letter-spacing:-.05em;line-height:1.25;color:#fff8ec}
.boarding-route{color:#f9f5ee;text-align:center;letter-spacing:.16em;font-size:11px;margin:0 0 18px;text-shadow:0 2px 7px #142438}
.boarding-playing .boarding-route{display:none}
.boarding-cinematic .ticket-actions .primary-btn{background:#f6e6cf;color:#213448;border-color:#f6e6cf;border-radius:26px}
.boarding-cinematic .ticket-actions .outline-btn{border-radius:26px;background:#21344888}
.boarding-cinematic:not(.boarding-playing) .dialog-heading,.boarding-cinematic:not(.boarding-playing) .ticket-actions,.boarding-cinematic:not(.boarding-playing) .boarding-route{animation:receipt-fade .65s ease-out both}
@keyframes receipt-fade{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.boarding-cinematic *{animation:none!important}}

/* A real, readable issued receipt is never hidden by the cinematic layer. */
.dialog.ticket-dialog.boarding-cinematic{width:min(620px,calc(100% - 24px));padding:16px 20px 20px}
.boarding-cinematic .dialog-heading{display:flex;margin:0 0 8px;justify-content:center}
.boarding-cinematic #ticket-title{font-family:inherit;font-size:clamp(20px,4.5vw,29px);font-weight:650;letter-spacing:-.035em}
.boarding-cinematic .boarding-route{display:block;margin:0 0 8px;font-size:11px;letter-spacing:.12em}
.boarding-progress{margin:0 auto 10px;text-align:center;color:#fff9eb;font-size:13px;text-shadow:0 1px 6px #102438}
.boarding-progress-copy{min-height:20px}
.boarding-progress-bar{width:min(240px,70%);height:3px;display:block;margin:8px auto 0;border:0;appearance:none;border-radius:3px;background:#ffffff36;accent-color:#f4ddad}
.boarding-progress-bar::-webkit-progress-bar{background:#ffffff36;border-radius:3px}
.boarding-progress-bar::-webkit-progress-value{background:#f4ddad;border-radius:3px}
.boarding-issued .boarding-progress-bar{display:none}
.boarding-cinematic .ticket-preview,.boarding-live:not(.boarding-playing) .ticket-preview{display:block;margin:0 auto;max-width:520px;overflow:hidden;filter:drop-shadow(0 7px 14px #09182766)}
.boarding-playing .ticket-preview{max-width:400px;animation:none;position:relative;padding-top:6px}
.boarding-playing .ticket-preview::before{content:"";position:absolute;inset:0 0 auto;height:7px;border-radius:4px;background:#1a3448;box-shadow:0 3px 5px #15283888;z-index:1}
.boarding-playing .ticket-preview svg{display:block;animation:visible-boarding-print 1.8s cubic-bezier(.24,.64,.22,1) both;transform-origin:top center}
@keyframes visible-boarding-print{from{clip-path:inset(0 0 100% 0);transform:translateY(-98%)}to{clip-path:inset(0 0 0 0);transform:translateY(0)}}
.boarding-playing .ticket-actions,.boarding-playing .ticket-status{display:none}
.boarding-playing .boarding-skip{margin:10px auto 0;font-size:12px;padding:8px 14px}
.boarding-cinematic .ticket-actions{margin-top:14px}
@media(max-width:600px){.dialog.ticket-dialog.boarding-cinematic{padding:12px 12px 14px}.boarding-cinematic .boarding-progress{font-size:12px}.boarding-cinematic .ticket-preview{max-width:100%}}
@media(prefers-reduced-motion:reduce){.boarding-playing .ticket-preview svg{animation:none}}

/* Three deliberate receipt stages: print, inspect at full screen, then store. */
.boarding-cinematic .boarding-facts,.boarding-cinematic .boarding-passport{display:none}
.boarding-cinematic .boarding-skip[hidden]{display:none}
.boarding-playing:not(.boarding-print-started) .ticket-preview svg{animation:none;opacity:0}
.boarding-playing.boarding-print-started .ticket-preview svg{animation:visible-boarding-print 1.8s cubic-bezier(.24,.64,.22,1) both}
.dialog.ticket-dialog.boarding-reveal{inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;border-radius:0;padding:max(24px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));background:radial-gradient(ellipse at 50% 18%,#456e7e 0%,#243f54 46%,#14283b 100%);display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:auto}
.dialog.ticket-dialog.boarding-reveal::backdrop{background:#172c40;backdrop-filter:none}
.boarding-reveal #ticket-content{width:min(900px,100%);flex:0 0 auto}
.boarding-reveal .dialog-heading{margin:0 0 12px}
.boarding-reveal #ticket-title{font-family:Georgia,'Noto Serif KR',serif;font-weight:500;font-size:clamp(28px,5vw,48px);line-height:1.3}
.boarding-reveal #ticket-subtitle{letter-spacing:.28em;color:#f5dfba}
.boarding-reveal .boarding-progress{margin:0 0 20px;color:#e1eaf0}
.boarding-reveal .boarding-progress-bar,.boarding-reveal .boarding-skip{display:none}
.boarding-reveal .ticket-preview,.boarding-reveal.boarding-live .ticket-preview{display:block;width:100%;max-width:900px;overflow:visible;filter:drop-shadow(0 18px 25px #08172577);animation:receipt-reveal .65s ease-out both}
.boarding-reveal .ticket-preview svg{display:block;width:100%;height:auto;max-height:none;animation:none;transform:none;clip-path:none}
@keyframes receipt-reveal{from{opacity:0;transform:translateY(22px) rotate(-2deg) scale(.96)}to{opacity:1;transform:none}}
.boarding-reveal .boarding-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0;color:#f8f1e4}
.boarding-facts div{min-width:0;border-top:1px solid #f7e9d549;padding-top:10px}
.boarding-facts small{display:block;font-size:10px;letter-spacing:.12em;color:#b9cbd6}
.boarding-facts strong{display:block;margin-top:5px;font-size:clamp(14px,2.5vw,20px);overflow-wrap:anywhere}
.boarding-reveal .ticket-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:12px;width:100%;max-width:540px;margin:20px auto 0}
.boarding-reveal .ticket-actions>:is(button,a){display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:48px;padding:10px 12px;gap:7px;line-height:1.4;text-align:center;white-space:normal;word-break:keep-all}
.boarding-reveal .ticket-actions>:is(button,a):only-child{grid-column:1/-1}
.boarding-reveal .ticket-actions svg{flex:none}
.boarding-reveal .ticket-status{text-align:center}
.boarding-stowing .ticket-actions,.boarding-stowing .ticket-status{display:none}
.boarding-stowing .boarding-progress-bar{display:block}
.boarding-stowing .ticket-preview,.boarding-issued .ticket-preview,.boarding-issued.boarding-live .ticket-preview{position:relative;width:210px;height:128px;max-width:60vw;overflow:hidden;display:block;margin:12px auto 8px;filter:drop-shadow(0 8px 12px #12243855)}
.boarding-stowing .ticket-preview svg,.boarding-issued .ticket-preview svg{position:absolute;width:186px;height:auto;left:50%;top:10px;transform:translateX(-50%) rotate(-8deg);z-index:1;animation:none}
.boarding-stowing .ticket-preview svg{animation:stow-ticket-visible 2.7s ease-in-out both}
.boarding-stowing .boarding-passport,.boarding-issued .boarding-passport{display:flex;position:absolute;z-index:2;bottom:-8px;left:50%;transform:translateX(-50%) rotate(3deg);width:82px;height:108px;box-sizing:border-box;border:1px solid #b0a17b;border-radius:3px 7px 7px 3px;background:linear-gradient(125deg,#31594d,#173b36);color:#e5cc91;flex-direction:column;justify-content:space-evenly;align-items:center;font-size:6px;letter-spacing:.05em;box-shadow:inset 4px 0 #142e2a,2px 2px #e1d6b9;padding:8px 2px}
.boarding-passport strong{font-size:22px;font-weight:400}
.boarding-issued .ticket-preview svg{top:20px;transform:translateX(-50%) rotate(83deg) scale(.76)}
@keyframes stow-ticket-visible{0%,20%{top:0;transform:translateX(-50%) rotate(-8deg) scale(.93)}55%{top:-15px;transform:translateX(-50%) rotate(83deg) scale(.76)}100%{top:20px;transform:translateX(-50%) rotate(83deg) scale(.76)}}
@media(max-width:600px){.dialog.ticket-dialog.boarding-reveal{justify-content:center;padding-inline:18px}.boarding-reveal .boarding-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:20px 0}.boarding-reveal .ticket-actions{gap:10px}.boarding-reveal .ticket-actions>:is(button,a){font-size:clamp(12px,3.7vw,14px);padding-inline:10px}.boarding-reveal .boarding-route{font-size:10px}}
@media(max-height:520px){.dialog.ticket-dialog.boarding-reveal{justify-content:flex-start}.boarding-reveal .ticket-preview{max-width:620px}.boarding-reveal .boarding-facts{margin:12px 0}.boarding-reveal .dialog-heading{margin-top:8px}}

/* Only use the flat document illustration if the actual world mesh is absent. */
.boarding-stowing:not(.boarding-fallback) .ticket-preview,
.boarding-issued:not(.boarding-fallback) .ticket-preview{display:none}
.boarding-stowing:not(.boarding-fallback) .boarding-passport,
.boarding-issued:not(.boarding-fallback) .boarding-passport{display:none}
.boarding-issued:not(.boarding-fallback) .boarding-progress{margin-bottom:12px}
.boarding-stowing:not(.boarding-fallback) .boarding-progress{margin-bottom:6px}

/* Staff handoff stays visible until the next checkpoint, including off-camera. */
.checkin-conversation[data-mode="departure"]{background:#192a3bea;border-color:#c8b08a;max-width:min(330px,calc(100% - 32px));z-index:4}
.checkin-conversation[data-mode="departure"] .conversation-speech{margin:0;line-height:1.6}
.checkin-conversation[data-mode="departure"].departure-docked{position:absolute;left:50%;top:auto;bottom:clamp(140px,23vh,205px);transform:translateX(-50%);width:min(360px,calc(100% - 32px));max-width:none;box-sizing:border-box}
.checkin-conversation[data-mode="departure"].departure-docked::after{display:none}
@media(max-width:600px){.checkin-conversation[data-mode="departure"],.checkin-conversation[data-mode="departure"].departure-docked{left:50%;top:auto;bottom:clamp(150px,24vh,220px);transform:translateX(-50%);width:calc(100% - 32px);max-width:350px;box-sizing:border-box}.checkin-conversation[data-mode="departure"]::after{display:none}}


/* World-anchored speech above the attendant, with compact separate replies. */
.cabin-meal-order{position:absolute;z-index:8;left:var(--meal-x,50%);top:var(--meal-y,35%);transform:translate(-50%,-100%);width:max-content;max-width:calc(100% - 16px);display:grid;justify-items:center;gap:6px;pointer-events:none}
.meal-speech{position:relative;margin:0;padding:10px 15px;background:#fff5e4;color:#243347;border:1px solid #b6ad9e;border-radius:12px;font-size:14px;font-weight:650;line-height:1.35;box-shadow:0 3px 12px #111a2633;text-align:center}
.meal-order-choices{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;position:relative;pointer-events:auto}
.meal-order-choices button{border:1px solid #9aabb9;background:#17283bf5;color:#f4f0e9;border-radius:7px;min-height:36px;padding:6px 10px;font-size:12px;white-space:nowrap;box-shadow:0 2px 8px #111a2633}
.meal-order-choices button:hover,.meal-order-choices button:focus-visible{background:#ffc17f;color:#18202b;border-color:#ffc17f}
.meal-order-choices::after,.meal-speech::after{content:"";position:absolute;left:50%;top:100%;border:6px solid transparent;border-top-color:#fff5e4;transform:translateX(-50%)}
.meal-order-choices::after{border-top-color:#17283b}
.cabin-meal-order:has(.meal-order-choices:not([hidden])) .meal-speech::after{display:none}
.cabin-explore:has(.cabin-meal-order:not([hidden])) :is(.cabin-explore-actions,#cabin-camera){visibility:hidden;pointer-events:none}
@media(max-width:600px){.meal-speech{font-size:13px;padding:8px 12px}.meal-order-choices button{font-size:11px;padding:6px 7px;min-height:34px}}


/* Keep the two primary receipt actions at their existing 50:50 width.
   Sharing is a separate lightweight secondary action. */
.ticket-share-row{display:flex;justify-content:center;margin:12px 0 0}
.ticket-share-row[hidden],.boarding-playing .ticket-share-row,.boarding-stowing .ticket-share-row{display:none}
.ticket-share-button{border:0;background:transparent;color:inherit;font:inherit;font-size:13px;font-weight:650;text-decoration:underline;text-underline-offset:3px;padding:8px 12px;min-height:44px;cursor:pointer}
.ticket-share-button:disabled{opacity:.55;cursor:wait}
.boarding-cinematic .ticket-share-button{color:#f6e6cf}


/* Raster save fallback: native image context menu, no SVG or blob download. */
.ticket-save-options{margin:12px 0 0;font-size:13px;line-height:1.5;color:inherit}
.ticket-save-options[hidden],.boarding-playing .ticket-save-options,.boarding-stowing .ticket-save-options{display:none}
.ticket-save-options summary{cursor:pointer;text-align:center;text-decoration:underline;text-underline-offset:3px;padding:8px;min-height:32px}
.ticket-save-options p{margin:8px 0;font-size:12px}
.ticket-save-options img{display:block;width:100%;height:auto;border-radius:0;background:transparent;user-select:auto;-webkit-touch-callout:default;pointer-events:auto}
.ticket-format-links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:8px 0}
.ticket-format-links a{color:inherit;text-decoration:underline;text-underline-offset:3px;padding:10px 8px;min-height:40px}

.analytics-privacy-link{font-size:11px;color:inherit;opacity:.8;text-decoration:underline;white-space:nowrap;align-self:center}

.airport-about-link{display:inline-block;font-size:12px;line-height:1.6;color:inherit;opacity:.8;text-decoration:underline;text-underline-offset:3px;margin-top:6px}
