:root {
  --paper: #f3f1e9;
  --paper-deep: #e9e6dc;
  --ink: #232923;
  --muted: #667067;
  --soft: #92988f;
  --rule: #d3d2c9;
  --route: #d04b38;
  --route-dark: #9f3028;
  --link: #9ca39c;
  --focus: #0f7185;
  --panel: #faf9f5;
  --shadow: 0 14px 36px rgba(44, 49, 44, 0.12);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 113, 133, 0.3);
  outline-offset: 2px;
}

#app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 64px 44px minmax(0, 1fr);
}

.app-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(240px, 420px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 249, 245, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-seed {
  width: 28px;
  height: 28px;
  position: relative;
  flex: 0 0 auto;
  border: 2px solid #4f795d;
  border-radius: 50% 50% 48% 52%;
}

.brand-seed::before,
.brand-seed::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 2px;
  background: #4f795d;
  transform-origin: bottom;
}

.brand-seed::before {
  top: 3px;
  height: 19px;
  transform: rotate(33deg);
}

.brand-seed::after {
  top: 7px;
  height: 15px;
  transform: rotate(-38deg);
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-wrap {
  position: relative;
}

.search-symbol {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 50%;
  color: var(--soft);
  font-size: 22px;
  transform: translateY(-53%);
  pointer-events: none;
}

#tree-search {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 38px;
  border: 1px solid #c7cac3;
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}

#tree-search::placeholder {
  color: #8a9189;
}

.search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  width: min(430px, calc(100vw - 28px));
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid #c9cbc4;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-result {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid #e3e3dc;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover,
.search-result:focus-visible {
  background: #f3f4ef;
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result small,
.search-result em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.search-empty {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 0 24px;
  border-bottom: 1px solid var(--rule);
  background: #eceae2;
  scrollbar-width: none;
}

.breadcrumbs::-webkit-scrollbar {
  display: none;
}

.crumb {
  position: relative;
  min-width: max-content;
  padding: 0 22px 0 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #727970;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.crumb:first-child {
  padding-left: 0;
}

.crumb::after {
  content: "›";
  position: absolute;
  right: 6px;
  color: #a3a69f;
  font-size: 18px;
  font-weight: 400;
}

.crumb:last-child::after {
  display: none;
}

.crumb.active {
  border-bottom-color: var(--route);
  color: var(--ink);
}

.crumb.future {
  color: #9ca19a;
}

.explorer-shell {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  background: var(--paper);
}

.tree-stage {
  position: relative;
  min-width: 0;
  min-height: 540px;
  overflow: hidden;
  border-right: 1px solid var(--rule);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(52, 62, 54, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 62, 54, 0.028) 1px, transparent 1px);
  background-size: 32px 32px;
}

.tree-stage.is-dragging,
.tree-stage.is-dragging * {
  cursor: grabbing !important;
}

#tree-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

#world-layer {
  transform-origin: 0 0;
}

#world-layer.scene-enter {
  animation: scene-enter 280ms ease both;
}

@keyframes scene-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scene-heading {
  position: absolute;
  z-index: 4;
  top: 21px;
  left: 24px;
  width: min(470px, calc(100% - 150px));
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.tree-stage.is-section-focused .scene-heading {
  opacity: 0;
  transform: translateY(-8px);
}

.scene-heading p,
.scene-heading h1 {
  margin: 0;
}

#scene-eyebrow {
  color: var(--route-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.scene-heading h1 {
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
}

#scene-subtitle {
  max-width: 430px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.map-tools {
  position: absolute;
  z-index: 8;
  top: 22px;
  right: 18px;
  display: grid;
  gap: 6px;
}

.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #c7cac3;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 10px rgba(50, 58, 50, 0.08);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: #929990;
  background: #fff;
}

.icon-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  padding: 5px 7px;
  border-radius: 3px;
  color: #fff;
  background: #2d332e;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 120ms ease;
  white-space: nowrap;
}

.icon-btn:hover::after,
.icon-btn:focus-visible::after {
  opacity: 1;
}

.map-key {
  position: absolute;
  z-index: 4;
  left: 24px;
  bottom: 37px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  color: #6f766e;
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}

.map-key span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.key-line {
  width: 20px;
  height: 0;
  display: inline-block;
  border-top: 3px solid;
}

.key-line.human {
  border-color: var(--route);
}

.key-line.dog {
  border-color: #2f7288;
}

.key-line.branch {
  border-color: #98a09a;
  border-top-width: 1px;
}

.key-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border: 1px solid #7e827d;
  border-radius: 50%;
}

.key-dot.extinct {
  background: #b0aaa4;
}

.time-scale {
  position: absolute;
  z-index: 4;
  left: 24px;
  right: 24px;
  bottom: 14px;
  display: grid;
  grid-template-columns: auto minmax(50px, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: #767d75;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  pointer-events: none;
}

.time-scale i {
  height: 1px;
  position: relative;
  background: #aeb1aa;
}

.time-scale i::before,
.time-scale i::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: #989d96;
}

.time-scale i::before {
  left: 0;
}

.time-scale i::after {
  right: 0;
}

.detail-panel {
  min-width: 0;
  overflow-y: auto;
  padding: 30px 27px 26px;
  background: var(--panel);
}

.detail-visual {
  margin: -30px -27px 24px;
  border-bottom: 1px solid var(--rule);
  background: #e4e1d8;
}

.detail-visual[hidden] {
  display: none;
}

.detail-visual img {
  width: 100%;
  height: 218px;
  display: block;
  object-fit: cover;
  object-position: center 32%;
  background: #ddd9cf;
}

.detail-visual.is-family img {
  height: 166px;
}

.detail-color {
  width: 44px;
  height: 5px;
  margin-bottom: 19px;
  background: var(--route);
}

.detail-panel p,
.detail-panel h2,
.detail-panel dl {
  margin-top: 0;
}

.detail-eyebrow {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-panel h2 {
  margin-bottom: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.detail-scientific {
  margin-bottom: 13px;
  color: #6d746d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
}

.detail-scientific:empty,
.detail-age:empty,
.detail-fact:empty,
.detail-meta:empty {
  display: none;
}

.detail-age {
  width: fit-content;
  margin-bottom: 17px;
  padding: 5px 8px;
  border-left: 3px solid var(--detail-accent, var(--route));
  color: #4b554d;
  background: #ecece5;
  font-size: 11px;
  font-weight: 800;
}

.detail-description {
  margin-bottom: 17px;
  color: #414a43;
  font-size: 14px;
  line-height: 1.55;
}

.detail-fact {
  margin-bottom: 18px;
  padding: 13px 0;
  border-top: 1px solid #dedfd8;
  border-bottom: 1px solid #dedfd8;
  color: #5d665f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.45;
}

.detail-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 12px;
  margin-bottom: 18px;
  font-size: 12px;
}

.detail-meta dt {
  color: #838a82;
}

.detail-meta dd {
  margin: 0;
  color: #414a43;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.deeper-button {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 10px 13px;
  border: 1px solid var(--route-dark);
  border-radius: 4px;
  color: #fff;
  background: var(--route-dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.deeper-button:hover {
  background: #842721;
}

.scene-note {
  margin-top: 22px !important;
  padding-top: 15px;
  border-top: 1px solid #dcddd6;
  color: #7e857e;
  font-size: 10px;
  line-height: 1.5;
}

.tree-edge,
.timeline-edge,
.family-edge,
.journey-link,
.family-history-link {
  fill: none;
  stroke: var(--edge-color, #989f99);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.tree-edge {
  stroke-width: 1.2;
  opacity: 0.75;
}

.tree-edge.human-route,
.timeline-edge.main {
  stroke: var(--route);
  stroke-width: 3.4;
  opacity: 0.94;
}

.timeline-edge.branch {
  stroke: #9ca29c;
  stroke-width: 1.3;
}

.timeline-edge.mixing {
  stroke: #8f6f7d;
  stroke-width: 1.4;
  stroke-dasharray: 5 5;
}

.family-edge {
  stroke: #aeb3ad;
  stroke-width: 1.1;
  opacity: 0.66;
}

.family-edge.near-present {
  stroke: #4f8790;
  stroke-width: 1.8;
  opacity: 0.9;
}

.journey-link {
  stroke: #989f99;
  stroke-width: 1.25;
  opacity: 0.72;
}

.journey-link.human {
  stroke: rgba(190, 58, 50, 0.38);
  stroke-width: 1.8;
}

.journey-link.human-deep {
  stroke: var(--route);
  stroke-width: 3.2;
  opacity: 0.9;
}

.journey-link.dog {
  stroke: #2f7288;
  stroke-width: 3.4;
  opacity: 0.94;
}

.journey-link.dog-branch {
  stroke: #628397;
  stroke-width: 1.8;
  opacity: 0.88;
}

.journey-link.extinct {
  stroke: #9b8f7a;
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

.family-history-link {
  stroke: rgba(188, 68, 55, 0.26);
  stroke-width: 0.9;
}

.generation-bead {
  fill: var(--route);
  stroke: var(--paper);
  stroke-width: 0.7;
}

.generation-beads.family-history .generation-bead {
  fill: #a06452;
  opacity: 0.82;
}

.journey-section-band {
  fill: rgba(255, 255, 255, 0.2);
}

.journey-section-band.section-family {
  fill: rgba(23, 117, 138, 0.035);
}

.journey-section-band.section-history {
  fill: rgba(139, 106, 53, 0.035);
}

.journey-section-band.section-hominins {
  fill: rgba(200, 62, 53, 0.035);
}

.journey-section-band.section-mammals {
  fill: rgba(47, 114, 136, 0.03);
}

.journey-section-band.section-life {
  fill: rgba(77, 118, 85, 0.035);
}

.journey-section-rule {
  stroke: #cbc9c0;
  stroke-width: 1;
  stroke-dasharray: 5 8;
  vector-effect: non-scaling-stroke;
}

.journey-section-title {
  fill: var(--section-color, #6d756e);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 600;
  text-anchor: middle;
}

.era-ring {
  fill: none;
  stroke: #d9d8cf;
  stroke-width: 1;
  stroke-dasharray: 3 7;
  vector-effect: non-scaling-stroke;
}

.era-label {
  fill: #9a9f98;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
}

.tree-node,
.timeline-node,
.family-node,
.journey-node {
  cursor: pointer;
}

.node-hit {
  fill: transparent;
}

.node-dot {
  fill: var(--node-color, #788078);
  stroke: var(--paper);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.tree-node.major .node-dot,
.timeline-node.major .node-dot {
  stroke-width: 4;
}

.tree-node.human-path .node-dot,
.timeline-node.human-path .node-dot,
.journey-node .node-dot {
  fill: var(--node-color, var(--route));
}

.tree-node.extinct .node-dot,
.timeline-node.extinct .node-dot,
.journey-node.extinct .node-dot {
  fill: #b0aaa4;
}

.selection-ring {
  fill: none;
  stroke: var(--focus);
  stroke-width: 2.5;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}

.tree-node.selected .selection-ring,
.timeline-node.selected .selection-ring,
.journey-node.selected .selection-ring {
  opacity: 1;
  animation: selected-pulse 1.8s ease-in-out infinite;
}

@keyframes selected-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.node-symbol {
  fill: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  font-weight: 700;
  pointer-events: none;
  text-anchor: middle;
}

.node-image,
.node-image-border,
.node-image-backdrop {
  pointer-events: none;
}

.node-image-backdrop {
  fill: var(--paper);
  stroke: rgba(35, 41, 35, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.node-image-border {
  fill: none;
  stroke: var(--node-color, #687168);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.tree-node.human-path .node-image-border,
.timeline-node.human-path .node-image-border,
.journey-node .node-image-border {
  stroke: var(--route);
  stroke-width: 2.5;
}

.journey-node.dog-path .node-image-border {
  stroke: #2f7288;
}

.family-node .node-image-border {
  stroke: var(--country-color, #788078);
}

.shared-ring {
  fill: none;
  stroke: var(--node-color, var(--focus));
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}

.journey-card-connector {
  stroke: var(--node-color, #858c84);
  stroke-width: 1;
  opacity: 0.66;
  vector-effect: non-scaling-stroke;
}

.journey-label-card rect {
  fill: rgba(251, 250, 246, 0.97);
  stroke: #b7bbb4;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.journey-node:hover .journey-label-card rect {
  stroke: #707b72;
}

.journey-node.selected .journey-label-card rect {
  stroke: var(--focus);
  stroke-width: 2;
}

.journey-node.shared .journey-label-card rect {
  stroke: var(--node-color, var(--focus));
  stroke-width: 1.5;
}

.journey-node.dog-path .journey-label-card rect {
  stroke: rgba(47, 114, 136, 0.72);
}

.journey-card-marker {
  fill: var(--node-color, #6b736c);
  font-size: 9px;
  font-weight: 800;
}

.journey-card-title {
  fill: #303831;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11.5px;
  font-weight: 600;
}

.journey-node.major .journey-card-title,
.journey-node.shared .journey-card-title {
  font-size: 12.5px;
  font-weight: 700;
}

.journey-card-age {
  fill: #757d76;
  font-size: 8.5px;
  font-weight: 600;
}

.journey-card-marker,
.journey-card-title,
.journey-card-age {
  pointer-events: none;
}

.tree-label,
.timeline-label,
.family-label,
.family-sublabel,
.generation-label {
  paint-order: stroke;
  stroke: var(--paper);
  stroke-linejoin: round;
}

.tree-label,
.timeline-label {
  fill: #444c45;
  stroke-width: 5px;
  font-size: 11px;
  pointer-events: none;
}

.tree-node.major .tree-label,
.timeline-node.major .timeline-label {
  fill: #2d352e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 600;
}

.tree-node.human-path .tree-label,
.timeline-node.human-path .timeline-label {
  fill: #8f3028;
}

.tree-node.gateway .tree-label,
.timeline-node.gateway .timeline-label {
  font-size: 18px;
  font-weight: 700;
}

.priority-1 {
  opacity: 0;
}

#world-layer.zoom-detail-1 .priority-1 {
  opacity: 0.8;
}

#world-layer.zoom-detail-2 .priority-1 {
  opacity: 1;
}

.family-card {
  fill: #fbfaf6;
  stroke: #aeb4ad;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.family-node:hover .family-card {
  stroke: #64766a;
}

.family-node.selected .family-card {
  stroke: var(--focus);
  stroke-width: 2.4;
}

.family-country {
  fill: var(--country-color, #b4b8b2);
}

.family-label {
  fill: #303831;
  stroke-width: 4px;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.family-node.generation-0 .family-label,
.family-node.generation-1 .family-label {
  font-size: 15px;
}

.family-sublabel {
  fill: #777e77;
  stroke-width: 3px;
  font-size: 8px;
  pointer-events: none;
}

.family-node.generation-0 .family-sublabel,
.family-node.generation-1 .family-sublabel {
  font-size: 10px;
}

.generation-guide {
  stroke: #d9d9d1;
  stroke-width: 1;
  stroke-dasharray: 3 6;
  vector-effect: non-scaling-stroke;
}

.generation-label {
  fill: #7f867f;
  stroke-width: 4px;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}

.family-today-halo {
  fill: rgba(23, 117, 138, 0.06);
  stroke: rgba(23, 117, 138, 0.28);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 980px) {
  .explorer-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .detail-panel {
    padding: 26px 21px;
  }

  .detail-panel h2 {
    font-size: 24px;
  }
}

@media (max-width: 760px) {
  #app {
    display: block;
  }

  .app-header {
    min-height: 104px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand strong {
    font-size: 18px;
  }

  .breadcrumbs {
    height: 42px;
    padding: 0 14px;
  }

  .crumb {
    padding-right: 20px;
    padding-left: 13px;
    font-size: 11px;
  }

  .crumb:first-child {
    padding-left: 0;
  }

  .explorer-shell {
    display: block;
  }

  .tree-stage {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .scene-heading {
    position: relative;
    top: auto;
    left: auto;
    grid-row: 1;
    width: 100%;
    padding: 16px 16px 15px;
    border-bottom: 1px solid var(--rule);
    background: rgba(250, 249, 245, 0.97);
  }

  .tree-stage.is-section-focused .scene-heading {
    display: none;
  }

  #tree-canvas {
    grid-row: 2;
    grid-column: 1;
    height: clamp(430px, 58vh, 560px);
  }

  .scene-heading h1 {
    max-width: 520px;
    font-size: 26px;
    line-height: 1.02;
  }

  #scene-subtitle {
    max-width: 520px;
    font-size: 11px;
  }

  .map-tools {
    position: relative;
    grid-row: 2;
    grid-column: 1;
    align-self: start;
    justify-self: end;
    top: auto;
    right: auto;
    bottom: auto;
    display: grid;
    margin: 12px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .map-key {
    left: 14px;
    right: 14px;
    bottom: 39px;
    gap: 11px;
    font-size: 9px;
  }

  .time-scale {
    left: 14px;
    right: 14px;
    font-size: 9px;
  }

  .detail-panel {
    min-height: 360px;
    padding: 24px 20px 28px;
  }

  .detail-visual {
    margin: -24px -20px 22px;
  }

  .detail-visual img {
    height: min(68vw, 300px);
  }

  .detail-visual.is-family img {
    height: min(64vw, 250px);
  }

  .detail-color {
    margin-bottom: 16px;
  }

  .detail-panel h2 {
    font-size: 25px;
  }
}

@media (max-width: 420px) {
  #tree-canvas {
    height: clamp(410px, 56vh, 500px);
  }

  .scene-heading h1 {
    font-size: 25px;
  }

  #scene-subtitle {
    max-width: none;
  }

  .map-key span:nth-child(3),
  .map-key span:nth-child(4) {
    display: none;
  }
}

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