/* Eudora Squirrels - shared styles for every page */

:root {
  --acorn: #6b3d1e;
  --bark: #071062;   /* City of Eudora navy (from cityofeudoraks.gov) */
  --fur: #b8673a;
  --leaf: #1d3a9e;   /* lighter navy for buttons and labels */
  --leaf-dark: #071062;
  --cream: #fbf5ea;
  --paper: #ffffff;
  --sun: #f2b632;
  --ink: #1a1f36;
  --muted: #555b70;
  --line: #e6d8c3;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(7, 16, 98, 0.12);
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  transition: background-color 0.4s, filter 0.4s;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  color: var(--bark);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }

a { color: var(--leaf-dark); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--bark);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
}
.logo img { width: 36px; height: 36px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--cream);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.15); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(242, 182, 50, 0.35), transparent 40%),
    linear-gradient(160deg, #fff6e3 0%, #f6e3c4 100%);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-art { max-width: 340px; justify-self: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--leaf);
  margin: 0 0 8px;
}
.page-hero { padding: 40px 0 44px; }
.page-hero .wrap { grid-template-columns: 1fr auto; }
.page-hero .hero-art { max-width: 180px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--leaf);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--leaf-dark); }
.btn.secondary { background: transparent; color: var(--bark); border: 2px solid var(--bark); }
.btn.secondary:hover { background: var(--bark); color: var(--cream); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Sections and cards ---------- */
section { padding: 56px 0; }
section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-intro { max-width: 40em; color: var(--muted); margin-bottom: 28px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card .icon { font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }
.card h3 { margin-bottom: 6px; }

/* ---------- Placeholder marker (remove when real content arrives) ---------- */
.placeholder { position: relative; outline: 2px dashed #d08a2e; outline-offset: 4px; }
.placeholder::before {
  content: "PLACEHOLDER";
  position: absolute;
  top: -12px;
  right: 10px;
  background: #d08a2e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 999px;
  z-index: 1;
}
.photo-slot {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #efe2cc, #efe2cc 12px, #f6ecdb 12px, #f6ecdb 24px);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  padding: 16px;
}

/* ---------- Suspect cards ---------- */
.suspect { text-align: center; }
.suspect img { width: 120px; margin: 0 auto 10px; }
.suspect .tag {
  display: inline-block;
  background: #fde9b8;
  color: var(--acorn);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.flip-x { transform: scaleX(-1); }

/* ---------- Scoreboard ---------- */
.scoreboard { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 560px; }
.score { text-align: center; padding: 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.score .num { font-family: "Fraunces", Georgia, serif; font-size: 2.6rem; font-weight: 800; color: var(--acorn); }
.score .num.small { font-size: 1.8rem; line-height: 1.2; padding: 6px 0; }

/* ---------- Events list ---------- */
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.event { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: start; }
.event .date {
  background: var(--leaf);
  color: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 10px 6px;
  font-weight: 800;
  line-height: 1.2;
}
.event .date span { display: block; font-size: 1.7rem; font-family: "Fraunces", Georgia, serif; }

/* ---------- Lights-out fun ---------- */
body.lights-out { background: #1b130d; filter: brightness(0.35); }
.scamper {
  position: fixed;
  bottom: 18px;
  left: -140px;
  width: 110px;
  z-index: 50;
  pointer-events: none;
}
.scamper.go { animation: scamper 2.2s ease-in-out forwards; }
@keyframes scamper { to { left: calc(100% + 140px); } }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--leaf-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow);
  z-index: 60;
  max-width: calc(100% - 32px);
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  body, .scamper.go { transition: none; animation: none; }
}

/* ---------- Squirrel threat meter ---------- */
.meter {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 24px;
  align-items: center;
}
.meter p { color: var(--muted); margin: 0; }
.pill {
  display: inline-block;
  background: #e3e8fb;
  color: var(--bark);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.pill-gold { background: var(--sun); color: var(--bark); margin: 0; }
.gauge { background: var(--bark); color: #fff; border-radius: 14px; padding: 20px; text-align: center; }
.gauge-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.gauge-level { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; font-weight: 800; color: var(--sun); margin: 4px 0 10px; }
.gauge-track { background: rgba(255, 255, 255, 0.15); height: 14px; border-radius: 999px; overflow: hidden; }
.gauge-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4caf50, var(--sun), #e0592a); transition: width 1s ease; }
.gauge-scale { display: flex; justify-content: space-between; font-size: 0.72rem; opacity: 0.75; margin-top: 6px; }
.ticker { margin: 16px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-weight: 700; }
.btn.secondary.light { color: var(--cream); border-color: var(--cream); }
.btn.secondary.light:hover { background: var(--cream); color: var(--bark); }

/* ---------- Grid Defender ---------- */
.arcade { background: var(--bark); color: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.arcade h2 { color: var(--sun); }
.arcade > p { color: rgba(255, 255, 255, 0.85); max-width: 46em; }
.game { position: relative; border-radius: 14px; overflow: hidden; border: 3px solid rgba(255, 255, 255, 0.2); }
.hud { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #040a3f; padding: 10px 14px; font-weight: 800; font-size: 0.95rem; }
.hud strong { color: var(--sun); font-size: 1.2rem; margin-left: 4px; }
.hud-health { display: flex; align-items: center; gap: 8px; flex: 0 1 220px; }
.health-track { flex: 1; height: 12px; background: rgba(255, 255, 255, 0.15); border-radius: 999px; overflow: hidden; }
.health-fill { height: 100%; width: 100%; background: #4caf50; transition: width 0.2s, background-color 0.2s; }
#grid-defender { display: block; width: 100%; height: 380px; touch-action: none; cursor: pointer; }
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 63, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.overlay[hidden] { display: none; }
.overlay h3 { color: var(--sun); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.overlay p { max-width: 30em; color: rgba(255, 255, 255, 0.85); }
.btn-gold { background: var(--sun); color: var(--bark); }
.btn-gold:hover { background: #ffd060; }
.game-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; opacity: 0.75; margin-top: 10px; }

/* ---------- Trivia ---------- */
.trivia { max-width: 720px; }
.trivia-top { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--leaf); margin-bottom: 10px; }
.trivia-options { display: grid; gap: 10px; margin: 16px 0; }
.trivia-options button {
  text-align: left;
  font: inherit;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.trivia-options button:hover:not(:disabled) { border-color: var(--leaf); background: #eef1fc; }
.trivia-options button.right { border-color: #2e7d32; background: #e7f5e8; color: #1b5e20; }
.trivia-options button.wrong { border-color: #c62828; background: #fdecea; color: #8e1c1c; }
.trivia-feedback { font-weight: 800; padding: 12px; border-radius: 12px; background: #eef1fc; color: var(--bark) !important; }
.trivia-feedback[hidden] { display: none; }

@media (max-width: 760px) {
  .meter { grid-template-columns: 1fr; }
  #grid-defender { height: 340px; }
  .hud { font-size: 0.85rem; }
  .arcade { padding: 18px; }
}

/* ---------- News card (Squirrel Saga) ---------- */
.card.news { border-left: 6px solid var(--sun); align-self: start; }
.card.news h3 { font-size: 1.5rem; }
.card.news p { margin-bottom: 12px; }
.card.news blockquote { margin: 0 0 14px; padding: 10px 14px; background: #eef1fc; border-radius: 10px; font-style: italic; color: var(--bark); }
.card.news cite { display: block; margin-top: 6px; font-style: normal; font-weight: 700; font-size: 0.9rem; color: var(--muted); }

/* ---------- Photo with caption ---------- */
.photo { margin: 0; justify-self: center; max-width: 380px; }
.photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.photo figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.photo .credit { display: block; font-size: 0.8rem; margin-top: 4px; }
.caught { margin: 36px auto 0; max-width: 640px; text-align: center; }
.caught img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.caught figcaption { margin-top: 12px; color: var(--muted); }
.caught figcaption strong { color: var(--ink); display: block; margin-bottom: 4px; }
.history-text .card { margin-top: 20px; }

/* ---------- Snapshot photos (home page) ---------- */
.snapshot { margin: 0; }
.snapshot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 65% center; border-radius: var(--radius); box-shadow: var(--shadow); }
.snapshot figcaption { font-size: 0.9rem; color: var(--muted); font-weight: 700; margin-top: 8px; }

/* ---------- Local spots (Explore page) ---------- */
.card.spot { padding: 0 0 22px; overflow: hidden; }
.card.spot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 16px; }
.card.spot h3, .card.spot p { padding: 0 22px; }
.card.spot .tag { font-weight: 700; color: var(--leaf); margin-bottom: 8px; }

.card p.more { margin-top: 10px; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bark);
  color: #e8d9c4;
  padding: 32px 0;
  font-size: 0.95rem;
}
.site-footer a { color: var(--sun); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer p { margin: 0 0 6px; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .hero .wrap, .page-hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 200px; grid-row: 1; }
  .page-hero .hero-art { max-width: 120px; }
  .event { grid-template-columns: 70px 1fr; }
}

/* ---------- Peeking squirrels (decorative) ---------- */
.peek-host { position: relative; margin-top: 88px; }
.peek {
  position: absolute;
  bottom: calc(100% - 12px);
  right: 10%;
  width: 130px;
  z-index: 2;
  cursor: pointer;
  clip-path: inset(-120px -400px 0 -400px);
}
.peek img { display: block; width: 100%; height: auto; transform-origin: 50% 100%; transition: transform 0.25s ease; }
.peek:hover img { transform: rotate(-8deg); }
.peek-say {
  position: absolute;
  right: calc(100% - 22px);
  top: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px 12px 2px 12px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bark);
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.peek-anim .peek img { transform: translateY(100%); }
.peek-anim .peek .peek-say { opacity: 0; }
.peek-anim .peek.up img { animation: peek-up 0.6s ease-out 0.2s both; }
.peek-anim .peek.up .peek-say { animation: peek-say 0.3s ease-out 0.8s both; }
.peek-anim .peek.up:hover img { animation: none; transform: rotate(-8deg); }
@keyframes peek-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes peek-say { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* A squirrel took a bite out of this card. */
.card.nibbled {
  -webkit-mask:
    radial-gradient(circle 17px at calc(100% - 10px) 24px, #0000 97%, #000),
    radial-gradient(circle 14px at calc(100% - 34px) 6px, #0000 97%, #000),
    radial-gradient(circle 12px at calc(100% - 6px) 50px, #0000 97%, #000);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 17px at calc(100% - 10px) 24px, #0000 97%, #000),
    radial-gradient(circle 14px at calc(100% - 34px) 6px, #0000 97%, #000),
    radial-gradient(circle 12px at calc(100% - 6px) 50px, #0000 97%, #000);
  mask-composite: intersect;
}
.nibble-note { font-size: 0.8rem; font-style: italic; }

/* Home hero photo (the squirrel-covered Eudora sign) */
.hero-art.hero-photo { width: 100%; max-width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Local Business Directory ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 0.85rem; color: var(--muted); }
.dir-tools { display: grid; gap: 14px; margin-bottom: 14px; }
.dir-search {
  width: 100%; max-width: 560px; font: inherit; padding: 12px 16px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink);
}
.dir-search:focus { outline: none; border-color: var(--leaf); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  padding: 6px 14px; border-radius: 999px; border: 2px solid var(--leaf); background: transparent; color: var(--leaf);
}
.chip[aria-pressed="true"] { background: var(--leaf); color: #fff; }
.chip:focus-visible, .vote:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.dir-count { color: var(--muted); font-weight: 700; margin: 0 0 10px; }
.dir-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.dir-row {
  display: grid; grid-template-columns: 1fr 130px 230px; gap: 8px 20px; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.dir-row h3 { margin: 0 0 2px; font-size: 1.1rem; }
.dir-about { margin: 0; color: var(--muted); }
.dir-cat { justify-self: start; font-size: 0.8rem; font-weight: 800; color: var(--leaf); background: rgba(29, 58, 158, 0.08); padding: 3px 10px; border-radius: 999px; }
.dir-links { display: grid; gap: 2px; font-weight: 700; }
.dir-group { padding: 26px 4px 8px; border-bottom: 2px solid var(--sun); }
.dir-group h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.45rem; }
.dir-group p { margin: 2px 0 0 34px; color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.dir-acorn { position: relative; width: 22px; height: 26px; flex: none; }
.dir-acorn::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 10px; border-radius: 11px 11px 4px 4px; background: #7a4a1e; }
.dir-acorn::after { content: ""; position: absolute; left: 3px; top: 10px; width: 16px; height: 16px; border-radius: 3px 3px 9px 9px; background: var(--sun); }
.dir-badge { display: inline-block; margin-left: 8px; vertical-align: 2px; font-size: 0.7rem; font-weight: 800; letter-spacing: .02em; color: #5a3a12; background: rgba(242, 182, 50, 0.3); padding: 2px 8px; border-radius: 999px; }
.dir-find { font-weight: 700; opacity: .85; }
.dir-list.grouped .dir-row { grid-template-columns: 1fr 230px; }
.dir-list.grouped .dir-cat { display: none; }
@media (max-width: 760px) { .dir-list.grouped .dir-row { grid-template-columns: 1fr; } }
.dir-list > .dir-group:first-child { padding-top: 10px; }
.dir-add { border-left: 6px solid var(--sun); }
.dir-add h2 { margin-bottom: 6px; }
.dir-note { margin-top: 14px; }
@media (max-width: 760px) {
  .dir-row { grid-template-columns: 1fr; }
}

.dir-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  margin-top: 34px; padding: 26px 30px; border-radius: 20px;
  background: var(--leaf-dark, #071062); color: #fff; border-left: 8px solid var(--sun);
  box-shadow: 0 10px 28px rgba(7, 16, 98, 0.18);
}
.dir-callout-text { flex: 1 1 380px; }
.dir-callout .eyebrow { color: var(--sun); margin: 0 0 4px; }
.dir-callout h3 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 0 0 6px; }
.dir-callout p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.dir-callout .dir-callout-btn { background: var(--sun); color: #071062; font-size: 1.1rem; padding: 14px 26px; white-space: nowrap; }
.dir-callout .dir-callout-btn:hover { background: #ffd060; }
@media (max-width: 760px) { .dir-callout { padding: 22px 20px; } .dir-callout .dir-callout-btn { width: 100%; text-align: center; } }

/* ---------- Plan a Visit ---------- */
.route { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 0; }
.route-step { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.route-step:last-child { border-bottom: 0; }
.route-time { margin: 0; font-weight: 800; color: var(--leaf); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; padding-top: 4px; }
.route-step h3 { margin: 0 0 4px; }
.route-step p { margin: 0; color: var(--muted); }
.how { margin: 0 0 24px; padding-left: 22px; display: grid; gap: 6px; max-width: 46em; }
.passport { background: var(--paper); border: 2px dashed var(--fur); border-radius: var(--radius); padding: 20px 22px; }
.passport-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.hero-place { font-size: clamp(1.15rem, 2.4vw, 1.6rem); letter-spacing: 0.1em; margin-bottom: 10px; }
.passport-head .eyebrow { margin: 0; }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stamp { display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.stamp-ring { width: 92px; height: 92px; border-radius: 50%; border: 3px dashed var(--leaf); padding: 5px; display: block; }
.stamp-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: grayscale(0.35); }
.grid.two { grid-template-columns: 1.4fr 1fr; align-items: center; }
.mascot-art { max-width: 240px; justify-self: center; }
.votes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vote { font: inherit; font-weight: 800; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--fur); background: var(--paper); color: var(--bark); }
.vote[aria-pressed="true"] { background: var(--fur); color: #fff; }
.vote-msg { min-height: 1.5em; font-weight: 700; color: var(--leaf); margin-top: 10px; }
@media (max-width: 760px) {
  .route-step { grid-template-columns: 1fr; gap: 4px; }
  .grid.two { grid-template-columns: 1fr; }
  .mascot-art { max-width: 160px; }
  .stamps { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Squirrel Outage Command Center (command-center.html) ---------- */
.cc-top { background: var(--bark); color: #fff; padding: 36px 0 40px; }
.cc-top h1 { color: #fff; margin-bottom: 10px; }
.cc-top .lead { color: rgba(255, 255, 255, 0.85); font-size: 1.12rem; max-width: 40em; margin: 0; }
.cc-banner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.cc-banner-actions { display: flex; flex-direction: column; gap: 10px; }
.cc-live {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem;
  background: rgba(224, 89, 42, 0.18); color: #ffb79c; padding: 4px 12px; border-radius: 999px;
}
.cc-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff5a3c; box-shadow: 0 0 0 0 rgba(255, 90, 60, 0.7); animation: cc-pulse 1.6s infinite; }
@keyframes cc-pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 90, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, 0); } }
.cc-clock { letter-spacing: 0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.cc-fine { font-size: 0.8rem; opacity: 0.65; margin: 10px 0 24px; }

.cc-stats { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.cc-panel {
  background: #0d1a7a; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px;
  padding: 16px 18px; display: flex; flex-direction: column;
}
.cc-panel-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; opacity: 0.75; margin: 0 0 8px; }
.cc-panel-note { font-size: 0.8rem; opacity: 0.7; margin: auto 0 0; }
.cc-days-num {
  position: relative; margin: 0 0 6px; font-family: "Fraunces", Georgia, serif; font-weight: 800;
  font-size: 3.6rem; line-height: 1; color: var(--sun); font-variant-numeric: tabular-nums;
}
.cc-reset {
  position: absolute; left: 1.4em; top: 0.35em; font-family: "Nunito", sans-serif; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase; background: #e0592a; color: #fff;
  padding: 3px 10px; border-radius: 6px; transform: rotate(-8deg) scale(0); opacity: 0;
}
.cc-reset.show { animation: cc-stamp 2.6s ease forwards; }
@keyframes cc-stamp {
  0% { transform: rotate(-8deg) scale(2.2); opacity: 0; }
  12% { transform: rotate(-8deg) scale(1); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: rotate(-8deg) scale(1); opacity: 0; }
}
.cc-threat { align-items: center; text-align: center; }
.cc-dial { width: 100%; max-width: 190px; color: #fff; }
[data-cc-needle] { transform-origin: 100px 100px; transform: rotate(-30deg); transition: transform 1.1s cubic-bezier(.3, 1.5, .5, 1); }
.cc-threat-name { font-family: "Fraunces", Georgia, serif; font-weight: 800; font-size: 1.35rem; color: var(--sun); margin: 2px 0 0; }
.cc-threat-name.hot { color: #ff8a5c; }
.cc-grid-stats dl { margin: 0; display: grid; gap: 8px; }
.cc-grid-stats dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px dashed rgba(255, 255, 255, 0.15); padding-bottom: 6px; }
.cc-grid-stats dt { font-size: 0.9rem; opacity: 0.85; }
.cc-grid-stats dd { margin: 0; font-weight: 800; font-size: 1.2rem; color: var(--sun); font-variant-numeric: tabular-nums; }
.cc-crew-status { font-weight: 800; font-size: 1.15rem; margin: 0 0 14px; min-height: 2.6em; }
.cc-thank { margin-top: auto; padding: 10px 16px; font-size: 0.95rem; }

/* Map console */
.cc-map-section { padding-top: 36px; }
.cc-console { background: var(--bark); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.cc-console-bar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #fff;
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px 10px;
}
.cc-map-status { background: rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 2px 12px; text-transform: none; letter-spacing: 0; }
.cc-map-status.alert { background: #e0592a; }
.cc-legend { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 700; text-transform: none; letter-spacing: 0; opacity: 0.85; }
.cc-map-wrap { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.cc-map { position: relative; border-radius: 10px; overflow: hidden; }
.cc-map-svg { display: block; width: 100%; height: auto; }
.cc-map-note { color: rgba(255, 255, 255, 0.75); font-size: 0.8rem; margin: 10px 6px 2px; }
.cc-map-note a { color: var(--sun); }

.cc-lbl { font-family: "Caveat", "Comic Sans MS", cursive; font-weight: 700; font-size: 20px; fill: #3b2a1a; }
.cc-lbl-water { fill: #2f6f9f; font-size: 22px; }
.cc-lbl-street { font-family: "Caveat", cursive; font-weight: 600; font-size: 16px; fill: #7a6a58; }
.cc-lbl-main { font-size: 19px; fill: #5a4632; }
.cc-lbl-town { font-family: "Caveat", cursive; font-weight: 700; font-size: 21px; fill: #071062; }
.cc-lbl-shield { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 11px; fill: #071062; }
.cc-stamp { opacity: 0.8; }

.cc-house .cc-win { fill: #ffd84a; transition: fill 0.4s; }
.cc-house.out .cc-win { fill: #3d3a4a; }
.cc-shade { opacity: 0; transition: opacity 0.6s; }
.cc-shade.on { opacity: 1; }
.cc-inset-dark { opacity: 0; transition: opacity 0.6s; pointer-events: none; }
.cc-inset-dark.on { opacity: 0.55; }
.cc-sq { transition: opacity 0.6s; }
.cc-sq.away { opacity: 0; }
.cc-spark { animation: cc-spark 1.5s ease-out forwards; transform-box: fill-box; transform-origin: center; }
@keyframes cc-spark {
  0% { transform: scale(0.2); opacity: 1; }
  15% { transform: scale(1.4); }
  30% { transform: scale(0.9); }
  45% { transform: scale(1.3); }
  100% { transform: scale(1.6); opacity: 0; }
}
.cc-truck { transition: opacity 0.4s; }
.cc-boom { transform-box: view-box; transform-origin: -10px -9px; transition: transform 0.6s; }
.cc-truck.working .cc-boom { transform: rotate(-35deg); }
.cc-bulb { animation: holiday-twinkle 1.4s ease-in-out infinite alternate; }
.cc-bulb:nth-of-type(2n) { animation-delay: 0.5s; }

/* Pins on the map */
.cc-pins { position: absolute; inset: 0; pointer-events: none; }
.cc-pin {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto;
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center;
}
.cc-pin-dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; line-height: 1;
  background: #fff; border: 3px solid var(--bark); box-shadow: 0 3px 8px rgba(7, 16, 98, 0.35);
  transition: transform 0.15s;
}
.cc-pin-fake .cc-pin-dot { border-style: dashed; border-color: #e0592a; }
.cc-pin-up .cc-pin-name { top: 50%; left: 100%; transform: translateY(-50%); margin: 0 0 0 4px; }
.cc-pin:hover .cc-pin-dot, .cc-pin:focus-visible .cc-pin-dot { transform: scale(1.15); }
.cc-pin:focus-visible { outline: none; }
.cc-pin:focus-visible .cc-pin-dot { outline: 3px solid var(--sun); outline-offset: 2px; }
.cc-pin-name {
  position: absolute; top: 100%; margin-top: 3px; white-space: nowrap;
  font-family: "Caveat", cursive; font-weight: 700; font-size: 1.05rem; line-height: 1.1; color: var(--bark);
  background: rgba(251, 243, 226, 0.88); padding: 0 6px; border-radius: 6px;
}

/* Downtown close-up */
.cc-inset { background: var(--paper); border-radius: 10px; padding: 8px; }
.cc-key { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
.cc-key button {
  width: 100%; text-align: left; background: none; border: 0; padding: 5px 6px; border-radius: 8px;
  font: inherit; font-weight: 700; font-size: 0.88rem; line-height: 1.25; color: var(--bark); cursor: pointer;
}
.cc-key button:hover, .cc-key button:focus-visible { background: #eef1fc; }
.cc-lbl-inset { font-size: 4.2px; }
.cc-inset-title { margin: 0 0 4px; font-family: "Caveat", cursive; font-weight: 700; font-size: 1.2rem; color: var(--bark); text-align: center; line-height: 1.1; }
.cc-map-inset { border-radius: 6px; }
.cc-map-inset .cc-pin-dot { width: 30px; height: 30px; font-size: 15px; }
.cc-map-inset .cc-pin-name { display: none; }

/* Ticker */
.cc-ticker {
  display: flex; align-items: stretch; margin-top: 16px; background: #0d1a7a; border-radius: 999px; overflow: hidden;
  color: #fff; font-weight: 700; box-shadow: var(--shadow);
}
.cc-ticker-tag { background: var(--sun); color: var(--bark); padding: 10px 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; display: flex; align-items: center; flex: none; }
.cc-ticker-window { overflow: hidden; flex: 1; display: flex; align-items: center; }
.cc-ticker-track { display: flex; white-space: nowrap; will-change: transform; }
.cc-tick { padding: 10px 0; }
.cc-tick::after { content: "🐿️"; margin: 0 22px; }
.cc-tick.alert { color: #ffb79c; }
.cc-tick.good { color: #9fe3a6; }
.cc-tick.citizen { color: var(--sun); }
.cc-ticker-track.still { white-space: normal; padding: 0 14px; }
.cc-ticker-track.still .cc-tick::after { content: none; }

/* Incident log and suspects */
.cc-lower { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.cc-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cc-log li {
  display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: start;
  background: var(--cream); border: 1px solid var(--line); border-left: 5px solid var(--leaf); border-radius: 10px; padding: 10px 14px;
}
.cc-log li.bad { border-left-color: #e0592a; }
.cc-log li.good { border-left-color: #2e7d32; }
.cc-log-time { font-weight: 800; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; padding-top: 2px; white-space: nowrap; }
.cc-suspects { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cc-suspects li { display: flex; gap: 14px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.cc-suspects img { width: 48px; height: 48px; flex: none; }
.cc-suspects p { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.cc-role { display: inline-block; background: #fde9b8; color: var(--acorn); font-weight: 800; font-size: 0.7rem; padding: 1px 8px; border-radius: 999px; margin-left: 4px; vertical-align: 2px; }

/* Pop-up card for a spot */
.cc-pop {
  border: 0; padding: 0; border-radius: var(--radius); width: min(420px, calc(100% - 32px));
  box-shadow: 0 20px 50px rgba(7, 16, 98, 0.35); background: var(--paper); color: var(--ink); overflow: hidden;
}
.cc-pop::backdrop { background: rgba(7, 16, 98, 0.45); }
.cc-pop-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cc-pop.no-img::before {
  content: attr(data-icon); display: grid; place-items: center; height: 120px; font-size: 64px;
  background: repeating-linear-gradient(45deg, #efe2cc, #efe2cc 12px, #f6ecdb 12px, #f6ecdb 24px);
}
.cc-pop-body { padding: 18px 22px 22px; }
.cc-pop-body h3 { margin-bottom: 8px; }
.cc-pop-body p { margin: 0 0 10px; color: var(--muted); }
.cc-pop-tag { font-weight: 800; color: var(--leaf) !important; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px !important; }
.cc-pop-status { background: #eef1fc; border-radius: 10px; padding: 10px 12px; color: var(--bark) !important; }
.cc-pop-links { display: flex; flex-direction: column; gap: 4px; margin: 0 !important; font-weight: 800; }
.cc-pop-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(7, 16, 98, 0.8); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 1;
}
.cc-pop form { margin: 0; }

@media (max-width: 960px) {
  .cc-stats { grid-template-columns: 1fr 1fr; }
  .cc-pin-name { display: none; }
}
@media (max-width: 760px) {
  .cc-top { padding: 26px 0 30px; }
  .cc-banner { grid-template-columns: 1fr; }
  .cc-banner-actions { flex-direction: row; flex-wrap: wrap; }
  .cc-days-num { font-size: 2.8rem; }
  .cc-console { padding: 8px; }
  .cc-legend, .cc-compass { display: none; }
  .cc-map-wrap { grid-template-columns: 1fr; }
  .cc-map-inset { max-width: 380px; margin: 0 auto; }
  .cc-pin-dot { width: 26px; height: 26px; font-size: 13px; border-width: 2px; }
  .cc-lower { grid-template-columns: 1fr; gap: 28px; }
  .cc-ticker { border-radius: 14px; }
}
@media (max-width: 460px) {
  .cc-stats { gap: 10px; }
  .cc-panel { padding: 12px 14px; }
  .cc-grid-stats, .cc-crew { grid-column: 1 / -1; }
  .cc-days-num { font-size: 2.4rem; }
  .cc-threat-name { font-size: 1.1rem; }
  .cc-crew-status { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-dot, .cc-spark, .cc-bulb, .cc-reset.show { animation: none; }
  .cc-reset.show { transform: rotate(-8deg) scale(1); opacity: 1; }
  [data-cc-needle] { transition: none; }
}

/* ---------- Holiday theme (turned on by HOLIDAY_THEME in script.js) ---------- */
.holiday-lights {
  position: absolute; left: 0; right: 0; bottom: -14px; height: 18px; z-index: 5;
  display: flex; justify-content: space-between; padding: 0 10px; pointer-events: none;
}
.holiday-lights::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  border-bottom: 2px solid #1f3a1f; border-radius: 0 0 50% 50% / 0 0 100% 100%; opacity: .7;
}
.holiday-lights span {
  position: relative; top: 4px; width: 9px; height: 13px; border-radius: 50% 50% 45% 45%;
  background: #e8343c; box-shadow: 0 0 8px 2px rgba(232, 52, 60, .7);
  animation: holiday-twinkle 1.6s ease-in-out infinite alternate;
}
.holiday-lights span:nth-child(4n+2) { background: #2fbf5b; box-shadow: 0 0 8px 2px rgba(47, 191, 91, .7); animation-delay: .4s; }
.holiday-lights span:nth-child(4n+3) { background: #f2b632; box-shadow: 0 0 8px 2px rgba(242, 182, 50, .8); animation-delay: .8s; }
.holiday-lights span:nth-child(4n+4) { background: #4aa3ff; box-shadow: 0 0 8px 2px rgba(74, 163, 255, .7); animation-delay: 1.2s; }
.holiday-lights span:nth-child(n+21) { display: none; }
@media (min-width: 761px) { .holiday-lights span:nth-child(n+21) { display: block; } }
@keyframes holiday-twinkle { from { opacity: .45; } to { opacity: 1; } }
.holiday-snow { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.holiday-snow span { position: absolute; top: -24px; color: #fff; text-shadow: 0 0 3px rgba(7, 16, 98, .35); animation: holiday-fall linear infinite; }
@keyframes holiday-fall { to { transform: translateY(110vh) translateX(30px) rotate(200deg); } }
.holiday .hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 42, 42, 0.16), transparent 42%),
    radial-gradient(circle at 8% 95%, rgba(47, 140, 70, 0.14), transparent 38%),
    linear-gradient(160deg, #fff6e3 0%, #f6e3c4 100%);
}
.holiday .eyebrow { color: #c0262d; }
.holiday .dir-callout .eyebrow { color: var(--sun); }
.holiday .site-footer { border-top: 6px solid; border-image: repeating-linear-gradient(90deg, #c0262d 0 22px, #fff 22px 30px, #2f8c46 30px 52px, #fff 52px 60px) 6; }
@media (prefers-reduced-motion: reduce) { .holiday-lights span { animation: none; } }
