:root {
  --primary: oklch(45% 0.08 55);
  --primary-foreground: oklch(98% 0.01 85);
  --background: oklch(98% 0.008 85);
  --foreground: oklch(25% 0.03 55);
  --card: oklch(100% 0 0);
  --card-foreground: oklch(25% 0.03 55);
  --secondary: oklch(95% 0.02 85);
  --secondary-foreground: oklch(35% 0.04 55);
  --muted: oklch(94% 0.015 85);
  --muted-foreground: oklch(50% 0.03 55);
  --accent: oklch(92% 0.03 145);
  --accent-foreground: oklch(25% 0.06 145);
  --border: oklch(90% 0.02 85);
  --input: oklch(90% 0.02 85);
  --ring: oklch(45% 0.08 55);
  --radius: 0.75rem;
  --nav-bg: oklch(98% 0.008 85 / 0.92);
  --hero-bg-1: oklch(97% 0.02 85);
  --hero-bg-2: oklch(95% 0.015 85);
  --tint-bg: oklch(97% 0.015 85);
  --surface: oklch(97% 0.02 85);
  --surface-2: oklch(94% 0.025 85);
  --overlay: oklch(20% 0.02 260);
}

[data-theme="dark"] {
  --primary: oklch(100% 0 0);
  --primary-foreground: oklch(0% 0 0);
  --background: oklch(0% 0 0);
  --foreground: oklch(100% 0 0);
  --card: oklch(0% 0 0);
  --card-foreground: oklch(100% 0 0);
  --secondary: oklch(12% 0 0);
  --secondary-foreground: oklch(100% 0 0);
  --muted: oklch(12% 0 0);
  --muted-foreground: oklch(85% 0 0);
  --accent: oklch(15% 0 0);
  --accent-foreground: oklch(100% 0 0);
  --border: oklch(30% 0 0);
  --input: oklch(30% 0 0);
  --ring: oklch(100% 0 0);
  --nav-bg: oklch(0% 0 0 / 0.92);
  --hero-bg-1: oklch(0% 0 0);
  --hero-bg-2: oklch(0% 0 0);
  --tint-bg: oklch(6% 0 0);
  --surface: oklch(8% 0 0);
  --surface-2: oklch(14% 0 0);
  --overlay: oklch(0% 0 0);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}
body {
  background-color: var(--background);
  color: var(--foreground);
  margin: 0;
  font-family: "Nunito", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.2s, color 0.2s;
}

h1, h2, h3, p {
  margin: 0;
}

.font-display {
  font-family: "Pacifico", cursive;
  font-weight: 400;
}

/* ---------- animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.animate-float { animation: 3s ease-in-out infinite float; }
.animate-fade-in-up { animation: 0.6s forwards fadeInUp; }
.animate-pulse-heart { animation: 1.5s ease-in-out infinite pulse-heart; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  font-family: inherit;
  transition: color 0.15s;
  padding: 0;
}
.nav-links button:hover {
  color: var(--primary);
}
.theme-toggle {
  font-size: 1rem;
  line-height: 1;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgb(0 0 0 / 0.1);
    padding: 0.5rem 1.5rem 1rem;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links button {
    width: 100%;
    text-align: left;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links button:last-child {
    border-bottom: none;
  }
  .nav-links .theme-toggle {
    width: auto;
    border-bottom: none;
    padding-top: 1rem;
  }
  .nav-inner {
    position: relative;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: 6rem 1.5rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--hero-bg-1), var(--hero-bg-2));
}
.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: oklch(100% 0 0 / 0.7);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08);
  margin-bottom: 1.5rem;
}
.hero-photo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.hero-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 4px solid var(--card);
  box-shadow: 0 20px 40px oklch(45% 0.08 55 / 0.25);
}
.hero-float-badge {
  position: absolute;
  background: var(--card);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--foreground);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.15);
  white-space: nowrap;
}
.hero-float-badge-1 {
  top: -0.5rem;
  right: -1rem;
  animation: 2s ease-in-out infinite pulse-heart;
}
.hero-float-badge-2 {
  bottom: 0.5rem;
  left: -1.5rem;
}
.hero-photo-credit {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}
.hero-photo-credit a {
  color: inherit;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

/* ---------- sections ---------- */
.section {
  padding: 5rem 1.5rem;
}
.section-card {
  background: var(--card);
}
.section-tint {
  background: var(--tint-bg);
}
.container {
  max-width: 1280px;
  margin: 0 auto;
}
.container.narrow {
  max-width: 640px;
}
.container.medium {
  max-width: 960px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--primary);
  text-align: center;
  margin-bottom: 3rem;
}
.section-title.tight {
  margin-bottom: 0.75rem;
}
.section-sub {
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}
.section-sub.constrained {
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ---------- facts ---------- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.fact-card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: default;
}
.fact-card:hover {
  box-shadow: 0 8px 24px oklch(45% 0.08 55 / 0.1);
  transform: translateY(-2px);
}
.fact-emoji {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}
.fact-card h3 {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.fact-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---------- gallery ---------- */
.gallery-grid {
  columns: 2;
  column-gap: 1rem;
}
@media (min-width: 768px) {
  .gallery-grid { columns: 3; }
}
@media (min-width: 1024px) {
  .gallery-grid { columns: 4; }
}
.gallery-grid > * {
  break-inside: avoid;
  margin-bottom: 1rem;
}
.gallery-item {
  position: relative;
  cursor: pointer;
  border-radius: 0.75rem;
  overflow: hidden;
  background: oklch(92% 0.03 85);
}
.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 0.75rem;
  transition: transform 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.04);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: oklch(15% 0.015 260 / 0.9);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-inner {
  max-width: 680px;
  width: 100%;
}
.lightbox-inner img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}
.lightbox-inner p {
  color: #fff;
  text-align: center;
  margin-top: 1rem;
  font-weight: 700;
}
.lightbox-inner button {
  display: block;
  margin: 1rem auto 0;
  background: none;
  border: none;
  color: oklch(92% 0.01 85 / 0.6);
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
}

/* ---------- quiz ---------- */
.difficulty-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.difficulty-btn {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: capitalize;
  transition: all 0.15s;
}
.difficulty-btn:hover {
  border-color: var(--primary);
  background: var(--surface-2);
}
.quiz-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}
.quiz-meta .difficulty-label {
  font-weight: 600;
  text-transform: capitalize;
}
.quiz-card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.quiz-question {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.quiz-option {
  text-align: left;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  transition: all 0.1s;
}
.quiz-option.correct {
  background: oklch(96% 0.044 156);
  border-color: oklch(72% 0.219 149);
  color: oklch(30% 0.08 145);
}
.quiz-option.wrong {
  background: oklch(97% 0.013 17);
  border-color: oklch(70% 0.191 22);
  color: oklch(50% 0.213 27);
}
.quiz-option.dimmed {
  background: var(--muted);
  border-color: var(--border);
  color: var(--muted-foreground);
}
.quiz-option.locked {
  cursor: default;
}
.quiz-next {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  transition: opacity 0.15s;
}
.quiz-next:hover {
  opacity: 0.9;
}
.quiz-results {
  text-align: center;
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
}
.quiz-results .result-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: inline-block;
}
.quiz-results .result-score {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.quiz-results .result-message {
  color: var(--muted-foreground);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.quiz-retry {
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  transition: opacity 0.15s;
}
.quiz-retry:hover {
  opacity: 0.85;
}

/* ---------- pet laws ---------- */
.states-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.state-wrap {
  position: relative;
}
.state-chip {
  padding: 0.4rem 0.875rem;
  border-radius: 0.625rem;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: default;
  transition: transform 0.15s;
}
.state-chip.legal {
  background: oklch(96% 0.044 156);
  border: 1px solid oklch(79% 0.209 151);
  color: oklch(30% 0.08 145);
}
.state-chip.illegal {
  background: oklch(97% 0.013 17);
  border: 1px solid oklch(70% 0.191 22);
  color: oklch(50% 0.213 27);
}
.state-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--overlay);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
  display: none;
}
.state-wrap:hover .state-tooltip {
  display: block;
}
.state-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--overlay);
}
.legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  font-size: 0.875rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.legend-item span {
  color: var(--muted-foreground);
}
.legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.legend-swatch.legal {
  background: oklch(96% 0.044 156);
  border: 1px solid oklch(79% 0.209 151);
}
.legend-swatch.illegal {
  background: oklch(97% 0.013 17);
  border: 1px solid oklch(70% 0.191 22);
}

/* ---------- capybara of the week ---------- */
.capyweek-card {
  background: var(--surface);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
}
@media (min-width: 768px) {
  .capyweek-card {
    display: flex;
  }
}
.capyweek-photo {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .capyweek-photo {
    width: 50%;
    height: auto;
  }
}
.capyweek-body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
@media (min-width: 768px) {
  .capyweek-body {
    width: 50%;
  }
}
.capyweek-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.capyweek-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.capyweek-body p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.capyweek-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.capyweek-tags span {
  background: var(--card);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* ---------- lava climb ---------- */
.lava-climb-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding-top: 150%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.15);
  border: 1px solid var(--border);
}
.lava-climb-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- capy crush ---------- */
.capy-crush-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-top: 140%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.15);
  border: 1px solid var(--border);
}
.capy-crush-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- game fullscreen (shared by lava climb + capy crush) ---------- */
.frame-fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.frame-fullscreen-btn:hover {
  background: rgba(0,0,0,0.75);
}

/* Works whether or not the real Fullscreen API is available (e.g. iOS Safari
   has no Fullscreen API for arbitrary elements) — this is a fixed, full
   viewport overlay that visually reads as fullscreen everywhere. */
.lava-climb-frame-wrap.is-fullscreen,
.capy-crush-frame-wrap.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  width: 100vw;
  height: 100vh;
  max-width: none;
  padding-top: 0;
  border-radius: 0;
  border: none;
  margin: 0;
}
body.game-fullscreen-lock {
  overflow: hidden;
}

/* ---------- news ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.news-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
  transform: translateY(-2px);
}
.news-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
  background: var(--muted);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.news-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.news-status {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  padding: 2rem 0;
}

/* ---------- conservation ---------- */
.conservation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.conservation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.conservation-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* Custom capybara icon (no such emoji exists in Unicode) rendered via inline
   SVG — sized to the font-size of whatever container it's dropped into. */
.capy-icon svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
}
.capy-icon-inline {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.25em;
}
.capy-icon-inline svg {
  width: 100%;
  height: 100%;
}
.conservation-card h3 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.conservation-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.conservation-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  color: #fff;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}
.conservation-btn:hover {
  opacity: 0.85;
}
.conservation-btn.green {
  background: oklch(52% 0.15 145);
}
.conservation-btn.primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ---------- footer ---------- */
.footer {
  padding: 3rem 1.5rem;
  background: oklch(25% 0.03 55);
  color: oklch(85% 0.02 85);
  text-align: center;
}
.footer-brand {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: oklch(92% 0.03 85);
}
.footer p {
  font-size: 0.875rem;
  color: oklch(65% 0.025 55);
}
[data-theme="dark"] .footer {
  background: oklch(0% 0 0);
  color: oklch(100% 0 0);
  border-top: 1px solid var(--border);
}
[data-theme="dark"] .footer-brand {
  color: oklch(100% 0 0);
}
[data-theme="dark"] .footer p {
  color: oklch(85% 0 0);
}
[data-theme="dark"] .state-tooltip {
  background: oklch(15% 0 0);
  border: 1px solid var(--border);
}
[data-theme="dark"] .state-tooltip::after {
  border-top-color: oklch(15% 0 0);
}
[data-theme="dark"] .hero-badge {
  background: oklch(15% 0 0 / 0.7);
  color: var(--primary);
}

/* ---------- mobile fixes ---------- */
@media (max-width: 640px) {
  .hero {
    padding: 4.5rem 1.25rem 3.5rem;
  }
  .hero-photo-wrap {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .hero-photo {
    width: 160px;
    height: 160px;
  }
  .hero-float-badge {
    font-size: 0.6875rem;
    padding: 0.3rem 0.65rem;
  }
  .hero-float-badge-1 {
    top: -0.25rem;
    right: -0.25rem;
  }
  .hero-float-badge-2 {
    bottom: 0.25rem;
    left: -0.25rem;
  }
  .hero-stats {
    gap: 1.25rem;
  }
  .section {
    padding: 3.5rem 1.25rem;
  }
  .capyweek-body {
    padding: 1.25rem 1.5rem;
    text-align: center;
    align-items: center;
  }
  .capyweek-tags {
    justify-content: center;
  }
  .legend {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .conservation-grid {
    grid-template-columns: 1fr;
  }
  .lava-climb-frame-wrap {
    width: auto;
    max-width: none;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .capy-crush-frame-wrap {
    width: auto;
    max-width: none;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}
