@charset "UTF-8";
:root{--paper:#FDE7D6;--ink:#33373A;--muted:#33373A;--line:#33373A;--orange:#EE8546;--orange-soft:#F7C9A8;--teal:#33373A;--teal-soft:#F7C9A8;--white:#FFFFFF;--radius:22px;--apricot:#FDE7D6;--apricot-deep:#F7C9A8;--cream:#F0F0D8;--beige:#D8CCB4;font-family:"Sunflower","Malgun Gothic","맑은 고딕",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}a{color:var(--teal)}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:4px solid #33373A;outline-offset:4px}button{touch-action:manipulation}h1,h2,h3,p{margin:0}button,select{min-height:52px}button{border:1px solid var(--line);border-radius:14px;background:var(--white);padding:12px 20px;font-size:20px;font-weight:700;transition:background .12s,transform .12s}button:hover:not(:disabled){background:#F7C9A8}button:active:not(:disabled){transform:translateY(1px)}.primary{background:var(--orange);border-color:var(--orange);color:white}.primary:hover:not(:disabled){background:#33373A}.secondary{background:var(--teal);border-color:var(--teal);color:white}.secondary:hover:not(:disabled){background:#F7C9A8}.ghost{border-color:transparent;background:transparent}.danger{color:#33373A;border-color:#33373A}.brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:-.7px;font-size:23px}.brand-mark{display:inline-flex;width:46px;height:46px;align-items:center;justify-content:center;border-radius:15px;background:var(--orange);color:white;font-weight:900;font-size:31px;transform:rotate(-7deg)}.header{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1500px;margin:0 auto;padding:28px 40px}.header-tools{display:flex;align-items:center;gap:12px}.saved{font-size:14px;color:var(--muted);max-width:220px}.saved::before{content:'●';color:var(--teal);font-size:10px;margin-right:6px}.saved.error{color:#33373A}.saved.error::before{color:#33373A}.content{max-width:1380px;margin:0 auto;padding:34px 40px 60px}.eyebrow{font-size:16px;font-weight:800;color:var(--teal);letter-spacing:.5px}.hero{display:grid;grid-template-columns:1.3fr .7fr;align-items:center;gap:40px;margin:24px 0 48px}.hero h1{font-size:clamp(42px,4.6vw,72px);line-height:1.25;letter-spacing:-3px;margin:16px 0 20px}.hero p{font-size:21px;line-height:1.75;color:var(--muted)}.progress-note{border-top:2px solid var(--ink);border-bottom:1px solid var(--line);padding:24px 0;align-self:end}.progress-big{font-size:55px;font-weight:900;letter-spacing:-2px}.progress-big small{font-size:24px;color:var(--muted);font-weight:500}.progress-label{margin:8px 0 16px;color:var(--muted);font-size:18px}.progress-track{height:8px;background:#F7C9A8;border-radius:99px;overflow:hidden}.progress-track i{display:block;height:100%;background:var(--teal);border-radius:99px}.start-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.start-card{position:relative;text-align:left;min-height:235px;padding:30px;border-radius:var(--radius);overflow:hidden;background:var(--white)}.start-card:hover:not(:disabled){background:#fff}.start-card .number{display:block;font-size:16px;color:var(--orange);font-weight:900;margin-bottom:28px}.start-card strong{display:block;font-size:33px;margin-bottom:12px;letter-spacing:-1px}.start-card p{font-size:19px;line-height:1.6;font-weight:400;color:var(--muted);max-width:80%}.card-arrow{position:absolute;right:30px;bottom:28px;font-size:38px;color:var(--orange)}.start-card.grade .number,.start-card.grade .card-arrow{color:var(--teal)}.resume{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px;border:1px solid #33373A;border-radius:var(--radius);background:var(--teal-soft);padding:22px 28px}.resume p{color:var(--muted);font-size:17px;margin-top:6px}.resume strong{font-size:23px}.resume.empty{background:transparent;border-color:var(--line)}.footer-note{margin:24px 0 0;font-size:15px;line-height:1.7;color:var(--muted)}.page-title{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:30px}.page-title h1{font-size:42px;letter-spacing:-1.8px;line-height:1.3}.page-title p{font-size:19px;color:var(--muted);margin-top:12px;line-height:1.6}.section-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.section-card{display:flex;flex-direction:column;gap:16px;text-align:left;padding:23px;min-height:222px;border-radius:20px}.section-top{display:flex;align-items:center;justify-content:space-between}.section-index{font-size:30px;font-weight:900;letter-spacing:-1px}.badge{font-size:13px;font-weight:700;background:#FDE7D6;border-radius:99px;padding:6px 10px;white-space:nowrap}.badge.done{background:var(--teal-soft);color:var(--teal)}.section-card p{font-size:14px;color:var(--muted);line-height:1.7;font-weight:400}.section-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto;font-size:16px}.section-card .progress-track{height:5px}.filter-panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:36px;max-width:1050px}.field-title{font-size:22px;font-weight:800;margin-bottom:16px}.segments{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:34px}.segments button{min-width:130px;min-height:65px;font-size:24px}.segments button.selected{background:var(--teal);color:white;border-color:var(--teal)}.filter-result{border-top:1px solid var(--line);padding-top:30px;display:flex;align-items:center;justify-content:space-between;gap:20px}.filter-result strong{font-size:35px}.filter-result p{font-size:18px;line-height:1.6;color:var(--muted);margin-top:10px}.filter-actions{display:flex;flex-direction:column;gap:12px;min-width:235px}.warning{max-width:1420px;margin:8px auto;padding:18px 24px;background:#FFFFFF;border:1px solid #33373A;border-radius:14px;font-size:16px;line-height:1.6;display:flex;align-items:center;gap:20px;justify-content:space-between}.warning button{font-size:16px}.player{height:100dvh;min-height:500px;display:flex;flex-direction:column;padding:18px 24px;background:#FDE7D6;gap:12px}.player-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.player-title{display:flex;align-items:center;gap:16px}.player-title strong{font-size:26px;letter-spacing:-.8px}.player-title span{font-size:17px;color:var(--muted)}.player-tools{display:flex;align-items:center;gap:8px}.player-tools button{font-size:17px;padding:10px 16px}.player .warning{margin:0;font-size:14px;padding:8px 16px}.picture-stage{position:relative;flex:1;min-height:0;border-radius:20px;border:1px solid var(--line);background:white;overflow:hidden;display:flex;align-items:center;justify-content:center}.picture-stage img{width:100%;height:100%;object-fit:contain;display:block}.image-failure{position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:var(--white);gap:20px;font-size:26px;padding:30px}.reveal{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:14px 24px;flex-shrink:0}.answer-text{font-size:clamp(38px,4.5vw,64px);font-weight:900;line-height:1.2;text-align:center;letter-spacing:-1.5px;color:var(--orange)}.solution-text{font-size:clamp(23px,2.2vw,32px);line-height:1.55;margin-top:12px;border-top:1px solid var(--line);padding-top:12px;max-height:28dvh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.player-controls{display:flex;align-items:center;gap:12px;justify-content:center;flex-wrap:wrap;flex-shrink:0}.player-controls button{font-size:22px;min-height:58px;min-width:118px}.player-controls .primary{min-width:160px}.player-hint{text-align:center;color:var(--muted);font-size:12px;line-height:1.4}.summary-box{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:42px;text-align:center;max-width:850px;margin:36px auto}.summary-box h1{font-size:42px;letter-spacing:-1.7px}.summary-box .progress-big{margin:28px 0 10px}.summary-box p{font-size:20px;line-height:1.7;color:var(--muted)}.actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:30px}.manage-section{margin-bottom:28px;border:1px solid var(--line);background:var(--white);border-radius:18px;padding:24px}.manage-section h2{font-size:23px;margin-bottom:18px}.manage-items{display:flex;flex-wrap:wrap;gap:10px}.progress-toggle{min-width:150px;text-align:left;font-size:17px}.progress-toggle.completed{border-color:#33373A;background:var(--teal-soft);color:var(--teal)}.help{max-width:980px}.help h2{font-size:25px;margin:28px 0 12px}.help p,.help li{font-size:20px;line-height:1.8;color:var(--muted)}.help table{border-collapse:collapse;width:100%;font-size:20px}.help td,.help th{padding:13px;border-bottom:1px solid var(--line);text-align:left}.help kbd{font-family:inherit;font-weight:800;color:var(--ink)}dialog{border:0;border-radius:24px;padding:32px;max-width:650px;width:calc(100% - 40px);color:var(--ink);background:var(--white);box-shadow:0 20px 90px #0003}dialog::backdrop{background:#33373Ab3}dialog h2{font-size:28px;letter-spacing:-1px;margin-bottom:16px}dialog p{font-size:20px;line-height:1.8;color:var(--muted)}dialog .actions{justify-content:flex-end}.zoom-dialog{width:calc(100vw - 32px);max-width:none;height:calc(100dvh - 32px);padding:16px}.zoom-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.zoom-top h2{margin:0;font-size:22px}.zoom-top .actions{margin:0}.zoom-body{height:calc(100% - 75px);margin-top:14px;overflow:auto;background:#FDE7D6;border-radius:14px}.zoom-inner{height:100%;min-width:100%;display:flex;justify-content:center;align-items:center}.zoom-inner img{display:block;width:100%;height:100%;object-fit:contain}.zoom-inner.large{height:200%;width:200%;display:block}.zoom-inner.large img{object-fit:contain;width:100%;height:100%}#notice{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);max-width:90vw;background:var(--ink);color:white;border-radius:14px;padding:14px 24px;font-size:18px;z-index:100;pointer-events:none;opacity:0;transition:opacity .15s}#notice.active{opacity:1}.loading{height:100dvh;display:grid;place-content:center;text-align:center;gap:22px}.loading .brand-mark{margin:0 auto}.loading h1{font-size:36px}.loading p{font-size:20px;color:var(--muted)}[hidden]{display:none!important}body:has(.player) .header{display:none}
@media(min-width:1600px){.player{padding:22px 38px;gap:15px}.player-top{padding-bottom:3px}.player-controls button{min-height:68px;font-size:25px}.player-title strong{font-size:32px}.player-hint{font-size:14px}}
@media(max-width:1050px){.section-grid{grid-template-columns:repeat(3,1fr)}.hero{grid-template-columns:1fr .5fr}.content{padding:26px}.header{padding:22px 26px}.player{padding:12px;gap:8px}.player-controls{gap:7px}.player-controls button{font-size:18px;min-width:98px;padding:10px 14px}.player-title strong{font-size:22px}.player-tools .saved{display:none}}
@media(max-width:740px){.header{padding:18px}.header-tools button{font-size:15px;padding:9px}.header-tools .saved{display:none}.content{padding:22px 18px}.hero{display:block;margin:8px 0 25px}.hero h1{font-size:42px;letter-spacing:-2px}.hero p{font-size:18px}.progress-note{margin-top:25px;padding:15px 0}.progress-big{font-size:40px}.start-grid{grid-template-columns:1fr}.start-card{min-height:190px;padding:25px}.start-card strong{font-size:29px}.start-card .number{margin-bottom:16px}.resume{align-items:start;padding:20px;flex-direction:column}.section-grid{grid-template-columns:repeat(2,1fr);gap:12px}.section-card{padding:18px;min-height:220px}.section-index{font-size:24px}.page-title h1{font-size:34px}.filter-panel{padding:23px}.segments button{min-width:90px;font-size:20px;padding:12px}.filter-result{display:block}.filter-actions{margin-top:22px}.player-top{align-items:start}.player-title{display:block}.player-title strong{display:block}.player-title span{font-size:14px}.player-tools button{padding:8px 10px;font-size:14px;min-height:44px}.player-controls button{font-size:16px;min-width:85px;min-height:50px;padding:9px 12px}.player-controls .primary{min-width:120px}.player{min-height:540px}.answer-text{font-size:36px}.solution-text{font-size:21px}.reveal{padding:12px}.player-hint{display:none}.summary-box{padding:26px}.summary-box h1{font-size:32px}.warning{margin:6px 12px;display:block}.warning button{margin-top:8px}.zoom-top{align-items:start}.zoom-top .actions{gap:8px}.zoom-top button{font-size:15px;padding:8px;min-height:44px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* ── 너도양 층 v001: 색은 05 너도양 1.0.0의 일곱 색만, 깊이는 숯색 단색 오프셋만 ── */
@font-face{font-family:"Sunflower";src:url("../fonts/Sunflower-Medium.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Sunflower";src:url("../fonts/Sunflower-Bold.woff2") format("woff2");font-weight:700;font-display:swap}
:root{--edge:2.5px solid var(--ink);--lift:0 3px 0 var(--ink);--lift-card:0 4px 0 var(--ink)}
body{background:var(--apricot);word-break:keep-all;font-weight:500;letter-spacing:-.015em}
h1,h2,h3,strong,button,.brand,.eyebrow,.progress-big,.section-index{font-weight:700}
h1,h2,.brand,.hero h1,.page-title h1,.summary-box h1,dialog h2{letter-spacing:-.03em}
button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:4px solid var(--ink);outline-offset:4px}
a{color:var(--ink);text-decoration-color:var(--orange);text-decoration-thickness:2px;text-underline-offset:3px}

/* 버튼: 흰 면 + 숯색 윤곽 + 스티커 두께 */
button{border:var(--edge);background:var(--white);box-shadow:var(--lift)}
button:hover:not(:disabled){background:var(--apricot-deep)}
button:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}
button:disabled{opacity:1;background:transparent;border:2.5px dashed var(--beige);box-shadow:none;color:var(--ink)}
.primary{background:var(--ink);border-color:var(--ink);color:var(--cream)}
.primary:hover:not(:disabled){background:var(--ink);box-shadow:0 4px 0 var(--orange)}
.secondary{background:var(--apricot-deep);border-color:var(--ink);color:var(--ink)}
.secondary:hover:not(:disabled){background:var(--white)}
.ghost{border-color:transparent;background:transparent;box-shadow:none}
.ghost:hover:not(:disabled){background:var(--apricot-deep)}
.danger{color:var(--ink);border-style:dashed}

/* 머리: 「?」 자리에 로고 심벌(48px 아래 금지) */
.brand-mark{display:block;width:64px;height:auto;background:none;border-radius:0;transform:none}
.loading .brand-mark{width:120px}
.saved::before{color:var(--orange)}

/* 머리말 = 이름표(흰 카드 + 주황 테두리 + 주황 고리) */
.hero .eyebrow,.page-title .eyebrow,.summary-box .eyebrow{display:inline-flex;align-items:center;gap:10px;background:var(--white);border:3px solid var(--orange);border-radius:14px;padding:6px 16px 6px 12px;font-size:17px;letter-spacing:0;color:var(--ink)}
.hero .eyebrow::before,.page-title .eyebrow::before,.summary-box .eyebrow::before{content:"";width:12px;height:12px;border:3.5px solid var(--orange);border-radius:50%;flex:none}
.eyebrow{color:var(--ink)}

/* 첫 화면 */
.hero{align-items:end}
.hero p{color:var(--ink)}
.hero-side{display:flex;flex-direction:column;gap:10px;align-self:end}
.progress-note{border-top:3px solid var(--ink);border-bottom:0;padding:18px 0 0}
.progress-big small{color:var(--ink)}
.progress-track{background:var(--apricot-deep)}
.progress-track i{background:var(--orange)}
.start-card{background:var(--white);border:var(--edge);box-shadow:none}
.start-card:hover:not(:disabled){background:var(--white);border-color:var(--orange)}
.start-card .number,.start-card.grade .number,.card-arrow,.start-card.grade .card-arrow{color:var(--ink)}
.start-card .number{text-decoration:underline;text-decoration-color:var(--orange);text-decoration-thickness:3px;text-underline-offset:6px}
.start-card p{color:var(--ink)}
.resume{background:var(--apricot-deep);border:var(--edge)}
.resume p,.footer-note,.page-title p{color:var(--ink)}
.resume.empty{background:transparent;border:2.5px dashed var(--beige)}

/* 두 캐릭터 + 말풍선 하나 (05 견본 배치: 선생님 양 왼쪽, 아기 양 오른쪽에서 올려다봄). 오른쪽 기준으로 놓아 좁은 칸에서도 말풍선이 넘치지 않게 */
.sheep-pair{position:relative;height:250px;max-width:400px;width:100%;margin-left:auto;pointer-events:none}
.sheep-pair::after{content:"";position:absolute;left:0;right:0;bottom:0;height:24px;background:var(--apricot-deep);border-radius:12px}
.sheep-pair img{position:absolute;bottom:12px;width:auto;z-index:1}
.sheep-pair .teacher{height:236px;right:178px}
.sheep-pair .lamb{height:88px;right:66px}
.bubble{position:absolute;z-index:2;margin:0;background:var(--white);border:3px solid var(--orange);border-radius:18px;padding:9px 16px;font-size:19px;font-weight:700;line-height:1.3;white-space:nowrap;color:var(--ink)}
.bubble::after{content:"";position:absolute;width:14px;height:14px;background:var(--white);border-right:3px solid var(--orange);border-bottom:3px solid var(--orange)}
.bubble.from-lamb{right:0;bottom:122px}
.bubble.from-lamb::after{right:80px;bottom:-10px;transform:rotate(45deg)}
.bubble.from-teacher{left:calc(100% - 172px);bottom:182px}
.bubble.from-teacher::after{left:-10px;bottom:14px;transform:rotate(135deg)}
.summary-box .sheep-pair{margin:30px auto 0}
@media(max-height:820px) and (min-width:741px){
  .hero{margin:8px 0 26px}.hero h1{font-size:clamp(40px,4.2vw,60px);margin:12px 0 14px}
  .progress-note{padding-top:12px}.progress-big{font-size:46px}.progress-label{margin:4px 0 10px}
  .sheep-pair{height:196px}.sheep-pair .teacher{height:182px;right:150px}.sheep-pair .lamb{height:68px;right:58px}
  .bubble{font-size:17px;padding:7px 13px}.bubble.from-lamb{bottom:96px}.bubble.from-lamb::after{right:66px}
  .bubble.from-teacher{left:calc(100% - 144px);bottom:140px}
}

/* 섹션 = 이름표 */
.section-card{background:var(--white);border:3px solid var(--orange);box-shadow:none;border-radius:18px}
.section-card:hover:not(:disabled){background:var(--white);border-color:var(--ink)}
.section-index{display:flex;align-items:center;gap:10px}
.section-index::before{content:"";width:14px;height:14px;border:4px solid var(--orange);border-radius:50%;flex:none}
.section-card p{color:var(--ink)}
.badge{background:var(--apricot);border:1.5px solid var(--ink);color:var(--ink)}
.badge.done{background:var(--ink);color:var(--cream)}

/* 학년군 고르기 */
.filter-panel{border:var(--edge);box-shadow:none}
.segments button.selected{background:var(--ink);color:var(--cream);border-color:var(--ink)}
.filter-result{border-top:2.5px solid var(--apricot-deep)}
.filter-result p{color:var(--ink)}
.warning{background:var(--white);border:3px solid var(--orange)}

/* 문제 화면 */
.player{background:var(--apricot)}
.player-title span{color:var(--ink)}
.picture-stage{border:3px solid var(--ink);background:var(--white)}
.image-failure{background:var(--white)}
.reveal{border:var(--edge)}
.answer-text{color:var(--ink);font-weight:700;text-decoration:underline;text-decoration-color:var(--orange);text-decoration-thickness:.1em;text-underline-offset:.16em;text-decoration-skip-ink:none}
.solution-text{border-top:2.5px solid var(--apricot-deep)}
.player-hint{color:var(--ink)}

/* 끝·관리·도움말·대화창 */
.summary-box{border:var(--edge);box-shadow:none}
.summary-box p{color:var(--ink)}
.manage-section{border:var(--edge)}
.progress-toggle.completed{background:var(--apricot-deep);border-color:var(--ink);color:var(--ink)}
.help p,.help li{color:var(--ink)}
.help td,.help th{border-bottom:2px solid var(--apricot-deep)}
dialog{border:var(--edge);box-shadow:0 6px 0 var(--ink)}
dialog p{color:var(--ink)}
.zoom-body{background:var(--apricot)}
#notice{background:var(--ink);color:var(--cream)}
.mode-select p{color:var(--ink)}

@media(max-width:740px){
  .sheep-pair{height:180px;max-width:320px;margin:14px auto 0}
  .sheep-pair .teacher{height:166px;right:128px}
  .sheep-pair .lamb{height:62px;right:46px}
  .bubble{font-size:16px;padding:7px 12px}
  .bubble.from-lamb{bottom:86px}.bubble.from-lamb::after{right:56px}
  .bubble.from-teacher{left:calc(100% - 142px);bottom:92px;white-space:normal;width:140px}
}
@media(max-width:740px){.header-tools button{white-space:nowrap}.start-card p{max-width:none}.start-card{padding-bottom:64px}}
@media(max-width:1050px){.start-card p{max-width:none}.start-card{padding-bottom:64px}}
