/* ==========================================================================
   SOUND SAFARI
   Layout for the four phonics games. Shared chrome (screens, top bar, score
   pill, chips, answer buttons, settings, confetti) lives in kids-common.css.
   ========================================================================= */

/* Each mode its own colour, so a child recognises the game before they can
   read its name. */
.game-btn.mode-sounds { background: #d9822b; }
.game-btn.mode-rhyme { background: #7f77dd; }
.game-btn.mode-claps { background: #1d9e75; }
.game-btn.mode-alien { background: #3f8ecc; }

#scr-play {
  align-items: stretch;
}

/* The three level chips carry a longer note than Number Adventures' ranges. */
#level-chips .chip-note {
  white-space: nowrap;
}

/* ===================== The card in the middle ===================== */

.safari-card {
  background: var(--kids-card);
  border: 3px solid #efe9e0;
  border-radius: 24px;
  padding: 16px 14px 18px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.safari-picture {
  font-size: clamp(64px, 22vw, 104px);
  line-height: 1.1;
}

/* The word itself. A rounded, school-friendly face where one exists: the
   "a" and "g" children learn to write are single-storey, and Comic Sans and
   Century Gothic are the common ones on Windows and Android that draw them
   that way. Falls back to the page font. */
.safari-word {
  font-family: "Century Gothic", "Comic Sans MS", "Chalkboard SE", "Andika", inherit;
  font-size: clamp(2.4rem, 12vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--kids-ink);
  line-height: 1.15;
  text-align: center;
}

/* A missing sound: one underscore per letter, in amber so the eye goes to it. */
.safari-word .gap {
  color: var(--kids-amber);
  background: var(--kids-amber-pale);
  border-radius: 10px;
  padding: 0 4px;
  margin: 0 2px;
}

.safari-word .gap.filled {
  color: var(--kids-green);
  background: #e4f6ef;
}

/* Real or alien: the word is the whole question, so it gets the room. */
.safari-ufo {
  font-size: clamp(48px, 16vw, 72px);
  line-height: 1;
}

.alien-word {
  font-size: clamp(3rem, 15vw, 4.4rem);
  padding: 6px 18px;
  border: 3px dashed var(--kids-border);
  border-radius: 18px;
}

/* Clap it: the word split into beats, shown after the answer. */
.safari-beats {
  min-height: 1.6em;
  font-size: clamp(1.4rem, 7vw, 2rem);
  font-weight: 900;
  color: var(--kids-green);
  letter-spacing: 0.04em;
}

/* ===================== Answers ===================== */

/* Sounds are short text ("sh", "igh", "a–e"), so the buttons stay square and
   big; the font matches the word above so the letters look the same in both. */
.safari-answers.mode-sounds .answer-btn {
  font-family: "Century Gothic", "Comic Sans MS", "Chalkboard SE", "Andika", inherit;
  min-width: 88px;
  font-size: 2.1rem;
}

/* Picture-and-word answers (rhymes, real or alien) need width for the word. */
.safari-answers.mode-rhyme,
.safari-answers.mode-alien {
  max-width: 360px;
}

.safari-answers.mode-rhyme .answer-btn,
.safari-answers.mode-alien .answer-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 132px;
  min-height: 96px;
}

.answer-btn .opt-pic {
  font-size: 2.4rem;
  line-height: 1.1;
}

.answer-btn .opt-word {
  font-size: 1.15rem;
  font-weight: 900;
}

/* Clap it: four buttons, the number and that many hands - narrowed to an even
   2 x 2, because 3 + 1 leaves the "4" stranded and looks like a mistake. */
.safari-answers.mode-claps {
  max-width: 200px;
}

.safari-answers.mode-claps .answer-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 6px 8px;
}

.answer-btn .opt-big {
  font-size: 2rem;
  line-height: 1;
}

.answer-btn .opt-claps {
  font-size: 0.85rem;
  letter-spacing: -2px;
  line-height: 1.3;
}
