:root {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--foreground);
  background:var(--background);
  font-synthesis:none;
  color-scheme:light;
  scrollbar-gutter:stable;
  --foreground:#25322b;
  --background:#f5f8f6;
  --surface:#ffffff;
  --surface-soft:#f8fbf9;
  --surface-hover:#edf5f0;
  --accent:#21724d;
  --accent-hover:#185c3d;
  --accent-soft:#eef8f2;
  --accent-border:#4e9b71;
  --on-accent:#ffffff;
  --border:#dce6df;
  --border-strong:#8da898;
  --muted:#63746a;
  --secondary:#6a7d70;
  --focus:#388960;
  --track:#e8efe9;
  --success-border:#3f8b6b;
  --success-bg:#edf8f1;
  --success-text:#246647;
  --danger-border:#c86d65;
  --danger-bg:#fff1f0;
  --danger-text:#a03630;
  --disabled-text:#8b9b90;
  --japanese:"Hiragino Kaku Gothic ProN","Yu Gothic","Noto Sans CJK JP",Meiryo,sans-serif
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --foreground:#e8f1eb;
  --background:#101915;
  --surface:#19251e;
  --surface-soft:#1d2b23;
  --surface-hover:#24372b;
  --accent:#80d5a7;
  --accent-hover:#a0e3bd;
  --accent-soft:#213b2a;
  --accent-border:#559b71;
  --on-accent:#102a1b;
  --border:#33483a;
  --border-strong:#65836e;
  --muted:#adbdaf;
  --secondary:#95aa9b;
  --focus:#80d5a7;
  --track:#2b3c30;
  --success-border:#62ae80;
  --success-bg:#213b2b;
  --success-text:#95dfb2;
  --danger-border:#c37c79;
  --danger-bg:#3b2526;
  --danger-text:#f1aba6;
  --disabled-text:#8ca191;
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  min-height:100svh;
  display:flex;
  flex-direction:column
}
button,input {
  font:inherit
}
button,a,input {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
a {
  color:inherit;
  text-underline-offset:3px
}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:4px
}
[hidden] {
  display:none!important
}
button:disabled {
  cursor:default
}
fieldset {
  border:0;
  padding:0;
  margin:0
}
legend {
  font-size:.875rem;
  font-weight:650;
  margin-bottom:14px
}
h1,h2,h3,p {
  margin:0
}
.site-header {
  min-height:88px;
  border-bottom:1px solid var(--border);
  background:var(--surface);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px max(5vw,24px);
  flex-wrap:wrap;
  gap:16px
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:1.3rem;
  font-weight:700;
  letter-spacing:-.8px;
  text-decoration:none;
  flex-wrap:wrap;
  max-width:100%
}
.brand-mark {
  width:38px;
  height:38px;
  display:block;
  flex-shrink:0
}
.brand-divider {
  color:var(--muted);
  font-weight:300
}
.brand-japanese {
  font-family:"Hiragino Mincho ProN","Yu Mincho","Noto Serif CJK JP",serif;
  font-size:1.1rem;
  font-weight:700;
  letter-spacing:.08em
}
.brand-name,.brand-japanese {
  white-space:nowrap
}
.brand-light {
  font-weight:400
}
main {
  width:100%;
  max-width:1180px;
  flex:1;
  margin:0 auto;
  padding:48px 32px 24px
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:36px
}
.page-heading > :first-child {
  min-width:0
}
main.practice-page {
  max-width:none;
  padding:0
}
.page-banner {
  border-bottom:1px solid var(--border);
  background:linear-gradient(115deg,var(--accent-soft),var(--surface-soft))
}
.page-banner .banner-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  max-width:1180px;
  min-height:200px;
  margin-inline:auto;
  padding:32px;
  gap:32px
}
.banner-copy {
  min-width:0
}
.page-content {
  max-width:1180px;
  margin-inline:auto;
  padding:32px 32px 24px
}
.banner-motif {
  display:flex;
  align-items:center;
  gap:14px;
  padding:8px;
  flex-shrink:0
}
.banner-motif span {
  display:grid;
  place-items:center;
  width:80px;
  height:96px;
  border:1px solid var(--accent-border);
  border-radius:10px;
  background:var(--surface);
  color:var(--accent);
  font-family:var(--japanese);
  font-size:2.75rem;
  transform:rotate(-6deg)
}
.banner-motif span:nth-child(2) {
  transform:translateY(-10px) rotate(4deg)
}
.banner-motif span:nth-child(3) {
  transform:rotate(9deg)
}
@media(max-width:900px) {
  .page-banner .banner-inner,.page-content {
    padding-inline:22px
  }
}
@media(max-width:700px) {
  .page-banner .banner-inner {
    min-height:180px;
    padding:24px 18px;
    gap:16px;
    flex-wrap:wrap
  }
  .page-content {
    padding:24px 18px 22px
  }
  .banner-motif {
    max-width:100%;
    padding:12px 6px;
    gap:8px
  }
  .banner-motif span {
    min-width:0;
    width:clamp(36px,12vw,56px);
    height:clamp(48px,16vw,72px);
    font-size:clamp(1.5rem,6vw,2rem)
  }
}
.practice-controls {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px 16px;
  margin-bottom:28px;
  padding-bottom:20px;
  border-bottom:1px solid var(--border)
}
.practice-card {
  width:100%;
  max-width:760px;
  margin-inline:auto;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface)
}
.practice-card .settings-panel,.practice-card .quiz-panel {
  padding:0;
  border:0;
  border-radius:0;
  background:none
}
.eyebrow {
  font-size:.75rem;
  font-weight:750;
  letter-spacing:1.7px;
  color:var(--accent);
  margin-bottom:12px
}
h1 {
  font-size:2.5rem;
  letter-spacing:-1.5px;
  font-weight:650;
  line-height:1.15
}
.level-badge {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--border);
  border-radius:7px;
  padding:10px 14px;
  background:var(--surface);
  font-size:.875rem;
  font-weight:700
}
.level-badge select {
  border:0;
  background:var(--surface);
  color:var(--foreground);
  font:inherit;
  padding-right:4px;
  cursor:pointer
}
.level-badge select:disabled {
  cursor:default
}
.workspace {
  display:grid;
  grid-template-columns:310px minmax(0,1fr);
  gap:28px;
  align-items:start
}
.workspace.quiz-active,
.workspace.setup-active {
  grid-template-columns:minmax(0,760px);
  justify-content:center
}
.workspace.setup-active .settings-panel {
  width:100%;
  max-width:760px;
  margin-inline:auto
}
.quiz-actions {
  display:flex;
  align-items:center;
  gap:14px;
  flex-shrink:0
}
.text-button {
  border:0;
  padding:8px 0;
  background:none;
  color:var(--muted);
  font-size:.875rem;
  text-decoration:underline;
  text-underline-offset:3px
}
.settings-panel,.quiz-panel {
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface)
}
.settings-panel,.coming-soon,.practice-card {
  padding:25px 23px
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:28px
}
h2 {
  font-size:1.125rem;
  font-weight:650;
  letter-spacing:-.3px
}
.small-label {
  color:var(--secondary);
  font-size:.75rem;
  font-weight:650;
  letter-spacing:1.2px
}
.format-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px
}
.format-options label {
  display:grid;
  gap:8px;
  font-size:.875rem;
  font-weight:600
}
.format-options select {
  width:100%;
  min-height:44px;
  padding:10px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
  color:var(--foreground);
  font:inherit
}
.count-settings {
  margin-top:28px
}
.topic-settings {
  margin-top:28px
}
.topic-settings details {
  border:1px solid var(--border);
  border-radius:8px;
  padding:12px
}
.topic-settings summary {
  cursor:pointer
}
.topic-settings details[open] summary {
  margin-bottom:8px
}
#topic-summary {
  font-size:.875rem;
  color:var(--muted)
}
.topic-actions {
  display:flex;
  gap:20px;
  margin:6px 0 10px
}
.topic-options {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));
  gap:8px
}
.topic-options label {
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
  font-size:.8125rem;
  cursor:pointer;
  transition:background .15s,border-color .15s
}
.topic-options label:hover {
  background:var(--surface-hover)
}
.topic-options label:has(input:checked) {
  background:var(--accent-soft);
  border-color:var(--accent-border)
}
.topic-options label:has(input:focus-visible) {
  outline:3px solid var(--focus);
  outline-offset:3px
}
.topic-options strong {
  display:block;
  font-weight:550;
  line-height:1.3
}
.topic-options small {
  margin-left:auto;
  font-size:.6875rem;
  color:var(--muted);
  flex-shrink:0
}
.topic-options input {
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  margin:0
}
.topic-label {
  min-width:0
}
.topic-icon {
  width:18px;
  height:18px;
  flex-shrink:0;
  color:var(--muted)
}
.topic-options label:has(input:checked) .topic-icon {
  color:var(--accent)
}
.count-presets button:disabled {
  opacity:.45
}
.count-presets {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px
}
.count-presets button {
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:6px;
  padding:9px 0;
  font-size:.875rem;
  color:var(--muted)
}
.count-presets button:hover {
  background:var(--surface-hover)
}
.count-presets .selected {
  color:var(--on-accent);
  background:var(--accent);
  border-color:var(--accent)
}
.count-presets .selected:hover {
  background:var(--accent-hover);
  border-color:var(--accent-hover)
}
.custom-count {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:.75rem;
  color:var(--muted);
  margin-top:13px
}
.custom-count input {
  width:67px;
  border:1px solid var(--border);
  border-radius:5px;
  font-size:.875rem;
  padding:7px;
  color:var(--foreground);
  background:var(--surface)
}
.primary-button {
  background:var(--accent);
  color:var(--on-accent);
  border:1px solid var(--accent);
  border-radius:7px;
  padding:12px 20px;
  font-weight:550;
  font-size:.875rem;
  min-height:44px;
  transition:background .15s
}
.primary-button:hover {
  background:var(--accent-hover)
}
.start-button {
  width:100%;
  margin-top:25px
}
.settings-note {
  font-size:.75rem;
  color:var(--muted);
  text-align:center;
  margin-top:11px
}
.quiz-panel {
  padding:26px 30px 20px
}
.quiz-topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.question-position {
  font-size:.8125rem;
  color:var(--muted);
  font-variant-numeric:tabular-nums
}
.question-position strong {
  color:var(--foreground)
}
.progress-track {
  height:3px;
  background:var(--track);
  border-radius:2px;
  margin:18px 0 24px;
  overflow:hidden
}
.progress-track span {
  display:block;
  height:100%;
  background:var(--accent);
  width:0;
  transition:width .2s
}
.flashcard {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:10px;
  background:linear-gradient(0deg,var(--surface-soft),var(--surface));
  min-height:266px;
  padding:49px 20px 40px
}
.card-meta {
  position:absolute;
  top:17px;
  left:20px;
  right:20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:1.2px;
  color:var(--secondary)
}
.card-topic {
  display:flex;
  flex-direction:column;
  gap:4px
}
#target-kanji {
  font-size:.75rem;
  letter-spacing:0;
  text-transform:none;
  font-family:var(--japanese)
}
.card-prompt {
  font-family:var(--japanese);
  font-size:clamp(3.75rem,6.6vw,5.2rem);
  font-weight:500;
  line-height:1.4;
  letter-spacing:.05em;
  text-align:center;
  overflow-wrap:anywhere
}
.card-prompt.reading-prompt {
  font-size:clamp(2.5rem,4.5vw,3.8rem)
}
.card-prompt.english-prompt {
  font-family:inherit;
  font-size:clamp(1.75rem,4vw,2.5rem);
  letter-spacing:normal
}
.answer-label[lang="en"] {
  font-family:inherit;
  font-size:1rem
}
.card-hint {
  min-height:45px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:end;
  gap:7px;
  margin-top:5px
}
.card-hint p {
  font-size:.875rem;
  color:var(--accent);
  text-align:center
}
.classic-description {
  margin-bottom:24px;
  color:var(--muted);
  font-size:.875rem;
  line-height:1.7
}
.classic-flashcard {
  cursor:pointer
}
.classic-flashcard .card-hint {
  display:none
}
.classic-answer {
  display:grid;
  gap:8px;
  margin-top:20px;
  text-align:center;
  font-size:.9375rem;
  color:var(--muted);
  line-height:1.6;
  overflow-wrap:anywhere
}
.classic-word {
  color:var(--foreground);
  font-family:var(--japanese);
  font-size:1.5rem
}
.classic-reading {
  color:var(--accent);
  font-family:var(--japanese);
  font-size:1.125rem
}
.classic-controls {
  margin-top:20px
}
.classic-controls > button {
  width:100%
}
.classic-grades {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}
.classic-grade {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:12px 8px;
  border:1px solid;
  border-radius:7px;
  font-size:.875rem;
  font-weight:550
}
.classic-grade span {
  font-size:1.25rem;
  line-height:1
}
.classic-forgot {
  color:var(--danger-text);
  background:var(--danger-bg);
  border-color:var(--danger-border)
}
.classic-remembered {
  color:var(--success-text);
  background:var(--success-bg);
  border-color:var(--success-border)
}
.classic-grade:hover {
  text-decoration:underline;
  text-underline-offset:3px
}
.hint-reminder {
  font-size:.75rem;
  color:var(--muted);
  text-align:right;
  text-transform:none;
  letter-spacing:0;
  flex-shrink:0
}
.touch-hint {
  display:none
}
.flashcard:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:4px
}
@media(hover:none) {
  .hover-hint {
    display:none
  }
  .touch-hint {
    display:inline
  }
}
.answers {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:21px
}
.answer {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:8px;
  padding:18px 38px;
  min-height:72px;
  color:var(--foreground);
  transition:border-color .15s,background .15s
}
.answer:not(:disabled):hover {
  border-color:var(--border-strong);
  background:var(--surface-hover)
}
.answer-label {
  font-family:var(--japanese);
  font-size:1.5rem;
  line-height:1.5;
  overflow-wrap:anywhere
}
.answer-key {
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  font-size:.75rem;
  color:var(--secondary);
  border:1px solid var(--border);
  border-radius:4px;
  display:grid;
  place-items:center;
  width:21px;
  height:23px
}
.answer.correct {
  border-color:var(--success-border);
  background:var(--success-bg);
  color:var(--success-text)
}
.answer.wrong {
  border-color:var(--danger-border);
  background:var(--danger-bg);
  color:var(--danger-text)
}
.answer:disabled:not(.correct):not(.wrong) {
  color:var(--disabled-text);
  background:var(--surface-soft)
}
.answer-status {
  position:absolute;
  right:13px;
  font-size:.8125rem;
  font-family:inherit
}
.question-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:70px;
  margin-top:9px
}
.feedback {
  font-size:.8125rem;
  color:var(--muted);
  line-height:1.6;
  max-width:75%
}
.feedback.correct-feedback {
  color:var(--success-text)
}
.feedback.wrong-feedback {
  color:var(--danger-text)
}
.feedback strong {
  font-weight:650
}
.next-button {
  padding:10px 16px;
  flex-shrink:0
}
.keyboard-note {
  text-align:center;
  font-size:.75rem;
  color:var(--secondary);
  border-top:1px solid var(--border);
  padding-top:16px;
  margin-top:2px
}
kbd {
  font:inherit;
  font-size:.75rem;
  border:1px solid var(--border);
  border-radius:3px;
  padding:1px 4px;
  background:var(--surface-soft)
}
.site-footer {
  flex-shrink:0;
  margin-top:24px;
  border-top:1px solid var(--border);
  background:var(--surface);
  color:var(--muted);
  font-size:.8125rem;
  line-height:1.7
}
.footer-inner {
  max-width:1180px;
  margin-inline:auto;
  padding:40px 32px 0
}
.footer-main {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(0,.7fr) minmax(0,1.2fr);
  gap:48px;
  padding-bottom:32px
}
.footer-brand {
  width:fit-content;
  color:var(--foreground)
}
.footer-about > p {
  margin-top:16px;
  max-width:320px
}
.footer-creator {
  margin-top:24px
}
.footer-creator strong {
  color:var(--foreground);
  font-weight:550
}
.footer-creator-links {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px 20px
}
.site-footer a:not(.brand) {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  width:fit-content;
  text-decoration:none
}
.site-footer a:hover {
  color:var(--accent);
  text-decoration:underline
}
.footer-creator-links a {
  color:var(--accent);
  font-weight:550
}
.footer-creator-links svg {
  flex-shrink:0
}
.footer-column {
  display:flex;
  flex-direction:column;
  align-items:flex-start
}
.footer-column h2 {
  margin:0 0 8px;
  color:var(--foreground);
  font-size:.8125rem;
  font-weight:650;
  letter-spacing:0;
  line-height:24px
}
.footer-column > a,.footer-column > p {
  margin:0;
  padding:10px 0;
  min-height:44px;
  line-height:24px
}
.site-footer .footer-column > a {
  align-items:flex-start
}
.footer-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 24px;
  padding:12px 0;
  border-top:1px solid var(--border);
  font-size:.75rem
}
@media(max-width:900px) {
  .footer-inner {
    padding-inline:22px
  }
  .footer-main {
    gap:28px
  }
}
@media(max-width:700px) {
  .footer-inner {
    padding:28px 18px 0
  }
  .footer-main {
    grid-template-columns:minmax(0,1fr);
    gap:24px;
    padding-bottom:24px
  }
}
.results-view {
  padding:40px 12px;
  min-height:593px;
  text-align:center
}
.results-view h2 {
  font-size:1.9rem;
  margin:15px 0
}
.results-view h2:focus {
  outline:none
}
.results-score {
  margin:32px 0 18px;
  font-size:5rem;
  letter-spacing:-4px;
  font-weight:650
}
.results-score span:last-child {
  font-size:2rem;
  letter-spacing:-1px;
  font-weight:400;
  color:var(--secondary)
}
.results-view>p:not(.eyebrow):not(.results-score) {
  color:var(--muted);
  font-size:.875rem;
  line-height:1.7
}
.results-actions {
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
  margin-top:28px
}
.results-note {
  margin-top:11px
}
.results-view h3 {
  font-size:.875rem;
  text-align:left;
  margin:30px 0 10px
}
.review-list {
  list-style:none;
  margin:0;
  padding:0;
  text-align:left;
  max-height:260px;
  overflow:auto;
  border-top:1px solid var(--border)
}
.review-list li {
  display:grid;
  grid-template-columns:1fr 1fr 1.4fr;
  gap:12px;
  padding:12px 4px;
  border-bottom:1px solid var(--border);
  align-items:center;
  font-size:.8125rem
}
.review-list span:first-child,.review-list span:nth-child(2) {
  font-family:var(--japanese);
  font-size:1rem
}
.review-list span:last-child {
  color:var(--muted)
}
.view-switch {
  display:flex;
  gap:4px;
  width:fit-content;
  max-width:100%;
  flex-wrap:wrap;
  border:1px solid var(--border);
  border-radius:8px;
  padding:4px;
  background:var(--surface);
  margin:0
}
.view-switch button {
  border:0;
  border-radius:5px;
  background:none;
  color:var(--muted);
  font-size:.875rem;
  padding:9px 14px;
  min-height:40px
}
.view-switch [aria-pressed="true"] {
  background:var(--accent);
  color:var(--on-accent)
}
.view-switch button:disabled {
  opacity:.65
}
.browse-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
  margin-bottom:24px
}
.browse-heading p {
  color:var(--muted);
  font-size:.875rem;
  margin-top:8px
}
.browse-filters {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  margin-bottom:20px
}
.browse-search span {
  display:block;
  font-size:.875rem;
  font-weight:600;
  margin-bottom:8px
}
.browse-search input {
  width:100%;
  min-height:44px;
  border:1px solid var(--border);
  border-radius:8px;
  padding:12px;
  color:var(--foreground);
  background:var(--surface);
  font:inherit;
  font-size:.875rem
}
.browse-topic-filter {
  grid-column:1 / -1;
  grid-row:2;
  border:1px solid var(--border);
  border-radius:8px;
  padding:12px;
  background:var(--surface)
}
.browse-topic-filter summary {
  cursor:pointer;
  font-size:.875rem;
  color:var(--muted)
}
.browse-topic-filter .topic-options {
  margin-top:14px
}
.browse-count {
  font-size:.8125rem;
  color:var(--muted);
  margin-bottom:14px
}
.browse-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));
  gap:14px
}
.browse-card {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-height:190px;
  border:1px solid var(--border);
  border-radius:10px;
  padding:18px;
  background:var(--surface);
  color:var(--foreground);
  text-align:left;
  overflow-wrap:anywhere
}
.browse-card-topic {
  font-size:.6875rem;
  color:var(--secondary);
  margin-bottom:14px
}
.browse-card-word {
  font-family:var(--japanese);
  font-size:1.8rem;
  font-weight:500;
  line-height:1.5
}
.browse-card-reading {
  font-family:var(--japanese);
  color:var(--accent);
  font-size:.875rem;
  margin-top:4px
}
.browse-card-meaning {
  font-size:.875rem;
  color:var(--muted);
  line-height:1.5;
  margin-top:10px
}
.browse-empty {
  padding:40px 16px;
  text-align:center;
  color:var(--muted);
  line-height:1.6
}
@media(max-width:480px) {
  .browse-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
  }
  .browse-card {
    padding:12px;
    min-height:180px
  }
  .browse-card-word {
    font-size:1.5rem
  }
}
.noscript {
  padding:30px;
  text-align:center
}
@media(min-width:1400px) {
  main {
    padding-top:58px
  }
  .workspace {
    gap:32px
  }
  .flashcard {
    min-height:282px
  }
}
@media(max-width:900px) {
  main {
    padding:35px 22px 22px
  }
  .workspace {
    grid-template-columns:270px minmax(0,1fr);
    gap:18px
  }
  .settings-panel,.coming-soon,.practice-card {
    padding:23px 18px
  }
  .quiz-panel {
    padding:24px 20px 18px
  }
  .answer {
    padding:16px 33px
  }
  .answer-label {
    font-size:1.25rem
  }
  .feedback {
    max-width:65%
  }
  .card-prompt {
    font-size:3.7rem
  }
}
@media(max-width:700px) {
  .site-header {
    height:auto;
    min-height:70px;
    flex-wrap:wrap;
    gap:12px;
    padding:16px 20px
  }
  .brand {
    gap:9px;
    font-size:1.1rem;
    letter-spacing:-.5px
  }
  .brand-mark {
    width:32px;
    height:32px
  }
  .brand-japanese {
    font-size:.9375rem;
    letter-spacing:.04em
  }
}
@media(max-width:700px) {
  main {
    padding:28px 18px 22px
  }
  .page-heading {
    margin-bottom:24px;
    gap:12px
  }
  h1 {
    font-size:1.9rem;
    letter-spacing:-1px
  }
  .level-badge {
    padding:8px 10px
  }
  .eyebrow {
    font-size:.75rem;
    letter-spacing:1.2px
  }
  .workspace {
    display:flex;
    flex-direction:column;
    gap:20px
  }
  .settings-panel,.coming-soon,.practice-card {
    width:100%;
    padding:20px
  }
  .panel-heading {
    margin-bottom:20px
  }
  .count-settings {
    margin-top:20px
  }
  .custom-count {
    font-size:.8125rem
  }
  .start-button {
    margin-top:20px
  }
  .quiz-panel {
    width:100%;
    padding:23px 18px 17px
  }
  .flashcard {
    min-height:240px
  }
  .card-prompt {
    font-size:4.2rem
  }
  .card-prompt.reading-prompt {
    font-size:2.7rem
  }
  .answers {
    gap:10px
  }
  .answer-label {
    font-size:1.4rem
  }
  .question-footer {
    min-height:84px
  }
  .feedback {
    max-width:64%;
    font-size:.8125rem
  }
  .next-button {
    padding:10px 13px
  }
  .keyboard-note {
    display:none
  }
  .results-view {
    min-height:470px;
    padding:25px 0
  }
  .review-list li {
    grid-template-columns:1fr 1fr
  }
  .review-list span:last-child {
    grid-column:1 / -1
  }
  .quiz-topline h2 {
    font-size:1rem
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important
  }
}
.custom-count {
  font-size:.875rem
}
@media(max-width:700px) {
  .answer {
    padding:16px 10px 16px 34px
  }
  .answer-key {
    left:10px;
    width:18px
  }
  .answer-label {
    font-size:1.3rem
  }
}
@media(max-width:360px) {
  .answers {
    grid-template-columns:1fr
  }
}
@media(max-width:700px) {
  .quiz-panel {
    order:-1
  }
  .settings-panel {
    scroll-margin-top:20px
  }
  .quiz-actions {
    gap:10px
  }
}

.header-actions {
  display:flex;
  align-items:center;
  flex-grow:1;
  justify-content:flex-end;
  gap:18px
}
@media(max-width:900px) {
  .header-actions {
    width:100%;
    justify-content:space-between
  }
}
.site-nav {
  display:flex;
  align-items:center;
  gap:6px
}
.site-nav a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 12px;
  border-radius:7px;
  color:var(--muted);
  font-size:.875rem;
  font-weight:550;
  text-decoration:none
}
.site-nav a:hover {
  color:var(--accent);
  background:var(--surface-hover)
}
.site-nav a[aria-current="page"] {
  color:var(--accent);
  background:var(--accent-soft)
}
.coming-soon {
  max-width:760px;
  margin-inline:auto;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface)
}
.coming-soon h2 {
  font-size:1.5rem
}
.coming-soon p {
  margin-top:12px;
  color:var(--muted);
  line-height:1.7
}
@media(max-width:700px) {
  .header-actions {
    width:100%;
    justify-content:space-between;
    gap:12px
  }
  .site-nav {
    gap:2px
  }
  .site-nav a {
    padding-inline:8px
  }
}
.theme-toggle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  gap:8px;
  min-height:40px;
  padding:8px 12px;
  background:var(--surface);
  color:var(--foreground);
  border:1px solid var(--border);
  border-radius:7px;
  font-size:.875rem
}
.theme-toggle:hover {
  background:var(--surface-hover)
}
.theme-toggle[aria-pressed="true"] {
  color:var(--accent);
  border-color:var(--accent-border);
  background:var(--accent-soft)
}
@media(max-width:400px) {
  .theme-label {
    display:none
  }
  .header-actions {
    gap:12px
  }
  .theme-toggle {
    width:40px;
    padding:8px
  }
}
