
:root{
  --bg:#fffdf8; --card:#ffffff; --text:#263238; --muted:#7a8790;
  --shadow:0 10px 30px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
body{
  margin:0;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",sans-serif;
  background:var(--bg);color:var(--text);min-height:100vh;display:grid;place-items:center;padding:18px;
  -webkit-tap-highlight-color: transparent;
}
.app{width:min(920px,100%);min-height:620px;background:var(--card);border-radius:28px;box-shadow:var(--shadow);padding:28px;position:relative;overflow:hidden}
.top{display:flex;justify-content:space-between;align-items:center;gap:16px}
.brand{font-weight:900;font-size:clamp(22px,4vw,34px)}
.progress{font-weight:800;color:var(--muted);font-size:20px}
.screen{display:none;min-height:520px}
.screen.active{display:flex;flex-direction:column}
.hero{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;text-align:center}
.mascot{font-size:92px;line-height:1}
h1,h2,p{margin:0}
h1{font-size:clamp(30px,6vw,54px)}
h2{font-size:clamp(26px,5vw,44px)}
.sub{font-size:clamp(18px,3vw,26px);color:var(--muted);font-weight:700}
.age-row{display:grid;grid-template-columns:1fr 1fr;gap:22px;width:min(620px,100%)}
button{font:inherit}
.big-btn,.choice{
  border:none;border-radius:24px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.10);
  cursor:pointer;transition:.12s transform,.12s box-shadow;touch-action:manipulation;
}
.big-btn:active,.choice:active{transform:scale(.97)}
.big-btn{padding:26px 18px;font-size:30px;font-weight:900;min-height:150px}
.big-btn .emoji{display:block;font-size:58px;margin-bottom:8px}
.question-wrap{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;text-align:center;padding:10px}
.prompt{font-size:clamp(28px,5vw,46px);font-weight:900;line-height:1.35}
.visual{font-size:clamp(58px,10vw,100px);letter-spacing:10px;line-height:1.2;min-height:110px;display:grid;place-items:center}
.choices{width:min(720px,100%);display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.choice{padding:18px 12px;min-height:110px;font-size:clamp(30px,5vw,52px);font-weight:900}
.choice.text{font-size:clamp(26px,4vw,42px)}
.feedback{min-height:44px;font-size:30px;font-weight:900}
.hint{animation:pulse .7s ease-in-out 2}
@keyframes pulse{50%{transform:scale(1.08)}}
@keyframes celebrate{
  0%{transform:scale(1);opacity:1}
  35%{transform:scale(1.08)}
  70%{transform:scale(.98)}
  100%{transform:scale(1);opacity:1}
}
@keyframes fadeOut{
  from{opacity:1;transform:translateY(0)}
  to{opacity:0;transform:translateY(-10px)}
}
@keyframes fadeIn{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}
.question-wrap.celebrate{animation:celebrate .75s ease}
.question-wrap.fadeout{animation:fadeOut .35s ease forwards}
.question-wrap.fadein{animation:fadeIn .45s ease}
.audio-controls{
  position:absolute;right:18px;bottom:16px;display:flex;gap:8px;z-index:5
}
.audio-btn{
  border:none;border-radius:999px;background:#fff;box-shadow:0 5px 16px rgba(0,0,0,.10);
  padding:10px 12px;font-size:18px;cursor:pointer
}
.starline{font-size:42px;letter-spacing:5px}
.finish{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;text-align:center}
.summary{font-size:22px;color:var(--muted);font-weight:800;line-height:1.7}
.small{font-size:16px;color:var(--muted)}
.parent-row{margin-top:auto;display:flex;justify-content:center;padding-top:18px}
.parent-btn{border:none;background:transparent;color:#9aa5ad;font-size:14px;text-decoration:underline;cursor:pointer}
.panel{max-height:310px;overflow:auto;width:min(720px,100%);border:1px solid #eceff1;border-radius:18px;padding:14px;text-align:left;background:#fafafa}
table{border-collapse:collapse;width:100%;font-size:14px}
th,td{padding:8px;border-bottom:1px solid #e6e9eb;text-align:left}

.mascot-float{font-size:70px;transition:transform .25s ease}
.mascot-float.happy{animation:mascotHappy .8s ease}
@keyframes mascotHappy{
  0%{transform:translateY(0) scale(1)}
  35%{transform:translateY(-18px) scale(1.12) rotate(-6deg)}
  65%{transform:translateY(-8px) scale(1.08) rotate(5deg)}
  100%{transform:translateY(0) scale(1)}
}
.read-btn{
  border:none;border-radius:999px;background:#fff;box-shadow:0 5px 16px rgba(0,0,0,.10);
  padding:12px 18px;font-weight:900;font-size:18px;cursor:pointer
}
.reward{
  display:none;font-size:38px;font-weight:900;padding:12px 22px;border-radius:18px;
  background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.10)
}
.reward.show{display:block;animation:celebrate .7s ease}
.report-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:min(720px,100%)
}
.report-card{
  background:#fff;border-radius:18px;padding:16px;box-shadow:0 5px 16px rgba(0,0,0,.08);text-align:center
}
.report-card strong{display:block;font-size:28px;margin-top:6px}
@media(max-width:650px){
  .report-grid{grid-template-columns:1fr}

  .app{padding:18px;border-radius:20px;min-height:560px}
  .age-row{grid-template-columns:1fr}
  .big-btn{min-height:120px}
  .choices{gap:10px}
  .choice{min-height:90px}
}

:root{--muted:#586872}body{background:#eaf7ff}.app{border:3px solid #d9edf8}.brand{color:#245d79}.big-btn:first-child{background:#fff0bd}.big-btn:nth-child(2){background:#dcf3e7}.screen{min-height:500px}.audio-controls{position:static;justify-content:flex-end;margin-top:12px}.audio-btn,.read-btn,.parent-btn{min-height:48px;min-width:48px}.question-wrap{gap:14px}.visual{letter-spacing:0;min-height:90px}.choice{border:3px solid #e0edf2;min-width:0;display:flex;align-items:center;justify-content:center;min-height:140px}.choice:disabled{opacity:1;color:inherit}.choice.correct{border-color:#3da67e;background:#edfff4}.items{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;max-width:340px}.item{display:inline-block;font-size:48px;line-height:1.2}.visual .item{font-size:58px}.symbol{font-size:64px;font-weight:800;line-height:1.3}.size-small{font-size:38px!important}.size-large{font-size:85px!important}.dot{width:38px;height:38px;border-radius:50%;background:var(--color);display:inline-block;border:2px solid #364957}.shape{width:60px;height:60px;background:#287ba8;display:inline-block}.shape.circle{border-radius:50%}.shape.triangle{clip-path:polygon(50% 0,100% 100%,0 100%)}button:focus-visible{outline:4px solid #145dce;outline-offset:4px}.reward{position:absolute;pointer-events:none;top:18%;left:50%;transform:translateX(-50%);white-space:nowrap}.starline{max-width:100%;overflow-wrap:anywhere;font-size:30px}.top{flex-wrap:wrap}.nav{border:0;background:transparent;min-height:48px;font-size:18px}.mascot-float{font-size:56px}#status{font-size:14px;color:#586872;text-align:center}.hint{animation:pulse .7s ease-in-out 3}@media(max-width:650px){body{padding:8px}.app{padding:14px}.age-row{grid-template-columns:1fr 1fr;gap:12px}.big-btn{font-size:26px}.prompt{font-size:26px}.choices{gap:8px}.choice{padding:10px 4px;min-height:145px}.item{font-size:32px}.visual .item{font-size:42px}.items{gap:4px}.dot{width:27px;height:27px}.symbol{font-size:48px}.size-large{font-size:64px!important}.size-small{font-size:29px!important}.shape{width:45px;height:45px}.screen{min-height:510px}.brand{font-size:22px}.report-grid{grid-template-columns:repeat(3,1fr)}.report-card{padding:8px;font-size:14px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.audio-controls{position:static;flex-wrap:wrap;justify-content:center;margin-top:18px}.audio-btn{min-height:48px;font-size:16px}.sticker-prize{grid-column:1/-1;font-size:30px;padding:20px;background:#fff5b8;border-radius:24px}.first-sticker{animation:celebrate .8s ease 2}#stickerGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.sticker-card{border:2px dashed #c7ccd4;border-radius:22px;text-align:center;padding:16px 5px;background:#f4f6f9}.sticker-card.owned{border:3px solid #f6c744;background:#fff9d9}.sticker-icon{font-size:58px}.sticker-icon img{width:64px;height:64px;object-fit:contain}.sticker-card p{font-size:16px}.starline{overflow-wrap:anywhere}#albumSummary{font-size:20px;font-weight:bold}@media(max-width:650px){#stickerGrid{grid-template-columns:repeat(3,1fr)}.sticker-icon{font-size:44px}.sticker-card p{font-size:14px}}
