:root {
  color-scheme:dark;
  --bg:#111b20;
  --panel:#1b292e;
  --panel-deep:#16242a;
  --line:#37464a;
  --txt:#eff2e4;
  --muted:#a8b8b8;
  --faint:#829699;
  --lime:#c3e698;
  --lime-ink:#273b2d;
  --amber:#efc688;
  --ink:#253b39;
  --radius:12px;
  font-family:Inter,"Noto Sans CJK SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:16px;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--txt);
  min-height:100vh;
}

button,input,select,textarea {
  font:inherit;
}

button {
  cursor:pointer;
  color:inherit;
  border:0;
  background:transparent;
}

button:disabled {
  opacity:.45;
  cursor:default;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #eac787;
  outline-offset:3px;
}

button,input,select,textarea {
  -webkit-tap-highlight-color:transparent;
}

button {
  touch-action:manipulation;
}

button:hover:not(:disabled) {
  filter:brightness(1.08);
}

h1,h2,h3,p {
  margin:0;
}

h1,h2,h3 {
  line-height:1.35;
}

i[data-i] {
  display:inline-flex;
  font-style:normal;
}

.icon {
  display:inline-block;
  vertical-align:middle;
  flex-shrink:0;
}

button,.brand,.small-link,.panel-head h2,.shelf-heading h2 {
  align-items:center;
}

.topbar {
  height:78px;
  border-bottom:1px solid #354348;
  background:#142126;
}

.bar-inner,.shell {
  width:min(1510px,100%);
  margin:auto;
  padding-inline:clamp(20px,3.65vw,66px);
}

.bar-inner {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  height:100%;
  gap:18px;
}

.brand {
  display:inline-flex;
  justify-self:start;
  gap:12px;
  text-align:left;
  padding:0;
  white-space:nowrap;
}

.brand span:last-child {
  display:flex;
  flex-direction:column;
}

.logo-art {
  display:block;
  width:56px;
  height:45px;
  filter:drop-shadow(0 2px 0 #0e171a);
}

.brand b {
  font-size:23px;
  letter-spacing:.1em;
  color:#f0f1e6;
  font-weight:850;
  line-height:1.2;
}

.brand small {
  font:700 10px/1.5 ui-monospace,monospace;
  letter-spacing:.19em;
  color:#acc995;
}

.tabs {
  display:flex;
  gap:6px;
}

.tabs button {
  display:flex;
  justify-content:center;
  gap:9px;
  padding:10px 17px;
  border-radius:7px;
  white-space:nowrap;
  color:#afbfbd;
  font-size:15px;
  font-weight:590;
}

.tabs button.active {
  color:var(--lime);
  background:#293b34;
  box-shadow:inset 0 0 0 1px #435444;
}

.tabs button:hover,.tool:hover,.next-track:hover {
  background:#25363b;
}

.tools {
  justify-self:end;
  display:flex;
  gap:9px;
}

.tool,.icon-button {
  width:39px;
  height:39px;
  border:1px solid var(--line);
  border-radius:8px;
  display:inline-grid;
  place-items:center;
  color:#c0cdca;
}

.tool {
  background:#1b292e;
}

.shell {
  padding-block:25px 35px;
}

.cockpit {
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(315px,26.5vw,386px);
  gap:18px;
  align-items:stretch;
}

.scene-box {
  min-width:0;
  min-height:530px;
  position:relative;
  isolation:isolate;
  border:1px solid #435451;
  border-radius:var(--radius);
  overflow:hidden;
  background:#91afba;
}

.scene-box canvas {
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  touch-action:pan-y;
}

.scene-box.steerable canvas {
  touch-action:none;
}

.scene-shade,.flash {
  position:absolute;
  pointer-events:none;
  inset:0;
}

.scene-shade {
  background:linear-gradient(180deg,rgba(25,42,37,.11),transparent 16%,transparent 62%,rgba(15,24,24,.16) 70%,rgba(12,24,23,.80) 100%);
}

.scene-hud {
  position:absolute;
  inset:18px 18px auto;
  display:flex;
  justify-content:space-between;
  align-items:start;
  pointer-events:none;
}

.scene-hud>* {
  pointer-events:auto;
}

.sky-tag,.glass {
  background:rgba(28,48,48,.84);
  border:1px solid #d9e0ca65;
  color:#f1f2db;
  box-shadow:0 2px 5px #1425231f;
  backdrop-filter:blur(5px);
}

.sky-tag {
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:36px;
  border-radius:7px;
  padding:6px 11px;
  font-size:14px;
  line-height:1.2;
  font-weight:650;
}

.sky-tag .sky-icon {
  width:24px;
  height:22px;
}

.sky-tag .tag-divider {
  height:12px;
  background:#c8d6c76b;
  width:1px;
}

.sky-tag b {
  font:600 14px/1.2 ui-monospace,monospace;
}

.glass {
  width:36px;
  height:36px;
  border-radius:7px;
  --icon-bg:#334846;
}

.scene-caption {
  position:absolute;
  bottom:24px;
  left:26px;
  right:98px;
  pointer-events:none;
  text-shadow:0 2px 4px #14221e7a;
}

.location {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  letter-spacing:.08em;
  color:#eeeccd;
  font-weight:600;
}

.location .route-id {
  display:inline-flex;
  letter-spacing:.04em;
  font:700 12px/1 ui-monospace,monospace;
  background:#d9e3b9;
  color:#33463e;
  border-radius:3px;
  text-shadow:none;
  padding:4px 6px;
  margin-right:3px;
}

.scene-caption h1 {
  font-size:clamp(32px,3.2vw,50px);
  font-weight:850;
  letter-spacing:.085em;
  margin:5px 0 6px;
  color:#fff7e4;
  line-height:1.3;
}

.landmarks {
  display:flex;
  align-items:center;
  gap:8px;
  color:#e4e9dc;
  font-size:14px;
  font-weight:540;
  letter-spacing:.025em;
}

.landmarks i {
  width:12px;
  height:1px;
  background:#d7dac899;
}

.scene-actions {
  position:absolute;
  bottom:22px;
  right:18px;
  display:flex;
  gap:7px;
}

.glass.active {
  border-color:var(--lime);
  color:var(--lime);
  background:#345344;
}

.console {
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}

.panel {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:17px 19px;
}

.panel-head,.shelf-heading,.sub-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.panel-head h2,.shelf-heading h2,.sub-head h2 {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:17px;
  letter-spacing:.035em;
  font-weight:730;
}

.panel-head h2>.icon,.panel-head h2>i,.shelf-heading h2>.icon,.shelf-heading h2>i {
  color:var(--lime);
}

.panel-head h2>i .icon,.shelf-heading h2>i .icon {
  width:19px;
  height:19px;
}

.status {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 9px;
  border:1px solid #4b5b4a;
  border-radius:20px;
  font-size:12px;
  line-height:1.5;
  color:#c9d6ab;
  background:#2c3932;
}

.status:before {
  content:'';
  width:5px;
  height:5px;
  background:#b9d391;
  border-radius:50%;
}

.status.live:before {
  box-shadow:0 0 6px #c6e29d;
}

.focus-panel {
  padding-top:18px;
}

.clock {
  color:#e0edce;
  margin:20px auto 7px;
  display:flex;
  justify-content:center;
  height:clamp(40px,3.7vw,53px);
}

.clock svg {
  height:100%;
  width:auto;
  max-width:100%;
  filter:drop-shadow(0 2px 0 #91b38a40);
}

.timer-label {
  text-align:center;
  font-size:12px;
  letter-spacing:.12em;
  color:var(--muted);
}

.journey-track {
  margin:17px 0;
}

.track-labels {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  font-size:15px;
  font-weight:680;
  color:#d8e3d7;
}

.track-labels span {
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.track-labels span:first-child:before {
  content:'';
  width:7px;
  height:7px;
  border:2px solid #a4c28b;
  border-radius:50%;
}

.track-labels span:last-child .icon {
  color:var(--muted);
  width:14px;
  height:14px;
}

.track-line {
  background:#344448;
  height:5px;
  border-radius:3px;
  margin:10px 0 2px;
  position:relative;
  overflow:hidden;
}

.track-line b {
  height:100%;
  display:block;
  min-width:4px;
  background:var(--lime);
  border-radius:3px;
  transition:width .4s linear;
}

.primary,.secondary,.neutral {
  min-height:41px;
  padding:9px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:7px;
  font-size:15px;
  font-weight:670;
}

.primary {
  background:var(--lime);
  color:#23392b;
  border:1px solid #d3eeb3;
}

.primary:hover {
  background:#d3edb1;
}

.main-action {
  width:100%;
  min-height:44px;
  font-size:17px;
  letter-spacing:.06em;
}

.primary .icon {
  width:17px;
  height:17px;
}

.secondary {
  color:#d5e9c3;
  background:#2c4237;
  border:1px solid #516a52;
}

.neutral {
  background:#223239;
  border:1px solid #415355;
  color:#dae0d5;
}

.under-cta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:10px;
  color:var(--faint);
  font-size:12px;
}

.under-cta button {
  display:inline-flex;
  gap:4px;
  color:#b3c3bd;
  font-size:12px;
  padding:2px;
}

.small-link {
  display:inline-flex;
  gap:4px;
  color:#b9c8bc;
  font-size:13px;
  padding:3px 0;
}

.small-link:hover {
  color:var(--lime);
}

.weather-panel {
  flex:1;
  display:flex;
  flex-direction:column;
}

.forecast {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:13px 0;
}

.forecast button {
  display:flex;
  flex-direction:column;
  gap:4px;
  position:relative;
  min-width:0;
  font-size:13px;
  line-height:1.4;
  padding:1px 2px;
}

.forecast button+button:before {
  content:'';
  position:absolute;
  left:0;
  top:6px;
  bottom:6px;
  width:1px;
  background:#36464b;
}

.forecast .sky-icon {
  height:32px;
  width:39px;
  display:block;
  margin:2px 0;
}

.forecast .phase-time {
  font-size:12px;
  color:var(--faint);
  font-family:ui-monospace,monospace;
}

.forecast strong {
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
  font-weight:600;
  color:#dae3dc;
}

.eco-strip {
  border-top:1px solid #35454a;
  padding-top:9px;
  margin-top:auto;
  display:flex;
  align-items:center;
  gap:7px;
  color:#b7c7b2;
  font-size:13px;
}

.eco-strip .icon {
  color:#a2c18f;
}

.eco-strip .eco-divider {
  color:#647c73;
}

.frequency {
  font:600 12px/1 ui-monospace,monospace;
  letter-spacing:.035em;
  color:#e7c995;
}

.player {
  display:flex;
  align-items:center;
  gap:11px;
  margin-top:12px;
}

.tape {
  flex:0 0 52px;
  display:flex;
  align-items:center;
  background:#203034;
  border-radius:4px;
}

.tape svg {
  width:100%;
  height:auto;
  transform:rotate(-5deg);
}

.track-info {
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.track-info strong {
  font-size:16px;
  color:#e5e6d8;
  letter-spacing:.04em;
}

.track-info span {
  font:600 10px/1.4 ui-monospace,monospace;
  letter-spacing:.12em;
  color:#99aba8;
}

.play-round {
  display:grid;
  place-items:center;
  background:#344640;
  color:var(--lime);
  border:1px solid #53644c;
  width:33px;
  height:33px;
  border-radius:50%;
}

.play-round .icon {
  width:13px;
  height:13px;
}

.next-track {
  display:grid;
  place-items:center;
  color:#afbeb6;
  width:26px;
  height:32px;
  border-radius:5px;
}

.route-shelf {
  margin-top:23px;
}

.shelf-heading {
  margin-bottom:13px;
}

.shelf-heading h2 {
  font-size:18px;
}

.featured {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.feature {
  display:flex;
  align-items:center;
  text-align:left;
  gap:12px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:9px;
  padding:8px 10px 8px 8px;
  min-width:0;
}

.feature:hover {
  background:#25363a;
  border-color:#536958;
}

.feature.active {
  border-color:#728968;
}

.feature img {
  width:clamp(58px,5.3vw,88px);
  height:52px;
  object-fit:cover;
  border-radius:4px;
  flex-shrink:0;
}

.feature .feature-text {
  min-width:0;
  flex:1;
}

.feature strong,.feature small {
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.feature strong {
  font-size:15px;
  font-weight:700;
  color:#e5e7d9;
}

.feature small {
  color:#aebbb4;
  margin-top:4px;
  font-size:12px;
}

.feature>.icon {
  color:#7d958e;
  width:13px;
}

.flash.pulse {
  animation:shutter .48s ease-out;
}

@keyframes shutter {
  0% {
    background:#fff9dfb8;
  }
  100% {
    background:transparent;
  }
}

.steering {
  position:absolute;
  bottom:130px;
  left:12px;
  right:12px;
  display:flex;
  justify-content:space-between;
  pointer-events:none;
}

.steering button {
  pointer-events:auto;
  background:#213837a8;
  border:1px solid #c5dbc475;
  color:#f0f4db;
  border-radius:8px;
  width:45px;
  height:45px;
  touch-action:none;
}

.immersive-bar {
  display:none;
}

.immersive {
  overflow:hidden;
}

.immersive .scene-box {
  position:fixed;
  inset:0;
  z-index:8;
  border:0;
  border-radius:0;
  min-height:0;
}

.immersive .scene-caption {
  bottom:90px;
}

.immersive .scene-actions {
  bottom:90px;
}

.immersive .immersive-bar {
  display:flex;
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  background:#19282ef0;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding:13px 20px max(13px,env(safe-area-inset-bottom));
  color:#dce8cd;
}

.immersive-bar button {
  padding:9px 20px;
  background:var(--lime);
  border-radius:6px;
  color:var(--lime-ink);
  font-weight:700;
}

.immersive .steering {
  bottom:160px;
}

.page-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:4px 0 20px;
}

.page-head h1 {
  font-size:28px;
  letter-spacing:.055em;
}

.page-head p {
  font-size:14px;
  color:var(--muted);
  margin-top:5px;
}

.map-layout {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(315px,.85fr);
  gap:16px;
}

.atlas-card {
  background:#17282d;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:17px;
  min-width:0;
}

.atlas-intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#b6c6bf;
  font-size:13px;
  flex-wrap:wrap;
}

.atlas-intro strong {
  color:#e0e5d6;
  font-size:16px;
}

.atlas-surface {
  width:100%;
  min-height:260px;
  position:relative;
  aspect-ratio:1.60;
  margin:10px 0;
  border-radius:8px;
  overflow:hidden;
  background-color:#14282c;
  background-image:linear-gradient(#abc7aa0e 1px,transparent 1px),linear-gradient(90deg,#abc7aa0e 1px,transparent 1px);
  background-size:22px 22px;
}

.atlas-surface svg {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.atlas-surface .point {
  cursor:pointer;
}

.atlas-surface g.point:hover circle {
  stroke:#fff2be;
  stroke-width:4;
}

.atlas-note,.fine {
  font-size:13px;
  color:#a2b5ae;
  line-height:1.7;
}

.atlas-legend {
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
  font-size:12px;
  color:#b7c5bc;
}

.atlas-legend i {
  display:inline-block;
  height:3px;
  width:15px;
  margin:0 5px 3px 0;
  background:#6e8c81;
}

.atlas-legend .sel {
  background:var(--lime);
}

.atlas-legend .water {
  background:repeating-linear-gradient(90deg,#94cdd1 0 3px,transparent 3px 5px);
}

.planner {
  display:flex;
  flex-direction:column;
  gap:13px;
}

.fields {
  display:grid;
  gap:10px;
}

.fields label,.field,.setting-row label {
  font-size:14px;
  color:#c7d3cb;
  display:block;
}

.fields label>select,.field>input,.field>select,.field>textarea {
  margin-top:5px;
}

input,select,textarea {
  width:100%;
  color:#edf0df;
  background:#111e23;
  border:1px solid #445659;
  border-radius:6px;
  padding:9px 11px;
  font-size:15px;
}

select {
  min-height:40px;
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23b8c6bd' stroke-width='2'%3E%3Cpath d='m4 7 6 6 6-6'/%3E%3C/svg%3E");
  background-size:14px;
  background-position:right 11px center;
  background-repeat:no-repeat;
  padding-right:32px;
}

.plan-summary {
  background:var(--panel-deep);
  border:1px solid #35474a;
  border-radius:7px;
  padding:12px;
}

.plan-summary b {
  color:var(--lime);
  font-weight:650;
}

.plan-summary p {
  color:#c0cec2;
  font-size:13px;
  line-height:1.7;
  margin-top:4px;
  overflow-wrap:anywhere;
}

.planner button.primary {
  width:100%;
  margin-top:auto;
}

.station-list {
  margin-top:18px;
}

.station-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.station-head input {
  max-width:240px;
}

.province-grid {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:13px 0;
}

.chip {
  padding:6px 10px;
  border:1px solid #415355;
  border-radius:6px;
  color:#bfcdc6;
  background:#203035;
  font-size:13px;
}

.chip.active {
  color:var(--lime);
  background:#2d4035;
  border-color:#657c5e;
}

.results {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  max-height:240px;
  overflow:auto;
  padding:3px;
}

.results button {
  border:1px solid #405357;
  display:inline-flex;
  gap:7px;
  align-items:center;
  border-radius:7px;
  padding:7px 10px;
  font-size:14px;
}

.results button.selected {
  border-color:var(--lime);
  color:var(--lime);
}

.results button small {
  font-size:12px;
  color:var(--muted);
}

.journey-stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:18px;
}

.stat {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:10px;
  padding:17px;
}

.stat b {
  display:block;
  font:700 28px/1.15 ui-monospace,monospace;
  color:var(--lime);
}

.stat span {
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-top:5px;
}

.journal-tools {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.memory-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:15px;
}

.memory {
  padding:8px 8px 12px;
  background:#d9d8be;
  color:#223a38;
  text-align:left;
  border:1px solid #aaa98f;
  border-radius:6px;
}

.memory img {
  height:110px;
  object-fit:cover;
  width:100%;
  border-radius:3px;
}

.memory strong,.memory small {
  display:block;
  margin:6px 4px 0;
}

.memory small {
  font-size:12px;
  color:#465951;
}

.empty {
  padding:30px 15px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}

.empty>.icon {
  color:var(--lime);
  display:block;
  margin:0 auto 10px;
}

.log-list {
  display:grid;
  gap:0;
  margin-top:12px;
}

.log-entry {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 0;
  border-top:1px solid #35464b;
}

.log-entry small {
  color:var(--muted);
  font-size:12px;
}

.log-entry strong {
  font-size:15px;
}

.journal-block+.journal-block {
  margin-top:15px;
}

dialog {
  color:var(--txt);
  background:#1c2b30;
  border:1px solid #526360;
  border-radius:14px;
  width: min(510px, calc(var(--frame-width) - 24px));
  max-height:86dvh;
  padding:0;
  box-shadow:0 20px 85px #0008;
}

dialog::backdrop {
  background:#071318a8;
  backdrop-filter:blur(4px);
}

.dialog-scroll {
  padding:21px;
  max-height:85dvh;
  overflow:auto;
}

.dialog-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:17px;
}

.dialog-head h2 {
  font-size:21px;
  letter-spacing:.04em;
}

.dialog-head .tool {
  width:32px;
  height:32px;
}

.dialog-body,.stack {
  display:grid;
  gap:13px;
}

.dialog-copy {
  font-size:15px;
  line-height:1.75;
  color:#c9d4ce;
}

.row-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.row-actions>* {
  flex:1;
}

.choice-row {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.setting-row {
  display:grid;
  gap:8px;
  margin:8px 0 14px;
}

.setting-row label {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.setting-row input[type=range] {
  accent-color:var(--lime);
  padding:0;
  border:0;
}

.detail-row {
  display:grid;
  grid-template-columns:46px 1fr auto;
  align-items:center;
  gap:12px;
  padding:11px;
  border:1px solid #3c4c4e;
  border-radius:8px;
  background:#17262b;
}

.detail-row .sky-icon {
  width:38px;
  height:36px;
}

.detail-row strong,.detail-row small {
  display:block;
}

.detail-row strong {
  font-size:15px;
}

.detail-row small {
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
}

.detail-row>b {
  font:700 18px/1 ui-monospace,monospace;
  color:#deceaa;
}

.legend-copy h3 {
  font-size:16px;
  color:#d5e7bc;
  margin:14px 0 5px;
}

.legend-copy p,.legend-copy li {
  color:#c6d2ca;
  font-size:14px;
  line-height:1.8;
}

.legend-copy a {
  color:var(--lime);
}

.route-preview {
  height:145px;
  background-size:cover;
  background-position:center 45%;
  border-radius:7px;
}

.arrival-card {
  border:6px solid #dadbc0;
  border-radius:6px;
  overflow:hidden;
  background:#dadbc0;
  color:#203c36;
}

.arrival-card img {
  display:block;
  width:100%;
  height:150px;
  object-fit:cover;
}

.arrival-card>div {
  padding:12px 8px 8px;
}

.arrival-card small {
  color:#56665b;
}

.share-text {
  font-family:ui-monospace,monospace;
  height:68px;
  resize:vertical;
  font-size:12px;
  overflow-wrap:anywhere;
}

.flash {
  z-index:4;
}

#toast {
  position:fixed;
  bottom:22px;
  left:50%;
  transform:translate(-50%,10px);
  opacity:0;
  transition:.18s;
  pointer-events:none;
  z-index:15;
  background:#31483e;
  color:#eef4db;
  border:1px solid #72816a;
  box-shadow:0 5px 18px #0004;
  border-radius:8px;
  padding:9px 15px;
  font-size:14px;
  max-width:calc(100vw - 24px);
  width:max-content;
}

#toast.show {
  opacity:1;
  transform:translate(-50%,0);
}

.sky-icon {
  display:inline-block;
  vertical-align:middle;
}

.season-help {
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
}

body>.shell[aria-busy=true] {
  opacity:.8;
}

[hidden] {
  display:none!important;
}


  .topbar {
    height:60px;
  }
  .bar-inner {
    display:flex;
    justify-content:space-between;
    padding-inline:15px;
  }
  .brand {
    gap:7px;
  }
  .brand b {
    font-size:19px;
  }
  .brand small {
    font-size:8px;
  }
  .logo-art {
    width:42px;
    height:34px;
  }
  .tools {
    gap:6px;
  }
  .tool {
    width:35px;
    height:35px;
  }
  .tabs {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:5;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:2px;
    background:#152429f7;
    backdrop-filter:blur(10px);
    border-top:1px solid var(--line);
    padding:4px 10px max(5px,env(safe-area-inset-bottom));
  }
  .tabs button {
    font-size:12px;
    flex-direction:column;
    gap:3px;
    padding:4px 6px;
    border-radius:6px;
  }
  .tabs button.active {
    background:transparent;
    box-shadow:none;
  }
  .tabs button.active:after {
    content:'';
    width:18px;
    height:2px;
    position:absolute;
    top:0;
    background:var(--lime);
  }
  .tabs .icon {
    width:20px;
    height:20px;
  }
  .shell {
    padding:10px 10px 76px;
  }
  .cockpit {
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .scene-box {
    min-height:0;
    height:clamp(370px,56svh,660px);
    border-radius:10px;
  }
  .scene-hud {
    inset:11px 11px auto;
  }
  .sky-tag {
    min-height:32px;
    font-size:12px;
    gap:7px;
    padding:4px 8px;
  }
  .sky-tag .sky-icon {
    width:21px;
    height:19px;
  }
  .scene-caption {
    left:16px;
    bottom:15px;
  }
  .scene-caption h1 {
    font-size:32px;
    margin:4px 0;
  }
  .scene-caption .location,.landmarks {
    font-size:12px;
  }
  .scene-actions {
    bottom:15px;
    right:11px;
  }
  .scene-actions .glass,.scene-hud .glass {
    width:33px;
    height:33px;
  }
  .console {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:9px;
  }
  .panel {
    padding:13px 15px;
  }
  .focus-panel {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(120px,.85fr);
    column-gap:15px;
    align-items:center;
  }
  .focus-panel .panel-head {
    grid-column:1;
    grid-row:1;
    justify-content:flex-start;
    gap:7px;
  }
  .focus-panel .panel-head h2 {
    font-size:15px;
    gap:5px;
  }
  .focus-panel .panel-head .icon {
    width:16px;
    height:16px;
  }
  .focus-panel .status {
    font-size:10px;
    line-height:1.4;
    padding:2px 5px;
    white-space:nowrap;
  }
  .focus-panel .clock {
    grid-column:1;
    grid-row:2;
    justify-content:flex-start;
    height:32px;
    margin:10px 0 7px;
  }
  .focus-panel .timer-label {
    display:none;
  }
  .focus-panel .journey-track {
    grid-column:2;
    grid-row:1;
    margin:0;
  }
  .track-labels {
    font-size:12px;
  }
  .track-line {
    margin-top:5px;
    height:3px;
  }
  .main-action {
    grid-column:2;
    grid-row:2;
    min-height:39px;
    margin-top:7px;
    font-size:15px;
  }
  .under-cta {
    grid-column:1/-1;
    margin-top:3px;
  }
  .weather-panel {
    display:block;
  }
  .panel-head h2 {
    font-size:16px;
  }
  .forecast {
    margin:10px 0;
  }
  .radio-panel .player {
    margin-top:8px;
  }
  .route-shelf {
    margin-top:18px;
  }
  .featured {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }
  .feature {
    padding:6px;
    gap:8px;
  }
  .feature img {
    width:48px;
    height:44px;
  }
  .feature strong {
    font-size:13px;
  }
  .feature small {
    font-size:11px;
  }
  .shelf-heading h2 {
    font-size:16px;
  }
  .map-layout {
    grid-template-columns:1fr;
  }
  .page-head {
    margin:7px 3px 14px;
  }
  .page-head h1 {
    font-size:23px;
  }
  .page-head p {
    font-size:13px;
  }
  .page-head .neutral {
    min-height:36px;
    padding:6px 9px;
    font-size:13px;
  }
  .atlas-card {
    padding:11px;
  }
  .atlas-surface {
    min-height:210px;
    margin:6px 0;
  }
  .planner {
    padding:14px;
    gap:10px;
  }
  .fields {
    grid-template-columns:1fr 1fr;
  }
  .station-head {
    align-items:flex-start;
  }
  .station-head input {
    max-width:47%;
  }
  .memory-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  .journey-stats {
    gap:7px;
  }
  .stat {
    padding:12px;
  }
  .stat b {
    font-size:24px;
  }
  .journal-tools {
    gap:5px;
  }
  .journal-tools button {
    font-size:13px;
  }
  .sub-head {
    flex-wrap:wrap;
  }
  .dialog-scroll {
    padding:17px;
  }
  #toast {
    bottom:75px;
  }
  .immersive #toast {
    bottom:74px;
  }
  .immersive .scene-box {
    height:auto;
  }
  .immersive .scene-caption {
    left:18px;
  }
  .steering {
    bottom:108px;
  }
@media(max-width:360px) {
  .shell {
    padding-inline:7px;
  }
  .scene-box {
    height:51svh;
    min-height:295px;
  }
  .focus-panel {
    column-gap:8px;
    padding:11px;
  }
  .panel-head h2 {
    gap:5px;
  }
  .scene-caption {
    right:80px;
  }
  .scene-actions {
    gap:4px;
  }
  .feature img {
    width:39px;
  }
  .tabs button {
    font-size:11px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
  }
}

.offline-link {
  text-decoration:none;
}

.choice-row {
  margin-top:6px;
}

/* The complete game, including its navigation, lives in the same portrait frame at every viewport size. */
:root {
  --frame-height: min(calc(100dvh - 20px), 960px);
  --frame-width: min(100vw, calc(var(--frame-height) * .5625));
  --header-height: 54px;
  --nav-height: 55px;
  --edge: 13px;
}
html, body { height: 100%; overflow: hidden; }
body {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #30433e 0%, #202f31 38%, #112023 75%, #101d21 100%);
}
.app-frame {
  position: relative;
  isolation: isolate;
  width: var(--frame-width);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--bg);
  border-radius: 18px;
  outline: 1px solid #53625a;
  box-shadow: 0 16px 72px #071516a6, 0 0 0 5px #152327;
}
.topbar, .tabs { position: absolute; inset-inline: 0; z-index: 5; }
.topbar { top: 0; height: var(--header-height); background: #17282b; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 15px; }
.brand b { font-size: 19px; }
.tabs { bottom: 0; height: var(--nav-height); padding: 3px 9px max(4px, env(safe-area-inset-bottom)); background: #16282b; }
.tabs button { justify-content: center; }
.shell { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; }
#drive, #sceneBox { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; }
#sceneBox { border: 0; border-radius: 0; isolation: isolate; }
.scene-shade { background: linear-gradient(180deg, #13252d42 0%, #17303333 17%, transparent 32%, transparent 65%, #15272a29 76%, #132427a1 100%); }
.scene-caption { top: calc(var(--header-height) + 14px); left: 15px; right: auto; bottom: auto; max-width: 65%; text-shadow: 0 1px 3px #14241fe8, 0 2px 9px #15312b8a; }
.scene-caption h1 { font-size: clamp(24px, 3.8svh, 38px); margin: 3px 0; letter-spacing: .06em; }
.scene-caption .location { font-size: 12px; font-weight: 700; color: #f5f2d9; }
.scene-caption .landmarks { font-size: 12px; gap: 5px; color: #fff4d9; }
.landmarks i { width: 8px; }
.scene-hud { top: calc(var(--header-height) + 13px); right: 12px; left: auto; bottom: auto; display: flex; flex-direction: column; align-items: end; gap: 7px; }
.sky-tag { flex-wrap: nowrap; background: #243e40db; min-height: 31px; gap: 5px; padding: 4px 7px; border-color: #d9e4cd70; font-size: 13px; }
.sky-tag b { font-size: 13px; }
.console { position: absolute; bottom: calc(var(--nav-height) + 8px); left: var(--edge); right: var(--edge); z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.drive-tools, .drive-radio, .scene-actions { display: flex; align-items: center; }
.drive-tools { justify-content: space-between; gap: 6px; }
.drive-radio { min-width: 0; gap: 7px; height: 36px; padding: 2px 7px 2px 5px; border: 1px solid #b0c4ae70; border-radius: 7px; background: #203637e8; backdrop-filter: blur(6px); }
.drive-radio .tape { flex: 0 0 30px; background: transparent; }
.drive-radio .track-info { gap: 0; flex: 1; min-width: 52px; }
.drive-radio .track-info strong { font-size: 12px; line-height: 1.3; }
.drive-radio .track-info span { font-size: 10px; line-height: 1.15; color: var(--amber); }
.drive-radio .play-round { width: 26px; height: 26px; }
.drive-radio .next-track { width: 23px; height: 27px; }
.scene-actions { position: static; gap: 5px; }
.scene-actions .glass, .scene-hud .glass { width: 34px; height: 34px; }
.focus-panel { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); column-gap: 15px; border: 1px solid #7b90807a; background: #1b3032f2; padding: 11px 13px 8px; border-radius: 10px; }
.focus-panel .panel-head { gap: 6px; }
.focus-panel .panel-head h2 { font-size: 14px; }
.focus-panel .clock { height: 28px; margin: 6px 0 4px; }
.focus-panel .status { font-size: 11px; }
.main-action { min-height: 36px; padding: 5px 9px; margin-top: 5px; }
.under-cta { margin-top: 3px; }
.steering { top: 54%; bottom: auto; inset-inline: 5px; }
.steering button { width: 38px; height: 43px; }
.app-page { position: absolute; inset: var(--header-height) 0 var(--nav-height); overflow: auto; overscroll-behavior: contain; padding: 12px 11px 20px; scrollbar-width: thin; }
#map { display: flex; flex-direction: column; gap: 12px; }
#atlasContent { display: contents; }
#map .page-head { order: 0; margin: 0 0 3px; }
#map .route-shelf { order: 1; margin: 0; }
#map .map-layout { order: 2; }
#map .station-list { order: 3; margin: 0; }
#map > *, #atlasContent > * { flex-shrink: 0; }
.shelf-heading { margin-bottom: 8px; }
.journal-block .memory img { height: 85px; }
.immersive .topbar, .immersive .tabs, .immersive .console { display: none; }
.immersive #sceneBox { position: absolute; inset: 0; z-index: 2; box-shadow: none; }
.immersive .scene-caption { top: max(15px, env(safe-area-inset-top)); bottom: auto; left: 15px; }
.immersive .scene-hud { top: max(13px, env(safe-area-inset-top)); }
.immersive .immersive-bar { bottom: 0; padding: 9px 10px max(9px, env(safe-area-inset-bottom)); }
.immersive .steering { bottom: auto; }
#toast, .immersive #toast { bottom: max(70px, calc((100dvh - var(--frame-height)) * .5 + var(--nav-height) + 14px)); }
@media (max-aspect-ratio: 9/16), (max-width: 600px) and (orientation: portrait) {
  :root { --frame-height: 100dvh; --frame-width: 100vw; --header-height: calc(51px + env(safe-area-inset-top)); --nav-height: calc(51px + env(safe-area-inset-bottom)); }
  .app-frame { width: 100vw; height: 100dvh; aspect-ratio: auto; border-radius: 0; outline: 0; box-shadow: none; }
  .topbar { padding-top: env(safe-area-inset-top); }
}
@media (max-height: 650px) {
  :root { --header-height: 42px; --nav-height: 42px; --edge: 7px; }
  .brand b { font-size: 16px; }
  .logo-art { width: 33px; height: 29px; }
  .topbar .tool { width: 29px; height: 29px; }
  .tabs button { flex-direction: row; font-size: 11px; gap: 4px; }
  .tabs .icon { width: 15px; height: 15px; }
  .console { gap: 4px; bottom: calc(var(--nav-height) + 5px); }
  .drive-radio { height: 29px; }
  .drive-radio .tape { flex-basis: 24px; }
  .scene-actions .glass,.scene-hud .glass { width: 28px; height: 28px; }
  .focus-panel { padding: 6px 9px 5px; }
  .focus-panel .clock { height: 22px; margin: 3px 0; }
  .focus-panel .status { display: none; }
  .main-action { min-height: 29px; font-size: 13px; margin-top: 3px; }
  .under-cta, .under-cta button { font-size: 11px; }
  .scene-caption .landmarks { display: none; }
}
@media (max-height: 450px) {
  :root { --header-height: 31px; --nav-height: 32px; }
  .brand small,.drive-radio .track-info,.focus-panel .panel-head h2 .icon,.location .icon { display: none; }
  .scene-caption { left: 7px; top: calc(var(--header-height) + 4px); }
  .scene-caption h1 { font-size: 17px; }
  .scene-hud { right: 5px; top: calc(var(--header-height) + 4px); }
  .sky-tag { gap: 3px; font-size: 10px; min-height: 24px; padding: 2px 4px; }
  .sky-tag b { font-size: 10px; }
  .sky-tag .sky-icon { width: 16px; }
  .focus-panel { grid-template-columns: 1fr 1fr; column-gap: 5px; }
  .focus-panel .panel-head, .under-cta span, .brand .logo-art { display: none; }
  .focus-panel .journey-track { grid-column: 1 / -1; }
  .main-action { min-height: 24px; }
  .under-cta { justify-content: end; margin: 0; }
}

.vehicle-hit { position:absolute; left:32%; top:40%; width:36%; height:25%; padding:0; z-index:1; border:0; border-radius:12px; background:none; color:#f6f1dc; cursor:pointer; touch-action:none; }
.vehicle-hit:hover,.vehicle-hit:active { background:transparent; }
.vehicle-hit:focus-visible { outline:2px dashed #d7eaab; outline-offset:2px; }
.vehicle-hit span { position:absolute; left:50%; top:100%; transform:translate(-50%,4px); white-space:nowrap; font-size:12px; line-height:1.5; padding:1px 8px; border-radius:12px; background:#1b302bd4; border:1px solid #e8efd07d; pointer-events:none; }
.scene-hud,.scene-caption { z-index:2; }
.scene-hud .view-switch { display:flex; align-items:center; justify-content:center; gap:4px; padding:5px 7px; border:1px solid #e1e5cc78; border-radius:7px; background:#203732df; color:#f8f2dd; font-family:inherit; font-weight:600; font-size:12px; line-height:1.4; min-height:30px; }
.ride-data { display:inline-block; margin-top:7px; color:#f4f5dc; font:600 11px/1.5 ui-monospace,monospace; font-variant-numeric:tabular-nums; background:#2137349e; padding:1px 6px; border-radius:4px; letter-spacing:0; text-shadow:none; }
.steering { z-index:3; pointer-events:none; } .steering button {pointer-events:auto;}
.immersive-bar { z-index:3; }
.angle-list { display:grid; gap:7px; }
.angle-option { display:flex; align-items:center; text-align:left; gap:13px; width:100%; padding:10px 11px; min-height:53px; background:#263a3a; color:var(--txt); border:1px solid #536761; border-radius:9px; }
.angle-option[aria-pressed="true"] { border-color:#b9d78e; background:#30463e; }
.angle-icon {display:grid;place-items:center;width:34px;height:34px;color:#c6d9ad;border-radius:6px;background:#203331;}
.angle-option strong,.angle-option small {display:block;} .angle-option strong {font-size:15px;} .angle-option small {font-size:12px;color:#c0cabb;margin-top:2px;}
.angle-mark {margin-left:auto;width:14px;height:14px;border-radius:50%;border:1px solid #a5b49c;} .angle-option[aria-pressed="true"] .angle-mark {border:4px solid #b7d58e;background:#284136;}
@media(max-height:650px){.ride-data{margin-top:3px;font-size:10px}.scene-hud .view-switch{padding:2px 5px;min-height:25px}.scene-hud{gap:4px}.vehicle-hit span{font-size:10px;}}

.scene-actions .take-wheel {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  width: auto; padding: 0 8px; white-space: nowrap; font-size: 13px; font-weight: 650;
}
.take-wheel:disabled, #immersiveManual:disabled { opacity: .55; }
.tabs { grid-template-columns: repeat(4,minmax(0,1fr)); }
.camera-rail {
  position:absolute; top:calc(var(--header-height) + 7px); left:10px; right:10px; z-index:4;
  display:grid; grid-template-columns:1fr 1.17fr .80fr 1.04fr; gap:2px; border-radius:9px; padding:3px;
  background:#192e2eed; border:1px solid #a9baaa82; box-shadow:0 2px 8px #10242238;
}
.camera-rail button,.rest-angles button {
  display:flex;align-items:center;justify-content:center;gap:4px;border:0;border-radius:5px;
  background:transparent;color:#dce6d7;min-height:32px;font:inherit;font-weight:650;font-size:14px;white-space:nowrap;
}
.camera-rail button[aria-pressed="true"],.camera-rail .selected,.rest-angles button[aria-pressed="true"] {
  background:#c7d9ac;color:#20352f;
}
#drive .scene-caption,#drive .scene-hud { top:calc(var(--header-height) + 54px); }
#restEntry { display:none; }
.immersive #drive .camera-rail {top:max(8px,env(safe-area-inset-top));}
.immersive #drive .scene-caption,.immersive #drive .scene-hud {top:calc(max(8px,env(safe-area-inset-top)) + 45px);}
.immersive #restEntry {display:flex;}
.scene-box[data-view="orbit"] canvas {touch-action:none;cursor:grab;}
.scene-box[data-view="orbit"] canvas:active {cursor:grabbing;}
.weather-switch {display:flex;gap:8px;}
.weather-switch button {min-height:38px;display:inline-flex;align-items:center;gap:5px;}
.weather-switch [aria-pressed="true"] {color:#243733;background:#c9dcb1;}
.resting .scene-caption,.resting .camera-rail,.resting .console,.resting .immersive-bar,.resting .vehicle-hit {display:none!important;}
.resting .scene-shade {background:linear-gradient(180deg,#141f253a,transparent 27%,transparent 77%,#201e268c);}
#drive.resting .scene-hud {top:calc(var(--header-height) + 10px);}
.rest-heading {position:absolute;top:calc(var(--header-height) + 10px);left:14px;z-index:2;color:#fff1d5;text-shadow:0 1px 7px #30251d;}
.rest-heading h1 {font-size:clamp(22px,4svh,35px);line-height:1.1;margin:0 0 4px;letter-spacing:.12em;}
.rest-heading span {font-size:12px;font-weight:650;}
.rest-heading small {display:block;width:fit-content;margin-bottom:4px;color:#fae4ba;font-size:13px;font-weight:650;letter-spacing:.12em;}
.in-camper #scene {cursor:grab;touch-action:none;}
.in-camper #scene:active {cursor:grabbing;}
.rest-panel {
  position:absolute;z-index:4;left:13px;right:13px;bottom:calc(var(--nav-height) + 10px);
  padding:8px;display:grid;grid-template-columns:1fr;gap:7px;border-radius:12px;
  color:#f2e5cb;background:#302e27e8;border:1px solid #c7aa7a7a;backdrop-filter:blur(6px);
}
.rest-angles,.rest-actions {display:flex;align-items:center;gap:7px;}
.rest-angles button,.rest-actions button {flex:1;}
.rest-angles {border-bottom:1px solid #e1c7a03d;padding-bottom:6px;}
.rest-angles button[aria-pressed="true"] {background:#dbc69e;color:#3d3628;}
.rest-actions button {display:flex;align-items:center;justify-content:center;gap:6px;min-height:34px;
  border:1px solid #d9c6a06e;border-radius:6px;background:#4a4436;color:#f6eddc;font-size:14px;}
.rest-actions #leaveRest {color:#2d352a;background:#c6d6a7;border-color:#c6d6a7;font-weight:700;}
.resting .rest-panel {color:#faebd2;background:linear-gradient(125deg,#3a3029f5,#282722f2);border-color:#d4b38b7a;box-shadow:0 5px 18px #1b181648;padding:9px 10px;gap:6px;}
.room-navigation {display:flex;align-items:baseline;justify-content:space-between;gap:6px;padding:0 2px;}
.room-navigation strong {font-size:14px;font-weight:650;color:#f3dfbc;}
.room-navigation span {font-size:12px;color:#e2cfaf;}
.resting .rest-angles {gap:5px;padding-bottom:7px;}
.resting .rest-angles button {gap:5px;min-height:37px;font-size:14px;color:#e9dfce;}
.resting .rest-angles button[aria-pressed="true"] {background:#ebd3a7;color:#3d3329;}
.rest-actions #campView[aria-pressed="true"] {background:#d7c099;color:#382f26;}
.rest-heading {pointer-events:none;}
@media(max-width:360px),(max-height:610px){
  .resting .rest-panel {padding:6px 7px;gap:4px;}
  .resting .rest-angles button {min-height:31px;gap:3px;font-size:13px;}
  .room-navigation span {font-size:11px;}
}
.immersive #drive.resting .scene-hud,.immersive .rest-heading {top:max(13px,env(safe-area-inset-top));}
.immersive .rest-panel {bottom:max(10px,env(safe-area-inset-bottom));}
@media(max-height:610px) {
  .camera-rail {left:6px;right:6px;top:calc(var(--header-height) + 3px);padding:2px;}
  .camera-rail button,.rest-angles button {font-size:12px;min-height:25px;}
  #drive .scene-caption,#drive .scene-hud {top:calc(var(--header-height) + 36px);}
  .rest-panel {gap:3px;padding:5px;left:7px;right:7px;}
}
.scene-box[data-view="cab"] .vehicle-hit span {
  top: 0; left: 8%; transform: translateY(-92%); font-weight: 500;
}
.pedals {
  position: absolute; z-index: 3; display: flex; align-items: end; gap: 7px;
  right: 12px; top: 62%;
}
.pedals button, .resume-road {
  border: 1px solid #b8c9b1a8; background: #243733ec; color: #f3f0da;
  font-family: inherit; line-height: 1.2; border-radius: 8px;
}
.pedals button {
  min-width: 51px; min-height: 42px; padding: 6px 11px; touch-action: none;
  font-size: 14px; font-weight: 650; user-select: none; -webkit-user-select: none;
}
.pedals [data-pedal="gas"] { background: #34523aef; border-color: #b4d499; }
.pedals button.held, .steering button.held { background: #d3dfa9; color: #1e332d; }
.resume-road {
  position: absolute; top: 48%; left: 50%; z-index: 4; transform: translateX(-50%);
  white-space: nowrap; padding: 12px 17px; font-size: 15px; font-weight: 700;
}
.immersive .immersive-bar { gap: 8px; justify-content: space-between; }
.immersive-bar button { padding: 8px 10px; white-space: nowrap; }
#immersiveManual { margin-left: auto; background: #2b413c; color: #e9efcf; border: 1px solid #617868; }
@media(max-height:650px) {
  .pedals { top: 59%; gap: 4px; right: 6px; }
  .pedals button { min-width: 39px; min-height: 31px; padding: 4px 6px; }
  .scene-actions .take-wheel { font-size: 12px; padding: 0 5px; }
}
#sceneBox[data-palette="sunlit"] #scene {filter:saturate(1.19) contrast(1.025);}
#sceneBox[data-palette="overcast"] #scene {filter:saturate(1.065);}
#sceneBox[data-palette="night"] #scene {filter:saturate(1.14);}
.camp-times:not([hidden]) {display:flex;align-items:center;gap:4px;padding-bottom:5px;border-bottom:1px solid #d5bd9844;}
.camp-times strong {font-size:13px;margin-right:auto;}
.camp-times button {min-height:30px;padding:3px 8px;font-size:13px;color:#f2e1c4;border-radius:8px;}
.camp-times button[aria-pressed="true"] {background:#eed1a1;color:#342d20;}
.drive-radio #openRadio {display:flex;align-items:flex-start;text-align:left;padding:1px 3px;white-space:nowrap;overflow:hidden;background:transparent;color:inherit;}
#openRadio strong {overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.song-sheet {display:grid;gap:12px;}
.channel-switch {display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:11px;background:#1a2b2c;}
.channel-switch button {padding:9px 4px;color:#c9d6c9;border:0;border-radius:8px;background:transparent;font-size:15px;}
.channel-switch button[aria-pressed="true"] {color:#1a322d;background:#c5d7ad;font-weight:700;}
.song-transport,.song-row {display:flex;align-items:center;justify-content:space-between;gap:10px;}
.song-transport {color:var(--amber);font-size:14px;}
.song-transport button {min-width:58px;}
.songs {display:grid;}
.song-row {padding:9px 10px;text-align:left;color:#eceddf;border:0;border-top:1px solid #99a79c33;background:transparent;}
.song-row span {display:grid;gap:2px;}
.song-row strong {font-size:15px;}
.song-row small,.song-row time {font-size:12px;color:#bdd0c4;}
.song-row[aria-pressed="true"] {background:#3c5145;color:#f4dda8;box-shadow:inset 3px 0 #e4be83;}
.room-utilities:not([hidden]) {display:flex;gap:8px;}
.room-utilities button {flex:1;padding:5px;border:1px solid #bfa78449;border-radius:6px;font-size:13px;background:#51483b;color:#eee3cd;}
.room-utilities button[aria-pressed="true"] {background:#ebd3a7;color:#3d3329;}
.channel-switch {grid-template-columns:repeat(3,minmax(0,1fr));}
.channel-switch button {font-size:14px;}
.channel-switch button[data-channel="fuel"][aria-pressed="true"] {background:#f0b07d;color:#402918;}
#home {background:#202c2b;color:#f1e6ce;}

#home.home-interior {padding:0;overflow:hidden;isolation:isolate;background:#493f3e;}
.souvenir-sprite {display:block;width:100%;aspect-ratio:1;background-image:var(--keepsake-art);background-size:1100% 100%;background-repeat:no-repeat;}
.home-head h1,.walk-title h1,.layout-head h1 {font-family:"Noto Serif SC","Songti SC","SimSun",serif;font-size:clamp(22px,5.5vw,30px);font-weight:600;letter-spacing:.07em;margin:0;}
.home-back,.walk-scene button {display:inline-flex;align-items:center;gap:5px;color:#fff1d9;background:#343833eb;border:1px solid #d8c9a778;border-radius:9px;padding:7px 10px;font-size:13px;}
.walk-scene,.loft-canvas {position:absolute;inset:0;width:100%;height:100%;}
.loft-canvas,.walkpad,.floor-plan {touch-action:none;user-select:none;}
.walk-title,.walk-bottom {position:absolute;display:flex;align-items:center;justify-content:space-between;left:0;right:0;pointer-events:none;}
.walk-title {top:0;padding:12px 15px 23px;background:linear-gradient(#252a2a99,transparent);color:#fff4d9;text-shadow:0 1px 4px #332d30;}
.walk-title button,.walk-bottom button,.walkpad {pointer-events:auto;}
.walk-scene .preview-tools,.is-preview [data-edit-loft],.is-preview [data-world-pin],.is-preview .loft-actions {display:none;}
.walk-scene.is-preview .preview-tools,.layout-head-actions {display:flex;gap:5px;}

.walk-scene [data-world-pin] {position:absolute;transform:translate(-50%,-50%);box-shadow:0 2px 8px #26242650;white-space:nowrap;}
.walk-scene [hidden]{display:none;}
.walk-bottom {bottom:16px;padding:0 12px;align-items:flex-end;}
.walk-hint {position:absolute;left:50%;transform:translateX(-50%);bottom:4px;font-size:10px;color:#fff4db;text-shadow:0 1px 4px #1b1715;white-space:nowrap;pointer-events:none;}
.loft-actions {display:flex;align-items:center;gap:4px;}
.walkpad {position:relative;width:60px;height:60px;border-radius:50%;border:1px solid #f0e1ca80;background:#30353260;display:grid;place-items:center;}
.walkpad i {width:23px;height:23px;border-radius:50%;background:#f4e5cba0;transform:translate(var(--dx,0px),var(--dy,0px));}
.place-line {display:flex;gap:9px;margin:8px 0;align-items:center;}
.place-line button,.layout-editor button {color:#f4e7cf;border:1px solid #aa95785c;background:#413b35;border-radius:7px;padding:6px 9px;}
.place-line button:first-child {flex:1;text-align:left;display:flex;justify-content:space-between;align-items:center;padding:12px;}
.place-line small,.layout-tray p,.fabric-row span {color:#decfae;}
.layout-head,.layout-row,.fabric-row {display:flex;align-items:center;gap:8px;}
.layout-head {justify-content:space-between;margin-bottom:10px;}
.layout-head h1 {font-size:21px;}
.layout-editor .layout-save,.layout-editor [aria-pressed=true]:not(.plan-object):not(.fabric){background:#abcbaf;color:#213c34;}
.plan-wrap {display:flex;justify-content:center;padding:8px;background:#35312c;border-radius:10px;}
.floor-plan {width:min(100%,36vh);aspect-ratio:7.2/7.6;position:relative;border:5px solid #8c7661;background:repeating-linear-gradient(0deg,#d2a979 0%,#d2a979 4.8%,#b99069 5%,#c19970 5.2%);overflow:hidden;}
.fixed-plan,.plan-object,.plan-window {position:absolute;display:grid;place-items:center;font-size:10px;line-height:1;overflow:hidden;}
.fixed-plan {color:#e8dcc1;background:#62594e;border:1px solid #45453d;}
.plan-window {color:#263f42;top:0;left:7%;width:51%;height:4%;background:#a6c3c2;}
.layout-editor .plan-object {padding:0;border-radius:4px;color:#312c29;background:var(--fabric);border:1px solid #514634;z-index:2;font-size:10px;}
.layout-editor .obj-rug {z-index:1;border:2px dashed #954f3e;}
.layout-editor .obj-plant,.layout-editor .obj-lamp {border-radius:50%;}
.layout-editor .plan-object[aria-pressed=true]{outline:2px solid #fff6cb;outline-offset:-1px;}
.layout-editor .plan-object.blocked{background:#d25943;}
.layout-tray {padding:10px 0;}
.layout-list {display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px;}
.layout-editor button {font-size:12px;}
.layout-row strong {flex:1;}
.fabric-row {margin-top:11px;}
.layout-editor .fabric {padding:0;width:25px;height:25px;border-radius:50%;background:var(--fabric);}
.layout-editor .fabric[aria-pressed=true]{outline:2px solid #fff2cb;outline-offset:1px;}
.layout-tray p,.fabric-row span {margin:7px 0;font-size:12px;}
.home-head {display:flex;flex-direction:column;align-items:flex-start;gap:9px;margin-bottom:12px;}
.home-back {font-size:13px;padding:5px 9px;}
.home-note {color:#d8d1bf;font-size:14px;line-height:1.55;margin:0 0 12px;}
.shelf-positions {display:flex;gap:6px;padding:8px 8px 0;background:linear-gradient(#45382e,#3f3128 86%,#966c45 87%,#634631);border-radius:7px;}
.shelf-position {width:33.333%;display:flex;flex-direction:column;align-items:center;border:1px solid transparent;padding:5px;color:#e6d5b9;background:transparent;border-radius:6px;}
.shelf-position[aria-pressed="true"] {border-color:#ebc487;background:#f1cf9322;}
.slot-art {width:clamp(38px,12vw,64px);aspect-ratio:1;display:grid;place-items:center;}
.slot-empty {color:#b99e7a;font-size:24px;}.shelf-position small {font-size:13px;}
.home-subhead {display:flex;align-items:center;justify-content:space-between;margin:14px 0 7px;}.home-subhead h2,.home-blank h2 {font-size:17px;margin:0;}
.keepsake-card {display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 3px;border-top:1px solid #bda88240;}
.keepsake-art {background:#453c30;border-radius:7px;}
.keepsake-card strong,.keepsake-card small,.print-shot strong,.print-shot small {display:block;}.keepsake-card strong,.print-shot strong {font-size:14px;}
.keepsake-card small,.print-shot small {font-size:12px;color:#d6c6aa;}
.place-button,.hang-button,.source-record {font-size:13px;color:#f2dbb0;background:#594a35;border-radius:5px;padding:5px 7px;}
.source-record {padding:2px 0;color:#dbbd89;background:transparent;text-decoration:underline;}
#home button:disabled {opacity:.52;cursor:default;}
.home-blank {padding:22px 12px;text-align:center;background:#2c3832;border:1px solid #817763;border-radius:8px;}
.home-blank p {margin:8px 0 14px;color:#d5cdba;}
.home-gallery {display:grid;grid-template-columns:1fr 1fr;gap:9px;}.home-gallery article {padding:6px;background:#303d37;border-radius:8px;}
.print-shot {width:100%;padding:0;background:transparent;text-align:left;color:inherit;}.print-shot img {width:100%;height:110px;object-fit:cover;border-radius:5px;}
.hang-button {margin-top:5px;}.home-back:focus-visible,[data-world-pin]:focus-visible,.plan-object:focus-visible {outline:3px solid #ffe4a6;}
