/* Official Google Fonts files are bundled locally so installed play stays offline.
   Both families include Russian Cyrillic; the licenses are in assets/fonts/. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('./assets/fonts/nunito-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('./assets/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;
}
@font-face {
  font-family: 'Rubik Bubbles';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/rubik-bubbles-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik Bubbles';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/rubik-bubbles-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;
}

:root {
  --font-ui: 'Nunito', ui-rounded, 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-display: 'Rubik Bubbles', 'Nunito', ui-rounded, 'Arial Rounded MT Bold', Arial, sans-serif;
  font-family: var(--font-ui);
  font-synthesis: none;
}
*, *::before, *::after { font-style: normal !important; }
body, button, input, select, textarea, dialog,
.header-caption, .eyebrow, .start-panel p, .primary-button, kbd,
.goal-score, .personal-best strong, .flight-hud > div > span:first-child,
.flight-hud strong, .flight-hud .hud-score strong,
.flight-hud .hud-speed > span, .boost-toast, .level-toast,
.result-card p, .result-stats strong, .text-button,
.dance-skip, .instruction-token {
  font-family: var(--font-ui);
}
body { font-weight: 700; }
button, .primary-button, .text-button, .dance-skip,
.header-caption, .eyebrow, .guide-item h3,
.controls-summary b, .music-chip, .goal-score,
.flight-hud strong, .flight-hud .hud-score strong,
.flight-hud .hud-speed > span, .boost-toast, .level-toast,
.result-stats strong, .dance-caption > span, .instruction-token {
  font-weight: 900;
}
.start-panel p, .result-card p, .guide-item p,
.instructions p, dialog > p, .character-tag small { font-weight: 700; }
.start-panel p, .result-card p, .instructions p, dialog > p { line-height: 1.65; }

h1, h2, .brand, .super-badge b, .goal-label b,
.start-panel h2, .result-card h2, .dance-heading h2,
dialog h2, .dance-numbers b {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
}
h1 { font-size: clamp(26px, 2.3vw, 32px); line-height: 1.2; }
.brand { font-size: 29px; line-height: 1.2; }
.start-panel h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.18; }
.start-panel h2 span { white-space: normal; display: inline-block; max-width: 100%; }
.result-card h2 { font-size: 34px; line-height: 1.2; }
dialog h2 { font-size: 27px; line-height: 1.2; }
.dance-heading h2 { font-size: 30px; line-height: 1.2; }
.super-badge b { letter-spacing: -2px; }
.goal-label b { font-size: 26px; }
.dance-numbers b { letter-spacing: 0; }

/* Keep the sticker colours and shadows, with straight readable baselines. */
.brand, .header-caption, .how-button, .super-badge,
.super-badge b, .super-badge span, .personal-best,
.adventure-pill, .character-tag, .music-chip, .goal-label b,
.guide-item, .guide-item:first-child, .guide-item:nth-child(2),
.guide-item:last-child, .guide-icon, .guide-number,
.dance-unlocked, .dance-heading h2 { transform: none; }
.primary-button { transform: none; }
.primary-button:hover { transform: translateY(-2px); }
.primary-button:active { transform: translate(3px, 3px); }
.boost-toast, .level-toast { transform: translateX(-50%); }
@keyframes shout-pop {
  from { opacity: 0; transform: translateX(-50%) scale(.65); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
.game-frame:fullscreen .start-panel h2 { font-size: clamp(32px, 4vw, 54px); }

@media (max-width: 1100px) {
  h1 { font-size: 28px; }
  .start-panel h2 { font-size: 32px; }
  .header-caption { font-size: 10px; letter-spacing: 0; }
}
@media (max-width: 850px) {
  h1 { font-size: 26px; }
  .start-panel h2 { font-size: 30px; }
  .header-caption { font-size: 8px; }
}
@media (max-width: 700px) {
  h1 { font-size: 23px; line-height: 1.22; }
  .brand { font-size: 26px; }
  .start-panel h2 { font-size: 28px; line-height: 1.18; }
  .start-panel p { font-size: 12px; }
  .result-card h2 { font-size: 28px; }
  .dance-heading h2 { font-size: 23px; }
  dialog h2 { font-size: 25px; }
  .primary-button { font-size: 14px; }
  .game-frame:fullscreen .start-panel h2 { font-size: 29px; }
}
@media (max-width: 370px) {
  h1 { font-size: 21px; }
  .start-panel h2 { font-size: 25px; }
  .start-panel p { font-size: 11px; }
}
