/* Keep the gallery sky visible behind the selected master, queue and entry choices. */
body[data-lobby=gallery] { --arrival-ink:#f8f2dd; --arrival-muted:#c4c8bb; --arrival-line:#e2e3bd34; }
body[data-lobby=gallery]:has(#requestPanel:not([hidden]) #customerIntake:not([hidden]),#waitingPanel:not([hidden]),#endedPanel:not([hidden])) #galleryWorld { display:block; pointer-events:none; }
body[data-lobby=gallery]:has(#requestPanel:not([hidden]) #customerIntake:not([hidden]),#waitingPanel:not([hidden]),#endedPanel:not([hidden])) :is(.customer-layout,.lobby-header) { position:relative; z-index:1; }
body.coma-lobby .customer-layout:has(#requestPanel:not([hidden]) #customerIntake:not([hidden]),#waitingPanel:not([hidden]),#endedPanel:not([hidden])) {
  width:min(100%,870px); max-width:870px; margin:clamp(18px,6svh,68px) auto; padding:0 22px max(24px,env(safe-area-inset-bottom));
}
.coma-lobby .flow>#requestPanel:has(#customerIntake:not([hidden])) { padding:0; overflow:visible; background:transparent; border:0; box-shadow:none; }
#customerIntake:not([hidden]),#waitingPanel:not([hidden]),#endedPanel:not([hidden]) {
  color:var(--arrival-ink); border:1px solid var(--arrival-line); border-radius:24px;
  background:linear-gradient(130deg,#25282caa,#171b26bd 63%,#233230a1);
  -webkit-backdrop-filter:blur(12px) saturate(110%); backdrop-filter:blur(12px) saturate(110%);
  box-shadow:inset 0 1px #ffffcf19,0 22px 90px #030a0d66;
}
.arrival-master h2,#waitingTitle { font-family:var(--serif); font-weight:400; line-height:1.35; word-break:keep-all; overflow-wrap:anywhere; }
.arrival-master h2 { font-size:clamp(22px,3vw,32px); margin:0; }
#availabilityHint,#waitingText,#entryFeedback { font-size:13px; line-height:1.6; color:var(--arrival-muted); word-break:keep-all; }
#availabilityHint { margin:7px 0 0; }
.arrival-seal { position:relative; width:clamp(94px,13vw,148px); aspect-ratio:1; flex-shrink:0; }
.arrival-seal canvas,.arrival-seal img { width:100%; height:100%; display:block; }
.arrival-seal img { position:absolute; inset:8%; width:84%; height:84%; object-fit:cover; border-radius:50%; }
.arrival-seal img[hidden] { display:none; }
#selectedShop { font-size:12px; color:#efe3c7; }
.arrival-profile a,#continueLogin { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; text-underline-offset:4px; }
#requestForm { margin:0; }
#requestForm.ticket-first > :is(.check:has(#consent),.intake-detail:has(#alias),#deviceCheck,.privacy) { display:none; }
#endedPanel:not([hidden]) { max-width:31rem; margin:auto; }
#endedPanel .muted,#endedPanel .end-meta { color:#e9e5db; }
.arrival-fields { min-width:0; padding:clamp(22px,3.4vw,44px); }
#customerIntake label { min-width:0; }
#customerIntake input:not([type=checkbox]),#customerIntake textarea { width:100%; box-sizing:border-box; min-width:0; min-height:46px; font-size:16px; color-scheme:dark; }
#customerIntake #requestButton { width:100%; margin-top:16px; min-height:48px; border-radius:99px; }
#customerIntake #deviceCheck .device-check { margin:0; padding:0; }
#customerIntake .intake-detail summary,#customerIntake .device-check summary { min-height:44px; padding:12px 0; }
#customerIntake .check { margin-top:12px; font-size:13px; }
.guide-sound-option {
  display:flex; align-items:center; gap:11px; min-height:58px; padding:9px 12px;
  border:1px solid #efe2c841; border-radius:15px; background:#efe2c80e; cursor:pointer;
}
#guideSoundIcon { color:#e9d8b1; flex:none; }
#guideSoundIcon .space-icon { width:21px; height:21px; }
.guide-sound-copy { display:flex; flex:1; align-items:baseline; flex-wrap:wrap; gap:2px 8px; }
.guide-sound-copy strong { color:#f8f2e4; font-size:14px; }
.guide-sound-copy small { color:#dfd8c8; font-size:12px; }
.guide-sound-control { position:relative; flex:none; width:42px; height:24px; }
.guide-sound-control input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; }
.guide-sound-control input+span { display:block; width:100%; height:100%; border:1px solid #ece1c661; border-radius:20px; background:#1c2423; pointer-events:none; }
.guide-sound-control input+span::after { content:""; display:block; width:16px; height:16px; margin:3px; border-radius:50%; background:#eee6d6; transition:transform .18s; }
.guide-sound-control input:checked+span { background:#d7c499; border-color:#d7c499; }
.guide-sound-control input:checked+span::after { transform:translateX(18px); background:#272c22; }
.guide-sound-control input:focus-visible+span { outline:2px solid #ecd8a5; outline-offset:3px; }
.guide-sound-control input:disabled+span { opacity:.6; }
#customerIntake .privacy summary { min-height:44px; }
#waitingPanel:not([hidden]) { position:relative; text-align:center; width:min(100%,490px); margin:auto; padding:clamp(28px,6vh,56px) clamp(18px,4vw,40px) 22px; animation:arrival-reveal .32s ease-out; }
#waitingPanel .arrival-seal { width:clamp(108px,17vh,148px); margin:0 auto 15px; }
#waitingPanel .arrival-seal::after { content:""; position:absolute; inset:-2px; border-radius:50%; border:1px solid #f6e1a532; pointer-events:none; }
#waitingPanel[data-stage=queued] .arrival-seal::after { border-top-color:#f8dfa4; border-right-color:transparent; animation:arrival-orbit 4s linear infinite; }
#waitingPanel[data-stage=ready] .arrival-seal::after { border-color:#ecd7a282; box-shadow:0 0 22px #d1c48a1b; }
#waitingMaster { margin:0 0 8px; color:#eddfb5; font-size:14px; }
#waitingTitle { font-size:clamp(23px,4.2vw,32px); margin:0; }
#waitingText { margin:8px 0 0; }
#entryModes:not([hidden]) { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:24px; }
#entryModes button { min-width:0; min-height:50px; display:flex; align-items:center; justify-content:center; gap:8px; font-size:15px; padding:8px; word-break:keep-all; }
#entryModes button[hidden] { display:none; }
#entryModes:has([data-mode=voice][hidden]) [data-mode=chat],#entryModes .quiet,#entryModes [data-mode=experience] { grid-column:1/-1; }
#entryModes [data-mode=experience] { min-height:52px; white-space:nowrap; border-radius:99px; }
#entryModes .quiet { min-height:44px; font-size:13px; }
#entryModes .space-icon { width:19px; height:19px; }
#entryFeedback { color:#f4dcac; margin:8px 0 0; }
#waitingPanel #cancelButton { display:block; min-height:44px; margin:18px auto 0; font-size:13px; color:var(--arrival-muted); }
#waitingPanel .payment-link:not([hidden]) { display:inline-flex; justify-content:center; align-items:center; min-height:48px; margin-top:22px; }
@keyframes arrival-orbit { to{transform:rotate(1turn)} }
@keyframes arrival-reveal { from{opacity:.45;transform:translateY(5px)} to{opacity:1;transform:none} }
@media(max-width:620px) {
  body.coma-lobby .customer-layout:has(#requestPanel:not([hidden]) #customerIntake:not([hidden]),#waitingPanel:not([hidden])) { margin:14px auto; padding-inline:14px; }
  .arrival-fields { padding:20px; }
  #waitingPanel:not([hidden]) { margin-top:clamp(8px,5svh,54px); }
}
@media(max-width:360px) {
  .arrival-fields { padding:15px; }
  #entryModes button { font-size:14px; }
}
@media(prefers-reduced-motion:reduce) {
  #waitingPanel:not([hidden]),#waitingPanel[data-stage=queued] .arrival-seal::after { animation:none; }
  .guide-sound-control input+span::after { transition:none; }
}

#roomArrival { display:none; }
body.room-arriving #galleryWorld { display:block; pointer-events:none; }
.room-arriving .flow { position:relative; }
.room-arriving #roomArrival { display:block; margin:18svh auto 0; color:#f4e8ce; text-align:center; }
body.room-arriving #roomPanel { display:none; }
body.space-session #consultationUniverse { animation:arrival-reveal .35s ease-out; }
#selectedOracleTitle:focus,#waitingTitle:focus { outline:0; }
#waitingText:empty { display:none; }
#entryCountdown { margin:12px 0 0; color:var(--arrival-muted); font-size:12px; font-variant-numeric:tabular-nums; }
@media(max-width:560px) {
  body:has(#waitingPanel:not([hidden])) .lobby-header { padding-inline:16px; gap:5px; border-bottom-color:transparent; }
  body:has(#waitingPanel:not([hidden])) .coma-wordmark { font-size:25px; letter-spacing:-.05em; }
}
@media(prefers-reduced-motion:reduce) { body.space-session #consultationUniverse { animation:none; } }
