:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Noto Sans KR',sans-serif;color:#19233d;background:#f4f6fb;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}a{color:inherit}header{height:94px;max-width:1120px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 32px}.brand{display:flex;align-items:center;text-decoration:none;font-size:22px;font-weight:850;letter-spacing:-.8px;gap:8px}.brandmark{display:grid;place-items:center;background:#2d56e8;color:white;width:43px;height:43px;border-radius:13px;font-size:19px}.beta{font-size:11px;letter-spacing:1px;background:#e1e7fc;color:#294aca;padding:5px 7px;border-radius:5px;margin-left:4px}.header-note{font-size:14px;color:#64718b}main{max-width:820px;margin:30px auto 70px;padding:0 24px;min-height:580px}.eyebrow{color:#2d56e8;letter-spacing:2px;font-size:12px;font-weight:800;margin-bottom:17px}h1{font-size:42px;line-height:1.3;letter-spacing:-1.8px;margin:0 0 15px}p{line-height:1.8}.intro{color:#69738a;margin:0 0 28px}.card{background:white;border:1px solid #e0e5f0;border-radius:24px;padding:36px;box-shadow:0 9px 30px #27377306}.starttop{display:flex;justify-content:space-between;gap:22px;border-bottom:1px solid #e8ecf4;padding-bottom:28px;margin-bottom:28px}.starttop h2{margin:0 0 9px;font-size:23px}.starttop p{margin:0;color:#69738a;font-size:14px}.biglevel{font-size:66px;font-weight:900;letter-spacing:-5px;color:#2d56e8;line-height:1}.pill{border-radius:20px;background:#eef2ff;color:#3656c3;padding:6px 11px;font-size:13px}.fieldtitle{font-size:14px;font-weight:700;margin:0 0 12px}.modes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 25px;border:0;padding:0}.mode{border:1px solid #dce2ef;border-radius:12px;cursor:pointer;padding:17px 12px;display:flex;align-items:center;gap:8px;font-size:14px}.mode:has(input:checked){border-color:#2d56e8;background:#edf2ff;color:#254bcf}input{accent-color:#2d56e8}.primary{border:0;color:white;background:#2d56e8;border-radius:12px;padding:17px 24px;font-weight:700;transition:.2s}.primary:hover{background:#2145ce;transform:translateY(-1px)}.full{width:100%}.micro{color:#747f95;font-size:13px;text-align:center;margin:14px 0 0}.meta{display:flex;gap:20px;margin-top:24px;color:#69738a;font-size:14px;justify-content:center}.quiztop{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;font-size:14px}.linkbtn{border:0;background:none;color:#66738c;padding:9px 0;font-size:14px}.progress{height:5px;border:0;width:100%;appearance:none;display:block;border-radius:5px;overflow:hidden;margin-bottom:26px}.progress::-webkit-progress-bar{background:#e0e6f3}.progress::-webkit-progress-value{background:#2d56e8;transition:width .3s}.progress::-moz-progress-bar{background:#2d56e8}.qhead{display:flex;justify-content:space-between;align-items:center}.qnumber{color:#8995ae;font-size:14px;font-weight:700}.instruction{font-size:14px;color:#717c91;margin:26px 0 10px}.sentence{font-family:'Noto Sans JP','Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;font-size:25px;font-weight:600;line-height:1.9;letter-spacing:.4px;margin:0 0 28px;overflow-wrap:anywhere}.sentence u{text-decoration-color:#2d56e8;text-underline-offset:7px;text-decoration-thickness:2px}.answers{display:grid;gap:11px;border:0;padding:0;margin:0}.option{display:flex;gap:15px;align-items:center;position:relative;border:1.5px solid #e1e6ef;padding:16px 18px;border-radius:12px;cursor:pointer;transition:.15s;font-size:18px;line-height:1.5}.option:hover{border-color:#a8b8f1;background:#f8faff}.option:has(input:checked){border-color:#2d56e8;background:#eef3ff;color:#234bd3}.option input{position:absolute;opacity:0}.option:has(input:focus-visible){outline:3px solid #809bff;outline-offset:3px}.num{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;background:#f1f3f8;border-radius:8px;font-size:13px;color:#78839a}.option:has(input:checked) .num{background:#2d56e8;color:white}.check{margin-left:auto;color:#2d56e8;opacity:0}.option:has(input:checked) .check{opacity:1}.nav{display:flex;justify-content:space-between;align-items:center;margin-top:26px}.secondary{background:white;border:1px solid #dce2ef;border-radius:12px;padding:16px 22px;color:#526079}.dots{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin:24px 0}.dot{width:31px;height:31px;border-radius:9px;background:#e9edf5;border:0;color:#7a8598;font-size:12px}.dot.answered{background:#dfe7ff;color:#244ad1}.dot.current{box-shadow:0 0 0 2px #2d56e8;background:#2d56e8;color:white}.center{text-align:center}.gradegrid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:35px 0}.gradecell{height:94px;border:1px solid #e2e6ee;border-radius:14px;position:relative;display:grid;place-items:center;color:#9ba5b6}.gradecell small{position:absolute;left:10px;top:8px;font-size:12px}.mark{width:43px;height:43px;stroke-width:3;fill:none;stroke-linecap:round;stroke-dasharray:160;stroke-dashoffset:160;animation:draw .4s ease forwards}.correct{stroke:#e45262}.incorrect{stroke:#496cd3}.gradecell.done{background:#f8faff}.resulttop{background:#263fc9;color:white;border-radius:24px;padding:35px;text-align:center;position:relative;overflow:hidden}.resulttop .eyebrow{color:#b6c7ff}.score{font-size:86px;font-weight:850;letter-spacing:-5px;line-height:1.25}.score small{font-size:22px;letter-spacing:0;margin-left:4px;color:#c4d1ff}.resulttop h1{font-size:26px;letter-spacing:-.5px;margin:12px 0}.resulttop p{color:#dbe3ff;font-size:14px;margin:7px 0}.stats{display:flex;justify-content:center;gap:36px;margin-top:24px;padding-top:22px;border-top:1px solid #ffffff30;font-size:14px}.stats strong{display:block;font-size:23px;margin-bottom:4px}.reviewhead{display:flex;align-items:center;justify-content:space-between;margin:30px 0 18px}.reviewhead h2{font-size:21px;margin:0}.reviewhead label{font-size:14px;color:#56617a;display:flex;gap:7px}.review{padding:24px;border-radius:18px;margin:13px 0}.reviewsummary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px;line-height:1.65}.reviewsummary::-webkit-details-marker{display:none}.reviewsummary:after{content:'＋';margin-left:auto;color:#8e9bb3}.review[open] .reviewsummary:after{content:'−'}.badge{font-size:12px;white-space:nowrap;border-radius:6px;padding:4px 7px;background:#eef2ff;color:#4963ad}.badge.ok{color:#b8344c;background:#fff0f2}.reviewbody{margin-top:18px;border-top:1px solid #edf0f5;padding-top:16px;font-size:15px}.answerline{display:flex;gap:14px;flex-wrap:wrap;font-size:14px;margin-bottom:12px;color:#5a6781}.goodanswer{color:#234cc5;font-weight:700}.explain{background:#f4f6fc;border-radius:10px;padding:16px;line-height:1.8}.translation{font-size:14px;color:#69758a;margin:12px 0 0}.resultactions{display:flex;gap:12px;margin:26px 0}.resultactions>*{flex:1}.empty{padding:35px;text-align:center;color:#60708b}.confetti{position:absolute;top:-20px;width:7px;height:12px;animation:fall 3s linear forwards;pointer-events:none}footer{max-width:1040px;margin:auto;border-top:1px solid #e0e5ef;padding:24px 20px 32px;display:flex;justify-content:space-between;color:#748198;font-size:12px;gap:25px}footer details{max-width:470px;text-align:right}footer summary{cursor:pointer}footer p{text-align:left}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #86a0ff;outline-offset:4px}.fade{animation:appear .3s ease}@keyframes draw{to{stroke-dashoffset:0}}@keyframes appear{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes fall{to{transform:translateY(470px) rotate(520deg);opacity:0}}@media(max-width:600px){header{height:76px;padding:0 20px}.header-note{display:none}main{margin:20px auto 45px;padding:0 17px;min-height:550px}h1{font-size:33px}.card{padding:24px 20px;border-radius:19px}.biglevel{font-size:58px}.starttop h2{font-size:21px}.mode{padding:15px 8px;gap:3px;font-size:13px}.modes{gap:6px}.sentence{font-size:22px}.option{padding:14px}.gradegrid{gap:8px}.gradecell{height:77px}.resulttop{padding:29px 20px}.resultactions{flex-direction:column}.stats{gap:30px}.review{padding:20px 16px}.reviewsummary{font-size:15px}.reviewhead h2{font-size:19px}footer{flex-direction:column;gap:12px}footer details{text-align:left}.meta{font-size:12px;gap:14px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important}.confetti{display:none}}

/* Requested level selector and colored-pencil grading. */
.levels{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 25px;padding:0;border:0}.level-button{position:relative;cursor:pointer;text-align:center}.level-button input{position:absolute;opacity:0}.level-button span{display:block;border:1px solid #dce2ef;border-radius:12px;padding:14px 6px;font-size:16px;font-weight:700}.level-button:has(input:checked) span{border-color:#2d56e8;background:#edf2ff;color:#254bcf}.level-button:has(input:focus-visible) span{outline:3px solid #809bff;outline-offset:3px}.pencil-mark{width:72px;height:72px;overflow:visible}.pencil-stroke{animation:none}.pencil-cursor{pointer-events:none}.sentence:focus{outline:none}@media(max-width:600px){.levels{gap:6px}.pencil-mark{width:58px;height:58px}}

/* Official JLPTGYM header asset; existing header layout is preserved. */
.brand-logo{display:block;width:180px;height:60px;max-width:100%;object-fit:contain;flex-shrink:0}
