:root{color-scheme:light;--bg:#f7f7f5;--surface:#fff;--ink:#1c2824;--muted:#7a837d;--line:#e5e9e3;--soft:#eef2ed;--green:#24473a;--accent:#b98952;--der:#4a7ab3;--die:#b35b63;--das:#4a9270;--danger:#b34c4c;--shadow:0 26px 60px -46px #1b30243b}
:root[data-theme="dark"]{color-scheme:dark;--bg:#151d1a;--surface:#1e2924;--ink:#f0f1ed;--muted:#a4b0a9;--line:#33413a;--soft:#28372f;--green:#b3d9c5;--accent:#d3ac75;--der:#91b5e8;--die:#f1a9af;--das:#91d7b0;--danger:#f3a4a4;--shadow:none}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans SC",sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.app-shell{min-height:100vh;max-width:1180px;margin:auto;display:flex;flex-direction:column;padding:0 clamp(16px,4vw,40px)}.site-header{display:flex;align-items:center;justify-content:space-between;height:92px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;font-weight:750;letter-spacing:-.04em;font-size:21px}.brand-mark{width:39px;height:39px;border-radius:12px;background:#203b2f;color:#fff;display:grid;place-items:center;font-family:Georgia,serif;font-size:34px;line-height:1;padding-bottom:6px}.brand-mark span{color:#dfb77c}.header-actions{display:flex;gap:8px;align-items:center}.icon-button{background:transparent;border:1px solid var(--line);border-radius:11px;padding:9px 13px;color:var(--ink);font-size:12px;font-weight:700;min-height:39px}.theme-switch{min-width:41px;font-size:19px;padding:6px}main{flex:1;width:100%}.footer{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line);margin-top:70px;padding:21px 0 27px;color:var(--muted);font-size:12px}.hero{padding:clamp(40px,7vw,76px) 0 25px;max-width:740px}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:11px;font-weight:800;color:var(--accent)}h1,h2,h3,p{margin-top:0}.hero h1{font-family:Georgia,'Noto Serif SC',serif;font-weight:500;font-size:clamp(43px,6vw,76px);letter-spacing:-.045em;line-height:1.14;margin:14px 0 20px}.hero h1 em{font-style:normal;color:var(--green)}.lead{font-size:clamp(15px,2vw,18px);color:var(--muted);max-width:560px;line-height:1.85;margin:0}.serif{font-family:Georgia,'Noto Serif SC',serif}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0 28px}.stat{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:18px 20px;box-shadow:var(--shadow)}.stat strong{display:block;font-size:30px;font-weight:650;letter-spacing:-.03em;line-height:1.2}.stat span{font-size:12px;color:var(--muted)}.main-grid{display:grid;grid-template-columns:1.52fr 1fr;gap:19px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:25px;box-shadow:var(--shadow)}.panel h2{font-size:19px;letter-spacing:-.02em;margin:0 0 8px}.panel-sub{font-size:13px;color:var(--muted);margin:0 0 20px}.deck-select{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px}.deck-option{border:1px solid var(--line);background:transparent;border-radius:13px;text-align:left;color:var(--ink);padding:12px 15px;flex:1;min-width:140px}.deck-option.active{border-color:var(--green);background:var(--soft)}.deck-option strong,.deck-option span{display:block}.deck-option strong{font-size:14px}.deck-option span{color:var(--muted);font-size:12px;margin-top:3px}.form-row{display:flex;gap:11px;margin-bottom:18px}.field{width:100%;display:flex;flex-direction:column;gap:7px}.field label{font-size:12px;font-weight:700;color:var(--muted)}.field select,.field input{width:100%;background:var(--bg);border:1px solid var(--line);border-radius:10px;color:var(--ink);padding:12px;min-height:47px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:11px;min-height:46px;padding:12px 17px;background:var(--green);color:var(--bg);font-size:14px;font-weight:750;transition:transform .14s,opacity .14s}.button:hover{opacity:.85}.button:active{transform:scale(.98)}.button-secondary{background:var(--surface);border-color:var(--line);color:var(--ink)}.button-soft{background:var(--soft);color:var(--ink)}.button:disabled{opacity:.45;cursor:not-allowed}.button-wide{width:100%}.actions{display:flex;gap:10px;flex-wrap:wrap}.divider{border:0;border-top:1px solid var(--line);margin:19px 0}.aside-title{font-size:13px;font-weight:750;margin:0 0 11px}.feature-list{display:grid;gap:16px;margin:18px 0}.feature{display:flex;gap:12px;align-items:flex-start}.feature-icon{width:38px;height:38px;border:1px solid var(--line);background:var(--soft);border-radius:12px;display:grid;place-items:center;flex:none;font-size:18px}.feature p{font-size:13px;margin:0;color:var(--muted)}.feature strong{display:block;color:var(--ink);font-size:14px;margin-bottom:1px}.inline-link{font-size:13px;color:var(--green);text-decoration:underline;text-underline-offset:4px;font-weight:650}.note{color:var(--muted);font-size:12px;line-height:1.8}.small-utility{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.small-utility button{font-size:12px;padding:8px 10px;border-radius:9px;border:1px solid var(--line);background:transparent;color:var(--ink)}.section-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:36px 0 13px}.section-header h2{font-size:21px;margin:0}.word-strip{display:flex;gap:8px;flex-wrap:wrap}.mini-tag{font-size:12px;border:1px solid var(--line);padding:6px 11px;border-radius:99px;background:var(--surface);color:var(--muted)}.mini-tag span{font-weight:800}.article-der{color:var(--der)}.article-die{color:var(--die)}.article-das{color:var(--das)}.practice-wrap{max-width:660px;margin:40px auto 10px}.practice-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:17px}.text-button{background:transparent;border:0;color:var(--muted);padding:10px 0;font-size:13px;font-weight:650}.progress-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);font-weight:700;margin:10px 0}.progress-line{height:6px;background:var(--line);border-radius:9px;overflow:hidden;margin-bottom:23px}.progress-line span{display:block;height:100%;background:var(--green);border-radius:9px;transition:width .22s}.question-card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:22px;overflow:hidden}.question-picture{height:175px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;background:linear-gradient(135deg,var(--soft),var(--bg));border-bottom:1px solid var(--line)}.question-picture .emoji{font-size:62px;line-height:1.2}.question-picture .category-text{letter-spacing:.08em;color:var(--muted);font-size:11px}.question-body{padding:30px clamp(20px,5vw,38px) 28px;text-align:center}.question-word{font-family:Georgia,'Noto Serif SC',serif;font-weight:500;font-size:clamp(38px,7vw,53px);line-height:1.2;letter-spacing:-.035em;word-wrap:break-word;margin-bottom:9px}.answer-prefix{font-family:Georgia,serif;font-size:.7em;margin-right:9px}.definition{font-size:15px;color:var(--muted);margin:7px 0}.plural{color:var(--muted);font-size:13px;margin:6px 0}.pronounce{display:inline-flex;align-items:center;gap:5px;margin:10px 0 16px;border:0;background:transparent;color:var(--green);font-size:13px;font-weight:700}.pronounce:hover{text-decoration:underline}.example{margin:8px auto 0;max-width:450px;border-top:1px solid var(--line);padding:17px 0 1px;font-size:14px;line-height:1.8}.example .translation{font-size:12px;color:var(--muted)}.mask{display:inline-block;background:var(--line);color:transparent;border-radius:4px;padding:0 3px;user-select:none}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin:20px 0 0}.choice{height:68px;border:1px solid var(--line);border-radius:13px;background:var(--bg);font-family:Georgia,serif;font-size:27px;font-weight:500;color:var(--ink);transition:background .16s,transform .16s}.choice:hover{background:var(--soft);transform:translateY(-2px)}.choice.wrong{opacity:.24;pointer-events:none;text-decoration:line-through}.choice:disabled{cursor:default}.answer-feedback{display:flex;flex-direction:column;align-items:center;gap:12px;margin:18px 0 0}.feedback-message{font-size:13px;font-weight:750}.feedback-message.success{color:var(--das)}.feedback-message.warning{color:var(--danger)}.feedback-note{font-size:12px;color:var(--muted)}.keyboard-tip{font-size:12px;text-align:center;color:var(--muted);margin:18px}.result-hero{text-align:center;padding:45px 15px 26px}.result-hero .result-star{font-size:58px}.result-hero h1{font-family:Georgia,serif;font-size:38px;font-weight:500;margin:9px 0}.result-hero p{color:var(--muted)}.result-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 20px}.result-kpis .stat{text-align:center;padding:16px 7px}.result-kpis strong{font-size:24px}.word-row{display:flex;align-items:center;gap:13px;padding:12px 0;border-bottom:1px solid var(--line)}.word-row:last-child{border:0}.word-row .word-main{flex:1;min-width:0}.word-row .word-main strong{display:block;font-size:15px;font-weight:650}.word-row .word-main small{display:block;font-size:12px;color:var(--muted)}.word-row .pill{font-size:11px;padding:3px 9px;border-radius:99px;background:var(--soft)}.word-row .pill.good{color:var(--das)}.word-row .pill.bad{color:var(--danger)}.empty{text-align:center;padding:47px 15px;color:var(--muted)}.empty .big-emoji{font-size:43px;display:block;margin-bottom:8px}.toast{pointer-events:none;position:fixed;z-index:20;bottom:22px;left:50%;transform:translate(-50%,15px);padding:12px 18px;border-radius:12px;background:var(--ink);color:var(--bg);font-size:13px;box-shadow:0 10px 40px #0002;opacity:0;transition:.2s;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}.flash-sheet{display:none}
@media(max-width:770px){.site-header{height:74px}.stats{gap:7px}.stat{padding:16px 12px}.stat strong{font-size:26px}.main-grid{grid-template-columns:1fr}.panel{padding:20px}.hero{padding-top:39px}.footer{flex-direction:column;gap:3px}.practice-wrap{margin-top:22px}.question-picture{height:145px}.question-body{padding:25px 18px}.choices{gap:7px}.choice{height:62px}.form-row{flex-wrap:wrap}}
@media(max-width:400px){.stats{grid-template-columns:1fr 1fr}.stats .stat:last-child{grid-column:1/-1}.deck-option{min-width:125px}.hero h1{font-size:43px}}
@media print{@page{size:A4;margin:12mm}html,body{background:white!important;color:#111!important;font-size:12px}.app-shell,.toast{display:none!important}.flash-sheet{display:block!important}.flash-title{font-size:18px;font-weight:700;margin-bottom:8mm}.flash-grid{display:grid;grid-template-columns:1fr 1fr;gap:7mm;break-after:page}.flash-grid:last-child{break-after:auto}.flash-card{border:1px dashed #888;height:120mm;display:grid;grid-template-rows:1fr 1fr;break-inside:avoid;padding:5mm;text-align:center;position:relative}.flash-front,.flash-back{display:flex;flex-direction:column;align-items:center;justify-content:center}.flash-front{border-bottom:1px dashed #bbb}.flash-front strong{font-family:Georgia,serif;font-size:27px}.flash-front small,.flash-back small{color:#777}.flash-back{transform:rotate(180deg)}.flash-back strong{font-family:Georgia,serif;font-size:24px}.flash-back p{font-size:12px;line-height:1.3}.flash-card:before{content:'沿虚线折叠';font-size:9px;position:absolute;top:49%;left:3mm;color:#aaa}}

/* Locally hosted vocabulary photos, provided by the independent build step. */
.question-picture.has-photo{height:250px;position:relative;overflow:hidden;background:var(--soft)}
.vocab-photo{width:100%;height:100%;object-fit:cover;display:block}
.question-picture.has-photo .category-text{position:absolute;top:12px;left:12px;color:white;background:#1c292a99;border-radius:999px;padding:5px 10px;font-size:11px}
.question-picture.has-photo .photo-credit{position:absolute;right:8px;bottom:8px;padding:3px 6px;border-radius:5px;color:#fff;background:#0d1516aa;font-size:10px}
.question-picture.photo-missing{background:var(--soft);height:120px}
.flash-image{max-height:50mm;max-width:100%;object-fit:contain;margin:2mm 0}
@media(max-width:770px){.question-picture.has-photo{height:205px}}

.question-picture .photo-credit{text-decoration:none}.question-picture .photo-credit:hover{text-decoration:underline}