:root {
  color-scheme: light;
  --ink: #293629;
  --muted: #64705d;
  --paper: #18251f;
  --card: #f0e5c8;
  --line: #a79c78;
  --green: #315b3d;
  --green-dark: #1c3929;
  --sage: #d3d5ae;
  --leather: #704b32;
  --rust: #9b482e;
  --blue: #547985;
  --gold: #d29a35;
  --warning: #963d32;
  --shadow: 5px 5px 0 rgb(5 13 9 / 38%);
  font-family: "Courier New", "Lucida Console", monospace;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 0;
  margin: 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 1.3%) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / 1.3%) 1px, transparent 1px),
    var(--paper);
  background-size: 8px 8px;
  color: #e9dfc1;
}

a {
  color: inherit;
}

.site-header {
  min-height: 76px;
  padding: 0 max(5vw, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 2px solid #a88543;
  background: #101a15;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f0e6c9;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #d5ab55;
  border-radius: 2px;
  background: #23432e;
  color: #fffdf7;
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: -.05em;
}

.brand-light {
  color: #d5ab55;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #c2c2a0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.nav-link:hover,
.nav-link.is-active {
  border-color: #b18a45;
  background: #273a2d;
  color: #f0d28c;
}

.page-shell {
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
  padding: 31px 0 80px;
}

.map-hero-head {
  margin: 0 0 17px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.map-hero-head h1 {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: 1.05;
}

.map-hero-head p:last-child {
  margin: 8px 0 0;
  color: #c3c1a4;
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: 345px;
  padding: 48px 52px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 82% 116%, rgb(206 169 104 / 42%) 0 12%, transparent 12.3%),
    radial-gradient(ellipse at 91% 111%, rgb(129 135 94 / 50%) 0 18%, transparent 18.3%),
    radial-gradient(ellipse at 76% 118%, rgb(107 119 81 / 36%) 0 25%, transparent 25.3%),
    linear-gradient(112deg, #e4dec9 0%, #e5ddc8 48%, #d6d3b9 100%);
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  right: 5%;
  bottom: 21%;
  width: 36%;
  height: 1px;
  background: rgb(113 92 54 / 40%);
  content: "";
  transform: rotate(-9deg);
  transform-origin: right;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rust);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1,
.page-intro h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 6vw, 62px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.06;
}

.hero h1 span {
  color: var(--green);
}

.hero-copy {
  max-width: 445px;
  margin: 17px 0 23px;
  color: #5f6054;
  font-size: 14px;
  line-height: 1.75;
}

.button {
  min-height: 46px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.button:hover {
  transform: translate(-1px, -1px);
}

.button:focus-visible,
.nav-link:focus-visible,
.text-link:focus-visible,
.brand:focus-visible,
.entry-delete:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.button-primary {
  border-color: #d7b057;
  background: #315b3d;
  box-shadow: 3px 3px 0 #17251b;
  color: #f1e4c0;
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  border-color: #87764c;
  background: #e4d8b9;
  box-shadow: 3px 3px 0 rgb(38 47 31 / 30%);
  color: var(--green-dark);
}

.button-secondary:hover {
  border-color: var(--green);
}

.hero-stamp {
  position: absolute;
  right: 7%;
  bottom: 14%;
  width: 126px;
  height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgb(135 82 52 / 55%);
  border-radius: 50%;
  color: rgb(135 82 52 / 76%);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  transform: rotate(-13deg);
}

.hero-stamp::before {
  position: absolute;
  inset: 6px;
  border: 1px dashed rgb(135 82 52 / 43%);
  border-radius: 50%;
  content: "";
}

.hero-stamp strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  letter-spacing: -.06em;
}

.section-block {
  margin-top: 57px;
}

.section-heading,
.trail-card-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading {
  margin-bottom: 19px;
}

.section-heading h2,
.trail-card-heading h2,
.trail-card-heading h3,
.form-card-heading h2 {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.06em;
}

.section-heading h2 {
  color: #eee2c3;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--rust);
}

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

.journey-summary,
.camp-section,
.recent-section {
  margin-top: 36px;
}

.trail-party {
  margin-top: 16px;
  padding: 17px 19px;
  border: 1px dashed #95865f;
  border-radius: 2px;
  background: #e8ddc0;
}

.trail-party-heading {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trail-party-heading h3 {
  margin: 0;
  color: var(--green-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
}

.trail-party-heading > span {
  color: var(--muted);
  font-size: 11px;
}

.trail-party-heading strong {
  color: var(--green-dark);
}

.participant-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 8px;
}

.participant-row {
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #dce2d8;
  border-radius: 2px;
  background: #f4ebd5;
}

.participant-row.is-current {
  border-color: #9ab29c;
  background: #f0f5ed;
}

.participant-row strong {
  overflow: hidden;
  color: var(--green-dark);
  font-size: 12px;
  text-overflow: ellipsis;
}

.participant-row span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.stat-card {
  min-height: 129px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 2px solid #746847;
  border-radius: 2px;
  background: #e9dec0;
  box-shadow: 4px 4px 0 rgb(4 12 8 / 35%);
}

.stat-label,
.stat-foot {
  color: var(--muted);
  font-size: 11px;
}

.stat-label {
  margin-bottom: 6px;
  font-weight: 600;
}

.stat-value {
  color: var(--green-dark);
  font-family: "Courier New", monospace;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.stat-foot {
  margin-top: 5px;
}

.stat-location {
  font-size: 25px;
}

.trail-card {
  margin-top: 17px;
  padding: 25px 27px 20px;
  border: 2px solid #8d815f;
  border-radius: 2px;
  background: #e9dec0;
  box-shadow: 5px 5px 0 rgb(4 12 8 / 42%);
}

.map-hero-card {
  margin-top: 0;
  padding: 23px 26px 20px;
}

.trail-card-heading {
  align-items: center;
}

.trail-card-heading .eyebrow {
  margin-bottom: 5px;
}

.trail-card-heading h3,
.trail-card-heading h2 {
  font-size: 22px;
}

.distance-chip {
  padding: 8px 11px;
  border: 1px solid #a58b4c;
  border-radius: 2px;
  background: #ded2ad;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.trail-map {
  margin: 9px 0 0;
  overflow: visible;
}

.trail-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.us-map {
  margin: 8px 0 12px;
  border: 3px double #3b2a1a;
  border-radius: 0;
  background: #a9c7c2;
  box-shadow: inset 0 0 0 3px #d9edea;
}

.map-base {
  pointer-events: none;
}

.state-shapes {
  fill: #ecd9a6;
  stroke: #8a7048;
  stroke-width: 1;
  stroke-linejoin: round;
}

.state-labels {
  fill: #7a6440;
  font: 700 8.5px "Courier New", monospace;
  text-anchor: middle;
  opacity: .75;
}

.map-feature-label {
  pointer-events: none;
  text-anchor: middle;
  font-family: "Courier New", monospace;
}

.map-river {
  fill: none;
  stroke: #5f8d9a;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

.map-peak {
  fill: #8d6a45;
  stroke: #5d4129;
  stroke-width: .8;
  stroke-linejoin: round;
}

.map-peak-cap {
  fill: #f6ecd0;
}

.map-river-label {
  fill: #3f6c7a;
  font-size: 8px;
  font-style: italic;
}

.map-range-label {
  fill: #5d4129;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.map-water-label {
  fill: #3f6c7a;
  font-size: 9px;
  letter-spacing: .3em;
  opacity: .85;
}

.route-remaining,
.route-completed {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.route-remaining {
  stroke: var(--leather);
  stroke-dasharray: 2 7;
  opacity: .78;
}

.route-completed {
  stroke: #9f672a;
  stroke-width: 6;
}

.map-waypoint {
  cursor: pointer;
  outline: none;
}

.waypoint-leader {
  stroke: #8c7959;
  stroke-dasharray: 2 3;
  stroke-width: 1;
}

.map-waypoint circle {
  fill: #fffdf7;
  stroke: var(--leather);
  stroke-width: 2.5;
  transition: r .15s ease, fill .15s ease, stroke .15s ease;
}

.map-waypoint text {
  fill: var(--green-dark);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 700;
  pointer-events: none;
  text-anchor: middle;
}

.map-waypoint.is-passed circle {
  fill: var(--sage);
  stroke: var(--green);
}

.map-waypoint.is-selected circle,
.map-waypoint:focus-visible circle,
.map-waypoint:hover circle {
  fill: #efd28d;
  r: 12px;
  stroke: #744a2e;
}

.map-wagon {
  filter: drop-shadow(0 1px 1px rgb(38 35 26 / 35%));
  pointer-events: none;
}

.wagon-shadow {
  fill: none;
  stroke: rgb(63 54 39 / 45%);
  stroke-linecap: round;
  stroke-width: 2;
}

.wagon-cover {
  fill: #f2e5c4;
  stroke: #684832;
  stroke-width: 1.5;
}

.wagon-cover-rib {
  fill: none;
  stroke: #a57b4e;
  stroke-width: .8;
}

.wagon-bed,
.wagon-axle {
  fill: #9a6340;
  stroke: #5d422f;
  stroke-width: 1.2;
}

.wagon-wheel {
  fill: #704b34;
  stroke: #f4e7c6;
  stroke-width: 1;
}

.wagon-hub {
  fill: #d4ad6a;
  stroke: #513c2d;
  stroke-width: .8;
}

.wagon-spoke {
  stroke: #f1dfb8;
  stroke-width: .8;
}

.map-legend {
  margin-bottom: 17px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 10px;
}

.map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

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

.legend-completed {
  border-color: var(--green);
}

.legend-remaining {
  border-color: var(--leather);
  border-top-style: dotted;
}

.legend-relief {
  width: 22px;
  height: 12px;
  display: inline-block;
  border: 1px solid #918361;
  background: repeating-linear-gradient(135deg, #e3d9bb 0 3px, #9c9275 4px, #e3d9bb 5px);
}

.legend-wagon {
  width: 26px;
  height: 21px;
  flex: 0 0 auto;
}

.legend-wagon-cover {
  fill: #f2e5c4;
  stroke: var(--leather);
  stroke-width: 1.4;
}

.legend-wagon-bed {
  fill: #9a6340;
  stroke: #5d422f;
  stroke-width: 1;
}

.legend-wagon-wheel {
  fill: #704b34;
  stroke: #f4e7c6;
  stroke-width: 1;
}

.fitness-progress {
  padding: 15px 17px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 15px;
  border: 2px solid #777550;
  border-radius: 2px;
  background: #d6d4b2;
}

.fitness-progress > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fitness-progress > div:first-child > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fitness-progress > div:first-child > strong {
  color: var(--green-dark);
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: 600;
}

.fitness-percent {
  color: var(--green-dark);
  font-size: 15px;
}

.fitness-progress .progress-track {
  grid-column: 1 / -1;
  height: 11px;
  background: #d7e0d5;
}

.fitness-progress .progress-fill {
  background: linear-gradient(90deg, #78926c, var(--green-dark));
}

.map-readout {
  margin-top: 18px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #ddd2b4;
}

.map-readout > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-readout > div > span,
.map-readout small {
  color: var(--muted);
  font-size: 10px;
}

.map-readout strong {
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.35;
}

.map-readout small {
  font-size: 10px;
}

.landmark-detail {
  margin-top: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 15px;
  border-left: 3px solid var(--gold);
  background: #f2e7ca;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.landmark-detail strong {
  color: var(--ink);
  font-size: 12px;
}

.landmark-list {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.landmark-chip {
  min-width: 0;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border: 1px solid #e3dccb;
  border-radius: 1px;
  background: #f2e8cf;
  color: #66675c;
  font: inherit;
  font-size: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.landmark-chip:hover,
.landmark-chip:focus-visible,
.landmark-chip.is-selected {
  border-color: var(--green);
  outline: none;
  background: #eff2e8;
}

.landmark-chip.is-passed > span:first-child {
  color: var(--green-dark);
  font-weight: 700;
}

.landmark-chip small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
}

.map-disclaimer {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.camp-card {
  padding: 22px 24px 18px;
  border: 2px solid #887950;
  border-radius: 2px;
  background: #e9dec0;
  box-shadow: 5px 5px 0 rgb(4 12 8 / 42%);
}

.camp-supplies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.camp-supplies > div {
  min-width: 150px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #d9dbbb;
}

.camp-supplies span {
  color: var(--muted);
  font-size: 10px;
}

.camp-supplies strong {
  color: var(--green-dark);
  font-family: "Courier New", monospace;
  font-size: 20px;
}

.camp-intro {
  margin: 15px 0 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.hunt-opportunity-note {
  margin: -4px 0 14px;
  color: var(--blue);
  font-size: 11px;
  line-height: 1.5;
}

.hunt-scene {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hunt-location {
  min-width: 0;
  padding: 9px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  overflow: hidden;
  border: 1px solid #d7dfd5;
  border-radius: 2px;
  background: #e4dbbc;
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.hunt-location:hover:not(:disabled) {
  border-color: var(--green);
  background: #f0f4ec;
  box-shadow: 2px 2px 0 rgb(38 47 31 / 26%);
  transform: translateY(-2px);
}

.hunt-location:focus-visible,
.next-hunt-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.hunt-location:disabled {
  cursor: not-allowed;
}

.hunt-landscape {
  position: relative;
  min-height: 116px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(76 104 82 / 18%);
  border-radius: 7px;
  background:
    radial-gradient(ellipse at 18% 31%, rgb(255 255 255 / 55%) 0 8%, transparent 9%),
    linear-gradient(180deg, #c9dce0 0%, #d9e1d1 56%, #d0bc8e 57%, #c9ae7b 100%);
}

.hunt-ground {
  position: absolute;
  right: -10%;
  bottom: 13px;
  left: -10%;
  height: 24px;
  border-radius: 50%;
  background: #a2ae79;
  box-shadow: 0 7px 0 #87956d, 0 15px 0 #b2a276;
}

.hunt-illustration {
  position: relative;
  z-index: 1;
  margin-top: -12px;
  font-size: clamp(38px, 6vw, 55px);
  line-height: 1;
  filter: drop-shadow(0 3px 1px rgb(42 54 42 / 22%));
}

.hunt-location > strong {
  font-size: 12px;
}

.hunt-location > small {
  min-height: 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.hunt-location.is-found {
  border-color: var(--green);
  background: #eff5eb;
}

.hunt-location.is-found .hunt-landscape {
  border-color: #a8c0a5;
  background:
    radial-gradient(ellipse at 50% 74%, rgb(214 194 132 / 62%) 0 13%, transparent 14%),
    linear-gradient(180deg, #b7d4dc 0%, #dbe4d3 56%, #c8b783 57%, #b6a372 100%);
}

.hunt-location.is-empty {
  border-color: #d7b5a9;
  background: #faf1eb;
}

.hunt-location.is-empty .hunt-landscape {
  filter: saturate(.55);
}

.hunt-message {
  min-height: 34px;
  margin: 0;
  color: var(--green-dark);
  font-size: 11px;
  line-height: 1.5;
}

.hunt-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.next-hunt-button {
  flex: 0 0 auto;
}

.next-hunt-button:disabled {
  display: none;
}

.hunt-message.is-error {
  color: var(--warning);
}

.recent-section {
  margin-top: 48px;
}

.entry-list {
  border-top: 1px solid var(--line);
}

.entry-row {
  min-height: 67px;
  padding: 13px 4px;
  display: grid;
  grid-template-columns: minmax(112px, .7fr) minmax(70px, .5fr) minmax(130px, 2fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.entry-date {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.entry-miles {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}

.entry-notes {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-delete {
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--leather);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.entry-delete:hover {
  background: #f3e9df;
}

.empty-state {
  margin: 0;
  padding: 22px 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.empty-state a {
  color: var(--green);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-intro {
  margin-bottom: 30px;
}

.page-intro h1 {
  font-size: clamp(38px, 5vw, 52px);
}

.page-intro > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.narrow-shell {
  width: min(760px, calc(100% - 48px));
}

.form-card {
  padding: 31px 34px 33px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.mileage-form button:disabled {
  cursor: wait;
  opacity: .7;
}

.storage-notice {
  margin: -11px 0 20px;
  background: #edf3ea;
  color: var(--green-dark);
}

.trail-party .empty-state {
  grid-column: 1 / -1;
  padding: 10px 0;
}

.form-card-heading {
  margin-bottom: 27px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.form-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf0e7;
  color: var(--green);
  font-size: 23px;
}

.form-card-heading .eyebrow {
  margin-bottom: 4px;
}

.form-card-heading h2 {
  font-size: 23px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  min-width: 0;
  margin-bottom: 20px;
}

.form-field label {
  margin-bottom: 8px;
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid #ddd5c4;
  border-radius: 2px;
  outline: 0;
  background: #fffefa;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(66 92 58 / 12%);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--warning);
}

.form-field textarea {
  min-height: 105px;
  resize: vertical;
}

.form-field small {
  margin-top: 6px;
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.input-with-unit {
  position: relative;
}

.input-with-unit input {
  padding-right: 62px;
}

.input-with-unit > span {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--muted);
  font-size: 11px;
  pointer-events: none;
  transform: translateY(-50%);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.form-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--green-dark);
  font-size: 12px;
}

.form-message.is-error,
.notice.is-error {
  color: var(--warning);
}

.notice {
  margin: -10px 0 19px;
  padding: 11px 13px;
  border-radius: 6px;
  background: #f7ece7;
  color: #713c35;
  font-size: 12px;
  line-height: 1.5;
}

.privacy-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.privacy-note span {
  margin-right: 5px;
  color: var(--green);
}

.progress-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.progress-stats .stat-card {
  min-height: 119px;
  padding: 16px 18px;
}

.progress-stats .stat-value {
  font-size: 26px;
}

.progress-stats .stat-location {
  font-size: 21px;
}

.progress-trail-card {
  margin-top: 17px;
}

.history-section {
  margin-top: 51px;
}

.button-small {
  min-height: 38px;
  padding: 0 13px;
  font-size: 11px;
}

.history-summary {
  margin-bottom: 23px;
  padding: 16px 19px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 253 247 / 65%);
}

.history-summary div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.history-summary span {
  color: var(--muted);
  font-size: 10px;
}

.history-summary strong {
  color: var(--green-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
}

.site-footer {
  min-height: 66px;
  padding: 18px max(5vw, calc((100vw - 1100px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 2px solid #77613a;
  background: #101a15;
  color: #c2c1a1;
  font-size: 10px;
}

.site-footer span:first-child {
  color: #e0c17c;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .page-shell {
    padding-top: 37px;
  }

  .map-hero-head {
    align-items: flex-start;
  }

  .map-hero-card {
    padding: 19px 17px 17px;
  }

  .hero {
    min-height: 340px;
    padding: 38px 32px;
  }

  .hero-stamp {
    right: 5%;
    bottom: 8%;
    width: 100px;
    height: 100px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card-location {
    grid-column: span 2;
  }

  .progress-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress-stats .stat-card-location {
    grid-column: auto;
  }

  .trail-card {
    padding: 21px 18px 17px;
  }

  .map-hero-card {
    padding: 18px 14px 15px;
  }

  .landmark-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 67px;
    padding: 0 18px;
    gap: 10px;
  }

  .brand {
    gap: 7px;
    font-size: 13px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
    font-size: 11px;
  }

  .site-nav {
    gap: 1px;
  }

  .nav-link {
    padding: 8px 9px;
    font-size: 11px;
  }

  .page-shell,
  .narrow-shell {
    width: calc(100% - 32px);
    padding-top: 28px;
    padding-bottom: 55px;
  }

  .hero {
    min-height: 365px;
    padding: 31px 24px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 52px);
  }

  .hero-copy {
    max-width: 340px;
    font-size: 13px;
  }

  .hero-stamp {
    right: 7%;
    bottom: 5%;
    width: 82px;
    height: 82px;
    font-size: 6px;
  }

  .hero-stamp strong {
    font-size: 23px;
  }

  .section-block {
    margin-top: 40px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .section-heading > .text-link {
    margin-top: 20px;
    white-space: nowrap;
    font-size: 10px;
  }

  .stats-grid {
    gap: 9px;
  }

  .stat-card {
    min-height: 112px;
    padding: 15px;
  }

  .stat-value {
    font-size: 25px;
  }

  .stat-location {
    font-size: 22px;
  }

  .trail-card {
    padding: 18px 12px 14px;
  }

  .map-hero-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .map-hero-head h1 {
    font-size: 36px;
  }

  .map-hero-head p:last-child {
    font-size: 12px;
  }

  .map-hero-card {
    padding: 16px 10px 13px;
  }

  .trail-card-heading h3,
  .trail-card-heading h2 {
    font-size: 19px;
  }

  .distance-chip {
    padding: 7px 8px;
    font-size: 9px;
  }

  .map-readout {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .map-readout > div:last-child {
    grid-column: span 2;
  }

  .landmark-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .landmark-chip {
    padding: 8px 7px;
    font-size: 9px;
  }

  .fitness-progress {
    padding: 12px;
  }

  .fitness-progress > div:first-child > strong {
    font-size: 16px;
  }

  .fitness-percent {
    font-size: 13px;
  }

  .camp-card {
    padding: 15px 13px;
  }

  .camp-supplies > div {
    min-width: 125px;
    flex: 1;
    padding: 10px;
  }

  .hunt-scene {
    gap: 7px;
  }

  .hunt-location {
    padding: 6px;
  }

  .hunt-landscape {
    min-height: 90px;
  }

  .hunt-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .next-hunt-button {
    width: 100%;
  }

  .map-legend {
    gap: 8px 12px;
    font-size: 9px;
  }

  .state-labels {
    font-size: 15px;
  }

  .trail-endpoints {
    font-size: 9px;
  }

  .entry-row {
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
  }

  .entry-date {
    grid-column: 1;
  }

  .entry-miles {
    grid-column: 2;
    grid-row: 1;
  }

  .entry-notes {
    grid-column: 1;
  }

  .entry-delete {
    grid-column: 2;
    grid-row: 2;
  }

  .form-card {
    padding: 24px 19px;
  }

  .form-card-heading h2 {
    font-size: 21px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .progress-stats .stat-card {
    min-height: 105px;
    padding: 13px;
  }

  .progress-stats .stat-value {
    font-size: 23px;
  }

  .progress-stats .stat-location {
    font-size: 19px;
  }

  .history-summary {
    padding: 13px;
    gap: 8px;
  }

  .history-summary strong {
    font-size: 16px;
  }

  .site-footer {
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding: 0 12px;
    gap: 6px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .brand {
    gap: 5px;
    font-size: 11px;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .site-nav {
    width: 100%;
    gap: 0;
    justify-content: space-between;
  }

  .nav-link {
    padding: 7px 6px;
    font-size: 10px;
  }

  .progress-stats .stat-value {
    font-size: 20px;
  }

  .progress-stats .stat-location {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
}

.hunt-location.is-found {
  animation: hunt-pop .5s ease-out;
}

.hunt-location.is-empty {
  animation: hunt-shake .4s ease-out;
}

.hunt-location.is-searching .hunt-illustration {
  animation: hunt-rustle .25s ease-in-out infinite;
}

@keyframes hunt-pop {
  0% { transform: scale(.94); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes hunt-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes hunt-rustle {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

.entry-delete {
  justify-self: end;
  padding: 3px 9px;
  border: 1px solid #d7b5a9;
  border-radius: 2px;
  background: transparent;
  color: var(--warning);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.entry-delete:hover,
.entry-delete:focus-visible {
  background: #faf1eb;
}

.backup-actions {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.celebration {
  margin: 0 0 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--gold);
  border-radius: 8px;
}

.celebration p {
  margin: 4px 0 0;
}

.journey-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.journey-list li {
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.journey-list p {
  margin: 4px 0 0;
}

.backup-restore {
  cursor: pointer;
}

.form-message.is-error {
  color: var(--warning);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation: none !important;
  }
}

.page-intro h1 {
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.page-intro > p:last-child,
.privacy-note {
  color: #c3c1a4;
}

/* Old-school Oregon Trail flavor: chunky borders, hard shadows, amber-on-dark headings. */
h1,
h2,
.brand {
  text-shadow: 2px 2px 0 #000;
}

.section-heading h2,
.trail-card-heading h2 {
  letter-spacing: .04em;
}

.trail-card,
.camp-card,
.form-card,
.stat-card,
.entry-list {
  border: 3px double #3b2a1a;
  border-radius: 0;
  box-shadow: 5px 5px 0 #000;
}

.button {
  border-radius: 0;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.button:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.hunt-location,
.camp-supplies > div,
.progress-track,
.landmark-detail,
.map-readout,
.fitness-progress {
  border-radius: 0;
}

.hunt-landscape {
  border-radius: 0;
  image-rendering: pixelated;
}

.eyebrow {
  color: #b4472a;
  letter-spacing: .2em;
}

.site-header {
  border-bottom: 4px double #d29a35;
}

.nav-link.is-active {
  box-shadow: inset 0 -3px 0 #d29a35;
}

.eyebrow {
  font-family: "Courier New", monospace;
  letter-spacing: .12em;
}

.text-link {
  color: #e0bf73;
}

.text-link:hover {
  color: #f4e2b4;
}

.entry-list {
  padding: 0 16px;
  border: 2px solid #8d815f;
  background: #e9dec0;
  color: var(--ink);
}

.history-summary {
  border: 2px solid #746847;
  border-radius: 2px;
  background: #e9dec0;
  color: var(--ink);
}

.progress-trail-card {
  border-width: 2px;
}

.participant-row.is-current {
  border-color: #92713b;
  background: #e5d6ad;
}

.map-disclaimer {
  color: #625f4b;
}

.map-hero-head .button {
  flex: 0 0 auto;
}

.form-card {
  border: 2px solid #887950;
  background: #e9dec0;
  box-shadow: 5px 5px 0 rgb(4 12 8 / 42%);
}

.form-icon {
  border: 1px solid #9b834b;
  border-radius: 2px;
  background: #d9dbbb;
}

.storage-notice {
  border: 1px dashed #95865f;
  border-radius: 2px;
  background: #ded8b8;
  color: var(--green-dark);
}

.community-card {
  margin-top: 1rem;
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.community-stats span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted, inherit);
}

.community-stats strong {
  font-size: 1.25rem;
}

.community-recent-heading {
  margin: 1rem 0 0.25rem;
  font-size: 1rem;
}

.distance-chip.is-error {
  color: var(--rust);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
.brand {
  text-shadow: none;
}

.map-hero-head h1,
.page-intro h1,
.trail-card-heading h2,
.section-heading h2,
.form-card-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
  text-transform: none;
}

.trail-card,
.camp-card,
.form-card,
.stat-card,
.entry-list,
.history-summary {
  color: var(--ink);
  border-width: 1px;
  border-style: solid;
  border-color: #c9c0a9;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.button {
  border-radius: 7px;
  letter-spacing: .025em;
  text-transform: none;
}

.community-stats strong {
  color: var(--green-dark);
}

.community-stats[aria-busy="true"] strong {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.community-card .journey-list li {
  color: var(--ink);
}

.hunt-page-card {
  margin-top: 0;
  padding: 22px;
}

.hunt-page-card .hunt-scene {
  margin-top: 1.25rem;
}

@media (max-width: 520px) {
  .community-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    gap: 8px;
  }

  .nav-link {
    padding: 9px 8px;
    font-size: 12px;
  }

  .camp-supplies {
    width: 100%;
    min-width: 0;
  }

  .camp-supplies > div {
    flex: 1 1 calc(50% - 5px);
    min-width: calc(50% - 5px);
  }

  .hunt-page-card {
    min-width: 0;
  }
}

/* ---- Phase 3: camp scene, trail journal, landmark cards, hunting game ---- */
.camp-svg,
.hunt-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(112, 75, 50, 0.35);
  image-rendering: pixelated;
}

.hunt-canvas {
  aspect-ratio: 16 / 9;
  background: #e9d7a8;
  cursor: crosshair;
  touch-action: none;
}

.hunt-canvas:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

.camp-caption,
.hunt-help {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.hunt-send {
  margin-top: 20px;
  gap: 10px;
}

.trail-journal {
  display: grid;
  gap: 4px;
}

.journal-entry {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(112, 75, 50, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

.journal-entry small {
  flex: none;
  color: var(--leather);
}

.journal-entry.is-landmark,
.journal-entry.is-milestone,
.journal-entry.is-event {
  font-weight: 600;
  color: var(--green);
}

.event-card h2 {
  margin: 4px 0 8px;
}

.event-education {
  padding-top: 10px;
  border-top: 1px solid rgba(112, 75, 50, 0.25);
  font-size: 0.95rem;
}

.landmark-facts {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.landmark-facts dt {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leather);
}

.landmark-facts dd {
  margin: 2px 0 0;
  line-height: 1.5;
}

.landmark-facts dd:empty,
.landmark-facts div:has(dd:empty) {
  display: none;
}

.community-status-line {
  margin: 12px 0 0;
}

.distance-chip[hidden] {
  display: none;
}

.community-status-line:has([hidden]) {
  display: none;
}

/* ---- Typography and readability audit (Phase 3b) ----
   Minimums for HTML text: 16px body copy, 13px for captions and labels, 14px for controls.
   SVG map labels keep their own sizes because they scale with the map. */
:root {
  --muted: #4f5c49;
}

body {
  font-size: 16px;
  line-height: 1.55;
}

.eyebrow,
.distance-chip,
.landmark-chip,
.landmark-chip small,
.map-legend,
.map-readout small,
.map-readout > div > span,
.camp-supplies span,
.history-summary span,
.fitness-progress > div:first-child > span,
.form-field small,
.hunt-location > small,
.entry-date,
.entry-delete,
.stat-foot,
.privacy-note,
.map-disclaimer,
.site-footer,
.landmark-detail,
.community-stats span,
.form-message,
.notice,
.hunt-message {
  font-size: 0.8125rem;
  line-height: 1.5;
}

.nav-link,
.brand,
.button,
.button-small,
.text-link,
.form-field label,
.entry-notes,
.empty-state,
.hunt-help,
.camp-caption,
.landmark-detail strong,
.map-readout strong,
.map-hero-head p:last-child,
.fitness-percent,
.hero-copy {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.eyebrow {
  letter-spacing: 0.12em;
}

.map-hero-head p:last-child,
.page-intro p {
  max-width: 60ch;
}

.map-hero-head > div > p:not(.eyebrow),
.hero-copy {
  color: var(--ink);
}

.landmark-facts dt {
  font-size: 0.8125rem;
}

.landmark-facts dd {
  font-size: 0.9375rem;
}

.trail-card > h2,
.trail-card-heading h2 {
  line-height: 1.2;
}

.nav-link {
  min-height: 44px;
}

/* ---- Donner Party layer ---- */
.route-donner {
  fill: none;
  stroke: #8c3a2b;
  stroke-width: 3;
  stroke-dasharray: 7 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.donner-stop {
  fill: #f0e5c8;
  stroke: #8c3a2b;
  stroke-width: 1.5;
}

.donner-marker circle {
  fill: #f0e5c8;
  stroke: #8c3a2b;
  stroke-width: 2;
}

.donner-marker path {
  fill: #8c3a2b;
}

.legend-donner {
  border-top: 3px dashed #8c3a2b;
  background: none;
}

.landmark-donner {
  padding: 10px 12px;
  border-left: 3px solid #8c3a2b;
  background: rgba(140, 58, 43, 0.08);
}

.landmark-donner dt {
  color: #8c3a2b;
}

.donner-card {
  border-left: 5px solid #8c3a2b;
}

.donner-card h2 {
  margin: 4px 0 8px;
}

.donner-lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: #6f2c20;
}

.donner-next {
  color: var(--muted);
}

/* ---- Trail journal: diary timeline ---- */
.journal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 8px;
}

.journal-filter {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.journal-filter[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: #f6edd2;
}

.journal-filter:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

.journal-hero .trail-journal {
  position: relative;
  margin: 12px 0 0;
  padding: 0 0 0 22px;
  border-left: 2px solid rgba(112, 75, 50, 0.35);
  list-style: none;
}

.journal-hero .journal-entry {
  position: relative;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0 14px 4px;
  font-size: 1.0625rem;
}

.journal-hero .journal-entry::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 22px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--leather);
}

.journal-hero .journal-entry.is-donner::before {
  background: #8c3a2b;
}

.journal-hero .journal-entry.is-hunt::before {
  background: var(--gold);
}

.journal-hero .journal-entry.is-landmark::before,
.journal-hero .journal-entry.is-milestone::before {
  background: var(--green);
}

.journal-entry.is-donner {
  color: #6f2c20;
  font-style: italic;
}

.journal-entry small {
  font-size: 0.8125rem;
}

.private-journal-head {
  margin-top: 40px;
}

@media (prefers-reduced-motion: reduce) {
  .journal-entry {
    transition: none;
  }
}

/* ---- Community camp diorama (Phase 5): sky, light, motion, weather ---- */
.camp-svg {
  overflow: hidden;
}

.camp-svg .camp-sky { fill: #cfe0e8; }
.camp-svg.stage-mid .camp-sky { fill: #f1d6a0; }
.camp-svg.stage-late .camp-sky { fill: #e9b872; }
.camp-svg.weather-rain .camp-sky { fill: #9fb0b8; }
.camp-svg.weather-fog .camp-sky { fill: #cdd3d2; }
.camp-svg.weather-snow .camp-sky { fill: #dde4ea; }
.camp-svg[data-time="dawn"] .camp-sky { fill: #f3c9a4; }
.camp-svg[data-time="dusk"] .camp-sky { fill: #d98e68; }
.camp-svg[data-time="night"] .camp-sky { fill: #1c2a4a; }

.camp-sun { fill: #ffe08a; }
.camp-moon { fill: #f4f0d8; display: none; }
.camp-star { opacity: 0; }
.camp-dark { fill: #0b1b3a; opacity: 0; pointer-events: none; }
.camp-svg[data-time="dawn"] .camp-dark { opacity: 0.1; }
.camp-svg[data-time="dusk"] .camp-dark { opacity: 0.22; }
.camp-svg[data-time="night"] .camp-dark { opacity: 0.45; }
.camp-svg[data-time="night"] .camp-sun,
.camp-svg[data-time="dusk"] .camp-sun { display: none; }
.camp-svg[data-time="night"] .camp-moon { display: block; }
.camp-svg[data-time="night"] .camp-star { opacity: 0.9; animation: camp-twinkle 3s ease-in-out infinite; }

.camp-glow { fill: #ffb347; opacity: 0.07; animation: camp-pulse 2.4s ease-in-out infinite; }
.camp-svg[data-time="night"] .camp-glow,
.camp-svg[data-time="dusk"] .camp-glow { opacity: 0.32; }
.camp-lantern { fill: #ffd86a; opacity: 0; }
.camp-svg[data-time="night"] .camp-lantern { opacity: 0.4; animation: camp-pulse 3.2s ease-in-out infinite; }
.camp-svg[data-time="dusk"] .camp-lantern { opacity: 0.25; }
.camp-dark ~ .camp-weather { pointer-events: none; }

.camp-glow,
.camp-lantern,
.camp-flame,
.camp-smoke,
.camp-cloud,
.camp-wagon,
.camp-grass,
.camp-wander,
.camp-flag,
.camp-tail,
.camp-gust,
.camp-fog-bank,
.camp-drops,
.camp-mover {
  transform-box: fill-box;
}

.camp-glow,
.camp-lantern { transform-origin: 50% 50%; }
.camp-flame { transform-origin: 50% 100%; animation: camp-flicker 0.7s ease-in-out infinite alternate; }
.camp-flame.f1 { animation-duration: 0.55s; animation-delay: -0.2s; }
.camp-flame.f2 { animation-duration: 0.9s; animation-delay: -0.4s; }
.camp-smoke { opacity: 0; animation: camp-smoke 4s ease-out infinite; animation-delay: var(--delay, 0s); }
.camp-cloud { transform: translate(-60px, var(--y, 20px)); animation: camp-drift 120s linear infinite; animation-delay: var(--delay, 0s); }
.weather-windy .camp-cloud { animation-duration: 40s; }
.weather-windy .camp-flame { animation-duration: 0.3s; }
.camp-wagon { animation: camp-sway 3.4s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.camp-grass { transform-origin: 50% 100%; animation: camp-grass 4s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.weather-windy .camp-grass { animation-duration: 1.4s; }
.camp-wander { animation: camp-wander 22s ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
.camp-tail { transform-origin: 100% 50%; animation: camp-wag 0.6s ease-in-out infinite alternate; }
.camp-mover { animation: camp-stroll var(--dur, 12s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
.camp-settler.is-sit .camp-mover,
.camp-settler.is-tend .camp-mover { animation: camp-bob 2.6s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.camp-settler.is-returning .camp-mover { animation: camp-arrive 7s ease-out 1 both; }
.camp-flag { transform-origin: 50% 0; animation: camp-flutter 1.2s ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
.camp-new-crate { animation: camp-pop 0.8s ease-out 1 both; }
.camp-gust { animation: camp-gust 1.6s linear infinite; }
.camp-drops { animation: camp-fall 0.5s linear infinite; }
.camp-weather-snow .camp-drops { animation: camp-fall 3.2s linear infinite; }
.camp-fog-bank { animation: camp-fog 30s ease-in-out infinite alternate; }
.camp-fog-slow { animation-duration: 46s; }

.camp-settler { cursor: pointer; outline: none; }
.camp-settler:focus-visible .camp-hit,
.camp-settler.is-selected .camp-hit { stroke: #fff6dc; stroke-width: 1; stroke-dasharray: 2 2; }
.camp-name {
  font-family: Georgia, serif;
  font-size: 9px;
  font-weight: 700;
  fill: #fff6dc;
  stroke: #2a1d12;
  stroke-width: 2.5px;
  paint-order: stroke;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.camp-settler:hover .camp-name,
.camp-settler:focus-visible .camp-name,
.camp-settler.is-selected .camp-name { opacity: 1; }
.camp-board { stroke: #704b32; stroke-width: 1.5; }
.camp-banner-text { font-family: Georgia, serif; font-size: 11px; font-weight: 700; fill: #293629; }

.camp-news {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--green-dark);
}
.camp-news:empty { display: none; }
.camp-roster { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.camp-roster:empty { display: none; }
.camp-roster-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.camp-roster-button[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #f6edd2; }
.camp-roster-button:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
.camp-person { margin: 10px 0 0; min-height: 1.5em; font-size: 0.9375rem; color: var(--ink); }

@keyframes camp-flicker { from { transform: scale(1, 0.85) translateX(-0.5px); } to { transform: scale(1.08, 1.12) translateX(0.5px); } }
@keyframes camp-smoke { 0% { opacity: 0; transform: translate(0, 0) scale(0.6); } 20% { opacity: 0.7; } 100% { opacity: 0; transform: translate(10px, -46px) scale(1.8); } }
@keyframes camp-drift { to { transform: translate(470px, var(--y, 20px)); } }
@keyframes camp-sway { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.6px); } }
@keyframes camp-grass { 0%, 100% { transform: skewX(-6deg); } 50% { transform: skewX(6deg); } }
@keyframes camp-wander { to { transform: translateX(var(--walk, 12px)); } }
@keyframes camp-wag { to { transform: rotate(-25deg); } }
@keyframes camp-stroll { to { transform: translateX(var(--walk, 0px)); } }
@keyframes camp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes camp-arrive { from { transform: translateX(-150px); } to { transform: translateX(0); } }
@keyframes camp-flutter { to { transform: rotate(9deg); } }
@keyframes camp-pop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes camp-gust { from { transform: translateX(-30px); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(440px); opacity: 0; } }
@keyframes camp-fall { to { transform: translateY(40px); } }
@keyframes camp-fog { to { transform: translateX(80px); } }
@keyframes camp-pulse { 0%, 100% { transform: scale(0.93); } 50% { transform: scale(1.07); } }
@keyframes camp-twinkle { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.25; } }

@media (prefers-reduced-motion: reduce) {
  .camp-svg *,
  .hunt-canvas {
    animation: none !important;
  }
  .camp-cloud { transform: translate(40px, var(--y, 20px)); }
}

/* Phase 7: regional camp character, accessible hotspots and the Donner Memorial. */
.camp-cycle-label {
  margin: 8px 0 0;
  color: var(--green-dark);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.camp-interaction-help {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.journal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.camp-region { pointer-events: none; }
.region-missouri .camp-grass-line { fill: #557a45; }
.region-plains .camp-grass-line { fill: #9bab5f; }
.region-wyoming .camp-grass-line { fill: #897b65; }
.region-mountains .camp-grass-line { fill: #718268; }
.region-oregon .camp-grass-line { fill: #416c49; }
.region-missouri .camp-soil { fill: #7d8050; }
.region-plains .camp-soil { fill: #9d8a53; }
.region-wyoming .camp-soil { fill: #84785f; }
.region-mountains .camp-soil { fill: #777d72; }
.region-oregon .camp-soil { fill: #5f7650; }

.camp-wagon-hotspot,
.camp-fire-hotspot,
.camp-supplies-layer { cursor: pointer; }
.camp-wagon-hotspot:focus-visible .camp-wagon,
.camp-fire-hotspot:focus-visible .camp-glow,
.camp-supplies-layer:focus-visible {
  filter: drop-shadow(0 0 2px #fff6dc);
}
.camp-wagon-hotspot:hover .camp-wagon { filter: brightness(1.08); }
.camp-fire-hotspot:hover .camp-glow { opacity: 0.4; }
.camp-supplies-layer:hover { filter: brightness(1.12); }

.donner-memorial-card > h2 { margin-top: 0; }
.donner-memorial-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 20px 0;
}
.donner-member-list {
  display: grid;
  gap: 8px;
}
.donner-member-button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.donner-member-button[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: #f6edd2;
}
.donner-member-button:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}
.donner-member-profile {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
}
.donner-member-profile.is-locked {
  display: block;
  text-align: center;
}
.donner-member-profile.is-locked > p {
  margin: 0;
  padding: 8px;
}
.donner-member-profile > :not(.donner-silhouette) { grid-column: 2; }
.donner-member-profile > .donner-silhouette {
  grid-column: 1;
  grid-row: 1 / span 5;
  width: 76px;
  height: 76px;
}
.donner-member-profile h3 { margin: 2px 0 4px; font-size: 1.25rem; }
.donner-member-profile p { margin: 8px 0; line-height: 1.55; }
.donner-member-profile a { color: var(--green-dark); font-weight: 700; }
.donner-member-role { color: var(--rust); font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.silhouette-ground { fill: #d8c99e; stroke: #8a6b3f; stroke-width: 2; }
.silhouette-body { fill: #374c3d; }
.silhouette-hat { fill: #6f4a2d; }
.silhouette-james-reed .silhouette-ground,
.silhouette-george-donner .silhouette-ground { fill: #c9b68a; }
.silhouette-tamsen-donner .silhouette-hat,
.silhouette-virginia-reed .silhouette-hat { fill: #874b35; }

@media (max-width: 600px) {
  .donner-memorial-layout { grid-template-columns: 1fr; }
  .donner-member-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donner-member-profile { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .donner-member-profile > .donner-silhouette { width: 58px; height: 58px; }
}