@font-face {
  font-family: GamePixel;
  src: url('./game-ui.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: GamePixelDisplay;
  src: url('./game-display.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
:root {
  --cream: #f8f7ef;
  --ink: #24213e;
  --blue: #365cff;
  --purple: #9439ee;
  --yellow: #ffdb3c;
  --green: #63ef9f;
}
body { font-family: GamePixel, monospace; font-size: 22px; line-height: 1.35; }
.font-display { font-family: GamePixel, monospace; }
.font-400 { font-weight: 400; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
h2.font-display { font-family: GamePixelDisplay, monospace; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.65; letter-spacing: -.5px; }
h3.font-display { font-size: 32px; line-height: 1.1; }
p.text-lg { font-size: 25px; }
.text-sm { font-size: 20px; }
.text-xs { font-size: 17px; }
.press-btn { font-size: 24px; }
.focus-ring:focus-visible { outline: 4px solid var(--purple); outline-offset: 6px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; border: 3px solid var(--ink); background: var(--yellow); color: var(--ink); }
.skip-link:focus { top: 16px; }
#top { max-width: 1920px; margin-inline: auto; }
.hero-poster { image-rendering: pixelated; }
.hero-actions-section { position: relative; isolation: isolate; }
.hero-actions-section::before, .hero-actions-section::after { content: ''; position: absolute; z-index: -1; width: 58px; height: 58px; border: 4px solid var(--ink); box-shadow: 5px 5px var(--ink); }
.hero-actions-section::before { background: var(--green); transform: rotate(-15deg); left: 8%; top: 54px; }
.hero-actions-section::after { background: var(--purple); transform: rotate(14deg); right: 8%; bottom: 48px; border-radius: 50%; }
.recess-sticker { display: table; margin: -12px auto 30px; padding: 8px 18px; border: 3px solid var(--ink); border-radius: 5px; background: var(--green); box-shadow: 4px 4px var(--ink); font-size: 22px; transform: rotate(-3deg); }
.recess-sticker span { font-family: Arial, sans-serif; font-size: 16px; vertical-align: 1px; }
.confetti-section { position: relative; }
.confetti-section::before { content: ''; position: absolute; width: 42px; height: 14px; background: var(--yellow); border: 3px solid var(--ink); top: 72px; left: 4%; transform: rotate(-22deg); box-shadow: 4px 4px var(--ink); }
.confetti-section::after { content: ''; position: absolute; width: 22px; height: 42px; background: var(--purple); border: 3px solid var(--ink); top: 128px; right: 6%; transform: rotate(22deg); box-shadow: 4px 4px var(--ink); }
.game-card { transform-origin: center center; }
.game-card:nth-child(1) { --card-accent: var(--purple); }
.game-card:nth-child(2) { --card-accent: var(--blue); }
.game-card:nth-child(3) { --card-accent: var(--green); }
.game-card:nth-child(4) { --card-accent: var(--yellow); }
.game-card > div:last-child { border-top: 5px solid var(--card-accent); }
.game-card h3 { margin-top: 6px; }
.game-card .badge-tape { font-size: 20px; line-height: 1.15; }
.game-preview-video { object-fit: contain; background: #bfd4cf; }
#customize img { image-rendering: pixelated; }
#customize .grid:last-child p { font-size: 23px; }
.leaderboard-demo { width: fit-content; margin: 0 auto 22px; padding: 7px 15px; border: 3px solid var(--ink); border-radius: 6px; background: var(--yellow); box-shadow: 4px 4px var(--ink); font-size: 19px; transform: rotate(-2deg); }
#leaderboard > p:last-child { color: #60586d; font-size: 18px; }
.recess-parade { position: relative; overflow: hidden; text-align: center; padding: 54px 24px 34px; border-block: 4px solid var(--ink); background-color: var(--blue); background-image: radial-gradient(#ffffff22 2px, transparent 2px); background-size: 24px 24px; }
.parade-sticker { display: inline-block; padding: 8px 20px; border: 3px solid var(--ink); border-radius: 8px; background: var(--yellow); color: var(--ink); box-shadow: 5px 5px var(--ink); font-size: 28px; transform: rotate(-3deg); }
.student-line { display: flex; align-items: flex-end; justify-content: center; gap: 72px; min-height: 208px; margin: 30px auto 16px; padding: 48px 0 22px; max-width: 950px; border-bottom: 4px dashed #ffffff70; }
.recess-student { display: block; flex: 0 0 48px; width: 48px; height: 96px; background: url('./characters.png') var(--frame-x) var(--frame-y) no-repeat; image-rendering: pixelated; transform: scale(2); transform-origin: bottom center; animation: school-hop 1s steps(2, end) infinite; animation-delay: var(--delay); }
@keyframes school-hop { 0%, 100% { transform: scale(2) translateY(0) rotate(-2deg); } 50% { transform: scale(2) translateY(-5px) rotate(2deg); } }
.recess-parade > p { color: #fff; font-size: 28px; text-shadow: 3px 3px var(--ink); }
.parade-spark { position: absolute; font: 80px/1 Arial, sans-serif; color: var(--green); -webkit-text-stroke: 3px var(--ink); text-shadow: 4px 4px var(--ink); }
.spark-left { left: 8%; top: 35px; transform: rotate(-15deg); }
.spark-right { right: 8%; top: 110px; color: var(--yellow); transform: rotate(12deg); }
#features .text-sm { font-size: 20px; }
#features h3 { font-size: 30px; }
#how .press-btn { font-size: 26px; }
.contact-note { transform: rotate(-1deg); }
.contact-note p { font-size: 24px; }
.contact-note h3 { font-size: 34px; }
.contact-doodle { display: inline-grid; place-items: center; width: 72px; height: 64px; margin-bottom: 18px; border: 3px solid var(--ink); border-radius: 12px; background: var(--green); color: var(--ink); font: 42px/1 Arial, sans-serif; box-shadow: 4px 4px var(--ink); transform: rotate(10deg); }
.brand-link, .asset-credit a { text-decoration: underline; text-underline-offset: 3px; }
.asset-credit { font-size: 16px; }
@media (max-width: 900px) {
  .hero-actions-section::before { left: 3%; width: 34px; height: 34px; }
  .hero-actions-section::after { right: 3%; width: 34px; height: 34px; }
  .student-line { gap: 48px; }
  .parade-spark { font-size: 54px; }
  .spark-left { left: 3%; }
  .spark-right { right: 3%; }
}
@media (max-width: 640px) {
  body { font-size: 22px; }
  .press-btn { font-size: 22px; }
  h2.font-display { font-size: 22px; line-height: 1.6; }
  .hero-actions-section::before, .hero-actions-section::after, .confetti-section::before, .confetti-section::after { display: none; }
  .hero-actions-section > div { padding-top: 28px; }
  .recess-sticker { font-size: 19px; margin-top: 0; padding-inline: 12px; }
  .game-card { transform: none !important; }
  .game-card .badge-tape { font-size: 18px; }
  .game-card h3 { font-size: 32px; }
  .game-card > div:last-child { padding: 20px; }
  .student-line { gap: 32px; flex-wrap: wrap; justify-content: center; min-height: 150px; padding-top: 25px; }
  .recess-student { transform: scale(1.5); animation-name: school-hop-small; }
  .student-4, .student-5 { display: none; }
  .parade-sticker { font-size: 21px; padding-inline: 12px; }
  .parade-spark { display: none; }
  .recess-parade { padding: 34px 16px 28px; }
  .recess-parade > p { font-size: 24px; }
  .contact-note { transform: none; }
  #top .animate-bounce-slow { display: none; }
}
@keyframes school-hop-small { 0%, 100% { transform: scale(1.5) translateY(0); } 50% { transform: scale(1.5) translateY(-5px); } }
@media (max-width: 360px) { .student-line { gap: 23px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
