:root {
  --ivory: #fffaf0;
  --cream: #f8efd9;
  --paper: #fffdf7;
  --blush: #edc8c1;
  --rose: #b97872;
  --peach: #f3c8a8;
  --butter: #f4dfa0;
  --sage: #aebca3;
  --ink: #362d2a;
  --ink-soft: #6c5d57;
  --line: rgba(90, 63, 53, 0.16);
  --line-strong: rgba(90, 63, 53, 0.28);
  --success: #5e7661;
  --warning: #a16e4b;
  --shadow: 0 24px 70px rgba(90, 62, 48, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
output {
  font: inherit;
}

button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid rgba(185, 120, 114, 0.5);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-atmosphere,
.balloon-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-atmosphere {
  z-index: -3;
  background:
    radial-gradient(circle at 16% 2%, rgba(244, 223, 160, 0.48), transparent 28rem),
    radial-gradient(circle at 96% 60%, rgba(237, 200, 193, 0.34), transparent 32rem),
    linear-gradient(155deg, #fffdf8, var(--ivory) 54%, #fbf0e5);
}

.paper-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.contour {
  position: absolute;
  width: 520px;
  aspect-ratio: 1.4;
  border: 1px solid rgba(168, 128, 111, 0.1);
  border-radius: 48% 52% 56% 44% / 55% 40% 60% 45%;
}

.contour::before,
.contour::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: inherit;
  border-radius: 42% 58% 48% 52% / 61% 40% 60% 39%;
}

.contour::after {
  inset: 48px;
  border-radius: 56% 44% 62% 38% / 40% 62% 38% 60%;
}

.contour-one { top: 14%; left: -350px; transform: rotate(35deg); }
.contour-two { top: 48%; right: -390px; transform: rotate(-28deg) scale(1.25); }
.contour-three { bottom: -230px; left: 20%; transform: rotate(11deg) scale(1.5); }

.balloon-field {
  z-index: -1;
  transition: opacity 0.8s ease;
}

body:not([data-stage="intro"]):not([data-stage="finale"]) .balloon-field {
  opacity: 0.38;
}

.balloon {
  --balloon-color: rgba(237, 200, 193, 0.86);
  --drift: 12px;
  position: absolute;
  display: block;
  width: 47px;
  height: 61px;
  border-radius: 52% 48% 48% 52% / 45% 45% 55% 55%;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.78) 0 5%, transparent 16%),
    var(--balloon-color);
  box-shadow: inset -9px -8px 18px rgba(122, 82, 70, 0.07), 0 12px 30px rgba(93, 65, 55, 0.08);
  animation: balloon-float 7s ease-in-out infinite alternate;
}

.balloon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 8px;
  height: 9px;
  background: var(--balloon-color);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.balloon::after {
  content: "";
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  width: 1px;
  height: 84px;
  background: linear-gradient(rgba(97, 74, 66, 0.35), transparent);
  transform-origin: top;
  animation: string-sway 5s ease-in-out infinite alternate;
}

.balloon i {
  position: absolute;
  left: 50%;
  top: 82px;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(97, 74, 66, 0.22);
  border-radius: 50%;
  transform: translateX(-50%);
}

.balloon-one { top: 8%; left: -14px; transform: scale(0.82) rotate(-8deg); animation-delay: -2s; }
.balloon-two { --balloon-color: rgba(244, 223, 160, 0.82); top: 18%; right: 5%; transform: scale(0.62) rotate(8deg); animation-duration: 8.6s; }
.balloon-three { --balloon-color: rgba(243, 200, 168, 0.76); top: 63%; left: 7%; transform: scale(0.52) rotate(5deg); animation-delay: -4s; }
.balloon-four { --balloon-color: rgba(248, 239, 217, 0.94); top: 77%; right: -4px; transform: scale(0.92) rotate(-5deg); animation-duration: 9.3s; }
.balloon-five { display: none; --balloon-color: rgba(234, 194, 187, 0.72); top: 42%; right: 16%; }
.balloon-six { display: none; --balloon-color: rgba(244, 223, 160, 0.78); top: 88%; left: 24%; }
.balloon-seven { display: none; --balloon-color: rgba(243, 200, 168, 0.7); top: 4%; left: 31%; }

@keyframes balloon-float {
  0% { translate: 0 -6px; rotate: -1deg; }
  50% { translate: var(--drift) 8px; }
  100% { translate: -8px -13px; rotate: 2deg; }
}

@keyframes string-sway {
  to { transform: rotate(4deg); }
}

.screen {
  position: relative;
  width: 100%;
  min-height: 100svh;
  padding: 24px 20px 64px;
}

.screen.is-entering {
  animation: screen-enter 0.65s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes screen-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-screen {
  display: grid;
  place-items: center;
  min-height: 100svh;
  isolation: isolate;
}

.intro-copy {
  width: min(100%, 580px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--rose);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.intro-copy h1,
.chapter-heading h2,
.finale-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.intro-copy h1 {
  font-size: clamp(3.3rem, 16vw, 6.8rem);
}

h1 em,
h2 em,
.finale-copy h2 em {
  color: var(--rose);
  font-weight: 400;
}

.intro-lede {
  margin: 26px auto 30px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 4.6vw, 1.32rem);
  line-height: 1.5;
}

.button {
  min-height: 56px;
  padding: 15px 20px;
  border: 0;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:active { transform: scale(0.98); }
.button:disabled { cursor: default; opacity: 0.58; }

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #fffaf5;
  background: var(--ink);
  box-shadow: 0 15px 35px rgba(54, 45, 42, 0.2);
}

.button-primary:hover { box-shadow: 0 18px 42px rgba(54, 45, 42, 0.26); }

.button-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -4px -8px -4px 0;
  color: var(--ink);
  background: var(--butter);
  border-radius: 50%;
}

.button-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
}

.tiny-note {
  margin: 16px 0 0;
  color: rgba(54, 45, 42, 0.52);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-stamp {
  position: absolute;
  top: 30px;
  left: 24px;
  display: grid;
  width: 80px;
  aspect-ratio: 1;
  place-content: center;
  color: var(--rose);
  text-align: center;
  border: 1px solid rgba(185, 120, 114, 0.4);
  border-radius: 50%;
  rotate: -8deg;
}

.intro-stamp::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(185, 120, 114, 0.25);
  border-radius: inherit;
}

.intro-stamp span { font-size: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; }
.intro-stamp strong { font-family: var(--serif); font-size: 0.9rem; }

.intro-route {
  position: absolute;
  right: 26px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 4px;
  rotate: -8deg;
}

.route-start { width: 7px; height: 7px; background: var(--rose); border-radius: 50%; }
.route-dash { width: 72px; border-top: 1px dashed rgba(54, 45, 42, 0.38); }
.route-summit { color: var(--rose); font-size: 1.5rem; }

.quest-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: max(13px, env(safe-area-inset-top)) 18px 11px;
  background: rgba(255, 250, 240, 0.82);
  border-bottom: 1px solid rgba(90, 63, 53, 0.09);
  backdrop-filter: blur(15px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto 12px;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-compass {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--rose);
  font-family: var(--serif);
  font-size: 0.7rem;
  border: 1px solid rgba(185, 120, 114, 0.5);
  border-radius: 50%;
}

.chapter-progress {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.chapter-progress ol {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-progress button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: rgba(54, 45, 42, 0.44);
  background: var(--ivory);
  border: 1px solid rgba(90, 63, 53, 0.17);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 750;
  cursor: default;
  transition: 0.3s ease;
}

.chapter-progress button.is-current {
  color: var(--ink);
  background: var(--butter);
  border-color: rgba(162, 124, 67, 0.25);
  box-shadow: 0 0 0 5px rgba(244, 223, 160, 0.24);
}

.chapter-progress button.is-complete {
  color: #fff;
  background: var(--success);
  border-color: var(--success);
}

.chapter-progress button.can-visit { cursor: pointer; }

.trail-line {
  position: absolute;
  top: 21px;
  right: 22px;
  left: 22px;
  height: 1px;
  overflow: hidden;
  background-image: linear-gradient(to right, rgba(90, 63, 53, 0.25) 50%, transparent 0%);
  background-position: top;
  background-size: 8px 1px;
}

.trail-line span {
  display: block;
  width: 0;
  height: 2px;
  background: var(--success);
  transition: width 0.5s ease;
}

.chapter-screen {
  padding-top: 44px;
}

.chapter-shell {
  width: min(100%, 760px);
  margin: 0 auto;
}

.chapter-heading {
  margin-bottom: 30px;
}

.chapter-heading h2 {
  max-width: 650px;
  font-size: clamp(2.65rem, 12vw, 5.5rem);
}

.chapter-heading > p:last-child:not(.eyebrow),
.chapter-heading > p:nth-last-child(2):not(.eyebrow) {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.chapter-heading .dev-note {
  display: inline-block;
  margin-top: 13px !important;
  padding: 7px 10px;
  color: rgba(54, 45, 42, 0.58) !important;
  background: rgba(244, 223, 160, 0.3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem !important;
  border-left: 2px solid var(--butter);
}

.dev-note span { color: var(--rose); }

.puzzle-card,
.camera-shell,
.map-card,
.recorder-card,
.ascent-card,
.uv-note {
  position: relative;
  overflow: hidden;
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.puzzle-card,
.map-card,
.recorder-card {
  padding: 18px;
  border-radius: 28px 28px 12px 28px;
}

.card-meta,
.map-topline,
.recorder-header,
.camera-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(54, 45, 42, 0.56);
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-pill i,
.recorder-header i {
  width: 7px;
  height: 7px;
  background: var(--rose);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(185, 120, 114, 0.12);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse { 50% { opacity: 0.45; } }

.bug-board {
  position: relative;
  height: 280px;
  margin: 18px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(244, 223, 160, 0.2), transparent 36%),
    linear-gradient(150deg, rgba(248, 239, 217, 0.42), rgba(237, 200, 193, 0.13));
  border: 1px solid rgba(90, 63, 53, 0.09);
  border-radius: 20px;
}

.bug-board::before {
  content: "NAV GRID / 07";
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: rgba(54, 45, 42, 0.28);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
}

.trail {
  position: absolute;
  height: 1px;
  border-top: 2px dashed rgba(94, 118, 97, 0.38);
  transform-origin: left center;
}

.trail-a { top: 32%; left: 8%; width: 72%; rotate: 13deg; }
.trail-b { top: 68%; left: 10%; width: 75%; rotate: -17deg; }
.trail-c { top: 12%; left: 52%; width: 72%; rotate: 91deg; }

.trail-node {
  position: absolute;
  width: 11px;
  height: 11px;
  background: var(--paper);
  border: 2px solid var(--sage);
  border-radius: 50%;
}

.node-a { top: 28%; left: 28%; }
.node-b { top: 65%; left: 36%; }
.node-c { top: 43%; right: 20%; }

.trap-zone {
  position: absolute;
  right: 10%;
  bottom: 18%;
  display: grid;
  width: 74px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--rose);
  border: 1px dashed rgba(185, 120, 114, 0.48);
  border-radius: 50%;
}

.trap-zone i {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(185, 120, 114, 0.52);
  border-radius: 50% 50% 44% 44%;
}

.trap-zone small { position: absolute; bottom: 7px; font-size: 0.46rem; letter-spacing: 0.12em; }

.route-bug {
  position: absolute;
  z-index: 3;
  left: 12%;
  top: 20%;
  width: 30px;
  height: 25px;
  background: var(--rose);
  border: 3px solid #7f514e;
  border-radius: 50%;
  box-shadow: 0 7px 15px rgba(85, 49, 47, 0.2);
  transition: left 0.7s ease-in-out, top 0.7s ease-in-out, transform 0.35s ease;
}

.route-bug::before,
.route-bug::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 13px;
  height: 8px;
  border-top: 2px solid #7f514e;
}

.route-bug::before { left: -10px; rotate: -18deg; }
.route-bug::after { right: -10px; rotate: 18deg; }

.route-bug i,
.route-bug i::before {
  position: absolute;
  content: "";
  top: -7px;
  left: 8px;
  width: 2px;
  height: 8px;
  background: #7f514e;
  rotate: -22deg;
}

.route-bug i::before { top: 0; left: 8px; rotate: 44deg; }
.route-bug.is-caught { transform: scale(0.65) rotate(25deg); }

.board-gate {
  position: absolute;
  z-index: 2;
  width: 32px;
  height: 5px;
  background: rgba(54, 45, 42, 0.14);
  border-radius: 4px;
  transition: 0.3s ease;
}

.gate-display-a { top: 37%; left: 39%; rotate: 14deg; }
.gate-display-b { top: 53%; left: 24%; rotate: -18deg; }
.gate-display-c { top: 54%; right: 25%; rotate: 91deg; }
.board-gate.is-closed { height: 9px; background: var(--ink); box-shadow: 0 0 0 3px rgba(244, 223, 160, 0.75); }

.puzzle-instruction {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.gate-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gate-button {
  display: flex;
  min-height: 52px;
  padding: 10px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.73rem;
  font-weight: 750;
  cursor: pointer;
  transition: 0.25s ease;
}

.gate-button i {
  width: 8px;
  height: 8px;
  background: var(--blush);
  border-radius: 50%;
}

.gate-button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.gate-button[aria-pressed="true"] i { background: var(--sage); box-shadow: 0 0 0 3px rgba(174, 188, 163, 0.18); }

.success-panel {
  margin-top: 22px;
  padding: 20px;
  background: rgba(174, 188, 163, 0.14);
  border: 1px solid rgba(94, 118, 97, 0.22);
  border-radius: 12px 28px 28px 28px;
  animation: success-enter 0.55s ease both;
}

.success-panel > div { display: inline; }
.success-panel strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.success-panel p { margin: 3px 0 0 46px; color: var(--ink-soft); font-size: 0.82rem; }

.success-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  place-items: center;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
}

@keyframes success-enter {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
}

.hint-toggle {
  display: block;
  min-height: 44px;
  margin: 18px auto 0;
  padding: 10px 16px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-bottom: 1px dotted rgba(54, 45, 42, 0.35);
  font-size: 0.75rem;
  cursor: pointer;
}

.hint-text {
  max-width: 520px;
  margin: 8px auto 0;
  padding: 12px 14px;
  color: var(--ink-soft);
  background: rgba(244, 223, 160, 0.2);
  border-radius: 12px;
  font-size: 0.76rem;
  text-align: center;
}

/* Camera */
.camera-shell {
  padding: 12px;
  color: #f9f4e9;
  background: #292825;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 28px 28px 14px 28px;
}

.camera-topbar { padding: 4px 4px 12px; color: rgba(255, 250, 242, 0.64); }

.camera-viewfinder {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #aaa090;
  border-radius: 17px 17px 6px 17px;
  transition: filter 0.6s ease, opacity 0.6s ease;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(#d8b598, #d8c9a4 55%, #6f7663);
  object-fit: cover;
  object-position: center 43%;
}

.photo-sky { position: absolute; inset: 0 0 44%; background: linear-gradient(#cbb6ac, #efc79b); }
.photo-sun { position: absolute; top: 18%; right: 23%; width: 52px; aspect-ratio: 1; background: #f3d48b; border-radius: 50%; box-shadow: 0 0 45px #f3d48b; }

.photo-mountain {
  position: absolute;
  bottom: 0;
  clip-path: polygon(0 100%, 24% 35%, 39% 60%, 58% 19%, 100% 100%);
}

.mountain-back { left: -8%; width: 116%; height: 65%; background: #7c7b6d; opacity: 0.72; }
.mountain-front { left: -10%; width: 124%; height: 48%; background: #4f5c4f; clip-path: polygon(0 100%, 17% 56%, 34% 75%, 52% 28%, 72% 74%, 87% 46%, 100% 100%); }
.photo-person { position: absolute; right: 32%; bottom: 18%; width: 11px; height: 38px; background: #3b3330; border-radius: 8px 8px 2px 2px; box-shadow: 0 -11px 0 -2px #3b3330; }

.camera-viewfinder > p {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 9px;
  left: 12px;
  margin: 0;
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(33, 30, 28, 0.55);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-align: center;
  border-radius: 6px;
  backdrop-filter: blur(5px);
}

.photo-noise {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: var(--noise, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.58'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  transition: opacity 0.55s ease;
}

.focus-box {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  transform: translate(-50%, -50%);
}

.focus-corner { position: absolute; z-index: 3; width: 25px; height: 25px; border-color: rgba(255,255,255,.72); }
.fc-one { top: 11px; left: 11px; border-top: 2px solid; border-left: 2px solid; }
.fc-two { top: 11px; right: 11px; border-top: 2px solid; border-right: 2px solid; }
.fc-three { bottom: 11px; left: 11px; border-bottom: 2px solid; border-left: 2px solid; }
.fc-four { right: 11px; bottom: 11px; border-right: 2px solid; border-bottom: 2px solid; }

.camera-controls { padding: 8px 3px 3px; }
.camera-controls fieldset { margin: 12px 0 0; padding: 0; border: 0; }
.camera-controls legend { display: flex; width: 100%; align-items: baseline; justify-content: space-between; color: #f8f1e4; font-size: 0.75rem; }
.camera-controls legend small { color: rgba(255, 250, 242, 0.46); font-size: 0.57rem; text-transform: uppercase; letter-spacing: 0.08em; }

.segment-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 7px; }
.segment-control button {
  min-height: 48px;
  color: rgba(255, 250, 242, 0.68);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 0.74rem;
  cursor: pointer;
}
.segment-control button.is-selected { color: #292825; background: var(--butter); border-color: var(--butter); font-weight: 750; }

.camera-shell[data-clarity="1"] .camera-viewfinder { filter: blur(3.5px) brightness(0.78) saturate(0.72); }
.camera-shell[data-clarity="2"] .camera-viewfinder { filter: blur(1.8px) brightness(0.92) saturate(0.86); }
.camera-shell[data-clarity="3"] .camera-viewfinder { filter: blur(0) brightness(1) saturate(1); }
.camera-shell.is-complete .focus-box { border-color: #dbe6b9; box-shadow: 0 0 0 2px rgba(219, 230, 185, 0.15); }

/* Topographic map */
.map-card { padding: 12px; }
.map-topline { padding: 5px 5px 12px; }
.topo-map {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: #f4eddc;
  border: 1px solid rgba(90, 63, 53, 0.09);
  border-radius: 18px 18px 7px 18px;
}

.topo-map::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: linear-gradient(rgba(101, 86, 71, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(101, 86, 71, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
}

.topo-ring {
  position: absolute;
  border: 1px solid rgba(131, 116, 90, 0.3);
  border-radius: 44% 56% 62% 38% / 58% 43% 57% 42%;
  rotate: var(--r, 0deg);
}

.topo-ring::before,
.topo-ring::after { content: ""; position: absolute; border: inherit; border-radius: 52% 48% 40% 60% / 48% 62% 38% 52%; }
.topo-ring::before { inset: 13px; }
.topo-ring::after { inset: 29px; }
.ring-one { width: 250px; height: 160px; top: -35px; left: -62px; --r: 12deg; }
.ring-two { width: 290px; height: 180px; top: 110px; right: -130px; --r: -28deg; }
.ring-three { width: 280px; height: 170px; bottom: -65px; left: -72px; --r: -13deg; }
.ring-four { width: 210px; height: 145px; bottom: 35px; right: -75px; --r: 18deg; }
.ring-five { width: 150px; height: 110px; top: 127px; left: 58px; --r: -32deg; }
.ring-six { width: 132px; height: 96px; top: -26px; right: 24px; --r: 20deg; }

.river {
  position: absolute;
  top: -10%;
  left: 48%;
  width: 16px;
  height: 125%;
  border-left: 3px solid rgba(112, 151, 158, 0.55);
  border-radius: 50%;
  transform: rotate(18deg);
}

.river i { position: absolute; top: 30%; left: -8px; width: 18px; height: 70px; border-left: 2px solid rgba(112,151,158,.32); border-radius: 50%; }

.planned-route {
  position: absolute;
  height: 3px;
  background-image: linear-gradient(90deg, var(--rose) 65%, transparent 65%);
  background-size: 12px 3px;
  transform-origin: left;
}
.route-one { top: 80%; left: 6%; width: 47%; rotate: -32deg; }
.route-two { top: 55%; left: 37%; width: 40%; rotate: 18deg; }
.route-three { top: 67%; left: 67%; width: 35%; rotate: -61deg; }
.route-four { top: 28%; left: 78%; width: 18%; rotate: -35deg; }

.map-label { position: absolute; color: rgba(54,45,42,.45); font-family: var(--serif); font-size: .6rem; font-style: italic; }
.label-a { bottom: 15%; left: 8%; } .label-b { top: 44%; left: 42%; } .label-c { top: 14%; right: 9%; }
.north-mark { position: absolute; top: 14px; left: 14px; color: var(--ink-soft); font-family: var(--serif); font-size: .65rem; text-align: center; }
.north-mark i { display: block; width: 1px; height: 26px; margin: 3px auto; background: var(--ink-soft); }

.issue-marker {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.91);
  border: 1px solid rgba(185, 120, 114, 0.45);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(89, 62, 46, 0.12);
  cursor: pointer;
  transition: 0.3s ease;
}
.issue-marker span { font-family: var(--serif); font-size: 1rem; }
.issue-marker small { position: absolute; top: -3px; right: -2px; display: grid; width: 20px; height: 20px; place-items: center; color: white; background: var(--rose); border-radius: 50%; font-size: .62rem; }
.issue-marker.is-found { color: white; background: var(--success); border-color: var(--success); transform: scale(.9); }
.issue-marker.is-found small { background: var(--ink); }
.issue-cliff { top: 51%; left: 30%; }
.issue-duplicate { top: 63%; right: 12%; }
.issue-bridge { top: 41%; left: 47%; }
.issue-deadend { top: 15%; right: 4%; }

.issue-log { min-height: 60px; padding: 15px 7px 3px; }
.issue-log p { margin: 0; color: var(--ink-soft); font-size: .75rem; }
.issue-log strong { color: var(--success); }

/* Field recorder */
.recorder-card { color: #ece8d8; background: #30342f; border-color: rgba(255,255,255,.1); }
.recorder-header { padding: 2px 2px 14px; color: rgba(241, 237, 222, .58); }
.recorder-header span:first-child { display: flex; align-items: center; gap: 8px; }
.recorder-header i { display: inline-block; background: #db8e7a; }

.spectrogram {
  --clarity: 0;
  position: relative;
  height: 190px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(244,223,160,.06) 1px, transparent 1px),
    linear-gradient(rgba(244,223,160,.05) 1px, transparent 1px),
    linear-gradient(180deg, #1d221e, #413d32);
  background-size: 34px 100%, 100% 32px, auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px 16px 5px 16px;
}

.spectrum-lines {
  position: absolute;
  inset: 0;
  opacity: calc(.9 - var(--clarity) * .13);
  background:
    repeating-linear-gradient(102deg, transparent 0 7px, rgba(237,200,193,.11) 9px 10px, transparent 12px 16px),
    repeating-radial-gradient(ellipse at 50% 90%, rgba(244,223,160,.18) 0 2px, transparent 4px 14px);
  filter: blur(calc((3 - var(--clarity)) * 1px));
  transition: .45s ease;
}

.signal-word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--butter);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.8rem, 10vw, 4rem);
  font-weight: 800;
  letter-spacing: .14em;
  opacity: calc(var(--clarity) / 8);
  filter: blur(calc((3 - var(--clarity)) * 2px));
  text-shadow: 0 0 24px rgba(244,223,160,.45);
  transition: .5s ease;
}
.spectrogram.is-clean .signal-word { opacity: 1; filter: blur(0); }
.frequency-scale { position: absolute; top: 8px; right: 8px; bottom: 8px; display: flex; flex-direction: column; justify-content: space-between; color: rgba(255,255,255,.3); font-size: .48rem; }

.waveform { display: flex; height: 62px; margin: 12px 2px; align-items: center; justify-content: space-between; gap: 3px; overflow: hidden; }
.waveform i { width: 3px; height: calc(10px + var(--wave, 15) * 1px); background: rgba(244,223,160,.58); border-radius: 4px; transform-origin: center; }
.waveform i:nth-child(3n+1) { --wave: 33; }.waveform i:nth-child(3n+2) { --wave: 11; }.waveform i:nth-child(4n) { --wave: 42; }.waveform i:nth-child(5n) { --wave: 24; }
.waveform.is-playing i { animation: waveform-play .55s ease-in-out infinite alternate; animation-delay: calc(var(--i, 1) * -80ms); }
@keyframes waveform-play { to { transform: scaleY(.3); opacity: .6; } }

.play-button {
  display: grid;
  grid-template-columns: 46px 1fr;
  min-height: 64px;
  width: 100%;
  padding: 8px 12px;
  color: #f1eddf;
  text-align: left;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  cursor: pointer;
}
.play-icon { grid-row: 1 / 3; display: grid; width: 40px; height: 40px; place-items: center; color: var(--ink); background: var(--butter); border-radius: 50%; font-size: .65rem; }
.play-label { align-self: end; font-size: .78rem; font-weight: 700; }
.play-button small { align-self: start; color: rgba(241,237,223,.4); font-size: .48rem; letter-spacing: .06em; }

.audio-controls { margin-top: 13px; border-top: 1px solid rgba(255,255,255,.08); }
.dial-control { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.dial-control > div:first-child { display: grid; }
.dial-control span { font-size: .74rem; font-weight: 650; }
.dial-control small { color: rgba(241,237,223,.39); font-size: .56rem; text-transform: uppercase; letter-spacing: .07em; }
.stepper { display: grid; grid-template-columns: 44px 42px 44px; align-items: center; color: var(--butter); background: rgba(0,0,0,.12); border: 1px solid rgba(255,255,255,.08); border-radius: 13px; }
.stepper button { min-height: 46px; color: #eee8d8; background: transparent; border: 0; font-size: 1.1rem; cursor: pointer; }
.stepper output { text-align: center; font-family: var(--serif); font-size: 1.05rem; }

/* Ascent */
.summit-screen::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, #f6d9b7, #fff5db 62%, var(--ivory));
  transition: opacity 2s ease;
}
.summit-screen.is-sunrise::before { opacity: .78; }

.ascent-card { height: 510px; background: #f4e6d1; border-radius: 32px 32px 12px 32px; }
.ascent-sky { position: absolute; inset: 0; background: linear-gradient(#e8d2c4, #f6dfb0 55%, #f8ebd2); transition: filter 1s ease; }
.ascent-sun { position: absolute; top: 24%; left: 50%; width: 74px; aspect-ratio: 1; background: #f4d892; border-radius: 50%; box-shadow: 0 0 60px rgba(244,216,146,.72); transform: translateX(-50%); }
.sunrise-glow { position: absolute; z-index: 3; inset: 0; opacity: 0; background: radial-gradient(circle at 50% 24%, rgba(255,245,210,.9), transparent 34%); pointer-events: none; transition: opacity 1.8s ease; }
.ascent-card.is-climbing .sunrise-glow { opacity: 1; }

.mountain-range { position: absolute; right: -12%; bottom: 0; left: -12%; clip-path: polygon(0 100%, 17% 69%, 33% 82%, 55% 24%, 72% 71%, 86% 55%, 100% 100%); }
.mountain-far { height: 66%; background: #bcae95; opacity: .72; }
.mountain-near { height: 49%; background: #6b7464; clip-path: polygon(0 100%, 16% 66%, 33% 81%, 48% 51%, 65% 78%, 83% 41%, 100% 100%); }

.ascent-route { position: absolute; z-index: 4; left: 16%; bottom: 16%; width: 65%; height: 40%; border-top: 2px dashed rgba(255,250,240,.8); border-radius: 62% 38% 0 0; rotate: -26deg; }
#climber-dot { position: absolute; top: -7px; left: 0; width: 14px; height: 14px; background: var(--rose); border: 3px solid var(--paper); border-radius: 50%; box-shadow: 0 5px 15px rgba(54,45,42,.25); transition: left 1.45s cubic-bezier(.25,.8,.35,1), top 1.45s ease; }
.ascent-card[data-step="1"] #climber-dot { left: 30%; top: -28px; }
.ascent-card[data-step="2"] #climber-dot { left: 61%; top: -49px; }
.ascent-card[data-step="3"] #climber-dot { left: 97%; top: -40px; }

.elevation-readout { position: absolute; z-index: 5; top: 21px; left: 21px; display: grid; padding: 15px 17px; background: rgba(255,253,247,.78); border: 1px solid rgba(90,63,53,.1); border-radius: 16px; backdrop-filter: blur(8px); }
.elevation-readout span { color: var(--rose); font-size: .52rem; font-weight: 750; letter-spacing: .13em; }
.elevation-readout strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.elevation-readout small { color: var(--ink-soft); font-size: .58rem; }
.ascent-button { position: absolute; z-index: 6; right: 16px; bottom: 17px; left: 16px; }

.summit-reveal { padding: 54px 20px 0; text-align: center; animation: summit-in .8s ease both; }
@keyframes summit-in { from { opacity: 0; transform: translateY(24px); } }
.summit-symbol { display: block; margin-bottom: 13px; color: var(--rose); font-size: 3rem; }
.summit-reveal h3 { margin: 0; font-family: var(--serif); font-size: clamp(2.5rem, 12vw, 5rem); font-weight: 400; letter-spacing: -.04em; }
.summit-reveal > p:not(.eyebrow) { margin: 11px 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: 1.2rem; }
.summit-turn { color: var(--ink) !important; }
.sealed-note { position: relative; max-width: 440px; margin: 34px auto 22px; padding: 44px 25px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); rotate: -1deg; }
.sealed-note::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(185,120,114,.13); pointer-events: none; }
.sealed-note > span { position: absolute; top: 16px; left: 17px; color: rgba(54,45,42,.38); font-size: .48rem; letter-spacing: .11em; text-align: left; }
.sealed-note > i { display: grid; width: 48px; height: 48px; margin: 0 auto 20px; place-items: center; color: #fff8ed; background: var(--rose); font-family: var(--serif); border-radius: 50%; box-shadow: 0 6px 14px rgba(185,120,114,.25); }
.sealed-note p { margin: 0; font-family: var(--serif); font-size: 1.1rem; }

/* Invisible ink */
.note-shell { max-width: 700px; }
.uv-toolbar { display: flex; max-width: 520px; margin: 0 auto 14px; padding: 10px 13px; align-items: center; gap: 11px; color: #dfe3ff; background: #393943; border-radius: 13px; box-shadow: 0 12px 32px rgba(50,48,64,.16); }
.uv-toolbar > div { display: grid; }
.uv-toolbar strong { font-size: .62rem; letter-spacing: .1em; }
.uv-toolbar small { color: rgba(223,227,255,.57); font-size: .57rem; }
.uv-lamp { display: grid; width: 36px; height: 36px; place-items: center; background: #25262c; border-radius: 10px; }
.uv-lamp i { width: 11px; height: 11px; background: #a6a8ff; border-radius: 50%; box-shadow: 0 0 15px #a6a8ff; animation: uv-glow 2s ease-in-out infinite; }
@keyframes uv-glow { 50% { opacity: .66; box-shadow: 0 0 8px #a6a8ff; } }

.uv-note {
  width: 100%;
  min-height: 610px;
  padding: 54px 28px 70px;
  background: #fffdf4;
  border-radius: 4px;
  box-shadow: 0 28px 80px rgba(84,62,46,.14);
  touch-action: none;
  user-select: none;
}

.uv-note::before { content: ""; position: absolute; inset: 0; opacity: .17; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E"); }
.note-letterhead { position: relative; z-index: 1; display: flex; justify-content: space-between; padding-bottom: 12px; color: rgba(54,45,42,.42); border-bottom: 1px solid rgba(54,45,42,.16); font-size: .48rem; letter-spacing: .12em; }
.ink-content { position: relative; z-index: 1; min-height: 435px; color: #4e4e8f; font-family: "Bradley Hand", "Segoe Print", var(--serif); }
.ink-line { position: absolute; width: 90%; margin: 0; font-size: clamp(1rem, 4.8vw, 1.35rem); line-height: 1.35; rotate: var(--ink-rotate, 0deg); }
.ink-line span { color: var(--rose); }
.ink-line-one { top: 38px; left: 1%; --ink-rotate: -1deg; }
.ink-line-two { top: 110px; right: 0; text-align: right; --ink-rotate: 1deg; }
.ink-line-three { top: 183px; left: 4%; --ink-rotate: -.5deg; }
.ink-line-four { top: 260px; left: 1%; --ink-rotate: 1deg; }
.ink-line-five { top: 327px; right: 4%; color: var(--rose); font-size: clamp(2.1rem, 10vw, 3.3rem); font-weight: 700; text-align: right; --ink-rotate: -2deg; }
.ink-line-six { top: 405px; left: 0; font-size: clamp(.9rem, 4vw, 1.15rem); --ink-rotate: .4deg; }

#uv-canvas { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.note-signature { position: absolute; z-index: 4; right: 26px; bottom: 22px; color: rgba(54,45,42,.45); font-size: .58rem; letter-spacing: .08em; pointer-events: none; }
.note-signature em { font-family: var(--serif); font-size: .8rem; letter-spacing: 0; }
.note-corner { position: absolute; z-index: 4; width: 22px; height: 22px; pointer-events: none; }
.corner-tl { top: 12px; left: 12px; border-top: 1px solid var(--rose); border-left: 1px solid var(--rose); }
.corner-br { right: 12px; bottom: 12px; border-right: 1px solid var(--rose); border-bottom: 1px solid var(--rose); }
.uv-help { margin: 15px 0 0; color: var(--ink-soft); font-size: .72rem; text-align: center; }
.finish-note { display: flex; margin: 22px auto 0; }
.photo-placeholder.has-custom-photo { background-position: center; background-size: cover; object-fit: cover; object-position: center 43%; }
.photo-placeholder.has-custom-photo > * { display: none; }

/* Finale */
.finale-screen { display: grid; min-height: 100svh; place-items: center; text-align: center; overflow: hidden; }
.finale-copy { position: relative; z-index: 2; max-width: 650px; }
.finale-mark { display: grid; width: 64px; height: 64px; margin: 0 auto 28px; place-items: center; color: #fffaf0; background: var(--rose); font-family: var(--serif); font-size: 1.7rem; border-radius: 50%; box-shadow: 0 12px 35px rgba(185,120,114,.24); }
.finale-copy h2 { font-size: clamp(3.25rem, 15vw, 7rem); }
.finale-copy h2 span { color: var(--rose); font-size: .65em; }
.finale-copy > p:not(.eyebrow) { margin: 30px 0; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(1.1rem, 4vw, 1.5rem); }
.finale-copy > p strong { color: var(--ink); font-weight: 400; }

.final-route { position: relative; display: flex; margin-top: 40px; align-items: center; justify-content: space-between; }
.final-route::before { content: ""; position: absolute; right: 11px; left: 11px; border-top: 1px dashed rgba(54,45,42,.25); }
.final-route span, .final-route b { position: relative; z-index: 1; display: grid; width: 28px; height: 28px; place-items: center; color: white; background: var(--success); border-radius: 50%; font-size: .5rem; font-weight: 700; }
.final-route b { color: var(--rose); background: var(--butter); font-size: 1rem; }
.finale-restart { display: inline-flex; margin-top: 34px; align-items: center; gap: 11px; }
.finale-restart > span { color: var(--rose); font-size: 1rem; line-height: 1; }

.final-particles { position: absolute; inset: 0; }
.final-particles i { position: absolute; width: 5px; height: 5px; background: var(--butter); border-radius: 50%; box-shadow: 0 0 14px currentColor; animation: particle-float 5s ease-in-out infinite alternate; }
.final-particles i:nth-child(1) { top: 16%; left: 12%; }.final-particles i:nth-child(2) { top: 24%; right: 10%; background: var(--blush); animation-delay: -2s; }.final-particles i:nth-child(3) { top: 70%; left: 8%; background: var(--peach); animation-delay: -1s; }.final-particles i:nth-child(4) { bottom: 11%; right: 12%; }.final-particles i:nth-child(5) { top: 43%; left: 20%; background: var(--blush); }.final-particles i:nth-child(6) { top: 57%; right: 21%; animation-delay: -3s; }.final-particles i:nth-child(7) { top: 8%; left: 54%; background: var(--peach); }.final-particles i:nth-child(8) { bottom: 5%; left: 43%; background: var(--blush); }
@keyframes particle-float { to { transform: translateY(-24px) scale(1.5); opacity: .45; } }

.toast {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 18px;
  max-width: 420px;
  margin: auto;
  padding: 13px 18px;
  color: #fffaf0;
  background: rgba(54,45,42,.94);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(54,45,42,.2);
  font-size: .78rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: .25s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 700px) {
  .screen { padding-right: 40px; padding-left: 40px; }
  .quest-header { padding-right: 32px; padding-left: 32px; }
  .balloon-five, .balloon-six, .balloon-seven { display: block; }
  .balloon-one { left: 4%; transform: scale(1.05); }
  .balloon-two { right: 8%; transform: scale(.85); }
  .balloon-three { left: 14%; transform: scale(.7); }
  .balloon-four { right: 5%; transform: scale(1.15); }
  .chapter-heading { margin-bottom: 38px; }
  .puzzle-card, .map-card, .recorder-card { padding: 24px; }
  .bug-board { height: 340px; }
  .camera-shell { padding: 16px; }
  .camera-viewfinder { height: 420px; }
  .camera-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .camera-controls fieldset { min-width: 0; }
  .segment-control { grid-template-columns: 1fr; }
  .topo-map { height: 520px; }
  .spectrogram { height: 240px; }
  .audio-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border: 0; }
  .dial-control { flex-direction: column; align-items: stretch; justify-content: center; padding-top: 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; }
  .stepper { margin-top: 10px; grid-template-columns: 1fr 42px 1fr; }
  .ascent-card { height: 600px; }
  .uv-note { min-height: 670px; padding: 58px 42px 70px; }
  .ink-content { min-height: 500px; }
  .ink-line-one { top: 44px; }.ink-line-two { top: 126px; }.ink-line-three { top: 208px; }.ink-line-four { top: 290px; }.ink-line-five { top: 365px; }.ink-line-six { top: 451px; }
}

@media (min-width: 1050px) {
  .intro-copy { transform: translateY(-1vh); }
  .intro-stamp { top: 8%; left: 8%; width: 96px; }
  .intro-route { right: 9%; bottom: 10%; }
  .chapter-screen { padding-top: 70px; padding-bottom: 100px; }
  .chapter-shell { max-width: 820px; }
}

@media (max-width: 390px) {
  .screen { padding-right: 16px; padding-left: 16px; }
  .quest-header { padding-right: 12px; padding-left: 12px; }
  .chapter-progress button { width: 44px; height: 44px; }
  .trail-line { top: 21px; }
  .gate-controls { gap: 5px; }
  .gate-button { padding: 8px 4px; font-size: .68rem; }
  .stepper { grid-template-columns: 40px 36px 40px; }
  .uv-note { min-height: 640px; padding-right: 20px; padding-left: 20px; }
}

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

/* --------------------------------------------------------------------------
   2026 interaction redesign — brighter editorial theme and deeper mechanics
   -------------------------------------------------------------------------- */
:root {
  --ivory: #f8e3e0;
  --cream: #fff1cb;
  --paper: #fffdf8;
  --blush: #d9a0a8;
  --rose: #b66f78;
  --peach: #e9b79a;
  --butter: #e8ca72;
  --sage: #9ebaa6;
  --ink: #3d3032;
  --ink-soft: #806e70;
  --line: rgba(92, 65, 68, 0.2);
  --line-strong: rgba(92, 65, 68, 0.32);
  --success: #66816d;
  --shadow: 0 30px 75px rgba(111, 76, 78, 0.13);
  --serif: "Iowan Old Style", Baskerville, "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  background:
    radial-gradient(circle at 82% 2%, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(circle at 8% 90%, rgba(233, 191, 194, 0.38), transparent 34%),
    linear-gradient(145deg, #f8e3e0 0%, #fff2cd 52%, #f5ddd9 100%);
}

.page-atmosphere {
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.55), transparent 27rem),
    linear-gradient(145deg, rgba(248, 227, 224, 0.46), rgba(255, 242, 205, 0.48), rgba(245, 221, 217, 0.45));
}

.chapter-shell { width: min(100%, 980px); max-width: 980px; }
.chapter-heading { max-width: 790px; }
.chapter-heading h2 { font-size: clamp(2.8rem, 10vw, 5.4rem); }
.chapter-heading h2:focus { outline: 0; }
.eyebrow { color: #a7666e; letter-spacing: 0.23em; }

.button {
  min-height: 52px;
  padding-right: 24px;
  padding-left: 24px;
  font-size: 0.67rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.button-primary { background: #4a383b; box-shadow: 0 12px 30px rgba(93, 60, 65, 0.14); }
.button-secondary { background: var(--paper); border-radius: 999px; }

.puzzle-card,
.map-card,
.recorder-card,
.summit-game {
  border: 1px solid rgba(96, 70, 73, 0.2);
  border-radius: 2px;
  background:
    radial-gradient(circle at 94% 5%, rgba(239, 208, 150, 0.2), transparent 34%),
    rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.puzzle-card,
.map-card,
.recorder-card { padding: clamp(18px, 4vw, 38px); }
.success-panel { border-radius: 2px; background: rgba(231, 240, 230, 0.8); }
.hint-text { border-radius: 2px; background: rgba(255, 239, 199, 0.7); }
.text-button {
  min-height: 48px;
  padding: 10px 8px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.text-button:disabled { opacity: 0.45; cursor: default; }

/* Chapter 1 — rotatable route debugger */
.route-lab {
  position: relative;
  width: min(100%, 620px);
  min-height: 0;
  margin: 22px auto;
  padding: 28px 56px 84px;
  overflow: hidden;
  background:
    linear-gradient(rgba(92, 65, 68, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 65, 68, 0.055) 1px, transparent 1px),
    linear-gradient(145deg, #fff8e7, #f6e0df);
  background-size: 28px 28px, 28px 28px, auto;
  border: 1px solid rgba(92, 65, 68, 0.14);
}

.junction-grid {
  position: relative;
  display: grid;
  width: 100%;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.junction-route-canvas {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  pointer-events: none;
}

.junction-tile,
.blocked-tile {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(92, 65, 68, 0.16);
}

.junction-tile {
  padding: 0;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.junction-tile i {
  position: absolute;
  inset: 0;
  color: #b66f78;
  transform: rotate(var(--junction-rotation, 0deg));
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
}

.junction-tile[data-shape="straight"] i::before {
  position: absolute;
  top: 50%;
  right: -2px;
  left: -2px;
  height: 7px;
  border: 1px solid rgba(74, 56, 59, 0.2);
  background: currentColor;
  content: "";
  transform: translateY(-50%);
}

.junction-tile[data-shape="corner"] i::before {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 53%;
  height: 53%;
  border-top: 7px solid currentColor;
  border-right: 7px solid currentColor;
  border-radius: 0 100% 0 0;
  content: "";
}

.junction-tile > span {
  position: absolute;
  z-index: 4;
  right: 7px;
  bottom: 5px;
  color: rgba(61, 48, 50, 0.45);
  font-size: 0.48rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.junction-tile.is-tested { background: #f0f5e9; box-shadow: inset 0 0 0 2px rgba(102, 129, 109, 0.24); }
.junction-tile.is-error { background: #f3ced0; box-shadow: inset 0 0 0 3px rgba(182, 111, 120, 0.48); }
.junction-tile.is-aligned i { color: #b66f78; }
.junction-tile:focus-visible { outline: 2px solid rgba(182, 111, 120, 0.72); outline-offset: -5px; }
.junction-tile:disabled:focus { outline: 0; }
.blocked-tile { z-index: 1; color: rgba(61, 48, 50, 0.34); background: rgba(227, 207, 199, 0.55); }
.blocked-tile::before,
.blocked-tile::after { position: absolute; width: 140%; height: 1px; background: rgba(92, 65, 68, 0.14); content: ""; rotate: 45deg; }
.blocked-tile::after { rotate: -45deg; }
.blocked-tile span { font-family: var(--serif); font-size: 1.05rem; }
.blocked-tile small { font-size: 0.42rem; letter-spacing: 0.1em; }

.bug-entry,
.route-trap {
  position: absolute;
  color: var(--rose);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-align: center;
}
.bug-entry { top: calc(16.667% - 18px); left: -50px; }
.bug-entry::after { position: absolute; top: 18px; left: 33px; width: 18px; border-top: 2px dashed var(--rose); content: ""; }
.bug-entry small { font-size: 0.4rem; }
.route-trap { top: calc(100% + 24px); left: calc(16.667% - 22px); width: 44px; }
.route-trap::before { display: block; width: 44px; height: 30px; margin: 0 auto 5px; border: 2px solid var(--rose); border-radius: 50% 50% 8px 8px; content: ""; }
.route-trap i { position: absolute; top: -18px; left: 50%; height: 18px; border-left: 2px dashed var(--rose); }

.route-lab .route-bug {
  z-index: 8;
  width: 30px;
  height: 24px;
  transition: left 300ms ease, top 300ms ease, transform 250ms ease, opacity 250ms ease;
}
.route-lab .route-bug.is-caught { transform: scale(0.62) rotate(25deg); opacity: 0.65; }
.status-pill.status-pass { color: var(--success); }
.status-pill.status-pass i { background: var(--success); box-shadow: 0 0 0 4px rgba(102, 129, 109, 0.12); animation: none; }
.status-pill.status-running i { background: var(--butter); box-shadow: 0 0 0 4px rgba(232, 202, 114, 0.14); }
.route-test-result { min-height: 42px; margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 0.92rem; }
.route-test-actions { display: flex; margin-top: 15px; align-items: center; gap: 18px; flex-wrap: wrap; }

/* Shared range controls */
input[type="range"] {
  width: 100%;
  min-height: 44px;
  margin: 3px 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: rgba(92, 65, 68, 0.2); }
input[type="range"]::-moz-range-track { height: 4px; background: rgba(92, 65, 68, 0.2); }
input[type="range"]::-webkit-slider-thumb {
  width: 28px; height: 28px; margin-top: -12px; appearance: none; border: 4px solid var(--paper); border-radius: 50%; background: var(--rose); box-shadow: 0 2px 12px rgba(92, 65, 68, 0.28);
}
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 4px solid var(--paper); border-radius: 50%; background: var(--rose); box-shadow: 0 2px 12px rgba(92, 65, 68, 0.28); }

/* Chapter 2 — camera sliders */
.camera-viewfinder { filter: blur(var(--camera-blur, 4px)) brightness(var(--camera-brightness, 0.78)) saturate(0.86); }
.camera-shell.is-complete .camera-viewfinder { filter: blur(0) brightness(1) saturate(1); }
.camera-match,
.signal-match { display: flex; justify-content: space-between; margin: 19px 4px 0; color: rgba(255, 250, 242, 0.64); font-size: 0.58rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.camera-match output { color: var(--butter); }
.camera-match-track,
.signal-match-track { height: 3px; margin: 10px 4px 17px; overflow: hidden; background: rgba(255, 255, 255, 0.12); }
.camera-match-track span,
.signal-match-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--rose), var(--butter), var(--sage)); transition: width 180ms ease; }
.camera-controls { display: grid; gap: 10px; padding: 0 3px 5px; }
.camera-slider { display: block; padding: 13px 15px 8px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04); }
.camera-slider > span { display: flex; align-items: center; justify-content: space-between; }
.camera-slider strong { color: #f7efe1; font-size: .68rem; }
.camera-slider output { color: var(--butter); font-family: var(--serif); font-size: 1rem; }
.camera-slider small { display: block; color: rgba(255,250,242,.4); font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; }
.camera-slider.is-locked { border-color: rgba(158,186,166,.48); background: rgba(158,186,166,.09); }
.camera-slider input[type="range"]::-webkit-slider-runnable-track { background: rgba(255,255,255,.2); }
.camera-slider input[type="range"]::-moz-range-track { background: rgba(255,255,255,.2); }
.camera-slider input[type="range"]::-webkit-slider-thumb { border-color: #292825; background: var(--butter); }
.camera-slider input[type="range"]::-moz-range-thumb { border-color: #292825; background: var(--butter); }

/* Chapter 3 — route choice map */
.route-choice-map { height: 500px; }
.route-map-canvas { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.route-path { position: absolute; z-index: 2; inset: 0; opacity: 0.58; transition: opacity 180ms ease, filter 180ms ease; }
.route-path i { position: absolute; height: 4px; background: currentColor; box-shadow: 0 0 0 2px rgba(255,253,248,.62); transform-origin: left; }
.route-a-path { color: #c66f73; }.route-b-path { color: #66816d; }.route-c-path { color: #7b87a1; }
.route-a-path i:nth-child(1) { bottom: 12%; left: 8%; width: 36%; rotate: -22deg; }
.route-a-path i:nth-child(2) { bottom: 26%; left: 40%; width: 30%; rotate: -42deg; }
.route-a-path i:nth-child(3) { top: 43%; left: 59%; width: 30%; rotate: -42deg; }
.route-b-path i:nth-child(1) { bottom: 12%; left: 8%; width: 25%; rotate: -71deg; }
.route-b-path i:nth-child(2) { top: 54%; left: 16%; width: 47%; rotate: -35deg; }
.route-b-path i:nth-child(3) { top: 29%; left: 52%; width: 36%; rotate: -22deg; }
.route-c-path i:nth-child(1) { bottom: 12%; left: 8%; width: 58%; rotate: -5deg; }
.route-c-path i:nth-child(2) { bottom: 18%; left: 63%; width: 27%; rotate: -66deg; }
.route-c-path i:nth-child(3) { top: 49%; right: 7%; width: 33%; rotate: -77deg; }
.route-choice-map[data-selected="A"] .route-path:not(.route-a-path),
.route-choice-map[data-selected="B"] .route-path:not(.route-b-path),
.route-choice-map[data-selected="C"] .route-path:not(.route-c-path) { opacity: .15; filter: grayscale(1); }
.route-choice-map[data-selected="A"] .route-a-path,
.route-choice-map[data-selected="B"] .route-b-path,
.route-choice-map[data-selected="C"] .route-c-path { opacity: 1; filter: drop-shadow(0 0 5px rgba(255,255,255,.8)); }
.map-origin,
.map-summit { position: absolute; z-index: 4; color: var(--ink); font-size: .5rem; font-weight: 800; letter-spacing: .1em; }
.map-origin { bottom: 7%; left: 5%; padding: 5px 7px; background: var(--paper); border: 1px solid var(--line); }
.map-summit { top: 8%; right: 8%; display: grid; color: var(--rose); font-size: 2.5rem; text-align: center; }
.map-summit small { font-family: var(--sans); font-size: .45rem; }
.route-label { position: absolute; z-index: 5; display: grid; width: 26px; height: 26px; place-items: center; color: white; border-radius: 50%; font-size: .6rem; font-weight: 800; }
.route-label-a { top: 52%; left: 48%; background: #c66f73; }.route-label-b { top: 43%; left: 18%; background: #66816d; }.route-label-c { right: 14%; bottom: 20%; background: #7b87a1; }
.hazard { position: absolute; z-index: 3; display: grid; padding: 8px; color: #634447; background: rgba(250,226,221,.9); border: 1px dashed rgba(182,111,120,.58); font-size: .47rem; line-height: 1.25; text-align: center; }
.hazard strong { font-size: .48rem; letter-spacing: .1em; }.hazard small { color: rgba(99,68,71,.7); font-size: .4rem; }
.hazard i { display: block; width: 22px; height: 13px; margin: 0 auto 4px; border-top: 3px dashed #b66f78; }
.flood-zone { top: 45%; left: 47%; width: 96px; background: rgba(207,226,229,.9); border-color: rgba(94,133,141,.58); }
.rockfall-zone { top: 20%; right: 15%; }.bridge-zone { right: 19%; bottom: 24%; }
.hazard.caution { color: #705b35; background: rgba(255, 242, 196, 0.92); border-color: rgba(167, 128, 56, 0.58); }
.hazard.caution small { color: rgba(112, 91, 53, 0.76); }
.hazard.caution i { border-color: #b99650; }
.wind-zone { top: 27%; left: 35%; }
.scree-zone { top: 57%; left: 11%; }
.route-options { display: grid; gap: 8px; margin-top: 16px; }
.route-options button { display: grid; min-height: 68px; padding: 10px 13px; align-items: center; text-align: left; background: rgba(255,253,248,.72); border: 1px solid var(--line); grid-template-columns: 40px 1fr; cursor: pointer; }
.route-options button > span { grid-row: 1 / 3; display: grid; width: 32px; height: 32px; place-items: center; color: var(--rose); border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); }
.route-options strong { font-family: var(--serif); font-size: .95rem; font-weight: 400; }.route-options small { color: var(--ink-soft); font-size: .52rem; letter-spacing: .08em; text-transform: uppercase; }
.route-options button.is-selected { border-color: var(--rose); background: #fff6df; box-shadow: inset 4px 0 var(--rose); }
.verify-route { width: 100%; margin-top: 12px; border-radius: 999px; }
.route-feedback { min-height: 48px; margin: 15px 2px 0; color: var(--ink-soft); font-family: var(--serif); font-size: .88rem; }
.route-feedback strong { color: var(--ink); font-weight: 400; }
.route-verdict {
  display: grid;
  min-height: 112px;
  padding: 16px 18px;
  align-content: center;
  gap: 3px;
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid var(--line);
  border-left: 4px solid #c9b7b1;
}
.route-verdict .verdict-label { color: #907c7f; font-family: var(--sans); font-size: 0.52rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.route-verdict .verdict-title { font-size: 1.04rem; }
.route-verdict .verdict-copy { margin: 2px 0 0; line-height: 1.45; }
.route-verdict[data-state="rejected"] { background: rgba(250, 230, 226, 0.72); border-left-color: var(--rose); }
.route-verdict[data-state="rejected"] .verdict-label { color: #9d5962; }
.route-verdict[data-state="verified"] { background: rgba(237, 241, 226, 0.76); border-left-color: #75816a; }
.route-verdict[data-state="verified"] .verdict-label { color: #5f6f59; }

/* Chapter 4 — actual spectrogram and gated playback */
.recorder-card { color: var(--ink); }
.recorder-header { color: var(--ink-soft); }
.spectrogram-frame { position: relative; height: clamp(230px, 42vw, 410px); overflow: hidden; border: 1px solid rgba(92,65,68,.28); background: #05090e; }
#signal-spectrogram { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(var(--signal-blur, 16px)) contrast(var(--signal-contrast, .62)) brightness(var(--signal-brightness, .7)); transform: scale(1.04); transition: filter 160ms linear, transform 300ms ease; }
.recorder-card.is-clear #signal-spectrogram { transform: scale(1); }
.signal-noise { position: absolute; inset: 0; opacity: var(--noise-opacity, .82); background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(176,225,235,.08) 8px 9px), repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 4px); mix-blend-mode: screen; pointer-events: none; transition: opacity 160ms linear; }
.signal-playhead { position: absolute; z-index: 4; top: 0; bottom: 0; left: 0; width: 2px; opacity: 0; background: var(--butter); box-shadow: 0 0 10px var(--butter); }
.recorder-card.is-playing .signal-playhead { opacity: .9; }
.frequency-scale { z-index: 5; }
.recorder-card .signal-match { margin-top: 24px; color: var(--ink-soft); }
.recorder-card .signal-match output { color: var(--rose); }
.recorder-card .signal-match-track { background: rgba(92,65,68,.14); }
.signal-controls { display: grid; gap: 11px; margin-bottom: 16px; }
.signal-controls label { display: block; padding: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.42); }
.signal-controls label > span { display: flex; justify-content: space-between; }.signal-controls strong { font-size: .66rem; }.signal-controls output { color: var(--rose); font-family: var(--serif); }
.signal-controls small { color: var(--ink-soft); font-size: .52rem; letter-spacing: .08em; text-transform: uppercase; }
.signal-controls label.is-locked { border-color: rgba(102,129,109,.48); background: rgba(226,239,226,.66); }.signal-controls label.is-locked small { color: var(--success); }
.recorder-card .play-button { color: var(--paper); background: #4a383b; border-radius: 0; }
.recorder-card .play-button:disabled { opacity: .48; cursor: not-allowed; }
.audio-timeline { height: 3px; margin-top: 12px; overflow: hidden; background: rgba(92,65,68,.14); }
.audio-timeline span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--rose), var(--butter)); }

/* Chapter 5 — summit runner */
.summit-game { position: relative; overflow: hidden; }
.game-hud { display: flex; min-height: 54px; padding: 12px 16px; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: .5rem; letter-spacing: .1em; text-transform: uppercase; }
.game-hud span { display: grid; }.game-hud strong { color: var(--ink); font-family: var(--serif); font-size: 1rem; font-weight: 400; letter-spacing: 0; }
#summit-game { display: block; width: 100%; height: auto; max-height: 480px; background: #f3dfd4; touch-action: manipulation; }
.game-overlay { position: absolute; z-index: 4; inset: 54px 0 87px; display: grid; padding: 28px; place-content: center; justify-items: center; text-align: center; background: rgba(255,248,228,.76); backdrop-filter: blur(5px); }
.game-overlay > span { color: var(--rose); font-size: 3rem; }.game-overlay > strong { font-family: var(--serif); font-size: clamp(1.7rem,7vw,2.8rem); font-weight: 400; }.game-overlay > small { max-width: 390px; margin: 8px 0 20px; color: var(--ink-soft); font-size: .66rem; }
.game-controls { display: flex; min-height: 82px; padding: 12px 16px; align-items: center; justify-content: space-between; gap: 15px; background: rgba(255,253,248,.92); border-top: 1px solid var(--line); }
.jump-button { min-width: 156px; min-height: 58px; color: var(--paper); background: #4a383b; border: 0; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .15em; cursor: pointer; box-shadow: 0 10px 24px rgba(74,56,59,.18); }
.jump-button span { display: inline-grid; width: 29px; height: 29px; margin-right: 8px; place-items: center; color: var(--ink); background: var(--butter); border-radius: 50%; }
.game-feedback { min-height: 52px; margin: 0; padding: 13px 16px; color: var(--ink-soft); background: rgba(255,253,248,.92); border-top: 1px solid var(--line); font-family: var(--serif); font-size: .82rem; }
.summit-game.is-complete { box-shadow: 0 0 0 4px rgba(232,202,114,.25), var(--shadow); }

/* Chapter 6 — reference-style UV torch */
.uv-note {
  --light-x: 50%;
  --light-y: 50%;
  min-height: 650px;
  background:
    repeating-linear-gradient(0deg, rgba(68,77,84,.035) 0 1px, transparent 1px 29px),
    linear-gradient(140deg, #fffdf6, #f9ebcb 64%, #e5eee5);
  cursor: crosshair;
}
.uv-note::after { position: absolute; z-index: 2; inset: 0; opacity: 0; background: radial-gradient(circle 110px at var(--light-x) var(--light-y), rgba(124,205,255,.28), rgba(124,205,255,.08) 42%, transparent 72%); content: ""; pointer-events: none; transition: opacity 120ms ease; }
.uv-note.is-torch-active::after { opacity: 1; }
.paper-lines { position: absolute; z-index: 0; inset: 31% 8% 12%; display: flex; flex-direction: column; justify-content: space-around; }
.paper-lines span { height: 1px; background: rgba(51,61,68,.11); }
.ink-search-note { position: absolute; z-index: 1; top: 23%; left: 50%; width: 100%; margin: 0; color: rgba(77,62,64,.28); font-family: var(--serif); font-size: clamp(1.4rem,5vw,2.4rem); font-style: italic; text-align: center; transform: translateX(-50%); }
.ink-content { z-index: 3; }
.ink-line {
  min-height: 54px;
  padding: 8px;
  color: #315763;
  background: rgba(226,243,241,.84);
  border: 1px solid rgba(65,102,116,.46);
  box-shadow: 0 10px 25px rgba(72,92,94,.1);
  font-family: "Bradley Hand", "Segoe Print", var(--serif);
  cursor: pointer;
  opacity: .025;
  pointer-events: none;
  transform: scale(.96) rotate(var(--ink-rotate,0deg));
  transition: opacity 160ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.ink-line.is-lit,
.ink-line:focus-visible { opacity: 1; pointer-events: auto; transform: scale(1) rotate(var(--ink-rotate,0deg)); box-shadow: 0 0 0 6px rgba(124,205,255,.1), 0 12px 28px rgba(72,92,94,.14); }
.ink-line.is-collected { opacity: .9; pointer-events: none; color: #486153; background: rgba(233,241,232,.9); border-color: rgba(102,129,109,.38); transform: scale(1) rotate(var(--ink-rotate,0deg)); }
.ink-line-five { color: var(--rose); }
.uv-beam { position: absolute; z-index: 5; top: var(--light-y); left: var(--light-x); width: 46px; height: 46px; opacity: 0; border: 1px solid rgba(78,154,201,.72); border-radius: 50%; box-shadow: 0 0 0 12px rgba(120,197,244,.07), 0 0 34px rgba(84,172,225,.38); pointer-events: none; transform: translate(-50%,-50%); transition: opacity 100ms ease; }
.uv-note.is-torch-active .uv-beam { opacity: 1; }.uv-beam i { position: absolute; inset: 15px; background: rgba(170,224,255,.7); border-radius: 50%; box-shadow: 0 0 14px rgba(124,205,255,.9); }

@media (min-width: 700px) {
  .camera-controls,
  .signal-controls,
  .route-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route-options button { grid-template-columns: 40px 1fr; }
  .route-test-actions .button { min-width: 240px; }
}

@media (max-width: 560px) {
  .route-lab { padding: 24px 34px 76px; }
  .bug-entry { left: -31px; font-size: .38rem; }
  .bug-entry::after { left: 25px; width: 8px; }
  .route-choice-map { height: 450px; }
  .hazard { transform: scale(.82); }
  .flood-zone { left: 43%; }.rockfall-zone { right: 8%; }.bridge-zone { right: 10%; }
  .game-overlay { inset: 54px 0 130px; }
  .game-controls { flex-direction: column; }
  .jump-button { width: 100%; }
  .uv-note { min-height: 680px; }
}

/* Reference-aligned camera body: proposal-demo's compact analogue controls. */
.camera-body {
  max-width: 810px;
  margin: 0 auto;
  padding: 13px 13px 21px;
  color: #d8d0c3;
  border: 0;
  border-radius: 16px 16px 23px 23px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 24%, rgba(255, 255, 255, 0.03) 75%, transparent),
    #262928;
  box-shadow: 0 35px 90px rgba(32, 30, 27, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.camera-body .camera-top {
  display: flex;
  height: 34px;
  padding: 0 7px;
  align-items: center;
  justify-content: space-between;
  color: #aaa399;
  font-size: 8px;
  letter-spacing: 0.17em;
}

.camera-body .camera-mark {
  color: #dbd0bc;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.camera-body.camera-shell .viewfinder {
  position: relative;
  height: auto !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #0e0f0f;
  border-radius: 4px;
  background: #0f1111;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.76);
  filter: none !important;
}

.camera-body .photo-placeholder {
  filter: blur(var(--photo-blur, 18px)) brightness(var(--photo-light, 0.56)) saturate(var(--photo-sat, 0.7));
  transform: scale(var(--photo-scale, 1.09));
  transition: filter 120ms linear, transform 300ms ease;
}

.camera-body .exposure-wash {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: var(--wash-opacity, 0.42);
  background: rgba(12, 15, 16, 0.55);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, var(--vignette-opacity, 0.83));
  pointer-events: none;
  transition: opacity 140ms linear, box-shadow 140ms linear;
}

.camera-body .focus-reticle {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 36px;
  opacity: 0.62;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%);
}

.camera-body .focus-reticle span::before,
.camera-body .focus-reticle span::after {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  content: "";
}

.camera-body .focus-reticle span::before { top: 50%; left: -10px; width: 66px; height: 1px; }
.camera-body .focus-reticle span::after { top: -10px; left: 50%; width: 1px; height: 56px; }

.camera-body .film-edge {
  position: absolute;
  z-index: 4;
  right: 11px;
  bottom: 8px;
  left: 11px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.64);
  font-size: 7px;
  letter-spacing: 0.14em;
  pointer-events: none;
}

.camera-body .camera-viewfinder > p {
  z-index: 5;
  top: 9px;
  right: auto;
  bottom: auto;
  left: 10px;
  width: auto;
  padding: 5px 7px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(20, 22, 22, 0.48);
  border-radius: 2px;
  font-size: 7px;
  text-align: left;
}

.camera-body .photo-noise { z-index: 2; }

.camera-body .camera-controls {
  display: block;
  padding: 17px 5px 1px;
}

.camera-body .control-row {
  display: grid;
  min-height: 45px;
  padding: 0;
  align-items: center;
  gap: 11px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  grid-template-columns: 92px minmax(0, 1fr);
}

.camera-body .control-row:last-child { border-bottom: 0; }

.camera-body .control-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
}

.camera-body .control-label strong {
  color: #d8d0c3;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.camera-body .control-label output {
  color: #918a80;
  font-family: var(--serif);
  font-size: 10px;
  font-style: italic;
  white-space: nowrap;
}

.camera-body .photo-control {
  width: 100%;
  min-height: 44px;
  height: 44px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}

.camera-body .photo-control::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(90deg, #6d655a, #dfd5c5 50%, #6d655a);
}

.camera-body .photo-control::-moz-range-track {
  height: 1px;
  background: linear-gradient(90deg, #6d655a, #dfd5c5 50%, #6d655a);
}

.camera-body .photo-control::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -10px;
  appearance: none;
  border: 1px solid #a89f91;
  border-radius: 50%;
  background: radial-gradient(circle, #d8d0c3 0 2px, #343635 3px 7px, #9f978a 8px 9px, #252827 10px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.camera-body .photo-control::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 1px solid #a89f91;
  border-radius: 50%;
  background: #343635;
}

.camera-body .control-row.is-locked output { color: #918a80; }
.camera-body .photo-control:disabled { cursor: default; opacity: 0.8; }
.camera-body.is-resolved .focus-reticle { opacity: 0; transition: opacity 700ms ease; }
.camera-body.is-resolved { box-shadow: 0 38px 95px rgba(124, 81, 40, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }

/* Reference-aligned recovered-signal console from birthday-demo. */
.signal-console {
  --signal: #bf7884;
  --signal-bright: #8a4e58;
  max-width: 980px;
  padding: clamp(20px, 3.8vw, 42px);
  color: var(--ink);
  border: 1px solid rgba(96, 70, 73, 0.2);
  background:
    radial-gradient(circle at 94% 5%, rgba(239, 208, 150, 0.2), transparent 34%),
    rgba(255, 253, 248, 0.9);
  box-shadow: 0 30px 75px rgba(111, 76, 78, 0.14);
}

.signal-console .signal-topline {
  display: flex;
  padding: 0;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  color: #806f70;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signal-console #signal-status { color: var(--signal-bright); }
.signal-console .spectrogram-frame { height: clamp(240px, 35vw, 420px); border-radius: 0; }
.signal-console #signal-spectrogram { transform: scale(1.06); transition: filter 160ms linear, transform 350ms ease; }
.signal-console.is-clear #signal-spectrogram { transform: scale(1); }

.signal-console .signal-axis {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-direction: column;
  color: rgba(206, 244, 255, 0.52);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.signal-console .signal-calibration { padding: 28px 0 23px; }

.signal-console .signal-match {
  display: flex;
  margin: 0;
  justify-content: space-between;
  color: #766568;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal-console .signal-match output { color: var(--signal-bright); }

.signal-console .signal-match-track {
  height: 3px;
  margin: 12px 0 24px;
  overflow: hidden;
  background: #e2d4d1;
}

.signal-console .signal-match-track span { background: linear-gradient(90deg, #c7878e, #d6b65f, #8a6a70); }

.signal-console .tuning-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signal-console .tuning-control {
  display: block;
  padding: 17px;
  border: 1px solid rgba(92, 65, 68, 0.18);
  background: rgba(255, 255, 255, 0.34);
}

.signal-console .tuning-control > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.signal-console .tuning-control strong {
  color: #65575a;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal-console .tuning-control output {
  color: var(--signal-bright);
  font-family: var(--sans);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.signal-console .tuning-control input[type="range"] { margin: 9px 0 1px; }
.signal-console .tuning-control input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: #dfd0cf; }
.signal-console .tuning-control input[type="range"]::-moz-range-track { height: 3px; background: #dfd0cf; }
.signal-console .tuning-control input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -9px;
  border: 3px solid #fffdf8;
  background: var(--signal);
  box-shadow: 0 2px 8px rgba(92, 65, 68, 0.25);
}
.signal-console .tuning-control input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid #fffdf8; background: var(--signal); }

.signal-console .tuning-control small {
  display: block;
  color: #9b888a;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-console .tuning-control.is-locked { border-color: rgba(92, 65, 68, 0.18); background: rgba(255, 255, 255, 0.34); }
.signal-console .tuning-control.is-locked small { color: #9b888a; }

.signal-console .signal-hint-card {
  margin: 0 0 22px;
  padding: 15px 17px;
  border: 1px solid rgba(177, 127, 64, 0.34);
  background:
    radial-gradient(circle at 95% 8%, rgba(218, 160, 170, 0.2), transparent 33%),
    linear-gradient(120deg, #fff1bd, #f9e6dc);
}

.signal-console .signal-hint-card span { color: #8a4e58; font-size: 8px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.signal-console .signal-hint-card p { margin: 5px 0 0; color: #766568; font-size: 0.72rem; }

.signal-console .audio-player {
  display: grid;
  padding-top: 22px;
  align-items: center;
  gap: 18px;
  border-top: 1px solid rgba(92, 65, 68, 0.18);
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.signal-console .audio-play {
  display: inline-flex;
  width: auto;
  min-width: 220px;
  min-height: 46px;
  padding: 10px 17px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--signal-bright);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--signal);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-console .audio-play:disabled { color: #9b888a; background: #f4ece3; border-color: #c7b5b6; opacity: 1; }
.signal-console .audio-play .play-icon { display: inline; width: auto; height: auto; color: inherit; background: transparent; border-radius: 0; font-size: 11px; }
.signal-console .audio-play .play-label { align-self: auto; font-size: inherit; }
.signal-console .audio-timeline { height: 2px; margin: 0; background: #e2d4d1; }
.signal-console .audio-timeline span { background: var(--signal-bright); }
.signal-console #audio-time { color: #806f70; font-size: 9px; font-variant-numeric: tabular-nums; }
.signal-console .audio-file-note { margin: 13px 0 0; color: #9b888a; font-size: 7px; letter-spacing: 0.13em; text-align: right; }

@media (max-width: 680px) {
  .camera-body .control-row { grid-template-columns: 82px minmax(0, 1fr); }
  .signal-console { padding: 14px; }
  .signal-console .tuning-grid { grid-template-columns: 1fr; }
  .signal-console .audio-player { grid-template-columns: minmax(0, 1fr) auto; }
  .signal-console .audio-play { width: 100%; min-width: 0; grid-column: 1 / -1; }
}

/* Chapter 5 — portrait viewport and touch controls for the vertical ascent. */
.summit-game {
  width: min(100%, 720px);
  margin-right: auto;
  margin-left: auto;
}

#summit-game {
  height: auto;
  max-height: none;
  aspect-ratio: 720 / 760;
}

.game-controls {
  display: flex;
  min-height: 88px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.movement-controls {
  display: grid;
  align-items: center;
  gap: 9px;
  grid-template-columns: 58px minmax(158px, 1fr) 58px;
}

.move-button {
  display: grid;
  width: 58px;
  min-height: 58px;
  padding: 0;
  place-items: center;
  color: var(--paper);
  background: #6b575a;
  border: 0;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

.movement-controls .jump-button {
  min-width: 158px;
  min-height: 58px;
  touch-action: manipulation;
  user-select: none;
}

.move-button:active,
.movement-controls .jump-button:active { transform: translateY(2px); }

@media (max-width: 560px) {
  .game-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .movement-controls {
    width: 100%;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
  }

  .movement-controls .jump-button { width: 100%; min-width: 0; }
  .game-controls .text-button { align-self: center; }
}

/* Chapter 6 — birthday-demo's orderly invisible-ink workspace. */
.note-shell { max-width: 980px; }

.final-ink-workspace {
  display: grid;
  width: min(100%, 780px);
  margin: 0 auto;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

.final-ink-workspace .ink-paper {
  --light-x: 50%;
  --light-y: 50%;
  position: relative;
  width: 100%;
  min-height: 680px;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(68, 77, 84, 0.045) 0 1px, transparent 1px 29px),
    linear-gradient(140deg, #fffdf6, #f9ebcb 64%, #e5eee5);
  border-radius: 0;
  box-shadow: 0 30px 75px rgba(111, 76, 78, 0.13);
  cursor: crosshair;
  touch-action: pan-y pinch-zoom;
}

.final-ink-workspace .paper-heading {
  position: relative;
  z-index: 4;
  display: flex;
  padding-bottom: 17px;
  justify-content: space-between;
  color: #737b80;
  border-bottom: 1px solid rgba(37, 48, 58, 0.25);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.final-ink-workspace .paper-lines {
  position: absolute;
  z-index: 0;
  inset: 185px 8% 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.final-ink-workspace .paper-lines span { display: block; height: 1px; background: rgba(51, 61, 68, 0.12); }

.final-ink-workspace .ink-search-note {
  position: absolute;
  z-index: 1;
  top: 105px;
  left: 50%;
  width: auto;
  margin: 0;
  color: rgba(77, 62, 64, 0.32);
  font-family: var(--serif);
  font-size: clamp(23px, 3.4vw, 38px);
  font-style: italic;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity 180ms ease;
}

.final-ink-workspace .ink-paper.has-discovery .ink-search-note { opacity: 0; }

.final-ink-workspace .ink-content {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 460px;
  margin-top: 84px;
  align-content: stretch;
  grid-template-rows: repeat(6, minmax(62px, auto));
}

.final-ink-workspace .ink-line {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 8px 5px;
  color: #315763;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", var(--serif);
  font-size: clamp(1rem, 2.25vw, 1.32rem);
  line-height: 1.35;
  text-align: left;
  cursor: crosshair;
  opacity: 1;
  pointer-events: auto;
  rotate: 0deg;
  transform: none;
  transition: opacity 180ms ease, color 180ms ease, text-shadow 180ms ease;
  touch-action: pan-y pinch-zoom;
}

.final-ink-workspace .ink-line strong { color: inherit; font-weight: 700; }
.final-ink-workspace .ink-line span { color: inherit; }
.final-ink-workspace .ink-line-time { color: var(--rose); font-size: clamp(1.85rem, 4.6vw, 2.8rem); }

.final-ink-workspace .ink-fragment {
  display: inline;
  color: #315763;
  opacity: 0.018;
  transition: opacity 150ms ease, color 150ms ease, text-shadow 150ms ease;
}

.final-ink-workspace .ink-fragment + .ink-fragment { margin-left: 0.18em; }
.final-ink-workspace .ink-fragment.ink-accent,
.final-ink-workspace .ink-line-time .ink-fragment { color: var(--rose); }
.final-ink-workspace .ink-fragment.is-lit,
.final-ink-workspace .ink-fragment.is-collected {
  opacity: 1;
  text-shadow: 0 0 18px rgba(124, 205, 255, 0.25);
}

.final-ink-workspace .ink-line.is-lit,
.final-ink-workspace .ink-line:focus-visible {
  color: #315763;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  text-shadow: 0 0 18px rgba(124, 205, 255, 0.28);
}

.final-ink-workspace .ink-line.is-collected {
  color: #486153;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0.88;
  pointer-events: auto;
  transform: none;
}

.final-ink-workspace .uv-light {
  position: absolute;
  z-index: 5;
  top: var(--light-y);
  left: var(--light-x);
  width: 44px;
  height: 44px;
  opacity: 0;
  border: 1px solid rgba(78, 154, 201, 0.66);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(120, 197, 244, 0.06), 0 0 32px rgba(84, 172, 225, 0.32);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.final-ink-workspace .ink-paper.is-torch-active .uv-light { opacity: 1; }

@media (max-width: 760px) {
  .final-ink-workspace { grid-template-columns: 1fr; }
  .final-ink-workspace .ink-paper { min-height: 620px; padding: 24px 21px 44px; }
  .final-ink-workspace .ink-search-note { top: 90px; font-size: clamp(19px, 7vw, 28px); }
  .final-ink-workspace .ink-content { min-height: 440px; margin-top: 78px; }
  .final-ink-workspace .ink-line { font-size: clamp(0.9rem, 4.2vw, 1.08rem); }
  .final-ink-workspace .ink-line-time { font-size: clamp(1.7rem, 9vw, 2.35rem); }
}

.final-ink-workspace [data-ink-fragment="2-2"],
.final-ink-workspace [data-ink-fragment="3-3"] { margin-left: 0; }

@media (max-width: 680px) {
  body[data-stage="chapter-4"] .chapter-screen { padding-top: 20px; }
  body[data-stage="chapter-4"] .chapter-heading { margin-bottom: 16px; }
  body[data-stage="chapter-4"] .chapter-heading h2 { font-size: clamp(2.35rem, 11vw, 3.2rem); }
  body[data-stage="chapter-4"] .chapter-heading > p:last-child:not(.eyebrow) { margin-top: 10px; font-size: 0.8rem; }

  .signal-console { padding: 11px; }
  .signal-console .signal-topline { margin-bottom: 8px; gap: 8px; font-size: 7px; }
  .signal-console .spectrogram-frame { height: clamp(128px, 22svh, 158px); }
  .signal-console .signal-calibration { padding: 12px 0 9px; }
  .signal-console .signal-match { font-size: 8px; }
  .signal-console .signal-match-track { margin: 6px 0 9px; }
  .signal-console .tuning-grid { gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .signal-console .tuning-control { min-width: 0; padding: 8px 7px 6px; }
  .signal-console .tuning-control > span { display: grid; gap: 1px; }
  .signal-console .tuning-control strong,
  .signal-console .tuning-control small { font-size: 6.5px; }
  .signal-console .tuning-control output { font-size: 10px; }
  .signal-console .tuning-control input[type="range"] { min-height: 36px; margin: 2px 0 0; }
  .signal-console .signal-hint-card { margin-bottom: 8px; padding: 8px 10px; }
  .signal-console .signal-hint-card p { margin-top: 2px; font-size: 0.61rem; }
  .signal-console .audio-player { padding-top: 8px; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
  .signal-console .audio-play { min-height: 40px; grid-column: 1 / -1; }
  .signal-console .audio-file-note { display: none; }

  .route-choice-map { height: 420px; }
  .hazard { transform: scale(0.74); }
  .wind-zone { top: 25%; left: 31%; }
  .scree-zone { top: 57%; left: 7%; }
  .route-verdict { min-height: 104px; padding: 13px 14px; }
}

@media (max-width: 680px) and (max-height: 650px) {
  .signal-console .spectrogram-frame { height: 104px; }
  .signal-console .signal-calibration { padding: 8px 0 5px; }
  .signal-console .signal-match-track { margin: 4px 0 5px; }
  .signal-console .tuning-control { padding: 5px 6px 3px; }
  .signal-console .tuning-control input[type="range"] { min-height: 30px; }
  .signal-console .signal-hint-card { display: none; }
  .signal-console .audio-player { padding-top: 5px; }
  .signal-console .audio-play { min-height: 36px; padding: 7px 12px; }
}
