:root {
  --font-display: "Rammetto One", "Arial Black", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-family: var(--font-body);
}

body {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

h1, h2, h3,
.help-box h2, .loading h2,
.hud-box b, .res-grid b, .res-score b, .duel-score, .help-box .dur-opt, .quiz-timer, .monitor-alert-icon,
.mq-timer, .stage-net-badge, .howto-warn b {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: normal;
}

h1, h2, h3 { text-wrap: balance; }
.game-box h2 { font-size: clamp(20px, 4.6vw, 26px); line-height: 1.18; }
#menu-title { font-size: clamp(18px, 4.2vw, 22px); line-height: 1.24; }
.hud-box b, .res-grid b, .res-score b, .duel-score, .help-box .dur-opt, .quiz-timer, .loading-meta b { font-variant-numeric: tabular-nums; }
.hud-box .hud-time { font-weight: 400 !important; }

.help-box :is(#play-btn, #again-btn, #next-turn, #pause-resume, #help-close, #pedia-close, #challenge-form button[type=submit]) {
  font: 400 clamp(15px, 3.2vw, 19px)/1.15 var(--font-display);
  letter-spacing: .02em;
}

.help-box .ghost, .reload, .quiz-opts button {
  font-family: var(--font-body);
  font-weight: 800;
}

.hud-box small, .res-grid small, .res-of, .help-box .dur-opt small,
.eyebrow, .quiz-q, .hud-chain small, .hud-chain b, .monitor-alert-text,
.howto-copy b, .howto-count, .stage-tag, .sp-pill, .pedia-badge {
  font-family: var(--font-body);
  font-weight: 800;
}

.loading p, #res-note {
  font: 700 15px/1.35 var(--font-body);
}

@media (max-width: 600px) {
  .loading p, #res-note { font-size: 13px; }
}
