html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  font-family: "Yu Gothic", Meiryo, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  min-height: 44px;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus, #ef573b);
  outline-offset: 4px;
}
button:hover {
  filter: brightness(1.08);
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
button {
  border: 1px solid currentColor;
  background: transparent;
  padding: 9px 18px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4vw;
  border-bottom: 1px solid currentColor;
}
header .brand {
  font:
    900 25px Arial,
    sans-serif;
  letter-spacing: -1px;
}
header nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
}
.skip {
  position: fixed;
  left: 10px;
  top: -100px;
  background: white;
  color: #111;
  padding: 12px;
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
.micro {
  font-size: 11px;
  letter-spacing: 1px;
}
.button-fill {
  background: var(--ink);
  color: var(--bg);
}
.status {
  font-size: 12px;
  line-height: 1.75;
}
footer {
  padding: 30px 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-top: 1px solid currentColor;
}
footer p {
  font-size: 12px;
  max-width: 650px;
  margin: 0;
}
footer strong {
  font:
    900 20px Arial,
    sans-serif;
}
dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: 85dvh;
  overflow: auto;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid currentColor;
  padding: 25px;
}
dialog::backdrop {
  background: #141821c9;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-head button {
  font-size: 28px;
  border: 0;
  width: 44px;
  padding: 0;
}
dialog h2 {
  font:
    32px Georgia,
    "Yu Mincho",
    serif;
}
dialog p {
  font-size: 14px;
}
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
input[type="range"] {
  accent-color: var(--ink);
  min-height: 44px;
  max-width: 100%;
  cursor: pointer;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (max-width: 700px) {
  header {
    padding: 17px 20px;
    gap: 10px;
  }
  header .brand {
    font-size: 20px;
  }
  header nav {
    gap: 14px;
    font-size: 11px;
  }
  footer {
    padding: 25px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  footer p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
:root {
  --bg: #d8e3e2;
  --ink: #253b4b;
  --focus: #e64b21;
}
.map-stage {
  height: 700px;
  position: relative;
  overflow: hidden;
}
.terrain-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65);
}
.map-stage:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #e6ece8a0, transparent 50%);
  pointer-events: none;
}
.map-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.map-heading {
  position: absolute;
  z-index: 3;
  top: 35px;
  left: 4vw;
}
.map-heading h1 {
  font:
    900 clamp(95px, 13vw, 180px)/1 Impact,
    "Arial Narrow",
    sans-serif;
  letter-spacing: -7px;
  margin: 5px 0 0;
}
.map-heading p {
  font:
    24px "Yu Mincho",
    serif;
  letter-spacing: 5px;
  margin: 10px 0;
}
.compass {
  position: absolute;
  top: 30px;
  right: 7vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}
.compass span {
  font-size: 75px;
  line-height: 1.2;
}
.compass small {
  font: 11px/1.7 Arial;
}
.altitude-rule {
  position: absolute;
  right: 3vw;
  top: 250px;
  font: 11px/2 Arial;
  text-align: center;
  z-index: 3;
}
.route-ticket {
  position: absolute;
  left: 4vw;
  bottom: 35px;
  width: 340px;
  padding: 24px;
  background: #ff632e;
  z-index: 3;
  box-shadow: 8px 8px 0 #253b4b;
}
.route-ticket h2 {
  font:
    32px "Yu Mincho",
    serif;
  margin: 10px 0 20px;
}
.route-numbers {
  display: flex;
  gap: 35px;
}
.route-numbers strong {
  display: block;
  font:
    55px/1 Impact,
    sans-serif;
}
.route-numbers span {
  font-size: 11px;
}
.route-ticket p {
  font-size: 12px;
  line-height: 1.8;
  margin: 20px 0;
}
.route-tabs {
  display: flex;
  gap: 5px;
}
.route-tabs button {
  font-size: 12px;
  padding: 9px 15px;
}
.route-tabs button[aria-pressed="true"] {
  background: #253b4b;
  color: #d8e3e2;
}
.current-point {
  position: absolute;
  bottom: 65px;
  right: 10vw;
  z-index: 3;
  display: flex;
  flex-direction: column;
}
.current-point > span {
  font-size: 12px;
}
.current-point strong {
  font:
    90px/1.2 Impact,
    sans-serif;
  letter-spacing: -3px;
}
.current-point small {
  font: 22px Arial;
}
.map-scale {
  position: absolute;
  bottom: 25px;
  left: 52%;
  z-index: 3;
  font-size: 11px;
}
.progress-panel {
  display: grid;
  grid-template-columns: 190px 1fr 180px;
  align-items: center;
  gap: 30px;
  padding: 25px 4vw;
  border-top: 1px solid #253b4b;
  border-bottom: 1px solid #253b4b;
}
.progress-panel label {
  font-weight: 700;
}
.progress-panel label span {
  font-size: 12px;
  display: block;
  margin-top: 5px;
}
.journal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 65px 8vw;
  gap: 80px;
}
.journal h2 {
  font:
    38px/1.5 "Yu Mincho",
    serif;
  margin: 15px 0;
}
.journal p {
  max-width: 360px;
  font-size: 14px;
  line-height: 2;
}
.journal ol {
  list-style: none;
  padding: 0;
}
.journal li {
  padding: 23px 0;
  border-bottom: 1px solid #829797;
  display: flex;
  align-items: center;
  gap: 25px;
}
.journal li span {
  font-size: 11px;
}
.journal li strong {
  font-size: 16px;
}
.journal li b {
  margin-left: auto;
  font: 18px Arial;
}
.route-status {
  padding: 0 8vw 20px;
}
@media (max-width: 900px) {
  .current-point {
    right: 7vw;
    bottom: 80px;
  }
  .current-point strong {
    font-size: 70px;
  }
  .route-ticket {
    width: 300px;
  }
  .map-heading h1 {
    font-size: 125px;
  }
  .journal {
    gap: 35px;
    padding: 45px 5vw;
  }
  .progress-panel {
    gap: 20px;
    grid-template-columns: 150px 1fr 155px;
  }
}
@media (max-width: 600px) {
  .map-stage {
    height: 900px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .terrain-image {
    height: 510px;
  }
  .map-stage canvas {
    height: 510px;
  }
  .map-heading {
    top: 25px;
    left: 20px;
  }
  .map-heading h1 {
    font-size: 92px;
    letter-spacing: -4px;
  }
  .map-heading .micro {
    font-size: 11px;
    max-width: 200px;
    display: block;
  }
  .map-heading p {
    font-size: 18px;
    letter-spacing: 2px;
  }
  .compass {
    right: 24px;
    top: 28px;
  }
  .compass span {
    font-size: 48px;
  }
  .compass small {
    display: none;
  }
  .compass b {
    font-size: 11px;
  }
  .altitude-rule {
    right: 18px;
    top: 200px;
  }
  .route-ticket {
    left: 20px;
    right: 28px;
    bottom: 25px;
    width: auto;
    padding: 23px;
    box-shadow: 7px 7px 0 #253b4b;
  }
  .route-ticket h2 {
    font-size: 30px;
  }
  .route-numbers strong {
    font-size: 45px;
  }
  .current-point {
    right: 25px;
    bottom: 425px;
  }
  .current-point strong {
    font-size: 53px;
  }
  .current-point span {
    font-size: 11px;
  }
  .map-scale {
    left: 20px;
    bottom: 408px;
    font-size: 11px;
  }
  .progress-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 25px;
  }
  .progress-panel label {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .progress-panel label span {
    margin: 0;
  }
  .progress-panel button {
    width: 100%;
  }
  .journal {
    grid-template-columns: 1fr;
    padding: 40px 25px;
    gap: 15px;
  }
  .journal h2 {
    font-size: 32px;
  }
  .journal li {
    gap: 15px;
  }
  .journal li strong {
    font-size: 14px;
  }
  .journal li b {
    font-size: 16px;
  }
  .map-stage:after {
    height: 510px;
    bottom: auto;
  }
}
.route-ticket {
  color: #172b36;
}
.route-tabs button[aria-pressed="true"] {
  color: #d8e3e2;
}
