@import url("./style.css");
:root {
  --accent: #b9edac;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #132229;
  color: #eff5ed;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}
button,
select,
a,
input {
  font: inherit;
}
button,
select {
  color: inherit;
  background: #172a31eb;
  border: 1px solid #c9e5d52b;
  border-radius: 10px;
  cursor: pointer;
  min-height: 42px;
  padding: 10px 14px;
}
button:hover,
select:hover {
  background: #2b454b;
}
button:focus-visible,
select:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #b9edac;
  outline-offset: 3px;
}
button[aria-pressed="true"] {
  background: #b9edac;
  color: #162c26;
  border-color: #b9edac;
}
#canvas-container {
  position: fixed;
  inset: 0;
}
#canvas-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.seattle-header {
  position: fixed;
  inset: 24px 24px auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  z-index: 10;
}
.identity,
.top-tools {
  pointer-events: auto;
  background: #13262ded;
  backdrop-filter: blur(18px);
  border: 1px solid #d5ebdb30;
  border-radius: 16px;
  box-shadow: 0 8px 40px #0b171b30;
}
.identity {
  padding: 18px 24px;
  min-width: 260px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #b9edac;
  font-weight: 700;
}
h1 {
  font-weight: 550;
  font-size: 29px;
  letter-spacing: -1px;
  margin: 7px 0 4px;
  line-height: 1.1;
}
.identity p {
  margin: 0;
  font-size: 12px;
  color: #b3c3c2;
}
.top-tools {
  display: flex;
  gap: 6px;
  padding: 7px;
  align-items: center;
}
.repo {
  padding: 12px;
  color: #c3d1cc;
  font-size: 12px;
  text-decoration: none;
}
.controls {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #13262df2;
  border: 1px solid #d5ebdb30;
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 8px 40px #0b171b60;
  display: flex;
  gap: 6px;
}
.status-card {
  position: fixed;
  left: 24px;
  bottom: 26px;
  z-index: 10;
  background: #13262deb;
  border: 1px solid #d5ebdb30;
  backdrop-filter: blur(18px);
  border-radius: 16px;
  padding: 15px 18px;
  width: 235px;
}
.status-card strong {
  display: block;
  font-size: 15px;
  font-weight: 550;
  margin: 7px 0 12px;
}
.speed {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.speed small {
  font-size: 10px;
  color: #b3c3c2;
  letter-spacing: 0.1em;
  margin-left: 6px;
}
.hint {
  font-size: 11px;
  color: #b3c3c2;
  margin-top: 10px;
  line-height: 1.7;
}
.atlas-card {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 10;
  width: 220px;
  background: #13262de8;
  border: 1px solid #d5ebdb30;
  border-radius: 16px;
  overflow: hidden;
}
#radar {
  display: block;
  width: 220px;
  height: 175px;
  cursor: pointer;
}
.atlas-caption {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid #d5ebdb20;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #c3d1cc;
}
.attribution {
  position: fixed;
  bottom: 5px;
  right: 24px;
  z-index: 10;
  font-size: 9px;
  color: #dae5e0;
  text-shadow: 0 1px 4px #000;
}
.attribution a {
  color: inherit;
}
#destinations {
  position: fixed;
  top: 92px;
  right: 24px;
  width: 290px;
  border-radius: 16px;
  padding: 8px;
  border: 1px solid #d5ebdb30;
  background: #13262df7;
  color: inherit;
  max-height: 65vh;
  overflow: auto;
  z-index: 15;
}
#destinations::backdrop {
  background: transparent;
}
#destinations button {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  background: transparent;
}
#destinations button:hover {
  background: #2b454b;
}
#destinations small {
  display: block;
  font-size: 11px;
  color: #adc2bb;
  margin-top: 4px;
}
dialog {
  margin: auto;
  color: inherit;
  background: #13262df5;
  border: 1px solid #d5ebdb40;
  border-radius: 20px;
  padding: 24px;
  max-width: calc(100vw - 28px);
  box-shadow: 0 24px 120px #0008;
}
dialog::backdrop {
  background: #07131888;
  backdrop-filter: blur(7px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.dialog-head h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 5px 0 0;
  letter-spacing: -0.5px;
}
#atlas {
  width: min(900px, 90vw);
}
#map-search {
  width: 100%;
  background: #20363d;
  color: white;
  border: 1px solid #d5ebdb30;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}
#atlas-map {
  display: block;
  width: 100%;
  height: min(65vh, 620px);
  border-radius: 12px;
  cursor: crosshair;
  touch-action: none;
}
#map-status {
  font-size: 12px;
  color: #b3c3c2;
  margin: 12px 0 0;
  min-height: 18px;
}
#help {
  width: 480px;
  line-height: 1.7;
}
#help p {
  font-size: 14px;
  color: #b3c3c2;
}
kbd {
  color: #e8f0e8;
  background: #2b454b;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 11px;
}
#loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #13262d;
  display: grid;
  place-items: center;
  transition: opacity 0.5s;
}
#loading-overlay[hidden] {
  display: none;
}
.loading-inner {
  width: min(350px, 80vw);
}
.loading-inner h2 {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -2px;
  margin: 15px 0 24px;
}
.loading-line {
  height: 2px;
  background: #31453e;
  overflow: hidden;
}
.loading-line::after {
  content: "";
  display: block;
  height: 2px;
  background: #b9edac;
  animation: loading 1.5s ease-in-out infinite;
  width: 40%;
}
#loading-status {
  font-size: 12px;
  color: #b3c3c2;
  margin-top: 15px;
  line-height: 1.6;
}
@keyframes loading {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(350%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-line::after {
    animation: none;
    width: 100%;
  }
}
@media (max-width: 1000px) {
  .status-card {
    bottom: 100px;
  }
  .atlas-card {
    bottom: 100px;
  }
  .controls {
    bottom: 20px;
  }
  .top-tools select {
    max-width: 140px;
  }
  .repo {
    display: none;
  }
}
@media (max-width: 650px) {
  .seattle-header {
    inset: 12px 12px auto;
    display: block;
  }
  .identity {
    padding: 12px 16px;
    min-width: 0;
    width: fit-content;
  }
  h1 {
    font-size: 24px;
  }
  .identity p {
    display: none;
  }
  .top-tools {
    margin-top: 10px;
    width: fit-content;
    gap: 3px;
  }
  .top-tools button,
  .top-tools select {
    font-size: 12px;
    padding: 8px;
  }
  .status-card {
    left: 12px;
    bottom: 174px;
    width: 170px;
    padding: 12px;
  }
  .status-card strong {
    font-size: 13px;
  }
  .atlas-card {
    right: 12px;
    bottom: 174px;
    width: 145px;
  }
  #radar {
    width: 145px;
    height: 140px;
  }
  .atlas-caption {
    font-size: 8px;
    padding: 9px;
  }
  .controls {
    bottom: 112px;
    width: calc(100% - 24px);
    justify-content: space-between;
  }
  .controls button {
    flex: 1;
    padding: 9px 4px;
    font-size: 11px;
  }
  .hint {
    font-size: 10px;
  }
  .attribution {
    right: 12px;
    bottom: 3px;
    font-size: 8px;
  }
  #destinations {
    top: 150px;
    right: 12px;
    width: 270px;
  }
  #atlas {
    padding: 14px;
  }
  #touch-controls {
    bottom: 16px;
  }
  #touch-controls .touch-stick {
    width: 92px;
    height: 92px;
  }
}
