@font-face {
  font-family: DM Sans;
  src: url(./assets/dm-sans.woff2) format('woff2');
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: Instrument Serif;
  src: url(./assets/instrument-serif.woff2) format('woff2');
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url(./assets/instrument-italic.woff2) format('woff2');
  font-display: swap;
  font-style: italic;
}
:root {
  color-scheme: dark;
  --ground: #15231f;
  --dark: #111c19;
  --panel: #1c2d27;
  --line: #3c4941;
  --paper: #f5eedb;
  --muted: #b1b9a9;
  --gold: #ebcb8c;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --pad: clamp(22px, 4.4vw, 80px);
  --bar: 70px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
}
body {
  font: 400 16px/1.45 var(--sans);
  background: var(--ground);
  color: var(--paper);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  background: transparent;
  color: inherit;
  border: 0;
  padding: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #ffe4a6;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button,
i,
svg {
  flex-shrink: 0;
}
button {
  touch-action: manipulation;
}
i[data-icon],
.ico {
  display: inline-flex;
  font-style: normal;
}
svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}
a {
  color: var(--gold);
  text-underline-offset: 3px;
}
a:hover {
  color: white;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
#app {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.topbar {
  height: var(--bar);
  min-height: var(--bar);
  position: relative;
  z-index: 4;
  padding: 0 var(--pad);
  background: var(--ground);
  border-bottom: 1px solid #35423a;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--paper);
}
.brand img {
  width: 32px;
  height: 32px;
}
.brand span {
  font: normal 32px/0.9 var(--serif);
  letter-spacing: -1px;
}
.main-nav {
  height: 100%;
  display: flex;
  gap: 30px;
}
.main-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bec3b8;
  font-size: 14px;
  font-weight: 500;
}
.main-nav svg {
  width: 17px;
  height: 17px;
}
.main-nav button[aria-current],
.main-nav button:hover,
.utilities button:hover {
  color: var(--paper);
}
.main-nav button[aria-current]:after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  left: 0;
  right: 0;
}
.utilities {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 17px;
}
.sound,
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #c7c9bd;
  font-size: 13px;
  font-weight: 500;
  min-height: 40px;
}
.iconbtn {
  width: 36px;
}
.sound svg,
.iconbtn svg {
  width: 18px;
  height: 18px;
}
.utilsep {
  height: 16px;
  width: 1px;
  background: var(--line);
}
#homeScreen {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hero {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 1;
  min-height: clamp(495px, calc(100svh - var(--bar) - 158px), 1020px);
}
.hero picture,
.hero picture img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero picture {
  background: #384032;
}
.hero picture img {
  object-fit: cover;
  object-position: 54% 44%;
}
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(9, 22, 19, 0.8) 0%,
      rgba(10, 23, 18, 0.55) 26%,
      rgba(10, 23, 18, 0.09) 60%,
      transparent 77%
    ),
    linear-gradient(0deg, rgba(8, 21, 17, 0.47), transparent 25%);
  pointer-events: none;
}
.hero-content {
  margin-left: clamp(24px, 6.65vw, 140px);
  padding-block: clamp(32px, 6vh, 80px);
  max-width: 470px;
}
.location-line {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #f0d89d;
}
.location-line svg {
  width: 15px;
  height: 15px;
}
.hero h1 {
  font: 400 clamp(78px, min(8.6vw, 13.3vh), 152px) / 0.88 var(--serif);
  letter-spacing: -0.037em;
  margin: 20px 0 23px;
  color: #fbf2da;
}
.hero h1 em {
  font-weight: 400;
  letter-spacing: -0.035em;
}
.hero-content > p {
  color: #f2eddf;
  font-size: clamp(15px, 1.22vw, 18px);
  line-height: 1.56;
  max-width: 363px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  border-radius: 5px;
  transition:
    transform 0.16s,
    background-color 0.16s,
    color 0.16s;
}
.button:active,
.depart-card:active {
  transform: translateY(1px);
}
.primary {
  background: var(--gold);
  color: #22291e;
}
.primary:hover {
  background: #f5dca5;
}
.button svg {
  width: 17px;
  height: 17px;
}
.primary i[data-icon='play'] svg {
  width: 15px;
  height: 15px;
}
.secondary {
  border: 1px solid #b3ac9299;
  background: #14211d9c;
  color: #fff3d7;
}
.secondary:hover {
  background: #23332b;
}
.image-caption {
  position: absolute;
  right: var(--pad);
  bottom: 25px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
  color: #fff2d9;
  text-shadow: none;
}
.image-caption small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
}
.image-caption span:not(.caption-line) {
  font: italic 21px/1.2 var(--serif);
}
.caption-line {
  height: 1px;
  width: 29px;
  background: #e9ddba;
  margin-bottom: 7px;
}
.departure {
  background: var(--ground);
  padding: 19px var(--pad) 23px;
}
.departure-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.departure-title h2 {
  font-size: 14px;
  font-weight: 600;
}
.departure-title > span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #c5c8bb;
  font-variant-numeric: tabular-nums;
}
.departure-title b {
  font-weight: 400;
  color: #788278;
  margin: 0 4px;
}
.departure-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.depart-card {
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 15px;
  background: #1d2d26;
  border: 1px solid #3b4940;
  border-radius: 6px;
  padding: 6px 12px 6px 6px;
  color: var(--paper);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.depart-card:hover {
  background: #29382e;
  border-color: #7c826b;
}
.depart-card[aria-pressed='true'] {
  background: #303a2c;
  border-color: #c7ad73;
}
.depart-card img {
  width: clamp(65px, 6.6vw, 122px);
  height: 56px;
  object-fit: cover;
  object-position: 68% 55%;
  border-radius: 3px;
}
.depart-text {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.depart-text strong {
  font-weight: 550;
  font-size: 15px;
  line-height: 1.2;
}
.depart-text small {
  color: #c2c5b4;
  font-size: 12px;
}
.depart-indicator {
  margin-left: auto;
  border: 1px solid #697262;
  border-radius: 50%;
  height: 15px;
  width: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.depart-indicator svg {
  display: none;
  width: 12px;
  height: 12px;
  stroke-width: 2.6;
}
.depart-card[aria-pressed='true'] .depart-indicator {
  background: var(--gold);
  border-color: var(--gold);
  color: #233021;
}
.depart-card[aria-pressed='true'] .depart-indicator svg {
  display: block;
}
body.playing {
  overflow: hidden;
}
#playScreen {
  position: relative;
  height: calc(100dvh - var(--bar));
  overflow: hidden;
  background: #84988f;
}
#viewport,
#game {
  width: 100%;
  height: 100%;
}
#game {
  display: block;
  touch-action: none;
  outline: 0;
}
.play-top {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}
.play-top > * {
  pointer-events: auto;
}
.place-chip,
.in-game,
.bearing,
.play-bottom,
.mini-wrap,
#targetChip {
  background: #17251ff2;
  color: var(--paper);
  border: 1px solid #7e846a88;
  border-radius: 5px;
}
.place-chip {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 13px;
  font-size: 14px;
  max-width: 70%;
}
.place-chip svg {
  color: var(--gold);
  width: 16px;
}
.bearing {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.in-game {
  height: 39px;
}
.play-bottom {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
}
.play-bottom button {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  font-size: 13px;
  white-space: nowrap;
  min-height: 35px;
  border-radius: 3px;
}
.play-bottom button:hover {
  background: #344138;
}
.play-bottom svg {
  width: 17px;
}
.mini-wrap {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 4px;
  border-radius: 50%;
}
.mini-wrap button,
.mini-wrap canvas {
  width: 104px;
  height: 104px;
  display: block;
  border-radius: 50%;
}
.mini-wrap span {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-shadow: none;
  font-size: 11px;
  font-weight: 700;
}
#targetChip {
  position: absolute;
  top: 69px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  font-size: 13px;
}
#targetChip button {
  width: 24px;
}
#targetChip svg {
  width: 14px;
}
#loading {
  position: fixed;
  inset: var(--bar) 0 0;
  z-index: 7;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  background: #14241ff5;
}
#loading h2,
.dialog-heading h2 {
  font: 400 39px/1.08 var(--serif);
  letter-spacing: -0.025em;
}
#loading p {
  color: var(--muted);
}
.loadCompass {
  width: 48px;
  height: 48px;
  animation: rotate 8s linear infinite;
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
dialog {
  border: 1px solid #526052;
  border-radius: 9px;
  background: var(--ground);
  color: var(--paper);
  padding: 0;
  max-height: calc(100dvh - 48px);
  width: min(490px, calc(100vw - 36px));
  max-width: none;
  box-shadow: 0 24px 80px #07130da6;
  overflow: auto;
}
dialog::backdrop {
  background: #0b1612b8;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 23px 27px 17px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading h2 {
  font-size: 36px;
}
.dialog-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: #d4d6c6;
}
.dialog-close:hover,
.map-tools button:hover {
  background: #39463a;
}
.modal-body {
  padding: 20px 27px 25px;
}
.control-row,
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid #38473d;
  font-size: 15px;
}
.control-row:first-child,
.setting-row:first-child {
  padding-top: 2px;
}
.control-row:last-child,
.setting-row:last-child {
  border: 0;
}
.control-row > span:last-child {
  display: flex;
  gap: 4px;
  align-items: center;
  color: #cbd1c2;
  font-size: 14px;
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 23px;
  border: 1px solid #64705f;
  border-bottom-width: 2px;
  border-radius: 3px;
  font: 500 12px var(--sans);
  padding: 0 5px;
  color: #eee8d7;
}
.modal-note {
  font-size: 14px;
  color: #bdc6b6;
  margin-top: 16px;
  line-height: 1.5;
}
.setting-row select {
  color: var(--paper);
  background: #28382f;
  border: 1px solid #5b6957;
  border-radius: 4px;
  padding: 7px 27px 7px 10px;
  font-size: 14px;
  max-width: 55%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23d5d3bc' fill='none'/%3E%3C/svg%3E");
  background-position: right 7px center;
  background-repeat: no-repeat;
}
.swatches {
  display: flex;
  gap: 8px;
}
.swatch {
  width: 27px;
  height: 27px;
  border: 3px solid var(--ground);
  outline: 1px solid #50604f;
  border-radius: 50%;
  background: var(--color);
}
.swatch[aria-pressed='true'] {
  outline: 2px solid var(--gold);
}
.flat-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 14px;
  padding: 7px 0;
}
.flat-action svg {
  width: 16px;
}
.modal-body .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.modal-body .button.secondary,
.atlas .button.secondary {
  background: #28382f;
  border-color: #526350;
}
#dialog.atlas {
  width: min(1050px, calc(100vw - 60px));
}
.atlas .dialog-heading {
  padding: 16px 22px;
}
.atlas .dialog-heading h2 {
  font-size: 32px;
}
.atlas-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(320px, 1.7fr);
  height: min(610px, calc(100dvh - 173px));
  min-height: 320px;
}
.atlas-list-side {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25362d;
  border: 1px solid #4c5b4d;
  border-radius: 4px;
  padding: 8px 10px;
  margin: 15px 14px 9px;
}
.search-box svg {
  width: 16px;
  color: var(--muted);
}
.search-box input {
  width: 100%;
  min-width: 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}
.search-box:focus-within {
  outline: 1px solid var(--gold);
}
.search-box input::placeholder {
  color: #b8bfaf;
}
.atlas-count {
  margin: 0 16px 8px;
  font-size: 12px;
  color: var(--muted);
}
.places-list {
  overflow: auto;
  flex: 1;
  scrollbar-color: #596650 transparent;
}
.place-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  padding: 10px 15px;
  border-left: 2px solid transparent;
}
.place-row:hover {
  background: #23382b;
}
.place-row[aria-pressed='true'] {
  background: #304035;
  border-left-color: var(--gold);
}
.place-row > svg {
  width: 16px;
  color: #cbba92;
}
.place-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.place-row strong {
  font-weight: 550;
  font-size: 14px;
}
.place-row small {
  font-size: 12px;
  color: #b4bfaf;
}
.place-row .found {
  width: 13px;
  margin-left: auto;
  color: var(--gold);
}
.empty {
  padding: 18px;
  color: var(--muted);
}
.map-area {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.map-drawing {
  position: relative;
  min-height: 150px;
  flex: 1;
  overflow: hidden;
  background: #d1d1b9;
}
.map-drawing canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.map-drawing canvas:active {
  cursor: grabbing;
}
.map-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.map-tools button {
  width: 34px;
  height: 33px;
  display: grid;
  place-items: center;
}
.map-tools svg {
  width: 16px;
}
.map-notice {
  position: absolute;
  left: 5px;
  bottom: 3px;
  padding: 1px 3px;
  font-size: 10px;
  color: #26362b;
  background: #e0e0cae8;
}
.map-north {
  position: absolute;
  left: 12px;
  top: 10px;
  display: grid;
  justify-items: center;
  color: #26392b;
  font-weight: bold;
  font-size: 11px;
}
.map-north svg {
  width: 18px;
  height: 18px;
}
.place-detail {
  padding: 16px 21px 19px;
  background: #223328;
}
.place-detail h3,
.guide-detail h3 {
  font: 400 29px/1.09 var(--serif);
  margin: 4px 0 6px;
}
.place-detail small,
.guide-detail small {
  color: #d8c59b;
  font-size: 12px;
}
.place-detail p,
.guide-detail p {
  color: #e2e3d5;
  font-size: 14px;
  line-height: 1.55;
}
.detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.detail-actions .button {
  min-height: 36px;
  font-size: 13px;
  padding: 0 13px;
}
.guide-detail {
  overflow: auto;
  display: flex;
  flex-direction: column;
  background: #233329;
}
.guide-detail .detail-illustration {
  height: 41%;
  min-height: 105px;
  object-fit: cover;
  object-position: 60% 45%;
  display: block;
  width: 100%;
}
.guide-inner {
  padding: 22px;
}
.guide-detail h3 {
  font-size: 35px;
}
.guide-detail p {
  font-size: 16px;
}
.source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  font-size: 13px;
}
.source svg {
  width: 13px;
}
.guide-schematic {
  min-height: 125px;
  height: 36%;
  background: #bbc5ad;
  overflow: hidden;
}
.guide-schematic canvas {
  width: 100%;
  height: 100%;
}
.map-footer {
  padding: 8px 16px;
  font-size: 11px;
  border-top: 1px solid var(--line);
  color: #b3bcae;
}
.map-footer a {
  color: inherit;
}
.pause-stack {
  display: grid;
  gap: 10px;
}
.pause-stack .button {
  width: 100%;
}
#toast {
  position: fixed;
  z-index: 12;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 10px);
  border-radius: 5px;
  background: #101c16;
  color: var(--paper);
  padding: 10px 16px;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 3px 15px #101b1366;
  opacity: 0;
  pointer-events: none;
  max-width: 90vw;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.shown {
  opacity: 1;
  transform: translate(-50%, 0);
}
body.playing #toast {
  bottom: 82px;
}
@media (min-width: 1650px) {
  .hero-content {
    max-width: 650px;
  }
  .hero-content > p {
    max-width: 410px;
  }
  .departure {
    padding-block: 24px;
  }
  .depart-card img {
    height: 65px;
  }
  .hero {
    min-height: calc(100svh - var(--bar) - 165px);
  }
}
@media (max-width: 900px) {
  :root {
    --bar: 62px;
    --pad: 24px;
  }
  .main-nav {
    gap: 20px;
  }
  .topbar {
    gap: 14px;
  }
  .depart-card {
    gap: 9px;
  }
  .depart-card img {
    width: 58px;
    height: 54px;
  }
  .depart-text strong {
    font-size: 14px;
  }
  .depart-text small {
    font-size: 11px;
  }
  .hero-content {
    margin-left: 5vw;
  }
  .departure-cards {
    gap: 9px;
  }
  .utilities {
    gap: 10px;
  }
  .hero {
    min-height: clamp(485px, calc(100svh - var(--bar) - 137px), 950px);
  }
  .departure {
    padding-block: 15px 17px;
  }
}
@media (max-width: 700px) {
  :root {
    --pad: 18px;
    --bar: 58px;
  }
  .topbar {
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }
  .brand {
    gap: 5px;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
  .brand span {
    font-size: 26px;
  }
  .main-nav {
    gap: 2px;
    margin-left: auto;
  }
  .main-nav button {
    height: 100%;
    width: 38px;
    justify-content: center;
  }
  .main-nav button span {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .main-nav button[aria-current]:after {
    left: 10px;
    right: 10px;
  }
  .main-nav svg,
  .utilities svg {
    width: 18px;
    height: 18px;
  }
  .utilities {
    gap: 0;
  }
  .utilities .sound,
  .utilities .iconbtn {
    width: 36px;
  }
  .utilities .sound span,
  .utilsep {
    display: none;
  }
  .hero {
    min-height: clamp(445px, calc(100svh - var(--bar) - 167px), 850px);
    align-items: flex-end;
  }
  .hero-content {
    padding: 80px 22px 29px;
    margin: 0;
    max-width: 100%;
  }
  .hero picture img {
    object-position: 65% center;
  }
  .hero-shade {
    background: linear-gradient(0deg, rgba(12, 15, 13, 0.91), rgba(12, 15, 13, 0.55) 40%, transparent 86%);
  }
  .hero h1 {
    font-size: clamp(72px, 17vw, 93px);
    margin: 12px 0 14px;
  }
  .hero-content > p {
    max-width: 320px;
    line-height: 1.45;
    font-size: 15px;
  }
  .location-line {
    font-size: 11px;
    gap: 5px;
  }
  .location-line svg {
    width: 13px;
    height: 13px;
  }
  .hero-actions {
    margin-top: 19px;
    gap: 9px;
  }
  .button {
    min-height: 44px;
    padding: 0 15px;
  }
  .image-caption {
    display: none;
  }
  .departure {
    padding: 14px 18px 16px;
  }
  .departure-title {
    margin-bottom: 9px;
  }
  .departure-cards {
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .depart-card {
    display: grid;
    gap: 6px;
    padding: 4px 4px 7px;
    border-radius: 4px;
    align-content: start;
  }
  .depart-card img {
    width: 100%;
    height: 45px;
    border-radius: 2px;
    object-position: 60% 40%;
  }
  .depart-text {
    padding: 0 3px;
  }
  .depart-text strong {
    font-size: 12px;
  }
  .depart-text small {
    display: none;
  }
  .depart-indicator {
    display: none;
  }
  .depart-card[aria-pressed='true'] .depart-indicator {
    display: grid;
    position: absolute;
    top: 7px;
    right: 7px;
  }
  .hero-content {
    width: 100%;
  }
  .play-top {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .bearing {
    left: auto;
    right: 43px;
    transform: none;
  }
  .place-chip {
    padding: 7px 9px;
    font-size: 12px;
    max-width: 62%;
    min-height: 37px;
  }
  .mini-wrap {
    top: 60px;
    right: 10px;
    bottom: auto;
    left: auto;
  }
  .mini-wrap button,
  .mini-wrap canvas {
    width: 68px;
    height: 68px;
  }
  .play-bottom {
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 2px;
  }
  .play-bottom kbd {
    display: none;
  }
  .play-bottom button {
    font-size: 12px;
    min-height: 33px;
  }
  .play-top .bearing {
    padding: 8px 6px;
    font-size: 12px;
  }
  #targetChip {
    top: 56px;
    left: 10px;
    max-width: 60%;
  }
  dialog,
  #dialog.atlas {
    max-height: calc(100dvh - 20px);
    width: calc(100vw - 20px);
  }
  .dialog-heading,
  .atlas .dialog-heading {
    padding: 12px 16px;
  }
  .modal-body {
    padding: 16px 19px;
  }
  .atlas-layout {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
    max-height: none;
  }
  .atlas-list-side {
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .places-list {
    max-height: 155px;
  }
  .map-drawing {
    min-height: 155px;
    height: 23dvh;
    flex: auto;
  }
  .map-area {
    display: block;
  }
  .search-box {
    margin: 9px 10px 6px;
  }
  .atlas-count {
    margin-bottom: 4px;
  }
  .place-detail {
    padding: 9px 12px 12px;
  }
  .place-detail h3 {
    font-size: 24px;
  }
  .place-detail p {
    font-size: 13px;
    line-height: 1.35;
  }
  .detail-actions {
    margin-top: 7px;
  }
  .place-row {
    padding: 7px 12px;
  }
  .guide-detail .detail-illustration,
  .guide-schematic {
    height: 16dvh;
    min-height: 70px;
  }
  .guide-inner {
    padding: 12px;
  }
  .guide-detail p {
    font-size: 14px;
  }
  .guide-detail h3 {
    font-size: 27px;
  }
  .source {
    margin-top: 8px;
  }
  .map-footer {
    padding: 5px 9px;
  }
  .guide-detail {
    display: block;
    overflow: visible;
  }
  .place-row small {
    display: none;
  }
}
@media (max-height: 580px) and (min-width: 701px) {
  .hero {
    min-height: 330px;
  }
  .hero-content {
    padding-block: 19px;
  }
  .hero h1 {
    font-size: 70px;
    margin: 8px 0;
  }
  .hero-actions {
    margin-top: 12px;
  }
  .departure {
    padding-block: 9px;
  }
  .departure-title {
    margin-bottom: 5px;
  }
  .depart-card img {
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.world-credit {
  position: absolute;
  right: 4px;
  bottom: 2px;
  font-size: 11px;
  text-decoration: none;
  color: #fbf7e3;
  background: #17251fc9;
  padding: 1px 4px;
}
.guide-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 13px 0;
}
.guide-tabs button {
  color: #b9c3b2;
  font-size: 13px;
  padding: 5px 9px;
  border-radius: 3px;
}
.guide-tabs [aria-pressed='true'] {
  background: #344537;
  color: var(--paper);
}
.walk-stops {
  margin: 12px 0 0;
  padding-left: 19px;
  color: #d8dfce;
  font-size: 14px;
}
.walk-stops li {
  margin-bottom: 3px;
}
.place-row .found svg {
  width: 13px;
  height: 13px;
}
#flightBar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 17px;
  background: var(--ground);
  padding: 7px 7px 7px 17px;
  border-radius: 6px;
  white-space: nowrap;
}
#flightBar .button {
  min-height: 35px;
}
.flying .mini-wrap,
.flying .play-bottom,
.flying .bearing,
.flying .place-chip {
  visibility: hidden;
}
.flying .play-top {
  justify-content: flex-end;
}
@media (pointer: coarse) and (min-width: 701px) {
  .mini-wrap {
    top: 65px;
    right: 16px;
    bottom: auto;
    left: auto;
  }
}
@media (max-width: 700px) {
  .world-credit {
    font-size: 11px;
    bottom: 0;
    right: 0;
  }
  .guide-tabs {
    padding: 6px 10px 0;
  }
  .walk-stops {
    columns: 2;
  }
  .walk-stops li {
    break-inside: avoid;
  }
  .map-drawing {
    max-height: 34dvh;
  }
}
#nearTower {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 75px;
  min-height: 35px;
  background: var(--ground);
  white-space: nowrap;
}
.carillon-keys {
  display: flex;
  gap: 4px;
  margin-top: 22px;
}
.carillon-keys button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 0 8px;
  height: 95px;
  flex: 1;
  min-width: 0;
  background: #caa775;
  border-radius: 3px;
  color: #302617;
  border-bottom: 6px solid #93723e;
}
.carillon-keys button kbd {
  color: inherit;
  border-color: #94763f;
}
.carillon-keys button:hover,
.carillon-keys button.ringing {
  background: #f1d396;
}
.carillon-keys button.ringing {
  transform: translateY(3px);
}
#flightBar .secondary {
  min-height: 35px;
}
@media (max-width: 700px) {
  #flightBar {
    max-width: calc(100% - 20px);
    gap: 6px;
    padding: 6px;
  }
  #flightBar span {
    font-size: 13px;
  }
  #flightBar .button {
    padding: 0 9px;
    font-size: 13px;
  }
}
.guide-detail .race-note {
  margin-top: 10px;
  font-size: 12px;
  color: #c4ccbc;
}
.race-result {
  font: 400 64px/1.2 var(--serif);
  font-variant-numeric: tabular-nums;
  margin: 10px 0;
}
.image-caption {
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #19291f77;
}
.image-caption:hover {
  background: #19291fca;
}
.caption-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border: 1px solid #d7d1b7;
  border-radius: 50%;
}
.caption-play svg {
  width: 11px;
  height: 11px;
  margin-left: 2px;
}
.image-caption small {
  line-height: 1.3;
}
@media (max-width: 700px) {
  .image-caption {
    display: flex;
    top: 13px;
    right: 14px;
    bottom: auto;
    padding: 4px 8px;
    gap: 6px;
  }
  .image-caption #viewName {
    display: none;
  }
  .image-caption small {
    font: 500 12px var(--sans);
    text-transform: none;
    letter-spacing: 0;
  }
  .caption-play {
    border: 0;
    width: 13px;
    height: 17px;
  }
  .caption-play svg {
    width: 9px;
    height: 9px;
  }
}
.guide-photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 120px;
  height: 46%;
  flex: none;
}
.guide-photo img {
  min-height: 0;
  object-fit: cover;
  object-position: 50% 45%;
  width: 100%;
  flex: 1;
}
.guide-photo figcaption {
  background: #1e2c24;
  padding: 4px 12px;
  color: #c8cdbd;
  font-size: 11px;
}
.guide-photo figcaption a {
  color: inherit;
}
@media (max-width: 700px) {
  .guide-photo {
    height: 20dvh;
    min-height: 105px;
  }
}
.duo-field {
  font-size: 14px;
  display: grid;
  gap: 6px;
  margin-top: 14px;
}
.duo-field textarea,
.duo-field input {
  border: 1px solid #566552;
  border-radius: 4px;
  background: #203328;
  color: var(--paper);
  padding: 8px 10px;
  font: 14px/1.45 var(--sans);
  width: 100%;
}
.duo-field textarea {
  resize: vertical;
  overflow-wrap: anywhere;
}
.duo-status {
  font-size: 14px;
  color: var(--gold);
  margin-top: 12px;
}
.duo-status:empty {
  display: none;
}
.messages {
  max-height: 140px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.messages:not(:empty) {
  margin-top: 14px;
  padding: 8px;
  border: 1px solid var(--line);
}
.messages p {
  font-size: 14px;
  margin: 3px 0;
}
.messages strong {
  color: var(--gold);
  margin-right: 5px;
}
@media(max-width:360px){
  .topbar{padding-inline:12px;gap:4px}
  .brand img{width:22px;height:22px}
  .brand span{font-size:24px}
  .main-nav button{width:31px}
  .utilities .iconbtn,.utilities .sound{width:30px}
  .depart-text strong{font-size:11px}
  .hero-content{padding-inline:17px}
}
