@font-face {
  font-family: Satoshi;
  src: url("/static/fonts/satoshi/satoshi-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Source;
  src: url("/static/fonts/source-sans-pro/SourceSansPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Source;
  src: url("/static/fonts/source-sans-pro/SourceSansPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #1b3263;
  --navy-70: rgba(27, 50, 99, 0.7);
  --navy-50: rgba(27, 50, 99, 0.5);
  --navy-12: rgba(27, 50, 99, 0.12);
  --navy-06: rgba(27, 50, 99, 0.06);
  --blue: #1f66dc;
  --blue-mid: #3b8beb;
  --blue-light: #66b5f7;
  --blue-soft: #e8f1fd;
  --sky: #e4eefb;
  --surface: rgba(255, 255, 255, 0.86);
  --gradient: linear-gradient(135deg, #1f66dc 0%, #66b5f7 100%);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(27, 50, 99, 0.06), 0 12px 32px -12px rgba(27, 50, 99, 0.28);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --gutter: 20px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--sky);
  color: var(--navy);
  font: 400 16px/1.55 Source, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
  font-family: Satoshi, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

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

a {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 3px;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.7em;
  height: 1.7em;
  padding: 0 0.35em;
  margin: 0 0.1em;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 -2px 0 var(--navy-12), 0 0 0 1px var(--navy-12);
  font: 700 0.72em/1 Satoshi, system-ui, sans-serif;
  color: var(--navy);
}

[hidden] {
  display: none !important;
}

.touch-only {
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  .touch-only {
    display: inline;
  }
  .desk-only {
    display: none;
  }
}

/* ---------- 3D stage ---------- */

.stage {
  position: fixed;
  inset: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.stage:active {
  cursor: grabbing;
}
.stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 700 15px/1 Satoshi, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s;
}
.button.primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 10px 24px -10px rgba(31, 102, 220, 0.75);
}
.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(31, 102, 220, 0.85);
}
.button.ghost {
  color: var(--navy);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--navy-12);
}
.button.ghost:hover {
  box-shadow: inset 0 0 0 1px var(--blue-mid);
}
.button.small {
  min-height: 40px;
  font-size: 14px;
}
.button:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  cursor: pointer;
  color: var(--navy);
}
.icon-button svg,
.touch-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button:hover {
  color: var(--blue);
}

/* ---------- HUD ---------- */

.hud {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
  padding-left: calc(var(--gutter) + var(--safe-left));
  padding-right: calc(var(--gutter) + var(--safe-right));
}
.hud > * {
  pointer-events: auto;
}
.hud-top {
  top: 0;
  padding-top: calc(var(--gutter) + var(--safe-top));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  flex: none;
}
.logo img {
  display: block;
  height: 30px;
  width: auto;
}
.hud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-button[aria-pressed="true"] {
  color: #fff;
  background: var(--navy);
}
#sound .off,
#sound[aria-pressed="false"] .on {
  display: none;
}
#sound[aria-pressed="false"] .off {
  display: block;
}
#sound[aria-pressed="true"] {
  color: var(--navy);
  background: var(--surface);
}

/* the next destination, top centre */
.target {
  position: absolute;
  left: 50%;
  top: calc(var(--gutter) + var(--safe-top));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px 0 8px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  max-width: min(480px, calc(100vw - 400px));
}
.target-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient);
}
.target-arrow svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  transition: transform 0.2s linear;
}
.target-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.target small {
  font: 700 10.5px/1 Satoshi, system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.target-progress {
  color: var(--navy-50);
}
.target strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 700 17px/1.1 Satoshi, system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.target-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
}
.target-num:empty {
  display: none;
}
.target-distance {
  flex: none;
  font: 700 14px/1 Satoshi, system-ui, sans-serif;
  color: var(--navy-70);
  font-variant-numeric: tabular-nums;
}
.target.done .target-arrow {
  background: linear-gradient(135deg, #3cc8a0, #1f66dc);
}
.target.done strong {
  font-size: 15px;
}
/* underground the pill turns dark, like the hall */
.target.dark {
  color: #fff;
  background: rgba(8, 16, 34, 0.86);
  box-shadow: 0 0 0 1px rgba(102, 181, 247, 0.25), var(--shadow);
}
.target.dark small {
  color: var(--blue-light);
}
.target.dark .target-distance {
  color: rgba(255, 255, 255, 0.7);
}

.hud-bottom {
  bottom: 0;
  padding-bottom: calc(var(--gutter) + var(--safe-bottom));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.minimap-wrap {
  position: relative;
  display: block;
  width: 184px;
  height: 184px;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  overflow: visible;
}
.minimap {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.compass {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font: 700 11px/1 Satoshi, system-ui, sans-serif;
  box-shadow: 0 2px 6px rgba(27, 50, 99, 0.3);
  pointer-events: none;
}
.key-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--gutter) + var(--safe-bottom) + 6px);
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: 14px;
  white-space: nowrap;
  color: var(--navy-70);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.key-hint.fade {
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
}

.overview-hint {
  position: fixed;
  pointer-events: none;
  left: 50%;
  bottom: calc(var(--gutter) + var(--safe-bottom) + 8px);
  z-index: 6;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: toast-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.overview-hint kbd {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: none;
}
body.overview .target,
body.overview .zone-prompt,
body.overview .key-hint {
  visibility: hidden;
}
body.bunker .minimap-wrap,
body.bunker .key-hint,
body.bunker .overview-hint .pick {
  display: none;
}
body.bunker .hud .icon-button:not([aria-pressed="true"]) {
  color: #fff;
  background: rgba(8, 16, 34, 0.7);
}
body.overview .stage {
  cursor: pointer;
}

.zone-prompt {
  position: absolute;
  left: 50%;
  bottom: calc(var(--gutter) + var(--safe-bottom) + 64px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 12px 12px 22px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(31, 102, 220, 0.14), 0 24px 48px -18px rgba(27, 50, 99, 0.45);
  cursor: pointer;
  text-align: left;
  animation: prompt-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.zone-prompt-text {
  display: grid;
  gap: 3px;
}
.zone-prompt small {
  font: 700 11px/1 Satoshi, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.zone-prompt strong {
  font: 700 21px/1.1 Satoshi, system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.zone-prompt-key {
  display: grid;
  place-items: center;
  min-width: 64px;
  height: 48px;
  padding: 0 12px;
  border-radius: 14px;
  color: #fff;
  background: var(--gradient);
  font: 700 14px/1 Satoshi, system-ui, sans-serif;
}
.zone-prompt.dark {
  color: #fff;
  background: #0b1426;
  box-shadow: 0 0 0 1px rgba(102, 181, 247, 0.35), 0 24px 48px -18px rgba(0, 0, 0, 0.7);
}
.zone-prompt.dark small {
  color: var(--blue-light);
}
.zone-prompt-key kbd {
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
}
@media (hover: none) and (pointer: coarse) {
  .zone-prompt-key kbd {
    display: none;
  }
}
@keyframes prompt-in {
  from {
    opacity: 0;
    transform: translate(-50%, 16px) scale(0.96);
  }
}

/* ---------- touch controls ---------- */

.touch {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 4;
  height: 46%;
  pointer-events: none;
}
.joystick {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 55%;
  height: 100%;
  pointer-events: auto;
  touch-action: none;
}
.joystick-ring {
  position: absolute;
  left: calc(28px + var(--safe-left));
  bottom: calc(40px + var(--safe-bottom));
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1.5px rgba(27, 50, 99, 0.12), var(--shadow);
  transition: opacity 0.2s;
}
.joystick.active .joystick-ring {
  transition: none;
}
.joystick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 8px 18px -6px rgba(31, 102, 220, 0.8);
}
.touch-buttons {
  position: absolute;
  right: calc(24px + var(--safe-right));
  bottom: calc(44px + var(--safe-bottom));
  display: flex;
  align-items: flex-end;
  gap: 12px;
  pointer-events: auto;
}
.touch-button {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.touch-button.small {
  width: 48px;
  height: 48px;
  align-self: flex-start;
}
.touch-button.primary {
  width: 76px;
  height: 76px;
  color: #fff;
  background: var(--gradient);
}
.touch-button.pressed {
  transform: scale(0.92);
}
.touch-button svg {
  width: 26px;
  height: 26px;
}

body.touch-mode .key-hint {
  display: none;
}
body.touch-mode .minimap-wrap {
  position: fixed;
  top: calc(var(--gutter) + var(--safe-top) + 58px);
  right: calc(var(--gutter) + var(--safe-right));
  width: 112px;
  height: 112px;
  border-width: 3px;
}
body.touch-mode .zone-prompt {
  bottom: calc(var(--safe-bottom) + 200px);
}

/* ---------- intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(60% 70% at 50% 50%, rgba(255, 255, 255, 0.92) 0%, rgba(232, 239, 245, 0.55) 70%, rgba(232, 239, 245, 0.25) 100%);
  transition: opacity 0.8s ease, visibility 0.8s;
}
.intro:not(.ready) {
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, var(--sky) 70%);
}
.intro.leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-card {
  width: min(540px, 100%);
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 36px 28px;
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(27, 50, 99, 0.45);
}
.intro-logo {
  width: min(300px, 78vw);
  height: auto;
  mix-blend-mode: multiply;
}
.intro-lead {
  margin: 0;
  max-width: 440px;
  font-size: 17px;
  color: var(--navy-70);
}
.loader {
  width: 220px;
  height: 4px;
  border-radius: 4px;
  background: var(--navy-12);
  overflow: hidden;
}
.loader span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  transition: width 0.3s ease;
}
.loader.done {
  opacity: 0;
}
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.intro-error {
  margin: 0;
  font-size: 14px;
  color: #b42318;
}
.intro-lead strong {
  display: block;
  margin-bottom: 4px;
  font: 700 21px/1.2 Satoshi, system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--navy);
}
/* three steps: drive, follow the route, stop and press Enter */
.intro-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.intro-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding: 30px 10px 16px;
  border-radius: 18px;
  background: var(--blue-soft);
  font-size: 13px;
  line-height: 1.35;
  color: var(--navy-70);
  counter-increment: step;
}
.intro-steps li::before {
  content: counter(step);
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  font: 700 11px/1 Satoshi, system-ui, sans-serif;
  color: #fff;
}
.intro-steps b {
  font: 700 14px/1.2 Satoshi, system-ui, sans-serif;
  color: var(--navy);
}
.intro-steps kbd {
  font-size: 0.66em;
}

/* ---------- dialogs ---------- */

dialog {
  border: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  color: var(--navy);
}
dialog::backdrop {
  background: rgba(27, 50, 99, 0.12);
}

.panel {
  position: fixed;
  inset: calc(16px + var(--safe-top)) calc(16px + var(--safe-right)) calc(16px + var(--safe-bottom)) auto;
  width: min(460px, calc(100vw - 32px));
  height: auto;
  max-height: none;
  margin: 0;
  padding: 36px 32px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px -24px rgba(27, 50, 99, 0.5);
}
.panel[open] {
  animation: panel-in 0.45s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.panel::backdrop {
  background: linear-gradient(90deg, rgba(27, 50, 99, 0) 30%, rgba(27, 50, 99, 0.18));
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
}
.panel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  box-shadow: none;
  background: var(--navy-06);
}
.panel .kicker,
.panel h2 {
  padding-right: 48px;
}
.panel .sections > section {
  padding: 0;
}
body:has(dialog[open]) .zone-prompt {
  visibility: hidden;
}
.sections > section {
  display: grid;
  gap: 16px;
}
.sections h2 {
  font-size: 34px;
}
.sections h3 {
  font-size: 18px;
}
.sections p {
  margin: 0;
  color: var(--navy-70);
}
.sections .lead {
  font-size: 19px;
  color: var(--navy);
}
/* the projects: one card per poster in the gallery */
.project {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  background: #f6f8fb;
  box-shadow: inset 0 0 0 1px var(--navy-06);
}
.project h3 {
  font-size: 26px;
}
.project .lead {
  font-size: 17px;
}
.project .button {
  justify-self: start;
}
.kicker {
  font: 700 12px/1 Satoshi, system-ui, sans-serif !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue) !important;
}
.shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--navy-12), 0 16px 32px -20px rgba(27, 50, 99, 0.5);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot.archived img {
  filter: grayscale(1) contrast(0.9);
  opacity: 0.8;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  font: 700 13px/1 Satoshi, system-ui, sans-serif;
  color: var(--blue);
}
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 13px/1 Satoshi, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue) !important;
}
.status.off {
  color: #a02929 !important;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}
.service-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: service;
}
.service-list li {
  position: relative;
  padding: 16px 16px 16px 58px;
  border-radius: 16px;
  background: var(--blue-soft);
  counter-increment: service;
}
.service-list li::before {
  content: "0" counter(service);
  position: absolute;
  left: 16px;
  top: 16px;
  font: 700 15px/1.2 Satoshi, system-ui, sans-serif;
  color: var(--blue);
}
.service-list p {
  margin-top: 4px;
  font-size: 15px;
}
.process {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font: 700 13px/1 Satoshi, system-ui, sans-serif;
}
.process span {
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--navy-12);
  color: var(--navy);
}
.process span + span::before {
  content: "→ ";
  color: var(--blue);
}
.person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--blue-soft);
}
.person img:first-child {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}
.person div {
  display: grid;
  flex: 1;
}
.person span {
  font-size: 14px;
  color: var(--navy-70);
}
.person .flag {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brief {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: var(--blue-soft);
}
.brief label {
  display: grid;
  gap: 6px;
  font: 700 13px/1 Satoshi, system-ui, sans-serif;
}
.brief input,
.brief textarea {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--navy-12);
  font-size: 16px;
  font-weight: 400;
  resize: vertical;
}
.brief input:focus,
.brief textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--blue-mid);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips button {
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--navy-12);
  font-size: 13px;
  cursor: pointer;
}
.chips button:hover {
  box-shadow: inset 0 0 0 1px var(--blue-mid);
  color: var(--blue);
}
.form-note {
  font-size: 13px;
}
.form-note.error {
  color: #b42318 !important;
}
details {
  border-top: 1px solid var(--navy-12);
  padding: 12px 0 0;
}
summary {
  cursor: pointer;
  font: 700 15px/1.3 Satoshi, system-ui, sans-serif;
}
details p {
  margin-top: 8px !important;
  font-size: 15px;
}
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-top: 8px;
  font-size: 13px;
}
.legal a {
  color: var(--navy-70);
  text-decoration: none;
}
.legal a:hover {
  color: var(--blue);
}

.menu {
  position: fixed;
  inset: calc(16px + var(--safe-top)) calc(16px + var(--safe-right)) auto auto;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px - var(--safe-top) - var(--safe-bottom));
  margin: 0;
  padding: 24px;
  overflow-y: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px -24px rgba(27, 50, 99, 0.5);
}
.menu[open] {
  animation: menu-in 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sheet-head h2 {
  font-size: 24px;
}
.sheet-head .icon-button {
  box-shadow: none;
  background: var(--navy-06);
}
.place-list {
  display: grid;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.place-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.place-list button:hover {
  background: var(--blue-soft);
}
.menu-map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 0.78;
  margin: 0 0 12px;
  border-radius: 16px;
  background: #dfeccf;
  cursor: pointer;
}
.place-list .num {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--navy-06);
  font: 700 14px/1 Satoshi, system-ui, sans-serif;
}
.place-list .visited .num {
  background: var(--navy);
}
.place-list .bunker .num {
  background: #0b1426;
  box-shadow: 0 0 0 1px rgba(102, 181, 247, 0.5);
}
.place-list .bunker.visited .num {
  color: var(--blue-light);
}
.place-list strong {
  display: block;
  font: 700 16px/1.2 Satoshi, system-ui, sans-serif;
}
.place-list small {
  color: var(--navy-50);
}
.menu-subtitle {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-50);
}
.controls-list {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 14px;
}
.controls-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.controls-list dd {
  margin: 0;
  text-align: right;
  color: var(--navy-70);
}

.toast {
  position: fixed;
  left: 50%;
  top: calc(84px + var(--safe-top));
  z-index: 30;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
  font: 700 15px/1.2 Satoshi, system-ui, sans-serif;
  white-space: nowrap;
  animation: toast-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
}

.noscript-note {
  margin: 0;
  padding: 12px 16px;
  background: var(--blue-soft);
  text-align: center;
}

/* ---------- menu tabs ---------- */

.tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 14px;
  background: var(--navy-06);
}
.tabs button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: 700 14px/1 Satoshi, system-ui, sans-serif;
  color: var(--navy-70);
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(27, 50, 99, 0.12);
}
.pane-lead {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--navy-70);
}
.menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.menu-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-actions .button[aria-pressed="true"] {
  color: #fff;
  background: var(--navy);
  box-shadow: none;
}
#reset-progress {
  color: var(--navy-50);
}
.touch-note {
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  .touch-note {
    display: block;
  }
}

/* ---------- achievement ---------- */

.achievement {
  position: fixed;
  left: 50%;
  top: calc(84px + var(--safe-top));
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
  max-width: calc(100vw - 32px);
  padding: 12px 20px 12px 12px;
  border-radius: 18px;
  background: #1b3263;
  color: #fff;
  box-shadow: 0 24px 48px -18px rgba(27, 50, 99, 0.7);
  transform: translateX(-50%);
  animation: achievement-in 0.55s cubic-bezier(0.2, 1.2, 0.3, 1);
}
.achievement-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2c230, #e0601c);
}
.achievement-icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  animation: spin-in 0.8s cubic-bezier(0.2, 1.2, 0.3, 1);
}
.achievement-text {
  display: grid;
  gap: 3px;
}
.achievement small {
  font: 700 11px/1 Satoshi, system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f2c230;
}
.achievement strong {
  font: 700 18px/1.1 Satoshi, system-ui, sans-serif;
}
.achievement span:last-child {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}
@keyframes achievement-in {
  from {
    opacity: 0;
    transform: translate(-50%, -20px) scale(0.9);
  }
}
@keyframes spin-in {
  from {
    transform: rotate(-180deg) scale(0.3);
  }
}

.portal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: radial-gradient(80% 80% at 50% 45%, #0c1a38 0%, #03060d 70%);
  opacity: 0;
  transition: opacity 0.38s ease;
  pointer-events: none;
}
.portal.open {
  opacity: 1;
  pointer-events: auto;
}
.portal-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #fff;
  text-align: center;
  transform: translateY(10px);
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.portal.open .portal-card {
  transform: none;
}
.portal-card small {
  font: 700 12px/1 Satoshi, system-ui, sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.portal-card strong {
  font: 700 clamp(24px, 4vw, 34px)/1.1 Satoshi, system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.portal-depth {
  font: 700 15px/1 Satoshi, system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
.portal-depth b {
  font-size: 44px;
  color: #fff;
  letter-spacing: -0.03em;
}
.portal-bar {
  width: 200px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.portal-bar span {
  display: block;
  height: 100%;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
}

/* the data centre is dark, like the hall below */
.panel.dark {
  color: #fff;
  background: #070f22;
  box-shadow: 0 0 0 1px rgba(102, 181, 247, 0.18), 0 30px 80px -24px rgba(0, 0, 0, 0.7);
}
.panel.dark .panel-close {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
section.dark {
  color: #fff;
}
section.dark .kicker {
  color: var(--blue-light) !important;
}
section.dark p,
section.dark .form-note {
  color: rgba(220, 232, 255, 0.72);
}
section.dark .lead {
  color: #fff;
}
.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.figures li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--blue-soft);
}
.figures b {
  font: 700 30px/1 Satoshi, system-ui, sans-serif;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.figures li:nth-child(3) b {
  font-size: 22px;
  line-height: 1.36;
  color: var(--blue);
}
.figures span {
  font: 700 11px/1.3 Satoshi, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-70);
}
.network-map {
  margin: 4px 0 0;
  padding: 14px;
  border-radius: 18px;
  background: radial-gradient(120% 120% at 50% 0%, #0d1d42, #050b19);
  box-shadow: inset 0 0 0 1px rgba(102, 181, 247, 0.16);
}
.network-map canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 360 / 136;
}
.network-map figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(220, 232, 255, 0.55);
}
.regions {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.regions li {
  display: grid;
  gap: 6px;
}
.region-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 15px/1.2 Satoshi, system-ui, sans-serif;
}
.region-name i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}
.region-name b {
  margin-left: auto;
  font-size: 13px;
  color: var(--navy-70);
  font-variant-numeric: tabular-nums;
}
.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cities span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--navy-06);
  font-size: 13px;
}
.cities .home {
  background: rgba(213, 43, 30, 0.14);
}
.cities .home::after {
  content: " · Leitstand";
  opacity: 0.7;
}
/* in the dark section the same parts glow on navy */
section.dark .figures li {
  background: rgba(102, 181, 247, 0.08);
  box-shadow: inset 0 0 0 1px rgba(102, 181, 247, 0.18);
}
section.dark .figures li:nth-child(3) b {
  color: #9fd0ff;
}
section.dark .figures span,
section.dark .region-name b {
  color: rgba(220, 232, 255, 0.72);
}
section.dark .cities span {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(230, 240, 255, 0.9);
}
section.dark .cities .home {
  background: rgba(213, 43, 30, 0.3);
  color: #fff;
}

/* ---------- the website without driving ---------- */

.site {
  position: fixed;
  inset: 0;
  width: min(1000px, calc(100vw - 32px));
  height: min(920px, calc(100dvh - 32px));
  margin: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 100px -30px rgba(27, 50, 99, 0.55);
}
.site:not([open]) {
  display: none;
}
.site[open] {
  animation: site-in 0.4s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.site::backdrop {
  background: rgba(232, 239, 245, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@keyframes site-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
}
.site-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px 16px 28px;
  border-bottom: 1px solid var(--navy-06);
}
.site-logo {
  flex: none;
  display: flex;
}
.site-logo img {
  width: auto;
  height: 30px;
  mix-blend-mode: multiply;
}
.site-nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}
.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--navy-70);
  font: 700 14px/1 Satoshi, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--navy);
  background: var(--navy-06);
}
.site-nav a[aria-current] {
  color: #fff;
  background: var(--navy);
}
.site-menu {
  display: none;
  box-shadow: none;
  background: var(--navy-06);
}
.site-close {
  flex: none;
  box-shadow: none;
  background: var(--navy-06);
}
.site-drive {
  flex: none;
}
.site-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 40px 48px 48px;
}
.site-body:focus-visible {
  outline-offset: -4px;
}
.site-body .sections {
  max-width: 760px;
  margin: 0 auto;
}
.site-body h2 {
  font-size: clamp(30px, 4vw, 42px);
}
.site-body section.dark {
  padding: 32px;
  border-radius: 24px;
  background: #070f22;
  box-shadow: 0 0 0 1px rgba(102, 181, 247, 0.18);
}
.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 28px;
  border-top: 1px solid var(--navy-06);
  font-size: 13px;
  color: var(--navy-70);
}
.site-foot .legal {
  padding: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.cards a {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 100%;
  padding: 18px;
  border-radius: 18px;
  color: var(--navy);
  background: var(--blue-soft);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cards a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px rgba(27, 50, 99, 0.5);
}
.cards b {
  font: 700 18px/1.2 Satoshi, system-ui, sans-serif;
}
.cards span:not(.card-num) {
  font-size: 14px;
  color: var(--navy-70);
}
.card-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font: 700 13px/1 Satoshi, system-ui, sans-serif;
}
.cards li:last-child a {
  color: #fff;
  background: #0b1426;
}
.cards li:last-child span:not(.card-num) {
  color: rgba(220, 232, 255, 0.75);
}

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  :root {
    --gutter: 14px;
  }
  .logo {
    height: 44px;
    padding: 0 12px;
  }
  .logo img {
    height: 24px;
  }
  .desk-tool {
    display: none;
  }
  .key-hint {
    display: none;
  }
  .minimap-wrap {
    width: 120px;
    height: 120px;
    border-width: 3px;
  }
  .target {
    top: calc(var(--gutter) + var(--safe-top) + 54px);
    left: calc(var(--gutter) + var(--safe-left));
    right: auto;
    transform: none;
    max-width: calc(100vw - 2 * var(--gutter) - 130px);
    height: 46px;
  }
  .target-arrow {
    width: 32px;
    height: 32px;
  }
  .target strong {
    font-size: 15px;
  }
  .target-progress {
    display: none;
  }
  .achievement,
  .toast {
    top: calc(var(--safe-top) + 128px);
  }
  .overview-hint {
    bottom: calc(var(--safe-bottom) + 24px);
    white-space: normal;
    text-align: center;
    width: max-content;
    max-width: calc(100vw - 32px);
  }
  .panel {
    inset: auto 0 0 0;
    width: 100%;
    max-height: 86dvh;
    padding: 28px 20px calc(24px + var(--safe-bottom));
    border-radius: 24px 24px 0 0;
  }
  .panel[open] {
    animation-name: sheet-in;
  }
  .panel::backdrop {
    background: rgba(27, 50, 99, 0.18);
  }
  .panel h2 {
    font-size: 28px;
  }
  .zone-prompt {
    width: calc(100% - 28px - var(--safe-left) - var(--safe-right));
    max-width: 420px;
    justify-content: space-between;
  }
}
@media (max-width: 860px) {
  .site {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  .site-head {
    flex-wrap: wrap;
    gap: 10px;
    padding: calc(12px + var(--safe-top)) 14px 12px 18px;
  }
  .site-logo {
    margin-right: auto;
  }
  .site-logo img {
    height: 24px;
  }
  .site-menu {
    display: grid;
    order: 2;
  }
  .site-close {
    order: 3;
  }
  .site-drive {
    order: 1;
    padding: 0 14px;
  }
  .site-nav {
    order: 4;
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 6px;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
  }
  .site-body {
    padding: 28px 18px calc(32px + var(--safe-bottom));
  }
  .site-body section.dark {
    padding: 22px 18px;
  }
  .site-foot {
    padding: 12px 18px calc(12px + var(--safe-bottom));
  }
}
@keyframes sheet-in {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
@media (max-width: 959px) and (min-width: 761px) {
  /* not enough room between logo and buttons: the destination moves below them */
  .target {
    top: calc(var(--gutter) + var(--safe-top) + 62px);
    max-width: 380px;
  }
  .achievement,
  .toast {
    top: calc(var(--safe-top) + 146px);
  }
}
@media (max-width: 520px) {
  .intro-card {
    padding: 28px 18px;
  }
  .intro-steps {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .intro-steps li {
    justify-items: start;
    row-gap: 2px;
    padding: 10px 12px 10px 44px;
    text-align: left;
  }
  .intro-steps li::before {
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
  }
  .figures b {
    font-size: 26px;
  }
}
@media (max-width: 380px) {
  .hud-actions {
    gap: 6px;
  }
  .icon-button {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* phones held sideways: a compact intro card */
@media (max-height: 540px) {
  .intro {
    padding: 12px;
  }
  .intro-card {
    gap: 12px;
    padding: 18px 24px;
    width: min(560px, 100%);
  }
  .intro-logo {
    width: min(200px, 50vw);
  }
  .intro-lead {
    font-size: 15px;
  }
  .intro-steps li {
    padding: 28px 8px 10px;
  }
}
