:root{--paper:#f7f8f3;--white:#fff;--ink:#24372f;--muted:#64736a;--green:#2a6555;--green-dark:#1f5144;--mint:#eaf2e9;--line:#dbe3d9;--orange:#c17439;--radius:20px;--font:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-block-start:24px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased}button,input,select{font:inherit;color:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:var(--green);text-underline-offset:4px}button,input,select{border-radius:10px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--orange);outline-offset:4px}button{transition:background .15s,transform .15s}button:not(:disabled):active{transform:translateY(1px)}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-definitions{position:absolute;width:0;height:0;overflow:hidden}.wrap{width:min(1160px,calc(100% - 64px));margin-inline:auto}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}[hidden]{display:none!important}.skip-link{position:fixed;top:8px;left:8px;z-index:20;padding:12px 20px;background:white;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}h1,h2,h3,p{margin:0}fieldset{min-width:0;border:0;margin:0;padding:0}legend{padding:0}input[type=checkbox],input[type=radio]{accent-color:var(--green)}input[type=checkbox]{width:19px;height:19px;flex-shrink:0}input:not([type=radio]):not([type=checkbox]),select{min-height:48px;border:1px solid #aebdb0;background:white;padding:10px 12px;max-width:100%}select{cursor:pointer}summary{cursor:pointer}button.text-button{padding:6px 0;min-height:44px;border:0;background:transparent;color:var(--green);font-size:14px;font-weight:600}.text-button:hover{text-decoration:underline;text-underline-offset:4px}
.site-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-block:25px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:700;font-size:21px;letter-spacing:.03em;color:var(--ink);white-space:nowrap}.brand-mark{position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--green);color:white;font-size:27px;line-height:1;padding-right:4px}.brand-mark>span{position:absolute;right:5px;top:3px;font-size:15px;color:#e8c8a0}.brand-emphasis{color:var(--green)}.site-header nav{display:flex;align-items:center;gap:28px;font-size:14px}.site-header nav>a{text-decoration:none;color:var(--muted)}.site-header nav>a:hover{text-decoration:underline}
.hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:36px;align-items:center;padding-block:43px 40px}.eyebrow{font-size:13px;font-weight:600;color:var(--green);letter-spacing:.08em}.eyebrow>span{color:var(--orange);margin-right:4px}h1{font-size:clamp(32px,3.4vw,43px);line-height:1.5;letter-spacing:.035em;margin-block:7px 8px;font-weight:750}h1 em{color:var(--green);font-style:normal}.hero-copy{font-size:15px;color:var(--muted);line-height:1.9}.mobile-break{display:none}.word-chain{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;max-width:440px;justify-self:end;width:100%;padding-block:20px 40px;transform:rotate(-3deg)}.chain-kana{display:grid;place-items:center;width:55px;height:55px;background:white;border:1px solid var(--line);border-radius:16px;font-size:29px;font-weight:700;box-shadow:0 4px 0 #e7eade}.chain-kana.next{background:var(--green);color:white;border-color:var(--green);box-shadow:0 4px 0 #c4d9c8}.chain-line{color:#93a594;font-size:22px}.chain-word{display:flex;align-items:center;gap:10px;background:#eef2e5;padding:14px 16px;border:1px solid #d6e0cc;border-radius:16px;font-size:16px;font-weight:600;white-space:nowrap}.chain-word>svg{width:32px;height:32px;color:#526b40}.chain-word small{display:block;font-weight:400;font-size:11px;letter-spacing:.06em;color:var(--muted)}.chain-caption{position:absolute;bottom:2px;left:50%;transform:translateX(-50%) rotate(3deg);font-size:11px;letter-spacing:.12em;white-space:nowrap;color:var(--muted)}
.category-fieldset{margin-block-end:28px}.category-fieldset>legend{font-size:15px;font-weight:700;margin-block-end:14px}.step-number{display:inline-grid;place-items:center;width:23px;height:23px;background:var(--mint);border-radius:50%;font-size:12px;color:var(--green);margin-right:7px;vertical-align:2px}.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.category-card{position:relative;display:flex;flex-direction:column;background:rgba(255,255,255,.7);border:1px solid var(--line);border-radius:15px;padding:17px 20px 14px;cursor:pointer;min-width:0;transition:background .15s,border-color .15s}.category-card:hover{border-color:#9caf99;background:white}.category-card:has(input:checked){background:var(--mint);border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.category-card:has(input:focus-visible){outline:3px solid var(--orange);outline-offset:4px}.category-card>input{position:absolute;width:1px;height:1px;margin:0;opacity:0}.category-visual{display:flex;justify-content:space-between;align-items:center;margin-block-end:7px;color:var(--green)}.category-visual>svg{width:31px;height:31px}.selected-marker{visibility:hidden;display:grid;place-items:center;color:white;background:var(--green);border-radius:50%;font-size:12px;width:19px;height:19px}.category-card:has(input:checked) .selected-marker{visibility:visible}.category-name{font-weight:700;font-size:15px;line-height:1.6}.category-count{font-size:12px;color:var(--muted);margin-top:3px;font-variant-numeric:tabular-nums}
.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,292px);gap:26px;align-items:start}.search-column{min-width:0}.search-panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:25px 28px 0;box-shadow:0 4px 20px #203e2810;scroll-margin-top:20px}.search-panel>h2{font-size:17px;margin-block-end:17px;line-height:1.5}.search-modes{display:flex;gap:5px;background:#f1f4ef;padding:4px;border-radius:10px;width:max-content;max-width:100%;margin-block-end:21px}.search-modes label{position:relative;min-width:0}.search-modes input{position:absolute;opacity:0;width:1px;height:1px}.search-modes label>span{display:block;font-size:13px;color:var(--muted);padding:8px 19px;border-radius:7px;cursor:pointer;line-height:1.5}.search-modes input:checked+span{color:var(--green);font-weight:700;background:white;box-shadow:0 1px 5px #263b2514}.search-modes input:focus-visible+span{outline:3px solid var(--orange);outline-offset:2px}.input-label{display:block;font-weight:700;font-size:14px;margin-bottom:8px}.search-input-row{display:flex;gap:10px;align-items:stretch;min-width:0}.query-wrap{position:relative;flex:1;min-width:0}.query-wrap>svg{position:absolute;left:15px;top:15px;width:23px;height:23px;color:#708674}.query-wrap>input{width:100%;min-height:56px!important;padding:10px 16px 10px 49px!important;font-size:22px;border-radius:10px!important}.query-wrap>input::placeholder{font-size:16px;color:#829084}input[aria-invalid=true]{border-color:#b44535!important}.primary-button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:11px 23px;border:1px solid var(--green);background:var(--green);color:white;border-radius:10px;font-size:16px;font-weight:650;white-space:nowrap}.primary-button:hover:not(:disabled){background:var(--green-dark)}.primary-button>svg{width:19px;height:19px}.field-help{color:var(--muted);font-size:12px;line-height:1.8;margin-top:9px}.form-error{margin-top:10px;color:#a8392d;font-size:14px}.suggestions{display:flex;align-items:center;gap:10px;margin-block:14px 19px;font-size:12px;color:var(--muted)}.suggestions>div{display:flex;gap:6px}.suggestions [data-prefix]{border:1px solid #e1e7dc;background:#f6f8f2;color:var(--green);width:38px;min-height:38px;font-size:14px}.suggestions [data-prefix]:hover{background:var(--mint)}.suggestions .clear-query{margin-left:auto;font-size:12px}.quick-filters{display:flex;flex-wrap:wrap;gap:9px 22px;padding-bottom:18px;font-size:12px}.quick-filters>label,.rule-checks>label{display:flex;align-items:center;gap:7px;cursor:pointer;min-height:32px}.quick-filters input,.rule-checks input{margin:0}.advanced{border-top:1px dashed var(--line);margin-inline:-28px}.advanced>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;padding:15px 28px;font-size:12px;color:var(--muted);min-height:49px}.advanced>summary::-webkit-details-marker{display:none}.details-plus{color:var(--green);font-size:16px}.advanced[open] .details-plus{transform:rotate(45deg)}.advanced-content{padding:0 28px 22px}.filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:6px}.filter-fields>label,.long-vowel-label{font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:6px}.filter-fields input{width:100%;font-size:16px}.long-vowel-label{margin-top:16px}.long-vowel-label>select{font-size:14px}.rule-checks{display:grid;gap:3px;margin-block:12px;font-size:12px}.rule-checks input{width:18px;height:18px}
.results-section{margin-top:27px;min-width:0}.results-toolbar{display:flex;justify-content:space-between;align-items:end;gap:16px}.result-eyebrow{font-size:11px;letter-spacing:.06em;color:var(--green);margin-bottom:4px}.results-toolbar h2{font-size:18px;font-weight:650;line-height:1.6}.results-toolbar h2>#result-count{color:var(--green);font-size:27px;font-variant-numeric:tabular-nums;margin-left:9px}.count-unit{font-size:12px;font-weight:400;color:var(--muted);margin-left:4px}.sort-label select{font-size:12px;min-height:39px;padding:6px 10px;border-color:var(--line);background:transparent}.category-scope{color:var(--muted);font-size:11px;margin-top:8px;margin-bottom:14px}.results-list{display:grid;gap:9px}.result-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;padding:17px 20px;background:white;border:1px solid var(--line);border-radius:13px;min-width:0}.word-name{font-weight:700;font-size:19px;line-height:1.6;overflow-wrap:anywhere}.word-reading{font-size:13px;color:var(--muted);line-height:1.8;overflow-wrap:anywhere;letter-spacing:.03em}.reading-variant{font-size:10px;color:#8d5c27;display:inline-block;margin-left:7px;padding:1px 5px;background:#fbf0dc;border-radius:4px}.word-meta{display:flex;align-items:center;gap:11px;font-size:10px;color:#7c877e;margin-top:4px}.word-meta a{color:var(--muted);font-size:10px}.next-cue{display:flex;flex-direction:column;align-items:center;min-width:40px}.next-cue small{font-size:10px;color:var(--muted)}.next-cue strong{font-size:23px;font-weight:600;color:var(--green);line-height:1.5}.next-cue.losing strong{color:#ac4a36}.use-button{min-height:45px;min-width:74px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:650;background:#eef4eb;border:1px solid #d8e4d2;color:var(--green);padding:9px 12px}.use-button>svg{width:15px;height:15px}.use-button:hover{background:#dfeeda;border-color:#a4b99c}.load-more{display:block;margin-top:16px;width:100%;min-height:48px;background:white;border:1px solid var(--line);color:var(--green);font-size:13px}.load-more:hover{background:var(--mint)}#remaining-count{margin-left:8px;font-size:11px;color:var(--muted)}.dictionary-note{margin-top:18px;font-size:11px;color:var(--muted);line-height:2}.dictionary-note a{white-space:nowrap}.loading,.empty-results{padding:40px 22px;background:white;border:1px dashed #bfcdbb;border-radius:14px;text-align:center;color:var(--muted);font-size:14px}.empty-results>svg{width:33px;height:33px;margin-bottom:9px;color:#8b9b87}.empty-results h3{font-size:17px;color:var(--ink);margin-bottom:8px}.empty-results p{font-size:13px;line-height:1.9}.empty-results button{display:inline-block;margin-top:15px;padding:9px 16px;min-height:45px;border:1px solid var(--line);background:var(--mint);color:var(--green);font-size:13px}
.history-panel{position:sticky;top:22px;min-width:0;background:#eef2e9;border:1px solid #dce5d5;border-radius:var(--radius);padding:23px 21px}.history-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.history-heading h2{display:flex;gap:8px;align-items:center;font-size:15px}.history-heading svg{width:19px;height:19px;color:var(--green)}#history-count{display:grid;place-items:center;background:white;border:1px solid var(--line);min-width:26px;height:26px;border-radius:8px;font-size:12px;color:var(--green);font-variant-numeric:tabular-nums}.history-help{font-size:11px;color:var(--muted);margin-top:10px}.history-list{list-style:none;counter-reset:words;padding:0;margin:18px 0 0;display:grid;gap:9px;max-height:360px;overflow-y:auto}.history-list:empty{margin-top:0}.history-item{counter-increment:words;display:flex;align-items:start;gap:10px;background:#ffffffb3;border:1px solid #dde5d7;border-radius:9px;padding:10px 11px}.history-number{width:20px;flex-shrink:0;font-size:11px;color:#7c8c75;line-height:24px}.history-word{font-size:13px;line-height:1.8;min-width:0;overflow-wrap:anywhere}.history-word small{display:block;font-size:10px;color:var(--muted)}.history-item .history-next{margin-left:auto;align-self:center;color:var(--green);font-weight:650;font-size:15px;white-space:nowrap}.history-empty{text-align:center;padding:31px 4px 27px}.empty-chain{font-size:20px;letter-spacing:.06em;color:#74906e;white-space:nowrap}.empty-chain>span{font-size:13px;color:#9cae93;margin-inline:6px}.history-empty>p{font-size:12px;color:#52624e;margin-top:18px}.history-empty>small{display:block;font-size:11px;color:#7b8776;line-height:2;margin-top:6px}.history-actions{display:grid;gap:8px;margin-top:17px}.history-actions>#undo{min-height:42px;border:1px solid #c4d2bd;background:transparent;color:var(--green);font-size:12px}.history-actions>#undo:hover:not(:disabled){background:#e0ead9}.history-actions>.text-button{font-size:11px;min-height:32px}.history-privacy{text-align:center;font-size:10px;color:#788571;line-height:1.9;margin-top:14px}
.how-to{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.7fr);gap:35px;margin-top:62px;padding-block:32px 40px;border-top:1px solid var(--line);align-items:center}.how-to h2{font-size:18px;margin-top:7px;line-height:1.7}.how-to>ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0;padding:0;list-style:none}.how-to li{display:flex;align-items:start;gap:10px;min-width:0}.how-to li>span{display:grid;place-items:center;border:1px solid #cad6c5;width:27px;height:27px;border-radius:50%;flex-shrink:0;font-size:11px;color:var(--green);margin-top:3px}.how-to li strong{font-size:13px}.how-to li p{font-size:10px;color:var(--muted);line-height:1.9;margin-top:3px}.site-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 30px;padding-block:24px 32px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.footer-brand{font-size:13px;font-weight:700;color:var(--green)}.site-footer>div{display:flex;gap:22px;margin-left:auto}.site-footer .text-button{font-size:11px;min-height:32px}.site-footer a{text-decoration:none;color:var(--muted)}.site-footer>p{width:100%;text-align:right;font-size:10px;color:#87937f}
.notice{padding:16px 20px;margin-bottom:20px;background:#fff6e6;border:1px solid #d9bd87;border-radius:12px;font-size:13px}.notice.error-notice{background:#fff0eb;border-color:#d8a496}.notice button{margin:10px 14px 0 0;border:1px solid #bfa685;background:white;min-height:40px;padding:7px 13px;font-size:13px}.notice a{font-size:13px}.toast{position:fixed;z-index:30;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);padding:13px 22px;background:#234f43;color:white;border-radius:12px;box-shadow:0 6px 30px #123b392e;font-size:13px;line-height:1.7}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:21px 26px}.dialog-heading h2{font-size:19px}.dialog-close{font-size:27px;background:var(--mint);border:0;min-width:40px;min-height:40px;line-height:1}.dialog-body{padding:24px 26px 30px;font-size:14px;line-height:1.9}.dialog-body h3{font-size:15px;margin-block:22px 8px}.dialog-body h3:first-child{margin-top:0}.dialog-body p+p{margin-top:13px}.dialog-body ul{padding-left:22px}.dialog-body li{padding-bottom:7px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;flex-wrap:wrap}.secondary-button{min-height:48px;padding:10px 18px;background:white;border:1px solid #b4c3b4}.muted{color:var(--muted);font-size:12px}.inline-link{display:inline-block;margin-top:13px}dialog{padding:0;border:1px solid var(--line);border-radius:20px;background:white;width:min(610px,calc(100% - 32px));max-height:85dvh;overflow-y:auto;box-shadow:0 20px 90px #1b392b3a}dialog::backdrop{background:#18352b66;backdrop-filter:blur(3px)}
.dictionary-page{padding-block:30px 60px}.dictionary-page h1{font-size:30px}.dictionary-page>p{color:var(--muted);margin-top:12px}.dictionary-nav{display:flex;flex-wrap:wrap;gap:8px;margin-block:24px}.dictionary-nav a{padding:8px 15px;border:1px solid var(--line);border-radius:9px;background:white;font-size:13px;text-decoration:none}.dictionary-section{margin-top:32px}.dictionary-section h2{font-size:21px;margin-bottom:12px}.dictionary-table{width:100%;border-collapse:collapse;background:white;font-size:14px}.dictionary-table th,.dictionary-table td{border-bottom:1px solid var(--line);padding:12px 16px;text-align:left;overflow-wrap:anywhere}.dictionary-table th{background:var(--mint);font-size:12px}.dictionary-table td:last-child{font-size:11px}.dictionary-table caption{text-align:left;color:var(--muted);font-size:12px;padding-bottom:10px}
@media(min-width:1600px){.hero{padding-block:52px 43px}.site-header{padding-block:30px}.wrap{width:1160px}}
@media(max-width:1050px){.wrap{width:calc(100% - 44px)}.workspace-grid{grid-template-columns:minmax(0,1fr) minmax(0,250px);gap:20px}.search-panel{padding-inline:22px}.advanced{margin-inline:-22px}.advanced>summary,.advanced-content{padding-inline:22px}.hero{gap:20px;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.word-chain{gap:8px;transform:rotate(-3deg) scale(.88);transform-origin:right center}.category-card{padding-inline:15px}.category-name{font-size:13px}.quick-filters{gap:7px 13px;font-size:11px}.result-card{gap:13px;padding-inline:16px}.how-to{grid-template-columns:minmax(0,1fr);gap:22px}.how-to>ol{gap:22px}}
@media(max-width:800px){.workspace-grid{grid-template-columns:minmax(0,1fr)}.history-panel{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 24px;padding:22px}.history-heading{grid-column:1/-1}.history-list{grid-column:1;grid-row:2/6;max-height:220px}.history-empty{grid-column:1;grid-row:2/6;padding:20px 4px}.history-help{grid-column:2}.history-actions{grid-column:2}.history-privacy{grid-column:2}.hero{grid-template-columns:minmax(0,1fr)}.word-chain{display:none}.hero-copy{font-size:14px}.hero{padding-block:30px}.category-card{padding:15px}.category-name{font-size:13px}.how-to{margin-top:40px}.category-scope{font-size:12px}.quick-filters{font-size:12px}.dictionary-note{font-size:12px}.result-card{padding:17px 20px}.use-button{min-height:48px}.word-meta,.word-meta a{font-size:11px}.field-help{font-size:13px}.history-word{font-size:14px}}
@media(max-width:550px){.wrap{width:calc(100% - 32px)}.site-header{padding-block:18px;gap:12px}.brand{font-size:17px;gap:8px;letter-spacing:0}.brand-mark{width:33px;height:33px;border-radius:10px;font-size:24px}.brand-mark>span{font-size:12px;top:3px;right:3px}.site-header nav{gap:12px;font-size:11px}.site-header nav .text-button{font-size:11px}.hero{padding-block:27px 24px}.eyebrow{font-size:11px;letter-spacing:.04em}h1{font-size:31px;letter-spacing:.015em;line-height:1.5;margin-block:10px}.hero-copy{font-size:12px;line-height:1.9}.mobile-break{display:initial}.category-fieldset{margin-bottom:20px}.category-fieldset>legend{font-size:13px;margin-bottom:11px}.category-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.category-card{grid-column:span 2;padding:11px 12px 9px;border-radius:12px}.category-card:nth-child(n+4){grid-column:span 3}.category-visual{margin-bottom:4px}.category-visual>svg{width:25px;height:25px}.selected-marker{width:16px;height:16px;font-size:10px}.category-name{font-size:12px;line-height:1.6}.category-count{font-size:10px;margin-top:2px}.search-panel{padding:20px 18px 0;border-radius:16px}.search-panel>h2{font-size:15px;margin-bottom:14px}.search-modes{margin-bottom:16px}.search-modes label>span{font-size:12px;padding:9px 17px}.input-label{font-size:13px}.search-input-row{gap:8px}.query-wrap>input{font-size:21px;padding-left:39px!important;min-height:54px!important}.query-wrap>svg{width:20px;height:20px;left:12px;top:17px}.query-wrap>input::placeholder{font-size:14px}.primary-button{padding-inline:17px;font-size:14px;gap:7px}.primary-button>svg{width:17px;height:17px}.field-help{font-size:11px;line-height:1.9}.suggestions{gap:8px;flex-wrap:wrap;margin-block:12px 16px}.suggestions>span{font-size:11px}.suggestions [data-prefix]{width:36px;min-height:40px;font-size:13px}.suggestions .clear-query{font-size:10px}.quick-filters{font-size:11px;gap:5px;padding-bottom:13px;flex-direction:column}.quick-filters input{width:18px;height:18px}.advanced{margin-inline:-18px}.advanced>summary{padding:14px 18px;font-size:11px}.advanced-content{padding-inline:18px}.filter-fields{gap:8px}.filter-fields>label{font-size:10px}.filter-fields input{padding-inline:8px;font-size:16px}.filter-fields input::placeholder{font-size:11px}.long-vowel-label{font-size:11px}.long-vowel-label select{font-size:12px}.rule-checks{font-size:11px}.results-section{margin-top:23px}.results-toolbar{gap:9px}.results-toolbar h2{font-size:15px}.results-toolbar h2>#result-count{font-size:24px;margin-left:5px}.result-eyebrow{font-size:10px}.sort-label select{font-size:11px;padding-inline:7px}.category-scope{font-size:10px;line-height:1.8;margin-bottom:12px}.result-card{padding:14px;gap:11px;grid-template-columns:minmax(0,1fr) 32px auto;border-radius:11px}.word-name{font-size:17px}.word-reading{font-size:11px}.word-meta,.word-meta a{font-size:10px;gap:9px}.next-cue{min-width:30px}.next-cue small{font-size:9px}.next-cue strong{font-size:20px}.use-button{min-width:65px;padding:8px 10px;gap:4px;font-size:12px}.use-button>svg{width:13px;height:13px}.dictionary-note{font-size:10px;line-height:2}.history-panel{padding:19px 16px;border-radius:15px;gap:6px 15px}.history-heading h2{font-size:14px}.history-help{font-size:10px}.history-empty>p{font-size:11px}.history-empty>small{font-size:10px}.history-actions>#undo{font-size:11px}.history-actions>.text-button{font-size:10px}.history-privacy{font-size:9px}.history-word{font-size:12px}.history-word small{font-size:9px}.history-item{padding:8px;gap:6px}.history-number{width:15px;font-size:10px}.history-item .history-next{font-size:12px}.how-to{padding-block:25px 30px;gap:20px}.how-to h2{font-size:17px}.how-to>ol{grid-template-columns:minmax(0,1fr);gap:17px}.how-to li{gap:13px}.how-to li strong{font-size:13px}.how-to li p{font-size:11px}.site-footer{gap:9px 15px;padding-block:20px 25px}.site-footer>div{gap:14px}.footer-brand{font-size:11px}.site-footer a,.site-footer .text-button{font-size:10px}.site-footer>p{font-size:9px}.dialog-heading{padding:17px 18px}.dialog-heading h2{font-size:16px}.dialog-body{padding:20px 18px 25px;font-size:13px}.dialog-actions{justify-content:stretch}.dialog-actions>*{flex:1;font-size:12px}.toast{width:max-content;max-width:calc(100% - 24px);font-size:12px;bottom:15px;padding:12px 16px}.dictionary-table{font-size:12px}.dictionary-table th,.dictionary-table td{padding:10px 8px}.dictionary-table td:last-child{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button,.category-card{transition:none}}
.hero-copy,.dialog-body{font-size:16px}.word-reading{font-size:14px}.category-name{font-size:15px}.quick-filters,.rule-checks{font-size:14px}.quick-filters>label,.rule-checks>label{min-height:44px}.search-modes label>span{font-size:14px;min-height:44px;display:flex;align-items:center}.use-button{min-height:48px;font-size:14px}.field-help,.category-scope,.dictionary-note{font-size:13px}.word-meta,.word-meta a{font-size:12px}.word-meta a{display:inline-flex;align-items:center;min-height:28px}.input-label{font-size:15px}.history-word{font-size:14px}.how-to li p{font-size:13px}.how-to li strong{font-size:15px}.dictionary-attribution{margin-top:30px;color:var(--muted)}
@media(max-width:550px){.hero-copy{font-size:16px}.category-name{font-size:14px}.category-count{font-size:12px}.quick-filters,.rule-checks{font-size:13px}.field-help,.category-scope,.dictionary-note{font-size:12px}.word-reading{font-size:14px}.word-name{font-size:18px}.word-meta,.word-meta a{font-size:11px}.use-button{font-size:13px}.dialog-body{font-size:16px}.history-word{font-size:13px}.history-word small{font-size:11px}.history-help,.history-empty>small,.history-privacy{font-size:11px}.long-vowel-label>select{font-size:16px}.filter-fields>label,.long-vowel-label{font-size:12px}}

.more-categories{margin-top:12px}.more-categories>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;color:var(--green);background:rgba(255,255,255,.7);font-size:14px;cursor:pointer;list-style:none}.more-categories>summary::-webkit-details-marker{display:none}.more-categories>summary>span:first-child{min-width:0;overflow-wrap:anywhere}.more-categories>summary .details-plus{flex-shrink:0}.more-categories[open]>summary .details-plus{transform:rotate(45deg)}.more-categories[open]>.category-grid{margin-top:12px}.more-categories>summary:focus-visible{outline:3px solid var(--orange);outline-offset:3px}

.primary-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.primary-category-grid>.category-card{grid-column:auto}.primary-category-grid .category-name{font-size:17px}.primary-category-grid .category-visual>svg{width:35px;height:35px}@media(max-width:550px){.primary-category-grid .category-name{font-size:14px}.primary-category-grid .category-visual>svg{width:27px;height:27px}}

.kana-picker{margin-block:4px 24px;padding-block-end:22px;border-bottom:1px dashed var(--line)}
.kana-picker>legend{font-size:14px;font-weight:700}
.kana-count-modes{margin-block:10px 0}
.kana-count-help{margin-block:10px 14px}
.kana-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
.kana-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;min-width:0}
.kana-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:58px;min-width:0;padding:5px 2px;border:1px solid #85988b;border-radius:8px;background:#f5f8f1;color:var(--green);line-height:1.3}
.kana-letter{font-size:1.25rem;font-weight:700}
.kana-count{font-size:.75rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.kana-button.is-empty{background:#fafbf8;color:var(--muted)}
.kana-button[aria-pressed=true]{border-color:var(--green);background:var(--green);color:white;box-shadow:inset 0 0 0 1px var(--green)}
.voiced-kana{margin-block-start:8px}
.voiced-kana>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;font-size:13px;color:var(--green);list-style:none}
.voiced-kana>summary::-webkit-details-marker{display:none}
.voiced-kana[open]>summary .details-plus{transform:rotate(45deg)}
.voiced-kana[open]>.kana-panel{margin-block-start:6px}
@media(hover:hover){.kana-button:hover:not(:disabled){background:var(--mint);border-color:var(--green)}.kana-button[aria-pressed=true]:hover{background:var(--green-dark);color:white}}
@media(max-width:650px){.kana-panel{grid-template-columns:minmax(0,1fr);gap:6px}.kana-count-modes label>span{padding-inline:14px}.kana-letter{font-size:1.125rem}}
