/* 신양초 1학년 화면: 크고 밝게, 누르기 쉽게 */
body.course-elem {
  --navy: #3b3486;
  --navy-2: #5a4fcf;
  --teal: #12a37f;
  --teal-2: #ffb703;
  --teal-bg: #fff6dd;
  --bg: #fffaf2;
  --radius: 20px;
  font-size: 17px;
  background: var(--bg);
}
body.course-elem .topbar { background: linear-gradient(90deg, #5a4fcf, #7b61ff); }
body.course-elem .brand-mark { color: #5a4fcf; border-bottom-color: #ffb703; }
body.course-elem h1 { font-size: 28px; }

.ko-say {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 6px; vertical-align: middle;
  border-radius: 50%; border: 0; background: #fff1c7; cursor: pointer; font-size: 16px;
}
.ko-say.speaking { background: #ffb703; }
.say-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  border: 0; background: #ffb703; color: #3b2a00; cursor: pointer; box-shadow: 0 3px 0 #d89400;
}
.say-btn svg { width: 24px; height: 24px; }
.say-btn.huge { width: 72px; height: 72px; font-size: 30px; }
.say-btn.huge svg { width: 34px; height: 34px; }
.say-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #d89400; }
.say-btn.speaking { background: #12a37f; color: #fff; box-shadow: 0 3px 0 #0b7a5e; }

/* 홈 */
.ehero {
  background: linear-gradient(135deg, #fff1c7 0%, #ffe0e9 55%, #e0f0ff 100%);
  border-radius: 26px; padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.ehero-hi { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 20px; }
.ehero-avatar { font-size: 56px; line-height: 1; background: #fff; border-radius: 50%; width: 76px; height: 76px; display: grid; place-items: center; box-shadow: var(--shadow); }
.ehero-q { margin: 6px 0 10px; color: #3b3486; }
.esec { margin: 22px 0 10px; color: #3b3486; font-size: 19px; }
.eday {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 10px; border-radius: 20px;
  background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 3px solid transparent;
}
.eday:hover { border-color: #ffd166; }
.eday.big { padding: 20px; border-color: #ffb703; }
.eday.done { background: #effbf5; }
.eday-sticker { font-size: 40px; width: 58px; text-align: center; flex-shrink: 0; }
.eday.big .eday-sticker { font-size: 54px; width: 70px; }
.eday-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.eday-go {
  flex-shrink: 0; background: #5a4fcf; color: #fff; font-weight: 800; border-radius: 999px; padding: 10px 18px; font-size: 17px;
}
.eday.big .eday-go { background: #12a37f; font-size: 20px; padding: 14px 24px; }
.eday.done .eday-go { background: #12a37f; }
.mini-bar { display: block; margin-top: 6px; max-width: 220px; }
.egrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.egrid.three { grid-template-columns: repeat(3, 1fr); }
.etile {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; border-radius: 20px;
  background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); text-align: center;
}
.etile span { font-size: 36px; }
.etile small { color: var(--gray); }
.parent-tip summary { color: #8a4b08 !important; }

.sticker-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sticker-slot {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800;
  background: #f1f0fb; color: #a19ad8; border: 3px dashed #d6d2f5; text-decoration: none;
}
.sticker-slot.got { background: #fff; border: 3px solid #ffb703; font-size: 32px; box-shadow: 0 3px 0 #f2d48b; }
.sticker-week { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #eadfcc; }
.sw-label { width: 72px; font-weight: 700; color: #3b3486; flex-shrink: 0; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ebadge { display: flex; flex-direction: column; align-items: center; padding: 10px 12px; border-radius: 16px; background: #eee; opacity: .45; min-width: 88px; }
.ebadge span { font-size: 30px; filter: grayscale(1); }
.ebadge.on { background: #fff6dd; opacity: 1; }
.ebadge.on span { filter: none; }

/* 지도 */
.emap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.emap-week {
  display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 20px; background: #fff;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 3px solid transparent;
}
.emap-week:hover { border-color: #ffd166; }
.emap-week.done { background: #effbf5; }
.emap-emoji { font-size: 42px; width: 56px; text-align: center; }
.emap-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.emap-dots { display: flex; gap: 5px; margin-top: 6px; }
.emap-dots i { width: 24px; height: 24px; border-radius: 50%; background: #eeeaf9; font-style: normal; font-size: 15px; display: grid; place-items: center; }
.emap-dots i.on { background: #fff1c7; }

/* 그림 카드 */
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pic-grid.small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.pic-card, .pic-hit {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 18px;
  background: #fff; border: 3px solid #f0e9da; cursor: pointer; text-align: center; width: 100%;
}
.pic-card.big { padding: 8px; border-color: #f0e9da; cursor: default; }
.pic-card.big .pic-hit { border: 0; padding: 6px; }
.pic-card.known { border-color: #9be3c4; }
.pic-card:hover, .pic-hit:hover { border-color: #ffd166; }
.pic-card.now { border-color: #12a37f; background: #effbf5; }
.pic-card .pic, .pic-hit .pic { font-size: 54px; line-height: 1.2; }
.pic-card.big .pic { font-size: 72px; }
.pic-card b, .pic-hit b { font-size: 20px; color: #3b3486; }
.pic-card small, .pic-hit small { color: var(--gray); }
.pic-card.speaking, .pic-hit.speaking { border-color: #12a37f; background: #effbf5; }
.repeat { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.rep { border: 0; background: transparent; font-size: 28px; color: #d9cfb8; cursor: pointer; padding: 0 2px; line-height: 1; }
.rep.on { color: #ffb703; }

/* 알파벳 */
.letter-card { background: #fff; border-radius: 22px; padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.letter-head { display: flex; align-items: center; gap: 16px; }
.letter-big { font-size: 84px; font-weight: 900; color: #5a4fcf; line-height: 1; }
.letter-big small { font-size: 64px; color: #ff7a59; margin-left: 8px; }
.trace-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trace { position: relative; }
.trace-canvas { width: 100%; height: 170px; border-radius: 16px; background: #fbfcff; border: 2px solid #e3e8f0; touch-action: none; display: block; }
.trace-clear { position: absolute; right: 8px; top: 8px; }
.pic-card.blend b i { font-style: normal; padding: 0 1px; border-radius: 6px; }
.pic-card.blend b i.fam { color: #ff7a59; }
.pic-card.blend b i.lit { background: #ffe08a; }
.az-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.az {
  display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 16px; background: #fff;
  border: 3px solid #ece7fb; cursor: pointer; font-size: 26px;
}
.az b { color: #5a4fcf; font-size: 26px; }
.az.learned { border-color: #ffd166; }
.az.now, .az.speaking { border-color: #12a37f; background: #effbf5; }
.sight-card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.sight-card .pic { font-size: 46px; }
.sight-card > div { flex: 1; }
.sight-en { font-size: 24px; }
.tok { border: 0; background: transparent; font: inherit; color: inherit; padding: 0 2px; border-radius: 6px; cursor: pointer; }
.tok:hover, .tok.speaking { background: #ffe08a; }

/* 단계 */
.eday-head .crumbs { display: inline-block; text-decoration: none; }
.step-dots { display: flex; gap: 8px; margin: 10px 0 6px; overflow-x: auto; }
.step-dot {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 2px solid #e6e0fa;
  background: #fff; cursor: pointer; white-space: nowrap; color: var(--ink);
}
.step-dot span { font-size: 18px; }
.step-dot.on { border-color: #5a4fcf; background: #f1efff; font-weight: 700; }
.step-dot.done span { color: #12a37f; font-weight: 900; }
.step-title { display: flex; align-items: center; gap: 8px; font-size: 24px; margin-top: 14px; color: #3b3486; }
.step-ico { font-size: 34px; }
.step-say { margin: 4px 0 14px; color: var(--gray); }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0 8px; }
.step-nav .btn.teal { flex: 1; max-width: 420px; margin-left: auto; }

/* 게임 */
.game { background: #fff; border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.g-top { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #3b3486; }
.g-bar { flex: 1; height: 10px; background: #f1efff; border-radius: 999px; overflow: hidden; }
.g-bar i { display: block; height: 100%; background: #ffb703; transition: width .3s; }
.g-prompt { text-align: center; padding: 14px 0; }
.g-ask { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.g-pic { font-size: 86px; line-height: 1.1; margin-bottom: 10px; }
.g-situation { font-size: 22px; background: #fff6dd; border-radius: 16px; padding: 14px; display: inline-block; }
.g-who { font-size: 34px; margin-right: 6px; vertical-align: middle; }
.g-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.g-options.n3 { grid-template-columns: repeat(3, 1fr); }
.g-opt {
  min-height: 96px; border-radius: 20px; border: 3px solid #ece7fb; background: #fff; cursor: pointer; padding: 10px;
  display: grid; place-items: center; font-size: 22px; transition: transform .08s;
}
.g-opt:active { transform: scale(.97); }
.g-opt .pic { font-size: 60px; }
.g-opt .big-letter { font-size: 44px; color: #5a4fcf; }
.g-opt.right { border-color: #12a37f; background: #e3f8ef; animation: pop-in .3s; }
.g-opt.wrong { border-color: #ff6b6b; background: #ffeceb; animation: shake .35s; opacity: .7; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes pop-in { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.game-end { text-align: center; background: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.ge-big { font-size: 80px; }
.stars { color: #ffb703; font-size: 34px; letter-spacing: 4px; }
.stars .off { color: #e6e0d0; }

/* 대화, 챈트, 몸으로 */
.chat { background: #fff; border-radius: 22px; padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.bubble-row { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.bubble-row.right { flex-direction: row-reverse; }
.speaker { font-size: 40px; }
.bubble {
  display: flex; flex-direction: column; text-align: left; gap: 2px; max-width: 78%;
  background: #f1efff; border: 0; border-radius: 18px 18px 18px 4px; padding: 10px 14px; cursor: pointer;
}
.bubble-row.right .bubble { background: #fff1c7; border-radius: 18px 18px 4px 18px; }
.bubble b { font-size: 21px; color: #2d2670; }
.bubble small { color: var(--gray); }
.bubble.now, .bubble.speaking { outline: 3px solid #12a37f; }
.chant-box { background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.chant-lines { list-style: none; padding: 0; margin: 16px 0; }
.chant-lines li { padding: 10px 14px; border-radius: 14px; margin-bottom: 6px; display: flex; flex-direction: column; }
.chant-lines li b { font-size: 22px; color: #2d2670; }
.chant-lines li small { color: var(--gray); }
.chant-lines li.now { background: #fff1c7; transform: scale(1.02); transition: transform .2s; }
.tpr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tpr-card { background: #fff; border-radius: 20px; padding: 8px; box-shadow: var(--shadow); text-align: center; border: 3px solid transparent; }
.tpr-card .pic-hit { border: 0; }
.tpr-card.now { border-color: #ffb703; animation: pop-in .3s; }
.tpr-did { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; cursor: pointer; padding: 6px; }
.tpr-did input { width: 22px; height: 22px; accent-color: #12a37f; }

/* 그림 이야기 */
.book { background: #fff; border-radius: 26px; padding: 18px; box-shadow: var(--shadow); text-align: center; }
.book-title { font-size: 22px; font-weight: 800; color: #5a4fcf; }
.book-page { min-height: 260px; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 10px 0; }
.book-pic { font-size: 110px; line-height: 1.1; }
.book-text { font-size: 28px; font-weight: 700; color: #2d2670; }
.book-ko { color: var(--gray); font-size: 18px; }
.book-ko.hide { visibility: hidden; }
.book-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 6px 0 12px; font-weight: 700; }

.day-finish { text-align: center; padding: 30px 10px; }
.df-sticker { font-size: 120px; animation: pop-in .6s; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti span { position: absolute; top: -40px; animation: fall 2.2s ease-in forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); opacity: .8; } }

@media (max-width: 760px) {
  body.course-elem h1 { font-size: 23px; }
  .egrid { grid-template-columns: repeat(2, 1fr); }
  .emap { grid-template-columns: 1fr; }
  .tpr-grid { grid-template-columns: 1fr; }
  .tpr-card { display: flex; align-items: center; gap: 8px; text-align: left; }
  .tpr-card .pic-hit { flex-direction: row; gap: 10px; text-align: left; }
  .pic-grid { grid-template-columns: repeat(2, 1fr); }
  .pic-grid.small { grid-template-columns: repeat(3, 1fr); }
  .trace-canvas { height: 140px; }
  .letter-big { font-size: 64px; }
  .letter-big small { font-size: 50px; }
  .book-text { font-size: 23px; }
  .book-pic { font-size: 88px; }
  .g-opt { min-height: 84px; }
  .g-opt .pic { font-size: 50px; }
  .eday-go { padding: 8px 12px; font-size: 15px; }
  .sticker-slot { width: 50px; height: 50px; }
  .sw-label { width: 52px; font-size: 14px; }
  .step-nav .btn { padding: 14px 14px; }
}
