/* Freeriding Korean — main stylesheet */
:root {
  /* Freeriding channel brand: blue #1f4fd8, navy #101c3d, soft blue #e3e9f8 */
  --bg: #f5f7fc; --surface: #fff; --surface-2: #edf1fa; --text: #101c3d; --muted: #56617f; --line: #dfe5f2;
  --brand: #1f4fd8; --brand-2: #4a7cf0; --brand-soft: #e3e9f8; --on-brand: #fff; --accent: #4a8cff;
  --ok: #128a48; --ok-soft: #e3f6ea; --bad: #d93a40; --bad-soft: #fde8e8;
  --tip-bg: #fff8e6; --tip-line: #f2c35c; --k: #1f4fd8;
  --shadow: 0 1px 2px rgba(16, 28, 61, .05), 0 6px 20px rgba(16, 28, 61, .06);
  --r: 16px; --r-sm: 10px; --tabbar: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-ko: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120; --surface: #131b2e; --surface-2: #1a2440; --text: #e9eefb; --muted: #9eabc8; --line: #26324f;
    --brand: #7ea2ff; --brand-2: #a9c1ff; --brand-soft: #1b2a52; --on-brand: #0b1120; --accent: #8fb6ff;
    --ok: #4cd38a; --ok-soft: #12301f; --bad: #ff7a7f; --bad-soft: #3a1a1c; --tip-bg: #2a2416; --tip-line: #6b5420; --k: #9db8ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); }
img, svg { display: block; max-width: 100%; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); margin: 1.8em 0 .6em; }
h3 { font-size: 1.1rem; margin: 0 0 .3em; }
p { margin: 0 0 1em; }
[lang="ko"], .ko { font-family: var(--font-ko); word-break: keep-all; overflow-wrap: anywhere; }
.k { color: var(--k); font-weight: 600; font-family: var(--font-ko); }
.sr { 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(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 24px; } }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.logo img { border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.logo-text small { font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 99px; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current] { color: var(--brand); background: var(--brand-soft); }
.lang-pick { margin-left: auto; position: relative; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.lang-pick svg { position: absolute; left: 10px; pointer-events: none; width: 18px; height: 18px; }
.lang-pick select { appearance: none; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px 7px 34px; font: inherit; font-size: .9rem; max-width: 160px; cursor: pointer; }
@media (min-width: 900px) { .nav { display: flex; } }
@media (max-width: 520px) {
  .lang-pick select { width: 44px; height: 44px; padding: 0; color: transparent; }
  .lang-pick select option { color: var(--text); }
  .lang-pick svg { left: 13px; color: var(--text); }
}

/* Mobile tab bar */
.tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 20px rgba(0, 0, 0, .05); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 600; line-height: 1.2; text-align: center; min-height: var(--tabbar); justify-content: center; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current] { color: var(--brand); }
body { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 99px; border: 1.5px solid transparent; background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .1s, background .2s, box-shadow .2s; }
.btn:hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.btn.ghost:hover { background: var(--brand-soft); box-shadow: none; }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.btn.wide { width: 100%; }
.btn.ok { background: var(--ok); }
.btn.bad { background: var(--bad); }
.btn small { opacity: .6; font-size: .7rem; font-weight: 500; }
.btn.is-done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0; }
.cta.center { justify-content: center; }
.say { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brand-soft); color: var(--brand); cursor: pointer; flex: none; transition: transform .1s, background .2s; }
.say:hover { background: color-mix(in srgb, var(--brand) 22%, transparent); }
.say:active { transform: scale(.92); }
.say.big { width: 56px; height: 56px; }
.say.big svg { width: 26px; height: 26px; }
.say.huge { width: 96px; height: 96px; margin: 8px auto; }
.say.huge svg { width: 44px; height: 44px; }
.speaking { animation: ring 1s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

/* Cards & grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
a.card { color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.grid { display: grid; gap: 12px; }
.units { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.features { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.unit { display: flex; align-items: center; gap: 14px; padding: 14px 16px; position: relative; }
.unit .num { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; font-family: var(--font-ko); font-size: 1.1rem; }
.unit-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.unit-body strong { font-size: 1rem; }
.unit-body .ko { color: var(--muted); font-size: .92rem; }
.unit-body .meta { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.unit .check { margin-left: auto; display: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; place-items: center; font-size: .8rem; font-weight: 800; flex: none; }
.unit.done .check { display: grid; }
.feature { padding: 18px; border-radius: var(--r); background: var(--surface-2); }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.block { margin: 3rem 0; }
.block > h2:first-child, .sec-head h2 { margin-top: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: .8rem; flex-wrap: wrap; }
.sec-head a { font-weight: 600; text-decoration: none; }
.notice { background: var(--surface-2); border-left: 4px solid var(--brand); padding: 12px 16px; border-radius: var(--r-sm); color: var(--muted); font-size: .95rem; }

/* Hero */
main { overflow-x: clip; }
.hero { display: grid; gap: 20px; padding: 28px 0 8px; align-items: center; position: relative; isolation: isolate; }
/* soft circles, same motif as the channel banner */
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero::before { width: 340px; height: 340px; left: -200px; top: -160px; background: var(--brand-soft); opacity: .8; }
.hero::after { width: 90px; height: 90px; right: 4%; top: 0; border: 6px solid var(--brand-soft); }
@media (min-width: 820px) { .hero { grid-template-columns: 1.4fr 1fr; gap: 40px; padding-top: 48px; } }
.kicker { color: var(--brand); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .4em; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.3rem); font-weight: 850; letter-spacing: -.025em; }
.ko-accent { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; white-space: nowrap; }
.lead { font-size: 1.12rem; color: var(--muted); }
.wotd { padding: 22px; text-align: center; background: linear-gradient(160deg, var(--surface), var(--brand-soft)); }
.wotd-ko { font-size: clamp(2.2rem, 1.6rem + 3vw, 3rem); font-weight: 800; margin: .1em 0 0; line-height: 1.25; }
.wotd .rom { margin-bottom: .4em; }
.wotd-m { font-size: 1.1rem; font-weight: 600; }
.wotd .say { margin: 0 auto; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.step { display: flex; flex-direction: column; gap: 4px; padding: 18px; height: 100%; }
.step span:last-child { color: var(--muted); font-size: .93rem; }
.step-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 4px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.faq details p { color: var(--muted); }

/* Article / lesson */
.crumbs { font-size: .85rem; color: var(--muted); padding: 16px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs a { color: var(--muted); }
.page-head { padding: 12px 0 8px; }
.article { max-width: 760px; margin: 0 auto; padding-bottom: 2rem; }
.lesson-head { padding-top: 8px; }
.ko-title { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; color: var(--muted); }
.ko-title .say { width: 36px; height: 36px; }
.rom { color: var(--muted); font-style: italic; margin: 0; font-size: .92rem; }
.phrases { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.phrase { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.phrase .ko { font-size: 1.25rem; font-weight: 700; margin: 0; line-height: 1.35; }
.phrase .mean { grid-column: 2; margin: 0; }
@media (min-width: 640px) { .phrase { grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr); } .phrase .mean { grid-column: 3; } }
.tip { background: var(--tip-bg); border: 1px solid var(--tip-line); border-radius: var(--r); padding: 4px 20px 6px; margin: 2rem 0; }
.tip h2 { font-size: 1.1rem; margin: 1rem 0 .4rem; }
.tip h2::before { content: "💡 "; }
.dialogue { display: flex; flex-direction: column; gap: 12px; }
.line { display: flex; gap: 10px; align-items: flex-start; }
.line.b { flex-direction: row-reverse; }
.spk { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand-soft); color: var(--brand); margin-top: 6px; }
.line.b .spk { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.bubble { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; max-width: 88%; }
.line.b .bubble { background: var(--surface-2); }
.ex-line .bubble { max-width: 100%; width: 100%; }
.bubble .say { width: 36px; height: 36px; }
.bubble .ko { font-size: 1.12rem; font-weight: 600; margin: 0; }
.bubble .mean { margin: 4px 0 0; }
.quiz-box { padding: 6px 20px 20px; margin: 2rem 0; }
.quiz-box h2 { margin-top: 1rem; }
.q-count { color: var(--muted); font-size: .85rem; margin: 0 0 .4rem; }
.q-prompt { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.opts { display: grid; gap: 8px; }
@media (min-width: 560px) { .opts { grid-template-columns: 1fr 1fr; } }
.opt { text-align: left; font: inherit; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; min-height: 52px; }
.opt:hover:not(:disabled) { border-color: var(--brand); }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt:disabled { cursor: default; }
.q-feedback { min-height: 46px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.ok { color: var(--ok); font-weight: 700; }
.bad { color: var(--bad); font-weight: 700; }
.quiz-end .score, .score { font-size: 1.3rem; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.5rem 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 2rem; }
.pager .card { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pager small { color: var(--muted); }
.pager .next { text-align: right; }
@media (max-width: 520px) { .pager { grid-template-columns: 1fr; } }
.progress-line { color: var(--muted); }
.legal h2 { font-size: 1.25rem; }
.legal li { margin-bottom: .4em; }
.contact-card { background: var(--surface-2); border-radius: var(--r); padding: 4px 20px 10px; }
.big-404 { font-size: 5rem; font-weight: 900; margin: 0; color: var(--brand); }

/* Hangul page */
.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 1rem 0 1.5rem; }
.letter { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 8px; text-align: center; }
.letter-btn { border: 0; background: var(--brand-soft); color: var(--brand); width: 72px; height: 72px; border-radius: 18px; cursor: pointer; display: grid; place-items: center; }
.letter-btn:active { transform: scale(.95); }
.glyph { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.lname { font-weight: 600; margin-top: 6px; }
.lsound { color: var(--muted); font-size: .85rem; }
.ex { border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; padding: 4px 6px; border-radius: 8px; line-height: 1.3; }
.ex:hover { background: var(--surface-2); }
.ex small { display: block; color: var(--muted); }
.letter .ex span { font-weight: 600; }
.blocks-demo { display: flex; flex-wrap: wrap; gap: 10px; margin: 1rem 0 1.5rem; }
.demo { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 12px 16px; cursor: pointer; font: inherit; color: var(--text); min-width: 120px; }
.demo b { font-size: 2.2rem; font-family: var(--font-ko); line-height: 1.2; }
.demo small { color: var(--muted); }
.demo.small { min-width: 72px; padding: 8px 12px; }
.demo.small b { font-size: 1.7rem; }
.table-wrap { overflow-x: auto; }
table.bat { border-collapse: collapse; width: 100%; background: var(--surface); border-radius: var(--r-sm); overflow: hidden; }
.bat th, .bat td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.bat th { background: var(--surface-2); font-size: .85rem; color: var(--muted); }
.builder { padding: 6px 20px 20px; margin: 2rem 0; }
.builder h2 { margin-top: 1rem; }
.builder-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.builder label, .set-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); font-weight: 600; }
select { max-width: 100%; min-width: 0; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 10px; min-height: 44px; }
.builder select { font-family: var(--font-ko); font-size: 1.2rem; }
.builder-out { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.b-syl { font-size: 4.5rem; font-weight: 800; line-height: 1; min-width: 1.2em; }
.b-rom { font-size: 1.4rem; color: var(--muted); font-style: italic; min-width: 4ch; }

/* Practice */
.practice { margin: 1rem 0 2rem; }
.loading { color: var(--muted); }
.p-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; justify-content: space-between; }
.p-set { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); font-weight: 600; flex: 1 1 260px; max-width: 480px; min-width: 0; }
.p-set select { width: 100%; }
.p-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0; }
.p-stats span { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 4px; text-align: center; display: flex; flex-direction: column; line-height: 1.25; }
.p-stats b { font-size: .98rem; white-space: nowrap; }
.p-stats small { font-size: .68rem; color: var(--muted); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 99px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); padding: 10px 6px; border-radius: 99px; cursor: pointer; font-size: .92rem; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.p-body { min-height: 360px; }
.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .3s; }
.fcard { position: relative; min-height: 290px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; padding: 34px 20px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.fcard.flipped { cursor: default; }
.f-front, .f-back { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.f-back { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 6px; }
.f-ko { font-size: clamp(2rem, 1.4rem + 3.5vw, 3.2rem); font-weight: 800; line-height: 1.25; margin: 0; word-break: keep-all; }
.f-m { font-size: 1.3rem; font-weight: 600; margin: 0; }
.f-count { position: absolute; top: 12px; right: 16px; color: var(--muted); font-size: .8rem; }
.f-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.f-actions .wide { grid-column: 1 / -1; }
.f-actions .btn { flex-direction: column; gap: 0; line-height: 1.2; min-height: 54px; }
.p-done { text-align: center; padding: 40px 10px; }
.big-emoji { font-size: 3.5rem; margin: 0; }
.quiz-q { text-align: center; padding: 22px 16px; margin-bottom: 12px; }
.p-settings { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 14px; }
.p-settings summary { cursor: pointer; font-weight: 600; color: var(--muted); padding: 6px 0; }
.set-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding: 10px 0; }
.set-grid .chk { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: .95rem; }
.chk input { width: 20px; height: 20px; accent-color: var(--brand); }
.hf { text-align: center; padding: 34px 16px; position: relative; min-height: 250px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.hf-ctrl { display: flex; justify-content: center; gap: 12px; margin: 16px 0; }
.btn.round { min-width: 56px; min-height: 56px; }
.btn.play { min-width: 150px; }

/* Tool */
.tool { padding: 16px; margin: 1rem 0; }
.tool textarea { width: 100%; font: 1.1rem/1.6 var(--font-ko); padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--text); resize: vertical; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tlines { display: flex; flex-direction: column; gap: 6px; }
.tline { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tline .ko { margin: 0; font-size: 1.15rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 99px; padding: 6px 14px; font: inherit; font-size: .92rem; cursor: pointer; }
.chip span { color: var(--muted); }
.howto li { margin-bottom: .5em; }

/* Footer */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0 20px; font-size: .92rem; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-grid h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .6em; }
.foot-grid a:not(.logo) { display: block; color: var(--text); text-decoration: none; padding: 3px 0; }
.foot-grid a:not(.logo):hover { color: var(--brand); }
.foot-grid p { color: var(--muted); margin-top: .6em; }
.fine { color: var(--muted); font-size: .8rem; margin: 1em 0 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
