@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap');
:root{--ink:#11120f;--bg:#fafaf7;--paper:#fff;--muted:#777a71;--line:#171814;--soft:#edeee8;--accent:#d9ff57;--accent-text:#11120f}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans','Noto Sans JP',-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN',Meiryo,sans-serif;transition:background .25s,color .25s}button,a{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #fa6e37;outline-offset:3px}.header{height:90px;display:flex;align-items:center;justify-content:space-between;padding:0 5%;background:var(--paper);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;letter-spacing:.09em;font-size:16px;white-space:nowrap}.brand-icon{width:39px;height:39px;background:var(--ink);color:var(--paper);display:grid;place-items:center;font-size:22px;font-weight:900;letter-spacing:0;border-radius:50%}.brand small{display:block;font-size:9px;color:var(--muted);letter-spacing:.13em;margin-top:3px;font-weight:700}.header-right{display:flex;align-items:center;gap:28px}.balance{display:flex;align-items:baseline;gap:5px}.balance span{font-size:10px;font-weight:800;letter-spacing:.12em}.balance strong{font-size:25px;line-height:1}.pill{border:1.5px solid var(--line);border-radius:99px;padding:12px 20px;background:transparent;font-weight:700;font-size:12px;white-space:nowrap}.pill:hover{background:var(--ink);color:var(--paper)}.pill span{margin-left:12px}.ticker{display:flex;align-items:center;gap:22px;padding:10px 5%;border-bottom:1px solid var(--line);font-size:10px;font-weight:700;letter-spacing:.12em}.ticker span:nth-child(2){letter-spacing:0;color:var(--muted);font-weight:500}.ticker-right{margin-left:auto}main{max-width:1500px;margin:auto;padding:0 5% 100px;min-height:70vh}.hero{padding:75px 0 63px;display:grid;grid-template-columns:1fr auto;align-items:end;gap:30px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;display:flex;align-items:center;gap:10px}.eyebrow:before{content:'';display:inline-block;width:9px;height:9px;background:var(--ink);border-radius:50%}.hero h1{font-size:clamp(48px,7.2vw,106px);line-height:1.16;letter-spacing:-.075em;margin:25px 0 22px;font-weight:900}.hero h1 .marker{position:relative;z-index:0}.hero h1 .marker:after{content:'';position:absolute;height:25%;bottom:3%;left:0;right:-5px;background:var(--accent);z-index:-1}.hero p,.lead{font-size:14px;line-height:2;color:var(--muted);margin:0}.hero-stamp{width:130px;height:130px;border:1px solid var(--line);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(9deg);font-weight:800}.hero-stamp b{font-size:43px;line-height:1}.hero-stamp span{font-size:9px;letter-spacing:.15em;margin-top:9px}.section-head{border-top:2px solid var(--line);display:flex;align-items:baseline;justify-content:space-between;padding:20px 0}.section-head h2{margin:0;font-size:21px;letter-spacing:-.04em}.section-head h2 span{font-size:11px;letter-spacing:.15em;margin-right:14px}.section-head p{color:var(--muted);font-size:11px;margin:0}.grade-grid{display:grid;grid-template-columns:repeat(6,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}.grade-card{min-height:190px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--paper);text-align:left;padding:20px;display:flex;flex-direction:column;transition:background .2s,color .2s}.grade-card:hover,.grade-card:focus-visible{background:var(--ink);color:var(--paper)}.grade-card .num{font-size:10px;letter-spacing:.15em;font-weight:800}.grade-card strong{font-size:47px;line-height:1;letter-spacing:-.08em;margin:auto 0 10px}.grade-card strong small{font-size:15px;letter-spacing:0;margin-left:5px}.grade-card .bottom{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700}.arrow{font-size:21px;line-height:1}.how{margin-top:50px;background:var(--soft);padding:24px 28px;display:flex;align-items:center;gap:28px}.how-badge{border:1px solid var(--line);border-radius:50%;width:48px;height:48px;display:grid;place-items:center;font-weight:800;flex:none}.how b{font-size:14px}.how p{font-size:12px;color:var(--muted);margin:5px 0 0;line-height:1.8}.how .how-right{margin-left:auto;font-size:10px;font-weight:800;letter-spacing:.13em;white-space:nowrap}.page-top{padding:42px 0 50px}.back{border:0;background:none;padding:0;font-size:12px;font-weight:700}.back:hover{text-decoration:underline}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-top:55px}.page-heading h1{font-size:clamp(38px,5vw,68px);letter-spacing:-.07em;line-height:1.2;margin:15px 0}.page-heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.8}.big-number{font-size:clamp(80px,12vw,160px);font-weight:900;line-height:.8;letter-spacing:-.1em;color:var(--soft)}.subjects{display:grid;grid-template-columns:1fr 1fr;border-left:1px solid var(--line);border-top:1px solid var(--line)}.subject{border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-height:285px;padding:34px;text-align:left;display:flex;flex-direction:column;background:var(--paper)}.subject:first-child{background:var(--ink);color:var(--paper)}.subject:hover{background:var(--accent);color:var(--accent-text)}.subject .n{font-size:12px;letter-spacing:.16em;font-weight:800}.subject h2{font-size:42px;letter-spacing:-.06em;margin:22px 0 9px}.subject p{font-size:13px;opacity:.65;line-height:1.8}.subject-foot{margin-top:auto;display:flex;justify-content:space-between;align-items:end;font-size:11px;letter-spacing:.1em;font-weight:800}.subject-foot span:last-child{font-size:28px}.notice{font-size:12px;color:var(--muted);line-height:1.9;margin-top:18px}.quiz-wrap{max-width:850px;margin:0 auto}.quiz-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin:48px 0 20px}.quiz-head h1{font-size:18px;margin:8px 0 0}.quiz-count{font-size:12px;font-weight:800;letter-spacing:.1em}.quiz-count strong{font-size:27px}.progress{height:5px;background:var(--soft)}.progress div{height:100%;background:var(--ink);transition:width .25s}.question{padding:44px 0 25px}.question-label{font-size:11px;letter-spacing:.16em;font-weight:800}.question h2{font-size:clamp(25px,3vw,38px);line-height:1.6;letter-spacing:-.04em;margin:20px 0 6px}.choices{display:grid;gap:10px}.choice{display:flex;align-items:center;gap:20px;width:100%;text-align:left;border:1px solid var(--line);background:var(--paper);min-height:68px;padding:12px 20px;font-weight:700;font-size:15px}.choice:not(:disabled):hover{background:var(--ink);color:var(--paper)}.choice:disabled{cursor:default}.choice-letter{width:34px;height:34px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:11px;flex:none}.choice.correct{background:var(--accent);color:var(--accent-text);border-color:var(--line)}.choice.wrong{background:var(--soft);color:var(--muted)}.feedback{border:1px solid var(--line);border-top:0;padding:24px;background:var(--paper)}.feedback strong{font-size:21px}.feedback p{font-size:13px;line-height:1.9;margin:10px 0 20px}.solid{border:1px solid var(--ink);background:var(--ink);color:var(--paper);padding:15px 23px;font-size:13px;font-weight:800;min-height:50px}.solid:hover{background:var(--accent);color:var(--accent-text)}.result{text-align:center;padding:70px 20px}.result h1{font-size:clamp(38px,6vw,72px);letter-spacing:-.06em;margin:20px 0}.result-score{font-weight:900;font-size:80px;letter-spacing:-.08em}.result-score small{font-size:20px;letter-spacing:0}.result p{color:var(--muted);line-height:2;font-size:14px}.result-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:30px}.shop-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}.theme-card{border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--paper);padding:15px}.swatch{height:150px;padding:18px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid rgba(0,0,0,.15)}.swatch small{font-size:10px;font-weight:800;letter-spacing:.15em}.swatch strong{font-size:26px;letter-spacing:-.05em}.theme-info{display:flex;justify-content:space-between;align-items:center;margin:17px 0 13px;gap:5px}.theme-info b{font-size:14px}.theme-info span{font-size:11px;font-weight:700;color:var(--muted)}.theme-action{width:100%;padding:12px 5px;background:transparent;border:1px solid var(--line);font-size:12px;font-weight:700}.theme-action:hover:not(:disabled){background:var(--ink);color:var(--paper)}.theme-action:disabled{opacity:.45;cursor:default}.shop-note{background:var(--soft);padding:20px;margin-top:25px;font-size:12px;line-height:1.9}.danger{margin-top:40px;background:none;border:0;color:var(--muted);text-decoration:underline;font-size:11px;padding:4px}footer{border-top:1px solid var(--line);padding:32px 5%;display:flex;justify-content:space-between;gap:20px;font-size:10px;letter-spacing:.08em;color:var(--muted)}footer b{color:var(--ink)}footer div{display:flex;gap:20px}footer p{margin:0}body[data-theme="forest"]{--ink:#173d30;--bg:#f2f5e9;--paper:#fffef5;--muted:#6c7e6b;--line:#284b3b;--soft:#dfe9d3;--accent:#f5df80;--accent-text:#173d30}body[data-theme="soda"]{--ink:#183656;--bg:#f0f9fc;--paper:#fff;--muted:#6a8392;--line:#183656;--soft:#d8f0f3;--accent:#ffdb7a;--accent-text:#183656}body[data-theme="night"]{--ink:#f3f2e9;--bg:#151c36;--paper:#202a4b;--muted:#b3bdd2;--line:#d2d8e7;--soft:#313d61;--accent:#bdeef5;--accent-text:#17213b}body[data-theme="night"] .solid{border-color:var(--line)}body[data-theme="night"] .subject:first-child{background:#f3f2e9;color:#151c36}body[data-theme="night"] .subject:hover{background:var(--accent);color:var(--accent-text)}
@media(max-width:800px){.grade-grid{grid-template-columns:repeat(3,1fr)}.grade-card{min-height:150px}.shop-grid{grid-template-columns:repeat(2,1fr)}.hero-stamp{width:100px;height:100px}.hero-stamp b{font-size:32px}.header{height:75px}.ticker-right{display:none}.hero{padding:55px 0}.subjects{grid-template-columns:1fr 1fr}}@media(max-width:500px){.header{padding:0 5%;height:69px}.brand{font-size:12px;gap:7px}.brand-icon{width:34px;height:34px;font-size:19px}.brand small{font-size:8px}.header-right{gap:10px}.balance span:first-child{display:none}.balance strong{font-size:20px}.pill{padding:10px;font-size:10px}.pill span{margin-left:3px}.ticker{font-size:9px;gap:12px}.ticker span:nth-child(2){font-size:9px}.hero{display:block;padding:52px 0 46px}.hero h1{font-size:clamp(43px,11vw,60px)}.hero-stamp{display:none}.section-head h2{font-size:17px}.section-head p{font-size:10px}.grade-card{padding:14px;min-height:135px}.grade-card strong{font-size:38px}.how{padding:20px;gap:15px}.how-right{display:none}.subjects{grid-template-columns:1fr}.subject{min-height:220px;padding:25px}.subject h2{font-size:34px}.page-heading{margin-top:42px}.big-number{font-size:90px}.quiz-head{margin-top:35px}.question{padding-top:32px}.choice{font-size:13px;gap:12px}.shop-grid{grid-template-columns:repeat(2,1fr)}.swatch{height:115px;padding:12px}.swatch strong{font-size:19px}.theme-card{padding:10px}.theme-info{align-items:start;flex-direction:column}.result-score{font-size:65px}footer{flex-direction:column;line-height:1.7}footer div{flex-direction:column;gap:4px}main{padding-bottom:70px}}
/* Dashboard and account */
.header-link{border:0;background:transparent;font-size:12px;font-weight:800;white-space:nowrap}.header-link:hover{text-decoration:underline}.star-icon{display:inline-block;width:1em;height:1em;vertical-align:-.05em}.how-badge .star-icon{width:22px;height:22px}.big-number .star-icon{width:.8em;height:.8em}.swatch .star-icon{width:.7em;height:.7em;margin-left:3px}.count-panel{background:var(--soft);padding:28px}.count-choices{display:flex;gap:12px;flex-wrap:wrap}.count-choice{width:150px;min-height:130px;border:1px solid var(--line);background:var(--paper);text-align:left;padding:18px}.count-choice b{font-size:42px}.count-choice span{font-weight:700;margin-left:4px}.count-choice small{display:block;font-size:11px;color:var(--muted)}.count-choice.selected{background:var(--ink);color:var(--paper);outline:3px solid var(--accent);outline-offset:-5px}.count-choice.selected small{color:inherit;opacity:.7}.count-panel .solid{margin-top:12px}.dashboard{max-width:1000px;margin:auto}.dash-cards{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);margin:20px 0 30px;background:var(--paper)}.dash-card{padding:22px;border-right:1px solid var(--line)}.dash-card:last-child{border:0}.dash-card small{font-size:11px;color:var(--muted);font-weight:700}.dash-card strong{display:block;font-size:34px;margin-top:8px}.dash-card strong span{font-size:13px}.graph-box,.account-box{border:1px solid var(--line);padding:25px;background:var(--paper);margin:15px 0 22px}.graph-box h2,.account-box h2{font-size:18px;margin:0 0 12px}.graph-area{width:100%;height:auto;display:block;margin-top:15px}.graph-area text{font-family:inherit;fill:var(--muted);font-size:13px}.graph-area .gridline{stroke:var(--soft);stroke-width:1}.graph-area .bar{fill:var(--ink)}.graph-area .value{fill:var(--ink);font-weight:700}.form-grid{display:grid;gap:14px;max-width:480px}.form-grid label{font-weight:700;font-size:12px;display:grid;gap:6px}.form-grid input,.form-grid select{width:100%;border:1px solid var(--line);background:var(--bg);color:var(--ink);padding:12px;font:inherit;min-height:46px}.form-grid button{justify-self:start}.inline-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.info{font-size:12px;line-height:1.9;color:var(--muted)}.status-msg{font-size:13px;line-height:1.8;padding:12px;background:var(--soft);margin:12px 0}.status-msg:empty{display:none}.list-row{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:15px 0;gap:10px}.list-row b{font-size:14px}.list-row small{display:block;color:var(--muted);margin-top:4px}.code{font-family:monospace;letter-spacing:.15em;font-size:18px;font-weight:800}.account-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.account-tabs button.active{background:var(--ink);color:var(--paper)}.quiet-button{border:1px solid var(--line);background:transparent;padding:10px 14px;font-weight:700;font-size:12px}.quiet-button:hover{background:var(--ink);color:var(--paper)}
@media(max-width:700px){.header{height:auto;min-height:72px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px;gap:8px}.header-right{gap:8px;flex-wrap:wrap;justify-content:flex-end}.header-link{font-size:10px}.dash-card{padding:12px}.dash-card strong{font-size:26px}.graph-box,.account-box{padding:17px}.count-choice{width:calc(33.333% - 8px);min-height:110px;padding:12px}}
.delete-button{border:1px solid #a12626;background:#a12626;color:#fff;padding:14px 20px;font-size:13px;font-weight:800;min-height:50px}.delete-button:hover{background:#761717}
.mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mode-choice{background:var(--paper);border:1px solid var(--line);padding:20px;text-align:left}.mode-choice b{display:block;font-size:18px}.mode-choice small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.mode-choice.selected,.time-choice.selected{background:var(--ink);color:var(--paper);outline:3px solid var(--accent);outline-offset:-5px}.mode-choice.selected small{color:inherit;opacity:.75}.settings-title{font-size:15px;margin:30px 0 14px}.count-choice{width:calc((100% - 72px)/7);min-width:78px;min-height:105px}.count-choice b{font-size:32px}.time-choices{display:flex;gap:10px;flex-wrap:wrap}.time-choice{min-width:85px;border:1px solid var(--line);background:var(--paper);padding:16px 20px}.time-choice b{font-size:30px}.time-choice span{font-size:13px;font-weight:bold;margin-left:3px}.quiz-meta{display:flex;align-items:end;gap:20px}.timer-box{border:1px solid var(--line);padding:8px 12px;display:flex;flex-direction:column;text-align:center;min-width:105px}.timer-box span{font-size:10px;font-weight:700}.timer-box strong{font-size:24px;font-variant-numeric:tabular-nums;line-height:1.2}.timer-box .running-low{color:#bb3131}.end-early{margin-top:24px;background:none;border:0;padding:8px 0;text-decoration:underline;font-size:12px;color:var(--muted)}[hidden]{display:none!important}@media(max-width:700px){.count-choice{width:calc(25% - 9px);min-width:0;min-height:80px}.count-choice b{font-size:27px}.mode-choice{padding:14px}.mode-choice b{font-size:15px}.time-choice{min-width:0;flex:1;padding:12px 8px}.timer-box{min-width:82px;padding:6px}.timer-box strong{font-size:20px}.quiz-meta{gap:8px}.quiz-count strong{font-size:24px}}
.subject.subject-mix{grid-column:1 / -1;min-height:210px;background:var(--soft);color:var(--ink)}.subject.subject-mix h2{font-size:36px}.subject.subject-mix:hover{background:var(--accent);color:var(--accent-text)}.question-subject{display:inline-block;background:var(--soft);padding:6px 10px;margin-left:12px;color:var(--ink);font-size:10px;letter-spacing:0}
.result-breakdown{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:12px}.result-breakdown span{padding:10px 16px;background:var(--soft);font-size:13px}
.ranking-intro{background:var(--soft);padding:18px;margin-bottom:18px}.ranking-intro p{margin:5px 0 0}.ranking-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.ranking-tabs button{border:1px solid var(--line);background:var(--paper);padding:10px 16px;font-size:12px;font-weight:700}.ranking-tabs button.selected{background:var(--ink);color:var(--paper)}.rank-table-wrap{overflow-x:auto}.rank-table{border-collapse:collapse;width:100%;min-width:610px;font-size:13px}.rank-table th,.rank-table td{text-align:left;padding:13px 9px;border-bottom:1px solid var(--soft)}.rank-table th{font-size:10px;letter-spacing:.06em;color:var(--muted);white-space:nowrap}.rank-table .rank-number{font-weight:900;font-size:20px;width:60px}.rank-table .rank-name{font-weight:800}.rank-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.rank-card{border:1px solid var(--line);padding:20px;background:var(--paper)}.rank-card small{color:var(--muted);font-size:11px;font-weight:700}.rank-card .place{font-size:40px;letter-spacing:-.05em;font-weight:900;margin:12px 0}.rank-card .place small{font-size:15px;color:var(--ink)}.rank-card p{font-size:12px;margin:0}.rank-card strong{font-size:19px}@media(max-width:600px){.rank-cards{grid-template-columns:1fr}.rank-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 10px}.rank-card .place{grid-column:2;grid-row:1 / span 2;margin:0;font-size:34px}.rank-card p{grid-column:1}}
.topic-grid{display:grid;grid-template-columns:repeat(3,1fr);border-left:1px solid var(--line);border-top:1px solid var(--line)}.topic-card{border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--paper);padding:25px;text-align:left;min-height:180px;display:flex;flex-direction:column}.topic-card:hover,.topic-card.topic-all:hover{background:var(--accent);color:var(--accent-text)}.topic-card.topic-all{background:var(--ink);color:var(--paper)}.topic-card span{font-size:10px;letter-spacing:.14em;font-weight:800}.topic-card b{font-size:23px;letter-spacing:-.05em;margin:auto 0 18px}.topic-card small{font-size:11px;opacity:.75;font-weight:700}.subject.subject-allmix{grid-column:1 / -1;min-height:210px;background:var(--accent);color:var(--accent-text)}.subject.subject-allmix h2{font-size:36px}.subject.subject-allmix:hover{background:var(--ink);color:var(--paper)}@media(max-width:700px){.topic-grid{grid-template-columns:1fr}.topic-card{min-height:135px}.topic-card b{font-size:20px}.subject.subject-allmix{min-height:190px}}
.topic-card.topic-writing{background:#dcefe7;color:#173d30}.topic-card.topic-writing:hover{background:var(--accent);color:var(--accent-text)}.practice-wrap{max-width:1050px;margin:0 auto}.practice-top{padding-bottom:30px}.practice-heading{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-top:50px}.practice-heading h1{font-size:clamp(33px,5vw,58px);letter-spacing:-.06em;margin:16px 0 10px}.practice-index{font-weight:800;letter-spacing:.1em;font-size:12px}.kanji-search{display:flex;gap:15px;align-items:center;font-size:12px;font-weight:800;margin:15px 0}.kanji-search input{border:1px solid var(--line);background:var(--paper);color:var(--ink);font:inherit;padding:12px;max-width:220px}.kanji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(65px,1fr));border-left:1px solid var(--line);border-top:1px solid var(--line)}.kanji-grid button{border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--paper);font-size:27px;min-height:65px}.kanji-grid button:hover{background:var(--accent);color:var(--accent-text)}.kanji-workspace{display:grid;grid-template-columns:minmax(0,440px) 1fr;gap:38px;align-items:start}.write-board{width:100%;aspect-ratio:1;position:relative;border:2px solid var(--line);background:#fff}.write-board svg,.write-board canvas{position:absolute;inset:0;width:100%;height:100%}.write-board canvas,.math-memo canvas{touch-action:none;cursor:crosshair}.grid-guide{fill:none;stroke:#d4d7cf;stroke-width:.45;stroke-dasharray:3 3}.ref-path{fill:none;stroke:#d8ded9;stroke-width:3.1;stroke-linecap:round;stroke-linejoin:round}.ref-path.current-stroke{stroke:#e27b60}.stroke-number{font-size:4px;fill:#9a4e3e;font-weight:700}.guide-hidden{visibility:hidden}@keyframes stroke-reveal{to{stroke-dashoffset:0}}.write-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.write-info h2{font-size:24px;line-height:1.5;letter-spacing:-.04em}.write-info .inline-actions{margin-top:22px}.write-result:not(:empty){background:var(--soft);padding:18px;margin-top:17px}.write-result span{display:block;font-size:11px;font-weight:700}.write-result strong{display:block;font-size:42px}.write-result strong small{font-size:15px}.write-result p{font-size:12px;line-height:1.8;margin:4px 0}.math-memo{border:1px solid var(--line);background:var(--paper);padding:14px;margin-bottom:16px}.math-memo summary{font-size:13px;font-weight:800;cursor:pointer}.math-memo canvas{display:block;width:min(100%,300px);aspect-ratio:1;background:linear-gradient(#f1f4ef 1px,transparent 1px),linear-gradient(90deg,#f1f4ef 1px,transparent 1px),#fff;background-size:25% 25%;border:1px solid #9ba8a0}.math-memo textarea{display:block;width:100%;max-width:430px;min-height:65px;margin:10px 0;border:1px solid var(--line);padding:10px;font:inherit;color:var(--ink);background:var(--paper);resize:vertical}@media(max-width:700px){.kanji-workspace{grid-template-columns:1fr;gap:22px}.write-board{max-width:440px}.practice-heading{margin-top:35px}.kanji-grid{grid-template-columns:repeat(auto-fill,minmax(54px,1fr))}.kanji-grid button{min-height:54px;font-size:23px}}
.brand-icon{background:#d7ff51;color:#151716;border-radius:11px}
