@font-face {
  font-family: DM;
  src: url(assets/fonts/dm.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(assets/fonts/barlow.woff2) format("woff2");
  font-display: swap;
  font-weight: 700;
}
@font-face {
  font-family: Plex;
  src: url(assets/fonts/plex.woff2) format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #111512;
  --panel: #1a201c;
  --lime: #c7f36c;
  --muted: #a7b0a6;
  --edge: #343c34;
  --pad: clamp(20px, 4.7vw, 86px);
  --mono: Plex, monospace;
  font-family: DM, Arial, sans-serif;
  color: #f5f6ef;
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
[hidden] {
  display: none !important;
}
svg.ico {
  width: 20px;
  height: 20px;
  display: block;
  flex: none;
}
i {
  font-style: normal;
}
button i {
  display: inline-flex;
}
.topbar {
  height: 76px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #111512;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid #303730;
}
.brand,
.header-right,
.topbar nav,
.topbar nav button,
.profile,
.hero-actions,
.section-heading,
.text-btn,
.primary,
.ghost,
.outline,
.hero-loc,
.route-preview > div,
.dark-btn,
.eyebrow,
.search {
  display: flex;
  align-items: center;
}
.brand {
  gap: 10px;
  padding: 0;
  text-align: left;
}
.brand img {
  width: 35px;
  height: 39px;
}
.brand b {
  font:
    700 29px/0.85 Barlow,
    sans-serif;
  letter-spacing: 1.8px;
}
.brand b span {
  display: block;
  font: 600 10px/1.5 var(--mono);
  letter-spacing: 3.3px;
  margin-top: 4px;
}
.topbar nav {
  align-self: stretch;
  gap: 26px;
}
.topbar nav button {
  position: relative;
  gap: 8px;
  color: #aab2a8;
  font-size: 14px;
  font-weight: 600;
  padding: 0 3px;
}
.topbar nav button.active {
  color: var(--lime);
}
.topbar nav button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lime);
}
.topbar nav .ico {
  width: 17px;
  height: 17px;
}
.header-right {
  gap: 16px;
}
.icon-btn,
.profile {
  justify-content: center;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--edge);
  border-radius: 50%;
}
.profile {
  gap: 10px;
  color: #dae0d6;
  font-size: 13px;
  padding: 0;
}
.profile i {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #2d382a;
  color: #cde3b7;
}
.profile svg {
  width: 18px;
}
.hero {
  height: clamp(475px, 62vh, 720px);
  min-height: 455px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #354d40;
}
.hero-img,
.hero-shade {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: -2;
}
.hero-img {
  object-fit: cover;
  object-position: 50% 62%;
  transition: opacity 0.22s;
}
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 15, 12, 0.68), transparent 67%),
    linear-gradient(
      0deg,
      rgba(8, 16, 14, 0.9) 0%,
      rgba(8, 16, 14, 0.2) 34%,
      transparent 66%,
      rgba(10, 19, 16, 0.24) 100%
    );
}
.hero-top {
  position: absolute;
  top: 29px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.live-chip,
.coords,
.hero-loc,
.eyebrow,
.route-preview > div,
.hero-pager,
.hud-location span,
.game-map > div {
  font: 500 12px/1.45 var(--mono);
  letter-spacing: 1px;
}
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #1323199e;
  border: 1px solid #b7d6ad60;
  border-radius: 5px;
  padding: 7px 10px;
  color: #e4f2dc;
}
.live-chip > span {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
}
.coords {
  color: #fff;
  text-shadow: 0 1px 4px #111;
  background: #17221e77;
  padding: 4px 8px;
  border-radius: 3px;
}
.hero-content {
  position: absolute;
  bottom: clamp(51px, 7vh, 90px);
  left: var(--pad);
  max-width: min(72%, 880px);
}
.hero-loc {
  gap: 9px;
  color: #dcf4cb;
  font-weight: 600;
  letter-spacing: 2px;
}
.hero-loc .ico {
  width: 16px;
  height: 16px;
}
.hero-loc .line {
  width: 40px;
  height: 1px;
  background: #b9d4ac70;
}
.hero h1 {
  font-size: clamp(56px, 6.8vw, 116px);
  font-weight: 750;
  line-height: 1.13;
  letter-spacing: -0.065em;
  margin: 9px 0 9px;
  text-shadow: 0 2px 16px #07100f22;
}
.hero-content p {
  font-size: clamp(16px, 1.27vw, 20px);
  line-height: 1.6;
  color: #ebeee6;
  margin: 0;
  max-width: 550px;
  text-wrap: pretty;
}
.hero-actions {
  gap: 10px;
  margin-top: 25px;
}
.primary,
.ghost,
.outline,
.dark-btn {
  justify-content: center;
  gap: 10px;
  font-weight: 650;
  font-size: 14px;
  border-radius: 7px;
  min-height: 45px;
  padding: 0 18px;
}
.primary {
  background: var(--lime);
  color: #192410;
  box-shadow: 0 2px 8px #0002;
}
.primary:hover {
  background: #d9ff8d;
}
.primary svg {
  width: 16px;
}
.ghost,
.dark-btn {
  background: #18201db8;
  border: 1px solid #dee9d650;
  backdrop-filter: blur(8px);
}
.ghost:hover,
.dark-btn:hover,
.route-preview:hover {
  background: #26382cdd;
}
.outline {
  border: 1px solid #a2ae9375;
  background: #ffffff04;
}
.outline:hover {
  border-color: var(--lime);
}
.route-preview {
  position: absolute;
  right: var(--pad);
  bottom: 73px;
  width: 192px;
  background: #121c18d4;
  border: 1px solid #d3e9d25c;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  color: #f6f8f0;
  box-shadow: 0 7px 28px #0003;
}
.route-preview > div {
  padding: 9px 10px;
  font-size: 10px;
  gap: 6px;
  border-bottom: 1px solid #a6b49b42;
}
.route-preview > div b {
  margin-left: auto;
  font-weight: 400;
}
.route-preview svg {
  width: 14px;
  height: 14px;
  color: var(--lime);
}
.route-preview canvas {
  width: 100%;
  height: 76px;
  display: block;
}
.hero-pager {
  position: absolute;
  right: var(--pad);
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cfd7cd;
  font-size: 11px;
}
.hero-pager > span:first-child {
  color: var(--lime);
}
.hero-pager button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #d2e1c850;
  border-radius: 50%;
}
.hero-pager button:hover {
  color: var(--lime);
}
.hero-pager svg {
  width: 14px;
}
.pager-track {
  height: 2px;
  width: 46px;
  background: #e4eedb55;
}
.pager-track b {
  display: block;
  width: 33.3%;
  height: 100%;
  background: var(--lime);
  transition: width 0.2s;
}
.section-pad {
  padding: 34px var(--pad);
}
.parked-trips { margin-bottom:20px }
.parked-trips h2 { margin:0 0 12px; font-family:Barlow,sans-serif; font-size:clamp(24px,3vw,34px) }
.parked-trips ul { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); gap:10px }
.parked-trips li { min-width:0 }
.parked-trips li button { display:flex; width:100%; max-width:620px; gap:14px; align-items:center; text-align:left; background:#1c261f; border:1px solid var(--edge); border-radius:8px; padding:8px 14px 8px 8px }
.parked-trips li button:hover,.parked-trips li button:focus-visible { border-color:var(--lime) }
.parked-trips li img { width:88px; height:64px; border-radius:4px; object-fit:cover }
.parked-trips li span { flex:1; min-width:0 }
.parked-trips li b,.parked-trips li small { display:block }
.parked-trips li b { font-size:1.1rem }
.parked-trips li small { color:var(--muted); font-size:.875rem; margin-top:3px }
.parked-trips li i { color:var(--lime) }
.parked-trips summary { width:fit-content; cursor:pointer; padding:10px 0; color:var(--lime) }
.section-heading,
.workspace-head {
  justify-content: space-between;
  gap: 20px;
}
.section-heading {
  margin-bottom: 19px;
}
.eyebrow {
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 1.8px;
}
.eyebrow i:not([data-i]) {
  width: 19px;
  height: 2px;
  background: var(--lime);
}
h2 {
  font-weight: 700;
  font-size: clamp(25px, 2.3vw, 37px);
  letter-spacing: -0.045em;
  margin: 4px 0 0;
}
.text-btn {
  gap: 9px;
  color: #c6cec0;
  font-size: 13px;
}
.text-btn svg {
  width: 16px;
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.fleet-card {
  position: relative;
  height: clamp(170px, 14vw, 245px);
  border: 1px solid #485242;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  background: #2a352c;
}
.fleet-card img,
.place-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s;
}
.fleet-card:hover img,
.place-card:hover img {
  transform: scale(1.045);
}
.fleet-card:after,
.place-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0c1615ee, transparent 75%);
  pointer-events: none;
}
.fleet-card .mode-tag {
  position: absolute;
  top: 13px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ecf5e7;
  background: #0c1813aa;
  border-radius: 8px;
  border: 1px solid #f3f9ec50;
}
.fleet-card .card-text,
.place-card .card-text {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  left: 17px;
  right: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 6px;
}
.card-text b {
  display: block;
  font-size: 25px;
  letter-spacing: -0.04em;
}
.card-text small {
  color: #d1d8cf;
  display: block;
  font-size: 13px;
  margin-top: 2px;
}
.card-text .launch {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #bdcbb26b;
  border-radius: 50%;
  color: #eff4e9;
}
.card-text .launch svg {
  width: 13px;
}
.daily {
  display: flex;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--edge);
  background: #171d17;
}
.daily h2 {
  font-size: 24px;
}
.daily-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin-inline-start:auto }
.daily .daily-actions .outline { margin:0 }
.daily-actions a { text-decoration:none; white-space:nowrap }
@media(max-width:800px) { .daily-actions { margin-inline-start:0 } }
.daily p,
.muted {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.daily p {
  margin: 4px 0 0;
}
.daily .outline {
  margin-left: auto;
  white-space: nowrap;
}
.daily-emblem {
  width: 58px;
  height: 58px;
  border: 1px solid #4b5840;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--lime);
}
.daily-emblem svg {
  width: 30px;
  height: 30px;
}
footer {
  padding: 20px var(--pad);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  color: #9aa399;
  border-top: 1px solid var(--edge);
  font-size: 12px;
}
footer > span {
  font: 700 16px Barlow;
  letter-spacing: 1.8px;
}
footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer a,
footer button {
  text-decoration: none;
  padding: 0;
}
footer a:hover,
footer button:hover {
  color: var(--lime);
}
.workspace {
  padding: 40px var(--pad) 60px;
  min-height: 75vh;
}
.workspace h1 {
  font-size: clamp(36px, 4.5vw, 70px);
  letter-spacing: -0.06em;
  margin: 3px 0 0;
}
.workspace-head {
  display: flex;
  align-items: end;
  margin-bottom: 26px;
}
.search {
  gap: 8px;
  border: 1px solid #4c564b;
  padding: 10px 14px;
  border-radius: 8px;
  background: #222a23;
}
.search input {
  width: 200px;
  background: transparent;
  border: 0;
  outline: 0;
  color: inherit;
}
.search svg {
  width: 16px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.filters button {
  padding: 8px 13px;
  border: 1px solid var(--edge);
  border-radius: 20px;
  font-size: 14px;
}
.filters button.active,
.dark-btn.on {
  background: #344529;
  color: #deff9c;
  border-color: #a6ce66;
}
.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 14px;
}
.place-card {
  position: relative;
  isolation: isolate;
  border-radius: 8px;
  overflow: hidden;
  height: 173px;
  background: #243027;
  padding: 0;
  text-align: left;
}
.place-card .card-text b {
  font-size: 20px;
}
.place-card .card-text small {
  font-size: 13px;
}
.big-icon svg {
  width: 54px;
  height: 54px;
  color: var(--lime);
}
#world-map {
  width: 100%;
  background-color: #182923;
  background-image:
    linear-gradient(#98c6a610 1px, transparent 1px),
    linear-gradient(90deg, #98c6a610 1px, transparent 1px),
    radial-gradient(ellipse at center, #2d4033, transparent);
  background-size:
    36px 36px,
    36px 36px,
    auto;
  border: 1px solid var(--edge);
  border-radius: 10px;
  overflow: hidden;
}
#world-map svg {
  display: block;
  width: 100%;
  height: clamp(185px, 32vh, 370px);
}
.catalog-country,.catalog-geography {
  fill: #4a604e;
  stroke: #223327;
  stroke-width: 0.6;
  vector-effect:non-scaling-stroke;
}
#world-map .point {
  cursor: pointer;
  fill: var(--lime);
  stroke: #1b2b1c;
  stroke-width: 1.2;
  vector-effect:non-scaling-stroke;
}
#atlas-map-extent { display:block;margin:4px 0 0 auto;min-height:36px }
#atlas-origin { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:0 0 14px }
#atlas-origin h2 { font-size:clamp(1.35rem,3vw,2rem); margin:0 0 4px }
#atlas-origin p { margin:0; color:var(--muted); font-size:1rem }
#world-map .origin-point { fill:#ffc47f;stroke:#20261d }
#world-map .origin-ring { fill:none;stroke:#ffc47f;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none }
.nearby-arcs { fill:none; stroke:#d5e5bf; stroke-width:1.5; stroke-dasharray:4 4; vector-effect:non-scaling-stroke;pointer-events:none }
#world-map .nearby-rank { cursor:pointer }
#world-map .nearby-rank circle { fill:#d7ff93;stroke:#182d21;stroke-width:1.5 }
#world-map .nearby-rank text { fill:#182d21;text-anchor:middle;font:700 12px DM,sans-serif }
#world-map .nearby-rank path { fill:none;stroke:#d7ff93;stroke-width:1.5 }
#world-map:has(.point:focus-visible) .nearby-rank { pointer-events:none;opacity:.45 }
#nearby-key { display:flex; flex-wrap:wrap; gap:4px 12px; list-style:none; padding:0; margin:4px 0 12px }
#nearby-key button { color:var(--lime); font-size:.95rem; text-align:left; min-height:40px; padding:4px }
.place-card .from-origin { color:#dcffaf;font-weight:650 }
#atlas-grid:has(.from-origin) .place-card { min-height:150px }
.nearby-link { display:inline-flex; align-items:center; min-height:44px; overflow-wrap:anywhere }
.onward { margin-top:18px; padding-top:12px; border-top:1px solid var(--edge) }
.onward h3,.onward p { margin:0 0 6px }
.onward ol { margin:10px 0 0; padding:0;list-style:none }
.onward li+li { border-top:1px solid var(--edge) }
.onward li a { display:flex; gap:12px; align-items:center; padding:8px 2px; color:inherit; text-decoration:none }
.onward li a:hover strong,.onward li a:focus-visible strong { color:var(--lime);text-decoration:underline }
.onward li img { width:62px;height:48px;object-fit:cover;border-radius:5px }
.onward li strong,.onward li small { display:block }
.onward li small { color:var(--muted);font-size:.9rem }
#world-map .point:hover,
#world-map .point:focus {
  fill: white;
  stroke: white;
}
.passport-summary {
  display: flex;
  gap: 26px;
  align-items: center;
  background: #20291e;
  border: 1px solid var(--edge);
  padding: 22px;
  border-radius: 9px;
}
#continent-passport { margin:24px 0 }
:is(.journal-resume,.journal-scorecards,.journal-points) { margin:14px 0 18px; border-left:3px solid var(--lime); padding-left:12px }
.journal-scorecards { border-left-color:#99e2ff }
:is(.journal-resume,.journal-scorecards,.journal-points) h3 { margin:0 0 6px }
:is(.journal-resume,.journal-scorecards,.journal-points) a { display:grid; align-content:center; gap:2px; min-height:44px; padding:6px 0; text-underline-offset:3px; overflow-wrap:anywhere }
:is(.journal-resume,.journal-scorecards,.journal-points) summary { padding:.65rem 0; cursor:pointer }
:is(.journal-resume,.journal-scorecards,.journal-points) a span { color:var(--muted) }
.journal-points a { text-decoration:none }
.journal-points a b { text-decoration:underline; text-underline-offset:.2em }
.journal-scorecards a { text-decoration:none }
.journal-scorecards a b { text-decoration:underline;text-underline-offset:.2em }
.journal-scorecards a span { font-size:.9rem }
.journal-heading,.region-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px }
.journal-heading { justify-content:space-between; margin-bottom:15px }
.journal-heading h2 { margin:0; font-size:clamp(24px,3.5vw,36px) }
.journal-heading p,#continent-passport p { line-height:1.5 }
.journal-heading p,.journal-places p,.journal-details p { color:var(--muted) }
.region-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px }
.region-tabs button { border:1px solid var(--edge); border-radius:6px; color:inherit; padding:8px 12px; min-height:44px; font:inherit }
.region-tabs button[aria-pressed=true] { background:var(--lime); color:#182115; border-color:var(--lime) }
.region-tabs small { margin-left:6px; opacity:.8 }
.region-spotlight { display:grid; grid-template-columns:minmax(230px,.9fr) minmax(0,1.1fr); border:1px solid var(--edge); border-radius:10px; background:#19201b; overflow:hidden }
.region-cover { position:relative; min-height:210px }
.region-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.region-story { padding:clamp(16px,3vw,36px); align-self:center }
.region-name { margin:0; font-weight:700; color:var(--lime) }
.region-spotlight h3 { font-size:clamp(24px,3.5vw,38px); line-height:1.1; margin:6px 0 8px }
.region-spotlight p { margin:4px 0 10px }
.region-counts { color:var(--muted) }
.region-actions a,.journal-details>a { color:var(--lime); text-underline-offset:3px; overflow-wrap:anywhere }
.journal-places { margin-block:22px }
.journal-places h3 { font-size:24px; margin:0 }
.journal-places h3 small { color:var(--muted); font-size:16px }
#wish-list,#discovered-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr)); gap:8px; padding:0; list-style:none; margin:.6rem 0 }
#wish-list li,#discovered-list li { display:flex; justify-content:space-between; align-items:center; gap:8px; min-width:0; border:1px solid var(--edge); border-radius:7px; padding:5px }
.journal-place { display:flex; align-items:center; gap:12px; color:inherit; text-align:left; font:inherit; padding:0; min-width:0 }
.journal-place img { width:66px; height:48px; object-fit:cover; border-radius:4px }
.journal-place small { display:block; color:var(--muted); margin-top:2px }
.journal-remove { min-height:40px; color:var(--muted); text-decoration:underline; padding:6px }
.journal-details { border-top:1px solid var(--edge); padding:12px 0 }
.journal-details summary { width:fit-content; cursor:pointer; font-size:1rem; font-weight:650; min-height:28px }
.journal-file { display:flex; flex-wrap:wrap; align-items:center; gap:8px }
.journal-file input { font:inherit; max-width:100% }
#passport-status { color:var(--muted); overflow-wrap:anywhere }
#passport-status:empty { display:none }
@media(max-width:650px) { .region-spotlight { grid-template-columns:1fr }.region-cover { height:140px;min-height:0 }.region-tabs button { padding:6px 9px }.journal-file { min-width:0 } }
.passport-summary strong {
  font: 700 48px Barlow;
  color: var(--lime);
}
.passport-summary p {
  margin: 3px 0;
  color: #bdc8b7;
}
.empty-state {
  padding: 34px 0;
}
.empty-state .primary {
  display: inline-flex;
  margin-top: 10px;
}
#camera-album { margin:28px 0; padding:clamp(14px,2.8vw,32px); border:1px solid var(--edge); background:#171f1a; border-radius:12px; scroll-margin-top:12px }
.album-heading,.album-actions,.passport-nav { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px }
.album-heading { justify-content:space-between; align-items:start }
.album-heading h2 { margin:0; font-size:clamp(25px,3vw,36px) }
.album-heading p,#album-selected,#album-status,#album-empty { margin:6px 0; color:var(--muted) }
#album-status:empty { display:none }
.album-file-actions { display:flex;flex-wrap:wrap;gap:8px }
.album-file-action { position:relative;display:inline-flex;align-items:center;overflow:hidden }
.album-file-action input { position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer }
.album-file-action:focus-within { outline:2px solid var(--lime);outline-offset:3px }
#postcard-read-status:empty,#card-export-status:empty { display:none }
#card-art canvas { display:block;max-width:100%;width:auto;max-height:50vh;margin:8px auto 16px }
#arrival-card { margin-top:18px; border-top:1px solid var(--edge); padding-top:8px }
#arrival-card summary { color:var(--lime); cursor:pointer; padding:8px 0; font-weight:650 }
#arrival-card canvas { display:block; width:auto; height:auto; max-width:100%; max-height:52vh; margin:8px auto }
#arrival-card input { box-sizing:border-box; width:100%; font:inherit }
#arrival-card [role=status]:empty { display:none }
#album-tools { margin:14px 0 }
#album-place { max-width:100%; font:inherit; background:#232d25; color:inherit; padding:6px; border:1px solid var(--edge); border-radius:6px }
.album-actions { margin:9px 0 }
#album-grid,.album-preview-grid { list-style:none; display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr)); gap:12px; padding:0; margin:16px 0 }
#album-grid:empty { display:none }
#album-grid li,.album-preview-grid li { overflow:hidden; border:1px solid #465449; border-radius:7px; background:#202b23 }
.album-open { display:block; width:100%; text-align:left; padding:0 }
.album-open img,.album-preview-grid img { display:block; width:100%; aspect-ratio:1.65; object-fit:contain; background:#111712 }
.album-open b,.album-open small,.album-preview-grid b,.album-preview-grid small { display:block; overflow-wrap:anywhere }
.album-open span,.album-preview-grid span { padding:8px 10px; display:block }
.album-open small,.album-preview-grid small { color:var(--muted) }
.album-pick,.album-preview-grid label { display:block; cursor:pointer }
.album-pick { display:flex; align-items:center; gap:8px; padding:5px 10px; min-height:40px; border-top:1px solid var(--edge) }
.album-pick input,.album-preview-grid input { width:18px; height:18px; accent-color:var(--lime) }
.album-preview-grid { grid-template-columns:repeat(auto-fill,minmax(min(145px,100%),1fr)) }
.album-preview-grid input { margin:8px 10px 0 }
#camera-album :focus-visible { outline-offset:-3px }
@media(max-width:480px){ .passport-nav { margin-top:10px } }
dialog {
  width: min(520px, calc(100% - 28px));
  max-height: 88dvh;
  padding: 0;
  border: 1px solid #51604b;
  border-radius: 14px;
  background: #19221b;
  color: #edf2e8;
  box-shadow: 0 18px 90px #0009;
}
dialog::backdrop {
  background: #030b08bb;
  backdrop-filter: blur(6px);
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #111b16e0;
  z-index: 2;
}
.modal-content {
  padding: 25px;
}
.modal-content h2 {
  font-size: 29px;
  margin: 4px 24px 10px 0;
}
.modal-content p {
  line-height: 1.6;
  color: #ced8c9;
}
.modal-content .primary {
  width: 100%;
  margin-top: 15px;
}
.modal-img {
  width: 100%;
  height: 205px;
  display: block;
  object-fit: cover;
}
.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.modal-actions button,
.modal-actions a {
  margin: 0;
  flex: 1;
  text-decoration: none;
}
.modal-content .modal-actions .primary {
  margin: 0;
  width: auto;
}
.links {
  color: var(--muted);
  font-size: 13px;
}
.control-row,
.daily-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--edge);
  font-size: 14px;
}
.daily-row {
  text-align: left;
  width: 100%;
}
.daily-row img {
  width: 64px;
  height: 43px;
  object-fit: cover;
  border-radius: 4px;
}
.daily-row span {
  flex: 1;
}
.daily-row small {
  display: block;
  color: var(--muted);
}
kbd {
  font: 12px var(--mono);
  background: #303b31;
  border: 1px solid #526151;
  padding: 3px 5px;
  border-radius: 4px;
}
#toast,
#game-notice {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #84987b70;
  border-radius: 8px;
  background: #131f17ed;
  padding: 10px 17px;
  z-index: 15;
  pointer-events: none;
  text-align: center;
}
#toast:empty,
#game-notice:empty {
  display: none;
}
#toast {
  bottom: 25px;
}
#game {
  position: fixed;
  inset: 0;
  background: #546d68;
  z-index: 8;
  overflow: hidden;
  user-select: none;
}
#viewport,
#viewport canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
#viewport { position:relative }
#viewport:focus-visible { outline:2px solid var(--lime);outline-offset:-3px }
.drive-surface { position:absolute;inset:0 }
.photo-view-panel canvas { display:block;width:100%;height:auto;border-radius:9px;background:#23372e }
.photo-view-panel #photo-location-coords { font-family:var(--mono);color:#e9f7da }
.photo-view-links { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px }
.photo-view-panel .modal-actions,.post-view-actions { display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 }
.post-view-actions input { font:inherit;width:100% }
#game.photo-still > :not(#viewport):not(#photo-view-hold):not(#loading) { visibility:hidden }
#game.photo-still #viewport { pointer-events:none }
#game.waypoint-still #viewport { pointer-events:auto }
#photo-view-hold { position:absolute;z-index:2;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);
  width:max-content;max-width:calc(100% - 24px);padding:12px;background:#101d18ed;color:white;border:1px solid #64786a;border-radius:12px }
#photo-view-hold p { margin:0 0 8px;text-align:center;font-size:.95rem }
#photo-view-hold > div { display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap }
#switch-drive-mode { display:block;margin-top:10px }
#pause-save-point { display:block;margin-top:10px }
#pause-invite { display:block; margin:8px 0 }
#ride-map { display:block; width:100%; height:auto; border-radius:8px; border:1px solid var(--edge) }
.ride-position { font-variant-numeric:tabular-nums; overflow-wrap:anywhere }
.ride-choice { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:12px 0 }
.ride-choice select { max-width:100%; min-height:40px; font:inherit }
.ride-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:12px 0 }
#ride-url { max-width:100%; width:100%; box-sizing:border-box; font:inherit }
#ride-status:empty { display:none }
#ride-qr { padding-top:10px; border-top:1px solid var(--edge) }
#ride-qr summary,#survey-invite { color:var(--lime); cursor:pointer; width:fit-content; padding:6px 0 }
#ride-qr canvas { width:min(100%,240px); height:auto; display:block; margin:10px 0; image-rendering:pixelated }
.hud-top,
.hud-bottom {
  position: absolute;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.hud-top {
  top: max(18px, env(safe-area-inset-top));
  align-items: flex-start;
}
.hud-tools,
.hud-location,
.game-controls {
  display: flex;
  gap: 7px;
}
.hud-tools {
  margin-left: auto;
}
.dark-btn {
  pointer-events: auto;
  min-height: 40px;
  padding: 0 12px;
  background: #101a18d9;
  border-color: #b9ccba5e;
}
.hud-location {
  flex-direction: column;
  gap: 2px;
  margin-left: 3px;
  color: white;
  text-shadow:
    0 1px 5px #15251c,
    0 1px 12px #000a;
}
.hud-location strong {
  font-size: 20px;
}
.hud-location span {
  font-size: 11px;
}
#map-image-control:not([hidden]) { display:grid; justify-content:start; gap:3px; margin-bottom:6px; font:12px/1.3 var(--sans,sans-serif) }
#game #map-image-retry { pointer-events:auto; min-height:36px; padding:3px 9px; margin-top:3px;
  color:white; border:1px solid #b2c4b7; background:#16261ff5; border-radius:5px; font-size:12px }
.hud-bottom {
  bottom: 22px;
  justify-content: space-between;
  align-items: end;
}
.instrument,
.game-map {
  background: #101b18dc;
  border: 1px solid #aabda955;
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 11px 15px;
}
.instrument {
  min-width: 120px;
  position: relative;
}
.instrument > i {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--lime);
}
.instrument .ico {
  width: 18px;
}
.instrument b {
  font: 700 40px/1.1 Barlow;
}
.instrument small,
.instrument label {
  font: 11px var(--mono);
  color: #d5dfd1;
}
.meter {
  height: 3px;
  background: #60705e;
  margin: 6px 0;
}
.meter span {
  display: block;
  background: var(--lime);
  height: 100%;
}
.game-map {
  padding: 0;
  overflow: hidden;
  width: 177px;
}
.game-map canvas {
  width: 100%;
  height: 87px;
  display: block;
}
.game-map > div {
  padding: 6px 9px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  border-top: 1px solid #7d927d55;
}
.game-map b {
  color: var(--lime);
}
#bearing {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #14211ac9;
  border: 1px solid #b9ccba5e;
  border-radius: 18px;
  padding: 6px 13px;
  font: 12px var(--mono);
  display: flex;
  gap: 15px;
}
#bearing span {
  color: var(--lime);
}
#bearing { color:white; align-items:center; cursor:pointer; pointer-events:auto; min-height:32px }
#bearing:focus-visible { outline:2px solid var(--lime); outline-offset:2px }
.sight-view select,#survey-sight { width:100%; max-width:100%; min-height:42px; padding:6px 10px;
  color:inherit; border:1px solid var(--edge); border-radius:6px; background:#18261f; font:inherit }
#sight-map,#sight-photo { width:100%; border-radius:9px; background:#18261f }
#sight-map { height:clamp(140px,28dvh,310px) }
#sight-photo { max-height:40dvh; object-fit:contain }
.sight-view h3 { margin:8px 0 4px }
.sight-view p { margin:10px 0; line-height:1.4 }
.sight-view .region-actions { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 0 }
.sight-view .region-actions button { flex:1 1 135px; width:auto; margin:0; min-height:42px }
@media (max-width:390px) {
  .sight-view { padding:19px 16px }
  .sight-view h2 { font-size:24px; padding-right:10px }
  #sight-map { height:clamp(120px,24dvh,170px) }
}
#survey-sights { margin:8px 0; padding:9px 0; border-block:1px solid var(--edge) }
#survey-sights summary { cursor:pointer }
#survey-sights[open] > :not(summary):not([hidden]) { margin-top:8px }
#game-notice {
  top: 80px;
  max-width: 90%;
  font-size: 14px;
}
.touch-drive {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  justify-content: space-between;
  pointer-events: none;
}
.touch-drive div {
  display: flex;
  gap: 6px;
}
.touch-drive button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #14221ccf;
  border: 1px solid #d6e8d273;
  touch-action: none;
  font-size: 20px;
}
.touch-drive button:active {
  background: #749553;
}
.touch-drive .pedal {
  width:auto;
  min-width:46px;
  padding:0 6px;
  border-radius:12px;
  font:600 14px DM, Arial, sans-serif;
}
.touch-drive [data-key="KeyW"] { background:#cee893;color:#152519;border-color:#cee893 }
.touch-drive button[data-held] { background:#48653e;color:white;box-shadow:inset 0 0 0 2px #d7edaa }
.drive-help details { margin:12px 0 }
.drive-help summary { cursor:pointer;padding:8px 0 }
.drive-help .control-row { gap:16px;font-size:1rem }
.drive-help .control-row kbd { text-align:right }
#loading {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  background: #142019e8;
}
.spinner {
  width: 33px;
  height: 33px;
  border: 2px solid #66765e;
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
body.playing {
  overflow: hidden;
}
@media (max-width: 850px) {
  .header-right .profile span {
    display: none;
  }
  .topbar nav {
    gap: 16px;
  }
  .hero-content {
    max-width: 72%;
  }
  .route-preview {
    width: 145px;
  }
  .fleet-grid {
    gap: 10px;
  }
  .fleet-card .card-text {
    left: 12px;
  }
  .fleet-card .card-text b {
    font-size: 21px;
  }
  #bearing {
    top: 67px;
  }
  .hero h1 {
    font-size: clamp(47px, 7.6vw, 72px);
  }
}
@media (any-pointer: coarse), (pointer: coarse), (max-width: 690px) {
  .touch-drive {
    display: flex;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 62px;
    padding: 0 15px;
    gap: 8px;
  }
  .brand {
    gap: 5px;
  }
  .brand img {
    width: 26px;
  }
  .brand b {
    font-size: 20px;
  }
  .brand b span {
    font-size: 7px;
    letter-spacing: 2.5px;
  }
  .topbar nav {
    gap: 4px;
  }
  .topbar nav button {
    font-size: 12px;
    padding: 0 6px;
  }
  .topbar nav button i {
    display: none;
  }
  .header-right {
    gap: 0;
  }
  .header-right .profile {
    display: none;
  }
  .icon-btn {
    width: 32px;
    height: 32px;
  }
  .hero {
    height: 58svh;
    min-height: 400px;
    max-height: 580px;
  }
  .hero-top {
    top: 18px;
  }
  .coords {
    font-size: 9px;
    letter-spacing: 0;
  }
  .live-chip {
    font-size: 9px;
    padding: 6px;
  }
  .hero-img {
    object-position: 57% 55%;
  }
  .hero-content {
    max-width: calc(100% - 40px);
    bottom: 57px;
  }
  .hero h1 {
    font-size: clamp(45px, 12vw, 75px);
    margin: 7px 0;
  }
  .hero-content p {
    font-size: 15px;
    max-width: 360px;
  }
  .hero-actions {
    margin-top: 18px;
  }
  .hero-actions button {
    padding: 0 12px;
    font-size: 13px;
    min-height: 41px;
  }
  .hero-loc {
    font-size: 11px;
  }
  .route-preview {
    display: none;
  }
  .hero-pager {
    bottom: 14px;
  }
  .section-pad,
  .workspace {
    padding: 24px 17px;
  }
  .fleet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .fleet-card {
    height: 140px;
  }
  .fleet-card .mode-tag {
    top: 7px;
    left: 7px;
    width: 28px;
    height: 28px;
  }
  .mode-tag svg {
    width: 16px;
  }
  .fleet-card .card-text {
    left: 8px;
    right: 8px;
    bottom: 9px;
  }
  .fleet-card .card-text b {
    font-size: 17px;
  }
  .fleet-card .card-text small {
    font-size: 11px;
  }
  .fleet-card .launch {
    display: none;
  }
  .section-heading {
    gap: 4px;
    margin-bottom: 13px;
  }
  .section-heading .text-btn {
    font-size: 12px;
    gap: 4px;
    padding: 0;
  }
  .eyebrow {
    font-size: 10px;
  }
  .daily {
    flex-wrap: wrap;
    gap: 12px;
  }
  .daily-emblem {
    display: none;
  }
  .daily .outline {
    margin: 0;
  }
  .daily p {
    font-size: 14px;
  }
  .workspace-head {
    display: block;
  }
  .search {
    margin-top: 13px;
  }
  .search input {
    width: 100%;
  }
  .workspace .big-icon {
    display: none;
  }
  .place-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .place-card {
    height: 125px;
  }
  .place-card .card-text {
    left: 9px;
    right: 6px;
    bottom: 9px;
  }
  .place-card .card-text b {
    font-size: 15px;
  }
  .place-card .card-text small {
    font-size: 11px;
  }
  .hud-top,
  .hud-bottom {
    left: 9px;
    right: 9px;
    gap: 6px;
  }
  .hud-top {
    top: 10px;
  }
  .hud-top button {
    padding: 0 8px;
    min-height: 34px;
  }
  .hud-top .ico {
    width: 16px;
  }
  .hud-tools {
    gap: 3px;
  }
  .hud-location strong {
    font-size: 14px;
  }
  .hud-location span {
    font-size: 9px;
  }
  .hud-top #exit-game span {
    display: none;
  }
  .hud-bottom {
    bottom: 12px;
  }
  .game-map {
    width: 115px;
  }
  .game-map canvas {
    height: 57px;
  }
  .instrument {
    min-width: 91px;
    padding: 7px 9px;
  }
  .instrument b {
    font-size: 29px;
  }
  .game-controls {
    gap: 4px;
  }
  .game-controls button {
    font-size: 11px;
    padding: 0 7px;
    min-height: 32px;
  }
  .game-controls .ico {
    width: 15px;
  }
  .touch-drive button {
    width: 44px;
    height: 44px;
  }
  .modal-img {
    height: 170px;
  }
  .hero-pager {
    font-size: 10px;
  }
  footer {
    align-items: start;
    flex-wrap: wrap;
  }
  footer div {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.collection-title {
  margin: 28px 0 16px;
}
.postcard-image {
  height: auto;
  max-height: 50vh;
  object-fit: contain;
  background: #0c130f;
}
.photo-experience {
  position: fixed;
  inset: 0;
  z-index: 12;
  background: #111b16;
  color: white;
}
.photo-stage,
.photo-stage canvas,
.photo-stage img {
  display: block;
  width: 100%;
  height: 100%;
}
.photo-stage {
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.photo-stage img {
  object-fit: cover;
}
.photo-head,
.photo-foot,
.photo-drive-hud,
.photo-caption {
  position: absolute;
}
.photo-head {
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.photo-head > div,
.photo-foot,
.photo-caption {
  background: #15231bd9;
  border: 1px solid #c5d5be55;
  border-radius: 7px;
  padding: 8px 12px;
}
.photo-head small {
  display: block;
  color: #cbd6c6;
  margin-top: 2px;
}
.photo-foot {
  bottom: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  gap: 7px;
  font-size: 12px;
}
.photo-drive-hud {
  bottom: 69px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  border-radius: 8px;
  background: #17221cdf;
  white-space: nowrap;
}
.photo-drive-hud output {
  font: 12px var(--mono);
  padding: 0 9px;
}
.photo-caption {
  top: 83px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
}
.photo-caption:empty {
  display: none;
}
.experience-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.experience-actions button {
  width: 100%;
}
.experience-actions .primary {
  margin: 0;
}
.photo-trips {
  margin-top: 28px;
}
.photo-trips .place-card {
  height: 145px;
}
.lookout-wide {
  width: min(880px, 95vw);
}
.lookout-wide .modal-img {
  height: auto;
  max-height: 60dvh;
  object-fit: contain;
  background: #101611;
}
.lookout-wide .modal-content {
  padding: 15px 22px;
}
.lookout-wide h2 {
  font-size: 23px;
}
.photo-dispatch {
  padding-top: 4px;
}
.photo-route-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: 16px;
}
.photo-route-cards .place-card {
  height: 180px;
}
.photo-route-cards .card-text .ico {
  width: 17px;
}
.field-film {
  display: block;
  width: 100%;
  max-height: 57dvh;
  background: #080c09;
}
.film-rates {
  display: flex;
  gap: 7px;
}
.film-rates button {
  min-height: 32px;
}
.light-bar,
.field-links,
.field-copy,
.field-score,
.field-facts,
.field-list button {
  display: flex;
  align-items: center;
  gap: 12px;
}
.light-bar {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.87rem;
}
.fleet > .light-bar {
  justify-content: flex-end;
  margin-bottom: 14px;
}
.light-bar select,
.field-panel select,
.field-copy input {
  font: inherit;
  color: inherit;
  background: #111912;
  border: 1px solid #586350;
  border-radius: 6px;
  padding: 9px 12px;
  min-height: 42px;
}
.field-photo {
  display: block;
  width: 100%;
  height: clamp(110px, 21vh, 190px);
  object-fit: cover;
}
#field-image-view {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  background: #0c100e;
}
#field-image-view span {
  position: absolute;
  bottom: 8px;
  left: 12px;
  border-radius: 4px;
  padding: 4px 8px;
  background: #0b130ded;
  color: #f4f7eb;
  font-size: 0.78rem;
}
#field-image-view[aria-expanded="true"] img {
  height: auto;
  max-height: 58dvh;
  object-fit: contain;
}
.field-panel .eyebrow {
  padding-right: 30px;
}
.field-panel .field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 650;
  margin: 16px 0 5px;
}
.field-panel select {
  width: 100%;
  color: #edf2e8;
}
#field-prediction-box p { margin: 4px 0 8px; }
#field-prediction-box small { display: block; margin: 6px 0 14px; }
.field-setup { margin-top: 12px; }
.paired-results {
  border-inline-start: 3px solid var(--lime, #bbdf85);
  padding: 3px 14px;
  margin: 16px 0;
}
.paired-results p { margin: 7px 0; }
.receipt-status {
  border-inline-start: 3px solid var(--lime, #bbdf85);
  background: #213224;
  padding: 10px 14px;
}
.receipt-status.mismatch { border-color: #efac77; background: #342a23; }
.tour-rounds { padding-inline-start: 23px; }
.tour-rounds li { padding: 6px 0; }
.tour-rounds code { display: block; color: var(--muted); }
#pilot-form fieldset {
  min-width: 0;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid var(--edge);
  border-radius: 8px;
}
.pilot-pair {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
}
.pilot-pair input {
  width: 100%; min-height: 42px; padding: 8px 10px; color: inherit;
  font: inherit; background: #111912; border: 1px solid #586350; border-radius: 6px;
}
.report-qr-image { display: grid; justify-items: start; gap: 8px; margin: 12px 0; }
.report-qr-image canvas { width: min(100%, 288px); height: auto; image-rendering: pixelated; }
#qr-preview { width: 100%; max-height: 42vh; object-fit: contain; background: #121712; }
#qr-images { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.field-links:has(#qr-images:focus-visible) label { outline: 2px solid var(--lime); outline-offset: 3px; }
.feedback-preview { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; background: #18241c; font: inherit; }
.decision-total strong { font: 700 1.6rem/1.2 Barlow, sans-serif; color: var(--lime); }
#pilot-form button, #pilot-next { margin-top: 12px; }
#pilot-status:empty { display: none; }
#batch-text {
  width: 100%;
  resize: vertical;
  padding: 12px;
  border: 1px solid #586350;
  border-radius: 6px;
  background: #111912;
  color: inherit;
  font:
    0.94rem/1.55 DM,
    sans-serif;
}
#batch-file {
  max-width: 100%;
  color: var(--muted);
}
#batch-preview:not(:empty),
#batch-status:not(:empty) {
  margin-top: 14px;
}
#batch-issues ul {
  padding-left: 22px;
}
.ledger-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 12px;
}
.ledger-metrics div {
  padding: 10px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: #142018;
}
.ledger-metrics dt,
.ledger-questions small {
  color: var(--muted);
  font-size: 0.85rem;
}
.ledger-metrics dd {
  margin: 5px 0 0;
  color: var(--lime);
  font-weight: bold;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}
.ledger-questions section {
  padding: 12px 0;
  border-top: 1px solid var(--edge);
}
.ledger-questions h3 {
  margin: 0;
}
.ledger-questions ul {
  list-style: none;
  padding: 0;
}
.ledger-questions li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 7px 0;
}
.ledger-questions li b {
  white-space: nowrap;
}
.ledger-questions li strong {
  color: var(--lime);
}
@media (max-width: 420px) {
  .ledger-metrics {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2px 12px;
    border: 1px solid var(--edge);
    border-radius: 6px;
    background: #142018;
  }
  .ledger-metrics div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border: 0;
  }
  .ledger-metrics div + div { border-top: 1px solid var(--edge); border-radius: 0; }
  .ledger-metrics dd { margin: 0; }
}
.field-panel .light-bar select {
  width: auto;
}
.field-copy {
  gap: 6px;
}
.field-copy input {
  min-width: 0;
  flex: 1;
  font: 12px var(--mono);
}
.field-panel details {
  margin: 12px 0;
}
.field-panel summary {
  cursor: pointer;
  color: var(--lime);
  padding: 7px 0;
}
.field-links {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 12px;
}
.field-panel a,
.field-links a {
  color: var(--lime);
  font-size: 0.9em;
}
.field-facts,
.field-score {
  border-block: 1px solid var(--edge);
  justify-content: space-between;
  padding: 12px 0;
}
.field-facts span,
.field-list small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.field-facts b {
  display: block;
  font-size: 1.15rem;
  color: #f2f4ec;
}
.field-score > strong {
  font: 600 3rem var(--mono);
  color: var(--lime);
}
.field-score small {
  color: var(--muted);
  font-size: 1rem;
}
.field-score span {
  font-size: 0.9rem;
  line-height: 1.6;
}
.field-answers,
.field-list {
  display: grid;
  gap: 7px;
}
.field-answers button,
.field-list button {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  text-align: left;
  background: #101912;
}
.field-answers button:hover,
.field-list button:hover {
  border-color: var(--lime);
}
.field-answers b {
  margin-right: 10px;
  font-family: var(--mono);
  color: var(--lime);
}
.field-list {
  margin: 12px 0;
}
.field-list button {
  justify-content: space-between;
}
#field-observe, #voyage-sighting {
  position: absolute;
  left: 16px;
  top: 74px;
  background: #203420ed;
  border-color: #b4d786;
  font-weight: 650;
  color: #dcffad;
  z-index: 2;
}
#field-observe:disabled, #voyage-sighting:disabled {
  opacity: 1;
  background: #152119df;
  color: #ecf5e5;
  border-color: #73846c;
}
@media (max-width: 650px) {
  .fleet > .light-bar {
    justify-content: space-between;
  }
  #field-observe, #voyage-sighting {
    top: 64px;
    left: 9px;
    font-size: 12px;
  }
  #game:has(#field-observe:not([hidden])) #game-notice, #game.in-voyage #game-notice {
    top: 112px;
  }
}
.language-link { display:inline-grid; place-items:center; min-width:40px; min-height:40px; font:600 14px var(--mono); color:#d9e5ce; text-decoration:none; }
@media (max-width:375px) {
  .topbar { height:auto; display:grid; grid-template-columns:1fr auto; gap:0 8px; padding:0 12px }
  .topbar .brand { min-height:44px; justify-self:start }
  .topbar .header-right { grid-column:2; grid-row:1 }
  .topbar nav { grid-column:1/-1; grid-row:2; justify-content:space-between }
  .topbar nav button { min-height:38px; padding:0 10px; font-size:14px }
}
.voyages { scroll-margin-top: 65px; }
.voyages .section-heading { align-items:end; gap:16px; }
.voyages .section-heading p { margin:6px 0 0; color:var(--muted); max-width:62ch; }
.voyage-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(12px,2vw,28px); }
.voyage-card {
  display:grid; position:relative; isolation:isolate; overflow:hidden; align-items:end;
  min-height:clamp(210px,20vw,330px); text-decoration:none; background:#21372c;
  border:1px solid var(--edge); border-radius:10px; color:#fff;
}
.voyage-card img { position:absolute; inset:0; height:100%; width:100%; object-fit:cover; z-index:-2; }
.voyage-card::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,#071610ee,#09181091 36%,transparent 80%); }
.voyage-card div { padding:clamp(15px,2vw,28px); }
.voyage-card h3 { font:700 clamp(24px,2.3vw,38px)/1.07 Barlow,DM,sans-serif; margin:0 0 6px; }
.voyage-card p { color:#e0eadc; font-size:14px; margin:0; }
.voyage-card:hover, .voyage-card:focus-visible { border-color:var(--lime); }
.voyage-cover img { display:block; width:100%; height:clamp(150px,26vh,260px); object-fit:cover; }
.voyage-panel .voyage-hint, .voyage-panel small { color:var(--muted); }
.voyage-list { padding:0; list-style:none; margin:16px 0; }
.voyage-list li, .voyage-journal a { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--edge); }
.voyage-list li > span { font:14px var(--mono); color:var(--muted); }
.voyage-list small { display:block; font-size:14px; }
.voyage-journal { margin:24px 0; }
.voyage-journal a { color:var(--lime); }
.voyage-options { margin:12px 0; }
.voyage-share { display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
#voyage-link input { display:block; width:100%; }
.sighting-note { font-size:1.12rem; line-height:1.58; }
.hero-actions .challenge-link { display:inline-flex; align-items:center; gap:8px; text-decoration:none; }
@media (max-width: 700px) {
  .voyage-grid { grid-template-columns:1fr; }
  .voyage-card { min-height:175px; }
  .voyages .section-heading, .hero-actions { flex-wrap:wrap; }
  .hero-actions .challenge-link { min-height:42px; }
  .language-link { min-width:32px; }
}
.film-rates [aria-pressed="true"] {
  background: #3b4b30;
  color: var(--lime);
}
@media (max-width: 650px) {
  #lookout span {
    display: none;
  }
  .photo-drive-hud {
    max-width: 96vw;
    flex-wrap: wrap;
  }
  .photo-drive-hud output {
    font-size: 10px;
  }
  .game-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  .photo-head {
    left: 10px;
    top: 10px;
  }
  .photo-head small {
    font-size: 11px;
  }
}

.departure-options,
.atlas-tools,
.plan-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.fleet > .departure-options {
  justify-content: flex-end;
  margin-bottom: 20px;
}
.modal-content .departure-options {
  display: grid;
  margin: 16px 0;
  gap: 8px;
}
.departure-options select,
.atlas-tools select {
  font: inherit;
}
.detail-route {
  display: block;
  margin: 12px 0;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--edge);
}
#route-book { margin:8px 0 16px; border-bottom:1px solid var(--edge); padding-bottom:10px }
.survey-map { display:block; width:100%; padding:0; text-align:start; margin:12px 0 0 }
.survey-map .detail-route { margin:0; height:clamp(144px,34vw,215px); border:0; cursor:crosshair }
.survey-map span { display:block; margin-top:5px; font-size:.9rem; color:var(--muted) }
#route-book summary { width:fit-content; min-height:32px; cursor:pointer; color:var(--lime); font-weight:650 }
.route-book-body { padding:10px 0 }
.route-book-body label,.route-book-body output { display:block }
.route-book-body label { font-weight:650 }
#survey-position { display:block; width:100%; accent-color:var(--lime); min-height:36px }
#survey-readout { font:.95rem/1.5 DM,system-ui,sans-serif; font-variant-numeric:tabular-nums; overflow-wrap:anywhere }
#survey-profile-pick { display:block; width:100%; padding:0; margin:8px 0; border-radius:6px; cursor:crosshair }
#survey-profile { display:block; width:100%; height:140px; border-radius:6px; background:#17231e }
#survey-passes p { margin:0 0 6px }
#survey-passes [role=group] { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px }
#survey-passes button { min-height:40px }
#survey-passes button[aria-pressed=true] { border-color:var(--lime); color:var(--lime) }
#survey-profile[hidden],#survey-url[hidden],#survey-extremes[hidden] { display:none }
#survey-extremes { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 }
#survey-ground,#survey-message { color:var(--muted); font-size:.92rem }
#survey-message:empty { display:none }
#point-editor { margin:10px 0; overflow-wrap:anywhere }
#point-name-form { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:8px 0 }
#point-name-form label { flex-basis:100% }
#point-name { min-width:0; width:13rem; max-width:100%; min-height:40px; font:inherit }
#survey-passport { display:inline-block; padding:6px 0; color:var(--lime) }
#survey-url { display:block; max-width:100%; width:100%; margin-top:8px; font:inherit }
.atlas-tools {
  flex-wrap:wrap;
  justify-content: space-between;
  margin: 15px 0;
}
#atlas-share-url { width:100%; margin-top:10px; padding:10px; font:inherit; color:inherit; background:var(--panel); border:1px solid var(--edge); border-radius:5px }
[data-plan-count] {
  font: 13px var(--mono);
  border-radius: 5px;
  background: #374833;
  color: #dbf8aa;
  padding: 3px 7px;
}
.plan-list {
  padding: 0;
  margin: 20px 0;
  list-style: none;
  border-top: 1px solid var(--edge);
}
.plan-list li {
  display: flex;
  align-items: center;
  padding: 11px 0;
  gap: 12px;
  border-bottom: 1px solid var(--edge);
}
.plan-list img {
  width: 62px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}
.plan-list span {
  flex: 1;
  min-width: 0;
}
.plan-list b,
.plan-list small {
  display: block;
}
.plan-list small {
  color: var(--muted);
  margin-top: 4px;
}
.plan-tools {
  display: flex;
  gap: 3px;
}
.plan-tool {
  background: #273329;
  border: 1px solid var(--edge);
  border-radius: 5px;
  width: 32px;
  height: 36px;
}
.plan-tool .ico {
  width: 14px;
  height: 14px;
  margin: auto;
}
.plan-panel .plan-actions {
  gap: 8px;
  align-items: stretch;
}
.plan-panel .primary {
  margin: 0;
  width: auto;
}
#plan-link label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  margin-top: 16px;
}
#plan-link input {
  width: 100%;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: 5px;
  padding: 9px;
}
#game.map-mode .touch-drive > div:first-child,
#game.map-mode .game-map {
  display: none;
}
#game.map-mode .touch-drive {
  justify-content: flex-end;
}
#game.map-mode .game-controls {
  margin-left: auto;
}
.route-progress {
  position: absolute;
  bottom: 126px;
  left: 22px;
  width: 177px;
  background: #12221ce8;
  border: 1px solid #b9ccba5e;
  border-radius: 7px;
  padding: 8px 10px;
  color: #f6faef;
  pointer-events: none;
}
.route-progress > div {
  display: flex;
  justify-content: space-between;
  font: 12px var(--mono);
}
.route-progress progress {
  appearance: none;
  width: 100%;
  height: 4px;
  display: block;
  margin-top: 7px;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #526357;
}
.route-progress progress::-webkit-progress-bar {
  background: #526357;
}
.route-progress progress::-webkit-progress-value {
  background: var(--lime);
}
.route-progress progress::-moz-progress-bar {
  background: var(--lime);
}
#loading {
  padding: 20px;
  gap: 9px;
  text-align: center;
}
#loading p {
  margin: 0 0 10px;
  max-width: 440px;
}
#loading button {
  min-width: 160px;
}
@media (max-width: 650px) {
  .fleet > .departure-options {
    display: grid;
    justify-content: stretch;
  }
  .departure-options .light-bar {
    justify-content: space-between;
    gap: 6px;
  }
  .atlas-tools {
    gap: 8px;
  }
  .atlas-tools .outline {
    font-size: 14px;
  }
  #passport .workspace-head button {
    margin-top: 16px;
  }
  .plan-list img {
    width: 43px;
    height: 43px;
  }
  .plan-list li {
    gap: 7px;
  }
  .plan-tool {
    width: 28px;
  }
  .route-progress {
    bottom: 59px;
    left: 50%;
    transform: translateX(-50%);
    width: 125px;
  }
  #game.map-mode .route-progress {
    left: 9px;
    bottom: 101px;
    transform: none;
  }
  #bearing {
    top: 51px;
    left:auto; right:9px; transform:none;
    font-size: 10px;
    padding: 4px 8px;
    gap: 5px;
  }
}
@media (min-width: 651px) and (pointer: coarse) {
  .route-progress {
    bottom: 188px;
  }
}

.offline-atlas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 32px;
  margin-top: 32px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--panel);
}
.offline-atlas h2 {
  margin: 0 0 8px;
}
.offline-atlas p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 62ch;
}
.offline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.offline-atlas progress,
.offline-atlas [role="status"] {
  grid-column: 1/-1;
}
.offline-atlas progress {
  width: 100%;
  height: 7px;
  accent-color: var(--lime);
}
.offline-atlas [role="status"]:empty {
  display: none;
}
.offline-travel #entry-link {
  display: none;
}
@media (max-width: 700px) {
  .offline-atlas {
    grid-template-columns: 1fr;
  }
}
.travel-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-right: auto;
}
.travel-links a {
  text-decoration: none;
}
#game:not(.map-mode) .route-progress {
  display: none;
}
#route-cue { display:flex; align-items:center; justify-content:flex-start; gap:7px; margin-top:5px;
  padding:6px 0 0; border-top:1px solid #8c9b8e70; text-align:left; color:#f5f7f0 }
.game-map #route-cue { padding:6px 8px; margin:0 }
#route-cue svg { width:23px;height:23px;flex:none;fill:none;stroke:var(--lime);stroke-width:2;stroke-linecap:round;stroke-linejoin:round }
#route-cue strong,#route-cue small { display:block; font:600 .875rem/1.15 DM,sans-serif }
#route-cue small { margin-top:2px;font-weight:400;color:#d1decf }
#route-cue[data-kind="off"] svg,#route-cue[data-kind="back"] svg { stroke:#ffca80 }
.cue-announcement { position:absolute; width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap }
#survey-bends { display:grid; gap:5px; margin:10px 0 14px }
#survey-turn { width:100%; min-width:0; min-height:42px; padding:5px 8px; color:inherit; background:#18261f; border:1px solid var(--edge); border-radius:5px; font:inherit }
#survey-next-cue { color:var(--lime); margin:6px 0 }
@media(max-width:650px) {
  .game-map #route-cue { padding:5px; gap:4px }
  #route-cue svg { width:18px;height:18px }
}
#radar-progress {
  display: block;
  width: 100%;
  height: 4px;
  border: 0;
  accent-color: var(--lime);
}
@media (max-width: 650px) {
  .travel-links {
    margin: 0 0 5px;
    justify-content: space-between;
  }
  .travel-links .text-btn {
    padding: 4px 0;
    font-size: 14px;
  }
}
#departure-wait:not([hidden]) { position:fixed;z-index:30;inset:auto 12px max(12px,env(safe-area-inset-bottom)) auto;max-width:min(25rem,calc(100vw - 24px));display:flex;align-items:center;gap:10px;padding:10px 14px;background:#18211b;color:#f0f3e8;border:1px solid #768578;border-radius:8px;box-shadow:0 4px 18px #10171066 }
#departure-wait { pointer-events:none }
#departure-wait p { margin:0 }
#departure-wait button { pointer-events:auto }
#departure-retry { padding:6px 10px;color:inherit;background:#29392c;border:1px solid #9aaa99;border-radius:6px }
