/* =====================================================================
   Bushu 部首 Nota — gaya visual mengikuti Tango Anki (token, font, dark mode)
   dengan bentuk kartu berupa NOTA / STRUK belanja.
   ===================================================================== */

:root {
  --hanko: #1565C0;
  --gold: #4FC3F7;
  --mint: #4FD8B8;
  --ink: #16232F;
  --ink-soft: #4A5C6B;
  --line: rgba(21, 101, 192, 0.14);
  --white: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-solid: #FFFFFF;
  --shadow: rgba(21, 101, 192, 0.12);
  --hot: #E65100;
  --hot-bg: rgba(255, 167, 38, 0.18);

  /* warna kertas nota */
  --paper: #FFFFFF;
  --paper-2: #F6FAFF;
  --paper-ink: #16232F;
  --paper-dash: rgba(21, 101, 192, 0.32);
  --stamp: #C0392B;

  --serif: "Noto Serif JP", Georgia, serif;
  --display: "Baloo 2", "Zen Maru Gothic", sans-serif;
  --sans: "Quicksand", "Zen Maru Gothic", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --tk-top10: #EF5350;
  --tk-r11:   #FFA726;
  --tk-r26:   #FFCA28;
  --tk-r51:   #4FD8B8;
  --tk-r101:  #4FC3F7;
  --tk-r151:  #AB47BC;
  --tk-lain:  #90A4AE;
}

:root[data-theme="dark"] {
  --ink: #F1F5F9;
  --ink-soft: rgba(226, 232, 240, 0.78);
  --line: rgba(125, 211, 252, 0.22);
  --surface: rgba(23, 33, 43, 0.82);
  --surface-solid: #182530;
  --shadow: rgba(0, 0, 0, 0.55);
  --hanko: #7DD3FC;
  --gold: #7DD3FC;
  --hot: #FFC876;
  --hot-bg: rgba(255, 179, 71, 0.24);

  --paper: #1B2A37;
  --paper-2: #16232F;
  --paper-ink: #F1F5F9;
  --paper-dash: rgba(125, 211, 252, 0.38);
  --stamp: #FFA694;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(160deg, #F4F9FF 0%, #E4F0FF 45%, #EAF6F2 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.3s ease, color 0.3s ease;
}
:root[data-theme="dark"] body {
  background: linear-gradient(160deg, #10151A 0%, #131B23 45%, #0E1620 100%);
}
body.body-scroll-locked { overflow: hidden; height: 100vh; }

/* watermark */
.kanji-watermark {
  position: fixed;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--hanko);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.kanji-watermark.top-left { top: -4vw; left: -4vw; font-size: 26vw; }
.kanji-watermark.bottom-right { bottom: -6vw; right: -6vw; font-size: 26vw; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.stamp {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hanko), var(--mint));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--shadow);
}
.brand-title { font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.15; }
.brand-sub { font-size: 11px; color: var(--ink-soft); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn:active { transform: scale(0.94); }

/* ---------- Layout ---------- */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 18px 60px;
  position: relative;
  z-index: 1;
}
.hero { text-align: center; margin-bottom: 20px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hanko);
  font-weight: 600;
}
.hero h1 { font-family: var(--display); font-size: 26px; margin: 6px 0 4px; font-weight: 700; }
.hero p { color: var(--ink-soft); font-size: 13.5px; margin: 0; }

/* ---------- Controls ---------- */
.controls { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.control-group {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.control-group-primary { background: var(--surface-solid); border-color: var(--hanko); }
.filter-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-align: center;
  font-weight: 600;
}
.filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 18px 6px;
  margin: 0 -18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-row::-webkit-scrollbar { display: none; }
.pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.pill:hover { border-color: var(--hanko); }
.pill.active {
  background: linear-gradient(135deg, var(--hanko), var(--gold));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px var(--shadow);
}
:root[data-theme="dark"] .pill.active { color: #0E1620; }

.search-row { display: flex; gap: 8px; }
.search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface-solid);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease;
}
.search-input:focus { border-color: var(--hanko); }
.search-input::placeholder { color: var(--ink-soft); opacity: 0.7; }

.mode-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.shuffle-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--hanko);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.shuffle-btn:active { transform: scale(0.96); }
.shuffle-btn.active {
  background: linear-gradient(135deg, var(--hanko), var(--gold));
  color: #fff;
  border-color: transparent;
}
:root[data-theme="dark"] .shuffle-btn.active { color: #0E1620; }

.deck-status-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-soft);
  margin-bottom: 6px; font-family: var(--mono); flex-wrap: wrap;
}
.progress-track { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 20px; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hanko), var(--mint));
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
}

/* =====================================================================
   NOTA GRID — kotak-kotak struk
   ===================================================================== */
.nota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px 18px;
  padding-bottom: 8px;
}

.nota {
  --tk: var(--tk-top10);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid var(--line);
  border-top: 5px solid var(--tk);
  border-radius: 6px 6px 0 0;
  padding: 14px 16px 22px;
  cursor: pointer;
  font-family: var(--mono);
  text-align: left;
  box-shadow: 0 10px 24px var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  /* tepi bawah bergerigi khas struk */
  --zig: 9px;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) 100% repeat-x;
          mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) 100% repeat-x;
}
.nota:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 16px 30px var(--shadow); }
.nota:nth-child(even):hover { transform: translateY(-4px) rotate(0.4deg); }
.nota:active { transform: scale(0.98); }
.nota:focus-visible { outline: 2px solid var(--hanko); outline-offset: 3px; }

.nota[data-tk="top10"] { --tk: var(--tk-top10); }
.nota[data-tk="r11"]   { --tk: var(--tk-r11); }
.nota[data-tk="r26"]   { --tk: var(--tk-r26); }
.nota[data-tk="r51"]   { --tk: var(--tk-r51); }
.nota[data-tk="r101"]  { --tk: var(--tk-r101); }
.nota[data-tk="r151"]  { --tk: var(--tk-r151); }
.nota[data-tk="lain"]  { --tk: var(--tk-lain); }

.nota-head {
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.nota-no {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px;
  color: var(--ink-soft);
  margin-top: 6px;
}
.nota-no b { color: var(--hanko); font-weight: 700; }

.nota-dash {
  border: 0;
  border-top: 2px dashed var(--paper-dash);
  margin: 10px 0;
}

.nota-radical {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 54px;
  line-height: 1.1;
  text-align: center;
  color: var(--hanko);
  word-break: keep-all;
}
.nota-radical.is-long { font-size: 36px; }
.nota-radical.is-xlong { font-size: 26px; }
.nota-reading {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 2px;
  font-weight: 500;
}

.nota-desc {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--paper-ink);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}

.nota-lines { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nota-line {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 11.5px;
}
.nota-line .w { font-family: var(--serif); font-weight: 600; white-space: nowrap; }
.nota-line .dots { flex: 1; border-bottom: 1.5px dotted var(--paper-dash); transform: translateY(-3px); min-width: 8px; }
.nota-line .m {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink-soft);
  text-align: right;
  max-width: 48%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nota-more {
  font-size: 10.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 4px;
  font-style: italic;
}

.nota-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
}
.nota-total .count { color: var(--hanko); }

.nota-hot {
  position: absolute;
  top: 10px; right: -6px;
  transform: rotate(6deg);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--hot);
  background: var(--hot-bg);
  border: 1.5px solid var(--hot);
  border-radius: 6px;
  padding: 1px 7px;
}

.nota-barcode {
  height: 20px;
  margin-top: 10px;
  background: repeating-linear-gradient(90deg,
    var(--paper-ink) 0 2px, transparent 2px 4px,
    var(--paper-ink) 4px 5px, transparent 5px 8px,
    var(--paper-ink) 8px 11px, transparent 11px 12px);
  opacity: 0.55;
  border-radius: 1px;
}

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  padding: 50px 10px;
  font-size: 14px;
}
.empty-state .big { font-family: var(--serif); font-size: 46px; opacity: 0.4; display: block; }

/* =====================================================================
   FLASHCARD MODE (flip 3D ala Tango)
   ===================================================================== */
.stage { display: flex; align-items: center; gap: 10px; justify-content: center; }
.nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--hanko);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.nav-btn:hover { transform: translateY(-1px); }
.nav-btn:active { transform: scale(0.92); }

.card-outer {
  perspective: 1400px;
  -webkit-perspective: 1400px;
  width: 100%;
  max-width: 420px;
  height: 500px;
}
.card {
  position: relative;
  width: 100%; height: 100%;
  cursor: pointer;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card.flipped { transform: rotateY(180deg); }
.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid var(--line);
  border-top: 6px solid var(--tk, var(--hanko));
  border-radius: 8px 8px 0 0;
  box-shadow: 0 14px 34px var(--shadow);
  padding: 20px 22px 30px;
  display: flex; flex-direction: column;
  overflow: hidden;
  font-family: var(--mono);
  --zig: 11px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) 100% repeat-x;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) 100% repeat-x;
}
.card-face.back { transform: rotateY(180deg); }

.card-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.badge-group { display: flex; gap: 6px; }
.tier-badge, .hot-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
}
.tier-badge { background: color-mix(in srgb, var(--tk, #1565C0) 20%, transparent); color: var(--paper-ink); }
.hot-badge { background: var(--hot-bg); color: var(--hot); }
.card-index { font-size: 11px; color: var(--ink-soft); }

.card-body {
  flex: 1;
  min-height: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: 8px;
  overflow-y: auto;
}
.card-body.is-overflowing { justify-content: flex-start; }
.fc-radical {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 96px;
  line-height: 1.15;
  color: var(--hanko);
  word-break: keep-all;
}
.fc-radical.is-long { font-size: 60px; }
.fc-radical.is-xlong { font-size: 40px; }
.fc-rank { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.fc-hint { font-size: 11px; color: var(--ink-soft); opacity: 0.8; text-align: center; margin-top: 6px; }

.fc-reading { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--hanko); }
.fc-desc { font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.45; padding: 0 4px; }

.fc-lines { width: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; text-align: left; }
.fc-line { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.fc-line .w { font-family: var(--serif); font-weight: 700; font-size: 17px; white-space: nowrap; }
.fc-line .r { font-family: var(--serif); font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.fc-line .dots { flex: 1; border-bottom: 1.5px dotted var(--paper-dash); transform: translateY(-3px); min-width: 8px; }
.fc-line .m { font-family: var(--sans); font-weight: 700; text-align: right; }

.nota-total-fc {
  display: flex; justify-content: space-between;
  border-top: 2px dashed var(--paper-dash);
  padding-top: 8px; margin-top: 8px;
  font-size: 11px; font-weight: 700; color: var(--ink-soft);
}

.footer-note { text-align: center; font-size: 11.5px; color: var(--ink-soft); margin-top: 28px; opacity: 0.7; line-height: 1.6; }

/* =====================================================================
   DETAIL SHEET (modal nota besar)
   ===================================================================== */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 20, 30, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.sheet-overlay.open { opacity: 1; pointer-events: auto; }
.sheet {
  --tk: var(--hanko);
  position: relative;
  width: 100%; max-width: 400px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  color: var(--paper-ink);
  border-top: 6px solid var(--tk);
  border-radius: 8px 8px 0 0;
  padding: 20px 22px 34px;
  font-family: var(--mono);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  --zig: 11px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) 100% repeat-x;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) 100% repeat-x;
}
.sheet-overlay.open .sheet { transform: none; }
.sheet-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--ink);
  font-size: 16px; cursor: pointer;
}
.sheet .sheet-radical {
  font-family: var(--serif); font-weight: 700; font-size: 84px; line-height: 1.15;
  text-align: center; color: var(--hanko);
}
.sheet .sheet-radical.is-long { font-size: 54px; }
.sheet .sheet-radical.is-xlong { font-size: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .hero h1 { font-size: 22px; }
  .nota-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .nota { padding: 12px 11px 20px; }
  .nota-radical { font-size: 44px; }
  .nota-radical.is-long { font-size: 30px; }
  .nota-radical.is-xlong { font-size: 22px; }
  .nota-desc { font-size: 11.5px; }
  .nota-line { font-size: 10.5px; }
  .nota-head { font-size: 8.5px; letter-spacing: 0.14em; }
  .card-outer { height: 480px; }
}
@media (min-width: 900px) {
  .wrap { padding: 32px 24px 72px; }
  .filter-row { justify-content: center; flex-wrap: wrap; margin: 0; padding: 2px 0 6px; }
  .card-outer { max-width: 460px; height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .nota, .sheet, .sheet-overlay { transition: none; }
}


/* =====================================================================
   SLIDE GAYA TIKTOK — penjelasan bushu + contoh, kanji berkaitan disorot
   ===================================================================== */
.slide { display: flex; flex-direction: column; gap: 10px; width: 100%; font-family: var(--sans); text-align: center; }
.card-body.slide { justify-content: flex-start; padding: 2px 0 6px; }

.sl-title {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--hanko) 14%, var(--paper));
  border: 1px solid var(--line);
  font-family: var(--display); font-weight: 800; color: var(--hanko);
}
.sl-form { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.sl-arrow { font-size: 22px; opacity: 0.6; }
.sl-key { font-size: 19px; letter-spacing: 0.02em; }

.sl-lead {
  font-size: 13.5px; line-height: 1.55; font-weight: 600;
  padding: 10px 12px; border-radius: 10px;
  background: var(--paper-2); border: 1px dashed var(--paper-dash);
  color: var(--paper-ink);
}
.sl-lead .q { font-family: var(--serif); font-size: 1.15em; color: var(--hanko); }
.sl-lead .key {
  color: #fff; background: var(--hanko); padding: 1px 8px; border-radius: 6px;
  font-family: var(--display); font-weight: 800; letter-spacing: 0.02em; white-space: nowrap;
}
:root[data-theme="dark"] .sl-lead .key { color: #0E1620; }

.sl-badge {
  align-self: center;
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.06em;
  padding: 3px 18px; border-radius: 8px;
  background: var(--paper-ink); color: var(--paper);
}

.sl-list { display: flex; flex-direction: column; gap: 4px; padding: 4px 2px; }
.ex-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, auto) auto minmax(0, 1fr);
  align-items: baseline; justify-content: center; column-gap: 6px;
  text-align: left;
  padding: 5px 4px; border-bottom: 1px dotted var(--paper-dash);
}
.ex-row:last-child { border-bottom: 0; }
.ex-w { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.25; white-space: nowrap; }
.ex-r { font-family: var(--serif); font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.ex-sep { color: var(--ink-soft); font-weight: 700; }
.ex-m { font-family: var(--sans); font-weight: 700; font-size: 14.5px; color: var(--paper-ink); }

/* SOROTAN: kanji yang memuat bushu ini */
mark.hl {
  background: linear-gradient(transparent 55%, color-mix(in srgb, var(--tk, var(--hanko)) 55%, transparent) 55%);
  color: var(--hanko);
  padding: 0 1px; border-radius: 2px;
}
.sl-legend { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.sl-legend mark.hl { font-family: var(--serif); font-weight: 700; padding: 0 3px; }
.nota-line .w mark.hl { font-weight: 700; }

.sheet .slide { margin-top: 8px; }
.sheet .nota-reading { margin-bottom: 6px; }

@media (max-width: 480px) {
  .sl-form { font-size: 22px; } .sl-key { font-size: 16px; }
  .ex-w { font-size: 19px; } .ex-m { font-size: 13px; } .sl-lead { font-size: 12.5px; }
}


/* =====================================================================
   KANJI BERGORESAN — bagian bushu berwarna, sisanya pudar (untuk dibandingkan)
   ===================================================================== */
.kj { position: relative; display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.kj svg.kv { width: 100%; height: 100%; display: block; overflow: visible; }
.kj .kj-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* untuk salin-tempel & pembaca layar */
svg.kv path.s { fill: none; stroke-linecap: round; stroke-linejoin: round; }
svg.kv path.s.off { stroke: var(--paper-ink); stroke-opacity: 0.28; stroke-width: 4.2; }
svg.kv path.s.on  { stroke: var(--hanko); stroke-width: 6.4; }
.ex-w .kj { width: 1.25em; height: 1.25em; }
.nota-line .w .kj { width: 1.2em; height: 1.2em; }
.sl-legend { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.sl-legend .lg-on  { color: var(--hanko); }
.sl-legend .lg-off { color: var(--paper-ink); opacity: 0.3; }
