:root {
  color-scheme: dark;
  --paper: #f1eddb;
  --muted: #c2c6b1;
  --gold: #d2b17b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #203c37;
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
[hidden] {
  display: none !important;
}
#c {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
#c:active {
  cursor: grabbing;
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #09191566,
    transparent 24%,
    transparent 66%,
    #0919158c
  );
  z-index: 1;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}
.identity {
  display: flex;
  align-items: center;
  gap: 13px;
}
.emblem {
  width: 31px;
  height: 31px;
}
.name {
  font:
    18px Georgia,
    serif;
  letter-spacing: 0.03em;
}
.identity small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  margin-top: 5px;
  color: #d7d9c6;
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.quiet-button {
  border: 1px solid #eee9d133;
  border-radius: 3px;
  padding: 10px 15px;
  background: #15352c33;
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: background 0.2s;
}
.quiet-button:hover {
  background: #d8dfbd1f;
}
.quiet-button kbd {
  font: 9px Arial;
  opacity: 0.55;
  margin-left: 10px;
}
.lake-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  margin-right: 13px;
  opacity: 0.8;
}
#intro {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 90px 8vw;
  background: linear-gradient(90deg, #0a1e18b0, #0a1e183d 42%, transparent 75%);
  pointer-events: none;
  transition:
    opacity 1.2s,
    visibility 1.2s;
}
.intro-inner {
  max-width: 520px;
  pointer-events: auto;
  margin-top: -1vh;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e0d4b2;
}
.eyebrow:before {
  content: "";
  width: 25px;
  height: 1px;
  background: var(--gold);
}
h1 {
  font:
    400 clamp(48px, 5.5vw, 85px)/1.02 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.045em;
  margin: 27px 0 26px;
  text-wrap: balance;
}
h1 em {
  font-weight: 400;
  color: #e2d3ac;
}
.intro-copy {
  font:
    14px/1.9 Arial,
    sans-serif;
  max-width: 300px;
  color: #e5e5d4;
}
.enter-button {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-top: 31px;
  border: 1px solid #eee9d178;
  padding: 16px 22px;
  background: #ebe6cf;
  color: #1e3429;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition:
    background 0.2s,
    transform 0.2s;
}
.enter-button:hover {
  background: #fff9e4;
  transform: translateY(-2px);
}
.enter-button span {
  font-size: 22px;
  line-height: 14px;
}
.intro-note {
  margin-top: 18px;
  font-size: 10px;
  color: #c9cfbb;
  letter-spacing: 0.03em;
}
.intro-note i {
  font-style: normal;
  margin: 0 7px;
  opacity: 0.35;
}
#intro.departed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#intro.departed .intro-inner {
  pointer-events: none;
}
.location {
  position: fixed;
  left: 40px;
  bottom: 37px;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 340px;
}
.location-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
  box-shadow: 0 0 0 5px #d2b17b12;
}
#place-name {
  font:
    20px Georgia,
    serif;
  letter-spacing: 0.01em;
  margin-bottom: 7px;
}
#place-detail {
  font-size: 10px;
  line-height: 1.6;
  color: #d5dac6;
  letter-spacing: 0.025em;
}
.location,
.navigation,
.controls {
  opacity: 0;
  transition: opacity 1s;
}
.ready .location,
.ready .navigation {
  opacity: 1;
}
.exploring .controls {
  opacity: 1;
}
.navigation {
  position: fixed;
  bottom: 32px;
  right: 40px;
  z-index: 2;
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav-numbers {
  text-align: right;
}
#bearing {
  font:
    20px Georgia,
    serif;
}
#speed {
  font-size: 8px;
  letter-spacing: 0.18em;
  margin-top: 7px;
  color: #d0d5c2;
}
.compass {
  height: 48px;
  width: 48px;
  border: 1px solid #e2e7d03b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.compass:before {
  content: "N";
  position: absolute;
  top: -12px;
  font-size: 8px;
  letter-spacing: 0.1em;
}
#compass-needle {
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, #e0c393 50%, #d8ddc63d 50%);
  position: relative;
}
#compass-needle:before {
  content: "";
  position: absolute;
  top: -1px;
  left: -3px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-bottom: 7px solid #e0c393;
}
.controls {
  position: fixed;
  bottom: 37px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 22px;
  color: #dbe0cb;
  font-size: 9px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.controls kbd {
  font: 10px Arial;
  color: #f2edda;
  margin-right: 6px;
}
.controls span {
  opacity: 0.85;
}
#hud {
  position: fixed;
  top: 90px;
  right: 40px;
  z-index: 2;
  font: 10px/1.5 monospace;
  color: #e5ead4;
  display: none;
}
.debug #hud {
  display: block;
}
.loading {
  position: fixed;
  inset: 0;
  background: #1d342d;
  z-index: 8;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  transition:
    opacity 0.8s,
    visibility 0.8s;
  font:
    15px Georgia,
    serif;
  letter-spacing: 0.06em;
}
.loading svg {
  margin: auto;
  width: 38px;
  height: 38px;
}
.loading small {
  font: 9px Arial;
  letter-spacing: 0.2em;
  color: #aab8a2;
}
.ready .loading {
  opacity: 0;
  visibility: hidden;
}
#err {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #182f29;
  padding: 15vh 10vw;
  font:
    17px/1.8 Georgia,
    serif;
  white-space: pre-wrap;
  color: #eee7d3;
  overflow: auto;
}
dialog {
  padding: 0;
  border: 1px solid #d0d6b52b;
  border-radius: 5px;
  background: #1c342c;
  color: var(--paper);
  width: min(900px, calc(100vw - 36px));
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #071c17a8;
  backdrop-filter: blur(6px);
}
.map-heading {
  padding: 27px 30px 21px;
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.map-heading h2 {
  font:
    28px Georgia,
    serif;
  margin: 0 0 9px;
}
.map-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.close {
  border: 0;
  background: transparent;
  font-size: 25px;
  padding: 0 0 10px 15px;
}
.map-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding: 0 30px 28px;
  gap: 28px;
  align-items: center;
}
#lake-map {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  border: 1px solid #d9dfbd20;
  cursor: crosshair;
  border-radius: 3px;
}
.map-destination {
  display: grid;
  grid-template-columns: 1fr 20px;
  gap: 7px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #d4d9be1b;
  padding: 17px 0;
  background: transparent;
}
.map-destination > span:first-child {
  font:
    19px Georgia,
    serif;
}
.map-destination small {
  font-size: 10px;
  color: #afbda5;
  grid-column: 1;
  line-height: 1.6;
}
.map-destination > span:last-child {
  grid-row: 1/3;
  grid-column: 2;
  align-self: center;
  color: var(--gold);
}
.map-destination:hover > span:first-child {
  color: var(--gold);
}
.map-help {
  font-size: 10px;
  line-height: 1.7;
  color: #b4c1aa;
  margin: 23px 0 17px;
}
.reset {
  background: transparent;
  border: 1px solid #d0d5b333;
  padding: 10px 12px;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.map-caption {
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #a7b79e;
  margin-top: 10px;
}
.map-attribution {
  display: block;
  margin-top: 9px;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0;
}
.map-attribution a {
  color: inherit;
}
#world-labels {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.world-label {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  border: 0;
  border-bottom: 1px solid var(--accent);
  padding: 9px 13px 10px;
  background: #142d25cc;
  backdrop-filter: blur(7px);
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 3px 22px #08150e33;
}
.world-label::after {
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  height: 22px;
  width: 1px;
  background: var(--accent);
}
.world-label small {
  display: block;
  font-size: 7px;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin-bottom: 5px;
}
.world-label span {
  display: block;
  font:
    18px Georgia,
    serif;
}
.journey-controls {
  display: none;
  position: fixed;
  top: 111px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
}
.exploring .journey-controls {
  display: grid;
  justify-items: center;
  gap: 9px;
}
.journey-controls .quiet-button {
  background: #142d25b3;
  font-size: 10px;
  min-height: 40px;
}
.nearby-button {
  padding: 10px 16px;
  background: #e3c28d;
  border: 0;
  border-radius: 2px;
  color: #1c342c;
  font-size: 11px;
}
#place-dialog {
  width: min(530px, calc(100vw - 36px));
}
.place-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 30px 0;
  gap: 16px;
}
.place-heading .eyebrow {
  font-size: 9px;
  line-height: 1.6;
}
.place-heading .close {
  padding-bottom: 0;
}
.place-content {
  padding: 18px 38px 36px;
}
.place-content h2 {
  font:
    38px/1.15 Georgia,
    serif;
  font-weight: normal;
  margin: 10px 0 21px;
}
.place-content p {
  font:
    14px/1.85 Arial,
    sans-serif;
  color: #cbd2bd;
  margin: 0 0 24px;
}
.project-logo:has(img:not([hidden])) {
  background: #f9f5ed;
  border-radius: 3px;
  padding: 16px 22px;
  width: fit-content;
  margin-bottom: 25px;
}
.project-logo img {
  display: block;
  width: 154px;
  height: auto;
}
.place-content .enter-button {
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  margin: 0;
  padding: 14px 20px;
}
.place-content .pending-note {
  border-top: 1px solid #d2b17b40;
  padding-top: 16px;
  color: #b4bfaa;
  font-size: 11px;
}
.back-note {
  display: block;
  margin-top: 24px;
  color: #a7b79e;
  font-size: 10px;
}
.touch-controls {
  display: none;
  position: fixed;
  bottom: 115px;
  left: 25px;
  z-index: 4;
  grid-template-columns: repeat(3, 43px);
  gap: 5px;
}
.touch-controls button {
  width: 43px;
  height: 43px;
  border: 1px solid #d6dfc448;
  background: #183b3090;
  border-radius: 50%;
  font-size: 18px;
  touch-action: none;
  user-select: none;
  backdrop-filter: blur(6px);
}
.touch-controls [data-drive="forward"] {
  grid-column: 2;
}
.touch-controls [data-drive="left"] {
  grid-column: 1;
}
.touch-controls [data-drive="back"] {
  grid-column: 2;
}
.touch-controls [data-drive="right"] {
  grid-column: 3;
}
@media (max-width: 760px) {
  .journey-controls {
    top: 95px;
    width: calc(100vw - 44px);
  }
  .world-label span {
    font-size: 15px;
  }
  .world-label small {
    font-size: 6px;
  }
  .place-content {
    padding: 18px 26px 28px;
  }
  .place-content h2 {
    font-size: 31px;
  }
  .place-heading {
    padding: 24px 26px 0;
  }
  header {
    padding: 23px 22px;
  }
  .lake-label,
  #detail {
    display: none;
  }
  .name {
    font-size: 17px;
  }
  .identity small {
    font-size: 8px;
  }
  .quiet-button {
    padding: 9px 12px;
  }
  #intro {
    padding: 95px 8vw;
  }
  .intro-inner {
    margin-top: -8vh;
  }
  h1 {
    font-size: 58px;
  }
  .location {
    left: 23px;
    bottom: 28px;
    max-width: 230px;
  }
  #place-name {
    font-size: 18px;
  }
  #place-detail {
    font-size: 9px;
  }
  .navigation {
    right: 23px;
    bottom: 28px;
  }
  .controls {
    bottom: 95px;
    font-size: 8px;
    gap: 14px;
  }
  .controls .look-hint {
    display: none;
  }
  .map-layout {
    grid-template-columns: 1fr;
    padding: 0 22px 22px;
    gap: 6px;
  }
  .map-heading {
    padding: 24px 22px 18px;
  }
  .map-heading h2 {
    font-size: 24px;
  }
  .map-destination {
    padding: 12px 0;
  }
  .map-help {
    margin: 16px 0;
  }
  #lake-map {
    max-height: 36vh;
    width: auto;
    max-width: 100%;
    margin: auto;
  }
  .intro-copy {
    max-width: 255px;
    font-size: 13px;
  }
  #hud {
    right: 22px;
    font-size: 9px;
  }
}
@media (pointer: coarse) {
  .exploring .touch-controls {
    display: grid;
  }
  .controls {
    display: none;
  }
  #c {
    cursor: default;
  }
  .intro-note .desktop-hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
