:root{--bg:#0e0e12;--panel:#191a21;--panel2:#111217;--line:#343640;--text:#f7f7f8;--muted:#9798a3;--blue:#3d8cff;--red:#ff654f;--green:#27b493}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans KR",sans-serif}.screen{width:min(100%,520px);min-height:100vh;margin:auto;padding:env(safe-area-inset-top) 18px calc(24px + env(safe-area-inset-bottom));}.top{display:flex;align-items:center;justify-content:space-between;padding:24px 4px 28px}.top h1{font-size:27px;margin:0}.back,.more{border:0;background:none;color:var(--text);font-size:30px}.sub{color:var(--muted);font-size:14px;margin:0 0 18px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:var(--green);border-radius:22px;padding:20px 10px;text-align:center;margin-bottom:20px}.stats strong{display:block;font-size:24px}.stats span{color:#d2f4ea;font-size:12px}.unit{border:1px solid var(--line);border-radius:22px;background:var(--panel);padding:20px;margin:14px 0}.unit-head{display:flex;justify-content:space-between;align-items:center}.unit h2{margin:0;font-size:25px}.unit button,.primary,.secondary,.choice,.answer{border:0;border-radius:14px;color:var(--text);font-weight:700;font-size:16px;padding:14px 16px;background:var(--blue)}.unit .learn{background:none;color:var(--muted);padding:4px}.bar{height:9px;background:#30313a;border-radius:99px;margin:18px 0 12px;overflow:hidden}.fill{height:100%;width:0;background:var(--blue);border-radius:99px}.unit-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:13px;margin-bottom:16px}.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.secondary{background:transparent;border:1px solid var(--line)}.nav{position:sticky;bottom:0;background:rgba(14,14,18,.95);display:grid;grid-template-columns:repeat(4,1fr);padding:14px 0 4px;border-top:1px solid var(--line);margin-top:20px;color:var(--muted);text-align:center;font-size:12px}.nav b{display:block;font-size:20px;margin-bottom:4px}.nav .active{color:var(--text)}.learning-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.learning-head h2{margin:0}.range{position:relative}.range select{appearance:none;background:var(--panel);border:1px solid var(--line);color:var(--text);border-radius:12px;padding:12px 34px 12px 14px;font-size:14px}.card{background:var(--panel);border:1px solid var(--line);border-radius:22px;overflow:hidden}.word{padding:24px 20px;text-align:center}.counter{display:flex;justify-content:space-between;color:var(--muted);font-size:14px;margin-bottom:24px}.word h2{font-size:48px;margin:0 0 8px}.pron{color:var(--muted);font-size:18px;margin-bottom:20px}.listen{background:transparent;border:1px solid var(--line);color:var(--muted);border-radius:20px;padding:10px 16px}.meaning{background:var(--panel2);padding:22px 20px;min-height:190px}.meaning h3{margin:0 0 14px}.example{border:1px solid var(--line);border-radius:14px;padding:14px;color:var(--text);line-height:1.55}.example button{float:right;border:0;background:none;color:var(--muted);font-size:20px}.learning-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.dont{background:var(--red)}.know{background:var(--blue)}.test-list{display:grid;gap:12px}.test-type{text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px;color:var(--text);font-size:17px}.test-type small{display:block;color:var(--muted);margin-top:6px}.choices{display:grid;gap:10px;margin-top:18px}.choice{text-align:left;background:var(--panel);border:1px solid var(--line)}.choice.correct{background:var(--blue);border-color:var(--blue)}.choice.wrong{background:var(--red);border-color:var(--red)}.input{width:100%;border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:14px;padding:16px;font-size:17px}.result-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.result-row.ok{color:var(--blue)}.result-row.no{color:var(--red)}.empty{color:var(--muted);text-align:center;padding:48px 0}
:root{--example-muted:#9798a3}
.example{margin:10px 0!important}.example small{color:var(--example-muted)}.example-ko{color:var(--example-muted);margin-top:9px;font-size:14px}#swipe-card{touch-action:pan-y}
.feedback{border-radius:14px;padding:18px;font-size:16px}.feedback p{margin:8px 0}.feedback.ok{background:rgba(61,140,255,.15);border:1px solid var(--blue);color:#8ebdff}.feedback.no{background:rgba(255,101,79,.15);border:1px solid var(--red);color:#ff9a8b}
.screen:has(#swipe-card){height:100dvh;overflow:hidden}.screen:has(#swipe-card) .top{padding-bottom:18px}.screen:has(#swipe-card) .learning-head{margin-bottom:12px}#swipe-card{height:calc(100dvh - 300px);min-height:470px;display:flex;flex-direction:column;overflow:hidden}#swipe-card .word{flex:0 0 43%;display:flex;flex-direction:column;justify-content:center;padding:18px 20px}#swipe-card .word h2{font-size:clamp(48px,15vw,72px)}#swipe-card .meaning{flex:1;min-height:0;overflow:hidden;padding:18px 20px}#swipe-card .meaning h3{font-size:18px;line-height:1.35;max-height:72px;overflow:hidden}#swipe-card .example{font-size:15px;line-height:1.45;padding:12px;margin:6px 0}.example-head{display:flex;justify-content:space-between;align-items:center}.example-next{float:none!important;padding:0 6px;font-size:28px!important}.learning-actions{flex:0 0 auto}.learning-actions button{min-height:64px;font-size:20px}
.screen:has(#swipe-card) #swipe-card .word{flex-basis:35%}.screen:has(#swipe-card) #swipe-card .meaning{flex-basis:65%;overflow:hidden;padding:12px 16px}.screen:has(#swipe-card) #swipe-card .meaning h3{font-size:15px;line-height:1.25;max-height:54px;margin-bottom:6px}.screen:has(#swipe-card) #swipe-card .example{font-size:12.5px;line-height:1.3;padding:8px;margin:4px 0}.screen:has(#swipe-card) #swipe-card .example-ko{font-size:11px;margin-top:4px}.screen:has(#swipe-card) #swipe-card .example button{font-size:16px}
.screen:has(#swipe-card){touch-action:pan-y}button,select{touch-action:manipulation;-webkit-user-select:none;user-select:none}#swipe-card{animation:card-enter .24s ease-out}@keyframes card-enter{from{opacity:.35;transform:translateX(18px)}to{opacity:1;transform:translateX(0)}}
.auth-screen{min-height:100svh;display:grid;place-items:center;padding:24px;background:linear-gradient(160deg,#0f1014 0%,#121d32 100%)}.auth-card{width:min(100%,380px);padding:34px 26px 28px;border:1px solid #30323e;border-radius:26px;background:#191a21;box-shadow:0 24px 70px #0008;text-align:center}.auth-logo{width:88px;height:88px;margin:0 auto 18px;display:grid;place-items:center;border-radius:22px;background:#1677ff;color:#fff;font-size:20px;font-weight:800;box-shadow:0 10px 28px #1677ff55}.auth-card h1{margin:0;font-size:30px}.auth-card p{margin:10px 0 26px;color:#a5a6b0;font-size:14px;line-height:1.55}.auth-card form{text-align:left}.auth-card label{display:block;margin-bottom:8px;color:#c5c6cf;font-size:14px}.auth-card input{width:100%;height:52px;border:1px solid #3a3c49;border-radius:14px;background:#101116;color:#fff;padding:0 15px;outline:none}.auth-card input:focus{border-color:#3d8cff;box-shadow:0 0 0 3px #1677ff22}.auth-card button{width:100%;height:52px;margin-top:14px;border:0;border-radius:14px;background:#1677ff;color:#fff;font-weight:700;cursor:pointer}.auth-card button:active{transform:scale(.99)}#auth-error{min-height:20px;margin-top:10px;color:#ff6c5c;font-size:13px;text-align:center}
.screen:has(.choices) .word h2{font-size:30px;line-height:1.35;word-break:keep-all}
.screen:has(#swipe-card) #swipe-card .word h2{font-size:clamp(44px,13.5vw,66px)}
.screen:has(#swipe-card) #swipe-card .word{flex-basis:28%;justify-content:flex-start;padding-top:10px}.screen:has(#swipe-card) #swipe-card .word h2{font-size:clamp(40px,12vw,58px);margin-bottom:4px}.screen:has(#swipe-card) #swipe-card .meaning{flex-basis:72%}.screen:has(#swipe-card) #swipe-card .example{font-size:11.5px;line-height:1.25;padding:6px;margin:3px 0}.screen:has(#swipe-card) #swipe-card .example-ko{font-size:10.5px;margin-top:3px}
.unit-list{display:grid;gap:12px}.unit-list .unit{margin:0}

/* Keep each example's speaker aligned with its label, regardless of sentence length. */
.example-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.example-head button{float:none!important;border:0;background:none;color:var(--muted);font-size:20px;line-height:1;padding:0}
.screen:has(#swipe-card) #swipe-card .meaning{display:flex;flex-direction:column}
.screen:has(#swipe-card) #swipe-card .examples-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:3px}
