:root {
  font:
    15px/1.55 system-ui,
    sans-serif;
  color: #f5f0e5;
  background: #0d2021;
  color-scheme: dark;
  --gold: #d6a34b;
  --muted: #adbdb4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.top {
  height: 85px;
  border-bottom: 1px solid #2b4540;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 650;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 33px;
  height: 33px;
}
.brand span {
  font-size: 12px;
  font-weight: 400;
  border-left: 1px solid #526157;
  padding-left: 20px;
  margin-left: 10px;
  color: var(--muted);
}
.launch {
  color: var(--gold);
  font-size: 13px;
  text-decoration: none;
}
main {
  max-width: 1800px;
  margin: auto;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 35px;
  padding: 35px;
}
aside {
  padding-top: 10px;
}
.eyebrow {
  color: var(--gold);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-size: 10px;
}
h1 {
  font:
    normal 36px/1.15 Georgia,
    serif;
  margin: 16px 0 19px;
}
aside > p {
  color: var(--muted);
  font-size: 13px;
  max-width: 260px;
}
nav {
  border-top: 1px solid #2b4540;
  margin-top: 30px;
  padding: 12px 0;
}
nav button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #dbe1d6;
  padding: 11px 7px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 3px;
}
nav button b {
  font-size: 10px;
  font-weight: 400;
  color: var(--gold);
}
nav button small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
nav button:hover,
nav button[aria-current="true"] {
  background: #203b35;
}
.hint {
  padding-top: 17px;
  border-top: 1px solid #2b4540;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.toggle input {
  accent-color: var(--gold);
}
.technical {
  font-size: 11px;
  margin-top: 23px;
}
.download {
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
}
.map-shell {
  border: 1px solid #37534a;
  border-radius: 6px;
  background: #173032;
  overflow: hidden;
  align-self: start;
  box-shadow: 0 18px 65px #0003;
}
.map-head,
.map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  font-size: 12px;
}
.map-head > span + span {
  color: var(--muted);
  font-size: 10px;
}
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 7px;
}
.canvas-wrap {
  background: #334d3b;
  line-height: 0;
}
canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  outline-offset: -3px;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.map-foot p {
  margin: 0;
  color: #c8d0c3;
}
.map-foot button {
  font: inherit;
  font-size: 11px;
  color: #132d28;
  background: var(--gold);
  border: 0;
  border-radius: 3px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 35px;
  border-top: 1px solid #2b4540;
  font-size: 11px;
  color: var(--muted);
}
.touch {
  display: none;
  justify-content: center;
  gap: 10px;
  padding: 12px;
}
.touch button {
  background: #294a41;
  color: #f5f0e5;
  border: 1px solid #547365;
  padding: 10px 18px;
  border-radius: 3px;
}
@media (min-width: 1500px) {
  main {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  h1 {
    font-size: 42px;
  }
}
@media (max-width: 900px) {
  .top {
    padding: 0 20px;
    height: 70px;
  }
  .brand span {
    display: none;
  }
  main {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
  aside {
    padding: 0;
  }
  h1 {
    font-size: 33px;
  }
  h1 br {
    display: none;
  }
  aside > p {
    max-width: none;
  }
  nav {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-bottom: 0;
  }
  nav button {
    width: auto;
    padding: 9px 12px;
    background: #173032;
  }
  nav small,
  .hint,
  .technical,
  .download {
    display: none;
  }
  .toggle {
    display: inline-flex;
    margin-right: 15px;
  }
  .map-head,
  .map-foot {
    padding: 12px;
  }
  .touch {
    display: flex;
  }
  footer {
    padding: 20px;
  }
  footer span {
    display: none;
  }
}
@media (max-width: 480px) {
  main {
    padding: 13px;
  }
  .top {
    padding: 0 14px;
  }
  .brand {
    font-size: 21px;
  }
  .launch {
    font-size: 10px;
  }
  .map-foot {
    flex-wrap: wrap;
  }
  .map-head > span + span {
    display: none;
  }
}

#video-dialog {
  width: 94vw;
  max-width: none;
  height: 90vh;
  padding: 0;
  border: 0;
  background: #132521;
  border-radius: 12px;
}
#video-dialog::backdrop {
  background: #101d1bc9;
}
#video-player {
  display: block;
  width: 100%;
  height: calc(100% - 48px);
  border: 0;
}
#close-video {
  display: block;
  margin: 4px 12px 4px auto;
  height: 40px;
  background: #f5f0e5;
  color: #173032;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  cursor: pointer;
}
#interact:disabled {
  opacity: 0.65;
  cursor: default;
}

#reading-panel {
  position: fixed;
  inset: 85px 12px 12px auto;
  margin: 0;
  width: 60vw;
  max-width: none;
  height: calc(100dvh - 97px);
  padding: 0;
  border: 1px solid #718376;
  border-radius: 8px;
  background: #173032;
  box-shadow: 0 12px 60px #0008;
  z-index: 5;
}
#reading-page {
  width: 100%;
  height: calc(100% - 48px);
  border: 0;
  display: block;
  background: #fff;
}
#close-reading {
  display: block;
  margin: 4px 12px 4px auto;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #f5f0e5;
  color: #173032;
  cursor: pointer;
}
@media (max-width: 700px) {
  #reading-panel {
    width: calc(100vw - 24px);
  }
}
