:root{--paper:#F8F5ED;--forest:#334D40;--ink:#26352C;--muted:#6b786f;--line:#dedfd4;--soft:#e7ebe1;--green:#36764f;--red:#a63f3a;--good:#e1eadf;--bad:#f1dedb;--pad:24px;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans CJK KR","Noto Sans KR",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--paper)}body{overscroll-behavior:none}button,input,select{font:inherit;color:inherit}button{border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #71967d;outline-offset:3px}button:active:not(:disabled){transform:scale(.985)}#app{min-height:100dvh;max-width:650px;margin:auto;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}.top{display:flex;align-items:center;justify-content:space-between;min-height:68px;padding:0 var(--pad);gap:12px;flex:none}.brand{font-size:30px;font-weight:750;letter-spacing:-2px;color:var(--forest)}.top-title{font-size:18px;font-weight:600;letter-spacing:-.4px}.iconbtn{display:grid;place-items:center;width:44px;height:44px;color:var(--muted);border-radius:50%;flex:none}.iconbtn:hover{background:var(--soft)}.icon{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.loading{display:grid;place-items:center;min-height:100dvh;font-size:40px;color:var(--forest);font-weight:700}.home{padding:34px var(--pad) 22px;flex:1}.eyebrow{color:var(--muted);font-size:13px;font-weight:500}.number{font-size:76px;font-weight:530;line-height:1.12;letter-spacing:-5px;color:var(--forest);font-variant-numeric:tabular-nums;margin:9px 0 4px}.sub{font-size:14px;color:var(--muted);line-height:1.5}.primary{width:100%;height:58px;display:flex;align-items:center;justify-content:center;gap:12px;background:var(--forest);color:white;border-radius:15px;font-size:17px;font-weight:600}.primary.start{margin:32px 0 25px;justify-content:space-between;padding:0 20px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:29px 0 8px;font-size:15px;font-weight:650}.row{display:flex;align-items:center;gap:12px;min-height:54px;width:100%;padding:8px 0;border-bottom:1px solid var(--line);text-align:left}.row:last-child{border-bottom:0}.row .grow{flex:1;min-width:0}.row .value{color:var(--muted);font-size:13px;flex:none}.row .icon{color:var(--muted);width:18px;height:18px}.small{font-size:12px;color:var(--muted);line-height:1.45}.nav{margin-top:auto;display:flex;justify-content:space-around;border-top:1px solid var(--line);padding:9px 14px 12px;background:var(--paper);flex:none}.nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:64px;min-height:51px;color:var(--muted);font-size:11px}.nav button.active{font-weight:650;color:var(--forest)}.nav button.active .icon{stroke-width:2.2}.progress{height:3px;background:var(--line);margin:0 var(--pad);border-radius:6px;overflow:hidden;flex:none}.progress span{height:100%;background:#83a58b;display:block;transition:width .12s linear}.quiz{min-height:100dvh;min-height:100svh;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom)}.quiz .top{height:64px}.counter{font-variant-numeric:tabular-nums;color:var(--muted);font-size:13px}.quiz-content{display:flex;flex:1;flex-direction:column;justify-content:center;padding:22px var(--pad) 28px;gap:26px;min-width:0}.prompt{min-height:124px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:12px}.prompt-word{font-size:38px;font-weight:540;line-height:1.33;letter-spacing:-1px;overflow-wrap:anywhere;word-break:keep-all;max-width:100%}.prompt-word.long{font-size:25px;line-height:1.5;letter-spacing:-.4px}.prompt-word.en{font-size:29px;letter-spacing:-.6px}.prompt .hint{font-size:15px;color:var(--muted);max-width:95%;line-height:1.5}.prompt img{width:min(180px,55vw);height:140px;object-fit:contain}.answers{display:grid;gap:11px}.option{background:transparent;border:1px solid #d9ddd2;border-radius:14px;min-height:66px;padding:13px 17px;font-size:18px;font-weight:500;line-height:1.42;display:flex;align-items:center;justify-content:center;text-align:center;overflow-wrap:anywhere;word-break:keep-all;min-width:0}.option.ko{font-size:23px}.option:hover{background:#eeeee5}.option:active{background:#e1e8db}.answers.images{grid-template-columns:1fr 1fr}.answers.images .option{height:138px;padding:9px}.option img{max-width:100%;height:100%;object-fit:contain}.quiz-footer{margin-top:auto;min-height:88px;border-top:1px solid var(--line);padding:13px var(--pad) 18px;display:flex;align-items:center;justify-content:center;gap:10px;flex:none}.feedback{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:48px;font-size:16px;font-weight:550;line-height:1.4;flex-wrap:wrap;animation:appear .12s ease-out}.feedback .answer-text{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 10px;max-width:calc(100% - 35px);overflow-wrap:anywhere;align-items:baseline}.feedback .meaning{font-size:13px;font-weight:400;color:var(--muted)}.feedback .wrong{text-decoration:line-through;color:#807570;font-size:14px;font-weight:400}.feedback.correct{color:var(--green)}.feedback.incorrect{color:var(--red)}.feedback .icon{width:20px;height:20px;flex:none}.quiz-footer .placeholder{color:var(--muted);font-size:12px}.page{padding:12px var(--pad) 24px;flex:1;min-width:0}.page h2{font-size:15px;margin:27px 0 8px;font-weight:650}.page h2:first-child{margin-top:12px}.segment{display:flex;gap:4px;background:var(--soft);padding:4px;border-radius:12px;margin:9px 0 19px}.segment button{flex:1;min-width:0;padding:11px 5px;border-radius:9px;color:var(--muted);font-size:13px;line-height:1.3}.segment button.on{background:var(--paper);color:var(--forest);font-weight:650}.select-mark{border:1px solid #b9c3b7;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;color:white;flex:none}.select-mark.on{background:var(--forest);border-color:var(--forest)}.select-mark .icon{width:14px;height:14px;color:#fff;stroke-width:2}.switch{width:45px;height:26px;border-radius:30px;background:#d5dbd0;position:relative;flex:none}.switch:after{content:'';width:20px;height:20px;top:3px;left:3px;border-radius:50%;background:#fff;position:absolute;transition:transform .15s}.switch.on{background:var(--forest)}.switch.on:after{transform:translateX(19px)}.search{display:flex;align-items:center;gap:8px;border-radius:12px;background:var(--soft);padding:0 12px;margin:10px 0 12px;min-height:46px}.search input{background:none;outline:none;border:none;min-width:0;flex:1;font-size:16px;padding:10px 0}.library-list .row{min-height:70px}.library-list .ko{font-size:20px;font-weight:550;line-height:1.4}.library-list .en{font-size:13px;color:var(--muted);overflow-wrap:anywhere}.thumb{width:48px;height:48px;border-radius:9px;display:grid;place-items:center;background:var(--soft);color:var(--muted);flex:none}.thumb img{width:100%;height:100%;object-fit:contain}.thumb .icon{width:21px;height:21px}.linkbtn{color:var(--forest);font-size:14px;font-weight:600;min-height:44px;padding:7px 0}.empty{color:var(--muted);text-align:center;padding:40px 8px}.notice{padding:10px 0;font-size:12px;color:var(--muted);line-height:1.55}.edit-input{background:transparent;border:1px solid var(--line);border-radius:12px;min-height:50px;padding:12px;width:100%;margin:7px 0 15px}.edit-input:focus{outline:2px solid #71967d}.photo{width:100%;min-height:128px;border:1px dashed #aab6a8;border-radius:13px;display:grid;place-items:center;text-align:center;color:var(--muted);margin:10px 0 16px}.photo img{max-height:140px;max-width:100%;object-fit:contain}.stats{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0 30px}.stat strong{font-size:36px;display:block;font-weight:550;color:var(--forest);letter-spacing:-1.5px}.pill{padding:7px 11px;border-radius:9px;background:var(--soft);font-size:12px;color:var(--forest)}.dialog-backdrop{position:fixed;inset:0;background:#26352c30;z-index:20;display:grid;place-items:end center;padding:0}.sheet{max-width:650px;width:100%;background:var(--paper);border-radius:22px 22px 0 0;padding:23px var(--pad) calc(24px + env(safe-area-inset-bottom));max-height:90dvh;overflow:auto}.sheet-head{display:flex;align-items:center;justify-content:space-between;font-size:20px;font-weight:600;margin-bottom:12px}.hidden{display:none!important}@keyframes appear{from{opacity:.65}to{opacity:1}}@media(min-width:720px){:root{--pad:35px}.home{padding-top:48px}.quiz-content{gap:28px;padding-bottom:36px}.prompt{min-height:145px}.option{min-height:70px}.quiz{min-height:100dvh}.answers.images .option{height:175px}.dialog-backdrop{place-items:center}.sheet{border-radius:22px;max-width:530px}.nav{max-width:650px;width:100%}}@media(max-height:680px){.quiz .top{min-height:48px;height:48px}.quiz-content{padding-top:14px;padding-bottom:14px;gap:14px}.prompt{min-height:85px}.prompt-word{font-size:32px}.option{min-height:53px;padding:9px 13px}.answers{gap:8px}.quiz-footer{min-height:68px;padding-top:8px;padding-bottom:8px}.answers.images .option{height:95px}.prompt img{height:92px}.home{padding-top:18px}.number{font-size:60px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Stable learning viewport: only the content region scrolls for unusually long options. */
.quiz{height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:0;padding-bottom:0;overflow:hidden}
.quiz-content{overflow-y:auto;overscroll-behavior:contain;justify-content:flex-start;min-height:0}
.prompt{margin-top:auto;flex-shrink:0}.answers{margin-bottom:auto;flex-shrink:0}
.quiz-footer{height:88px;min-height:88px;overflow:auto;align-items:center}
.feedback{max-height:100%;overflow:auto;min-height:0;scrollbar-width:thin}
.option:hover{background:transparent;border-color:#aeb8a9}
@media(hover:none){.option:hover{border-color:#d9ddd2}}.option:active{background:#e1e8db}
@media(max-height:680px){.quiz-footer{height:72px;min-height:72px}}

.prompt .prompt-speaker{margin:0 auto;flex:none;color:var(--muted)}
