:root {
  color-scheme: dark;
  --paper: #f5efdf;
  --gold: #d5b780;
  --muted: #a59e8f;
  --panel: #171916;
  --sans: Arial, Helvetica, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  color: var(--paper);
  font-family: var(--sans);
}
button,
a {
  touch-action: manipulation;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 2px solid #edc78b;
  outline-offset: 3px;
}
button:hover {
  color: white;
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
header {
  flex: none;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 3.8vw;
  gap: 20px;
  background: #151715;
  border-bottom: 1px solid #444137;
  z-index: 1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font:
    26px Georgia,
    serif;
  letter-spacing: -1.1px;
  white-space: nowrap;
}
.brand svg {
  width: 29px;
  height: 29px;
  color: var(--gold);
  stroke-width: 1.35;
}
.archive,
small,
.eyebrow,
.scene-id,
.location,
.compass span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.7px;
}
.archive {
  color: #b6ad99;
  border-left: 1px solid #49483d;
  padding: 5px 0 5px 20px;
  font-size: 9px;
}
nav {
  display: flex;
  align-items: stretch;
  gap: 3px;
  background: #10120f;
  border: 1px solid #383a32;
  border-radius: 25px;
  padding: 4px;
  margin-left: auto;
}
nav button {
  padding: 8px 15px;
  border-radius: 20px;
  color: #b6b5aa;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
nav svg {
  width: 15px;
  height: 15px;
}
nav .chosen {
  background: #38382e;
  color: #eed6a8;
  box-shadow: inset 0 0 0 1px #5c5646;
}
.utilities {
  display: flex;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid #393b32;
}
.utilities button {
  width: 31px;
  height: 32px;
  display: grid;
  place-content: center;
  color: #d3cfc3;
}
.utilities button:hover {
  color: var(--gold);
}
main {
  flex: 1;
  min-height: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #765e48;
}
#view,
.shade,
#markers {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
#view {
  display: block;
  touch-action: none;
}
.shade {
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 17, 16, 0.79), rgba(22, 23, 21, 0.45) 26%, transparent 56%),
    linear-gradient(0deg, #15171075, transparent 17%, transparent 90%, #201f1710);
}
.scene-id,
.compass,
.location {
  position: absolute;
  pointer-events: none;
}
.scene-id {
  left: 4.6%;
  top: 28px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #ebe2d2;
  background: #201f1b58;
  border: 1px solid #e7dfbb38;
  border-radius: 3px;
  padding: 8px 11px;
  font-size: 9px;
  letter-spacing: 1.65px;
}
.scene-id i {
  width: 6px;
  height: 6px;
  background: #dfbc83;
  border-radius: 50%;
  box-shadow: 0 0 7px #e6b96f4a;
}
.compass {
  right: 4%;
  top: 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #f4e4c5;
  opacity: 0.8;
}
.compass span {
  font-size: 9px;
}
.compass svg {
  width: 44px;
  height: 44px;
  stroke-width: 0.85;
}
.story {
  position: absolute;
  left: 4.6%;
  top: 51%;
  transform: translateY(-45%);
  width: min(37%, 510px);
  pointer-events: none;
  text-shadow: 0 2px 16px #17191622;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ead0a0;
  font-size: 10px;
  letter-spacing: 2.25px;
}
.eyebrow b {
  width: 30px;
  height: 1px;
  background: #dbb781;
}
h1 {
  font:
    normal clamp(54px, 5.8vw, 98px) / 0.98 Georgia,
    'Times New Roman',
    serif;
  letter-spacing: -0.058em;
  margin: 23px 0 21px;
}
h1 em {
  font-weight: 400;
  font-family: Georgia, serif;
  letter-spacing: -0.065em;
  color: #f2dfbb;
}
.story p {
  font-size: clamp(14px, 1.15vw, 18px);
  max-width: 355px;
  line-height: 1.6;
  color: #e7e2d4;
  margin: 0;
}
.action {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 21px;
  border: 1px solid #d4c7aa80;
  border-radius: 4px;
  padding: 11px 16px;
  margin-top: 28px;
  background: #26272049;
  font-size: 12px;
  backdrop-filter: blur(7px);
}
.action:hover {
  background: #b99e6738;
  border-color: #e5c488;
}
.action svg {
  width: 16px;
}
.location {
  right: 4.4%;
  bottom: 25px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #ede7d8;
}
.cross {
  font: 20px Georgia;
}
#console {
  flex: none;
  background: #191b18;
  border-top: 1px solid #746a52;
  display: flex;
  gap: 3.2vw;
  padding: 25px 4.6% 24px;
  align-items: center;
}
.transport {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.round {
  border: 1px solid #777362;
  border-radius: 50%;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
}
.round:hover {
  background: #403f32;
}
.round svg {
  width: 14px;
  height: 14px;
}
small {
  display: block;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 1.6px;
}
.time {
  display: block;
  font: 12px var(--mono);
  margin-top: 7px;
  color: #c7c5ba;
}
.time b {
  font-weight: normal;
  color: #686b60;
}
#elapsed {
  color: #f7f3e8;
}
#chapters {
  flex: 1;
  display: flex;
  gap: 14px;
}
.chapter {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  color: #abaea1;
}
.track {
  height: 3px;
  background: #44473e;
  overflow: hidden;
  display: block;
}
.track i {
  height: 100%;
  display: block;
  background: var(--gold);
  width: 0;
}
.chapter.active .track {
  background: #76674b;
}
.ch-label {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font:
    16px Georgia,
    serif;
  white-space: nowrap;
}
.ch-label small {
  color: #8c8f82;
  font-size: 9px;
  letter-spacing: 1px;
}
.chapter.active,
.chapter.active small {
  color: #e3c592;
}
.chapter:hover .track {
  background: #a18e67;
}
footer {
  height: 40px;
  flex: none;
  border-top: 1px solid #363930;
  background: #131512;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4.6%;
  font-size: 10px;
  color: #a7aa9d;
}
.footmark {
  font-size: 18px;
  color: var(--gold);
}
.footSep {
  color: #555b51;
}
footer button {
  margin-left: auto;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #c6c8bc;
  font-size: 10px;
}
footer svg {
  width: 13px;
  height: 13px;
}
dialog {
  max-width: min(460px, 90vw);
  max-height: 85dvh;
  padding: 35px;
  background: #20231f;
  border: 1px solid #69634f;
  border-radius: 6px;
  color: var(--paper);
  box-shadow: 0 20px 90px #0008;
}
dialog::backdrop {
  background: #10120fc2;
  backdrop-filter: blur(5px);
}
h2 {
  font:
    normal 32px/1.15 Georgia,
    serif;
  letter-spacing: -1.2px;
}
dialog p {
  font-size: 14px;
  line-height: 1.6;
  color: #d1d0c3;
}
dialog a {
  font-size: 12px;
  line-height: 1.5;
  color: #e8c896;
}
#closeNotes {
  position: absolute;
  right: 12px;
  top: 6px;
  font-size: 27px;
}
.explore-tools,
#markers {
  display: none;
}
#markers {
  pointer-events: none;
}
.exploring #markers {
  display: block;
}
.exploring .explore-tools {
  display: flex;
  position: absolute;
  right: 4.4%;
  bottom: 62px;
  gap: 5px;
}
.explore-tools button,
.marker {
  border: 1px solid #c2aa7d;
  background: #24281fdb;
  color: #f3dfb8;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.explore-tools button {
  border-radius: 4px;
  font-size: 18px;
}
.marker {
  position: absolute;
  pointer-events: auto;
  font: 11px var(--mono);
  box-shadow: 0 0 0 4px #24271942;
  transform: translate(-50%, -50%);
}
.marker.active {
  background: #e7c99a;
  color: #24241d;
}
.exploring .story p {
  max-width: 340px;
}
.exploring .time {
  font: 11px var(--sans);
}
.exploring h1 {
  font-size: clamp(49px, 4.8vw, 78px);
}
@media (min-width: 1700px) {
  .story p {
    max-width: 420px;
  }
}
@media (max-width: 850px) {
  .archive {
    display: none;
  }
  .ch-label {
    font-size: 14px;
    gap: 5px;
  }
  .utilities {
    gap: 3px;
    padding-left: 9px;
  }
  header {
    height: 61px;
    gap: 12px;
  }
  .story {
    width: 42%;
  }
  #console {
    gap: 18px;
    padding: 20px 4.6%;
  }
  #chapters {
    gap: 8px;
  }
  .transport {
    gap: 8px;
  }
  .time {
    font-size: 10px;
  }
}
@media (max-width: 620px) {
  body {
    min-height: 520px;
  }
  header {
    height: 56px;
    padding: 0 15px;
    gap: 8px;
  }
  .brand {
    font-size: 20px;
    gap: 6px;
  }
  .brand svg {
    width: 22px;
  }
  .utilities {
    padding: 0;
    border: 0;
  }
  .utilities button {
    width: 24px;
  }
  #fullscreen {
    display: none;
  }
  nav {
    padding: 3px;
    gap: 0;
  }
  nav button {
    padding: 7px 9px;
    font-size: 10px;
    gap: 5px;
  }
  nav svg {
    width: 12px;
    height: 12px;
  }
  .scene-id {
    top: 17px;
    left: 6%;
    font-size: 8px;
  }
  .compass {
    top: 14px;
  }
  .compass svg {
    width: 33px;
    height: 33px;
  }
  .story {
    left: 6%;
    top: auto;
    bottom: 22px;
    width: 88%;
    transform: none;
  }
  .eyebrow {
    font-size: 8px;
    gap: 8px;
  }
  .eyebrow b {
    width: 20px;
  }
  h1,
  .exploring h1 {
    font-size: clamp(40px, 10.8vw, 60px);
    margin: 11px 0 10px;
  }
  .story p {
    font-size: 12px;
    line-height: 1.4;
    max-width: 74%;
  }
  .action {
    font-size: 11px;
    margin-top: 14px;
    padding: 7px 11px;
  }
  .shade {
    background:
      linear-gradient(0deg, #141713ed, #181a17a8 23%, transparent 52%),
      linear-gradient(90deg, #22251b25, transparent 75%);
  }
  .location {
    font-size: 7px;
    bottom: 24px;
    letter-spacing: 0.6px;
  }
  #console {
    padding: 15px 5%;
    gap: 14px;
  }
  .round {
    width: 30px;
    height: 30px;
  }
  .transport {
    gap: 6px;
  }
  .transport small {
    font-size: 7px;
  }
  .time {
    font-size: 9px;
    margin-top: 4px;
  }
  #chapters {
    gap: 5px;
  }
  .ch-label {
    font-size: 0;
    gap: 0;
  }
  .ch-label small {
    font-size: 9px;
  }
  .chapter {
    gap: 7px;
  }
  .chapter.active .ch-label small {
    color: #f6d196;
  }
  footer {
    height: 34px;
    font-size: 9px;
    gap: 5px;
  }
  footer button {
    font-size: 9px;
  }
  .era,
  .footSep {
    display: none;
  }
  .exploring .story p {
    max-width: 80%;
  }
  .exploring .explore-tools {
    bottom: 85px;
  }
  .exploring .time {
    font-size: 9px;
  }
  .exploring .location {
    display: none;
  }
}
@media (max-height: 540px) and (min-width: 621px) {
  body {
    min-height: 320px;
  }
  header {
    height: 45px;
  }
  .scene-id {
    top: 12px;
  }
  h1 {
    font-size: 45px;
    margin: 10px 0;
  }
  .story {
    top: 49%;
  }
  .story p {
    font-size: 12px;
  }
  .action {
    margin-top: 10px;
    padding: 5px 12px;
  }
  #console {
    padding: 10px 4.6%;
  }
  footer {
    height: 28px;
  }
}
