:root {
  --bg: #f6fbf8;
  --surface: #ffffff;
  --ink: #18352b;
  --muted: #587468;
  --line: #d8e7df;
  --accent: #2d8a5d;
  --accent-dark: #1f6a46;
  --accent-soft: #e5f5ec;
  --gold: #f0b54a;
  --shadow-soft: 0 12px 30px rgba(24, 53, 43, 0.06);
  --shadow-float: 0 22px 44px rgba(24, 53, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fbfffc 0%, var(--bg) 42%, #edf7f2 100%);
  line-height: 1.55;
}

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

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, #dff5ea, #f7fbf2);
  padding: 64px 0 48px;
}

.hero-grid,
.progress-layout,
.card-grid.two,
.card-grid.three,
.card-grid.four,
.facts-grid,
.story-grid {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: 2fr 1fr;
  align-items: center;
}

.card-grid.two,
.progress-layout,
.facts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.card-grid.four,
.story-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.lede {
  font-size: 1.15rem;
  max-width: 42rem;
  color: var(--muted);
}

.hero h1,
.story-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-highlights,
.story-meta,
.adult-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-highlights {
  margin-top: 22px;
}

.mini-highlight {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 180px;
}

.kid-callout-inline {
  margin-top: 20px;
  max-width: 420px;
}

.kid-callout-inline h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.kid-callout-inline ul {
  margin: 0;
  padding-left: 20px;
}

.kid-callout-inline li + li {
  margin-top: 6px;
}

.adult-links {
  margin-top: 16px;
}

.audience-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.audience-card h2 {
  font-size: 1.5rem;
}

.printable-sheet {
  max-width: 900px;
}

.printable-grid article {
  background: #f8fcf9;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.print-section + .print-section {
  margin-top: 24px;
}

.answer-line {
  border-bottom: 2px solid var(--line);
  height: 22px;
  margin: 8px 0;
}

.mini-highlight strong {
  display: block;
  margin-bottom: 4px;
}

.mini-highlight span,
.story-meta span {
  color: var(--muted);
  font-size: 0.95rem;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(31, 106, 70, 0.18);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  background: var(--accent);
  color: white;
}

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

.button.secondary {
  background: white;
  color: var(--accent-dark);
  border-color: var(--line);
}

button.button.secondary:disabled {
  opacity: 0.65;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.hero-card,
.card,
.story-card,
.story-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover,
.story-card:hover,
.hero-card:hover,
.story-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: #b7d8c7;
}

.brand-logo {
  width: min(320px, 100%);
  display: block;
  margin-bottom: 12px;
}

.hero-visual-card {
  position: relative;
  animation: floatCard 5.6s ease-in-out infinite;
}

.hero-visual {
  width: 100%;
  display: block;
  border-radius: 24px;
  min-height: 420px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(24, 53, 43, 0.10);
}

.brand-logo,
.inline-hero-image,
.story-thumb,
.badge-with-art img,
.hero-visual {
  transition: transform 240ms ease, box-shadow 240ms ease, filter 240ms ease;
}

.brand-logo:hover,
.inline-hero-image:hover,
.story-thumb:hover,
.badge-with-art img:hover,
.hero-visual:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-float);
  filter: saturate(1.04);
}

.hero-card-overlay {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 280px;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.92);
}

.section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 24px;
}

.story-card.featured {
  border-color: #9fd6b6;
  background: linear-gradient(180deg, #ffffff 0%, #f8fdf9 100%);
}

.story-difficulty {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef7f1;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.story-card {
  position: relative;
  overflow: hidden;
}

.story-card-glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(111, 208, 154, 0.22) 0%, rgba(111, 208, 154, 0) 72%);
  pointer-events: none;
  opacity: 0.8;
  transition: transform 260ms ease, opacity 260ms ease;
}

.story-card:hover .story-card-glow {
  transform: translate(18px, 12px) scale(1.08);
  opacity: 1;
}

.story-meta {
  margin: 14px 0 18px;
}

.story-meta span,
.step-number {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
}

.story-card.locked {
  opacity: 0.88;
}

.story-thumb {
  width: calc(100% + 48px);
  margin: -24px -24px 16px;
  display: block;
  border-radius: 20px 20px 0 0;
  height: 220px;
  object-fit: cover;
  object-position: center 38%;
  background: linear-gradient(180deg, #d9e4ea 0%, #eef4f7 100%);
}

.story-card.featured:last-child .story-thumb {
  object-position: center 28%;
  filter: saturate(1.06) contrast(1.04);
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
  animation: pulseGlow 3.2s ease-in-out infinite;
}

.proof-card h3,
.next-unlock-card h3 {
  margin-bottom: 10px;
}

.mission-card-status {
  margin-top: 12px;
  color: var(--accent-dark);
  font-weight: 700;
}

.mission-card-complete {
  border-color: #9fd6b6;
  background: linear-gradient(180deg, #ffffff 0%, #f4fcf7 100%);
}

.unlock-highlight {
  margin-top: 14px;
}

.pill.free {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.pill.member {
  background: #fff5db;
  color: #8a6307;
}

.pill.new {
  background: #e7efff;
  color: #3559a8;
}

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

.badge {
  background: #eef4f0;
  border-radius: 16px;
  padding: 16px;
  opacity: 0.58;
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease, background 180ms ease;
}

.badge-with-art img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 12px;
  display: block;
}

.badge strong,
.levels strong {
  display: block;
  margin-bottom: 6px;
}

.levels {
  padding-left: 20px;
  margin-bottom: 0;
}

.story-page {
  padding: 28px 0 60px;
}

.story-illustration img {
  width: 100%;
  display: block;
  border-radius: 18px;
  max-height: 540px;
  object-fit: cover;
  object-position: center 34%;
  background: linear-gradient(180deg, #d9e4ea 0%, #eef4f7 100%);
}

.section-lite {
  margin-top: 24px;
}

.explorer-hub {
  margin-top: 20px;
}

.hq-top-stats .stat-card strong {
  color: var(--accent-dark);
}

.featured-unlock-card {
  border-color: #9fd6b6;
  background: linear-gradient(180deg, #ffffff 0%, #f4fcf7 100%);
}

.quick-launch-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mission-map-groups {
  display: grid;
  gap: 18px;
}

.mission-map-group {
  padding: 22px;
}

.mission-map-head {
  margin-bottom: 14px;
}

.compact-grid {
  gap: 14px;
}

.mini-mission-card {
  padding: 16px;
  border-radius: 16px;
  background: #f8fcf9;
}

.mini-mission-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.mini-mission-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.future-worlds-group {
  border-style: dashed;
}

.profile-strip {
  display: grid;
  gap: 18px;
}

.explorer-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.explorer-tabs a {
  text-decoration: none;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.explorer-tabs a:hover {
  background: #d9efdf;
}

.progress-bar {
  width: 100%;
  height: 16px;
  background: #e9f1ec;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6fd09a);
  border-radius: 999px;
  transition: width 700ms ease;
}

.badge.earned {
  background: var(--accent-soft);
  border: 2px solid #9fd6b6;
  opacity: 1;
  animation: badgePop 480ms ease;
}

.capture-form-placeholder {
  border: 1px dashed #b9d6c6;
  border-radius: 18px;
  padding: 18px;
  background: #f8fcf9;
}

.capture-form-placeholder input,
.capture-form-placeholder textarea {
  background: #ffffff;
}

.stat-card {
  text-align: center;
}

.step-card {
  position: relative;
  padding-top: 58px;
}

.step-number {
  position: absolute;
  top: 20px;
  left: 24px;
  min-width: 34px;
  text-align: center;
  color: var(--accent-dark);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}

.price-card {
  position: relative;
}

.featured-price {
  border-color: #9fd6b6;
  background: #f8fdf9;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.cta-panel {
  margin-top: 24px;
  text-align: center;
}

.email-capture {
  margin-top: 28px;
}

.capture-form {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin: 18px auto 0;
}

.capture-form label {
  font-weight: 700;
  text-align: left;
}

.capture-form input,
.capture-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
}

.capture-form textarea {
  resize: vertical;
  min-height: 96px;
}

.capture-form small {
  color: var(--muted);
}

.capture-success {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}

.capture-success.visible {
  display: block;
}

.mini-game-shell {
  margin-top: 20px;
}

.mini-game-board {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

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

.mini-game-option {
  min-height: 110px;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf7 100%);
  padding: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.mini-game-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(24, 53, 43, 0.08);
}

.mini-game-option.correct {
  background: #dff5ea;
  border-color: #9fd6b6;
}

.mini-game-option.wrong {
  background: #fff0f0;
  border-color: #efb0b0;
}

.mini-game-option.matched {
  background: linear-gradient(180deg, #fdf7df 0%, #eef8f2 100%);
  border-color: #ead38a;
}

.story-card.is-complete {
  border-color: #9fd6b6;
  background: linear-gradient(180deg, #ffffff 0%, #f4fcf7 100%);
}

.story-card.is-complete .pill {
  background: #fff5db;
  color: #8a6307;
}

.mini-game-help {
  color: var(--muted);
  margin-top: 4px;
}

.mini-game-shell .capture-success.visible {
  display: block;
  animation: fadeUp 220ms ease;
}

.mini-game-shell .eyebrow {
  margin-bottom: 8px;
}

.mini-game-shell .pill {
  margin: 0;
}

.next-unlock-card .hero-actions {
  align-items: center;
}

.master-reward-card {
  border-color: #ead38a;
  background: linear-gradient(180deg, #fffdf3 0%, #f7fbf6 100%);
}

.master-reward-card.is-unlocked {
  box-shadow: 0 18px 34px rgba(240, 181, 74, 0.18);
}

.hq-banner {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.hq-banner .hero-highlights {
  margin-top: 0;
  justify-content: flex-end;
}

.mission-wheel-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.mission-wheel-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.mission-wheel-pointer {
  position: absolute;
  top: 0;
  font-size: 2rem;
  color: var(--accent-dark);
  z-index: 2;
}

.mission-wheel {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 10px solid #ffffff;
  box-shadow: 0 20px 38px rgba(24, 53, 43, 0.14);
  background: conic-gradient(
    #6fd09a 0deg 72deg,
    #f0b54a 72deg 144deg,
    #8cc4ff 144deg 216deg,
    #ffb48f 216deg 288deg,
    #d5b3ff 288deg 360deg
  );
  position: relative;
  transition: transform 3.2s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 180ms ease, transform-origin 180ms ease;
  cursor: pointer;
}

.mission-wheel:hover,
.mission-wheel:focus-visible {
  box-shadow: 0 24px 42px rgba(24, 53, 43, 0.18);
  outline: none;
}

.mission-wheel.is-spinning {
  cursor: progress;
}

.mission-wheel::before {
  content: '';
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.wheel-center {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--accent-dark);
  box-shadow: 0 10px 22px rgba(24, 53, 43, 0.12);
}

.mission-wheel-panel {
  display: grid;
  gap: 14px;
}

.surprise-fact-card {
  margin-top: 18px;
  background: linear-gradient(135deg, #fff8e8 0%, #eef8f2 100%);
  border-color: #ead38a;
}

.journal-card {
  border-style: dashed;
}

.journal-card strong {
  display: block;
  margin-bottom: 8px;
}

.master-reward-card.is-unlocked .pill {
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.back-link {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 700;
}

.story-hero {
  padding: 24px 0 18px;
}

.story-hero-with-image {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.inline-hero-image {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(24, 53, 43, 0.10);
  min-height: 360px;
  object-fit: cover;
  object-position: center 34%;
  background: linear-gradient(180deg, #d9e4ea 0%, #eef4f7 100%);
}

body[data-mission-key="story-snow-leopard"] .inline-hero-image,
body[data-mission-key="story-snow-leopard"] .story-illustration img {
  object-position: center 26%;
  filter: saturate(1.08) contrast(1.05);
}

.clean-parent-photo {
  min-height: 320px;
  background-image: url('assets/parents-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.story-block,
.story-choice,
.quiz-question {
  margin-top: 20px;
}

.story-choice {
  position: relative;
  overflow: hidden;
}

.story-choice[hidden],
.story-block[hidden] {
  display: none !important;
}

.story-choice::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(111, 208, 154, 0.16), transparent 42%);
  pointer-events: none;
  opacity: 0.9;
}

.mission-tools,
.completion-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.tool-card,
.fact-unlock {
  background: #eef8f2;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.tool-card strong,
.fact-unlock strong {
  display: block;
  margin-bottom: 6px;
}

.choice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.fact-unlock {
  margin: 12px 0 2px;
}

.fact-unlock p,
.tool-card span,
.completion-panel p {
  margin: 0;
  color: var(--muted);
}

.choices {
  padding-left: 20px;
}

.answer {
  background: var(--accent-soft);
  padding: 14px;
  border-radius: 14px;
}

.choice-buttons {
  display: grid;
  gap: 12px;
}

.story-option {
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.story-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(24, 53, 43, 0.08);
}

.story-option.selected-correct {
  background: #dff5ea;
  border-color: #9fd6b6;
}

.story-option.selected-wrong {
  background: #fff0f0;
  border-color: #efb0b0;
}

.choice-feedback {
  display: none;
  margin-top: 16px;
  background: var(--accent-soft);
  padding: 16px;
  border-radius: 16px;
}

.choice-feedback.visible {
  display: block;
  animation: fadeUp 240ms ease;
}

.mission-pulse {
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 2px solid rgba(111, 208, 154, 0.55);
  pointer-events: none;
  animation: missionPulse 820ms ease forwards;
}

.choice-feedback.is-correct {
  background: var(--accent-soft);
}

.choice-feedback.is-wrong {
  background: #fff4e8;
}

.feedback-step {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.feedback-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.feedback-why {
  color: var(--muted);
  margin-bottom: 14px;
}

.mission-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eef8f2;
  border: 1px solid var(--line);
  font-weight: 700;
}

.mission-status.is-complete {
  background: linear-gradient(90deg, #e7f7ee, #fdf7df);
  border-color: #b8dca9;
  animation: celebrationPulse 700ms ease;
}

.unlock-highlight {
  display: grid;
  gap: 6px;
}

.story-illustration {
  margin-top: 20px;
  overflow: hidden;
  padding: 0;
}

.story-illustration img {
  display: block;
  width: 100%;
  height: auto;
}

.story-illustration figcaption {
  padding: 14px 18px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge-showcase {
  margin-bottom: 20px;
}

.badge-showcase img {
  width: 100%;
  max-width: 720px;
  display: block;
  margin: 0 auto 12px;
  border-radius: 18px;
}

.badge-showcase figcaption {
  text-align: center;
  color: var(--muted);
}

.try-again-link,
.next-link {
  margin-top: 10px;
}

.success {
  border-color: #9fd6b6;
}

.mission-victory-banner {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff6d8, #eef8f2);
  border: 1px solid #ead38a;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 700;
  animation: rewardShine 1.2s ease;
}

.quiz-reward-line {
  margin-top: 10px;
  color: var(--accent-dark);
  font-weight: 700;
}

.end-quiz {
  margin-top: 24px;
}

.quiz-complete {
  margin-top: 20px;
}

.is-locked {
  display: none;
}

.quiz-question.is-locked,
#quiz-complete.is-locked {
  display: none;
}

.parent-panel {
  margin-top: 22px;
  background: #fbf8ef;
}

.teacher-anchor,
#earned-badges,
#next-unlocks,
#mission-map,
#level-ladder {
  scroll-margin-top: 24px;
}

.feature-list {
  margin: 0;
  padding-left: 20px;
}

.feature-list li + li {
  margin-top: 8px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.burst-celebration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
}

.burst-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0;
  animation: confettiBurst 900ms ease forwards;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(240, 181, 74, 0); }
  50% { box-shadow: 0 0 0 8px rgba(240, 181, 74, 0.08); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes badgePop {
  0% { transform: scale(0.92); }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes celebrationPulse {
  0% { transform: scale(0.99); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

@keyframes confettiBurst {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(var(--burst-y, -120px)) translateX(var(--burst-x, 0px)) scale(1.1);
  }
}

@keyframes rewardShine {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes missionPulse {
  0% {
    opacity: 0.9;
    transform: scale(0.98);
  }
  100% {
    opacity: 0;
    transform: scale(1.03);
  }
}

@media (max-width: 820px) {
  .hero-grid,
  .card-grid.two,
  .card-grid.three,
  .card-grid.four,
  .progress-layout,
  .facts-grid,
  .badge-grid,
  .story-grid,
  .story-hero-with-image,
  .mini-game-grid,
  .hq-banner {
    grid-template-columns: 1fr;
  }

  .hq-banner {
    display: grid;
  }

  .mission-wheel-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-card-overlay {
    position: static;
    max-width: none;
    margin-top: 16px;
  }
}

@media print {
  .no-print,
  .back-link {
    display: none !important;
  }

  body {
    background: white;
  }

  .printable-sheet {
    box-shadow: none;
    border: none;
    padding: 0;
  }
}
