:root {
  --purple: #7556ee;
  --purple-dark: #4d369f;
  --yellow: #ffd84a;
  --pink: #ff78a7;
  --green: #60d9a5;
  --blue: #64c8f4;
  --ink: #31295a;
  --muted: #797294;
  --paper: #fffaf0;
  --white: #fff;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #dff5ff 0%, #f8eeff 48%, #fff7df 100%);
  font-family: "Be Vietnam Pro", sans-serif;
}
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
.cloud { position: fixed; z-index: -1; opacity: .55; font-size: 90px; animation: float 8s ease-in-out infinite; }
.cloud-one { top: 10%; left: -25px; }
.cloud-two { top: 30%; right: -30px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(18px); } }
.app { width: min(100%, 540px); min-height: 100vh; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; }
header { height: 76px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.brand span { font-size: 30px; }
.brand strong { font-size: 19px; letter-spacing: -.04em; }
.header-buttons { display: flex; gap: 8px; }
.round-button { width: 38px; height: 38px; padding: 0; border: 2px solid rgba(117,86,238,.14); border-radius: 50%; color: var(--purple-dark); background: rgba(255,255,255,.72); cursor: pointer; font-weight: 800; }
.round-button.muted { opacity: .45; }
main { flex: 1; display: flex; align-items: center; }
.screen { display: none; width: 100%; padding: 15px 0 32px; text-align: center; animation: enter .3s ease; }
.screen.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.mascots { height: 125px; display: flex; justify-content: center; align-items: center; }
.mascots span { display: grid; place-items: center; width: 90px; height: 90px; border-radius: 30px; background: white; box-shadow: 0 18px 35px rgba(80,59,142,.12); font-size: 51px; transform: rotate(-8deg); }
.mascots span:nth-child(2) { z-index: 2; width: 110px; height: 110px; background: var(--yellow); transform: translateY(-8px) rotate(3deg); }
.mascots span:nth-child(3) { transform: rotate(8deg); }
.eyebrow { margin: 22px 0 8px; color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin: 0; line-height: 1.08; letter-spacing: -.055em; }
h1 { font-size: clamp(44px, 13vw, 66px); }
h2 { font-size: 34px; }
.intro { max-width: 390px; margin: 17px auto 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.lesson-grid { margin-bottom: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lesson-grid span { padding: 12px 8px; border: 2px solid rgba(117,86,238,.09); border-radius: 14px; background: rgba(255,255,255,.75); font-size: 12px; font-weight: 700; }
.primary-button, .secondary-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 800;
}
.primary-button { display: flex; align-items: center; justify-content: center; gap: 15px; color: white; background: var(--purple); box-shadow: 0 13px 28px rgba(117,86,238,.22); }
.primary-button:active { transform: scale(.98); }
.secondary-button { margin-top: 10px; color: var(--purple); border: 2px solid rgba(117,86,238,.16); background: rgba(255,255,255,.7); }
.adult-link { display: inline-block; margin-top: 17px; color: var(--muted); font-size: 10px; text-decoration: none; }
.game { align-self: stretch; }
.game-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; }
.stars { color: #a26f00; }
.progress { height: 9px; margin: 12px 0 18px; overflow: hidden; border-radius: 10px; background: rgba(117,86,238,.1); }
.progress i { display: block; width: 12.5%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--pink)); transition: width .3s; }
.question-card { min-height: 280px; padding: 24px 18px; display: grid; place-items: center; align-content: center; border: 3px solid white; border-radius: 32px; background: rgba(255,255,255,.8); box-shadow: 0 22px 55px rgba(80,59,142,.12); }
.category { padding: 6px 11px; border-radius: 20px; color: var(--purple-dark); background: #eee9ff; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.question-emoji { margin: 16px 0 9px; font-size: clamp(72px, 23vw, 105px); line-height: 1.2; }
.question-card h2 { font-size: 25px; }
.listen-button { margin-top: 14px; padding: 8px 12px; border: 0; border-radius: 20px; color: var(--purple); background: #f0ebff; cursor: pointer; font-size: 10px; font-weight: 700; }
.answers { margin-top: 14px; display: grid; gap: 10px; }
.answer-button { min-height: 58px; padding: 10px; border: 2px solid white; border-radius: 17px; color: var(--ink); background: rgba(255,255,255,.83); box-shadow: 0 7px 18px rgba(80,59,142,.08); cursor: pointer; font-size: 15px; font-weight: 800; }
.answer-button:active { transform: scale(.98); }
.feedback-face { margin: 0 auto; display: grid; place-items: center; width: 145px; height: 145px; border: 5px solid white; border-radius: 45px; background: var(--yellow); box-shadow: 0 20px 50px rgba(80,59,142,.14); font-size: 80px; transform: rotate(-4deg); }
.feedback > p:not(.eyebrow) { margin: 14px 0 26px; color: var(--muted); font-size: 14px; }
.trophy { font-size: 95px; filter: drop-shadow(0 17px 18px rgba(99,69,15,.17)); }
.result-score { width: 205px; height: 205px; margin: 23px auto; display: grid; place-items: center; align-content: center; border: 9px solid var(--yellow); border-radius: 50%; background: white; box-shadow: 0 0 0 9px rgba(255,216,74,.2); }
.result-score span, .result-score small { color: var(--muted); font-size: 10px; }
.result-score strong { margin: 4px 0; font-size: 42px; }
.result > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
footer { padding: 18px; color: var(--muted); text-align: center; font-size: 9px; }
.toast { position: fixed; left: 50%; bottom: 25px; padding: 11px 16px; border-radius: 12px; color: white; background: var(--ink); opacity: 0; transform: translate(-50%, 12px); transition: .2s; font-size: 11px; font-weight: 700; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-height: 730px) {
  header { height: 58px; }
  .mascots { height: 92px; }
  .mascots span { width: 66px; height: 66px; font-size: 36px; }
  .mascots span:nth-child(2) { width: 82px; height: 82px; }
  .question-card { min-height: 230px; }
  .question-emoji { margin: 8px 0; font-size: 72px; }
}
