* {
  box-sizing:border-box
}
html,body,#game {
  margin:0;
  width:100%;
  height:100%;
  overflow:hidden
}
body {
  background:#090f17;
  color:#f4eee2;
  font:15px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft Yahei",sans-serif
}
button,select,input {
  font:inherit
}
button,a,select,label {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer;
  color:inherit;
  border:0;
  background:none
}
button:disabled {
  opacity:.4;
  cursor:default
}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible {
  outline:2px solid #eec68a;
  outline-offset:3px
}
button:hover:not(:disabled) {
  filter:brightness(1.16)
}
[hidden] {
  display:none!important
}
.defs {
  display:none
}
svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none
}
#sky,#vignette {
  position:absolute;
  inset:0;
  width:100%;
  height:100%
}
#sky {
  touch-action:none
}
#vignette {
  pointer-events:none;
  background:linear-gradient(90deg,rgba(6,11,17,.79),rgba(6,11,17,.48) 31%,transparent 64%),linear-gradient(0deg,#070d15b5,transparent 24%,transparent 79%,#080d1670)
}
body.boarded #vignette {
  background:linear-gradient(0deg,#060a1170,transparent 16%,transparent 86%,#070c1290);
  transition:background 1s
}
header {
  position:absolute;
  left:0;
  right:0;
  top:0;
  padding:clamp(16px,3vh,36px) clamp(20px,4vw,72px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
  z-index:3
}
header>* {
  pointer-events:auto
}
#brand {
  color:#f0e8d8;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:650;
  letter-spacing:.12em
}
#brand svg {
  width:29px;
  height:29px;
  stroke-width:1.35
}
.headright {
  display:flex;
  gap:14px;
  align-items:center
}
#roomtag {
  font:11px/1.2 ui-monospace,monospace;
  letter-spacing:.09em;
  color:#e0d7c8;
  text-shadow:0 1px 4px #000
}
.iconbtn {
  border:1px solid #cdd6db40;
  border-radius:50%;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  background:#0d151bb0
}
.iconbtn svg {
  width:17px;
  height:17px
}
#entry {
  position:absolute;
  top:49%;
  left:clamp(28px,8.2vw,170px);
  transform:translateY(-50%);
  width:min(510px,82vw)
}
.eyeline {
  color:#ddbd8a;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  letter-spacing:.16em;
  font-weight:550
}
.eyeline>span {
  width:26px;
  height:1px;
  background:currentColor
}
.eyeline b {
  font-weight:500
}
h1,h2,h3,p {
  margin:0
}
h1,#hud h2,.panelhead h2 {
  font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;
  font-weight:550
}
h1 {
  letter-spacing:.045em;
  font-size:clamp(64px,7.1vw,118px);
  line-height:1.20;
  margin:18px 0 15px;
  text-shadow:0 4px 20px #0003
}
#entry>p {
  line-height:1.9;
  font-size:clamp(16px,1.36vw,22px);
  color:#e1ded6;
  letter-spacing:.045em
}
fieldset {
  border:none;
  padding:0;
  margin:clamp(22px,4vh,45px) 0 20px
}
legend {
  padding:0 0 9px;
  color:#cacaC5;
  font-size:12px
}
.segments {
  display:inline-flex;
  border:1px solid #b2b7b34d;
  padding:3px;
  border-radius:8px;
  background:#13191c90
}
.segments button {
  border-radius:5px;
  padding:6px 18px;
  color:#c4c5c4;
  font-size:13px
}
.segments [aria-pressed=true] {
  background:#ead5b2;
  color:#26221d
}
.entryactions,.panelLinks {
  display:flex;
  align-items:center;
  gap:22px
}
.primary {
  background:#efc991;
  color:#262018;
  border-radius:6px;
  min-height:44px;
  padding:12px 21px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:25px;
  font-weight:650;
  letter-spacing:.02em
}
.quiet {
  color:#dfdcd2;
  padding:8px 0;
  display:inline-flex;
  align-items:center;
  gap:7px
}
.quiet svg {
  width:15px;
  height:15px
}
.entryactions .quiet {
  font-size:14px;
  border:1px solid #c8b99b94;
  border-radius:6px;
  background:#131b23cf;
  min-height:44px;
  padding:9px 18px
}
#homefoot {
  position:absolute;
  bottom:clamp(20px,5vh,55px);
  left:clamp(28px,8.2vw,170px);
  display:flex;
  align-items:center;
  gap:12px;
  color:#d1cdc4;
  font-size:12px;
  letter-spacing:.11em
}
#homefoot i {
  width:1px;
  height:12px;
  background:#b9ab935e
}
.dot {
  width:6px;
  height:6px;
  background:#dab988;
  border-radius:50%;
  box-shadow:0 0 8px #d8a75b70
}
.routebar {
  width:33px;
  height:1px;
  background:#b2a17d
}
#hud {
  position:absolute;
  left:clamp(18px,4vw,70px);
  bottom:clamp(25px,8.4vh,80px);
  pointer-events:none;
  text-shadow:0 1px 3px #090b0f,0 2px 12px #08090d
}
#hud:before {
  content:'';
  position:absolute;
  z-index:-1;
  inset:-14px -28px;
  background:radial-gradient(ellipse at left center,#0a1018a3,transparent 75%);
  pointer-events:none
}
#hud {
  isolation:isolate
}
#hud h2 {
  font-size:clamp(38px,4.3vw,76px);
  letter-spacing:.07em;
  line-height:1.28;
  margin:5px 0
}
#phaseText {
  font-size:13px;
  color:#e1ddd4;
  letter-spacing:.07em
}
#track {
  margin-top:12px;
  width:105px;
  height:2px;
  background:#e5dac13f
}
#track i {
  display:block;
  background:#ecc884;
  height:100%;
  width:0
}
#toolbar {
  position:absolute;
  right:clamp(18px,4vw,72px);
  bottom:clamp(20px,5vh,50px);
  display:flex;
  align-items:center;
  gap:3px;
  padding:4px;
  border:1px solid #a9acab42;
  border-radius:9px;
  background:#0b131ce0;
  backdrop-filter:blur(12px)
}
#toolbar button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:9px 11px;
  font-size:13px;
  border-radius:5px
}
#toolbar svg {
  width:17px;
  height:17px
}
#toolbar button:hover {
  background:#ffffff13
}
#panel {
  position:absolute;
  z-index:4;
  right:clamp(14px,3.6vw,66px);
  top:clamp(65px,10vh,100px);
  width:330px;
  max-height:calc(100dvh - 92px);
  display:flex;
  flex-direction:column;
  background:linear-gradient(145deg,#19232cf9,#101922fa 70%);
  border:1px solid #a7b1b54a;
  border-radius:12px;
  box-shadow:0 20px 80px #0006;
  backdrop-filter:blur(18px)
}
.panelhead {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 21px 12px
}
.panelhead .eyeline {
  font-size:10px
}
.panelhead .eyeline>span {
  width:14px
}
.panelhead h2 {
  font-size:28px;
  letter-spacing:.06em;
  margin-top:4px
}
.panelhead .iconbtn {
  width:28px;
  height:28px;
  padding:0;
  flex:none
}
.scroll {
  padding:0 21px 8px;
  overflow-y:auto;
  scrollbar-width:thin;
  overscroll-behavior:contain
}
.mapbox {
  position:relative;
  border:1px solid #b3c0c429;
  border-radius:5px;
  background:#0a131c;
  overflow:hidden
}
.mapbox svg {
  width:100%;
  height:74px;
  display:block
}
.mapbox small {
  position:absolute;
  left:8px;
  bottom:4px;
  color:#a6b3ba;
  font-size:9px
}
.sectionline {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:13px 0 7px
}
.sectionline h3 {
  font-size:13px;
  color:#e5dfd2;
  font-weight:600
}
.sectionline>span,.position,.panelend p,.panelLinks,.scroll small {
  font-size:11px;
  color:#b9c0c0
}
.destinations {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px
}
.destinations button {
  padding:8px;
  border:1px solid #7f919450;
  border-radius:5px;
  display:flex;
  align-items:center;
  gap:8px;
  background:#34404b45;
  font-size:13px
}
.destinations b {
  margin-left:auto;
  color:#cdbb9e;
  font-size:15px
}
.sunmini,.satmini {
  display:inline-block;
  width:12px;
  height:12px;
  border-radius:50%;
  background:radial-gradient(circle at 34% 35%,#ffe9a6,#e89939 58%,#a6501e);
  margin:0 3px
}
.satmini {
  background:linear-gradient(32deg,#816f62,#d5b78c 53%,#ae9070);
  position:relative
}
.satmini:after {
  content:"";
  position:absolute;
  inset:3px -4px;
  border:1px solid #d8c3a2;
  border-radius:50%;
  transform:rotate(-28deg)
}
ol {
  list-style:none;
  padding:0;
  margin:6px 0
}
li {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:30px;
  border-bottom:1px solid #a2adb32a;
  font-size:13px
}
.num {
  font:11px ui-monospace,monospace;
  color:#ba9b72
}
.routebuttons {
  margin-left:auto;
  display:flex
}
.routebuttons button {
  width:29px;
  height:29px;
  font-size:14px;
  color:#d6d0c4
}
.lock {
  margin-left:auto;
  font-size:10px;
  color:#b9ae99
}
#seats {
  display:flex;
  gap:5px;
  flex-wrap:wrap
}
#seats span {
  font-size:12px;
  border-radius:4px;
  background:#ffffff0b;
  padding:4px 6px;
  color:#d8d5cd
}
#poseRow,.position {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:9px
}
#poseRow label {
  font-size:12px
}
#pose {
  accent-color:#e8bf87;
  vertical-align:middle
}
.position select {
  padding:3px 18px 3px 7px;
  border:1px solid #828e9758;
  background:#19232b;
  color:#e0dbd0;
  border-radius:4px;
  font-size:12px
}
.panelLinks {
  justify-content:space-between;
  margin-top:6px
}
.panelLinks button {
  font-size:12px
}
.panelend {
  padding:10px 21px 16px;
  border-top:1px solid #ced4da25
}
.panelend p {
  margin-bottom:7px
}
.panelend .primary {
  width:100%;
  min-height:37px;
  padding:8px
}
.panelend p:empty {
  display:none
}
#share label {
  display:block;
  font-size:11px;
  color:#c4bea9
}
#shareurl {
  width:100%;
  font-size:12px;
  color:white;
  background:#0c131a;
  border:1px solid #5e6261;
  border-radius:4px;
  padding:5px
}
#toast {
  pointer-events:none;
  position:absolute;
  z-index:7;
  left:50%;
  top:12%;
  transform:translateX(-50%);
  background:#111c26ee;
  border:1px solid #8b939655;
  padding:8px 15px;
  border-radius:6px;
  font-size:13px;
  max-width:86vw;
  text-align:center
}
#toast:empty {
  display:none
}
#pointMark {
  position:absolute;
  z-index:2;
  pointer-events:none;
  display:flex;
  align-items:center;
  gap:8px;
  text-shadow:0 1px 8px #000;
  color:#ffedbc;
  font-size:12px
}
#pointMark span {
  width:24px;
  height:24px;
  border:1px solid #ffebba;
  border-radius:50%;
  box-shadow:0 0 8px #ffbb5550
}
#fatal {
  position:absolute;
  z-index:10;
  inset:0;
  background:#0d1720;
  display:grid;
  align-content:center;
  justify-content:center;
  text-align:center;
  gap:12px;
  padding:24px
}
#fatal button {
  color:#e2b983
}
@media(max-width:650px) {
  header {
    padding:14px 18px
  }
  #entry {
    left:25px;
    top:60%;
    width:86vw
  }
  h1 {
    font-size:61px;
    margin:8px 0
  }
  #entry>p {
    font-size:15px;
    line-height:1.65
  }
  fieldset {
    margin:17px 0 13px
  }
  #vignette {
    background:linear-gradient(0deg,#080e16 0%,#080e16e8 18%,#0a111be6 40%,transparent 80%)
  }
  .eyeline {
    font-size:11px
  }
  #homefoot {
    left:25px;
    bottom:20px
  }
  #hud {
    bottom:86px;
    left:19px
  }
  #hud h2 {
    font-size:37px
  }
  #toolbar {
    right:14px;
    bottom:max(16px,env(safe-area-inset-bottom))
  }
  #panel {
    right:8px;
    top:62px;
    width:min(340px,calc(100vw - 16px));
    max-height:calc(100dvh - 75px)
  }
  .panelhead {
    padding-top:12px
  }
  .panelhead h2 {
    font-size:23px
  }
  .mapbox svg {
    height:61px
  }
  body.panelopen #hud {
    visibility:hidden
  }
  #roomtag {
    font-size:9px
  }
}
@media(max-height:510px) and (min-aspect-ratio:1/1) {
  header {
    padding:8px 15px
  }
  #entry {
    left:6vw;
    top:54%
  }
  h1 {
    font-size:45px;
    margin:4px 0
  }
  #entry>p {
    font-size:12px;
    line-height:1.42
  }
  fieldset {
    margin:6px 0
  }
  legend {
    padding-bottom:2px
  }
  .segments button {
    padding:3px 11px
  }
  .entryactions .primary {
    min-height:30px;
    padding:6px 13px
  }
  #homefoot {
    display:none
  }
  #hud {
    bottom:16px
  }
  #panel {
    top:6px;
    right:7px;
    max-height:calc(100dvh - 12px)
  }
  .panelhead {
    padding:7px 14px
  }
  .panelhead h2 {
    font-size:21px
  }
  .panelhead .eyeline {
    display:none
  }
  .panelend {
    padding:6px 14px
  }
  .scroll {
    padding:0 14px
  }
  .panelend p {
    margin:0
  }
  .mapbox svg {
    height:48px
  }
}
.destinations{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.destinations button{font-size:12px;padding:7px 5px;gap:4px}
.destinations button .bodydot{width:10px;height:10px;border-radius:50%;display:inline-block;flex:none;background:var(--tint);box-shadow:inset -3px -2px 3px #0006}
.destinations .groupname{grid-column:1/-1;font-size:11px;color:#c4b59c;margin-top:4px}
 .presets{display:flex;gap:6px;margin-top:8px}
.presets button{flex:1;min-height:38px;border:1px solid #52606c;border-radius:5px;background:#17212a;color:#dce1e6;font-size:14px}
.presets button[aria-pressed=true]{background:#382d22;border-color:#bc9869;color:#ffe0b4}
#routeSummary{color:#d9c8ae;margin:9px 0;font-size:13px}
#customStops summary{cursor:pointer;color:#c8d3dc;font-size:14px;padding:5px 0}

#walkControls{position:absolute;left:max(18px,4vw);bottom:max(21px,4vh);display:flex;align-items:center;gap:10px;user-select:none}
#walkpad{width:78px;height:78px;display:grid;place-items:center;border:1px solid #bcb6ab79;border-radius:50%;background:radial-gradient(circle,#161b207a,#15191fcc);touch-action:none;cursor:move}
#walkpad span{display:block;width:30px;height:30px;border:1px solid #d6c4a9a6;border-radius:50%;background:#8878608a;pointer-events:none}
#turnback{padding:6px 12px;background:#111a20d8;border:1px solid #c3b8a378;border-radius:16px;font-size:12px}
body.walking #hud{bottom:calc(max(21px,4vh) + 95px)}
body.panelopen #walkControls{visibility:hidden}
#toolbar button[aria-pressed=true]{background:#e4c79e;color:#1a1c1d}
@media(max-width:650px){#toolbar{right:8px;left:8px;justify-content:space-around}#toolbar button{font-size:12px;padding:9px 4px;gap:4px}#toolbar svg{width:15px}#walkControls{left:15px;bottom:75px}#walkpad{width:71px;height:71px}body.walking #hud{bottom:157px}body.walking #hud h2{font-size:28px}}
@media(max-height:500px) and (min-aspect-ratio:1/1){#walkpad{width:62px;height:62px}body.walking #hud{bottom:88px}}
#sky:focus{outline:none}

.atlasLink{color:#e8cca7;font-size:12px;text-decoration:underline;text-underline-offset:.20em;margin-left:auto;margin-right:7px}

#flightNavSlot {
  position:absolute; z-index:3; left:50%; top:clamp(12px,2.2vh,28px);
  width:max-content; max-width:calc(100% - 16px);
  transform:translateX(-50%);
}
#advanceRow {
  display:flex; align-items:stretch; gap:6px; padding:4px;
  background:#101821ed; border:1px solid #87919b82; border-radius:9px;
  box-shadow:0 3px 14px #0005;
}
#advanceRow button {
  min-height:44px; min-width:109px; padding:4px 8px; text-align:center; line-height:1.3;
  border-radius:5px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px;
  color:#efece4; font-size:15px; font-weight:600; touch-action:manipulation;
}
#advanceRow button:disabled {opacity:.49}
#advanceRow button:not(:disabled):hover {background:#ffffff1c}
#advanceRow #skip:not(:disabled) {background:#e9c594; color:#242018}
#advanceRow #pauseFlight {flex:none; min-width:52px; padding-inline:8px; white-space:nowrap}
#advanceRow small {max-width:100%; overflow-wrap:anywhere; text-wrap:balance; font-size:12px; font-weight:450}
#panelNavSlot:has(#advanceRow:not([hidden])) {padding:0 17px 10px}
#panelNavSlot :is(#previous,#skip) {flex:1 1 0; min-width:0}
#surveyPanel {background:#111a25eb;border:1px solid #89959f83;border-radius:7px;color:#e7ecef}
#surveyPanel{position:absolute;top:75px;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:auto auto auto minmax(0,1fr);width:min(360px,calc(100% - 16px));min-height:44px;gap:10px;align-items:center;padding:6px 12px;white-space:nowrap;font-size:13px}
#surveyReadout{white-space:normal;font-variant-numeric:tabular-nums;line-height:1.3}
#surveyPanel select{background:#202d3a;color:white;border:0;padding:6px;border-radius:4px;font:inherit}
#surveyReadout{color:#c6cdd2;font-variant-numeric:tabular-nums}
body.panelopen #surveyPanel{visibility:hidden}
@media(max-width:650px) {
  #flightNavSlot{top:calc(max(12px,env(safe-area-inset-top)) + 46px)}
  #advanceRow button{min-width:100px;padding-inline:8px}
  #toolbar button{flex-direction:column;min-height:42px;font-size:11px;gap:3px}
  #surveyPanel{top:calc(max(12px,env(safe-area-inset-top)) + 106px);gap:6px}
}
@media(min-width:651px) and (max-width:870px) {
  #flightNavSlot { top:calc(max(16px,3vh) + 48px) }
  #surveyPanel { top:calc(max(16px,3vh) + 108px) }
}
@media(max-width:375px) {
  #advanceRow button{min-width:91px;padding-inline:5px;font-size:14px}
  #panelNavSlot:has(#advanceRow:not([hidden])) {padding-inline:8px}
}
@media(max-height:500px) and (min-aspect-ratio:1/1) {
  #flightNavSlot{top:calc(max(8px,env(safe-area-inset-top)) + 40px)}
  #panelNavSlot:has(#advanceRow:not([hidden])){padding-bottom:4px}
}
#recenterSky{border:1px solid #78828e78;border-radius:4px;padding:5px 7px;color:#dae1e7}
body.surveying #flight::after{content:'';position:absolute;left:50%;top:50%;width:24px;height:24px;border:1px solid #bfccdd53;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}

@media (max-width:650px) {
  header { padding-top:max(14px,env(safe-area-inset-top)) }
  #panel {
    top:calc(max(14px,env(safe-area-inset-top)) + 48px);
    max-height:calc(100dvh - max(14px,env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 61px);
  }
}
@media (orientation:landscape) and (pointer:coarse) {
  header {
    padding-left:max(15px,env(safe-area-inset-left));
    padding-right:max(15px,env(safe-area-inset-right));
    padding-top:max(8px,env(safe-area-inset-top));
  }
}

.presets{flex-wrap:wrap}
.presets button{flex:1 1 28%;padding:5px 6px}
#cloudSide{pointer-events:auto;margin-top:7px;background:#101b24cf;color:#e8eaf0;border:1px solid #50616c;border-radius:5px;padding:5px 10px;font:inherit;font-size:12px;touch-action:manipulation}

.entryChoices {display:flex;align-items:flex-end;gap:clamp(12px,2vw,24px);flex-wrap:wrap;margin:clamp(22px,4vh,45px) 0 20px}
.entryChoices fieldset {margin:0}
#entryTourRow {display:grid;gap:9px;color:#cacac5;font-size:12px}
#entryTour {height:37px;padding:0 9px;color:#ebe4d8;background:#181d23;border:1px solid #b2b7b34d;border-radius:7px;font:inherit}
@media(max-width:650px){.entryChoices{margin:17px 0 13px;gap:12px}.entryChoices .segments button{padding-inline:13px}}
@media(max-width:380px){.entryChoices .segments button{padding-inline:9px}#entryTour{padding-inline:4px}}
@media(max-height:510px) and (min-aspect-ratio:1/1){.entryChoices{margin:6px 0}#entryTourRow{gap:2px}#entryTour{height:29px}}

#stopCue {
  max-width: min(30em, 66vw);
  margin: 6px 0 0;
  color: #eee3ce;
  font-size: 13px;
  line-height: 1.5;
}

#entry.finiteTour #roamStart { display: none }
