:root {
  color-scheme: light;
  --ink: #263746;
  --muted: #4e6069;
  --cream: #f5f8f5;
  --white: #ffffff;
  --coral: #b84f40;
  --coral-dark: #913b31;
  --blue: #20596a;
  --yellow: #f0d07b;
  --mint: #e6f0e8;
  --line: #dce6e1;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.65;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, iframe:focus-visible {
  outline: 3px solid #a44600;
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--blue);
  border-radius: 0.5rem;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  width: calc(100% - 2rem);
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.brand { gap: 0.5rem; font-size: 1.08rem; flex: 0 1 auto; min-width: 0; }
.brand-animal-strip {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 1px;
  width: clamp(140px, 15vw, 170px);
  height: 58px;
  flex: 0 1 170px;
  overflow: hidden;
  transform: translateY(-1.2rem);
}
.brand-animal-strip img {
  display: block;
  min-width: 0;
  height: 100%;
  flex: 1 1 0;
  object-fit: contain;
  object-position: center 65%;
}
body.home-page .brand-animal-strip { transform: translateY(-0.46rem); }
.brand-name { max-width: 220px; display: flex; flex-wrap: wrap; gap: 0.15rem 0.42rem; line-height: 1.15; padding: 0.35rem 0.5rem; background: #000; border-radius: 0.45rem; }
.brand-word { display: inline-flex; white-space: nowrap; }
.brand-word span { font-weight: 850; }
.brand-word span:nth-child(9n + 1) { color: #39FF14; }
.brand-word span:nth-child(9n + 2) { color: #00FFFF; }
.brand-word span:nth-child(9n + 3) { color: #FF6EC7; }
.brand-word span:nth-child(9n + 4) { color: #1F51FF; }
.brand-word span:nth-child(9n + 5) { color: #BF00FF; }
.brand-word span:nth-child(9n + 6) { color: #FF073A; }
.brand-word span:nth-child(9n + 7) { color: #FF5F1F; }
.brand-word span:nth-child(9n + 8) { color: #FFFF33; }
.brand-word span:nth-child(9n) { color: #FF6D6A; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; flex: 0 0 auto; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
.site-nav .nav-upcoming { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.site-nav .nav-upcoming small { color: var(--coral-dark); font-size: 0.72em; font-weight: 800; }
.site-nav a:hover, .privacy-link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.language-menu { display: flex; align-items: center; gap: 0.6rem; }
.language-menu a { display: inline-flex; align-items: center; gap: 0.25rem; white-space: nowrap; font-size: 0.88rem; }
.language-flag-icon { display: block; width: 1.5rem; height: 1rem; flex: 0 0 auto; overflow: hidden; border: 1px solid rgb(38 55 70 / 22%); border-radius: 2px; box-shadow: 0 1px 2px rgb(0 0 0 / 12%); }
.language-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.2em; }
.site-nav .nav-cta {
  padding: 0.65rem 1rem;
  color: var(--white);
  background: #101216;
  border-radius: 999px;
}
.menu-toggle { display: none; }

@media (min-width: 761px) and (max-width: 1000px) {
  .header-inner { min-height: 72px; gap: 1rem; }
  .brand { gap: 0.55rem; font-size: 1rem; }
  .brand-animal-strip { width: clamp(145px, 23vw, 205px); height: 48px; transform: translateY(-1rem); }
  body.home-page .brand-animal-strip { transform: translateY(-0.28rem); }
  .brand-name { max-width: 260px; }
  .menu-toggle {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
  }
  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--cream);
    border-top: 1px solid #f0e8d8;
  }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav a { padding: 0.8rem 0.35rem; }
  .site-nav .nav-upcoming { padding: 0.8rem 0.35rem; }
  .site-nav .nav-cta { margin-top: 0.35rem; padding-left: 1rem; }
}

.hero { position: relative; overflow: hidden; color: #fff; background: #101216; }
.hero .eyebrow { color: #ffe092; }
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  min-height: auto;
  margin: auto;
  padding: 3rem 0 4rem;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
}
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--blue);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero h1, h2 {
  margin: 0;
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.12;
}
.hero h1 { max-width: 100%; font-size: clamp(2.65rem, 6vw, 4.6rem); }
.hero h1 span, h2 span { color: var(--coral-dark); }
.hero-color-title { display: flex; flex-wrap: wrap; justify-content: flex-start; column-gap: 0.22em; row-gap: 0.08em; }
.hero-color-title .brand-word { font-weight: 900; }
.hero-copy { text-align: center; }
.hero-text { max-width: 720px; margin: 1.2rem auto 0; color: #edf5fa; font-size: 1.15rem; }
body.home-page .hero-text { -webkit-tap-highlight-color: transparent; }
body.home-page .hero-text::selection { color: #edf5fa; background: #101216; }
body.home-page .hero-text::-moz-selection { color: #edf5fa; background: #101216; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgb(36 49 74 / 14%); }
.button-primary { color: var(--white); background: var(--blue); }
.hero .button-primary { color: var(--ink); background: var(--yellow); }
.hero-art { width: 100%; max-width: 620px; justify-self: center; display: grid; justify-items: center; gap: 0.8rem; }
.hero-rocco-promo { display: grid; justify-items: center; gap: 0.4rem; }
.hero-rocco-character { display: block; width: min(350px, 92vw); height: 240px; }
.hero-rocco-character img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: filter 150ms ease; }
.hero-rocco-character:hover img { filter: brightness(1.06); }
.hero-rocco-character:focus-visible { border-radius: 1rem; outline: 3px solid #ffe092; outline-offset: 2px; }
.hero-rocco-copy { min-width: 0; }
.rocco-speech-bubble { position: relative; display: inline-block; max-width: min(100%, 310px); margin: 0; padding: 0.75rem 1rem; color: #101216; background: #fff; border: 2px solid #ffe092; border-radius: 1.15rem; box-shadow: 0 5px 0 rgb(16 18 22 / 14%); font-size: 1rem; font-weight: 850; line-height: 1.35; text-align: center; text-decoration: none; }
.rocco-speech-bubble::after { position: absolute; bottom: -11px; left: calc(50% - 10px); width: 0; height: 0; content: ""; border-top: 12px solid #fff; border-right: 10px solid transparent; border-left: 10px solid transparent; filter: drop-shadow(0 2px 0 #ffe092); }
.rocco-speech-bubble:hover { background: #fff0bd; }
.rocco-speech-bubble:hover::after { border-top-color: #fff0bd; }
.rocco-speech-bubble:focus-visible { outline: 3px solid #ffe092; outline-offset: 4px; }
.rocco-speech-bubble-side { transform: translateX(-clamp(35px, 7vw, 85px)); }
.rocco-speech-bubble-side::after { left: auto; right: 18%; }
.hero-characters { width: 100%; margin: 0; overflow: hidden; aspect-ratio: 2 / 1; background: #fff; border: 7px solid #fff; border-radius: 1.4rem; box-shadow: 0 12px 32px rgb(0 0 0 / 28%); }
.hero-characters img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }

.section { width: min(1000px, calc(100% - 2.5rem)); margin: auto; padding: 5rem 0; }
.rocco-section { padding-bottom: 1.5rem; }
.section-heading { max-width: 690px; margin: 0 auto 2rem; text-align: center; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.rocco-heading { max-width: 900px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 0.16em; }
.rocco-heading .rocco-heading-start { color: var(--ink); }
.rocco-heading-image { display: inline-block; width: clamp(170px, 22vw, 250px); height: auto; flex: 0 0 auto; vertical-align: middle; filter: drop-shadow(0 4px 4px rgb(36 55 70 / 14%)); }
.section-heading > p:last-child, .signup-intro > p:last-child { margin: 1rem auto 0; color: var(--muted); font-size: 1.08rem; }
.presentation-section { padding-top: 3.5rem; padding-bottom: 2rem; }
.presentation-section .section-heading { margin-bottom: 1.5rem; }
.presentation-grid { display: grid; grid-template-columns: minmax(0, 1000px); justify-content: center; gap: 1rem; }
.presentation-card { min-width: 0; padding: 0.85rem; background: #f5f8f5; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 8px 24px rgb(36 49 74 / 7%); }
.presentation-card h3 { display: flex; align-items: center; justify-content: center; gap: 0.55rem; margin: 0 0 0.75rem; color: var(--ink); font-size: 1.15rem; }
.language-flag { font-size: 1.5rem; line-height: 1; }
.presentation-video { display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 9; background: #101216; border-radius: 0.65rem; }
.presentation-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.animal-gallery {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
}
.animal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  min-height: 10rem;
  padding: 0;
  background: transparent;
}
.animal-card img {
  display: block;
  width: 100%;
  height: clamp(110px, 15vw, 170px);
  object-fit: contain;
  object-position: center bottom;
}
.animal-name {
  margin-top: 0.2rem;
  color: var(--blue);
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: clamp(0.7rem, 1vw, 0.95rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}
.storyboard-main { width: min(1120px, calc(100% - 2.5rem)); margin: auto; padding: 3rem 0 4rem; }
.storyboard-section .section-heading { margin-bottom: 1.25rem; }
.storyboard-main h1 { margin: 0.25rem 0 0.75rem; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; }
.storybook { width: min(900px, 100%); margin: 0 auto; perspective: 1800px; }
.storybook-pages { padding: clamp(0.5rem, 2vw, 1rem); background: #f5f0e6; border: 1px solid #e0d6c5; border-radius: 1rem; box-shadow: 0 16px 36px rgb(36 49 74 / 14%), inset 0 0 0 5px #fffdf8; }
.storyboard-page { margin: 0 0 1rem; transform-origin: left center; }
.storyboard-page:last-child { margin-bottom: 0; }
.storybook.is-enhanced .storyboard-page { display: none; }
.storybook.is-enhanced .storyboard-page.is-current { display: block; }
.storyboard-page img { display: block; width: 100%; height: auto; border-radius: 0.45rem; }
.storybook-pages.turn-forward .storyboard-page.is-current { animation: page-turn-forward 420ms ease both; }
.storybook-pages.turn-back .storyboard-page.is-current { animation: page-turn-back 420ms ease both; }
.storybook-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.storybook-home-control { display: flex; justify-content: center; margin-top: 0.65rem; }
.storybook-button { min-height: 48px; padding: 0.65rem 1.1rem; color: var(--white); background: #101216; border: 0; border-radius: 999px; font: inherit; font-weight: 800; cursor: pointer; }
.storybook-button:hover:not(:disabled) { background: var(--blue); }
.storybook-button:disabled { opacity: 0.45; cursor: not-allowed; }
.storybook-page-count { margin: 0; color: var(--muted); font-weight: 800; }
@keyframes page-turn-forward { from { opacity: 0.4; transform: rotateY(-16deg) translateX(1.5%); } to { opacity: 1; transform: rotateY(0) translateX(0); } }
@keyframes page-turn-back { from { opacity: 0.4; transform: rotateY(16deg) translateX(-1.5%); } to { opacity: 1; transform: rotateY(0) translateX(0); } }
.library-main, .find-me-main { width: min(1120px, calc(100% - 2.5rem)); margin: auto; padding: 3.5rem 0 5rem; }
.library-intro, .find-me-intro { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.library-main h1, .find-me-main h1 { margin: 0.2rem 0 0.8rem; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -0.05em; }
.library-intro > p:last-child, .find-me-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.library-section-title, .locked-intro h2 { margin: 0 0 1.25rem; font-size: clamp(1.7rem, 4vw, 2.4rem); text-align: center; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.library-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; min-height: 260px; padding: 1.35rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 8px 22px rgb(36 49 74 / 7%); }
.library-card h3 { margin: 0.1rem 0; font-size: 1.25rem; line-height: 1.3; }
.library-card > p { margin: 0; color: var(--muted); }
.library-icon { display: grid; min-width: 2.5rem; min-height: 2.5rem; place-items: center; color: var(--white); background: var(--blue); border-radius: 0.7rem; font-weight: 900; }
.library-category { color: var(--coral-dark) !important; font-size: 0.82rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.library-link { display: inline-flex; min-height: 46px; align-items: center; margin-top: auto; padding: 0.65rem 1rem; color: var(--white); background: #101216; border-radius: 999px; font-weight: 800; text-decoration: none; }
.library-link:hover { background: var(--blue); }
.library-card audio { width: 100%; margin-top: auto; }
.library-card-empty { background: var(--cream); box-shadow: none; }
.locked-section { margin-top: 4.5rem; padding: clamp(1.25rem, 4vw, 2.5rem); background: #f3f5f4; border-radius: 1.25rem; }
.locked-intro { max-width: 680px; margin: 0 auto 1.5rem; text-align: center; }
.locked-intro p:last-child { color: var(--muted); }
.locked-card { min-height: 190px; justify-content: center; padding-top: 2.5rem; background: #e8ecea; border-color: #d9dfdc; box-shadow: none; }
.locked-card h3 { color: #49565e; }
.locked-card .library-category { color: #65727a !important; }
.lock-icon { position: absolute; top: 0.85rem; right: 0.95rem; color: #e4ad00; font-size: 1.5rem; line-height: 1; }
.find-me-intro { margin-bottom: 1.5rem; }
.game-how-to { font-size: 1rem !important; }
.find-me-game { max-width: 1050px; margin: auto; padding: clamp(0.85rem, 3vw, 1.5rem); background: #f5f8f5; border: 1px solid var(--line); border-radius: 1.25rem; }
.find-me-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.65rem; }
.game-option { display: grid; min-width: 0; min-height: 170px; place-items: center; padding: 0.3rem; background: transparent; border: 3px solid transparent; border-radius: 1rem; cursor: pointer; touch-action: manipulation; }
.game-option img { display: block; width: 100%; height: 160px; object-fit: contain; }
.game-option:hover:not(:disabled) { background: #fff; }
.game-option:focus-visible { outline: 4px solid #a44600; outline-offset: 2px; }
.game-option.is-correct { background: #e1f5df; border-color: #197b32; }
.game-option.is-wrong { background: #fff0ef; border-color: var(--coral-dark); }
.game-option:disabled { cursor: default; }
.find-me-message { min-height: 2rem; margin: 1rem 0 0.25rem; color: var(--ink); font-size: 1.4rem; font-weight: 850; text-align: center; }
.find-me-again { display: flex; margin: 0.5rem auto 0; border: 0; cursor: pointer; }
.find-me-again[hidden] { display: none; }
.make-me-main { width: min(1120px, calc(100% - 2.5rem)); margin: auto; padding: 3.5rem 0 5rem; }
.make-me-intro { max-width: 760px; margin: 0 auto 1.5rem; text-align: center; }
.make-me-main h1 { margin: 0.2rem 0 0.8rem; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -0.05em; }
.make-me-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.make-me-instructions { font-size: 0.98rem !important; }
.make-me-game { padding: clamp(1rem, 3vw, 1.75rem); background: #f5f8f5; border: 1px solid var(--line); border-radius: 1.25rem; }
.make-me-workspace { display: grid; grid-template-columns: minmax(300px, 1.05fr) minmax(280px, 0.95fr); align-items: center; gap: clamp(1rem, 4vw, 2.5rem); }
.make-me-board-panel, .make-me-pieces-panel { min-width: 0; }
.make-me-board-panel h2, .make-me-pieces-panel h2 { margin: 0 0 0.8rem; font-size: 1.35rem; text-align: center; }
.make-me-board { display: grid; width: min(100%, 480px); aspect-ratio: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: auto; padding: 5px; background: #263746; border: 3px solid #263746; border-radius: 0.75rem; }
.make-me-slot { display: grid; min-width: 0; min-height: 0; place-items: center; overflow: hidden; padding: 0; background: #fff; border: 2px dashed #aebbb7; cursor: pointer; touch-action: none; }
.make-me-slot:hover:not(.has-piece) { background: #fff8df; }
.make-me-slot:focus-visible, .make-me-piece:focus-visible { position: relative; z-index: 1; outline: 4px solid #a44600; outline-offset: 2px; }
.make-me-slot.has-piece { border-style: solid; border-color: #a9c9ad; background: #fff; }
.make-me-slot img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.make-me-pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.make-me-piece { display: grid; width: 100%; aspect-ratio: 1; place-items: center; overflow: hidden; padding: 0.15rem; background: #fff; border: 2px solid #dce6e1; border-radius: 0.65rem; cursor: grab; touch-action: none; user-select: none; }
.make-me-piece:hover:not(:disabled) { border-color: var(--blue); }
.make-me-piece:active { cursor: grabbing; }
.make-me-piece.is-selected { border-color: #a44600; background: #fff8df; box-shadow: 0 0 0 3px rgb(164 70 0 / 15%); }
.make-me-piece.is-dragging { opacity: 0.35; }
.make-me-piece:disabled { cursor: default; }
.make-me-piece[hidden] { display: none; }
.make-me-piece img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.make-me-drag-image { position: fixed; z-index: 20; width: 105px; height: 105px; padding: 0.2rem; background: #fff; border: 2px solid var(--blue); border-radius: 0.65rem; box-shadow: 0 12px 28px rgb(36 49 74 / 25%); pointer-events: none; object-fit: contain; }
.make-me-message { min-height: 2rem; margin: 1rem 0 0.5rem; color: var(--ink); font-size: 1.2rem; font-weight: 800; text-align: center; }
.make-me-reset { display: flex; margin: 0.4rem auto 0; border: 0; cursor: pointer; }
.eat-numbers-main { width: min(1120px, calc(100% - 2.5rem)); margin: auto; padding: 3.5rem 0 5rem; }
.eat-numbers-intro { max-width: 760px; margin: 0 auto 1.5rem; text-align: center; }
.eat-numbers-main h1 { margin: 0.2rem 0 0.8rem; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -0.05em; }
.eat-numbers-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.eat-numbers-game { position: relative; overflow: hidden; padding: clamp(0.8rem, 2.5vw, 1.4rem); background: #f5f8f5; border: 1px solid var(--line); border-radius: 1.25rem; }
.eat-numbers-prompt { margin: 0 0 0.75rem; color: var(--ink); font-size: clamp(1.2rem, 3vw, 1.65rem); font-weight: 850; text-align: center; }
.eat-numbers-timer { width: fit-content; margin: 0 auto 0.75rem; padding: 0.35rem 0.8rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-variant-numeric: tabular-nums; font-weight: 850; }
.savannah-stage { position: relative; min-height: clamp(360px, 56vw, 540px); overflow: hidden; isolation: isolate; background: linear-gradient(180deg, rgb(205 236 246 / 8%) 0%, rgb(246 215 145 / 8%) 54%, rgb(147 118 62 / 14%) 100%), url("savannah-story-background.jpg") center / cover no-repeat; border: 4px solid #fff; border-radius: 1rem; box-shadow: 0 8px 24px rgb(36 49 74 / 14%); }
.savannah-stage::before { position: absolute; z-index: -1; right: 0; bottom: 0; left: 0; height: 20%; content: ""; background: linear-gradient(transparent, rgb(103 91 48 / 20%)); }
.savannah-stage::after { display: none; }
.savannah-sun { position: absolute; top: 8%; right: 12%; width: clamp(48px, 8vw, 84px); aspect-ratio: 1; background: #ffe58a; border-radius: 50%; box-shadow: 0 0 0 12px rgb(255 229 138 / 22%); }
.savannah-cloud { position: absolute; width: 72px; height: 20px; background: rgb(255 255 255 / 76%); border-radius: 99px; }
.savannah-cloud::before, .savannah-cloud::after { position: absolute; bottom: 6px; content: ""; background: inherit; border-radius: 50%; }
.savannah-cloud::before { left: 12px; width: 30px; height: 30px; }
.savannah-cloud::after { right: 10px; width: 23px; height: 23px; }
.cloud-one { top: 19%; left: 9%; }
.cloud-two { top: 29%; left: 61%; transform: scale(.72); opacity: .8; }
.savannah-tree { display: none; }
.tree-one { left: 6%; transform: scale(.72); transform-origin: bottom; }
.tree-two { right: 6%; bottom: 25%; transform: scale(.92); transform-origin: bottom; }
.savannah-grass { position: absolute; z-index: 0; right: 0; bottom: 0; left: 0; height: 13%; background: repeating-linear-gradient(108deg, transparent 0 14px, rgb(91 112 47 / 65%) 15px 17px, transparent 18px 27px); opacity: .5; }
.savannah-rocco { position: absolute; z-index: 2; top: var(--y); left: var(--x); width: clamp(78px, 12vw, 138px); transform: translate(-50%, -50%); transition: left 700ms cubic-bezier(.2,.8,.25,1), top 700ms cubic-bezier(.2,.8,.25,1); pointer-events: none; }
.savannah-rocco img { display: block; width: 100%; height: auto; filter: drop-shadow(0 7px 3px rgb(68 55 30 / 20%)); }
.number-fruit { position: absolute; z-index: 1; top: var(--y); left: var(--x); display: grid; width: clamp(52px, 7vw, 94px); height: clamp(68px, 9vw, 120px); place-items: center; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; transform: translate(-50%, -50%); transition: transform 140ms ease, opacity 180ms ease, filter 140ms ease; touch-action: manipulation; }
.number-food-image { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 4px rgb(31 42 45 / 24%)); }
.number-fruit:hover:not(:disabled) { filter: brightness(1.07); transform: translate(-50%, -52%) scale(1.07); }
.number-fruit:focus-visible { z-index: 4; outline: 4px solid #263746; outline-offset: 4px; }
.number-fruit:disabled { cursor: default; }
.number-fruit.is-eaten { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.3); }
.zero-puff { position: absolute; z-index: 5; top: var(--puff-y); left: var(--puff-x); width: clamp(90px, 12vw, 150px); height: clamp(90px, 12vw, 150px); pointer-events: none; animation: zero-puff-float 1100ms ease-out forwards; }
.zero-puff img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgb(255 255 255 / 40%)); }
@keyframes zero-puff-float { from { opacity: 1; transform: translate(-50%, -50%) scale(.65) rotate(-8deg); } to { opacity: 0; transform: translate(calc(-50% - 85px), calc(-50% - 70px)) scale(1.35) rotate(12deg); } }
.eat-numbers-message { min-height: 2rem; margin: 0.9rem 0 0.3rem; color: var(--ink); font-size: 1.2rem; font-weight: 800; text-align: center; }
.eat-numbers-again { display: flex; margin: 0.5rem auto 0; border: 0; cursor: pointer; }
.eat-numbers-again[hidden] { display: none; }
.game-music-toggle { display: flex; min-height: 44px; align-items: center; justify-content: center; margin: 0.5rem auto 0; padding: 0.55rem 1rem; color: var(--ink); background: #fff; border: 2px solid #c9d8d0; border-radius: 999px; font: inherit; font-weight: 800; cursor: pointer; }
.game-music-toggle[aria-pressed="false"] { color: #59676c; background: #e8eeeb; }
.game-music-toggle:focus-visible { outline: 3px solid #a44600; outline-offset: 3px; }
.game-sound-note { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.85rem; text-align: center; }
.game-confetti { position: absolute; z-index: 20; inset: 0; overflow: hidden; pointer-events: none; }
.game-confetti-piece { position: absolute; top: -18px; width: var(--confetti-size); height: calc(var(--confetti-size) * 1.55); background: var(--confetti-color); border-radius: 2px; animation: game-confetti-fall 2.2s cubic-bezier(.2,.65,.45,1) var(--confetti-delay) forwards; }
@keyframes game-confetti-fall { 0% { opacity: 0; transform: translate3d(0, -14px, 0) rotate(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--confetti-sway), 110vh, 0) rotate(var(--confetti-spin)); } }
.number-run-main { width: min(1120px, calc(100% - 2.5rem)); margin: auto; padding: 3.5rem 0 5rem; }
.number-run-intro { max-width: 760px; margin: 0 auto 1.5rem; text-align: center; }
.number-run-main h1 { margin: 0.2rem 0 0.8rem; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -0.05em; }
.number-run-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.number-run-game { position: relative; overflow: hidden; padding: clamp(0.8rem, 2.5vw, 1.4rem); background: #f5f8f5; border: 1px solid var(--line); border-radius: 1.25rem; }
.number-run-prompt { min-height: 1.8em; margin: 0 0 0.75rem; color: var(--ink); font-size: clamp(1.2rem, 3vw, 1.65rem); font-weight: 850; text-align: center; }
.number-run-stage { position: relative; height: 520px; overflow: hidden; isolation: isolate; background: #d5e5b0; border: 4px solid #fff; border-radius: 1rem; box-shadow: 0 8px 24px rgb(36 49 74 / 14%); }
.number-run-scenery { position: absolute; z-index: 0; inset: 0; background-image: url("savannah-story-background.jpg"); background-repeat: repeat-x; background-position: 0 center; background-size: auto 520px; }
.number-run-stage.is-active .number-run-scenery { animation: run-savannah-scroll 22s linear infinite; }
@keyframes run-savannah-scroll { to { background-position: -1820px center; } }
.number-run-path { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; height: 24%; background: linear-gradient(180deg, rgb(206 166 90 / 0%) 0%, rgb(206 166 90 / 18%) 26%, rgb(159 121 59 / 45%) 100%); }
.number-run-rocco { position: absolute; z-index: 4; bottom: 16%; left: 18%; display: block; width: clamp(88px, 12vw, 142px); padding: 0; background: transparent; border: 0; cursor: pointer; transform: translateX(-50%); touch-action: manipulation; }
.number-run-rocco:focus-visible, .run-jump-button:focus-visible, .run-start-button:focus-visible { outline: 4px solid #263746; outline-offset: 4px; }
.number-run-rocco img { display: block; width: 100%; height: auto; filter: drop-shadow(0 7px 3px rgb(68 55 30 / 25%)); }
.number-run-stage.is-active .number-run-rocco img { animation: rocco-walk-bob 420ms ease-in-out infinite alternate; }
@keyframes rocco-walk-bob { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-5px) rotate(1deg); } }
.number-run-rocco.is-jumping img { animation: rocco-run-jump 700ms cubic-bezier(.22,.75,.35,1) both !important; }
@keyframes rocco-run-jump { 0% { transform: translateY(0) rotate(0); } 42% { transform: translateY(-128px) rotate(-8deg); } 68% { transform: translateY(-138px) rotate(4deg); } 100% { transform: translateY(0) rotate(0); } }
.number-run-items { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.run-snack { position: absolute; bottom: 12%; display: grid; width: clamp(58px, 8vw, 108px); height: clamp(82px, 11vw, 140px); place-items: center; transform: translateX(-50%); }
.run-snack img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 4px rgb(31 42 45 / 28%)); }
.number-run-start-mark { position: absolute; z-index: 2; top: 1rem; left: 1rem; padding: 0.4rem 0.8rem; color: var(--ink); background: #fff4cf; border-radius: 999px; font-weight: 850; }
.number-run-stage.is-active .number-run-start-mark { display: none; }
.number-run-stage .zero-puff { z-index: 5; }
.number-run-message { min-height: 2rem; margin: 0.9rem 0 0.3rem; color: var(--ink); font-size: 1.12rem; font-weight: 800; text-align: center; }
.number-run-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 0.65rem; }
.number-run-controls .game-music-toggle { margin: 0; }
.run-jump-button, .run-start-button { min-width: 150px; border: 0; cursor: pointer; }
.run-jump-button { color: var(--ink); background: #ffe092; font-size: 1.15rem; }
.run-jump-button:disabled { opacity: 0.55; cursor: not-allowed; }
.run-start-button { color: #fff; background: var(--blue); }
.number-run-progress { margin: 0.75rem 0 0; color: var(--muted); font-weight: 800; text-align: center; }
.number-run-progress[hidden] { display: none; }
.video-card, .form-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 14px 40px rgb(36 49 74 / 9%);
}
.video-card { padding: 8px; background: #101216; border-color: #101216; box-shadow: 0 14px 40px rgb(16 18 22 / 20%); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #101216; border-radius: 0.75rem; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: clamp(78px, 10vw, 108px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0 0 0 7px;
  color: #fff;
  background: #c52f37;
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgb(0 0 0 / 35%);
  font-size: clamp(2rem, 4vw, 3rem);
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.video-play:hover { background: #a82028; }
.video-play:focus-visible { outline: 4px solid #f0d07b; outline-offset: 4px; }
.video-play[hidden], .local-video-note[hidden] { display: none; }
.video-frame.is-playing .video-play { display: none; }
.video-frame.is-local .local-video-note { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; color: #fff; background: #101216; text-align: center; }
.local-video-note p { margin: 0; }
.youtube-play-link { display: inline-grid; width: 100px; color: #f00; transition: transform 150ms ease; }
.youtube-play-link:hover { transform: scale(1.08); }
.youtube-play-link svg { display: block; width: 100%; height: auto; }
.audio-section { padding-top: 1rem; padding-bottom: 4rem; }
.audio-card { width: 100%; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem); color: var(--white); background: #101216; border-radius: 1.25rem; box-shadow: 0 14px 40px rgb(16 18 22 / 20%); }
.audio-card h2 { color: var(--white); }
.audio-card p { margin: 0.8rem 0 0; color: #edf5fa; font-size: 1.08rem; }
.audio-card audio { display: block; width: 100%; max-width: 760px; min-height: 54px; margin: 1.25rem auto 0; color-scheme: dark; }
.audio-card audio:focus-visible { outline: 3px solid #ffe092; outline-offset: 4px; border-radius: 0.5rem; }
.rocco-main { width: min(100%, 1120px); margin: 0 auto; }
.rocco-library-shortcut { width: fit-content; max-width: calc(100% - 2.5rem); display: flex; align-items: center; gap: 0.8rem; margin: 1.25rem auto 0; padding: 0.45rem 0.85rem 0.45rem 0.45rem; color: #101216; background: #ffe092; border: 2px solid #101216; border-radius: 999px; box-shadow: 0 5px 0 rgb(16 18 22 / 16%); font-weight: 850; text-decoration: none; }
.rocco-library-shortcut img { width: 82px; height: 50px; flex: 0 0 auto; object-fit: cover; border-radius: 999px; }
.rocco-library-shortcut small { display: block; margin-top: 0.15rem; font-size: 0.76rem; font-weight: 650; }
.rocco-library-shortcut > span:last-child { font-size: 1.2rem; }
.rocco-library-shortcut:hover { background: #fff0bd; transform: translateY(-1px); }
.rocco-library-shortcut:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.rocco-page-video { padding-top: 3.5rem; padding-bottom: 0.5rem; }
.rocco-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; padding-top: 0; padding-bottom: 0.5rem; }
.rocco-resource-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.2rem, 3vw, 1.75rem); color: #fff; background: #101216; border-radius: 1.25rem; box-shadow: 0 14px 40px rgb(16 18 22 / 20%); }
.rocco-resource-art { position: relative; width: min(100%, 226px); height: 127px; align-self: center; margin: 0 auto 0.35rem; }
.rocco-resource-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rocco-resource-art-button { display: block; padding: 0; background: transparent; border: 0; cursor: pointer; }
.rocco-resource-art-button:focus-visible { outline: 3px solid #ffe092; outline-offset: 4px; border-radius: 0.5rem; }
.rocco-resource-art-button:hover img { transform: scale(1.04); }
.rocco-resource-art-button img { transition: transform 150ms ease; }
.rocco-resource-card .eyebrow { margin-bottom: 0.45rem; color: #ffe092; }
.rocco-resource-card h2 { color: #fff; font-size: clamp(1.65rem, 3vw, 2.3rem); }
.rocco-resource-card > p:not(.eyebrow) { margin: 0.4rem 0; color: #edf5fa; font-size: 1.05rem; }
.rocco-resource-card audio { width: 100%; min-height: 54px; margin-top: 0.5rem; color-scheme: dark; }
.rocco-resource-card audio:focus-visible { outline: 3px solid #ffe092; outline-offset: 4px; border-radius: 0.5rem; }
.rocco-resource-card .button { margin-top: 0.5rem; }
.rocco-video-frame { width: 100%; margin-top: 0.25rem; overflow: hidden; }
.rocco-video-poster { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.rocco-video-frame.is-playing .rocco-video-poster { display: none; }
.rocco-video-frame .video-play { inset: 0; width: 100%; height: 100%; padding: 0; color: transparent; background: transparent; border: 0; border-radius: 0.75rem; transform: none; }
.rocco-video-frame .video-play:hover { background: transparent; }
.rocco-video-frame .video-play:focus-visible { outline: 4px solid #ffe092; outline-offset: -6px; }
.rocco-video-frame.is-local .local-video-note { z-index: 2; padding: 0; background: transparent; }
.rocco-video-frame.is-local .local-video-note p, .rocco-video-frame.is-local .youtube-play-link { width: 100%; height: 100%; }
.rocco-video-frame.is-local .youtube-play-link { display: grid; place-items: center; }
.rocco-video-frame.is-local .youtube-play-link:focus-visible { outline: 4px solid #ffe092; outline-offset: -6px; border-radius: 0.75rem; }
.rocco-extra-section { padding-top: 0.5rem; }
.rocco-extra-section .section-heading { margin-bottom: 1.4rem; }
.rocco-extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0.8rem; }
.rocco-extra-card { min-height: 92px; display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.15rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 8px 22px rgb(36 49 74 / 7%); font-weight: 800; text-decoration: none; }
.rocco-extra-card span { display: grid; width: 2.6rem; height: 2.6rem; flex: 0 0 auto; place-items: center; color: #fff; background: var(--blue); border-radius: 0.7rem; }
.rocco-extra-card:hover { border-color: var(--blue); box-shadow: 0 10px 24px rgb(36 49 74 / 12%); }
.rocco-extra-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.free-section { width: min(1120px, calc(100% - 2.5rem)); padding-top: 1rem; padding-bottom: 5.5rem; }
.free-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
  color: var(--white);
  background: #101216;
  border-radius: 1.25rem;
}
.free-card .eyebrow { color: #ffe092; }
.free-signin-note { margin: -0.55rem 0 0.8rem; color: #edf5fa; font-size: 0.92rem; font-weight: 750; }
.free-card h2 { max-width: 550px; }
.free-card h2 span { color: #ffe092; }
.free-copy > p:not(.eyebrow) { max-width: 560px; color: #edf5fa; }
.button-light { margin-top: 0.4rem; color: var(--ink); background: var(--yellow); }
.free-characters { display: block; width: 100%; max-width: 430px; aspect-ratio: 1.38; justify-self: end; object-fit: cover; object-position: left center; border: 4px solid #fff; border-radius: 1rem; }
.signup-section { display: grid; grid-template-columns: 1fr; align-items: start; gap: 1.25rem; padding-top: 2.5rem; padding-bottom: 6rem; scroll-margin-top: 1rem; }
.signup-intro { max-width: 650px; margin: 0 auto; padding-top: 0.5rem; text-align: center; }
.signup-intro h2 span { color: var(--coral-dark); }
.signup-intro > p:last-child { margin-left: 0; }
.form-card { width: min(100%, 720px); margin: 0 auto; padding: clamp(1rem, 3vw, 1.5rem); background: #101216; border: 1px solid #34383e; border-top: 5px solid #ffe092; border-radius: 1.25rem; box-shadow: 0 18px 42px rgb(16 18 22 / 24%); }
.form-card-heading { display: flex; min-height: 64px; align-items: center; gap: 0.8rem; margin: 0 0 1rem; color: #fff; }
.form-card-mark { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; color: #101216; background: #ffe092; border-radius: 14px; font-size: 1.45rem; }
.form-card-kicker { margin: 0; color: #ffe092; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.12em; }
.form-card-heading h3 { margin: 0.05rem 0 0; color: #fff; font-size: 1.28rem; line-height: 1.25; }
.form-card-free { margin-left: auto; padding: 0.3rem 0.7rem; color: #101216; background: #b9f3d0; border-radius: 999px; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.04em; }
.library-access-card { min-height: 250px; display: flex; flex-direction: column; justify-content: center; }
.library-access-card .form-card-heading { margin-bottom: 0.3rem; }
.library-access-copy { margin: 0.8rem 0 1.2rem; color: #edf5fa; line-height: 1.6; }
.library-access-card .button { align-self: center; }

.site-footer { padding: 2.5rem 1.25rem; color: var(--white); background: #202c42; text-align: center; }
.footer-brand { color: var(--white); font-size: 1.2rem; }
.site-footer p { margin: 0.45rem 0; color: #e1e8f0; }
.privacy-link { display: inline-block; margin: 0.85rem 0; color: #ffe092; font-weight: 800; }
.copyright { padding-top: 0.7rem; font-size: 0.85rem; }

.access-main { width: min(100% - 2rem, 720px); min-height: 64vh; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) 0; }
.access-card { padding: clamp(1.5rem, 5vw, 3rem); background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--coral-dark); border-radius: 1.25rem; box-shadow: 0 14px 40px rgb(36 49 74 / 10%); }
.access-card h1 { margin: 0.2rem 0 1rem; font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.1; }
.access-card > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.access-form { display: grid; gap: 0.8rem; margin-top: 1.5rem; }
.access-form label { font-weight: 800; }
.access-form input { width: 100%; min-height: 52px; padding: 0.7rem 0.85rem; color: var(--ink); background: #fff; border: 2px solid #87939c; border-radius: 0.6rem; font: inherit; }
.access-form input:focus-visible { outline: 3px solid #1f51ff; outline-offset: 2px; }
.access-form button { min-height: 52px; justify-self: start; border: 0; cursor: pointer; }
.access-form button:disabled { opacity: 0.65; cursor: wait; }
.access-message { min-height: 1.5em; margin: 1rem 0 0; color: #1d5f37; font-weight: 750; }
.access-message.is-error { color: #a6202b; }
.access-help { font-size: 0.92rem !important; }
.member-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin: 0 0 1.5rem; padding: 0.9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 0.8rem; }
.member-bar p { margin: 0; color: var(--ink); font-weight: 750; }
.member-bar .access-message { flex-basis: 100%; }
.sign-out-button { min-height: 42px; padding: 0.5rem 0.9rem; color: var(--ink); background: #fff; border: 2px solid #87939c; border-radius: 0.55rem; font: inherit; font-weight: 750; cursor: pointer; }
.sign-out-button:hover { background: #f0f4f6; }
.sign-out-button:focus-visible { outline: 3px solid #1f51ff; outline-offset: 2px; }

@media (max-width: 1160px) {
  .header-inner { min-height: 72px; }
  .menu-toggle { display: grid; width: 46px; height: 46px; place-items: center; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 12px; font-size: 1.2rem; cursor: pointer; }
  .site-nav { position: absolute; top: calc(100% - 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1rem; background: var(--cream); border-top: 1px solid #f0e8d8; }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav a { padding: 0.8rem 0.35rem; }
  .site-nav .nav-cta { margin-top: 0.35rem; padding-left: 1rem; }
  .language-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .language-menu a { padding: 0.65rem 0.35rem; }
}

@media (max-width: 980px) {
  .rocco-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header-inner { min-height: 72px; }
  .brand { gap: 0.55rem; font-size: 1rem; }
  .brand-animal-strip { width: clamp(140px, 31vw, 190px); height: 48px; transform: translateY(-1rem); }
  body.home-page .brand-animal-strip { transform: translateY(-0.28rem); }
  .menu-toggle {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
  }
  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--cream);
    border-top: 1px solid #f0e8d8;
  }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav a { padding: 0.8rem 0.35rem; }
  .site-nav .nav-cta { margin-top: 0.35rem; padding-left: 1rem; }
  .hero-inner { min-height: auto; padding: 3.5rem 0 4rem; grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-copy { text-align: center; }
  .hero-color-title { justify-content: center; }
  .hero-text { margin-right: auto; margin-left: auto; }
  .hero-art { width: min(100%, 620px); justify-self: center; }
  .hero-rocco-character { width: min(350px, 92vw); height: 220px; }
  .rocco-speech-bubble { max-width: min(100%, 300px); font-size: 0.94rem; }
  .rocco-speech-bubble-side { transform: translateX(-clamp(12px, 5vw, 28px)); }
  .hero-characters { width: 100%; }
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .rocco-page-video { padding-bottom: 0.5rem; }
  .rocco-resource-grid { padding-bottom: 0.5rem; }
  .rocco-section { padding-bottom: 1rem; }
  .audio-section { padding-top: 1rem; padding-bottom: 3rem; }
  .presentation-section { padding-top: 2.5rem; padding-bottom: 1rem; }
  .presentation-grid { grid-template-columns: 1fr; gap: 1rem; }
  .presentation-card { width: min(100%, 560px); margin: 0 auto; }
  .animal-gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .animal-gallery { gap: 0.5rem; padding: 0.6rem; }
  .animal-card { min-height: 8.5rem; padding: 0.25rem; }
  .animal-card img { height: clamp(100px, 27vw, 140px); }
  .rocco-heading-image { width: clamp(130px, 32vw, 190px); }
  .free-section { padding-top: 0.5rem; padding-bottom: 4rem; }
  .free-card { grid-template-columns: 1fr; gap: 0; }
  .free-characters { width: min(100%, 470px); justify-self: center; margin-top: 1.5rem; }
  .signup-section { grid-template-columns: 1fr; gap: 1.2rem; padding-top: 0; padding-bottom: 4rem; }
  .rocco-resource-grid { grid-template-columns: 1fr; }
  .find-me-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.3rem; }
  .game-option { min-height: 145px; }
  .game-option img { height: 135px; }
  .library-main, .find-me-main { width: min(100% - 1.5rem, 1120px); padding-top: 2.5rem; }
  .library-card { min-height: 230px; }
  .make-me-main { width: min(100% - 1.5rem, 1120px); padding-top: 2.5rem; }
  .eat-numbers-main { width: min(100% - 1.5rem, 1120px); padding-top: 2.5rem; }
  .savannah-stage { min-height: 420px; }
  .number-run-main { width: min(100% - 1.5rem, 1120px); padding-top: 2.5rem; }
  .number-run-stage { height: 420px; }
  .number-run-scenery { background-size: auto 420px; }
  .number-run-stage.is-active .number-run-scenery { animation-name: run-savannah-scroll-mobile; }
  @keyframes run-savannah-scroll-mobile { to { background-position: -1470px center; } }
  @keyframes rocco-run-jump { 0% { transform: translateY(0) rotate(0); } 42% { transform: translateY(-104px) rotate(-8deg); } 68% { transform: translateY(-112px) rotate(4deg); } 100% { transform: translateY(0) rotate(0); } }
  .make-me-workspace { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .make-me-board { width: min(100%, 450px); }
  .make-me-pieces-panel { width: min(100%, 450px); margin: auto; }
}

@media (max-width: 420px) {
  .header-inner, .hero-inner, .section, .free-section { width: min(100% - 1.5rem, 1120px); }
  .hero h1 { font-size: clamp(2.3rem, 12vw, 3.25rem); }
  .hero-text { font-size: 1.03rem; }
  .storyboard-main { width: min(100% - 1.5rem, 1120px); padding-top: 2rem; }
  .savannah-stage { min-height: 390px; }
  .number-run-stage { height: 380px; }
  .number-run-scenery { background-size: auto 380px; }
  .number-run-stage.is-active .number-run-scenery { animation-name: run-savannah-scroll-small; }
  @keyframes run-savannah-scroll-small { to { background-position: -1330px center; } }
  @keyframes rocco-run-jump { 0% { transform: translateY(0) rotate(0); } 42% { transform: translateY(-92px) rotate(-8deg); } 68% { transform: translateY(-98px) rotate(4deg); } 100% { transform: translateY(0) rotate(0); } }
  .find-me-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-characters { border-width: 4px; border-radius: 1rem; }
  .hero-rocco-promo { gap: 0.55rem; }
  .animal-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .free-card { padding: 1.5rem; }
  .form-card { padding: 0.65rem; }
  .form-card iframe { min-height: 680px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .storybook-pages.turn-forward .storyboard-page.is-current,
  .storybook-pages.turn-back .storyboard-page.is-current { animation: none; }
  .savannah-rocco { transition-duration: 1ms; }
  .zero-puff { animation-duration: 1ms; }
  .game-confetti-piece { animation-duration: 1ms !important; }
  .number-run-stage.is-active .number-run-scenery { animation-duration: 1ms; }
  .number-run-stage.is-active .number-run-rocco img { animation-duration: 1ms; }
  .number-run-rocco.is-jumping img { animation-duration: 1ms !important; }
}
