:root {
  --cream: #ffefca;
  --ink: #18231f;
  --gold: #ffd05a;
  --glass: #14201ef0;
  --line: #e7d8ae50;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --display: Impact, Haettenschweiler, 'Arial Narrow', sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #373c32;
  color: var(--cream);
  font:
    14px system-ui,
    sans-serif;
  overflow: hidden;
}
button,
a {
  font: 700 11px var(--mono);
  color: var(--cream);
  background: var(--glass);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
a:hover,
button:focus-visible,
a:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
}
[hidden] {
  display: none !important;
}
#street-view,
#vignette,
#dash {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
#vignette,
#dash {
  pointer-events: none;
}
#dash button {
  pointer-events: auto;
}
#vignette {
  background: linear-gradient(
    0deg,
    #0d1b1647,
    transparent 18%,
    transparent 79%,
    #1118114f
  );
}
header {
  position: fixed;
  inset: 14px 18px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}
header > * {
  pointer-events: auto;
}
.brand {
  background: var(--glass);
  padding: 9px 12px;
  font: bold 11px var(--mono);
  letter-spacing: 0.12em;
}
.brand i {
  color: var(--gold);
  font-size: 16px;
}
.top-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}
kbd {
  font: 700 9px var(--mono);
  background: #85928633;
  border: 1px solid #eee0b450;
  padding: 1px 3px;
  border-radius: 2px;
}
small {
  display: block;
  font: 700 10px var(--mono);
  letter-spacing: 0.14em;
  color: var(--gold);
}
.location,
#guidance,
#nearby,
.lower-right,
.speed {
  background: var(--glass);
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
}
.location {
  position: absolute;
  left: 18px;
  top: 68px;
}
.location h1 {
  font: normal 31px/1.1 var(--display);
  margin: 6px 0 3px;
}
.location div {
  font: 12px var(--mono);
  color: #c4cebf;
}
#guidance {
  position: absolute;
  top: 69px;
  right: 18px;
  text-align: right;
  border-left: 0;
  border-right: 3px solid #87d5be;
}
#guidance strong,
#nearby strong {
  display: block;
  font-weight: 750;
  margin: 4px 0;
}
#guidance span,
#nearby span {
  font: 11px var(--mono);
  color: #d0d7c9;
}
#nearby {
  position: absolute;
  right: 18px;
  bottom: 106px;
  border-color: #96d1b4;
  max-width: 260px;
}
#nearby button {
  margin-top: 8px;
  background: var(--gold);
  color: var(--ink);
  display: block;
}
#nearby small,
#guidance small {
  color: #9edfc6;
}
.lower-left {
  position: absolute;
  bottom: 20px;
  left: 18px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
#mini-button {
  width: 158px;
  padding: 5px;
  background: #14201ef4;
}
#mini {
  display: block;
  width: 100%;
  height: auto;
}
#mini-button span {
  display: flex;
  justify-content: space-between;
  color: #cfdbcd;
  font: 9px var(--mono);
  letter-spacing: 0.12em;
  padding: 3px 5px;
}
.speed strong {
  font: italic 48px/0.95 var(--display);
  min-width: 36px;
  display: block;
}
.speed small {
  font-size: 9px;
  margin-top: 4px;
}
.lower-right {
  position: absolute;
  right: 18px;
  bottom: 20px;
  border-left: 0;
}
.lower-right span {
  font: bold 11px var(--mono);
  color: var(--gold);
}
.lower-right p {
  font: 10px/1.7 var(--mono);
  margin: 4px 0 0;
}
#notice {
  position: fixed;
  top: 23%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 17px;
  color: #ffdc77;
  background: var(--glass);
  border-bottom: 2px solid #dfab40;
  font: bold 12px var(--mono);
  text-align: center;
}
#atlas {
  width: min(840px, 94vw);
  max-height: 92dvh;
  padding: 0;
  background: #182723;
  color: var(--cream);
  border: 1px solid #c4ba966b;
  box-shadow: 0 25px 100px #000a;
}
#atlas::backdrop {
  background: #06130fe0;
  backdrop-filter: blur(4px);
}
.atlas-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.atlas-top h2 {
  font: normal 37px/1 var(--display);
  margin: 4px 0 0;
}
.atlas-top small {
  font-size: 8px;
}
.atlas-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 0;
}
.paper {
  position: relative;
  background: #eadfc4;
  overflow: hidden;
  min-height: 380px;
}
.paper canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  cursor: crosshair;
}
.map-key {
  position: absolute;
  bottom: 8px;
  left: 10px;
  color: #313f39;
  background: #ede3cbde;
  font: 10px var(--mono);
  padding: 4px 6px;
  pointer-events: none;
}
.map-key em,
.map-key b {
  color: #aa512e;
}
.map-key i {
  display: inline-block;
  width: 17px;
  margin-left: 8px;
  height: 3px;
  background: #bb6c34;
  vertical-align: middle;
}
.map-key b {
  margin-left: 8px;
}
.directory {
  padding: 12px 16px;
  max-height: 65dvh;
  overflow: auto;
}
.directory h3 {
  margin: 0 0 7px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.directory h3 span {
  font: 10px var(--mono);
  color: #bdc9b9;
}
.zone {
  font: 700 9px var(--mono);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin: 10px 0 4px;
}
.place {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  gap: 9px;
  padding: 5px 7px;
  border: 1px solid transparent;
  background: transparent;
  font: 600 12px system-ui;
}
.place i {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  font: 10px var(--mono);
  color: #e4dbc0;
  border: 1px solid #cabc934d;
  border-radius: 50%;
}
.place b {
  margin-left: auto;
  color: #9bd9be;
}
.place[aria-pressed='true'] {
  border-color: #efc565;
  background: #394137;
}
.selection {
  margin-top: 11px;
  border-top: 1px solid var(--line);
}
.selection p {
  min-height: 24px;
  font-size: 12px;
  color: #d7daca;
}
.map-buttons {
  display: flex;
  gap: 7px;
}
.map-buttons button {
  flex: 1;
}
.map-buttons button:first-child {
  background: var(--gold);
  color: var(--ink);
}
#clear-waypoint {
  margin-top: 6px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font: 9px var(--mono);
  color: #c2ccbe;
}
#touch {
  display: none;
}
@media (pointer: coarse) {
  #touch {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
  }
  #touch button {
    touch-action: none;
    min-width: 44px;
    min-height: 44px;
  }
  #touch button:nth-child(3) {
    margin-left: auto;
  }
  .lower-left,
  .lower-right {
    bottom: 64px;
  }
  .lower-right p {
    display: none;
  }
  #nearby {
    bottom: 108px;
  }
}
@media (max-width: 650px) {
  header {
    inset: 8px 8px auto;
  }
  .brand {
    font-size: 8px;
    padding: 6px;
  }
  .top-actions a,
  .top-actions button {
    font-size: 9px;
    padding: 7px;
  }
  .location {
    top: 47px;
    left: 8px;
    padding: 6px 9px;
  }
  .location h1 {
    font-size: 22px;
  }
  .location div {
    font-size: 10px;
  }
  #guidance {
    top: 47px;
    right: 8px;
    max-width: 47vw;
    padding: 6px 8px;
  }
  #guidance strong {
    font-size: 12px;
  }
  #guidance span {
    font-size: 9px;
  }
  .lower-left {
    left: 8px;
  }
  #mini-button {
    width: 108px;
  }
  .speed {
    padding: 6px;
  }
  .speed strong {
    font-size: 32px;
  }
  .lower-right {
    right: 8px;
    padding: 5px;
  }
  .lower-right p {
    display: none;
  }
  #nearby {
    right: 8px;
    max-width: 45vw;
    padding: 6px;
    font-size: 12px;
  }
  .atlas-layout {
    grid-template-columns: 1fr 1.12fr;
  }
  .directory {
    padding: 8px;
  }
  .paper {
    min-height: 310px;
  }
  .place {
    font-size: 11px;
  }
  .map-buttons {
    flex-direction: column;
  }
  .atlas-top {
    padding: 10px;
  }
  .atlas-top h2 {
    font-size: 28px;
  }
  footer span {
    display: none;
  }
  .map-key {
    font-size: 8px;
    left: 0;
  }
}
@media (max-height: 540px) {
  .atlas-top {
    padding: 6px 12px;
  }
  .atlas-top h2 {
    font-size: 22px;
  }
  .paper {
    min-height: 190px;
  }
  .directory {
    max-height: 64dvh;
  }
  .lower-left #mini-button {
    width: 90px;
  }
}
#nearby #look {
  background: transparent;
  color: #d1ddcb;
  border: 1px solid #97ad9b70;
  padding: 5px 8px;
  font-size: 10px;
}
#nearby #look:hover {
  border-color: var(--gold);
}
.friend-link{background:#e8bb53;color:#20261f;border-color:#e8bb53}.friend-link:hover{background:#f6d67c;color:#18231f}@media(max-width:570px){header:has(.friend-link) .brand{font-size:0}header:has(.friend-link) .brand i{font-size:14px}}
