:root {
  --ink: #283431;
  --ink-soft: rgba(40, 52, 49, 0.72);
  --paper: #e8dfc9;
  --paper-quiet: rgba(232, 223, 201, 0.9);
  --paper-thin: rgba(232, 223, 201, 0.72);
  --mist: #aebbb0;
  --peach: #dfb985;
  --indigo: #465c70;
  --reed: #586b52;
  --warning: #8d4638;
  --shadow: rgba(24, 31, 29, 0.28);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #9fb1a7;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #e7bd78;
  outline-offset: 3px;
}

kbd {
  display: inline-block;
  min-width: 1.45em;
  padding: 0.05em 0.34em 0.12em;
  border: 1px solid rgba(40, 52, 49, 0.34);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: rgba(248, 242, 222, 0.7);
  font-family: inherit;
  font-size: 0.76em;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.hud {
  position: fixed;
  z-index: 12;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  color: #24312e;
  text-shadow: 0 1px 0 rgba(238, 232, 209, 0.45);
}

.hud__identity {
  min-width: 128px;
  padding: 8px 11px 9px;
  background: rgba(232, 223, 201, 0.58);
  border: 1px solid rgba(40, 52, 49, 0.22);
  box-shadow: 0 4px 16px rgba(30, 39, 36, 0.11);
}

.hud__identity strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.055em;
}

.hud__identity span {
  display: block;
  margin-top: 1px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.hud__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  margin: 0;
  max-width: min(720px, calc(100vw - 190px));
}

.hud__facts div {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-height: 28px;
  padding: 5px 8px 6px;
  background: rgba(232, 223, 201, 0.52);
  border: 1px solid rgba(40, 52, 49, 0.17);
}

.hud__facts dt {
  margin: 0;
  font-size: 0.68rem;
  color: rgba(40, 52, 49, 0.61);
}

.hud__facts dd {
  margin: 0;
  max-width: 190px;
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-card {
  position: fixed;
  z-index: 11;
  top: clamp(86px, 17vh, 150px);
  left: clamp(158px, 15vw, 230px);
  max-width: 430px;
  padding: 19px 24px 22px;
  border: 1px solid rgba(40, 52, 49, 0.26);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 7px),
    rgba(232, 223, 201, 0.68);
  box-shadow: 0 12px 38px rgba(28, 39, 36, 0.15);
  pointer-events: none;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.title-card.is-quiet {
  opacity: 0;
  transform: translateY(-8px);
}

.title-card__kicker,
.book-panel__eyebrow,
.catch-card__eyebrow,
.day-card__eyebrow {
  margin: 0 0 5px;
  color: rgba(40, 52, 49, 0.64);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.title-card h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.95;
}

.title-card p:last-child {
  margin: 9px 0 0;
  color: rgba(40, 52, 49, 0.74);
  font-size: 1.05rem;
  letter-spacing: 0.035em;
}

.action-cluster {
  position: fixed;
  z-index: 16;
  top: 104px;
  left: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(54px, 62px));
  gap: 5px;
  width: max-content;
}

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 43px;
  padding: 5px 6px;
  border: 1px solid rgba(40, 52, 49, 0.32);
  border-radius: 2px;
  background: rgba(232, 223, 201, 0.72);
  box-shadow: 0 3px 10px rgba(25, 35, 32, 0.12);
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.action:hover,
.action.is-active {
  background: rgba(239, 226, 195, 0.92);
  border-color: rgba(40, 52, 49, 0.55);
}

.action:active {
  transform: translateY(1px);
}

.action span {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action--wide {
  grid-column: span 2;
}

.action[disabled] {
  cursor: default;
  opacity: 0.46;
}

.context-card {
  position: fixed;
  z-index: 15;
  left: 14px;
  bottom: 14px;
  width: min(410px, calc(100vw - 450px));
  min-width: 300px;
  padding: 12px 14px 13px;
  border: 1px solid rgba(40, 52, 49, 0.29);
  background: rgba(232, 223, 201, 0.76);
  box-shadow: 0 9px 30px rgba(25, 35, 32, 0.16);
}

.context-card h2 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 600;
}

.context-card p {
  margin: 0;
  color: rgba(40, 52, 49, 0.77);
  font-size: 0.91rem;
  line-height: 1.35;
}

.tension-board {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(40, 52, 49, 0.19);
}

.meter-row {
  display: grid;
  grid-template-columns: 38px 1fr 52px;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
  font-size: 0.78rem;
}

.meter-row output {
  font-size: 0.74rem;
  text-align: right;
}

.meter {
  position: relative;
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(40, 52, 49, 0.35);
  background: rgba(248, 242, 222, 0.42);
}

.meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--reed);
  transition: width 90ms linear, background-color 140ms ease;
}

.meter--tension i { background: #a77652; }
.meter--tension.is-hot i { background: #9f4d3f; }
.meter--stamina i { background: #687d55; }
.meter--drag i { background: #607386; }

#line-limit-mark {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: rgba(93, 47, 39, 0.75);
}

.bite-meter {
  height: 5px;
  margin-top: 9px;
  background: rgba(40, 52, 49, 0.16);
}

.bite-meter i {
  display: block;
  width: 0%;
  height: 100%;
  background: #dfb985;
}

.toast-stack {
  position: fixed;
  z-index: 48;
  top: 62px;
  left: 50%;
  display: grid;
  gap: 7px;
  width: min(430px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 9px 13px 10px;
  border: 1px solid rgba(40, 52, 49, 0.3);
  background: rgba(236, 226, 199, 0.94);
  box-shadow: 0 8px 22px rgba(24, 32, 30, 0.18);
  font-size: 0.92rem;
  line-height: 1.3;
  animation: toast-in 220ms ease-out;
}

.toast--warning {
  border-color: rgba(116, 55, 43, 0.48);
  color: #673227;
}

.toast--reward {
  border-color: rgba(119, 94, 47, 0.48);
  background: rgba(235, 215, 161, 0.95);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: none; }
}

.camera-frame {
  position: fixed;
  z-index: 32;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(30, 38, 36, 0.12);
  pointer-events: none;
}

.camera-frame__box {
  position: relative;
  width: min(760px, 88vw);
  height: min(440px, 68vh);
  border: 1px solid rgba(239, 230, 202, 0.72);
  box-shadow: inset 0 0 0 1px rgba(37, 45, 42, 0.32), 0 0 0 999px rgba(32, 40, 38, 0.08);
}

.camera-frame__box span {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(239, 230, 202, 0.95);
}

.camera-frame__box span:nth-child(1) { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.camera-frame__box span:nth-child(2) { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.camera-frame__box span:nth-child(3) { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.camera-frame__box span:nth-child(4) { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.camera-frame__box p {
  position: absolute;
  left: 50%;
  bottom: -42px;
  width: max-content;
  max-width: calc(100vw - 40px);
  margin: 0;
  padding: 7px 11px;
  transform: translateX(-50%);
  background: rgba(232, 223, 201, 0.84);
  border: 1px solid rgba(40, 52, 49, 0.27);
  font-size: 0.86rem;
  white-space: normal;
  text-align: center;
}

.panel-root {
  position: fixed;
  z-index: 38;
  inset: 0;
}

.panel-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: rgba(32, 41, 39, 0.18);
  cursor: default;
}

.book-panel {
  position: absolute;
  top: 18px;
  bottom: 92px;
  left: clamp(14px, 5vw, 84px);
  display: flex;
  flex-direction: column;
  width: min(920px, calc(100vw - 430px));
  min-width: 320px;
  overflow: hidden;
  border: 1px solid rgba(40, 52, 49, 0.37);
  background:
    linear-gradient(90deg, rgba(96, 79, 50, 0.035) 0 1px, transparent 1px 9px),
    var(--paper);
  box-shadow: 0 20px 60px rgba(20, 29, 27, 0.31);
}

.book-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px 11px;
  border-bottom: 1px solid rgba(40, 52, 49, 0.19);
}

.book-panel__header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.025em;
}

.close-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(40, 52, 49, 0.28);
  background: rgba(248, 242, 222, 0.42);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.book-panel__body {
  flex: 1;
  min-height: 0;
  padding: 18px;
  overflow: auto;
  scrollbar-color: rgba(40, 52, 49, 0.32) transparent;
}

.book-panel__footer {
  min-height: 38px;
  padding: 8px 15px;
  border-top: 1px solid rgba(40, 52, 49, 0.17);
  color: rgba(40, 52, 49, 0.68);
  font-size: 0.84rem;
}

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100%;
  border: 1px solid rgba(40, 52, 49, 0.14);
  background: rgba(248, 242, 222, 0.27);
}

.spread > section {
  min-width: 0;
  padding: 16px;
}

.spread > section + section {
  border-left: 1px solid rgba(40, 52, 49, 0.16);
  box-shadow: inset 8px 0 12px -10px rgba(44, 48, 39, 0.28);
}

.book-panel__body.turn-next .spread { animation: page-next 260ms ease; }
.book-panel__body.turn-prev .spread { animation: page-prev 260ms ease; }

@keyframes page-next {
  from { opacity: 0.35; transform: perspective(900px) rotateY(4deg) translateX(7px); }
  to { opacity: 1; transform: none; }
}

@keyframes page-prev {
  from { opacity: 0.35; transform: perspective(900px) rotateY(-4deg) translateX(-7px); }
  to { opacity: 1; transform: none; }
}

.option-list,
.shop-list,
.quest-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.option-button,
.shop-button,
.map-node,
.text-button {
  border: 1px solid rgba(40, 52, 49, 0.28);
  background: rgba(248, 242, 222, 0.42);
  cursor: pointer;
  text-align: left;
  transition: background 130ms ease, border-color 130ms ease;
}

.option-button:hover,
.option-button.is-selected,
.shop-button:hover,
.shop-button.is-selected,
.map-node:hover,
.map-node.is-selected,
.text-button:hover {
  border-color: rgba(40, 52, 49, 0.58);
  background: rgba(238, 226, 193, 0.82);
}

.option-button[disabled],
.shop-button[disabled],
.map-node[disabled] {
  cursor: default;
  opacity: 0.5;
}

.option-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  width: 100%;
  padding: 9px 10px;
}

.option-button strong,
.shop-button strong {
  font-weight: 600;
}

.option-button small,
.shop-button small {
  grid-column: 1 / -1;
  color: rgba(40, 52, 49, 0.66);
  line-height: 1.32;
}

.option-button.is-equipped {
  border-left: 4px solid #7b744d;
  background: rgba(231, 218, 177, 0.82);
}

.tackle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tackle-grid section h3,
.shop-section h3 {
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(40, 52, 49, 0.16);
  font-size: 1rem;
  font-weight: 600;
}

.depth-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(40, 52, 49, 0.19);
  background: rgba(248, 242, 222, 0.3);
}

.depth-control button,
.primary,
.text-button {
  padding: 7px 10px;
}

.primary {
  border: 1px solid rgba(40, 52, 49, 0.55);
  background: #d9c390;
  cursor: pointer;
  font-weight: 600;
}

.shop-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  width: 100%;
  padding: 9px 10px;
}

.shop-note,
.panel-note {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-left: 3px solid #8d7650;
  background: rgba(217, 195, 144, 0.25);
  line-height: 1.35;
}

.map-wrap {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(40, 52, 49, 0.18);
  background:
    radial-gradient(ellipse at 45% 52%, rgba(98, 126, 118, 0.38) 0 34%, transparent 35%),
    linear-gradient(145deg, rgba(93, 113, 99, 0.17), rgba(207, 202, 169, 0.2)),
    rgba(232, 223, 201, 0.38);
}

.map-wrap::before {
  content: "";
  position: absolute;
  inset: 11% 8% 15% 14%;
  border: 1px solid rgba(70, 92, 92, 0.28);
  border-radius: 48% 52% 45% 55% / 54% 46% 58% 42%;
  background: rgba(105, 134, 127, 0.24);
  transform: rotate(-8deg);
}

.map-node {
  position: absolute;
  width: 132px;
  min-height: 64px;
  padding: 7px 8px;
  transform: translate(-50%, -50%);
  background: rgba(232, 223, 201, 0.86);
  box-shadow: 0 4px 15px rgba(31, 42, 39, 0.12);
}

.map-node strong,
.map-node small {
  display: block;
}

.map-node small {
  margin-top: 3px;
  color: rgba(40, 52, 49, 0.66);
  font-size: 0.74rem;
  line-height: 1.2;
}

.map-node.is-current {
  border-color: #806f3f;
  background: rgba(228, 205, 148, 0.92);
}

.guide-entry {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 100%;
}

.guide-entry h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
}

.guide-entry .latin {
  margin: 2px 0 10px;
  color: rgba(40, 52, 49, 0.62);
  font-style: italic;
}

.fish-print {
  width: 100%;
  max-width: 340px;
  margin: 8px auto 12px;
  display: block;
}


.guide-entry p {
  font-size: 0.93rem;
  line-height: 1.34;
}

.guide-entry .fish-print {
  margin-block: 4px 8px;
}

.guide-facts {
  margin: 9px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 0.86rem;
}

.guide-facts div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dotted rgba(40, 52, 49, 0.18);
}

.guide-facts dt { color: rgba(40, 52, 49, 0.62); }
.guide-facts dd { margin: 0; text-align: right; }

.journal-page h3,
.album-grid h3 {
  margin-top: 0;
}

.journal-list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.journal-list li {
  margin: 5px 0;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  margin: 0;
  padding: 7px 7px 9px;
  border: 1px solid rgba(40, 52, 49, 0.22);
  background: rgba(248, 242, 222, 0.52);
  box-shadow: 0 5px 14px rgba(35, 42, 37, 0.1);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #61756f;
}

.photo-card figcaption {
  margin-top: 6px;
  color: rgba(40, 52, 49, 0.72);
  font-size: 0.82rem;
  line-height: 1.28;
}

.controls-table {
  width: 100%;
  border-collapse: collapse;
}

.controls-table th,
.controls-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(40, 52, 49, 0.14);
  text-align: left;
  vertical-align: top;
}

.controls-table th {
  width: 34%;
  font-weight: 600;
}

.catch-card,
.day-card {
  position: fixed;
  z-index: 52;
  left: clamp(14px, 7vw, 110px);
  bottom: clamp(92px, 15vh, 140px);
  width: min(690px, calc(100vw - 440px));
  min-width: 320px;
  border: 1px solid rgba(40, 52, 49, 0.39);
  background: var(--paper-quiet);
  box-shadow: 0 20px 60px rgba(20, 29, 27, 0.32);
}

.catch-card {
  display: grid;
  grid-template-columns: 230px 1fr;
}

.catch-card__art {
  display: grid;
  place-items: center;
  padding: 18px;
  border-right: 1px solid rgba(40, 52, 49, 0.16);
  background: rgba(213, 205, 177, 0.32);
}

.catch-card__copy {
  padding: 18px 20px 19px;
}

.catch-card h2,
.day-card h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
}

.catch-card__weight {
  margin: 4px 0 8px;
  font-size: 1.25rem;
}

.catch-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.badge {
  padding: 3px 7px 4px;
  border: 1px solid rgba(89, 80, 45, 0.38);
  background: rgba(224, 199, 132, 0.45);
  font-size: 0.78rem;
}

.catch-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.catch-card__actions button {
  padding: 8px 10px;
  border: 1px solid rgba(40, 52, 49, 0.36);
  background: rgba(248, 242, 222, 0.5);
  cursor: pointer;
}

.catch-card__actions button.primary {
  background: #d9c390;
}

.day-card {
  padding: 19px 22px 20px;
}

.day-card__summary {
  margin: 10px 0 16px;
  line-height: 1.45;
}

.day-card__summary ul {
  margin: 8px 0;
  padding-left: 20px;
}

.noscript {
  position: fixed;
  z-index: 100;
  inset: 20px;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.2rem;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1100px) {
  .hud__facts dd { max-width: 125px; }
  .context-card {
    width: min(370px, calc(100vw - 430px));
  }
}

@media (max-width: 800px) {
  .hud {
    display: block;
    right: 8px;
    left: 8px;
  }
  .hud__identity {
    display: inline-block;
    padding: 6px 9px;
  }
  .hud__facts {
    justify-content: flex-start;
    max-width: calc(100vw - 16px);
    margin-top: 5px;
  }
  .hud__facts div {
    min-height: 24px;
    padding: 4px 6px;
  }
  .hud__facts dt { font-size: 0.62rem; }
  .hud__facts dd { max-width: 100px; font-size: 0.73rem; }
  .title-card {
    top: 112px;
    left: 16px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 14px 17px 16px;
  }
  .action-cluster {
    top: auto;
    bottom: 86px;
    left: 8px;
    grid-template-columns: repeat(4, minmax(48px, 1fr));
    width: min(390px, calc(100vw - 66px));
    gap: 4px;
  }
  .action {
    min-height: 40px;
    padding: 4px 3px;
  }
  .action span { font-size: 0.67rem; }
  .action--wide { grid-column: span 2; }
  .context-card {
    left: 8px;
    bottom: 8px;
    width: calc(100vw - 66px);
    min-width: 0;
    padding: 9px 11px 10px;
  }
  .context-card h2 { font-size: 0.92rem; }
  .context-card p { font-size: 0.79rem; }
  .book-panel {
    inset: 8px 8px 48px 8px;
    width: auto;
    min-width: 0;
  }
  .spread,
  .tackle-grid,
  .album-grid {
    grid-template-columns: 1fr;
  }
  .spread > section + section {
    border-left: 0;
    border-top: 1px solid rgba(40, 52, 49, 0.16);
    box-shadow: inset 0 8px 12px -10px rgba(44, 48, 39, 0.28);
  }
  .catch-card,
  .day-card {
    left: 8px;
    bottom: 52px;
    width: calc(100vw - 58px);
    min-width: 0;
  }
  .catch-card {
    grid-template-columns: 1fr;
  }
  .catch-card__art {
    border-right: 0;
    border-bottom: 1px solid rgba(40, 52, 49, 0.16);
    padding: 8px;
  }
  .catch-card__art svg {
    max-height: 100px;
  }
  .camera-frame {
    padding: 10px;
  }
  .camera-frame__box {
    width: calc(100vw - 20px);
    height: 58vh;
  }
}

@media (max-width: 460px) {
  .hud__facts div:nth-child(3) { display: none; }
  .hud__facts div:nth-child(4) { display: none; }
  .title-card h1 { font-size: 2.7rem; }
  .action-cluster {
    grid-template-columns: repeat(3, minmax(48px, 1fr));
  }
  .meter-row {
    grid-template-columns: 32px 1fr 43px;
    gap: 5px;
  }
  .book-panel__body { padding: 10px; }
  .map-node {
    width: 108px;
    min-height: 58px;
    font-size: 0.82rem;
  }
}

@media (pointer: coarse) {
  .action {
    min-height: 48px;
  }
  #scene {
    cursor: default;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
