:root {
  --ink: #eef6f2;
  --muted: #bcd3cf;
  --glass: linear-gradient(130deg, #183f46b8, #15363f80);
  --line: #ffffff2e;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #173d42;
  color: var(--ink);
  font: 13px/1.5 system-ui, "Segoe UI", sans-serif;
}
#stage,
#stage > * {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
#flyover {
  opacity: 0;
  transition: opacity 0.6s;
}
#stage.playing #flyover {
  opacity: 1;
}
#stage.video-failed #flyover {
  display: none;
}
.brand {
  position: fixed;
  top: 32px;
  left: 38px;
  display: flex;
  gap: 12px;
  align-items: center;
  letter-spacing: 3px;
  text-shadow: 0 1px 8px #0006;
}
.brand .mark {
  font-size: 28px;
}
.brand small {
  display: block;
  letter-spacing: 1px;
  color: var(--muted);
}
.experiences {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0;
}
.experiences a { color: var(--ink); text-underline-offset: 4px; }
.experiences [aria-current] { text-decoration: none; color: var(--muted); }
.experiences span { font-size: 10px; color: var(--muted); }
#card {
  position: fixed;
  left: 38px;
  bottom: 38px;
  width: min(360px, calc(100vw - 32px));
  padding: 22px 22px 16px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 4px;
  max-height: calc(100svh - 130px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #bcd3cf80 #173d4280;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  margin: 0;
  font: 30px/1.1 Georgia, serif;
}
.operator {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 11px;
}
.headline {
  margin: 0 0 14px;
  font-size: 14px;
}
.supply {
  margin: 0 0 14px;
}
.context-source {
  font-size: 11px;
}
.facts {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 5px 14px;
  margin: 0 0 16px;
  font-size: 12px;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
}
#card a {
  color: var(--ink);
  text-decoration: underline dotted #ffffff80;
  text-underline-offset: 3px;
}
#reservoirDetails {
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
#reservoirDetails summary {
  cursor: pointer;
  padding: 4px 0;
  color: var(--muted);
}
.detail-body {
  padding-top: 12px;
  font-size: 12px;
}
.detail-body p {
  margin: 0 0 12px;
}
.detail-body h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
.data-note {
  color: var(--muted);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
button,
.nav #fullControls {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: #12333d40;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 12px;
}
button:hover:not(:disabled),
.nav #fullControls:hover {
  background: #e4f3e826;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.nav #next {
  flex: 1;
}
#card #fullControls {
  text-decoration: none;
}
#systemMap {
  position: fixed;
  top: 32px;
  right: 38px;
}
#systemMap ol {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#systemMap li button {
  font-size: 11px;
  padding: 6px 10px;
  background: var(--glass);
}
#systemMap li.active button {
  border-color: #ffffffa0;
}
/* The stop's aerial photograph with the camera marked (renderer/minimap.js). */
#stopMap {
  position: fixed;
  top: 76px;
  right: 38px;
  width: 180px;
  padding: 8px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 4px;
}
#stopMap:empty {
  display: none;
}
.credit {
  position: fixed;
  right: 38px;
  bottom: 24px;
  margin: 0;
  font-size: 10px;
  color: var(--muted);
}
.credit a {
  color: var(--muted);
}
@media (max-width: 700px) {
  #stopMap {
    display: none;
  }
  .brand {
    top: 18px;
    left: 16px;
  }
  #systemMap {
    top: 100px;
    left: 16px;
    right: 16px;
  }
  #card {
    left: 16px;
    bottom: 40px;
    max-height: min(62svh, calc(100svh - 150px));
  }
  .credit {
    left: 16px;
    right: 16px;
    bottom: 12px;
  }
}
#stage.live #flyover,
#stage.live #poster {
  visibility: hidden;
}
#liveFrame {
  background: #173d42;
}
#slowNotice {
  margin: 12px 0 0;
  font-size: 12px;
  color: #ffe2b8;
}
#slowNotice button {
  margin-left: 6px;
  padding: 4px 8px;
}

#livePreset {
  margin-left: 6px;
  font: inherit;
  padding: 6px 8px;
}
@media (prefers-reduced-motion: reduce) {
  #flyover {
    transition: none;
  }
}
