@charset "UTF-8";
:root{color-scheme:dark;--navy:#151b2f;--panel:#202840;--panel2:#28324d;--line:#3b4560;--pink:#f2b6ce;--cream:#fff7eb;--muted:#b5bfd4;--mint:#bce8c8;--gold:#f4ce8c;--red:#ffa5aa;--radius:24px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--navy);color:var(--cream)}button,input,select,textarea{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px}a{color:var(--pink)}button{color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,4vw,3.5rem);line-height:1.05;letter-spacing:-.04em;margin-bottom:16px}h2{font-size:1.45rem;letter-spacing:-.025em}h3{font-size:1.1rem}p{line-height:1.65}small{font-size:.875rem}.muted{color:var(--muted)}.eyebrow{font-size:.75rem;font-weight:750;letter-spacing:.16em;text-transform:uppercase;color:var(--pink)}.jp{font-family:"Hiragino Kaku Gothic ProN","Yu Gothic","Noto Sans JP",sans-serif;line-height:1.85}.layout{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.sidebar{padding:34px 22px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:30px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:10px;align-items:center;font-weight:800;letter-spacing:.16em;line-height:1.4}.brand svg{width:36px;height:42px}.brand small{display:block;font-size:.69rem;letter-spacing:.3em;color:var(--pink)}.nav{display:grid;gap:8px}.nav button{border:0;background:transparent;text-align:left;display:flex;align-items:center;gap:12px;padding:14px;border-radius:14px;color:var(--muted);font-weight:650}.nav button.active{background:var(--pink);color:var(--navy)}.nav button:hover:not(.active){background:var(--panel)}.nav span:first-child{width:24px;font-size:1.15rem}.side-note{margin-top:auto;padding:16px;border:1px solid var(--line);border-radius:16px;font-size:.875rem;color:var(--muted);line-height:1.6}.side-note strong{display:block;color:var(--cream);margin-bottom:8px}.version{font-size:.75rem;letter-spacing:.06em;color:var(--muted)}.workspace{min-width:0;padding:30px clamp(20px,4vw,66px) 48px;max-width:1480px;width:100%;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:24px}.topbar-title{font-size:.875rem;color:var(--muted)}.topbar-title strong{color:var(--cream)}.profile-select{max-width:200px;background:var(--panel);border:1px solid var(--line);padding:10px 35px 10px 12px;color:var(--cream);border-radius:12px}.pill{display:inline-flex;gap:7px;align-items:center;border:1px solid var(--line);padding:7px 12px;border-radius:999px;font-size:.875rem;white-space:nowrap}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:grid;gap:18px}.hero{display:grid;grid-template-columns:1.35fr 1fr;border:1px solid #4b4058;border-radius:28px;overflow:hidden;background:radial-gradient(ellipse at 80% 40%,#634354 0,transparent 60%),#2c2b42;min-height:310px;margin-bottom:24px}.hero-copy{padding:36px 0 30px 34px;position:relative;z-index:1}.hero-copy h1{max-width:520px}.hero-copy h1 em{color:var(--pink);font-style:normal}.hero-copy p{color:#d8ccdb;max-width:410px;margin-bottom:22px}.hero-art{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 20px 18px;min-width:0}.hero-art:before{content:"筆";position:absolute;font-family:serif;font-size:16rem;font-weight:900;line-height:1;color:#ffffff05;right:-20px;top:6px}.mascot-button{background:none;border:0;position:relative;padding:0;width:185px;max-width:100%;color:inherit}.mascot{width:100%;height:auto;display:block;filter:drop-shadow(0 18px 14px #0004);animation:bob 4s ease-in-out infinite}.mascot.angry{animation:shake .35s ease-in-out}.quote{font-size:.9rem;line-height:1.5;color:#ffe6ef;text-align:center;max-width:295px;min-height:44px;margin-top:8px;margin-bottom:0;position:relative}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;text-decoration:none;background:var(--pink);color:var(--navy);border:1px solid transparent;font-weight:750;min-height:47px;padding:12px 20px;border-radius:12px;transition:background .15s,transform .15s}.button:hover:not(:disabled){background:#ffd4e4;transform:translateY(-1px)}.button.secondary{background:var(--panel2);color:var(--cream);border-color:var(--line)}.button.secondary:hover{background:#374360}.button.ghost{background:transparent;border-color:var(--line);color:var(--muted)}.button.danger{color:var(--red);background:#3d2638;border-color:#704456}.button.small{min-height:39px;padding:8px 12px;font-size:.875rem}.full{width:100%}.stats-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0 30px}.stat{border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:18px 20px}.stat strong{display:block;font-size:1.65rem;letter-spacing:-.04em;margin:6px 0}.stat .icon{float:right;color:var(--pink)}.stat small{color:var(--muted)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-head h2{margin:0}.levels{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:28px}.level{position:relative;background:transparent;border:1px solid var(--line);border-radius:18px;padding:17px;text-align:left;min-height:106px}.level.active{border-color:var(--pink);background:#f2b6ce12}.level strong{font-size:1.9rem;letter-spacing:-.05em;display:block}.level small{display:block;color:var(--muted);margin-top:5px}.level.active strong{color:var(--pink)}.level .check{position:absolute;right:15px;top:18px;font-size:.875rem;color:var(--pink)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.game-card{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:23px;text-align:left;min-height:191px;display:flex;flex-direction:column;align-items:flex-start}.game-card:hover{border-color:var(--pink);background:#28314a}.game-card .symbol{display:grid;place-items:center;width:42px;height:42px;font-size:1.4rem;background:#f2b6ce14;color:var(--pink);border-radius:12px;margin-bottom:19px}.game-card h3{margin-bottom:6px}.game-card p{font-size:.9rem;color:var(--muted);line-height:1.5;margin-bottom:12px}.game-card small{margin-top:auto;color:var(--gold)}.game-card.special{background:#2f3046;border-color:#5e4f61}.panel{border:1px solid var(--line);background:var(--panel);border-radius:22px;padding:26px}.notice{background:#47382e;color:#ffe0ac;border:1px solid #8b6840;padding:14px 18px;border-radius:14px;font-size:.9rem;line-height:1.6;margin-bottom:18px}.notice.success{background:#233a36;border-color:#466e57;color:var(--mint)}.badge{color:var(--mint);font-size:.8rem;font-weight:700}.progressbar{height:7px;background:#3b435a;border-radius:99px;overflow:hidden}.progressbar>span{display:block;height:100%;background:var(--pink);border-radius:99px}.session-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:24px;align-items:start}.game-side{position:sticky;top:25px;text-align:center}.game-side .mascot-button{width:155px}.game-side .quote{font-size:.9rem;min-height:70px}.game-side .panel{padding:18px;margin-top:20px;text-align:left}.question-card{background:var(--cream);color:var(--navy);border-radius:24px;padding:30px;min-height:385px;box-shadow:0 12px 40px #0002;color-scheme:light}.question-card .eyebrow{color:#8e455f}.question-card h2.question{font-size:clamp(1.5rem,4vw,2.2rem);font-weight:750;line-height:1.8;text-align:center;margin:14px 0}.question-card h2.question.big{font-size:clamp(2.5rem,6vw,4.5rem)}.question-card .subtitle{text-align:center;color:#596070;font-size:.95rem;line-height:1.6;margin:0 0 22px}.options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:24px}.option{border:2px solid #ded7d0;background:#fffcf7;color:var(--navy);border-radius:14px;min-height:66px;text-align:left;padding:14px;display:flex;align-items:center;gap:10px;font-weight:650;line-height:1.5}.option .key{color:#7d7080;font-size:.8rem;width:22px;height:24px;flex-shrink:0;border:1px solid #ded3d6;border-radius:5px;display:grid;place-items:center}.option:hover:not(:disabled){border-color:#aa6680;background:#fceaf0}.option.correct{border-color:#34744a;background:#dff0e1}.option.incorrect{border-color:#bd4659;background:#fbe0e5}.option:disabled{opacity:1}.question-card .button.secondary{background:#eae1df;color:var(--navy);border-color:#d0c5c4}.question-card input{width:100%;border:2px solid #9b8490;border-radius:12px;background:#fff;color:var(--navy);padding:15px;font-size:1.4rem;margin:8px 0 14px}.helper{font-size:.875rem;color:#5a596a;line-height:1.5}.tiles{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:22px 0}.tile{border:1px solid #bfaeb7;background:#fff9f7;color:var(--navy);border-radius:11px;min-width:50px;min-height:54px;padding:7px 12px;font-size:1.5rem;box-shadow:0 3px 0 #d5c5c9}.tile.used{visibility:hidden}.slot{border:2px dashed #bba9b2;background:#f0e5e4;box-shadow:none;min-width:50px}.tile.chunk{font-size:1.05rem;min-width:65px}.fixed-token{background:#e6d4dd;font-size:1.05rem;padding:9px 12px;border-radius:8px;align-self:center}.feedback{padding:20px;border-radius:16px;margin-top:22px;line-height:1.7;background:#e0eedf;border:1px solid #92b79a}.feedback.wrong{background:#fae0df;border-color:#d1999d}.feedback h3{margin:0 0 8px}.feedback p{margin-bottom:14px}.feedback .button{background:var(--navy);color:var(--cream)}.hint-box{border-left:3px solid #bc7893;background:#f1e4e8;color:#634355;padding:12px;margin-top:18px;font-size:.9rem;line-height:1.6}.reading-text{font-size:1.12rem;line-height:2.15;border:1px solid #dccfc9;background:#fffdf8;border-radius:16px;padding:22px;margin:20px 0;white-space:pre-wrap}.reading-text+.helper{margin-top:-6px}.game-head{margin:0 0 18px}.game-head h1{font-size:1.6rem;margin:8px 0 16px}.game-tools{display:flex;justify-content:space-between;gap:10px;margin-top:18px;flex-wrap:wrap}.timer{color:var(--gold);font-variant-numeric:tabular-nums}.center{text-align:center}.result-number{font-size:4.5rem;letter-spacing:-.06em;line-height:1.1;color:var(--pink);margin:18px 0}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0}.result-grid>div{padding:16px;background:var(--panel2);border-radius:14px}.result-grid strong{display:block;font-size:1.8rem;color:var(--gold)}.result-grid small{color:var(--muted)}.review-list{display:grid;gap:10px;margin-top:20px}.review-item{border:1px solid var(--line);border-radius:14px;padding:16px;line-height:1.7}.review-item p{margin:4px 0;color:var(--muted)}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.tabs .active{background:var(--pink);color:var(--navy);border-color:var(--pink)}.search{background:var(--panel);border:1px solid var(--line);color:var(--cream);border-radius:12px;padding:13px 16px;width:100%;margin-bottom:18px}.word-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.word{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:18px;overflow-wrap:anywhere}.word h3{font-size:1.5rem;margin-bottom:0}.word .reading{color:var(--pink);font-size:.9rem}.word p{font-size:.9rem;margin:8px 0}.word .button{margin-top:8px}.pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:24px}.setting-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border:0}.setting-row label{font-weight:650}.setting-row p{margin:6px 0 0;color:var(--muted);font-size:.875rem;max-width:480px}.setting-row select{max-width:180px;background:var(--panel2);color:var(--cream);border:1px solid var(--line);border-radius:10px;padding:10px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;margin:10px 0}th,td{text-align:left;border-bottom:1px solid var(--line);padding:14px 12px;font-size:.9rem}th{color:var(--muted);font-weight:600}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-top:16px}.day{padding:12px 2px;background:var(--panel2);border:1px solid var(--line);border-radius:12px;text-align:center;font-size:.875rem}.day.done{background:#bce8c81a;border-color:#759a7a;color:var(--mint)}.day strong{display:block;font-size:1.2rem;margin-top:6px}.footer{color:var(--muted);font-size:.75rem;line-height:1.6;margin-top:32px;text-align:center}.empty{padding:35px;text-align:center}.empty p{max-width:500px;margin:12px auto 22px;color:var(--muted)}details{border-bottom:1px solid var(--line);padding:15px 0}summary{cursor:pointer;font-weight:650;line-height:1.6}details p{color:var(--muted);margin:12px 0}.profile-list{display:grid;gap:10px}.profile-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;background:var(--panel2);border-radius:14px}.profile-row strong{display:block;overflow-wrap:anywhere}.profile-row small{color:var(--muted)}dialog{border:1px solid var(--line);border-radius:24px;background:var(--panel);color:var(--cream);padding:28px;width:min(92vw,500px);box-shadow:0 24px 100px #0007}dialog::backdrop{background:#080d20bb;backdrop-filter:blur(5px)}dialog input{width:100%;padding:12px;background:var(--navy);border:1px solid var(--line);border-radius:10px;color:var(--cream);margin:12px 0 20px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.error{color:var(--red);font-size:.9rem}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--cream);color:var(--navy);padding:14px 22px;border-radius:14px;box-shadow:0 8px 35px #0007;max-width:90vw;z-index:10;display:none;line-height:1.5}#toast.show{display:block}.skip{position:fixed;top:-100px;z-index:20;background:var(--cream);color:var(--navy);padding:15px}.skip:focus{top:0}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.file-input{display:none}.stat-goal{font-size:.8rem;margin-top:9px;color:var(--muted)}.storage-status{font-size:.8rem;color:var(--muted)}.chip{font-size:.8rem;border-radius:7px;padding:4px 7px;background:#f2b6ce17;color:var(--pink)}
@keyframes bob{50%{transform:translateY(-5px) rotate(1deg)}}@keyframes shake{25%{transform:rotate(-5deg)}75%{transform:rotate(5deg)}}
@media(min-width:1450px){.hero{min-height:340px}.hero-art .mascot-button{width:205px}}
@media(max-width:1120px){.layout{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding:28px 15px}.workspace{padding:25px 26px 40px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.session-layout{grid-template-columns:minmax(0,1fr) 170px;gap:16px}.game-side .mascot-button{width:130px}.stats-strip{gap:9px}.stat{padding:15px}.hero-copy{padding-left:27px}.hero-art .mascot-button{width:155px}}
@media(max-width:800px){.layout{display:block}.sidebar{position:relative;height:auto;padding:18px 20px;border-right:0;border-bottom:1px solid var(--line);flex-direction:row;align-items:center;justify-content:space-between;gap:15px}.sidebar .nav{display:flex;gap:5px}.nav button{padding:10px}.nav button span:last-child{display:none}.side-note,.version{display:none}.brand{font-size:.85rem}.brand svg{width:29px;height:34px}.workspace{padding:22px 20px 40px}.hero{min-height:280px}.hero-copy{padding:28px 0 26px 24px}.hero-copy h1{font-size:2.35rem}.hero-copy p{font-size:.9rem}.hero-art{padding:15px}.hero-art .mascot-button{width:145px}.hero-art .quote{font-size:.8rem}.session-layout{display:flex;flex-direction:column-reverse;gap:10px}.session-layout>section{width:100%}.game-side{position:static;display:flex;align-items:center;gap:15px;width:100%;text-align:left;min-height:95px}.game-side .mascot-button{width:70px;flex-shrink:0}.game-side .quote{text-align:left;min-height:0;margin:0;max-width:none;font-size:.9rem}.game-side .panel{display:none}.question-card{padding:24px}.word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{padding-bottom:18px}.topbar-title{font-size:.8rem}}
@media(max-width:520px){.workspace{padding:20px 14px 32px}.sidebar{padding:14px}.sidebar .brand{gap:7px}.nav button{padding:10px 9px}.nav span:first-child{width:18px}.hero{grid-template-columns:1fr;position:relative;min-height:310px}.hero-copy{padding:25px 20px 22px;max-width:100%}.hero-copy h1{font-size:2.45rem;max-width:245px;margin-bottom:15px}.hero-copy p{max-width:220px;margin-bottom:20px}.hero-art{position:absolute;right:4px;top:45px;width:135px;pointer-events:none;padding:0}.hero-art .mascot-button{width:125px;pointer-events:auto}.hero-art .quote{display:none}.hero-art:before{font-size:11rem;right:0}.hero-copy .eyebrow{font-size:.65rem}.stats-strip{grid-template-columns:repeat(2,minmax(0,1fr));margin:18px 0 24px}.stat strong{font-size:1.5rem}.levels{gap:7px;margin-bottom:24px}.level{padding:12px 9px;min-height:92px;border-radius:14px}.level strong{font-size:1.65rem}.level small{font-size:.7rem}.level .check{right:8px;top:13px;font-size:.7rem}.grid{gap:10px}.game-card{padding:16px;min-height:201px;border-radius:17px}.game-card h3{font-size:1rem}.game-card p{font-size:.8rem}.game-card small{font-size:.75rem}.game-card .symbol{margin-bottom:14px;width:36px;height:36px}.section-head h2{font-size:1.2rem}.section-head>.muted{font-size:.8rem}.options{grid-template-columns:1fr;gap:10px;margin-top:20px}.option{min-height:54px;padding:12px}.question-card{padding:20px 16px;min-height:340px}.question-card h2.question{font-size:1.35rem}.question-card h2.question.big{font-size:3rem}.question-card .subtitle{font-size:.9rem}.reading-text{padding:16px;font-size:1.05rem;line-height:2.1}.question-card .game-tools .button{font-size:.8rem;padding:10px 12px}.panel{padding:20px}.result-grid{gap:8px}.result-grid>div{padding:14px 7px}.result-grid small{font-size:.75rem}.setting-row{align-items:flex-start;flex-direction:column;gap:12px}.setting-row select{width:100%;max-width:none}.profile-row{flex-direction:column;align-items:flex-start}.word-grid{gap:9px}.word{padding:15px}.word h3{font-size:1.3rem}.word p{font-size:.8rem}.week{gap:4px}.day{font-size:.7rem}.day strong{font-size:1rem}.topbar-title .detail{display:none}.topbar .pill{padding:7px 9px;font-size:.8rem}.profile-select{max-width:160px;font-size:.875rem}.tile{min-width:40px;min-height:47px;padding:5px 9px;font-size:1.3rem}.tile.chunk{font-size:.95rem}.tiles{gap:8px}.game-head h1{font-size:1.4rem}.result-number{font-size:3.8rem}}
@media(max-width:520px){.hero-copy h1{max-width:none;font-size:2.15rem}.hero-copy p{max-width:none}.hero-art{position:relative;top:auto;right:auto;width:100%;padding:0 20px 20px;display:flex;flex-direction:row;gap:12px;justify-content:flex-start;pointer-events:auto}.hero-art .mascot-button{width:70px;flex:0 0 70px}.hero-art .quote{display:block;text-align:left;font-size:.8rem;margin:0;min-height:0;max-width:none}.hero-art:before{display:none}.dialog-actions{flex-wrap:wrap}.profile-select{min-width:0}.topbar>.row{gap:7px}.question-card h2.question{overflow-wrap:anywhere}}
.source-note{margin-top:28px;padding:18px;border:1px solid var(--line);border-radius:14px;color:var(--muted);font-size:.875rem;line-height:1.7}.source-credit{line-height:1.8}.source-credit a{overflow-wrap:anywhere}.feedback>p{white-space:pre-line}.source-examples{font-size:.95rem;border-color:#bc9fa8}.source-examples p{line-height:1.9}.source-examples summary{color:#4c3942}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.kanji-index { margin-bottom: 16px; }
.kanji-index ol { margin-bottom: 0; padding-inline-start: 1.75rem; }
.kanji-index li { margin-block: .45rem; line-height: 1.75; overflow-wrap: anywhere; }

/* The entry course uses the same type and palette as the rest of the dojo. */
.starter-entry{grid-column:1 / -1;display:flex;gap:24px;justify-content:space-between;align-items:center;background:linear-gradient(115deg,#362943,var(--panel));border-color:#715368}
.starter-entry p:not(.eyebrow){max-width:58ch;line-height:1.55;margin:.5rem 0 0}
.starter-entry-action{display:grid;justify-items:center;gap:.6rem;flex-shrink:0}
.starter-entry-action small{color:var(--muted)}
.starter-path,.starter-exercise,.starter-summary{max-width:820px;margin:16px auto 0}
.starter-heading{display:grid;grid-template-columns:1fr minmax(100px,180px);gap:20px;align-items:center;margin:16px 0 24px}
.starter-heading h1,.starter-exercise h1{font-size:clamp(1.65rem,4vw,2.5rem);line-height:1.22;margin:.45em 0}
.starter-heading .muted,.starter-exercise>p:not(.eyebrow){line-height:1.6}
.starter-mascot{max-width:154px;margin:auto}
.starter-mascot svg{display:block;width:100%;height:auto}
.starter-lessons{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:12px}
.starter-lesson{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:16px}
.starter-lesson.recommended{border-color:#bd84a0}
.starter-lesson h2{font-size:1.13rem;margin:.2em 0}
.starter-lesson small,.starter-lesson p{color:var(--muted);margin:0}
.starter-step{display:grid;place-items:center;border-radius:50%;width:2.4rem;height:2.4rem;background:#42344b;color:var(--pink);font-weight:800}
.starter-exercise .progressbar{background:#e7dbdf}
.starter-exercise .progressbar span{background:#a8557c}
.starter-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:18px 0}
.starter-card{display:grid;align-content:start;gap:5px;background:#fffcf7;border:1px solid #dfd5d7;border-radius:12px;padding:12px}
.starter-card strong{font-size:1.23rem;overflow-wrap:anywhere}
.starter-card span{color:#784157}
.starter-card p{margin:0}
.starter-note{margin:0 0 18px}
.starter-exercise .feedback h2{font-size:1.1rem;margin:0 0 8px}
@media(max-width:560px){
 .starter-entry{align-items:flex-start;flex-direction:column}
 .starter-entry-action{justify-items:start}
 .starter-heading{grid-template-columns:1fr}
 .starter-mascot{display:none}
 .starter-lesson{grid-template-columns:auto 1fr;gap:.65rem}
 .starter-lesson .button{grid-column:2;justify-self:start}
}

.starter-card .starter-listen{justify-self:start;min-height:40px;margin-top:.3rem}

.starter-repeat-title{font-size:1.15rem;margin:1.25rem 0 0}
.starter-model{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.8rem;padding:14px 16px;background:#fffcf7;border:1px solid #dfd5d7;border-radius:14px}
.starter-model .eyebrow{margin:0 0 .4rem}
.starter-model strong{display:block;font-size:clamp(1.25rem,4vw,1.8rem);overflow-wrap:anywhere}
.starter-model small{display:block;color:#784157;margin-top:.3rem}
.starter-gap{font-size:clamp(1.1rem,3vw,1.45rem);font-weight:700;overflow-wrap:anywhere}

.fude-head{transform-origin:77px 117px}
.fude.curious .fude-head{transform:rotate(-7deg)}
.fude.hint .fude-head{transform:rotate(4deg)}
.fude-tail{transform-origin:125px 172px}
.fude.hint .fude-tail{transform:rotate(-8deg)}
.fude.combo .fude-tail,.fude.finish .fude-tail{animation:fude-tail-wag .62s ease-in-out 2}
.fude-ink path{stroke-dasharray:96;animation:fude-brush .55s ease-out both}
.starter-fude-reaction{display:flex;align-items:center;gap:.7rem;margin:.25rem 0 .75rem}
.starter-fude-reaction .fude{width:62px;flex:0 0 62px;filter:none;animation:none}
.starter-fude-reaction p{margin:0;font-weight:600}
@keyframes fude-tail-wag{0%,100%{transform:rotate(0)}45%{transform:rotate(-12deg)}70%{transform:rotate(7deg)}}
@keyframes fude-brush{from{stroke-dashoffset:96}to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.fude,.fude .fude-tail,.fude .fude-ink path{animation:none!important}}

.practice-model{border-color:#b89ba9;color:#533649;padding:0 0 .7rem}
.practice-model p,.source-examples p{color:#453c4d}
@media(max-width:800px){
 .sidebar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:12px 14px}
 .sidebar .brand{display:none}
 .sidebar .nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%}
 .nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:3px;min-height:52px;padding:6px 2px}
 .nav button span:first-child{width:auto;line-height:1}
 .nav button span:last-child{display:inline;font-size:.76rem;line-height:1.15}
 .session-layout{flex-direction:column}
 .game-side{min-height:0;padding:4px 0 0}
 .game-side .mascot-button{width:50px}
 .keyboard-help{display:none}
 .game-head .button.small,.game-tools .button.small{min-height:44px}
}
@media(max-width:520px){
 .hero{min-height:0}
 .hero-copy{padding:20px 16px}
 .hero-copy h1{font-size:clamp(1.7rem,7vw,2.2rem);max-width:calc(100% - 76px)}
 .hero-copy p{max-width:calc(100% - 76px);margin-bottom:1rem}
 .hero-art{width:72px;top:34px;right:8px}
 .hero-art .mascot-button{width:68px}
 .hero-art::before{display:none}
 .hero-copy .row{gap:8px}
 .hero-copy .button{padding:9px 10px;min-height:44px;font-size:.85rem}
 .topbar{gap:6px}
 .topbar .row{gap:6px}
 .profile-select{max-width:134px}
 .question-card{min-height:0}
}
