:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  --ink: #edf8f4;
  --muted: #a7bcb6;
  --mint: #b9f8dc;
  --orange: #ffb78d;
  --line: #b9f8dc25;
  --glass: #081719d9;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #081217; color: var(--ink); }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .45; cursor: wait; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, canvas:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
[hidden] { display: none !important; }
#app { position: fixed; inset: 0; isolation: isolate; }
#world { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#world:active { cursor: grabbing; }
.screen-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #07131685, transparent 34%), linear-gradient(0deg, #071316b8, transparent 28%); }
.city-heading { position: absolute; left: 32px; top: 25px; max-width: 390px; pointer-events: none; text-shadow: 0 2px 25px #041113; }
.statico-mark { display: inline-block; pointer-events: auto; font-size: 22px; line-height: 1; font-weight: 800; letter-spacing: -1.5px; text-decoration: none; }
.statico-mark span { color: var(--mint); }
.eyebrow { margin: 21px 0 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); }
.city-heading h1 { margin: 0; font-size: clamp(44px, 5.5vw, 77px); font-weight: 700; letter-spacing: -.065em; line-height: .98; }
.city-heading h1 span { font-weight: 300; color: var(--mint); }
.city-purpose { margin: 14px 0 20px; color: #d1e2dc; font-size: 13px; line-height: 1.65; letter-spacing: -.02em; }
.city-counts { display: flex; gap: 18px; align-items: start; }
.city-counts > div { min-width: 55px; padding-left: 11px; border-left: 1px solid #b9f8dc6b; }
.city-counts strong { display: block; font: 500 20px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.035em; }
.city-counts span { display: block; margin-top: 5px; font-size: 9px; color: var(--muted); letter-spacing: .04em; }
.panel-toggle { position: absolute; top: 24px; right: 27px; z-index: 3; display: flex; gap: 17px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; background: var(--glass); backdrop-filter: blur(18px); font-size: 11px; }
.panel-toggle span { color: var(--mint); font-size: 17px; line-height: 13px; }
.flight-panel { position: absolute; right: 27px; top: 75px; z-index: 2; width: 336px; max-height: calc(100dvh - 105px); overflow-y: auto; padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(140deg, #122729e8, #071518ed); backdrop-filter: blur(18px); box-shadow: 0 22px 55px #0005; scrollbar-width: thin; scrollbar-color: #b9f8dc40 transparent; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin: -1px 0 14px; gap: 16px; }
.panel-heading > span { font-size: 11px; letter-spacing: .01em; color: var(--ink); }
.icon-button { display: grid; place-items: center; flex: none; width: 31px; height: 31px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #ffffff06; font-size: 18px; }
#pin { border-color: transparent; color: var(--muted); }
.control-section { margin: 0 0 15px; }
.control-section h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 7px; font-size: 9px; font-weight: 500; letter-spacing: .055em; color: var(--muted); text-transform: uppercase; }
.control-section h2 span { font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; color: #a0b5af; text-transform: none; }
.control-section output { font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--mint); }
.choice-grid { display: grid; gap: 5px; }
.camera-choices { grid-template-columns: 1fr 1fr; }
.thirds { grid-template-columns: repeat(3, 1fr); }
.quarters { grid-template-columns: repeat(4, 1fr); }
.choice-grid button { padding: 9px 5px; min-height: 34px; border: 1px solid #b9f8dc15; border-radius: 8px; background: #07131554; font-size: 10px; color: #d2e2dc; transition: background .15s, border-color .15s; }
.camera-choices button { text-align: left; padding-left: 9px; }
.camera-choices button span { margin-right: 6px; font-size: 13px; vertical-align: -1px; color: var(--mint); }
.choice-grid button[aria-pressed="true"], .flight-switches button[aria-pressed="true"], #pin[aria-pressed="true"] { background: var(--mint); color: #0c241c; border-color: var(--mint); }
.choice-grid button[aria-pressed="true"] span { color: #0c241c; }
button:hover { filter: brightness(1.15); }
#traffic { display: block; width: 100%; margin: 10px 0 4px; accent-color: var(--mint); cursor: pointer; height: 12px; }
.seed-row { display: flex; gap: 6px; align-items: center; }
#seed { min-width: 0; width: 90px; flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: #07131587; color: var(--ink); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; -moz-appearance: textfield; }
#seed::-webkit-outer-spin-button, #seed::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#new-city { padding: 9px 10px; border: 1px solid var(--line); background: #b9f8dc14; border-radius: 8px; font-size: 10px; white-space: nowrap; }
#new-city span { margin-left: 6px; color: var(--mint); }
#copy-link { height: 33px; }
.flight-switches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; border-top: 1px solid var(--line); padding-top: 13px; }
.flight-switches button { min-height: 34px; padding: 8px 6px; border: 1px solid #b9f8dc1c; border-radius: 8px; background: #07131554; font-size: 10px; }
.flight-switches .turbo-button { color: var(--orange); border-color: #ffb78d42; }
.flight-switches .turbo-button span { margin-left: 3px; }
.flight-switches .turbo-button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #33170b; }
.flight-telemetry { position: absolute; left: 32px; bottom: 120px; display: flex; gap: 24px; pointer-events: none; text-shadow: 0 2px 12px #071315; }
.flight-telemetry > div { display: flex; flex-direction: column; }
.flight-telemetry span { margin-bottom: 7px; color: var(--muted); font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.flight-telemetry strong { display: flex; align-items: baseline; gap: 5px; font: 400 27px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.flight-telemetry b { font: inherit; }
.flight-telemetry small { font-size: 10px; color: var(--muted); }
.flight-telemetry .telemetry-mode { border-left: 1px solid #b9f8dc30; padding-left: 24px; }
.flight-telemetry .telemetry-mode strong { font: 500 11px Arial, Helvetica, sans-serif; margin-top: 5px; }
.city-footer { position: absolute; left: 32px; bottom: 25px; z-index: 2; }
.experience-tools { display: flex; align-items: center; gap: 15px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #071315c9; backdrop-filter: blur(14px); }
.experience-tools a { font-size: 10px; text-decoration: none; white-space: nowrap; }
.experience-tools .back-link { color: var(--mint); }
.experience-tools .home-link { color: var(--muted); }
.experience-tools button { display: flex; gap: 7px; align-items: center; padding: 0; border: 0; background: none; font-size: 10px; white-space: nowrap; }
.experience-tools button span { font-size: 14px; color: var(--mint); }
.tool-separator { display: block; width: 1px; height: 17px; background: var(--line); }
.experience-credit { margin: 12px 0 0; max-width: 600px; font-size: 8px; color: #adbfba; line-height: 1.5; }
.experience-credit a { color: inherit; text-decoration-color: #adbfba55; text-underline-offset: 3px; }
.status-toast { position: absolute; top: 28px; left: 50%; z-index: 6; transform: translateX(-50%); max-width: min(430px, 80vw); margin: 0; padding: 10px 15px; border: 1px solid var(--line); border-radius: 10px; background: #0b2423ee; color: var(--ink); font-size: 11px; text-align: center; box-shadow: 0 8px 35px #0004; pointer-events: none; }
.status-toast:empty { display: none; }
.touch-steering { position: absolute; right: 24px; bottom: 26px; z-index: 3; display: none; user-select: none; }
.touch-label { display: block; margin-bottom: 8px; font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; text-align: center; text-transform: uppercase; color: var(--muted); }
.direction-pad { display: grid; grid-template: repeat(3, 43px) / repeat(3, 43px); gap: 4px; }
.direction-pad button { border: 1px solid #b9f8dc40; border-radius: 10px; background: #071719d4; backdrop-filter: blur(10px); font-size: 23px; color: var(--mint); touch-action: none; }
.direction-pad button:active, .direction-pad button.active { background: var(--mint); color: #0b241c; }
[data-steer="up"] { grid-area: 1 / 2; }
[data-steer="left"] { grid-area: 2 / 1; }
[data-steer="right"] { grid-area: 2 / 3; }
[data-steer="down"] { grid-area: 3 / 2; }
.direction-center { grid-area: 2 / 2; align-self: center; justify-self: center; color: #b9f8dc6b; }
.loading-screen, .fallback-screen { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; background: radial-gradient(ellipse at 50% 45%, #193630, #081217 65%); text-align: center; }
.loading-screen h2, .fallback-screen h2 { margin: 6px 0 12px; font-size: clamp(22px, 4vw, 36px); font-weight: 500; letter-spacing: -.045em; }
.loading-screen p:not(.eyebrow), .fallback-screen p:not(.eyebrow) { max-width: 410px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.loading-screen .eyebrow, .fallback-screen .eyebrow { margin: 25px 0 12px; }
.loading-symbol { display: flex; align-items: end; gap: 6px; height: 55px; }
.loading-symbol i { display: block; width: 8px; height: 24px; border: 1px solid #b9f8dc7a; border-bottom: 0; background: #b9f8dc15; }
.loading-symbol i:nth-child(2) { height: 41px; }.loading-symbol i:nth-child(3) { height: 55px; }.loading-symbol i:nth-child(4) { height: 36px; }.loading-symbol i:nth-child(5) { height: 20px; }
.loading-track { display: block; width: 170px; height: 2px; margin-top: 28px; background: #b9f8dc20; overflow: hidden; }
.loading-track::after { content: ""; display: block; width: 35%; height: 100%; background: var(--mint); animation: city-loading 1.6s ease-in-out infinite; }
@keyframes city-loading { from { transform: translateX(-100%); } to { transform: translateX(390%); } }
.fallback-back { margin-top: 22px; color: var(--mint); font-size: 12px; text-underline-offset: 5px; }
dialog { max-width: 640px; width: calc(100% - 32px); max-height: min(80dvh, 780px); padding: 29px; border: 1px solid #b9f8dc45; border-radius: 22px; background: #0b1b1ef5; color: var(--ink); box-shadow: 0 30px 100px #0008; backdrop-filter: blur(25px); }
dialog::backdrop { background: #020c10b5; backdrop-filter: blur(8px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.dialog-heading .eyebrow { margin: 0; }
.dialog-close { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; background: #b9f8dc08; font-size: 21px; }
dialog h2 { margin: 21px 0 15px; font-size: 33px; font-weight: 500; letter-spacing: -.045em; line-height: 1.2; }
dialog h3 { margin: 24px 0 9px; color: var(--mint); font-size: 13px; font-weight: 500; }
dialog p, #inspect-body { margin: 0 0 12px; font-size: 12px; line-height: 1.9; color: #c4d4ce; }
dialog kbd { display: inline-block; padding: 2px 5px; margin: 0 2px; border: 1px solid #b9f8dc20; border-radius: 4px; background: #b9f8dc08; color: var(--ink); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.help-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 16px 0; }
.help-shortcuts > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #b9f8dc14; font-size: 10px; color: #c4d4ce; }
.help-shortcuts kbd { flex: none; }
dialog .dialog-note { color: var(--muted); font-size: 10px; }
.dialog-action { display: flex; justify-content: space-between; gap: 30px; margin-top: 22px; min-height: 39px; align-items: center; padding: 10px 14px; border: 0; border-radius: 9px; background: var(--mint); color: #0b241c; font-size: 12px; }
.noscript-message { position: absolute; inset: 0; z-index: 30; display: grid; place-content: center; padding: 30px; background: #081217; color: var(--ink); text-align: center; line-height: 1.8; }
.interface-hidden .interface, #app.interface-hidden .interface { display: none !important; }
.panel-hidden #panel, #app.panel-hidden #panel { display: none; }
@media (max-width: 1050px) {
  .city-heading { left: 23px; top: 24px; max-width: 270px; }
  .city-heading h1 { font-size: 59px; }
  .city-purpose { font-size: 11px; }
  .city-counts { gap: 12px; }.city-counts strong { font-size: 17px; }
  .flight-panel { width: 305px; right: 22px; padding: 14px; }.panel-toggle { right: 22px; }
  .city-footer, .flight-telemetry { left: 23px; }
}
@media (pointer: coarse) { .touch-steering { display: block; }.flight-telemetry { bottom: 132px; } }
@media (max-width: 700px) {
  .city-heading { left: 17px; top: 17px; max-width: 190px; }
  .statico-mark { font-size: 19px; }.city-heading .eyebrow { font-size: 7px; margin: 18px 0 8px; }
  .city-heading h1 { font-size: 43px; }.city-purpose { margin: 10px 0 13px; font-size: 9px; }
  .city-counts { gap: 8px; }.city-counts > div { min-width: 44px; padding-left: 7px; }
  .city-counts strong { font-size: 14px; }.city-counts span { margin-top: 3px; font-size: 7px; }
  .panel-toggle { top: 15px; right: 15px; padding: 9px 10px; gap: 8px; font-size: 9px; }
  .flight-panel { top: 62px; right: 15px; width: min(305px, calc(100vw - 30px)); max-height: calc(100dvh - 274px); padding: 14px; }
  .flight-telemetry { left: 17px; bottom: 143px; gap: 15px; }.flight-telemetry strong { font-size: 22px; }.flight-telemetry small { font-size: 8px; }
  .flight-telemetry .telemetry-mode { padding-left: 15px; }.flight-telemetry .telemetry-mode strong { font-size: 9px; }
  .city-footer { left: 17px; right: 165px; bottom: 18px; }.experience-tools { width: max-content; max-width: 100%; flex-wrap: wrap; gap: 10px 13px; padding: 10px 11px; border-radius: 11px; }
  .experience-tools a, .experience-tools button { font-size: 9px; }.experience-tools button span { font-size: 12px; }.tool-separator { display: none; }
  .experience-credit { max-width: 220px; font-size: 7px; margin-top: 9px; }
  .touch-steering { display: block; right: 15px; bottom: 18px; }.direction-pad { grid-template: repeat(3, 40px) / repeat(3, 40px); gap: 3px; }
  .touch-label { font-size: 7px; margin-bottom: 6px; }.direction-pad button { border-radius: 9px; font-size: 20px; }
  .status-toast { top: auto; bottom: 178px; font-size: 10px; }
  dialog { padding: 21px; max-height: 84dvh; }.help-shortcuts { grid-template-columns: 1fr; }dialog h2 { font-size: 28px; }
}
@media (max-width: 700px) and (max-height: 600px) {
  .city-heading .city-purpose, .city-heading .eyebrow { display: none; }.city-heading h1 { margin: 12px 0; font-size: 36px; }.city-counts strong { font-size: 12px; }
  .flight-panel { max-height: calc(100dvh - 192px); }
  .flight-telemetry { bottom: 100px; }.flight-telemetry .telemetry-mode { display: none; }
  .city-footer { bottom: 12px; right: 163px; }.experience-credit { margin-top: 6px; }.touch-steering { bottom: 12px; }
  .touch-label { display: none; }.direction-pad { grid-template: repeat(3, 34px) / repeat(3, 34px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .loading-track::after { width: 100%; } }
