@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@400;500;600&display=swap");
:root {
  --ink: #e9dfbc;
  --paper: #14252c;
  --gold: #d9b365;
  --line: #bd944347;
  --serif: "Cormorant Garamond", Georgia, serif;
  --title: "Cinzel", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: #09151e;
  font: 14px var(--sans);
  background-image: radial-gradient(ellipse at 50% 0, #233b42, transparent 75%);
}
body:has(dialog[open]) {
  overflow: hidden;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #ffda86;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 85px;
  padding: 0 3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: linear-gradient(#08141cf5, #10232ae6);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.brand {
  font: 26px var(--title);
  letter-spacing: 1px;
  color: #f5e4b1;
  text-shadow: 0 2px 12px #cba25a44;
  white-space: nowrap;
}
.brand i {
  font: italic 37px var(--serif);
  color: var(--gold);
  margin-left: 5px;
}
.brand small {
  display: block;
  font: 7px var(--title);
  letter-spacing: 4.3px;
  color: #b6b6a3;
  margin-top: 1px;
}
header nav {
  display: flex;
  gap: 12px;
}
header nav button {
  font: 11px var(--title);
  min-height: 44px;
  padding: 10px 18px;
  color: #bebda5;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
}
header nav button.active {
  color: #ffe2a0;
  border-color: #caa55c67;
  background: linear-gradient(90deg, #a8792514, #a8792530, #a8792514);
  box-shadow: inset 0 0 12px #e5c7830a;
}
header nav button:hover {
  color: #fff0c8;
}
.date-seal {
  font: 12px var(--title);
  letter-spacing: 2px;
  text-align: right;
  line-height: 2;
}
.date-seal small {
  font: 7px var(--sans);
  letter-spacing: 1.5px;
  display: block;
  color: #a8b7ad;
}
main {
  width: 100%;
  max-width: 2000px;
  margin: auto;
}
.atlas {
  position: relative;
  height: calc(100dvh - 200px);
  min-height: 570px;
  overflow: hidden;
  background: #102536;
}
#viewport {
  height: 100%;
  width: 100%;
  overflow: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  cursor: grab;
  touch-action: pan-x pan-y;
  position: relative;
}
#viewport::-webkit-scrollbar {
  display: none;
}
#viewport.dragging {
  cursor: grabbing;
}
#canvas {
  position: relative;
  isolation: isolate;
}
#landscape {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.world-art {
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}
.route-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.route-shadow {
  fill: none;
  stroke: #ffe1a4;
  stroke-width: 7;
  filter: url(#glow);
  opacity: 0.3;
}
.route {
  fill: none;
  stroke: #f8d798;
  stroke-width: 1.4;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
  opacity: 0.8;
  animation: flow 60s linear infinite;
}
.world-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#06151b4d, transparent 30%, transparent 70%, #07151b99),
    linear-gradient(
      90deg,
      #06151b33,
      transparent 12%,
      transparent 88%,
      #06151b33
    );
  pointer-events: none;
}
.map-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid #d5b47255;
  pointer-events: none;
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.map-frame:after,
.map-frame:before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #dab57522;
}
.map-frame:after {
  inset: -2px;
  border: 3px solid #d8b36e;
  mask: linear-gradient(
    90deg,
    #000 22px,
    transparent 22px,
    transparent calc(100% - 22px),
    #000 calc(100% - 22px)
  );
}
.game-title {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 4;
  pointer-events: none;
  width: max-content;
  max-width: 90%;
  filter: drop-shadow(0 3px 8px #06111a);
}
.game-title:before {
  content: "";
  position: absolute;
  inset: -35px -80px;
  background: radial-gradient(ellipse, #06141ada, transparent 68%);
  z-index: -1;
}
.eyebrow {
  font: 8px/1.8 var(--sans);
  letter-spacing: 2.5px;
  color: #d3c59f;
}
.game-title h1 {
  font: 500 clamp(30px, 3.5vw, 52px) / 1.2 var(--title);
  margin: 6px 0;
  color: #fff0be;
  text-shadow: 0 2px 1px #3e281c;
}
.game-title h1 em {
  font-style: normal;
}
.title-ornament {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  color: #d8b36e;
  font-size: 12px;
}
.title-ornament span {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d7b16a);
}
.title-ornament span:last-child {
  transform: rotate(180deg);
}
.intro-line {
  font: italic 16px var(--serif);
  color: #e3dcc4;
  margin: 5px 0;
}
.map-top-tools {
  position: absolute;
  top: 22px;
  left: 25px;
  right: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}
.map-hint {
  font: 9px var(--sans);
  letter-spacing: 0.5px;
  background: #0c222dc4;
  padding: 10px 13px;
  border: 1px solid #cead6655;
  color: #e4d4af;
}
.map-top-tools button {
  min-height: 44px;
  padding: 10px 14px;
  background: #0c222dd9;
  border: 1px solid #cead6655;
  font-size: 11px;
  pointer-events: auto;
}
.realm-name {
  position: absolute;
  font: 9px var(--title);
  letter-spacing: 2px;
  text-shadow:
    0 2px 6px #000,
    0 0 8px #000;
  color: #f8dc9b;
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
}
.homeland {
  left: 17%;
  top: 28%;
}
.sea {
  left: 47%;
  top: 38%;
}
.island {
  left: 76%;
  top: 20%;
}
.marker {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 8px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 172px;
  z-index: 2;
  filter: drop-shadow(0 3px 8px #07121c80);
}
.pin {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid #f7d590;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3d5a5e, #0b2632 75%);
  font: 16px var(--title);
  color: #ffe7af;
  box-shadow:
    0 0 0 4px #08232cb3,
    0 0 0 5px #dbb15a85,
    0 0 20px #edc87559;
  position: relative;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.pin:before {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  border: 1px solid #e9c27755;
  transform: rotate(45deg);
}
.marker:hover .pin,
.marker:focus-visible .pin {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 5px #a36b39aa,
    0 0 30px #ffda7caa;
}
.marker.visited .pin {
  background: radial-gradient(circle at 30% 20%, #ab8645, #60441f);
  color: #fff0ba;
}
.marker.visited .pin:after {
  content: "";
  position: absolute;
  right: -10px;
  top: -11px;
  color: #ffe1a1;
  font-size: 16px;
}
.label {
  margin-top: 12px;
  padding: 7px 12px;
  max-width: 172px;
  font: 500 14px/1.2 var(--serif);
  text-align: center;
  color: #f9ebc4;
  background: linear-gradient(90deg, #10252bdd, #19363df5, #10252bdd);
  border-block: 1px solid #c09a5377;
  clip-path: polygon(
    7px 0,
    calc(100% - 7px) 0,
    100% 50%,
    calc(100% - 7px) 100%,
    7px 100%,
    0 50%
  );
}
.label small {
  font: 7px var(--sans);
  letter-spacing: 1px;
  display: block;
  margin-top: 4px;
  color: #c9b985;
}
.quest-card {
  position: absolute;
  bottom: 26px;
  left: 28px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 26px 18px 20px;
  z-index: 4;
  background: linear-gradient(120deg, #10252ff5, #15262ce8);
  border: 1px solid #c8a45e80;
  box-shadow: 0 7px 30px #03141f80;
  outline: 1px solid #c8a45e25;
  outline-offset: -5px;
}
.quest-glyph {
  color: #e1bc70;
  font: 42px var(--serif);
  text-shadow: 0 0 18px #e1bc7077;
}
.quest-card small {
  font: 7px var(--title);
  letter-spacing: 1.6px;
  color: #c5aa70;
}
.quest-card p {
  font: 22px var(--serif);
  margin: 6px 0;
}
.quest-card button {
  font: 9px var(--title);
  padding: 8px 0;
  color: #f9df9b;
}
.quest-card button span {
  margin-left: 25px;
}
.zoom {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  border: 1px solid #c8a45e70;
  background: #10252ee8;
  box-shadow: 0 3px 12px #0005;
}
.zoom button {
  width: 44px;
  height: 44px;
  font-size: 23px;
  color: #e2c481;
}
.zoom > span {
  font-size: 9px;
  width: 38px;
  text-align: center;
}
.swipe-hint {
  display: none;
}
.journey-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 78px;
  padding: 8px 20px;
  border-block: 1px solid #bf98585e;
  background: linear-gradient(0deg, #111e27, #20353a 60%, #15262f);
  box-shadow: 0 -8px 35px #06151b55;
  position: relative;
  z-index: 4;
}
.region-jump {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 28px;
  text-align: left;
  min-height: 58px;
  font: 15px var(--title);
  border: 1px solid transparent;
  color: #c5c4ad;
  position: relative;
}
.region-jump small {
  font: 7px var(--sans);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 5px;
  color: #9caa9d;
}
.region-symbol {
  font: 26px var(--serif);
  color: #bc9e67;
}
.region-jump.selected {
  color: #ffe0a0;
  background: radial-gradient(ellipse at center, #ba914222, transparent 75%);
  border-bottom-color: #dcb773;
}
.region-jump.selected .region-symbol {
  color: #ffe0a0;
  text-shadow: 0 0 15px #debb6b;
}
.region-jump.selected small {
  color: #ceb377;
}
.dock-divider {
  font-size: 7px;
  color: #907649;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 37px;
  padding: 0 30px;
  gap: 15px;
  background: #0a1820;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #9eafaa;
}
#progress b {
  margin: 0 8px;
  font-weight: 500;
  color: #e3c58c;
}
footer button {
  font-size: 9px;
  color: #d6bd88;
  padding: 11px 0;
}
.footer-legend {
  font: 7px var(--title);
  letter-spacing: 2px;
}
dialog {
  border: 1px solid #b99357;
  padding: 0;
  background: #e8ddbc;
  color: #273a36;
  box-shadow: 0 20px 100px #000b;
  max-height: 90dvh;
}
dialog::backdrop {
  background: #071321c9;
  backdrop-filter: blur(7px);
}
.close {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 44px;
  height: 44px;
  background: #102831ed;
  color: #ead39c;
  border: 1px solid #c1a15f;
  z-index: 6;
  font-size: 18px;
}
.close:hover {
  background: #29474b;
}
#piece {
  width: 920px;
  max-width: calc(100vw - 40px);
  outline: 1px solid #c0a06366;
  outline-offset: 5px;
}
#piece[open] {
  display: grid;
  grid-template-columns: 32% 68%;
}
.chapter-art {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: linear-gradient(#10202a33, #071b2ae6), url("assets/map.png");
  background-size: auto 100%;
  background-position: var(--scene-x, 20%) center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f6d999;
  border-right: 1px solid #ae8844;
}
.chapter-art:after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #d8b66b60;
  pointer-events: none;
}
.ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid #e5c78088;
  border-radius: 50%;
  outline: 1px solid #e5c78044;
  outline-offset: 15px;
  background: #10293277;
  box-shadow: 0 0 50px #06152188;
}
.ring:before,
.ring:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: #e5c78044;
  top: 50%;
  transform: rotate(45deg);
}
.ring:after {
  transform: rotate(-45deg);
}
#symbol {
  font: 80px var(--serif);
  z-index: 1;
  text-shadow: 0 0 35px #ffda8e99;
}
#region {
  position: absolute;
  bottom: 40px;
  font: 12px/1.8 var(--title);
  letter-spacing: 1.5px;
  text-align: center;
  padding: 0 25px;
}
.note {
  padding: 44px 42px 25px;
  background: radial-gradient(ellipse at 40% 30%, #f6ecd3, #e3d3ad);
  position: relative;
}
.note:before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #a6854444;
  pointer-events: none;
}
.note > .eyebrow {
  font: 8px var(--title);
  color: #816326;
  letter-spacing: 1.4px;
  margin-right: 28px;
}
.note h2 {
  font: 500 35px/1.1 var(--title);
  margin: 18px 0 10px;
  letter-spacing: -0.5px;
}
#subtitle {
  font: italic 23px var(--serif);
  color: #857349;
  margin: 10px 0 25px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #b8a570;
  margin-bottom: 20px;
}
.tabs button {
  font: 10px var(--title);
  padding: 12px 0;
  color: #7e764f;
  min-height: 44px;
}
.tabs button[aria-selected="true"] {
  color: #35483e;
  border-bottom: 2px solid #8b6b2f;
}
#noteText {
  font: 19px/1.55 var(--serif);
  min-height: 180px;
}
#noteText p {
  margin: 0 0 16px;
}
#noteText .context {
  font: 9px/1.7 var(--sans);
  color: #7e744f;
  border-top: 1px solid #bdad81;
  padding-top: 13px;
}
.piece-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #bdad81;
  margin-top: 20px;
  padding-top: 10px;
  font: 10px var(--title);
}
.piece-nav button {
  font: 10px var(--title);
  min-height: 44px;
  padding: 7px 0;
}
#interval {
  font: 11px/1.6 var(--sans);
  border: 1px solid #bfa66b;
  padding: 12px;
  background: #d6c48e50;
}
#book {
  width: 1080px;
  max-width: calc(100vw - 40px);
  height: 750px;
}
#book[open] {
  display: grid;
  grid-template-columns: 270px 1fr;
}
#book aside {
  padding: 36px 25px;
  background:
    linear-gradient(#122d36ed, #0c1c28f5),
    url("assets/map.png") center/cover;
  color: #ead9ac;
  position: relative;
  border-right: 1px solid #ac8b4a;
}
#book aside h2 {
  font: 27px/1.35 var(--title);
  margin: 20px 0 30px;
}
#book aside em {
  font: italic 35px var(--serif);
  color: #c7ac70;
}
#book aside nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#book aside nav button {
  text-align: left;
  font: 9px var(--title);
  min-height: 44px;
  padding: 10px 0;
  color: #b8a06b;
}
#book aside nav span {
  font: 11px var(--sans);
  margin-left: 10px;
  color: #d5d5bc;
}
#book aside nav button.selected {
  border-bottom: 1px solid #ad8f53;
}
#book aside nav button.selected span {
  color: #fbe0a0;
}
.book-date {
  position: absolute;
  bottom: 26px;
  font: 8px var(--title);
  letter-spacing: 2px;
}
#bookPage {
  padding: 50px;
  overflow: auto;
  background: radial-gradient(ellipse at 40% 30%, #f5ecd5, #e4d5af);
}
#bookPage h3 {
  font: 34px/1.15 var(--title);
  margin: 18px 0 25px;
}
#bookPage p {
  font: 20px/1.6 var(--serif);
}
#bookPage .eyebrow {
  font: 8px var(--title);
  color: #8b7338;
  letter-spacing: 1.5px;
}
#bookPage img {
  max-width: 100%;
  max-height: 370px;
  display: block;
  margin: 25px auto;
  border: 4px solid #9d8045;
}
.concert-info {
  border-top: 1px solid #baa575;
  padding-top: 15px;
}
.concert-info p {
  font: 12px/1.8 var(--sans) !important;
}
.programme h4 {
  font: 18px var(--title);
  margin: 25px 0 14px;
}
.song {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 14px 0;
  border-top: 1px solid #baa575;
  min-height: 52px;
}
.song > span:first-child {
  font: 11px var(--title);
  color: #947334;
}
.song strong {
  flex: 1;
  font: 500 23px var(--serif);
}
.song small {
  font: 8px var(--sans);
  display: block;
  letter-spacing: 1px;
  margin-top: 5px;
}
.song:hover {
  color: #9b6c25;
}
.intermission {
  text-align: center;
  padding: 18px 5px;
  border-block: 1px solid #baa575;
  margin: 20px 0;
  font: 9px var(--title);
  letter-spacing: 2px;
}
.pending {
  font: 13px/1.8 var(--sans) !important;
  padding: 20px;
  border: 1px solid #b8a779;
  background: #c5b57f30;
}
.continue {
  font: 11px var(--title);
  margin-top: 20px;
  padding: 12px 0;
  min-height: 44px;
  border-bottom: 1px solid #947334;
}
@keyframes flow {
  to {
    stroke-dashoffset: -240;
  }
}
@media (min-width: 1700px) {
  .atlas {
    min-height: 680px;
  }
}
@media (max-width: 1100px) {
  .date-seal {
    display: none;
  }
  .map-hint {
    display: none;
  }
  .map-top-tools {
    justify-content: flex-end;
  }
  .game-title h1 {
    font-size: 36px;
  }
  .region-jump {
    padding: 10px 15px;
  }
  .journey-dock {
    gap: 15px;
  }
  .quest-card {
    padding: 14px 22px 14px 18px;
  }
  .realm-name {
    font-size: 8px;
  }
  .map-top-tools button span {
    display: none;
  }
  .note h2 {
    font-size: 30px;
  }
  #book[open] {
    grid-template-columns: 230px 1fr;
  }
  #bookPage {
    padding: 45px 30px;
  }
}
@media (max-width: 650px) {
  header {
    height: 73px;
    padding: 0 15px;
    gap: 8px;
  }
  .brand {
    font-size: 19px;
    letter-spacing: 0.5px;
  }
  .brand i {
    font-size: 28px;
  }
  .brand small {
    font-size: 5px;
    letter-spacing: 2.4px;
  }
  header nav {
    gap: 3px;
  }
  header nav button {
    min-width: 48px;
    min-height: 48px;
    flex-direction: column;
    gap: 4px;
    font-size: 17px;
    padding: 4px 6px;
    border: 0;
  }
  header nav button span {
    font: 7px var(--sans);
    letter-spacing: 0.1px;
  }
  header nav button.active {
    background: none;
    border-bottom: 1px solid #d4b36d;
  }
  .atlas {
    height: calc(100dvh - 190px);
    min-height: 440px;
  }
  .game-title {
    top: 21px;
    max-width: 95%;
  }
  .game-title h1 {
    font-size: 29px;
    white-space: nowrap;
    margin: 5px 0;
  }
  .game-title .eyebrow {
    font-size: 6px;
    letter-spacing: 1.2px;
  }
  .intro-line {
    font-size: 14px;
  }
  .title-ornament span {
    width: 45px;
  }
  .title-ornament {
    font-size: 10px;
    gap: 12px;
  }
  .game-title:before {
    inset: -30px -30px;
  }
  .map-frame {
    inset: 7px;
  }
  .map-top-tools {
    top: auto;
    bottom: 13px;
    right: 13px;
    left: auto;
  }
  .map-top-tools button {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 20px;
    background: #10252ee8;
  }
  .zoom {
    bottom: 13px;
    left: 13px;
    right: auto;
  }
  .zoom button {
    width: 40px;
    height: 44px;
  }
  .zoom > span {
    width: 34px;
  }
  .quest-card {
    display: none;
  }
  .swipe-hint {
    display: block;
    position: absolute;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 8px;
    letter-spacing: 1px;
    background: #0b2029c9;
    padding: 7px 12px;
    border: 1px solid #b69c5744;
    pointer-events: none;
    z-index: 4;
    color: #f0d99e;
  }
  .marker {
    width: 146px;
  }
  .pin {
    width: 43px;
    height: 43px;
    font-size: 15px;
  }
  .label {
    font-size: 14px;
    max-width: 146px;
    padding: 7px 11px;
  }
  .realm-name {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .journey-dock {
    min-height: 78px;
    padding: 7px 6px;
    gap: 0;
    justify-content: space-around;
  }
  .region-jump {
    padding: 8px 7px;
    min-height: 59px;
    gap: 7px;
    font-size: 10px;
    justify-content: center;
    flex: 1;
  }
  .region-symbol {
    font-size: 22px;
  }
  .region-jump small {
    font-size: 6px;
    letter-spacing: 1.3px;
    margin-bottom: 5px;
  }
  .dock-divider {
    font-size: 5px;
  }
  .footer-legend {
    display: none;
  }
  footer {
    min-height: 39px;
    padding: 0 13px;
    gap: 5px;
    font-size: 6px;
    letter-spacing: 1px;
  }
  #progress b {
    margin: 0 5px;
    font-size: 8px;
  }
  footer button {
    font-size: 8px;
    min-height: 39px;
  }
  #piece {
    max-width: calc(100vw - 18px);
    max-height: 94dvh;
  }
  #piece[open] {
    display: block;
  }
  .chapter-art {
    height: 150px;
    min-height: 150px;
    flex-direction: row;
    gap: 30px;
    border-right: 0;
    border-bottom: 1px solid #ae8844;
    background-size: 100% auto;
    background-position: var(--scene-x, 20%) var(--scene-y, 40%);
  }
  .ring {
    width: 115px;
    height: 115px;
    left: 12px;
  }
  .chapter-art:after {
    inset: 8px;
  }
  #symbol {
    font-size: 54px;
    margin-left: -30px;
  }
  #region {
    position: static;
    font-size: 10px;
    line-height: 1.6;
    max-width: 165px;
    padding: 0;
  }
  .note {
    padding: 25px 24px 18px;
  }
  .note h2 {
    font-size: 27px;
    margin: 14px 0 10px;
  }
  .note > .eyebrow {
    font-size: 7px;
    margin: 0;
    letter-spacing: 1px;
  }
  #subtitle {
    font-size: 22px;
    margin: 10px 0 15px;
  }
  #noteText {
    font-size: 19px;
    min-height: 0;
  }
  .piece-nav {
    font-size: 9px;
    margin-top: 15px;
  }
  .piece-nav button {
    font-size: 9px;
  }
  .close {
    right: 10px;
    top: 10px;
    width: 44px;
    height: 44px;
  }
  #book {
    max-width: calc(100vw - 16px);
    height: 94dvh;
    max-height: 94dvh;
  }
  #book[open] {
    display: block;
  }
  #book aside {
    padding: 20px 20px 12px;
    border-right: 0;
    border-bottom: 1px solid #ae8844;
  }
  #book aside h2 {
    font-size: 22px;
    line-height: 1.2;
    margin: 8px 50px 14px 0;
  }
  #book aside h2 br {
    display: none;
  }
  #book aside em {
    font-size: 26px;
  }
  #book aside > .eyebrow {
    font-size: 7px;
    margin: 0;
  }
  #book aside nav {
    flex-direction: row;
    overflow: auto;
    gap: 20px;
    scrollbar-width: thin;
  }
  #book aside nav button {
    white-space: nowrap;
    font-size: 8px;
    min-height: 44px;
  }
  #book aside nav span {
    font-size: 10px;
    margin-left: 7px;
  }
  .book-date {
    display: none;
  }
  #bookPage {
    padding: 25px 23px 35px;
    overflow: visible;
  }
  #bookPage h3 {
    font-size: 29px;
  }
  #bookPage p {
    font-size: 19px;
  }
  .song strong {
    font-size: 21px;
  }
  .programme h4 {
    font-size: 16px;
  }
  .intermission {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
}
@media (max-width: 370px) {
  .brand {
    font-size: 16px;
  }
  .brand i {
    font-size: 25px;
  }
  .brand small {
    font-size: 4.5px;
    letter-spacing: 2px;
  }
  header {
    padding: 0 10px;
  }
  header nav button {
    min-width: 44px;
    padding: 4px;
  }
  .game-title h1 {
    font-size: 25px;
  }
  .region-symbol {
    display: none;
  }
  .region-jump {
    font-size: 10px;
  }
  .atlas {
    min-height: 400px;
  }
}
@media (max-height: 650px) and (min-width: 651px) {
  .atlas {
    height: 520px;
  }
  .game-title h1 {
    font-size: 32px;
  }
  .game-title {
    top: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Shared vector icon styling. Icons inherit the existing antique gold palette. */
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ui-icon { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.18em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; pointer-events: none; }
header nav button > .ui-icon { width: 18px; height: 18px; }
.region-symbol .ui-icon, .quest-glyph .ui-icon, #symbol .ui-icon { width: 1em; height: 1em; vertical-align: middle; }
.close .ui-icon, .zoom button .ui-icon { width: 20px; height: 20px; }
#resetMap > .ui-icon { width: 18px; height: 18px; }
.dock-divider .ui-icon { width: 7px; height: 7px; }
.marker.visited .pin::after { width: 8px; height: 8px; border: 1px solid currentColor; transform: rotate(45deg); background: #60441f; }
