/* ============================================================
   Sebastian Miles Insect Atlas — Field Guide Stylesheet
   Aesthetic: modern naturalist field guide, Florida palette
   ============================================================ */

:root {
  /* Florida nature palette */
  --ink: #24301f;
  --ink-soft: #4a5442;
  --paper: #faf5e9;
  --paper-deep: #f2e9d5;
  --card: #fffdf6;
  --leaf: #2f6b3c;
  --leaf-deep: #1e4a2a;
  --leaf-tint: #e3eddd;
  --sun: #f2b829;
  --sun-soft: #fbe7ae;
  --sky: #3f8fbf;
  --sky-soft: #d8ecf5;
  --clay: #b96a3d;
  --danger: #b3402e;
  --danger-soft: #f6ddd6;
  --careful: #a86f0e;
  --careful-soft: #fceecb;
  --safe: #2f6b3c;
  --safe-soft: #dfeede;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", "Trebuchet MS", Verdana, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 2px 4px rgba(36, 48, 31, 0.06), 0 12px 28px -12px rgba(36, 48, 31, 0.22);
  --shadow-soft: 0 1px 2px rgba(36, 48, 31, 0.05), 0 6px 16px -8px rgba(36, 48, 31, 0.15);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* subtle paper grain */
  background-image:
    radial-gradient(ellipse at 20% -10%, rgba(242, 184, 41, 0.10), transparent 55%),
    radial-gradient(ellipse at 110% 15%, rgba(63, 143, 191, 0.08), transparent 50%),
    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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

img { max-width: 100%; }

a { color: var(--sky); }
a:hover { color: var(--leaf); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--leaf-deep);
  margin: 0 0 0.5em;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 233, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--leaf);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--leaf-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand .brand-bug {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  background: var(--sun);
  border: 2px solid var(--leaf-deep);
  border-radius: 50%;
  font-size: 1.25rem;
  box-shadow: 2px 2px 0 var(--leaf-deep);
}

.nav-toggle {
  display: none;
  background: var(--leaf);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover { background: var(--leaf-tint); color: var(--leaf-deep); }

.site-nav a.active {
  background: var(--leaf);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 3rem;
  border-bottom: 2px dashed rgba(47, 107, 60, 0.35);
}

.hero .plate-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  border: 1.5px solid var(--clay);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 1rem;
  background: var(--card);
}

.hero h1 {
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  font-weight: 700;
  margin-bottom: 0.35em;
}

.hero h1 .accent { color: var(--sun); text-shadow: 1px 1px 0 var(--leaf-deep); }

.hero .subtitle {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 0 1.6rem;
}

.hero-bugs {
  position: absolute;
  right: -0.5rem;
  top: 0;
  bottom: 0;
  width: min(38vw, 330px);
  pointer-events: none;
  user-select: none;
}

.hero-bugs span {
  position: absolute;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  filter: drop-shadow(2px 3px 2px rgba(36, 48, 31, 0.25));
  animation: float 6s ease-in-out infinite;
}

.hero-bugs .b1 { top: 12%; right: 55%; animation-delay: 0s; }
.hero-bugs .b2 { top: 34%; right: 12%; font-size: clamp(2.4rem, 6vw, 4rem); animation-delay: -2s; }
.hero-bugs .b3 { top: 62%; right: 42%; animation-delay: -4s; }
.hero-bugs .b4 { top: 78%; right: 8%; animation-delay: -1s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--leaf);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--leaf-deep);
  box-shadow: 3px 3px 0 var(--leaf-deep);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  color: #fff;
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--leaf-deep);
}

.btn.sun { background: var(--sun); color: var(--leaf-deep); }
.btn.sky { background: var(--sky); }
.btn.ghost {
  background: var(--card);
  color: var(--leaf-deep);
}

/* ---------- Sections ---------- */

.section { padding: 3rem 0; }

.section-head { margin-bottom: 1.75rem; }

.section-head .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.3rem;
}

.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.3rem; }

.section-head p { color: var(--ink-soft); max-width: 60ch; margin: 0; }

/* ---------- Card grids ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Specimen cards (atlas) ---------- */

.specimen {
  position: relative;
  background: var(--card);
  border: 1.5px solid rgba(36, 48, 31, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.specimen:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.specimen-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.plate {
  flex: none;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  background: var(--paper-deep);
  border: 2px dashed rgba(47, 107, 60, 0.5);
  border-radius: 50%;
}

.specimen h3 {
  font-size: 1.35rem;
  margin: 0 0 0.2rem;
}

.chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--sky-soft);
  color: var(--sky);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.specimen p.desc { margin: 0; color: var(--ink-soft); }

.spec-rows {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0.85rem;
  background: var(--paper);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(36, 48, 31, 0.08);
  font-size: 0.95rem;
}

.spec-rows div { display: flex; gap: 0.5rem; }

.spec-rows dt {
  flex: none;
  width: 5.4rem;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  padding-top: 0.2rem;
}

.spec-rows dd { margin: 0; }

.fact {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  background: var(--sun-soft);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  border: 1px dashed rgba(168, 111, 14, 0.5);
}

.fact strong { color: var(--careful); }

/* Safety badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  border: 1.5px solid currentColor;
}

.badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

.badge.safe { color: var(--safe); background: var(--safe-soft); }
.badge.careful { color: var(--careful); background: var(--careful-soft); }
.badge.danger { color: var(--danger); background: var(--danger-soft); }

/* Not-an-insect special card */

.specimen.not-insect {
  border: 2px solid var(--clay);
  background: linear-gradient(180deg, #fff8ef, var(--card));
}

.not-insect-tag {
  display: inline-block;
  background: var(--clay);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

/* ---------- Atlas filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-btn {
  background: var(--card);
  border: 1.5px solid rgba(36, 48, 31, 0.25);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  cursor: pointer;
  transition: background 0.12s ease;
}

.filter-btn:hover { background: var(--leaf-tint); }

.filter-btn.active {
  background: var(--leaf);
  border-color: var(--leaf-deep);
  color: #fff;
}

.search-box {
  flex: 1 1 200px;
  min-width: 180px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid rgba(36, 48, 31, 0.25);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
}

.search-box:focus { outline: 2px solid var(--sun); border-color: var(--sun); }

.no-results {
  display: none;
  text-align: center;
  color: var(--ink-soft);
  padding: 2rem 1rem;
  font-size: 1.1rem;
}

/* ---------- Feature cards (home / habitats / videos) ---------- */

.feature {
  background: var(--card);
  border: 1.5px solid rgba(36, 48, 31, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.feature { text-decoration: none; color: var(--ink); }

.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.feature .icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  border-radius: 16px;
  background: var(--leaf-tint);
  border: 1.5px dashed rgba(47, 107, 60, 0.45);
}

.feature h3 { margin: 0; font-size: 1.25rem; }

.feature p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.feature .go {
  margin-top: auto;
  font-weight: 700;
  color: var(--leaf);
  font-size: 0.95rem;
}

.feature.sun-tint .icon { background: var(--sun-soft); border-color: rgba(168, 111, 14, 0.45); }
.feature.sky-tint .icon { background: var(--sky-soft); border-color: rgba(63, 143, 191, 0.45); }
.feature.clay-tint .icon { background: #f3e0d1; border-color: rgba(185, 106, 61, 0.45); }

/* ---------- Habitat bands ---------- */

.habitat {
  display: grid;
  gap: 1.25rem;
  background: var(--card);
  border: 1.5px solid rgba(36, 48, 31, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
}

@media (min-width: 720px) {
  .habitat { grid-template-columns: 130px 1fr; align-items: start; }
}

.habitat .habitat-icon {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  border-radius: 50%;
  background: var(--sky-soft);
  border: 2px dashed rgba(63, 143, 191, 0.5);
}

.habitat h3 { font-size: 1.45rem; margin-bottom: 0.25rem; }

.habitat .residents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.habitat .residents span {
  background: var(--paper);
  border: 1px solid rgba(36, 48, 31, 0.15);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
}

/* ---------- Fun facts ---------- */

.fact-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  border: 1.5px solid rgba(36, 48, 31, 0.16);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.5rem 1.4rem;
  overflow: hidden;
}

.fact-card .fact-num {
  position: absolute;
  top: 0.4rem;
  right: 0.9rem;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--paper-deep);
  line-height: 1;
  z-index: 0;
}

.fact-card .emoji { font-size: 2rem; position: relative; z-index: 1; }

.fact-card h3 { font-size: 1.2rem; position: relative; z-index: 1; margin: 0.4rem 0 0.3rem; }

.fact-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; position: relative; z-index: 1; }

/* ---------- Video / resource cards ---------- */

.video-card, .resource-card {
  background: var(--card);
  border: 1.5px solid rgba(36, 48, 31, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.video-thumb {
  display: grid;
  place-items: center;
  height: 120px;
  border-radius: var(--radius-sm);
  font-size: 3rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(242, 184, 41, 0.35), transparent 60%),
    linear-gradient(135deg, var(--sky-soft), var(--leaf-tint));
  border: 1.5px dashed rgba(47, 107, 60, 0.4);
}

.video-card h3, .resource-card h3 { margin: 0; font-size: 1.2rem; }

.video-card p, .resource-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

.source-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  background: var(--sky-soft);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
}

/* ---------- Callouts ---------- */

.callout {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--sky-soft);
  border: 1.5px dashed rgba(63, 143, 191, 0.55);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 2rem 0 0;
}

.callout .callout-icon { font-size: 1.7rem; flex: none; }

.callout p { margin: 0; font-size: 0.98rem; }

.callout.warn { background: var(--careful-soft); border-color: rgba(168, 111, 14, 0.55); }

/* ---------- Legend strip (atlas) ---------- */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  background: var(--card);
  border: 1.5px solid rgba(36, 48, 31, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.legend .legend-title { font-weight: 700; color: var(--leaf-deep); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 3rem;
  background: var(--leaf-deep);
  color: #e8f0e4;
  padding: 2.5rem 0 2rem;
  border-top: 6px solid var(--sun);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.site-footer h4 { color: var(--sun); font-size: 1.05rem; margin-bottom: 0.6rem; }

.site-footer p { margin: 0; font-size: 0.95rem; color: #c4d4bd; }

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }

.site-footer a { color: #e8f0e4; text-decoration: none; font-size: 0.95rem; }

.site-footer a:hover { color: var(--sun); }

.footer-note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 240, 228, 0.2);
  font-size: 0.85rem;
  color: #a8bda0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bugs span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile nav ---------- */

@media (max-width: 780px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 3px solid var(--leaf);
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: block; }

  .site-nav ul { flex-direction: column; padding: 0.75rem 1.25rem 1rem; gap: 0.15rem; }

  .site-nav a { padding: 0.65rem 0.8rem; border-radius: var(--radius-sm); font-size: 1.05rem; }

  .hero { padding: 2.5rem 0 5.5rem; }

  .hero-bugs { top: auto; bottom: -0.75rem; height: 5.5rem; width: 100%; }
  .hero-bugs .b1 { top: 10%; right: 74%; }
  .hero-bugs .b2 { top: 0; right: 46%; }
  .hero-bugs .b3 { top: 30%; right: 26%; }
  .hero-bugs .b4 { top: 12%; right: 6%; }
}

/* ---------- Sebastian's Insect Challenge (quiz) ---------- */

.quiz-wrap { max-width: 720px; margin: 0 auto; }

.quiz-card {
  background: var(--card);
  border: 1.5px solid rgba(36, 48, 31, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 1.6rem;
}

.quiz-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.quiz-progress-text {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}

.quiz-type-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--sky-soft);
  color: var(--sky);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
}

.quiz-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--paper-deep);
  overflow: hidden;
  margin-bottom: 1.3rem;
}

.quiz-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf), var(--sun));
  transition: width 0.4s ease;
}

.quiz-question {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin: 0 0 1.2rem;
}

.quiz-options { display: grid; gap: 0.65rem; }

.quiz-option {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(36, 48, 31, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.05rem;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}

.quiz-option:hover:not(:disabled) { background: var(--leaf-tint); transform: translateX(3px); }

.quiz-option:disabled { cursor: default; opacity: 0.75; }

.quiz-option.is-correct {
  background: var(--safe-soft);
  border-color: var(--safe);
  color: var(--safe);
  opacity: 1;
}

.quiz-option.is-wrong {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
  opacity: 1;
}

.quiz-feedback {
  margin-top: 1.25rem;
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  border: 1.5px dashed;
}

.quiz-feedback.good { background: var(--safe-soft); border-color: var(--safe); }
.quiz-feedback.bad { background: var(--careful-soft); border-color: var(--careful); }

.quiz-verdict { margin: 0 0 0.3rem; font-weight: 700; font-size: 1.1rem; }

.quiz-explain { margin: 0 0 0.9rem; font-size: 0.98rem; }

.quiz-results { text-align: center; padding: 2.5rem 1.6rem; }

.quiz-result-emoji { font-size: 3.6rem; line-height: 1; margin-bottom: 0.6rem; }

.quiz-result-title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin-bottom: 0.4rem;
}

.quiz-score { font-size: 1.15rem; margin: 0 0 0.5rem; }

.quiz-msg { color: var(--ink-soft); max-width: 44ch; margin: 0 auto 1.5rem; }

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.quiz-next, .quiz-again { font-family: var(--font-body); font-size: 1rem; cursor: pointer; }
