/* 하루 할 일 보상(스티커판·축하), 국어 이야기, 게임 "풍선 팡팡" */

/* 아이 홈: 오늘 할 일 띠 */
.day-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 3px dashed var(--kid); border-radius: 22px; padding: 14px 20px;
}
.day-strip.done { border-style: solid; background: var(--kid-soft); }
.ds-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.day-strip.done .ds-main { flex-direction: row; align-items: center; gap: 14px; }
.ds-main b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--kid); display: block; }
.ds-main span { font-size: 17px; color: var(--muted); }
.ds-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.ds-step { padding: 6px 14px; border-radius: 999px; background: var(--bg); font-family: var(--display); font-size: 19px !important; color: var(--muted); }
.ds-step.on { background: var(--good-soft); color: var(--good) !important; }
.ds-goal b { display: inline !important; font-size: 19px !important; }
.ds-sticker { font-size: 52px !important; line-height: 1; }
.ds-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.home-badge { margin-top: 6px; padding: 3px 12px; border-radius: 999px; background: #FFF4C2; color: #8A6100; font-size: 15px; }

/* 축하 화면 */
.day-done { position: relative; overflow: hidden; }
.day-done .pause-card { position: relative; z-index: 1; }
.dd-sticker { font-size: 110px; line-height: 1.1; animation: dd-pop .9s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes dd-pop { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: scale(1) rotate(0); } }
.dd-board { font-size: 22px; }
.dd-board b { font-family: var(--display); font-weight: 400; color: var(--kid); font-size: 30px; }
.dd-streak { font-family: var(--display); font-size: 24px; color: #D9480F; }
.dd-full { font-family: var(--display); font-size: 26px; color: var(--good); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 3px; animation: confetti-fall 2.6s ease-in forwards; }
@keyframes confetti-fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(110vh) rotate(540deg); opacity: .8; } }

/* 스티커판 */
.board-screen { gap: 14px; }
.bd-guide { text-align: center; font-size: 19px; color: var(--muted); }
.bd-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; }
.bd-cell {
  aspect-ratio: 1; border-radius: 16px; border: 3px dashed var(--line); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 18px; color: #C2C9D4; line-height: 1;
}
.bd-cell.on { border: 3px solid var(--kid-soft); background: #fff; font-size: clamp(30px, 3.2vw, 48px); color: var(--ink); }
.bd-cell.gift { border-color: #FFE08A; }
.bd-cell small { font-family: var(--body); font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 국어 이야기 */
.reading { gap: 16px; max-width: 1100px; }
.rd-card { background: var(--surface); border-radius: 26px; padding: 26px 30px; display: flex; flex-direction: column; gap: 14px; }
.rd-card.center { align-items: center; text-align: center; }
.rd-wait { font-family: var(--display); font-size: 26px; color: var(--muted); padding: 40px 0; }
.rd-series { font-size: 16px; color: var(--muted); }
.rd-title { font-size: 32px; color: var(--kid); }
.rd-para { display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; padding: 6px 8px; }
.rd-para.hint { background: var(--warn-soft); }
.rd-para p { margin: 0; flex: 1; font-family: var(--body); font-size: clamp(22px, 1.9vw, 27px); line-height: 1.75; word-break: keep-all; }
.rd-listen { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); font-size: 22px; }
.rd-word { border: none; background: none; padding: 0; font: inherit; color: var(--kid); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; cursor: pointer; }
.rd-meaning { background: var(--kid-soft); border-radius: 14px; padding: 10px 16px; font-size: 20px; }
.rd-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.rd-bottom .big-btn { margin-top: 0; }
.rd-step { font-family: var(--display); font-size: 19px; color: var(--muted); }
.rd-q { font-family: var(--display); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.4; }
.rd-opts { display: flex; flex-direction: column; gap: 12px; }
.rd-opt {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 10px 20px; text-align: left;
  border-radius: 18px; border: 3px solid var(--line); background: var(--surface); box-shadow: 0 3px 0 var(--line);
  font-family: var(--display); font-size: 26px; color: var(--ink);
}
.rd-opt:active:not(:disabled) { transform: translateY(2px); }
.rd-opt.right { border-color: var(--good); background: var(--good-soft); }
.rd-opt.wrong { opacity: .45; text-decoration: line-through; }
.rd-num { color: var(--kid); font-size: 30px; }
.rd-hint { background: var(--warn-soft); border-radius: 16px; padding: 12px 18px; }
.rd-hint p { margin: 0; font-size: 21px; line-height: 1.7; }
.rd-fb { font-family: var(--display); font-size: 26px; color: var(--warn); }
.rd-fb.good { color: var(--good); }
.rd-done { font-family: var(--display); font-size: 48px; color: var(--kid); }
.rd-teaser { width: 100%; background: var(--kid-soft); border-radius: 18px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.rd-teaser span { font-size: 16px; color: var(--muted); }
.rd-teaser b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--kid); }
.rd-parent p { font-size: 16px; line-height: 1.7; }
.rd-parent ol { font-size: 15px; }

/* 게임: 풍선 팡팡 */
.gm-screen { height: 100vh; min-height: 0; gap: 10px; position: relative; max-width: 1400px; }
.gm-hud { display: flex; align-items: center; gap: 18px; font-size: 26px; }
.gm-time { font-family: var(--display); font-size: 26px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gm-qbar { display: flex; align-items: center; justify-content: center; gap: 16px; background: var(--surface); border-radius: 20px; padding: 10px 20px; }
.gm-q { font-family: var(--display); font-size: clamp(40px, 4.6vw, 64px); color: var(--ink); letter-spacing: .02em; }
.gm-q.en { font-family: var(--en-font); font-weight: 800; letter-spacing: .12em; }
.gm-combo { font-family: var(--display); font-size: 24px; color: #D9480F; min-width: 90px; }
.gm-area {
  position: relative; flex: 1; min-height: 360px; overflow: hidden; border-radius: 24px;
  background: linear-gradient(#CFE8FF, #EAF5FF 70%, #F7FBFF); touch-action: none; user-select: none;
}
.gm-balloon {
  position: absolute; top: 0; width: 120px; height: 140px; margin-left: -60px; padding: 0; border: none;
  border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%; color: #fff; font-family: var(--display); font-size: 40px;
  box-shadow: inset -10px -14px 0 rgba(0, 0, 0, .12), inset 10px 10px 0 rgba(255, 255, 255, .25); will-change: transform; cursor: pointer;
}
.gm-balloon::after { content: ''; position: absolute; left: 50%; bottom: -34px; width: 2px; height: 34px; background: rgba(0, 0, 0, .25); }
.gm-balloon.en { font-family: var(--en-font); font-weight: 800; font-size: 46px; }
/* 2026-10-16 재후 문제: 긴 보기(영어 단어·큰 수)는 넓은 풍선, 긴 문제 글은 작게, 분수는 위아래로 */
.gm-balloon.wide { width: 196px; margin-left: -98px; font-size: 34px; border-radius: 48% 48% 44% 44% / 55% 55% 45% 45%; }
.gm-balloon.wide.en { font-size: 30px; }
.gm-balloon .frac, .gm-q .frac { font-size: .7em; }
.gm-q.long { font-size: clamp(30px, 3.2vw, 46px); letter-spacing: 0; }
.gm-q.en.long { letter-spacing: .04em; }
.gm-balloon.c1 { background: #EB5757; } .gm-balloon.c2 { background: #2D9CDB; } .gm-balloon.c3 { background: #27AE60; }
.gm-balloon.c4 { background: #F2994A; } .gm-balloon.c5 { background: #BB6BD9; }
.gm-balloon.pop { animation: gm-pop .3s ease-out forwards; }
@keyframes gm-pop { to { opacity: 0; scale: 1.6; } }
.gm-balloon.bad { animation: gm-bad .5s ease-out forwards; }
@keyframes gm-bad { 0%, 50% { rotate: -12deg; } 25%, 75% { rotate: 12deg; } 100% { opacity: 0; rotate: 0deg; } }
.gm-balloon.fade { animation: gm-fade .35s linear forwards; }
@keyframes gm-fade { to { opacity: 0; } }
.gm-over { position: absolute; inset: 0; background: rgba(20, 24, 33, .45); display: flex; align-items: center; justify-content: center; z-index: 5; padding: 16px; }
.gm-final b { font-family: var(--display); font-weight: 400; font-size: 72px; color: var(--kid); }

@media (max-width: 860px) {
  .bd-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gm-balloon { width: 90px; height: 105px; margin-left: -45px; font-size: 30px; }
  .gm-balloon.wide { width: 140px; margin-left: -70px; font-size: 24px; }
  .gm-balloon.wide.en { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .dd-sticker { animation: none; }
}
