/* Fredoka - variable font (500–700), self-hosted */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/fredoka-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/fredoka-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nunito - variable font (600–900), self-hosted */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/fonts/nunito-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(60vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confetti-fall 2.5s ease-in forwards;
}

/* Staggered entrance for game grid children */
@keyframes slideUpStagger {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.stagger-grid > * {
  animation: slideUpStagger 0.35s ease-out both;
}
.stagger-grid > *:nth-child(1) { animation-delay: 0.03s; }
.stagger-grid > *:nth-child(2) { animation-delay: 0.06s; }
.stagger-grid > *:nth-child(3) { animation-delay: 0.09s; }
.stagger-grid > *:nth-child(4) { animation-delay: 0.12s; }
.stagger-grid > *:nth-child(5) { animation-delay: 0.15s; }
.stagger-grid > *:nth-child(6) { animation-delay: 0.18s; }
.stagger-grid > *:nth-child(7) { animation-delay: 0.21s; }
.stagger-grid > *:nth-child(8) { animation-delay: 0.24s; }
.stagger-grid > *:nth-child(9) { animation-delay: 0.27s; }
.stagger-grid > *:nth-child(10) { animation-delay: 0.30s; }
.stagger-grid > *:nth-child(11) { animation-delay: 0.33s; }
.stagger-grid > *:nth-child(12) { animation-delay: 0.36s; }
.stagger-grid > *:nth-child(13) { animation-delay: 0.39s; }
.stagger-grid > *:nth-child(14) { animation-delay: 0.42s; }
.stagger-grid > *:nth-child(15) { animation-delay: 0.45s; }
.stagger-grid > *:nth-child(16) { animation-delay: 0.48s; }

/* Equal-size choice buttons (button_to wraps in a form) */
.choice-grid > form,
.choice-grid > form > button {
  width: 100%;
  height: 100%;
}

/* Button press effect */
.btn-press:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}
