/* ============================================================================
   style.css — Broken Bow 2026 field-guide theme.
   Two palettes: default = "daylight" (kraft paper), [data-theme="night"] = campfire.
   Fonts: Bitter (display) + Spectral (body), loaded in index.html.
   All layout is responsive; no framework.
   ========================================================================== */

:root {
  --bg:      #f3ead6;
  --surface: #f8f1e1;
  --surface-2:#efe3c8;
  --text:    #2a2218;
  --muted:   #6b5d45;
  --brand:   #2f4a3c;   /* forest green */
  --brand-2: #3c5e4c;
  --accent:  #c4622d;   /* rust */
  --accent-2:#a64f22;
  --line:    #d8c7a4;
  --ok:      #2f6b46;
  --gold:    #b07a26;   /* rating star (earthy gold) */
  --shadow:  rgba(42,34,24,.18);

  /* category color-coding — palette-only, NO rainbow (green/rust/kraft/sage) */
  --cat-outdoors: #2f4a3c;  /* forest green  */
  --cat-animals:  #a64f22;  /* rust          */
  --cat-play:     #8a6d3b;  /* kraft / olive */
  --cat-indoors:  #5d7b66;  /* sage          */
}

html[data-theme="night"] {
  --bg:      #1a1510;
  --surface: #261e16;
  --surface-2:#2f261b;
  --text:    #f1e7d4;
  --muted:   #b39c78;
  --brand:   #84a98c;
  --brand-2: #9bbfa3;
  --accent:  #e0813a;
  --accent-2:#f0954f;
  --line:    #3a2f22;
  --ok:      #7fbf93;
  --gold:    #d8b057;
  --shadow:  rgba(0,0,0,.45);

  --cat-outdoors: #84a98c;
  --cat-animals:  #e0813a;
  --cat-play:     #c9a86a;
  --cat-indoors:  #7d9d86;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: "Spectral", Georgia, serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(0,0,0,.035) 0, transparent 38%),
    radial-gradient(circle at 88% 92%, rgba(0,0,0,.045) 0, transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  line-height: 1.55;
  transition: background-color .4s ease, color .4s ease;
}

h1,h2,h3 { font-family: "Bitter", serif; line-height: 1.05; color: var(--brand); }
a { color: var(--accent); }

.wrap { width: min(960px, 100%); margin: 0 auto; padding: 0 18px; }

/* ---------- progressive-enhancement reveal (content shows even w/o JS) ---- */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 8px; padding: 8px 14px; }
.nav-links { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  white-space: nowrap; text-decoration: none; color: var(--brand);
  font-family: "Bitter", serif; font-weight: 600; font-size: 13px;
  padding: 6px 10px; border-radius: 8px;
}
.nav-links a:hover { background: var(--surface-2); }
.theme-toggle {
  flex: none; cursor: pointer; border: 2px solid var(--brand);
  background: var(--surface); color: var(--brand);
  font-family: "Bitter", serif; font-weight: 700; font-size: 12px;
  padding: 6px 12px; border-radius: 20px;
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: 44px 0 28px; }
.hero .eyebrow {
  font-family: "Bitter", serif; font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; font-size: 12px; color: var(--accent);
}
.hero h1 { font-size: clamp(40px, 10vw, 72px); margin: 6px 0 4px; }
.hero .tagline { font-size: 18px; color: var(--text); }
.hero-badge {
  width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--brand); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 8px var(--brand), 0 10px 22px var(--shadow);
}
.hero-badge svg { width: 86px; height: 86px; }
.roster {
  margin-top: 16px; font-size: 14px; letter-spacing: .04em; color: var(--muted);
}
.hero-cabin {
  margin-top: 12px; font-size: 13px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap;
}
.hero-cabin svg { width: 15px; height: 15px; fill: var(--brand-2); flex: none; }
.hero-cabin .hc-sep { color: var(--line); }
.hero-cabin .dir { font-size: 13px; }

/* ---------- countdown ---------- */
.countdown {
  display: flex; justify-content: center; gap: 14px; margin: 22px 0 6px; flex-wrap: wrap;
}
.cd-cell {
  min-width: 64px; padding: 10px 6px; background: var(--surface);
  border: 2px solid var(--line); border-radius: 12px;
}
.cd-num { font-family: "Bitter", serif; font-weight: 900; font-size: 30px; color: var(--accent); }
.cd-lab { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.cd-caption { font-style: italic; color: var(--brand-2); }

/* ---------- trip-wide banner ---------- */
.banner {
  margin: 18px 0 6px; padding: 11px 16px;
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 10px;
  font-family: "Bitter", serif; font-weight: 600; font-size: 13.5px; color: var(--brand);
}

/* ---------- sections ---------- */
section { padding: 30px 0; border-top: 1px solid var(--line); }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-title h2 { font-size: clamp(24px, 5vw, 32px); }
.section-title .sec-ico {
  color: var(--accent); flex: none; width: 30px; height: 30px;
  display: grid; place-items: center;
}
.section-title .sec-ico svg { width: 26px; height: 26px; fill: currentColor; display: block; }
.lead { color: var(--muted); margin-bottom: 14px; }

/* ---------- collapsible accordions (native <details>) ---------- */
details.acc > summary {
  cursor: pointer; list-style: none; margin-bottom: 0;
  align-items: center; user-select: none;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after {
  content: "›"; margin-left: auto; flex: none;
  font-family: "Bitter", serif; font-weight: 700; font-size: 26px; line-height: 1;
  color: var(--accent); transform: rotate(90deg);
  transition: transform .25s ease; padding: 0 4px;
}
details.acc[open] > summary::after { transform: rotate(-90deg); }
details.acc > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
details.acc > summary:hover h2 { color: var(--brand-2); }
.acc-body { padding-top: 16px; }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 2px solid var(--line); border-radius: 14px;
  padding: 16px 16px 14px; box-shadow: 0 6px 18px var(--shadow);
}
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card h3 { font-size: 18px; color: var(--brand); }
.blurb { margin: 8px 0 6px; }
.notes { font-size: 13.5px; color: var(--muted); }
.price-detail { font-size: 12.5px; font-style: italic; color: var(--brand-2); margin-top: 6px; }
.pickif {
  margin-top: 10px; padding: 9px 12px; font-size: 13.5px; line-height: 1.45;
  color: var(--brand); background: var(--surface-2);
  border-left: 4px solid var(--accent); border-radius: 8px;
}
.dir {
  display: inline-block; margin-top: 10px; font-family: "Bitter", serif;
  font-weight: 600; font-size: 13px; text-decoration: none; color: var(--accent);
}
.dir:hover { color: var(--accent-2); }

/* activity cards get a palette-coded left edge by category */
.card.act { border-left-width: 6px; }
.card.act.cat-outdoors { border-left-color: var(--cat-outdoors); }
.card.act.cat-animals  { border-left-color: var(--cat-animals); }
.card.act.cat-play     { border-left-color: var(--cat-play); }
.card.act.cat-indoors  { border-left-color: var(--cat-indoors); }

/* ---------- tags / pills ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; align-items: center; }
.tags.flags-row { margin-top: 6px; }
.tags.flags-row:empty { display: none; }
.tag {
  font-family: "Bitter", serif; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px; border: 1.5px solid var(--line); color: var(--muted);
}
.tag.open  { background: var(--ok); color: #fff; border-color: var(--ok); }
.tag.closed{ background: transparent; color: var(--accent); border-color: var(--accent); }
.tag.call  { color: var(--accent); border-color: var(--accent); border-style: dashed; }
.tag.hours { color: var(--text); }

/* cuisine = PLAIN pill, no per-cuisine color */
.tag.cuisine { color: var(--text); border-color: var(--line); background: var(--surface-2); }

/* price tier pill */
.tag.price { color: var(--brand); border-color: var(--brand); font-weight: 700; letter-spacing: .04em; }

/* action flags — little kraft "stamps" */
.tag.flag {
  background: var(--surface-2); color: var(--brand-2);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}

/* category pill — palette tint per category */
.tag.cat { color: var(--brand); border-color: var(--brand); }
.tag.cat.cat-outdoors { color: var(--cat-outdoors); border-color: var(--cat-outdoors); background: color-mix(in srgb, var(--cat-outdoors) 10%, transparent); }
.tag.cat.cat-animals  { color: var(--cat-animals);  border-color: var(--cat-animals);  background: color-mix(in srgb, var(--cat-animals) 10%, transparent); }
.tag.cat.cat-play     { color: var(--cat-play);     border-color: var(--cat-play);     background: color-mix(in srgb, var(--cat-play) 12%, transparent); }
.tag.cat.cat-indoors  { color: var(--cat-indoors);  border-color: var(--cat-indoors);  background: color-mix(in srgb, var(--cat-indoors) 12%, transparent); }

.badge-day {
  font-family: "Bitter", serif; font-size: 11px; font-weight: 700; flex: none;
  background: var(--accent); color: #fff; padding: 3px 9px; border-radius: 20px;
}

/* ---------- rating ---------- */
.rating {
  font-family: "Bitter", serif; font-weight: 700; font-size: 13px; color: var(--text);
  white-space: nowrap; flex: none;
}
.rating .star { color: var(--gold); margin-right: 2px; }
.rating .rcount { font-weight: 400; font-size: 11.5px; color: var(--muted); }
/* when a rating sits in the card head, keep it from stretching the title */
.card-head .rating { margin-top: 2px; }

/* ---------- cuisine filter ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.filter-chip {
  cursor: pointer; font-family: "Bitter", serif; font-weight: 600; font-size: 12.5px;
  padding: 5px 12px; border-radius: 20px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--brand); transition: .15s;
}
.filter-chip:hover { border-color: var(--brand); }
.filter-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- voting ---------- */
.vote-row { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vote-label { font-family: "Bitter", serif; font-weight: 600; font-size: 13px; color: var(--brand); }
.voters { display: flex; gap: 5px; }
.voter {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--brand); background: var(--surface); color: var(--brand);
  font-family: "Bitter", serif; font-weight: 700; font-size: 14px; transition: .15s;
}
.voter.on { background: var(--brand); color: #fff; transform: scale(1.08); }
.tally { font-size: 13px; color: var(--muted); margin-left: auto; font-style: italic; }

/* ---------- timeline (drive up) ---------- */
.timeline { border-left: 3px solid var(--accent); margin-left: 8px; padding-left: 18px; }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before {
  content: ""; position: absolute; left: -27px; top: 4px; width: 13px; height: 13px;
  background: var(--accent); border: 3px solid var(--bg); border-radius: 50%;
}
.tl-when { font-family: "Bitter", serif; font-weight: 700; color: var(--brand); }
.tl-note { font-size: 13.5px; color: var(--muted); }
.dir.inline { margin-top: 0; font-size: 12px; }
.route-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.route-chips span {
  font-size: 12px; background: var(--surface-2); padding: 3px 9px; border-radius: 6px; color: var(--text);
}

/* ---------- day cards (stay / scenic) ---------- */
.day { display: flex; gap: 14px; align-items: stretch; }
.day-date {
  flex: none; width: 64px; text-align: center; border-radius: 12px;
  background: var(--brand); color: #fff; padding: 10px 4px; align-self: flex-start;
}
.day-date .dow { font-family: "Bitter", serif; font-weight: 700; font-size: 13px; }
.day-date .dnum { font-family: "Bitter", serif; font-weight: 900; font-size: 24px; }
.day-body { flex: 1; }
.day.travel .day-date { background: var(--accent); }
.overnight { font-size: 13px; color: var(--accent); font-weight: 600; font-family: "Bitter", serif; }

/* ---------- fort rosalie sidebar ---------- */
.sidebar {
  background: var(--surface-2); border: 2px dashed var(--accent);
  border-radius: 14px; padding: 18px; margin-top: 16px;
}
.sidebar h3 { color: var(--accent); }
.sidebar .footnote { font-size: 12.5px; font-style: italic; color: var(--muted); margin-top: 8px; }

/* ---------- checklists ---------- */
.check-group { margin-bottom: 16px; }
.check-group h3 { font-size: 16px; margin-bottom: 6px; }
.check {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  border-bottom: 1px solid var(--line); cursor: pointer; user-select: none;
}
.check input { width: 19px; height: 19px; accent-color: var(--brand); flex: none; }
.check.done span { text-decoration: line-through; color: var(--muted); }
.progress { font-family: "Bitter", serif; font-weight: 700; color: var(--accent); font-size: 14px; }

/* ---------- spinner ---------- */
.spinner-box { text-align: center; }
.spin-label {
  font-family: "Bitter", serif; font-weight: 700; font-size: clamp(20px, 4.5vw, 26px);
  color: var(--brand); margin: 0 0 14px;
}
.spin-btn {
  cursor: pointer; border: none; background: var(--accent); color: #fff;
  width: 104px; height: 104px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px var(--shadow); transition: transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.spin-btn:hover { box-shadow: 0 10px 26px var(--shadow); }
.spin-btn:active { transform: translateY(2px) scale(.97); }
.spin-btn[aria-disabled="true"] { cursor: default; }
.spin-arrow { width: 46px; height: 46px; fill: #fff; display: block; }
.spin-btn.spinning .spin-arrow { animation: bbSpin .5s linear infinite; }
@keyframes bbSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spin-btn.spinning .spin-arrow { animation: none; }
}
.spin-result {
  margin-top: 18px; font-family: "Bitter", serif; font-weight: 900;
  font-size: clamp(22px, 5vw, 30px); color: var(--brand); min-height: 36px;
}
.spin-result.rolling { color: var(--muted); }

/* ---------- weather ---------- */
.wx-now { display: flex; align-items: baseline; gap: 10px; }
.wx-temp { font-family: "Bitter", serif; font-weight: 900; font-size: 40px; color: var(--accent); }
.wx-cond { color: var(--text); }
.wx-days { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); margin-top: 12px; }
.wx-day { background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; }
.wx-day .d { font-family: "Bitter", serif; font-weight: 700; color: var(--brand); font-size: 13px; }
.wx-day .t { font-size: 14px; }
.muted { color: var(--muted); }

/* ---------- footer ---------- */
footer { text-align: center; padding: 30px 0 50px; color: var(--muted); font-size: 13px; border-top: 2px solid var(--line); }
.fineprint { font-size: 11.5px; color: var(--muted); margin-top: 8px; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.5; }

/* ---------- confetti ---------- */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999; display: none; }

@media (max-width: 480px) {
  .day-date { width: 54px; }
  .cd-cell { min-width: 56px; }
  .section-title h2 { font-size: 22px; }
}

/* ============================================================================
   CABIN KITCHEN (Cluster B) — meal cards + consolidated grocery list.
   Reuses .card / .check / .check-group / .progress from the existing styles.
   ========================================================================== */
.kitchen-intro { color: var(--muted); max-width: 680px; margin-bottom: 16px; line-height: 1.55; }
.card.meal .meal-steps { margin: 8px 0 4px 18px; padding: 0; color: var(--text); }
.card.meal .meal-steps li { margin-bottom: 4px; line-height: 1.45; }
.card.meal .meal-ings { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.card.meal .meal-ings strong { color: var(--text); }
.meal-toggle {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding-top: 10px; border-top: 1px dashed var(--line);
  font-family: "Bitter", serif; font-weight: 700; font-size: 13.5px; color: var(--brand); cursor: pointer;
}
.meal-toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.card.meal.skipped { opacity: .5; }
.card.meal.skipped .meal-toggle { color: var(--muted); }

.grocery { margin-top: 22px; padding-top: 18px; border-top: 2px solid var(--line); }
.grocery-head { font-family: "Bitter", serif; color: var(--accent); font-size: 19px; margin-bottom: 4px; }
.g-qty { color: var(--muted); font-size: 13px; }
.g-store {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent-2);
  border: 1px solid var(--accent-2); border-radius: 4px; padding: 0 5px; margin-left: 4px;
}

/* print button sits next to the campfire toggle; it inherits .theme-toggle styling */
#printBtn { margin-right: 8px; }

/* ============================================================================
   PRINT / SAVE-TO-PDF (#28) — show ONLY the plan sheet, hide the live app.
   ========================================================================== */
#print-sheet { display: none; }

@media print {
  /* hide the whole interactive app + chrome */
  .nav, .hero, #banner, #confetti, footer,
  section[id^="sec-"] { display: none !important; }

  /* show the generated plan sheet */
  #print-sheet { display: block !important; color: #000; font-family: "Spectral", Georgia, serif; padding: 0; }
  #print-sheet h1 { font-family: "Bitter", serif; font-size: 24px; margin: 0 0 4px; }
  #print-sheet h2 {
    font-family: "Bitter", serif; font-size: 16px; margin: 18px 0 6px;
    border-bottom: 1.5px solid #000; padding-bottom: 2px;
  }
  #print-sheet .p-sub { font-size: 12px; margin: 2px 0; color: #333; }
  #print-sheet .p-note { font-size: 11px; color: #444; }
  #print-sheet .p-list { margin: 4px 0 4px 18px; padding: 0; }
  #print-sheet .p-list li { margin-bottom: 3px; }
  #print-sheet .p-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  #print-sheet .p-table td { border: 1px solid #999; padding: 4px 6px; vertical-align: top; }
  #print-sheet .p-table td:first-child { white-space: nowrap; font-weight: 700; width: 70px; }
  #print-sheet .p-grocery, #print-sheet .p-gcat { font-size: 12px; line-height: 1.5; margin: 3px 0; }
  #print-sheet .p-foot { margin-top: 18px; font-size: 10px; color: #555; border-top: 1px solid #999; padding-top: 6px; }
  #print-sheet h2 { page-break-after: avoid; }
  #print-sheet .p-table, #print-sheet .p-list { page-break-inside: avoid; }
  @page { margin: 0.6in; }
}

/* ── Cluster D / #30 — vote-driven plan ─────────────────────────────────── */
.plan-note {
  font-family: "Bitter", serif; font-size: 1rem; line-height: 1.45;
  color: var(--brand); background: none; border: none; border-radius: 0;
  padding: 0; margin: 2px 0 18px;
}
.plan-note strong { color: var(--accent); font-weight: 700; }
.plan-eats { margin-top: 8px; font-size: .9rem; color: var(--text); }
.plan-eats strong { font-weight: 600; color: var(--brand); }
.vote-pick {
  font-size: .7rem; font-weight: 700; color: var(--accent);
  letter-spacing: .02em; white-space: nowrap;
}

/* ── Cluster D1 / #31 — scavenger hunt v2 (scored, kid + adult) ──────────── */
.sc-board { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.sc-player {
  display: flex; align-items: center; gap: 6px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 10px;
  font-family: "Bitter", serif;
  min-height: 32px; box-sizing: border-box;   /* same height whether crown shows or not */
}
.sc-player.lead { background: var(--brand); border-color: var(--brand); color: #fff; }
/* Box the crown into a fixed square with clamped line-height so the glyph's
   metrics can't inflate the leader row taller than the others. */
.sc-crown {
  color: var(--gold); flex: none; font-size: .95rem; line-height: 1;
  width: 1em; height: 1em; display: inline-flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.sc-crown--off { visibility: hidden; }   /* reserve the slot so every chip is the same width */
.sc-player.lead .sc-crown { color: #ffe9b0; }
.sc-name { font-weight: 600; font-size: .9rem; line-height: 1; }
.sc-pts { font-weight: 800; font-size: 1rem; min-width: 1.2em; text-align: center; }
.sc-player.pop { animation: scPop .42s ease; }
@keyframes scPop { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }

.sc-howto { font-size: .8rem; color: var(--muted); line-height: 1.45; margin: 2px 0 14px; }
.sc-group {
  font-family: "Bitter", serif; color: var(--brand); font-size: 1.35rem; font-weight: 700;
  margin: 24px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line);
}

.sc-item {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin: 8px 0;
}
.sc-emoji { font-size: 1.7rem; line-height: 1; width: 2rem; text-align: center; flex: none; }
.sc-icon {
  width: 8rem; height: 8rem; flex: none;   /* doubled per Aaron (was 4rem) */
  object-fit: contain; display: block;
}
.sc-text { flex: 1 1 140px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-label { font-size: .95rem; color: var(--text); }
.sc-bonus {
  font-size: .68rem; font-weight: 700; color: #fff; background: var(--accent);
  border-radius: 999px; padding: 2px 7px; white-space: nowrap;
}
.sc-finders { flex: none; margin-left: auto; }

/* the special "farthest license plate" card */
.sc-plate { align-items: flex-start; }
.sc-plate-pick { flex: 1 1 100%; margin-top: 4px; }
.sc-plate-hint { display: block; font-size: .78rem; color: var(--muted); margin: 4px 0 6px; }
.sc-plate-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-plate-row select {
  flex: 1 1 150px; padding: 7px 9px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-family: "Spectral", serif; font-size: .9rem;
}
.sc-plate-summary { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.sc-plate-summary li { font-size: .82rem; color: var(--text); }
.sc-plate-summary strong { color: var(--brand); font-weight: 600; }
.sc-plate-n { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .sc-player.pop { animation: none; } }

/* ── per-section "Clear" controls (tap twice to confirm) ─────────────────── */
.clear-bar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.clear-btn {
  cursor: pointer; font: 600 .76rem/1 "Bitter", serif; letter-spacing: .02em;
  color: var(--muted); background: transparent;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px;
  transition: background .15s, color .15s, border-color .15s;
}
.clear-btn:hover { color: var(--accent); border-color: var(--accent); }
.clear-btn.armed {
  color: #fff; background: var(--accent); border-color: var(--accent-2);
  animation: clearPulse 1s ease-in-out infinite;
}
@keyframes clearPulse { 50% { opacity: .72; } }
.sc-plate-reset { margin-top: 10px; justify-content: flex-start; }

/* ── Maps & Resources ───────────────────────────────────────────────────── */
.res-list { display: grid; gap: 10px; }
.res-card {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--brand); border-radius: 10px;
  padding: 12px 14px; color: var(--text); box-shadow: 0 1px 0 var(--shadow);
  transition: border-color .15s, transform .08s;
}
.res-card:hover { border-left-color: var(--accent); transform: translateY(-1px); }
.res-ico { font-size: 1.5rem; flex: none; line-height: 1; }
.res-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.res-title { font: 600 1rem/1.2 "Bitter", serif; color: var(--brand); }
.res-note { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.res-kind {
  flex: none; align-self: flex-start; font-size: .68rem; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; white-space: nowrap;
}

/* ============================================================
   MOTION PASS (#32, rev 2) — native browser APIs only, no libs.
   Everything decorative/animated here is:
     • @supports-gated (unsupported browsers get the static UI),
     • prefers-reduced-motion safe (animations off),
     • print-safe (decoration hidden),
     • offline-clean (pure CSS, no network).
   ============================================================ */

/* ---------- 1. flip-clock countdown ---------------------------------------
   app.js adds .flip to a .cd-num only when its digit changes; the new number
   drops in on a top hinge like an old split-flap board. */
.cd-cell { perspective: 240px; }
@keyframes bbFlip {
  0%   { transform: rotateX(-90deg); opacity: 0; }
  60%  { transform: rotateX(8deg);   opacity: 1; }
  100% { transform: rotateX(0);      opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .cd-num.flip { animation: bbFlip .34s cubic-bezier(.4,.7,.3,1) both; transform-origin: top center; }
}

/* ---------- 2. static pine silhouettes down the left margin ----------------
   (Replaces the rejected scroll-trail and the rejected tire tracks.) A faint
   repeating pine, masked so it tints to the theme color and follows day/
   campfire. No animation — purely decorative; sits in the gutter. */
body::before {
  content: ""; position: fixed; top: 0; bottom: 0; left: 0; width: 24px;
  z-index: 0; pointer-events: none; opacity: .09;
  background-color: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 96'%3E%3Cpath d='M20 4 L30 24 L24 24 L33 40 L26 40 L34 56 L6 56 L14 40 L7 40 L16 24 L10 24 Z'/%3E%3Crect x='18' y='56' width='4' height='8'/%3E%3C/svg%3E") repeat-y top left / 22px auto;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 96'%3E%3Cpath d='M20 4 L30 24 L24 24 L33 40 L26 40 L34 56 L6 56 L14 40 L7 40 L16 24 L10 24 Z'/%3E%3Crect x='18' y='56' width='4' height='8'/%3E%3C/svg%3E") repeat-y top left / 22px auto;
}
@media print { body::before { display: none !important; } }
@media (max-width: 480px) {
  body::before { width: 18px; opacity: .07; -webkit-mask-size: 16px auto; mask-size: 16px auto; }
}

/* ---------- 4. accordion expand/collapse — JS-driven height animation -------
   app.js animates .acc-body's inline height on every open AND close (works on
   all browsers, unlike the old ::details-content approach). CSS just supplies
   the easing + clips the body while it's mid-animation. */
@media (prefers-reduced-motion: no-preference) {
  .acc-body { transition: height .3s ease; }
}
.acc-body.acc-animating { overflow: hidden; }

/* ---------- 5. View Transitions (vote-driven itinerary reshape only) ------- */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .28s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ---------- 6. click micro-animations -------------------------------------
   Quick springy press feedback on the things you tap most: vote/find circles,
   packing + meal checkboxes, cuisine filter chips. .voter covers scavenger
   finders too (they reuse the class). */
.voter, .filter-chip { transition: transform .14s cubic-bezier(.34,1.56,.64,1), background .15s, color .15s, border-color .15s; }
.voter.on { transform: scale(1.08); }
@media (prefers-reduced-motion: no-preference) {
  .voter:active, .filter-chip:active { transform: scale(.86); }
  /* NOTE: no press-scale on .check / .meal-toggle — transforming the label
     shifts the native checkbox's tap target on mobile so the box itself won't
     toggle. The check-pop below is the feedback instead. */
  /* satisfying pop when a box gets checked (class toggled in app.js) */
  .check.done span { animation: bbCheckPop .26s ease; }
  @keyframes bbCheckPop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
}

/* ---------- 7. route section dividers/leg headers -------------------------- */
.route-leg {
  font-family: "Bitter", serif; font-size: 18px; color: var(--brand);
  margin: 4px 0 8px; display: flex; align-items: center; gap: 8px;
}
.route-divider { height: 1px; background: var(--line); margin: 22px 0; }
.route-day {
  font-family: "Bitter", serif; font-size: 14px; font-weight: 700;
  color: var(--text); margin: 18px 0 10px; text-transform: uppercase; letter-spacing: .05em;
}
.route-day + .timeline { margin-bottom: 4px; }
.spin-pick { font-weight: 700; font-size: inherit; margin-top: 0; }

/* ---------- swim & wade ---------- */
.card.swim { border-left-width: 6px; }
.card.swim.swim-lake  { border-left-color: var(--cat-outdoors); }
.card.swim.swim-river { border-left-color: var(--cat-indoors); }
.card.swim.swim-warn  { border-left-color: var(--accent); }
.swim-group {
  font-family: "Bitter", serif; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: var(--accent);
  margin: 22px 0 10px;
}
.swim-group:first-of-type { margin-top: 18px; }

/* offline orientation sketch (inline SVG, themed via palette vars) */
.swim-map {
  margin: 14px 0 4px; padding: 14px 16px 12px;
  background: var(--surface-2); border: 2px solid var(--line); border-radius: 14px;
  display: grid; grid-template-columns: minmax(150px, 200px) 1fr; gap: 8px 18px; align-items: center;
}
.swim-map-svg { width: 100%; max-width: 200px; height: auto; color: var(--brand); display: block; }
.swim-water { fill: color-mix(in srgb, var(--brand) 16%, transparent); stroke: var(--brand); stroke-width: 2; }
.swim-river-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.swim-dam { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.swim-dot circle { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.swim-dot text { fill: #fff; font-family: "Bitter", serif; font-weight: 700; font-size: 11px; }
.swim-title { fill: var(--brand); font-family: "Bitter", serif; font-weight: 700; font-size: 9.5px; }
.swim-cap, .swim-n { fill: var(--muted); font-family: "Bitter", serif; font-size: 9px; }
.swim-n { font-weight: 700; }
.swim-n-arrow { fill: var(--muted); }
.swim-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.swim-legend li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.swim-leg-n {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-family: "Bitter", serif; font-weight: 700; font-size: 11px;
}
.swim-legend a { color: var(--brand); text-decoration: none; font-family: "Bitter", serif; font-weight: 600; }
.swim-legend a:hover { color: var(--accent); }
.swim-map-cap {
  grid-column: 1 / -1; margin: 8px 0 0; font-size: 11.5px; font-style: italic;
  color: var(--muted); line-height: 1.45;
}
@media (max-width: 520px) {
  .swim-map { grid-template-columns: 1fr; justify-items: center; }
  .swim-map-svg { max-width: 180px; }
  .swim-legend { width: 100%; }
}
