/* 엄마표 영유 — 아이와 함께 보는 밝은 화면
   바탕은 키즈노트처럼 하늘색·흰색, 수업 카드는 듀오링고 ABC처럼 장마다 다른 밝은 색 */
:root {
  --bg: #F3F8FF;
  --card: #FFFFFF;
  --ink: #1F2A44;
  --muted: #6B7790;
  --line: #E2ECF8;
  --sky: #2F9BFF;   --sky-d: #1A7FE0;   --sky-l: #E3F1FF;
  --sun: #FFC83D;   --sun-d: #E9A800;   --sun-l: #FFF4D6;
  --coral: #FF7A59; --coral-d: #E85C3B; --coral-l: #FFE7E0;
  --mint: #22C3A6;  --mint-d: #12A088;  --mint-l: #DDF7F1;
  --grape: #8C6CFF; --grape-d: #6F4FE8; --grape-l: #EEE9FF;
  --pink: #FF6FA8;  --pink-l: #FFE6F0;
  --danger: #E5484D;
  --shadow: 0 2px 4px rgba(31, 42, 68, .04), 0 10px 24px rgba(47, 155, 255, .10);
  --r: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere;
  min-height: 100vh; min-height: 100dvh;
}
button, input, select { font: inherit; color: inherit; }
.jua { font-family: "Jua", "Pretendard Variable", sans-serif; font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: 27px; line-height: 1.3; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 0 0 6px; }
h3 { font-size: 18px; margin: 0 0 8px; }
h1.jua, h2.jua, h3.jua { font-weight: 400; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* 머리 */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px;
  padding: calc(env(safe-area-inset-top) + 8px) 10px 8px; background: rgba(243, 248, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand { flex: 1; display: flex; align-items: center; gap: 9px; font-size: 21px; cursor: pointer; }
.logo {
  display: inline-grid; place-items: center; height: 32px; padding: 0 8px; border-radius: 11px;
  background: linear-gradient(135deg, #5DB6FF, var(--sky)); color: #fff;
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .02em;
  box-shadow: 0 3px 0 var(--sky-d);
}
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; color: var(--ink); }
.icon-btn:active { background: var(--sky-l); }

main { max-width: 560px; margin: 0 auto; padding: 2px 16px calc(env(safe-area-inset-bottom) + 36px); }
.screen { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 카드·버튼 */
.card { background: var(--card); border-radius: var(--r); padding: 18px; margin: 14px 0; box-shadow: var(--shadow); }
.card.soft { background: var(--sky-l); box-shadow: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 52px; padding: 0 20px;
  border-radius: 16px; border: 0; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; user-select: none;
  transition: transform .08s, box-shadow .08s;
}
.btn.primary { background: var(--sky); color: #fff; box-shadow: 0 5px 0 var(--sky-d); }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sky-d); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 0 0 2px var(--line) inset, 0 4px 0 var(--line); }
.btn.ghost:active { transform: translateY(2px); box-shadow: 0 0 0 2px var(--line) inset, 0 2px 0 var(--line); }
.btn.ghost-dark { background: rgba(255,255,255,.1); color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.18) inset; }
.btn.danger { background: transparent; color: var(--danger); box-shadow: 0 0 0 2px #F6C9CB inset; margin-top: 14px; }
.btn.wide { width: 100%; margin-top: 12px; }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; color: var(--sky-d); font-weight: 800; padding: 8px 4px; cursor: pointer; font-size: 15px; }
.link.light { color: rgba(255,255,255,.55); }
.row { display: flex; gap: 10px; align-items: center; }
.row > .btn { flex: 1; }
.col { display: flex; flex-direction: column; gap: 4px; }
.input { width: 100%; min-height: 50px; border-radius: 14px; border: 2px solid var(--line); background: #fff; padding: 0 14px; font-size: 16px; }
.input:focus { outline: none; border-color: var(--sky); }
.input.big { font-size: 24px; text-align: center; letter-spacing: .3em; margin: 16px 0 4px; }
.err { color: var(--danger); margin-top: 10px; font-weight: 700; }

/* 비밀번호 */
.pin-card { background: #fff; border-radius: 28px; padding: 30px 22px 24px; margin-top: 10vh; text-align: center; box-shadow: var(--shadow); }
.emoji-row { font-size: 40px; display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }
.emoji-row span { animation: bob 2.4s ease-in-out infinite; }
.emoji-row span:nth-child(2) { animation-delay: .3s; } .emoji-row span:nth-child(3) { animation-delay: .6s; } .emoji-row span:nth-child(4) { animation-delay: .9s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* 처음 화면 */
.hero {
  position: relative; overflow: hidden; border-radius: 30px; padding: 26px 22px 24px; margin-top: 6px; min-height: 236px;
  background: linear-gradient(165deg, #6CC0FF 0%, #2F9BFF 70%); color: #fff; box-shadow: 0 12px 28px rgba(47,155,255,.32);
}
.hero .eyebrow { font-weight: 800; opacity: .92; margin: 0 0 4px; position: relative; }
.hero h1 { font-size: 31px; line-height: 1.22; margin: 0; position: relative; text-shadow: 0 2px 0 rgba(26,127,224,.35); }
.cloud { position: absolute; background: rgba(255,255,255,.28); border-radius: 99px; }
.cloud.c1 { width: 120px; height: 38px; right: -20px; top: 22px; }
.cloud.c2 { width: 90px; height: 30px; left: 46%; bottom: 12px; }
.float-emoji { position: absolute; right: 8px; top: 64px; width: 150px; height: 150px; }
.fe { position: absolute; font-size: 36px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); animation: bob 3s ease-in-out infinite; }
.f1 { left: 52px; top: 0; font-size: 46px; } .f2 { left: 0; top: 46px; animation-delay: .5s; } .f3 { left: 98px; top: 58px; animation-delay: 1s; }
.f4 { left: 40px; top: 96px; animation-delay: 1.5s; } .f5 { left: 104px; top: 4px; font-size: 28px; animation-delay: 2s; }
.hero-bubbles { position: relative; margin-top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hb { display: inline-block; padding: 8px 14px; border-radius: 18px; font-weight: 800; font-size: 15px; box-shadow: 0 4px 0 rgba(0,0,0,.08); }
.hb.ko { background: #fff; color: var(--ink); border-bottom-left-radius: 6px; }
.hb.en { background: var(--sun); color: #5A3E00; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 17px; margin-left: 26px; border-bottom-left-radius: 6px; }

.banner { display: flex; flex-direction: column; gap: 10px; background: var(--sun-l); border-radius: 20px; padding: 14px 16px; margin: 14px 0 0; }

.rec-start { text-align: center; padding: 26px 0 6px; }
.rec-btn {
  position: relative; width: 132px; height: 132px; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #FF9A7F, var(--coral) 60%); display: inline-grid; place-items: center;
  box-shadow: 0 8px 0 var(--coral-d), 0 16px 30px rgba(255,122,89,.35); transition: transform .08s, box-shadow .08s;
}
.rec-btn:active { transform: translateY(5px); box-shadow: 0 3px 0 var(--coral-d), 0 8px 18px rgba(255,122,89,.3); }
.rec-btn svg { position: relative; z-index: 1; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--coral); opacity: 0; animation: ring 2.4s ease-out infinite; }
.ring.r2 { animation-delay: 1.2s; }
@keyframes ring { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.5); opacity: 0; } }
.rec-label { font-size: 26px; margin: 20px 0 0; color: var(--ink); }
.rec-limit { display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 99px; background: var(--coral-l); color: var(--coral-d); font-weight: 800; font-size: 13px; }

.how { list-style: none; padding: 0; margin: 20px 0 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.how li { border-radius: 20px; padding: 14px 8px 12px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.how .h1 { background: var(--sky-l); } .how .h2 { background: var(--sun-l); } .how .h3 { background: var(--mint-l); }
.how .he { font-size: 30px; line-height: 1.2; }
.how b { font-size: 14px; }
.how span:last-child { font-size: 12px; color: var(--muted); line-height: 1.35; }
.file-btn { cursor: pointer; margin-top: 14px; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 6px; }
.section-head h1, .section-head h2 { margin: 0; }
.list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.sess-card {
  display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; background: #fff; border: 0;
  border-radius: 22px; padding: 12px 14px 12px 12px; cursor: pointer; box-shadow: var(--shadow);
}
.sess-card:active { transform: scale(.99); }
.sess-card .d {
  flex: 0 0 64px; height: 64px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--sky-l); line-height: 1.05;
}
.sess-card .d .em { font-size: 30px; }
.sess-card .d .dt { font-size: 11px; font-weight: 800; color: var(--muted); margin-top: 3px; }
.sess-card:nth-child(5n+2) .d { background: var(--sun-l); }
.sess-card:nth-child(5n+3) .d { background: var(--mint-l); }
.sess-card:nth-child(5n+4) .d { background: var(--pink-l); }
.sess-card:nth-child(5n+5) .d { background: var(--grape-l); }
.sess-card .t { font-family: "Jua", sans-serif; font-size: 18px; line-height: 1.3; }
.sess-card .s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.badge { display: inline-block; font-family: "Pretendard Variable", sans-serif; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--sky-l); color: var(--sky-d); margin-left: 4px; vertical-align: 2px; }
.badge.warn { background: var(--coral-l); color: var(--coral-d); }
.empty { text-align: center; padding: 22px 10px; color: var(--muted); }
.empty-emoji { font-size: 48px; margin-bottom: 6px; animation: bob 2.6s ease-in-out infinite; }
.install-hint { margin-top: 20px; }

/* 녹음 화면(밤하늘) */
.screen.dark { position: fixed; inset: 0; z-index: 20; background: radial-gradient(circle at 50% 0%, #2A3E6E, #121B33 70%); color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.screen.dark.dim { background: #000; }
.screen.dark.dim .rec-wrap, .screen.dark.dim .star { opacity: .22; }
.screen.dark.dim .rec-wrap { pointer-events: none; }
.star { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #FFE9A8; box-shadow: 0 0 10px #FFE9A8; animation: twinkle 2.8s ease-in-out infinite; }
.s1 { left: 12%; top: 14%; } .s2 { left: 82%; top: 10%; animation-delay: .7s; } .s3 { left: 70%; top: 30%; width: 4px; height: 4px; animation-delay: 1.4s; }
.s4 { left: 20%; top: 36%; width: 4px; height: 4px; animation-delay: 2.1s; } .s5 { left: 50%; top: 7%; animation-delay: 1s; }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.7); } }
.rec-wrap { position: relative; width: 100%; max-width: 420px; padding: 24px 20px calc(env(safe-area-inset-bottom) + 24px); text-align: center; transition: opacity .3s; }
.rec-ear { font-size: 46px; animation: bob 2.4s ease-in-out infinite; }
.rec-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #FFB59C; margin-top: 6px; }
.rec-state.paused { color: #C9C2BB; }
.live { width: 10px; height: 10px; border-radius: 50%; background: #FF6B4A; animation: blink 1.2s infinite; }
.rec-state.paused .live { animation: none; background: #8a837c; }
@keyframes blink { 50% { opacity: .25; } }
.timer { font-family: "Fredoka", sans-serif; font-size: 82px; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; margin: 4px 0 0; line-height: 1.1; }
.timer-sub { color: rgba(255,255,255,.55); margin-bottom: 24px; }
.meter { height: 14px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.meter-bar { height: 100%; width: 0; background: linear-gradient(90deg, #5DE0C5, #FFD66B, #FF8A6B); transition: width .1s linear; border-radius: 99px; }
.meter-hint { color: rgba(255,255,255,.65); font-size: 14px; margin: 8px 0 26px; min-height: 22px; }
.rec-actions { display: flex; gap: 10px; }
.rec-actions .btn { flex: 1; min-height: 60px; font-size: 18px; }
.rec-actions .btn.primary { background: var(--coral); box-shadow: 0 5px 0 var(--coral-d); }
.rec-note { color: rgba(255,255,255,.55); font-size: 14px; margin-top: 22px; }

/* 만드는 중 */
.proc-head { text-align: center; padding: 18px 6px 0; }
.proc-emoji { display: flex; justify-content: center; gap: 12px; font-size: 38px; margin-bottom: 8px; }
.proc-emoji span { animation: hop 1.6s ease-in-out infinite; }
.proc-emoji span:nth-child(2) { animation-delay: .2s; } .proc-emoji span:nth-child(3) { animation-delay: .4s; } .proc-emoji span:nth-child(4) { animation-delay: .6s; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-12px); } }
.proc-head h2 { font-size: 24px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 11px 0; border-top: 2px dashed var(--line); align-items: start; }
.steps li:first-child { border-top: 0; }
.steps .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-size: 15px; font-weight: 900; color: #fff; }
.steps li.on .ic { background: var(--sky); animation: pulse 1s ease-in-out infinite; }
.steps li.on .ic::after { content: "…"; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.steps li.ok .ic { background: var(--mint); }
.steps li.ok .ic::after { content: "✓"; }
.steps li.bad .ic { background: var(--danger); }
.steps li.bad .ic::after { content: "!"; }
.steps .nm { font-weight: 800; padding-top: 4px; }
.steps li:not(.on):not(.ok):not(.bad) .nm { color: var(--muted); font-weight: 600; }
.steps .pg { height: 10px; border-radius: 99px; background: var(--sky-l); margin-top: 7px; overflow: hidden; }
.steps .pg > div { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--sky), #6CC0FF); transition: width .3s; }
.steps .dt { font-size: 13px; color: var(--muted); }
.err-box { margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--coral-l); }
.progress { height: 12px; border-radius: 99px; background: var(--sky-l); overflow: hidden; margin: 12px 0; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--sky), var(--mint)); transition: width .2s linear; border-radius: 99px; }

/* 수업 보기 */
.sess-head { padding: 8px 2px 0; }
.sess-date { display: inline-block; padding: 3px 12px; border-radius: 99px; background: var(--sun-l); color: #8A6200; font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.sess-head h1 { font-size: 27px; margin-bottom: 4px; }
.tabs { display: flex; gap: 4px; background: #fff; padding: 5px; border-radius: 18px; margin: 10px 0 14px; position: sticky; top: calc(env(safe-area-inset-top) + 62px); z-index: 4; box-shadow: var(--shadow); }
.tab { flex: 1; min-height: 44px; border: 0; border-radius: 14px; background: transparent; font-weight: 800; color: var(--muted); cursor: pointer; font-size: 15px; }
.tab.on { background: var(--sky); color: #fff; box-shadow: 0 3px 0 var(--sky-d); }
.stage { display: flex; justify-content: center; }
.stage canvas { width: auto; height: min(56vh, 640px); max-width: 100%; aspect-ratio: 9 / 16; border-radius: 26px; background: #fff; box-shadow: 0 14px 30px rgba(31,42,68,.16); }
.small-stage canvas { height: min(36vh, 380px); margin: 6px 0 10px; }
.player { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 18px 0 8px; }
.round-btn { width: 54px; height: 54px; border-radius: 50%; border: 0; background: #fff; color: var(--sky-d); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 2px var(--line) inset, 0 4px 0 var(--line); }
.round-btn:active { transform: translateY(2px); box-shadow: 0 0 0 2px var(--line) inset, 0 2px 0 var(--line); }
.round-btn:disabled { opacity: .35; }
.play-btn { width: 78px; height: 78px; border-radius: 50%; border: 0; background: var(--sky); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 0 var(--sky-d), 0 12px 24px rgba(47,155,255,.35); }
.play-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--sky-d); }
.play-btn .i-pause { display: none; }
.play-btn.playing .i-play { display: none; }
.play-btn.playing .i-pause { display: block; }
.player-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 4px; }
.chip { min-height: 42px; padding: 0 15px; border-radius: 99px; border: 0; font-weight: 800; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip.c-sky { background: var(--sky-l); color: var(--sky-d); }
.chip.c-mint { background: var(--mint-l); color: var(--mint-d); }
.chip.c-sun { background: var(--sun-l); color: #8A6200; }
.chip.toggle input { width: 18px; height: 18px; accent-color: var(--sky); }

/* 전체 대화(말풍선) */
.talk { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ln { background: #fff; border-radius: 22px; border-top-left-radius: 8px; padding: 12px 15px; box-shadow: var(--shadow); margin-right: 24px; }
.ln.child { background: var(--sun-l); box-shadow: none; margin: 0 0 0 24px; border-radius: 22px; border-top-right-radius: 8px; }
.ln.other { opacity: .7; }
.ln.skip { opacity: .45; }
.ln .who { font-size: 12px; font-weight: 900; color: var(--sky-d); margin-bottom: 2px; }
.ln.child .who { color: #A06A00; }
.ln .ko { color: var(--muted); font-size: 15px; }
.ln .en { font-family: "Fredoka", sans-serif; font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-top: 2px; }
.ln .say { font-size: 14px; color: var(--muted); }
.ln .alt { font-size: 14px; margin-top: 4px; }
.ln .alt b { font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--sky-d); }
.ln .acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mini { min-height: 36px; padding: 0 13px; border-radius: 99px; border: 0; background: var(--sky-l); color: var(--sky-d); font-size: 13px; font-weight: 800; cursor: pointer; }
.ln.child .mini { background: #fff; color: #A06A00; }
.spk-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.spk-row .nm { flex: 1; font-weight: 800; }
.spk-row select { width: auto; min-height: 42px; }
.spk-row .ex { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

/* 정보·비용 */
.info { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 6px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; font-weight: 800; }
#cost-box h3 { margin-top: 18px; }
.cost { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 10px; }
.cost th { text-align: left; color: var(--muted); font-weight: 700; padding: 6px 4px; border-bottom: 2px solid var(--line); }
.cost td { padding: 9px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.cost td small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.cost .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost tfoot td { border-bottom: 0; font-size: 15px; padding-top: 10px; }
#video-el { width: 100%; max-height: 60vh; border-radius: 18px; background: #000; margin: 10px 0; }

/* 표현 모음 */
.ph { background: #fff; border-radius: 22px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.ph .em { flex: 0 0 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--sky-l); }
.ph:nth-child(5n+2) .em { background: var(--sun-l); } .ph:nth-child(5n+3) .em { background: var(--mint-l); }
.ph:nth-child(5n+4) .em { background: var(--pink-l); } .ph:nth-child(5n+5) .em { background: var(--grape-l); }
.ph .tx { flex: 1; min-width: 0; }
.ph .sit { font-size: 12px; color: var(--coral-d); font-weight: 900; }
.ph .ko { color: var(--muted); font-size: 14px; }
.ph .en { font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--ink); font-size: 20px; line-height: 1.25; }
.ph .say { font-size: 13px; color: var(--muted); }
.speak { flex: 0 0 46px; height: 46px; border-radius: 50%; border: 0; background: var(--sky); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 0 var(--sky-d); }

/* 설정 */
.field { display: block; margin: 12px 0; }
.field > span { display: block; font-weight: 800; margin-bottom: 6px; }
.seg { display: flex; background: var(--sky-l); border-radius: 15px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 12px; background: transparent; font-weight: 800; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--sky-d); box-shadow: 0 3px 0 var(--line); }

/* 복습 놀이 */
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(18, 27, 51, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.quiz-card { width: 100%; max-width: 420px; background: #fff; border-radius: 30px; padding: 22px 20px 16px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.qz-count { display: inline-block; padding: 3px 12px; border-radius: 99px; background: var(--sky-l); color: var(--sky-d); font-weight: 900; font-size: 13px; }
.qz-emoji { font-size: 64px; margin: 6px 0 0; animation: bob 2.4s ease-in-out infinite; }
.qz-sit { color: var(--coral-d); font-weight: 900; margin-top: 2px; }
.qz-ko { font-size: 27px; margin: 6px 0 16px; }
.qz-ans { padding: 14px; border-radius: 20px; background: var(--sun-l); margin-bottom: 14px; }
.qz-en { font-family: "Fredoka", sans-serif; font-size: 31px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.qz-say { color: var(--muted); margin-top: 4px; }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); transform: translateX(-50%); z-index: 40; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 700; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.nosleep { position: fixed; left: 0; bottom: 0; width: 2px; height: 2px; opacity: .01; pointer-events: none; }
