/* RimaKata — tinta & stabilo
   Biru tinta untuk struktur, stabilo kunyit untuk bagian kata yang berima. */
:root {
  --ink: #1f2a6b;
  --ink-2: #33419a;
  --ink-soft: #e8ebf8;
  --paper: #f6f7fb;
  --surface: #ffffff;
  --line: #dce1f0;
  --text: #191c2e;
  --muted: #555c7a;
  --kunyit: #f5c53b;
  --kunyit-soft: #fdf0c4;
  --stabilo: #f5c53b;
  --daun: #23704f;
  --daun-soft: #dff1e8;
  --merah: #b8352e;
  --merah-soft: #fbe3e1;
  --link: #2a3aa8;
  --radius-s: 6px;
  --radius-m: 12px;
  --shadow: 0 1px 2px rgba(31, 42, 107, .08), 0 4px 16px rgba(31, 42, 107, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
  /* warna huruf pola rima (a, b, c, …) */
  --r1: #f5c53b; --r2: #8fc9f2; --r3: #f2a3b7; --r4: #9ad7a8; --r5: #c9b3f5; --r6: #f7b27a; --r7: #9fe0dc; --r8: #d8d27a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #11173d; --ink-2: #b9c3ff; --ink-soft: #232a55; --paper: #0f1226; --surface: #181c36;
    --line: #2b3260; --text: #e9ebf7; --muted: #a3a9c9; --link: #b9c3ff; --kunyit-soft: #4a3d12; --stabilo: #9a7414;
    --daun: #6fd3a3; --daun-soft: #173b2c; --merah: #ff9a92; --merah-soft: #47201e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #11173d; --ink-2: #b9c3ff; --ink-soft: #232a55; --paper: #0f1226; --surface: #181c36;
  --line: #2b3260; --text: #e9ebf7; --muted: #a3a9c9; --link: #b9c3ff; --kunyit-soft: #4a3d12; --stabilo: #9a7414;
  --daun: #6fd3a3; --daun-soft: #173b2c; --merah: #ff9a92; --merah-soft: #47201e; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.6 var(--font); }
img, svg, canvas { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--kunyit); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
mark { background: linear-gradient(transparent 52%, var(--stabilo) 52%, var(--stabilo) 92%, transparent 92%); color: inherit; padding: 0 .04em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--kunyit); color: #191c2e; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
[hidden] { display: none !important; }

/* Header */
.site-header { background: var(--ink); color: #fff; padding: 10px 0 14px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 44px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; }
.brand-mark { background: linear-gradient(transparent 55%, var(--kunyit) 55%, var(--kunyit) 90%, transparent 90%); color: #fff; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: #e3e7ff; text-decoration: none; padding: 8px 10px; border-radius: var(--radius-s); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { background: rgba(255,255,255,.1); }
.fav-count { display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: 99px; background: var(--kunyit); color: #191c2e; font-size: .75rem; text-align: center; font-weight: 700; }
.search { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.search input, .search select { font: inherit; border: 0; border-radius: var(--radius-s); padding: 0 14px; height: 46px; background: #fff; color: #191c2e; }
.search input[type="search"] { background: #fff; color: #191c2e; border: 0; }
.search input { flex: 1 1 220px; font-size: 1.05rem; min-width: 0; }
.search select { flex: 0 1 230px; min-width: 0; }
.search button { font: inherit; font-weight: 700; height: 46px; padding: 0 20px; border: 0; border-radius: var(--radius-s); background: var(--kunyit); color: #191c2e; cursor: pointer; }
.search button:hover { filter: brightness(1.05); }
.page-home .site-header .search { display: none; }
@media (max-width: 560px) {
  .search select { flex: 1 1 100%; order: 3; height: 40px; }
  .search button { flex: 0 0 auto; }
  .main-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; margin: 0 -6px; }
  .main-nav a { white-space: nowrap; }
}

.crumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); padding-top: 14px; padding-bottom: 0; }
.crumbs a { color: var(--muted); }
.main { padding-top: 20px; padding-bottom: 48px; min-height: 50vh; }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; font-size: .95rem; padding: 9px 16px; min-height: 42px; border-radius: var(--radius-s); border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--link); border-color: var(--line); }
.btn-quiet:hover { background: var(--ink-soft); border-color: var(--line); color: var(--link); }
.btn-accent { background: var(--kunyit); border-color: var(--kunyit); color: #191c2e; }
.btn-accent:hover { background: #ffd65e; border-color: #ffd65e; }
.btn-sm { min-height: 34px; padding: 5px 10px; font-size: .875rem; }
.btn[aria-pressed="true"] { background: var(--kunyit); border-color: var(--kunyit); color: #191c2e; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link-quiet { color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .95rem; }
.chip:hover { border-color: var(--ink-2); }
button.chip { font: inherit; cursor: pointer; }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; padding: 24px 0 8px; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); max-width: 16ch; }
.search-hero { margin: 20px 0 10px; }
.search-hero input[type="search"] { border: 2px solid var(--ink-2); height: 56px; font-size: 1.15rem; }
.search-hero button { height: 56px; background: var(--ink); color: #fff; }
.try { color: var(--muted); font-size: .95rem; }
.try a { margin-left: 8px; }
.wotd { background: var(--surface); border-radius: var(--radius-m); padding: 20px; box-shadow: var(--shadow); }
.wotd h2 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.wotd-word { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; }
.wotd-word a { color: var(--text); text-decoration: none; }
.wotd-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 1.1rem; }
.wotd-list a { color: var(--text); text-decoration: none; }
.wotd-list a:hover { text-decoration: underline; }
.home-section { margin-top: 48px; }
.type-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 28px; margin: 16px 0; }
.type-list dt { font-weight: 700; }
.type-list dd { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.example-inline { display: block; font-style: italic; }
.cat-title { margin-top: 24px; }
.tool-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.tool-link { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); height: 100%; }
.tool-link:hover { border-color: var(--ink-2); text-decoration: none; }
.tool-link strong { display: block; color: var(--link); }
.tool-short { display: block; color: var(--muted); font-size: .9rem; line-height: 1.45; margin-top: 2px; }
.tool-icon { font-size: 1.4rem; line-height: 1; flex: 0 0 auto; width: 1.6em; text-align: center; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }

/* Word page */
.word-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.word-hero h1 { margin-bottom: 6px; }
.the-word { background: linear-gradient(transparent 58%, var(--stabilo) 58%, var(--stabilo) 92%, transparent 92%); }
.word-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 1.05rem; margin-bottom: 12px; }
.word-meta span:first-child { font-weight: 600; color: var(--text); letter-spacing: .02em; }
.word-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.notice { background: var(--ink-soft); padding: 10px 14px; border-radius: var(--radius-s); }
.suggest { margin: 12px 0; }
.type-nav { position: sticky; top: 0; z-index: 5; background: var(--paper); display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin: 12px 0 8px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.type-pill { flex: 0 0 auto; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .9rem; white-space: nowrap; }
.type-pill b { color: var(--muted); font-weight: 600; margin-left: 4px; }
.type-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.type-pill.is-active b { color: #cfd5ff; }
.type-pill.is-empty { opacity: .55; }
.rhyme-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.rhyme-head p { margin-bottom: .6em; font-size: .95rem; }
.syll-group { margin: 12px 0; }
.syll-group h3 { font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.count { display: inline-block; font-size: .78rem; background: var(--ink-soft); color: var(--muted); padding: 0 7px; border-radius: 99px; margin-left: 4px; }
.words { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.words a { display: inline-block; padding: 4px 8px; border-radius: var(--radius-s); color: var(--text); text-decoration: none; font-size: 1.05rem; }
.words a:hover { background: var(--kunyit-soft); }
.words-plain a { color: var(--link); }
.words-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.block-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.none { color: var(--muted); font-style: italic; }
.word-side { position: sticky; top: 72px; display: grid; gap: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; }
.side-card h2 { font-size: 1.05rem; }
.side-links { padding-left: 1.1em; margin: 0; }
.side-links li { margin: 4px 0; }
.neighbors { display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 900px) {
  .word-layout { grid-template-columns: minmax(0, 1fr); }
  .word-side { position: static; }
}

/* Lists, pager, prose */
.page-head { margin-bottom: 12px; }
.alpha { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.alpha a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; }
.alpha a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.alpha-sub a { font-weight: 500; font-size: .9rem; min-width: 38px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0; align-items: center; }
.pager a, .pager span { padding: 6px 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .gap { border: 0; background: none; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.narrow { margin: 0 auto; }
.defs dt { font-weight: 700; margin-top: 14px; }
.defs dd { margin: 4px 0 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--ink-soft); }
.table-wrap { overflow-x: auto; }
.empty-state { text-align: center; padding: 40px 0; }
.empty-state .chips { justify-content: center; }

/* Ads */
.ad { margin: 24px 0; min-height: 100px; }
.ad small { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 4px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0 16px; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-title { font-size: 1rem; }
.footer-tools { list-style: none; padding: 0; margin: 0; }
.footer-tools li { margin: 4px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 14px; color: var(--muted); font-size: .875rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--text); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-s); z-index: 50; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* ---------- Tools ---------- */
.tool-head { margin-bottom: 16px; }
.tool-head h1 { display: flex; gap: 12px; align-items: center; }
.tool-app { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .tool-app { padding: 14px; margin: 0 -6px; } }
.tool-about { margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.grid-main-side { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid-2, .grid-main-side { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: .95rem; }
.hint { color: var(--muted); font-size: .85rem; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1 1 180px; min-width: 0; }
input[type="text"], input[type="search"], input[type="number"], input[type="color"], select, textarea {
  font: inherit; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 9px 12px; min-height: 42px; width: 100%;
}
input[type="color"] { padding: 2px; width: 56px; }
input[type="range"] { width: 100%; accent-color: var(--ink-2); }
textarea { min-height: 220px; line-height: 1.7; resize: vertical; }
textarea.tall { min-height: 360px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink-2); outline: 2px solid transparent; box-shadow: 0 0 0 3px var(--ink-soft); }
.out { margin-top: 16px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; min-width: 110px; }
.stat b { display: block; font-size: 1.4rem; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .85rem; }
.pill-ok, .pill-bad, .pill-mid { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.pill-ok { background: var(--daun-soft); color: var(--daun); }
.pill-bad { background: var(--merah-soft); color: var(--merah); }
.pill-mid { background: var(--kunyit-soft); color: var(--text); }
.ok { color: var(--daun); } .bad { color: var(--merah); }

/* rhyme letter tags */
.rl { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; border-radius: 5px; font-weight: 800; font-size: .85rem; color: #191c2e; background: var(--ink-soft); }
.rl-1 { background: var(--r1); } .rl-2 { background: var(--r2); } .rl-3 { background: var(--r3); } .rl-4 { background: var(--r4); }
.rl-5 { background: var(--r5); } .rl-6 { background: var(--r6); } .rl-7 { background: var(--r7); } .rl-8 { background: var(--r8); }
.rl-x { background: transparent; border: 1px dashed var(--muted); color: var(--muted); }
.hl-1 { background: color-mix(in srgb, var(--r1) 45%, transparent); } .hl-2 { background: color-mix(in srgb, var(--r2) 45%, transparent); }
.hl-3 { background: color-mix(in srgb, var(--r3) 45%, transparent); } .hl-4 { background: color-mix(in srgb, var(--r4) 45%, transparent); }
.hl-5 { background: color-mix(in srgb, var(--r5) 45%, transparent); } .hl-6 { background: color-mix(in srgb, var(--r6) 45%, transparent); }
.hl-7 { background: color-mix(in srgb, var(--r7) 45%, transparent); } .hl-8 { background: color-mix(in srgb, var(--r8) 45%, transparent); }

.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 4px; border-bottom: 1px dashed var(--line); }
.lines li.blank { border-bottom: 0; padding: 6px 0; display: block; }
.lines .txt { overflow-wrap: anywhere; }
.lines .meta { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.stanza-label { margin: 14px 0 4px; font-weight: 700; font-size: .95rem; }
.bar { height: 10px; border-radius: 99px; background: var(--ink-soft); position: relative; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--ink-2); border-radius: 99px; }
.bar.over > i { background: var(--merah); } .bar.under > i { background: var(--kunyit); } .bar.good > i { background: var(--daun); }
.word-cloud { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: center; padding: 20px; min-height: 160px; background: var(--paper); border-radius: var(--radius-m); line-height: 1.15; }
.word-cloud span { font-weight: 700; color: var(--ink-2); }
.result-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.result-list button, .result-list a { font: inherit; font-size: .98rem; padding: 4px 10px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--paper); color: var(--text); cursor: pointer; text-decoration: none; }
.result-list button:hover, .result-list a:hover { background: var(--kunyit-soft); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; }
.card + .card { margin-top: 12px; }
.big-word { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin: 4px 0; overflow-wrap: anywhere; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.memory-card { aspect-ratio: 4/3; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: clamp(.8rem, .6rem + 1vw, 1.05rem); cursor: pointer; padding: 4px; overflow-wrap: anywhere; }
.memory-card.is-open { background: var(--surface); color: var(--text); }
.memory-card.is-done { background: var(--daun-soft); color: var(--daun); border-color: var(--daun); cursor: default; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.6rem; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-row button { font: inherit; font-size: 1.35rem; font-weight: 700; padding: 18px 10px; border-radius: var(--radius-m); border: 2px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.choice-row button:hover { border-color: var(--ink-2); }
.choice-row button.is-right { border-color: var(--daun); background: var(--daun-soft); }
.choice-row button.is-wrong { border-color: var(--merah); background: var(--merah-soft); }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; padding: 8px; border-radius: var(--radius-s); background: var(--paper); border: 1px dashed var(--line); }
.tiles button { font: inherit; font-weight: 700; font-size: 1.15rem; padding: 8px 14px; border-radius: var(--radius-s); border: 1px solid var(--ink-2); background: var(--surface); color: var(--text); cursor: pointer; }
.chain { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chain span { padding: 4px 10px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }
.chain span.me { border-color: var(--ink-2); }
.chain span.cpu { background: var(--ink-soft); }
.section-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px; background: var(--paper); }
.section-card + .section-card { margin-top: 10px; }
.section-card header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.section-card header strong { flex: 1 1 auto; }
.section-card textarea { min-height: 110px; }
.poem-line { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.poem-line input { min-height: 40px; }
.kbd { font-family: inherit; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: .85em; }
.drop-target { outline: 2px dashed var(--kunyit); }
.pad-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--line); display: inline-block; }
.pad-dot.on { background: var(--kunyit); }
.pad-dot.accent.on { background: var(--merah); }
canvas.preview { width: 100%; height: auto; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--paper); }
.tool-about h2 { margin-top: 1.2em; }
.tool-about ol, .tool-about ul { padding-left: 1.3em; }
.related { margin-top: 36px; }
.cat-block { margin-top: 28px; }
.cat-block > p { margin-top: -.3em; }
details.panel { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; margin: 10px 0; background: var(--paper); }
details.panel summary { cursor: pointer; font-weight: 600; }
.ex-list li { margin: 4px 0; }
.quote-box { white-space: pre-line; background: var(--paper); border-left: 4px solid var(--kunyit); padding: 10px 14px; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
@media (prefers-reduced-motion: no-preference) {
  .flash { animation: flash .6s ease-out; }
  @keyframes flash { from { background: var(--kunyit-soft); } to { background: transparent; } }
}
