@font-face {
  font-family: 'Fredoka';
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  src: url(/fonts/fredoka.woff2) format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  src: url(/fonts/nunito.woff2) format('woff2');
}

:root {
  --sky: #bde8ff;
  --ink: #2a1a5e;
  --purple: #5b2ee0;
  --sun: #ffd93b;
  --pink: #ff4f9a;
  --orange: #ff8a1f;
  --green: #3ddc84;
  --blue: #29a8ff;
  --paper: #fff3b8;
  --step-1: #ffd93b;
  --step-2: #ff9bc8;
  --step-3: #8fe8b5;
  --font-head: 'Fredoka', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0; line-height: 1.1; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  background: var(--purple);
  border-bottom: 6px solid var(--ink);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 24px; padding: 14px 32px;
}
.logo { font-family: var(--font-head); font-weight: 700; font-size: 32px; color: var(--sun); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-header nav a {
  color: #fff; font-size: 20px; font-weight: 800; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-header nav a:hover { animation: wiggle 0.5s ease-in-out; }
@keyframes wiggle { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }

/* Buttons and pills */
.pill {
  display: inline-block; background: var(--pink); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  border: 4px solid var(--ink); border-radius: 999px; padding: 4px 18px;
  box-shadow: 4px 4px 0 var(--ink); transform: rotate(-3deg);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 8px 26px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--ink);
  background: var(--green); border: 4px solid var(--ink); border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink); text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-pink { background: var(--pink); font-size: 20px; min-height: 48px; }

/* Hero */
.hero {
  background: var(--sun); border-bottom: 6px solid var(--ink);
  padding: 56px 32px 72px; position: relative; overflow: hidden;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.hero h1 { font-size: 76px; margin: 20px 0 16px; }
.hero p { font-size: 24px; margin: 0 0 28px; max-width: 30ch; }
.mascots { width: 100%; max-width: 460px; justify-self: center; overflow: visible; }
.blob-big { transform-origin: 150px 270px; animation: wobble 4s ease-in-out infinite; }
.blob-small { transform-origin: 360px 280px; animation: wobble 3.2s ease-in-out infinite reverse; }
.star { position: absolute; width: 52px; height: 52px; }
.star-1 { left: 28px; top: 20px; transform: rotate(-12deg); }
.star-2 { right: 40px; top: 24px; transform: rotate(10deg); }
.star-3 { right: 22%; bottom: 20px; transform: rotate(-8deg); }
@keyframes wobble { 0%, 100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.02); } }

/* How to play */
.section { padding: 64px 32px; }
.section h2 { font-size: 48px; text-align: center; margin-bottom: 40px; }
.steps { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0; list-style: none; }
.step {
  border: 5px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink);
  padding: 24px 20px 28px; text-align: center; transition: transform 0.2s;
}
.step:nth-child(1) { background: var(--step-1); transform: rotate(-2deg); }
.step:nth-child(2) { background: var(--step-2); transform: rotate(1.5deg); }
.step:nth-child(3) { background: var(--step-3); transform: rotate(-1deg); }
.step:hover { transform: rotate(0); }
.step .num {
  width: 76px; height: 76px; margin: 0 auto 12px; background: #fff;
  border: 5px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 40px;
}
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 18px; }

/* Movie cards */
.movies { display: grid; gap: 56px; justify-items: center; padding: 0; }
.movie {
  width: 100%; max-width: 900px; background: #fff; overflow: hidden;
  border: 6px solid var(--ink); border-radius: 28px; box-shadow: 12px 12px 0 var(--ink);
}
.strip {
  height: 26px; background: var(--ink);
  background-image: radial-gradient(circle, transparent 0, transparent 0);
  background-image: linear-gradient(90deg, #fff 0 14px, transparent 14px);
  background-size: 32px 10px; background-repeat: repeat-x; background-position: 8px center;
}
.poster {
  display: block; position: relative; aspect-ratio: 16 / 9; background: var(--purple);
  text-decoration: none;
}
.play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px;
  background: var(--pink); border: 5px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; transition: transform 0.15s;
}
.poster:hover .play { transform: scale(1.1); }
.poster .tag {
  position: absolute; left: 16px; bottom: 16px; background: var(--sun); color: var(--ink);
  font-weight: 800; font-size: 14px; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 12px;
}
.movie-head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; justify-content: space-between; padding: 24px 28px 0; }
.badge {
  display: inline-block; background: var(--sun); border: 3px solid var(--ink); border-radius: 999px;
  padding: 2px 14px; font-family: var(--font-head); font-weight: 700; font-size: 18px; transform: rotate(-3deg);
}
.movie:nth-child(even) .badge { background: var(--blue); }
.movie-head h3 { font-size: 40px; margin-top: 8px; overflow-wrap: anywhere; }
.closed-note { margin: 16px 28px 28px; padding: 14px 18px; background: var(--paper); border: 4px dashed var(--ink); border-radius: 22px; }

/* Form panel */
.panel { margin: 24px 28px 28px; background: var(--paper); border: 5px dashed var(--ink); border-radius: 22px; padding: 24px; }
.panel h4 { font-family: var(--font-head); font-size: 30px; margin: 0 0 16px; }
.panel label { display: block; font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.panel .tip { font-size: 15px; margin: 6px 0 18px; }
.panel input[type=text], .panel textarea {
  width: 100%; min-height: 52px; padding: 10px 16px; font: 800 20px var(--font-body); color: var(--ink);
  background: #fff; border: 4px solid var(--ink); border-radius: 14px;
}
.panel textarea { resize: vertical; min-height: 140px; }
.panel input::placeholder, .panel textarea::placeholder { color: #6b6385; }
.panel input:focus, .panel textarea:focus { outline: 4px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.actions small { font-size: 15px; font-weight: 800; }
.error { background: #ffd6e8; border: 3px solid var(--ink); border-radius: 12px; padding: 10px 14px; margin-top: 18px; }
.success { background: var(--green); border: 4px solid var(--ink); border-radius: 18px; padding: 22px; font-size: 22px; font-family: var(--font-head); font-weight: 700; box-shadow: 6px 6px 0 var(--ink); }
.grownups { margin: 16px 0 0; font-size: 15px; }
.status { text-align: center; font-size: 22px; }

/* Footer */
.site-footer {
  background: var(--purple); color: #fff; border-top: 6px solid var(--ink);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 24px 32px;
}
.site-footer .logo { font-size: 28px; }
.site-footer a.sub { color: var(--sun); font-family: var(--font-head); font-weight: 700; font-size: 22px; min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 820px) {
  .site-header, .section, .hero, .site-footer { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 40px; padding-bottom: 48px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 20px; }
  .steps { grid-template-columns: 1fr; }
  .section h2 { font-size: 38px; }
  .movie-head h3 { font-size: 30px; }
  .movie-head, .panel, .closed-note { margin-left: 0; margin-right: 0; }
  .movie-head { padding-left: 16px; padding-right: 16px; }
  .panel, .closed-note { margin: 20px 16px 24px; padding: 18px; }
  .star { display: none; }
  .movie { box-shadow: 8px 8px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
