@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap');
:root{--bg:#f6f5ef;--paper:#fffefa;--ink:#283c34;--muted:#7b8075;--line:#e3e5db;--green:#496b4b;--lime:#dce8a8;--coral:#c78169;--serif:'Noto Serif SC','Songti SC',serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;font-size:14px}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #9bb061;outline-offset:4px}a{color:inherit}button{border:0;background:none}svg{vertical-align:middle}h1,h2,h3,p{margin:0}header{height:86px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,24px);gap:20px}.logo{display:flex;align-items:center;gap:10px;font-family:var(--serif);font-size:26px;font-weight:700}.logo-mark{width:34px;height:34px;display:grid;place-items:center;background:var(--ink);color:var(--lime);border-radius:50%}.logo small{font-family:inherit;font-size:11px;font-weight:400;letter-spacing:2px;margin-left:9px;color:var(--muted)}nav{display:flex;gap:36px;height:100%;align-items:center}nav button{height:100%;font-size:13px;position:relative;color:var(--muted)}nav .active{color:var(--ink)}nav .active:after{content:'';height:3px;border-radius:2px;background:var(--green);position:absolute;bottom:0;left:0;right:0}.saved{font-size:11px;color:var(--muted);display:flex;gap:7px;align-items:center}.dot{width:6px;height:6px;background:#88a074;border-radius:50%}.shell{max-width:1260px;margin:auto;padding:45px 44px 28px}.eyebrow{font-size:10px;letter-spacing:2.4px;color:var(--muted);text-transform:uppercase}.intro{display:flex;align-items:end;justify-content:space-between;margin-bottom:29px}.intro h1{font-family:var(--serif);font-size:34px;font-weight:500;letter-spacing:1px;margin:12px 0}.muted{color:var(--muted);line-height:1.8}.tiny{font-size:11px}.outline{border:1px solid var(--line);padding:10px 16px;border-radius:8px;background:var(--paper)}.primary{background:var(--ink);color:#fffefa;padding:14px 22px;border-radius:9px;display:inline-flex;gap:25px;align-items:center;justify-content:center}.primary:hover{background:#3e5847}.hero-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px}.hero{background:#e9eddf;border:1px solid #dde3d2;border-radius:18px;padding:30px;position:relative;overflow:hidden;min-height:274px}.hero h2{font-family:var(--serif);font-weight:500;font-size:29px;line-height:1.7;position:relative;z-index:1;margin:12px 0}.hero p{font-size:12px;line-height:1.9;color:#788270;max-width:350px}.hero .primary{margin-top:23px;font-size:12px;position:relative;z-index:1}.hero-art{position:absolute;right:8px;bottom:-10px;width:190px;height:225px;opacity:.75;pointer-events:none}.hero-note{position:absolute;right:24px;top:23px;color:#899079;font-size:10px;letter-spacing:2px}.score{border:1px solid var(--line);background:var(--paper);border-radius:18px;padding:25px;display:flex;flex-direction:column;justify-content:space-between}.section-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-top h2{font-size:17px;font-weight:500}.text-btn{font-size:12px;color:var(--muted);padding:5px}.score-main{display:flex;align-items:center;gap:26px;margin:14px 0}.ring{width:117px;height:117px;border-radius:50%;background:conic-gradient(var(--green) calc(var(--p)*1%),#eceee6 0);padding:8px;flex:none}.ring-inner{border-radius:50%;background:var(--paper);height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.ring strong{font-weight:500;font-size:30px}.ring small{font-size:10px;color:var(--muted);margin-top:3px}.metric strong{font-size:27px;font-weight:500}.metric strong small{font-size:14px}.metric p{font-size:11px;color:var(--muted);margin-top:7px}.score-bottom{border-top:1px solid var(--line);padding-top:14px;display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.score-bottom b{font-size:15px;font-weight:500;color:var(--ink);margin-left:8px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:33px 0 16px}.section-heading h2{font-size:19px;font-weight:500}.section-heading span{font-size:11px;color:var(--muted);margin-left:12px}.boards{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.board{text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:20px;transition:transform .2s,box-shadow .2s}.board:hover{transform:translateY(-3px);box-shadow:0 8px 20px #283c3409}.board-title{display:flex;align-items:center;gap:12px}.icon-tile{width:35px;height:35px;border-radius:10px;background:var(--tint);display:grid;place-items:center;color:var(--tone)}.board h3{font-size:15px;font-weight:500}.board .arrow{margin-left:auto;color:#99a08e}.board-desc{margin:14px 0 20px;font-size:11px;color:var(--muted)}.board-status{display:flex;align-items:baseline;justify-content:space-between;font-size:10px;color:var(--muted)}.board-status b{font-size:18px;color:var(--ink);font-weight:500}.board-status b small{font-size:10px;color:var(--muted);margin-left:4px}.bar{height:4px;background:#eeeee6;border-radius:4px;margin-top:11px;overflow:hidden}.bar i{display:block;height:100%;background:var(--tone,var(--green));border-radius:4px}.bottom-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;margin-top:25px}.next-panel{border:1px solid var(--line);background:var(--paper);border-radius:13px;padding:23px}.next-panel .section-top{margin-bottom:17px}.task-row{display:flex;gap:12px;align-items:center;padding:13px 0;border-top:1px solid #efeee7}.task-row .check{height:24px;width:24px;flex:none;border:1px solid #cfd7c2;border-radius:50%;font-size:13px}.task-row h3{font-size:12px;font-weight:400;line-height:1.65}.task-row p{font-size:10px;color:var(--muted);margin-top:4px}.task-row .text-btn{margin-left:auto;flex:none}.quote{background:#f0eae0;border-radius:13px;padding:27px;display:flex;flex-direction:column;justify-content:center}.quote .quote-mark{font-family:Georgia;font-size:45px;color:#aaa18d;height:38px}.quote h3{font-family:var(--serif);font-size:19px;font-weight:400;line-height:1.9}.quote p{font-size:11px;color:var(--muted);margin-top:15px}footer{display:flex;justify-content:space-between;gap:20px;font-size:10px;color:#959a8e;margin-top:30px;line-height:1.8}footer button{font-size:10px;color:inherit;padding:0}.filters{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.pill{border:1px solid var(--line);padding:9px 14px;border-radius:25px;color:var(--muted);background:var(--paper);font-size:12px}.pill.active{background:var(--ink);color:white;border-color:var(--ink)}.search{width:100%;background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:13px 16px;color:var(--ink)}.chapters{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.chapter{text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:22px;display:flex;gap:17px;align-items:center}.chapter:hover{border-color:#99ad83}.chapter .num{font-family:Georgia;font-size:27px;color:#b1baa4;width:34px;flex:none}.chapter .chapter-info{flex:1}.chapter h3{font-size:14px;line-height:1.65;font-weight:500}.chapter p{font-size:11px;color:var(--muted);margin-top:8px}.chapter .arrow{color:#929c89}.empty{padding:55px 20px;text-align:center;border:1px dashed #d8ddce;border-radius:14px;color:var(--muted);grid-column:1/-1}.empty h2{color:var(--ink);font-family:var(--serif);font-weight:400;margin:14px 0}.empty button{margin-top:20px}.action-list{display:flex;flex-direction:column;gap:10px}.action-row{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:17px;display:flex;align-items:center;gap:16px}.action-row h3{font-size:14px;font-weight:500;line-height:1.7}.action-row p{font-size:11px;color:var(--muted);margin-top:6px}.action-row .text-btn{margin-left:auto;flex:none}.action-row .check{border:1px solid var(--line);border-radius:50%;width:30px;height:30px;flex:none}.action-row.done .check{background:var(--green);color:white}.session{height:100dvh;display:flex;flex-direction:column;max-width:880px;margin:auto;padding:25px 30px 20px;overflow:hidden}.session-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;gap:15px}.session-top button{padding:8px}.session-top .session-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}.session-progress{height:3px;background:#e4e7db;margin:16px 0 13px;border-radius:3px}.session-progress i{height:100%;display:block;background:var(--green);transition:width .3s}.swipe-wrap{flex:1;min-height:0;position:relative;display:flex;justify-content:center;padding:8px 0 12px}.card{width:100%;max-width:620px;min-height:0;position:relative;background:var(--paper);border:1px solid #dce1d2;border-radius:22px;padding:30px 34px;display:flex;flex-direction:column;box-shadow:0 10px 35px #314c2910;touch-action:pan-y;user-select:none;cursor:grab;will-change:transform}.card:active{cursor:grabbing}.card-tag{font-size:10px;letter-spacing:2px;color:var(--muted);display:flex;justify-content:space-between;gap:10px}.card-content{margin:auto 0;overflow:auto;padding:20px 0 14px;scrollbar-width:thin}.card h1{font-family:var(--serif);font-size:clamp(24px,3.4vw,34px);line-height:1.65;font-weight:500;margin-bottom:21px}.card .description{color:#6e786a;line-height:1.95;font-size:13px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.cost{border-top:1px solid var(--line);padding-top:17px;margin-top:20px;font-size:12px;line-height:1.7;color:#74826a}.cost span{font-size:10px;display:block;color:#9aa38f;margin-bottom:4px}.card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--line)}.badge{font-size:10px;padding:5px 8px;border-radius:5px;background:#eef0e6;color:#7a856a}.card-foot button{font-size:11px;color:var(--green);padding:10px 0}.stamp{position:absolute;z-index:2;top:80px;border:3px solid currentColor;border-radius:8px;font-size:25px;font-weight:600;padding:8px 15px;opacity:0;pointer-events:none}.stamp.yes{left:30px;transform:rotate(-14deg);color:#557648}.stamp.no{right:30px;transform:rotate(14deg);color:#bb806b}.session-hint{font-size:10px;text-align:center;color:var(--muted);margin:4px 0 12px}.choices{display:flex;justify-content:center;gap:16px}.choice{min-width:160px;padding:16px 24px;border-radius:12px;display:flex;gap:20px;justify-content:center;align-items:center;font-size:14px}.choice.no{background:#efe2da;color:#966851}.choice.yes{background:var(--ink);color:#edf3db}.choice:hover{filter:brightness(.96)}.session-secondary{display:flex;justify-content:center;gap:30px;margin:10px 0 0}.session-secondary button{font-size:11px;color:var(--muted);padding:10px}.complete{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:22px}.complete h1{font-family:var(--serif);font-size:30px;font-weight:400}.complete .ring{width:150px;height:150px}.complete p{color:var(--muted);line-height:1.8}.complete-actions{display:flex;gap:10px}dialog{border:1px solid var(--line);border-radius:18px;padding:0;max-width:680px;width:calc(100% - 32px);max-height:85dvh;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#1c2b2466;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:17px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--paper);z-index:1}.dialog-head button{font-size:22px}.dialog-body{padding:25px}.dialog-body h2{font-family:var(--serif);font-size:22px;line-height:1.7;margin-bottom:22px}.dialog-body h3{font-size:12px;font-weight:500;color:var(--green);margin:22px 0 9px}.dialog-body p{font-size:13px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;color:#6f796d}.dialog-body a{color:var(--green)}#toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:var(--ink);color:white;padding:12px 20px;border-radius:9px;font-size:12px;opacity:0;pointer-events:none;z-index:10;transition:.2s;max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}.entry{animation:enter .3s ease}@keyframes enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){.shell{padding-top:60px}.hero{min-height:310px}.board{padding:24px}}@media(max-width:800px){header{padding:0 23px;height:74px}.logo small,.saved{display:none}nav{gap:22px}.shell{padding:28px 22px}.intro h1{font-size:28px}.hero-grid{grid-template-columns:1fr}.hero{min-height:250px}.hero-art{right:25px}.score{min-height:220px}.score-main{justify-content:center;gap:45px}.boards{grid-template-columns:repeat(2,1fr)}.bottom-grid{grid-template-columns:1fr}.chapters{grid-template-columns:1fr}.quote{padding:23px}.section-heading span{display:none}footer{flex-direction:column;gap:7px}.action-row{gap:10px}.action-row h3{font-size:13px}.action-row .text-btn{font-size:10px}}@media(max-width:480px){header{height:68px;padding:0 20px}.logo{font-size:23px;gap:7px}.logo-mark{height:30px;width:30px}nav{gap:18px}nav button{font-size:11px}.shell{padding:27px 18px}.intro{align-items:start}.intro h1{font-size:27px}.intro .outline{padding:8px 10px;font-size:10px;margin-top:28px}.intro .muted{font-size:12px}.hero{padding:24px;min-height:265px}.hero h2{font-size:26px}.hero-art{width:132px;right:0;bottom:0;opacity:.48}.hero p{max-width:220px}.hero-note{font-size:9px;right:19px}.boards{gap:10px}.board{padding:16px 13px}.board-title{gap:8px}.board h3{font-size:13px}.icon-tile{width:29px;height:29px;border-radius:8px}.board-desc{font-size:10px;line-height:1.7;min-height:34px;margin:12px 0}.board-status{font-size:9px}.board-status b{font-size:16px}.board .arrow{display:none}.section-heading h2{font-size:18px}.score{padding:23px}.session{padding:14px 16px max(12px,env(safe-area-inset-bottom))}.session-top{font-size:10px}.session-top button{padding:6px 0;flex:none}.session-progress{margin:13px 0 8px}.card{padding:22px;border-radius:18px}.card h1{font-size:25px;line-height:1.55;margin-bottom:17px}.card .description{font-size:12px;-webkit-line-clamp:3}.card-tag{font-size:9px;letter-spacing:1px}.cost{font-size:11px;margin-top:15px;padding-top:12px}.choice{min-width:0;flex:1;gap:15px;padding:16px}.session-hint{font-size:9px;margin-bottom:12px}.session-secondary{margin-top:5px}.session-secondary button{padding:8px}.card-foot .badge{font-size:9px}.card-foot button{font-size:10px}.complete h1{font-size:26px}.filters{gap:6px}.pill{font-size:11px;padding:8px 12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Knowledge-or-action answers and shareable milestones. */
.choice small{display:block;font-size:11px;font-weight:400;opacity:.75;margin-top:5px}.choice{padding:13px 24px}.achievement-tease{margin-top:24px;padding:25px 28px;border:1px solid #dce3cd;border-radius:14px;background:#edf0e3;display:flex;align-items:center;justify-content:space-between;gap:20px}.achievement-tease h3{font-family:var(--serif);font-size:21px;font-weight:500;margin:10px 0}.achievement-tease p{font-size:12px;line-height:1.8;color:var(--muted)}.achievement-actions{display:flex;flex-direction:column;gap:9px;flex:none;align-items:center}.achievement-tease>.outline{flex:none}.group-result{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--tint,#e9eddf);padding:25px;border-radius:14px;margin-bottom:22px}.group-result h2{font-family:var(--serif);font-size:24px;font-weight:500;margin:10px 0}.group-result p{font-size:12px;color:var(--muted)}.total-result{background:#e9eddf;border:1px solid #dde3d2;padding:30px;border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}.total-result h2{font-family:var(--serif);font-weight:500;font-size:27px;margin:12px 0}.total-result p{font-size:12px;color:var(--muted);line-height:1.8}.total-result strong{font-size:62px;font-weight:500}.total-result strong small{font-size:15px;margin-left:8px;font-weight:400}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.result-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:23px}.result-card h3{font-size:16px;font-weight:500;margin:17px 0}.result-number{font-size:36px;font-weight:500}.result-number small{font-size:11px;color:var(--muted);margin-left:8px}.result-card p{font-size:11px;color:var(--muted);margin:10px 0 19px}.result-card button{width:100%;font-size:12px}.chapter-results{display:flex;flex-direction:column;gap:10px}.chapter-result{display:flex;align-items:center;gap:20px;background:var(--paper);padding:20px;border:1px solid var(--line);border-radius:12px}.chapter-result>div{flex:1}.chapter-result p{font-size:10px;color:var(--muted);margin-bottom:7px}.chapter-result h3{font-size:14px;font-weight:400;line-height:1.7}.chapter-result strong{font-size:24px;font-weight:500;flex:none}.chapter-result strong small{font-size:10px;margin-left:5px;color:var(--muted)}.chapter-result button{font-size:11px;flex:none}.score-explainer{font-size:11px;color:var(--muted);line-height:1.8;margin-top:25px}.session.session-results{overflow-y:auto;height:100dvh}.score-complete{flex:none;min-height:calc(100dvh - 100px);padding:35px 0 20px;gap:18px}.score-complete .completed-name{max-width:540px;font-family:var(--serif);font-size:19px;color:var(--ink)}.completion-number{font-size:104px;font-weight:500;line-height:1.1;letter-spacing:-4px}.completion-number span{display:block;font-size:12px;letter-spacing:2px;margin:15px 0 3px;color:var(--muted)}.score-complete h1{font-size:28px}.score-complete .completion-count{font-size:12px}.score-complete>.primary{width:270px;max-width:100%;margin:3px 0 8px}.milestone{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;border:1px solid #dce3ce;background:#edf0e3;border-radius:12px;width:100%;max-width:540px;text-align:left}.milestone span{display:block;font-size:10px;color:var(--muted);margin-bottom:7px}.milestone strong{font-weight:500;font-size:15px;line-height:1.7}.milestone .outline{background:#fffefa99;font-size:11px;flex:none}.milestone .outline span{display:inline;margin:0}.final-milestone{background:#f1e8d8;border-color:#e6d8bd}.completion-links{display:flex;gap:18px}.poster-preview{background:#f0f1e9;border-radius:12px;padding:10px;display:flex;justify-content:center}.poster-preview img{display:block;width:100%;max-width:405px;height:auto;box-shadow:0 5px 25px #283c3412;border-radius:8px;user-select:auto;-webkit-touch-callout:default}.poster-actions{display:flex;justify-content:center;gap:12px;margin-top:20px}.poster-help{font-size:11px!important;text-align:center;margin-top:14px}.poster-loading{text-align:center;padding:70px 0;color:var(--muted)}
@media(max-width:800px){.result-grid{grid-template-columns:repeat(2,1fr)}.achievement-tease{padding:22px}.achievement-tease h3{font-size:19px}.achievement-tease{flex-wrap:wrap}.achievement-actions{flex-direction:row}.group-result{flex-wrap:wrap}.total-result{padding:25px}.chapter-result{gap:12px}}
@media(max-width:480px){.choice{padding:12px 13px;gap:10px;font-size:13px}.choice small{font-size:10px}.session-hint{font-size:10px;line-height:1.5;margin-bottom:10px}.stamp{font-size:18px;padding:8px}.achievement-tease{padding:21px}.achievement-tease h3{font-size:18px}.achievement-tease p{font-size:11px}.achievement-actions .primary{padding:12px 17px;font-size:12px;gap:15px}.achievement-actions .text-btn{font-size:10px}.result-card{padding:18px 15px}.result-card h3{font-size:14px}.result-card button{font-size:11px;padding:10px 8px}.result-grid{gap:10px}.total-result{gap:20px;padding:23px}.total-result h2{font-size:22px}.total-result>div{max-width:68%}.total-result strong{font-size:48px}.total-result>.primary{width:100%}.group-result{padding:23px;gap:17px}.group-result h2{font-size:21px}.chapter-result{padding:16px 13px;gap:10px}.chapter-result h3{font-size:12px}.chapter-result .outline{font-size:10px;padding:8px}.chapter-result strong{font-size:20px}.session-results .session-top{flex:none}.score-complete{padding-top:28px;gap:18px}.completion-number{font-size:91px}.score-complete h1{font-size:25px}.score-complete .completed-name{font-size:17px}.score-complete .completion-count{font-size:11px}.milestone{padding:16px;gap:10px}.milestone strong{font-size:13px}.milestone .outline{font-size:10px;padding:10px}.poster-actions{flex-wrap:wrap}.poster-actions button{font-size:12px;padding:13px 18px}.poster-preview{padding:5px}dialog:has(.poster-preview) .dialog-body{padding:16px}.metric p{font-size:10px}.score-bottom{font-size:10px}.score-bottom b{margin-left:5px}}
/* Quick feedback stays in the hint band, never over the next card. */
#swipe-feedback{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:25;contain:layout style}
.feedback-burst{position:absolute;width:0;height:0;--fx-ink:#294120;--fx-fill:#dcf6a9}.feedback-burst.no{--fx-ink:#70432b;--fx-fill:#ffe4ce}
.feedback-badge{position:absolute;left:0;top:0;display:flex;align-items:center;gap:8px;width:max-content;padding:6px 18px;border-radius:22px;background:var(--fx-fill);color:var(--fx-ink);box-shadow:0 2px 8px #283c3410;transform:translate(-50%,-50%);animation:feedback-quick .3s both;will-change:transform,opacity}
.feedback-badge strong{font-size:20px;font-weight:700;line-height:26px;white-space:nowrap}.feedback-spark{font-size:22px;line-height:26px}.feedback-particles{position:absolute;inset:0}.feedback-bit{position:absolute;width:3px;height:4px;left:0;top:0;border-radius:2px;background:var(--bit);animation:feedback-particle .22s var(--delay) both}.feedback-bit:nth-child(3n){border-radius:50%}
.session-hint{min-height:42px;display:flex;align-items:center;justify-content:center;margin:0 0 8px;flex:none}.card.entry{animation:card-arrive .16s ease-out}
@keyframes feedback-quick{0%{opacity:0;transform:translate(-50%,-35%) scale(.85)}20%,55%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-65%) scale(.96)}}
@keyframes feedback-particle{0%{opacity:0;transform:translate(0,0) scale(.3)}15%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.4) rotate(var(--spin))}}
@keyframes card-arrive{from{opacity:.8;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.feedback-badge{animation:none;transform:translate(-50%,-50%)}.feedback-particles{display:none}.card.entry{animation:none}}
.completion-hero{display:flex;align-items:center;justify-content:center;gap:18px;width:100%;max-width:490px}.chapter-illustration{width:200px;max-width:50%;height:auto;flex:none}.completion-hero .completion-number{font-size:88px;min-width:148px}.completion-hero .completion-number span{font-size:10px;letter-spacing:1px}.score-complete h1{max-width:610px;line-height:1.5}.score-complete .completion-verdict{max-width:480px;font-size:14px;line-height:1.9;color:var(--muted);padding:0 12px}.score-complete{gap:14px}.score-complete .completion-count{margin-top:5px}
@media(max-width:480px){.completion-hero{gap:3px}.chapter-illustration{width:166px}.completion-hero .completion-number{font-size:73px;min-width:130px}.completion-hero .completion-number span{font-size:9px}.score-complete h1{font-size:23px}.score-complete .completion-verdict{font-size:12px;max-width:330px}.score-complete{padding-top:20px;gap:11px}}

/* Topic-matched illustrations scroll with the question; controls stay fixed. */
.question-art{width:210px;height:151px;margin:0 auto 13px;pointer-events:none;flex:none}.question-illustration{display:block;width:100%;height:100%}.card-content{min-height:0;overscroll-behavior-y:contain;padding-top:12px}.card-tag,.card-foot{flex-shrink:0}
@media(max-width:760px){.question-art{width:167px;height:120px;margin-bottom:10px}}
@media(max-height:720px){.question-art{width:125px;height:90px;margin-bottom:8px}.card-content{padding-top:8px}}
@media(max-height:580px){.question-art{width:100px;height:72px}}

/* Mobile WebView: keep the page still, let only the question text scroll. */
html.quiz-view,body.quiz-view{height:100%;overflow:hidden;overscroll-behavior:none}
body.quiz-view #app{height:var(--app-height,100dvh);overflow:hidden}
.quiz-view .session{height:var(--app-height,100dvh)}
.quiz-view .session-top,.quiz-view .session-progress,.quiz-view .choices,.quiz-view .session-secondary{flex-shrink:0}
.card{touch-action:pan-y pinch-zoom;-webkit-user-select:none}
.card-content{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch}
.card .description{display:block;overflow:visible;-webkit-line-clamp:unset}
body.dialog-open{position:fixed;width:100%;overflow:hidden;overscroll-behavior:none}
dialog{overscroll-behavior:contain;max-height:calc(var(--app-height,100dvh) - 32px)}
dialog.poster-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.poster-dialog .dialog-head{flex-shrink:0;padding:12px 16px}
.dialog-head [data-close]{min-width:44px;min-height:44px}
.poster-dialog .dialog-body{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;min-height:0}
.poster-save-guide{padding:13px 15px;margin-bottom:12px;border-radius:10px;background:#eaf0dc;color:#34482d;font-size:13px;line-height:1.7}
.poster-save-guide[hidden]{display:none}
.poster-preview img{touch-action:pan-y pinch-zoom;-webkit-user-select:auto;user-select:auto;-webkit-touch-callout:default}
.poster-actions{position:sticky;bottom:-1px;background:var(--paper);padding:12px 0 max(12px,env(safe-area-inset-bottom));margin-top:8px;z-index:1}
.poster-actions button{min-height:44px}
.poster-expanded{width:calc(100% - 12px);max-width:900px}
.poster-expanded .poster-preview img{max-width:100%}
@media(max-width:480px){
 .session{padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom))}
 .session-top button,.session-secondary button{min-height:36px}
 .card{padding:16px}.card-foot{gap:8px}.card-foot button{min-height:40px}
 .poster-dialog{width:calc(100% - 16px);border-radius:14px}
 .poster-dialog .dialog-body{padding:12px}
 .poster-expanded{width:100%;border-radius:0;max-height:var(--app-height,100dvh)}
}
