:root {
  --sky: #8ed8ff;
  --paper: #fff9dc;
  --ink: #2b2262;
  --blue: #4b7bff;
  --pink: #ff65b5;
  --yellow: #ffe66d;
  --green: #74e06b;
  --orange: #ff9f43;
  --chalk: #123f35;
  --red: #ff5252;
  --shadow: rgba(43, 34, 98, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(255,230,109,.9) 0 5rem, transparent 5.2rem),
    radial-gradient(circle at 86% 14%, rgba(255,101,181,.45), transparent 16rem),
    linear-gradient(#8ed8ff 0 46%, #9be27e 46% 100%);
  font-family: Fredoka, Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  opacity: .25;
  background-image:
    linear-gradient(90deg, rgba(43,34,98,.12) 1px, transparent 1px),
    linear-gradient(rgba(43,34,98,.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, transparent 95%);
}

::selection { background: var(--pink); color: white; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.sticker-cloud {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.sticker-cloud span {
  position: absolute;
  font-size: clamp(2rem, 4vw, 4rem);
  filter: drop-shadow(0 8px 0 rgba(0,0,0,.08));
  animation: wiggle 4s ease-in-out infinite;
}
.sticker-cloud span:nth-child(1) { left: 6%; top: 18%; }
.sticker-cloud span:nth-child(2) { right: 8%; top: 24%; animation-delay: -.6s; }
.sticker-cloud span:nth-child(3) { left: 14%; bottom: 18%; animation-delay: -1.2s; }
.sticker-cloud span:nth-child(4) { right: 16%; bottom: 22%; animation-delay: -1.8s; }
.sticker-cloud span:nth-child(5) { left: 45%; top: 10%; animation-delay: -2.4s; }
.sticker-cloud span:nth-child(6) { right: 43%; bottom: 12%; animation-delay: -3s; }
@keyframes wiggle {
  50% { transform: rotate(12deg) translateY(-14px); }
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 3.6rem;
  left: 50%;
  width: min(1120px, calc(100% - 2rem));
  min-height: 74px;
  transform: translateX(-50%);
  padding: .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,249,220,.88);
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 10px 0 var(--shadow);
}

.eu-banner {
  position: fixed;
  z-index: 45;
  top: .6rem;
  left: 50%;
  width: min(1120px, calc(100% - 2rem));
  min-height: 40px;
  transform: translateX(-50%) rotate(-.4deg);
  padding: .55rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  text-align: center;
  color: var(--ink);
  background: #fff3b8;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 6px 0 var(--shadow);
  font-family: "Comic Neue", cursive;
  font-size: .92rem;
  font-weight: 700;
}

.eu-banner a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: "Baloo 2", Fredoka, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}
.logo-badge,
.brand span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: white;
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: 15px;
  transform: rotate(-8deg);
  box-shadow: 4px 4px 0 var(--yellow);
}

nav {
  display: flex;
  gap: 1rem;
}
nav a,
.watch-pill,
footer a {
  font-family: "Comic Neue", cursive;
  font-size: .95rem;
  font-weight: 700;
}
nav a:hover { color: var(--pink); }

.watch-pill,
.video-btn,
.copy-btn {
  padding: .85rem 1rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  color: white;
  background: var(--blue);
  box-shadow: 4px 5px 0 var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.watch-pill:hover,
.video-btn:hover,
.copy-btn:hover {
  transform: translate(2px, 3px) rotate(-1deg);
  box-shadow: 2px 2px 0 var(--ink);
}

main,
footer {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100vh;
  padding: 11rem clamp(1rem, 5vw, 5rem) 4rem;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 4vw;
  align-items: center;
}

.paper-card {
  background: var(--paper);
  border: 5px solid var(--ink);
  border-radius: 36px;
  box-shadow: 14px 14px 0 var(--shadow);
}
.intro-card {
  padding: clamp(1.2rem, 4vw, 3rem);
  transform: rotate(-1.5deg);
}

.label,
.section-title p,
.final-card p {
  margin: 0 0 .9rem;
  color: var(--red);
  font-family: "Comic Neue", cursive;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 0;
  font-family: "Baloo 2", Fredoka, sans-serif;
  font-size: clamp(7rem, 17vw, 17rem);
  line-height: .75;
  color: var(--blue);
  text-shadow: 7px 7px 0 var(--yellow), 12px 12px 0 var(--ink);
}
.hero h2,
.section-title h2,
.blackboard h2,
.video-copy h2,
.final-card h2 {
  font-family: "Baloo 2", Fredoka, sans-serif;
  font-size: clamp(3rem, 6vw, 7rem);
  line-height: .86;
  margin-bottom: 1rem;
}
.hero h2 span { color: var(--pink); }
.hero-text,
.section p,
footer p {
  color: #4c4387;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.62;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--pink);
  font-family: "Comic Neue", cursive;
  font-size: 1rem;
  font-weight: 700;
}
.copy-btn b { opacity: .85; }
.video-btn {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  color: var(--ink);
  font-family: "Comic Neue", cursive;
  font-weight: 700;
}

.play-mat {
  position: relative;
  min-height: 620px;
  border: 5px solid var(--ink);
  border-radius: 46px;
  background:
    radial-gradient(circle at 50% 88%, #6fd35d 0 8rem, transparent 8.2rem),
    linear-gradient(#a8e8ff 0 62%, #75d86b 62%);
  box-shadow: 16px 16px 0 var(--shadow);
  overflow: hidden;
}
.sun {
  position: absolute;
  right: 2rem;
  top: 1.5rem;
  font-size: 5rem;
  animation: wiggle 3s ease-in-out infinite;
}
.kid-number {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(130px, 17vw, 210px);
  height: clamp(130px, 17vw, 210px);
  border: 5px solid var(--ink);
  border-radius: 38% 62% 44% 56%;
  font-family: "Baloo 2", Fredoka, sans-serif;
  font-size: clamp(7rem, 13vw, 12rem);
  line-height: 1;
  box-shadow: 9px 11px 0 rgba(43,34,98,.22);
  animation: bounce 1.8s ease-in-out infinite;
}
.six {
  left: 12%;
  top: 22%;
  color: white;
  background: var(--blue);
  transform: rotate(-8deg);
}
.seven {
  right: 13%;
  top: 30%;
  color: var(--ink);
  background: var(--yellow);
  animation-delay: -.5s;
  transform: rotate(9deg);
}
@keyframes bounce {
  50% { translate: 0 -24px; }
}

.speech {
  position: absolute;
  padding: .8rem 1rem;
  background: white;
  border: 4px solid var(--ink);
  border-radius: 24px 24px 24px 4px;
  font-family: "Comic Neue", cursive;
  font-weight: 700;
  box-shadow: 5px 6px 0 var(--shadow);
}
.speech-a { left: 8%; top: 8%; }
.speech-b { right: 12%; bottom: 18%; transform: rotate(4deg); }

.slide {
  position: absolute;
  left: 18%;
  bottom: 16%;
  width: 44%;
  height: 32px;
  background: var(--orange);
  border: 5px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-18deg);
}
.ball {
  position: absolute;
  right: 20%;
  bottom: 8%;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: white;
  background: var(--red);
  border: 4px solid var(--ink);
  border-radius: 50%;
  font-family: "Baloo 2", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  animation: roll 4s ease-in-out infinite;
}
@keyframes roll {
  50% { transform: translateX(-160px) rotate(-180deg); }
}

.chant {
  overflow: hidden;
  color: var(--ink);
  background: var(--yellow);
  border-block: 5px solid var(--ink);
  transform: rotate(-1.2deg) scale(1.03);
}
.chant-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: .95rem 0;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  animation: ticker 20s linear infinite;
}
@keyframes ticker { to { transform: translateX(-50%); } }

.section {
  padding: 7.5rem clamp(1rem, 5vw, 5rem);
}
.section-title {
  max-width: 840px;
  margin-bottom: 2rem;
}

.comic-grid,
.snack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.comic-grid article,
.snack-grid article,
.report-card,
.blackboard,
.tv,
.final-card {
  border: 5px solid var(--ink);
  box-shadow: 10px 11px 0 var(--shadow);
}
.comic-grid article {
  min-height: 270px;
  padding: 1.3rem;
  background: var(--paper);
  border-radius: 30px;
  transform: rotate(var(--r, -1deg));
}
.comic-grid article:nth-child(2) { --r: 1.5deg; background: #ffe7f4; }
.comic-grid article:nth-child(3) { --r: -2deg; background: #e9ffd9; }
.comic-grid span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 2rem;
  color: white;
  background: var(--blue);
  border: 3px solid var(--ink);
  border-radius: 16px;
  font-family: "Baloo 2", sans-serif;
  font-size: 2rem;
  font-weight: 800;
}
.comic-grid h3,
.report-card h3 {
  font-family: "Baloo 2", sans-serif;
  font-size: 2rem;
  line-height: .95;
}

.homework {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: stretch;
}
.blackboard {
  padding: clamp(1.2rem, 4vw, 3rem);
  color: #f6ffe8;
  background: var(--chalk);
  border-radius: 28px;
}
.blackboard .label { color: var(--yellow); }
.blackboard h2 { color: white; }
.blackboard ul {
  margin: 0;
  padding-left: 1.4rem;
  font-family: "Comic Neue", cursive;
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.55;
}
.report-card {
  padding: 1.4rem;
  background: var(--paper);
  border-radius: 28px;
  transform: rotate(2deg);
}
.report-card div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 3px dashed rgba(43,34,98,.25);
  font-family: "Comic Neue", cursive;
  font-size: 1.2rem;
}
.report-card b { color: var(--red); }

.video-section {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 3rem;
  align-items: center;
}
.tv {
  position: relative;
  padding: 1.4rem;
  background: var(--orange);
  border-radius: 42px;
}
.antenna {
  position: absolute;
  left: 50%;
  top: -55px;
  width: 120px;
  height: 70px;
  border-top: 6px solid var(--ink);
  border-left: 6px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}
.screen {
  min-height: 390px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--green);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 6px, transparent 6px 12px),
    #25115a;
  border: 5px solid var(--ink);
  border-radius: 28px;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: .82;
}
.screen span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: var(--ink);
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: 50%;
}
.knobs {
  display: flex;
  gap: .8rem;
  margin-top: 1rem;
  justify-content: flex-end;
}
.knobs i {
  width: 34px;
  height: 34px;
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: 50%;
}
.video-copy {
  padding: 1rem 0;
}
.video-btn.big {
  margin-top: 1rem;
  background: var(--pink);
  color: white;
}

.snack-grid {
  grid-template-columns: repeat(4, 1fr);
}
.snack-grid article {
  min-height: 210px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  border-radius: 30px;
}
.snack-grid article:nth-child(2) { background: #e5f8ff; }
.snack-grid article:nth-child(3) { background: #fff3b8; }
.snack-grid article:nth-child(4) { background: #ffdff2; }
.snack-grid b {
  color: var(--blue);
  font-family: "Baloo 2", sans-serif;
  font-size: 4rem;
  line-height: .85;
}
.snack-grid span {
  font-family: "Comic Neue", cursive;
  font-size: 1.25rem;
  font-weight: 700;
}

.eu-notice {
  padding-top: 3rem;
}

.principal-note {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 3rem);
  background:
    linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px) 0 0 / 34px 34px,
    #fff3b8;
  border: 5px solid var(--ink);
  border-radius: 34px;
  box-shadow: 12px 13px 0 var(--shadow);
  transform: rotate(.6deg);
}

.principal-note h2 {
  margin-bottom: 1.2rem;
  font-family: "Baloo 2", Fredoka, sans-serif;
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  line-height: .9;
}

.note-lines {
  display: grid;
  gap: 1rem;
}

.note-lines p {
  margin: 0;
  padding: 1rem;
  color: var(--ink);
  background: rgba(255,255,255,.55);
  border: 3px dashed rgba(43,34,98,.3);
  border-radius: 20px;
  font-family: "Comic Neue", cursive;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  line-height: 1.5;
}

.final-card {
  margin: 2rem clamp(1rem, 5vw, 5rem) 6rem;
  padding: clamp(1.2rem, 4vw, 3rem);
  text-align: center;
  background: var(--paper);
  border-radius: 38px;
}
.final-card h2 {
  color: var(--blue);
  font-size: clamp(1.6rem, 4vw, 4rem);
  word-break: break-word;
}
.copy-btn.large {
  margin-top: 1rem;
  min-width: min(360px, 100%);
  justify-content: center;
}

footer {
  padding: 2rem clamp(1rem, 5vw, 5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255,249,220,.8);
  border-top: 5px solid var(--ink);
}
footer p {
  max-width: 540px;
  margin: 0;
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) rotate(-1deg);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

@media (max-width: 980px) {
  nav { display: none; }
  .hero,
  .homework,
  .video-section {
    grid-template-columns: 1fr;
  }
  .comic-grid,
  .snack-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    top: 4.8rem;
    width: calc(100% - 1rem);
    border-width: 3px;
    border-radius: 22px;
  }
  .eu-banner {
    top: .5rem;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    font-size: .84rem;
  }
  .watch-pill { display: none; }
  .logo { font-size: .9rem; }
  .logo-badge { width: 38px; height: 38px; }
  .hero { padding: 11.2rem 1rem 3rem; }
  .intro-card { transform: none; }
  h1 { font-size: 7.3rem; }
  .hero h2 { font-size: 3.3rem; }
  .actions { flex-direction: column; }
  .copy-btn,
  .video-btn { width: 100%; justify-content: center; }
  .play-mat { min-height: 500px; border-radius: 30px; }
  .kid-number { width: 132px; height: 132px; font-size: 7rem; }
  .six { left: 8%; top: 24%; }
  .seven { right: 8%; top: 36%; }
  .ball { right: 12%; }
  .slide { left: 12%; width: 58%; }
  .section { padding: 5.2rem 1rem; }
  .comic-grid,
  .snack-grid {
    grid-template-columns: 1fr;
  }
  .screen { min-height: 300px; }
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
