:root {
  --paper: #f5efe5;
  --paper-deep: #ede3d4;
  --card: #fffaf2;
  --ink: #1f2d36;
  --muted: #7d8585;
  --line: #ded5c8;
  --vermilion: #d9553f;
  --vermilion-dark: #b64132;
  --mint: #b9d9c5;
  --mint-ink: #2f6a55;
  --yellow: #f0c969;
  --shadow: 0 16px 34px rgba(47, 45, 39, .08);
  --shadow-small: 0 6px 16px rgba(47, 45, 39, .08);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(217, 85, 63, .35); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -50px; z-index: 10; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.app-shell { width: min(1440px, calc(100% - 48px)); margin: 0 auto; min-height: 100vh; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: "Noto Serif KR", "Apple SD Gothic Neo", serif; font-size: 22px; }
.brand strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.topbar-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.top-nav { display: flex; align-items: center; gap: 14px; margin-right: 9px; }
.top-nav a { color: var(--muted); font-size: 11px; text-decoration: none; }
.top-nav a:hover { color: var(--ink); }
.topbar-meta strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.streak-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vermilion); box-shadow: 0 0 0 5px rgba(217,85,63,.1); }
.avatar { width: 36px; height: 36px; margin-left: 12px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font-weight: 700; transition: transform .14s ease, background-color .14s ease; }
.avatar:active, .more-button:active, .focus-button:active, .listen-button:active, .speak-button:active, .next-button:active, .practice-item:active { transform: scale(.97); }

.workspace { display: grid; grid-template-columns: 214px minmax(0, 1fr) 232px; gap: clamp(28px, 4vw, 66px); padding: 44px 0 64px; }
.course-rail { padding-top: 8px; }
.rail-kicker, .eyebrow { color: var(--vermilion); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.rail-kicker { margin-bottom: 20px; }
.course-title { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.course-number { color: var(--vermilion); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; }
.course-title strong, .course-title small { display: block; }
.course-title strong { font-size: 14px; }
.course-title small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.lesson-list { display: grid; gap: 4px; margin: 18px 0 0; padding: 0; list-style: none; }
.lesson-item { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 7px 8px; color: var(--muted); font-size: 12px; border-radius: 8px; }
.lesson-item.is-current { background: var(--paper-deep); color: var(--ink); font-weight: 700; }
.lesson-state { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; border: 1px solid var(--line); font-size: 10px; font-variant-numeric: tabular-nums; }
.lesson-item.is-current .lesson-state { border-color: var(--vermilion); background: var(--vermilion); color: white; }
.rail-note { display: flex; gap: 9px; margin-top: 60px; padding: 13px 12px; background: rgba(255,250,242,.55); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.note-icon { color: var(--vermilion); font-size: 17px; line-height: 1; }
.rail-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.main-content { min-width: 0; }
.lesson-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.eyebrow { margin: 0 0 12px; }
.eyebrow span { color: var(--muted); padding: 0 4px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 13px; font-family: "Noto Serif KR", "Songti SC", "Noto Serif SC", serif; font-size: clamp(34px, 4vw, 51px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; text-wrap: balance; }
.heading-copy { max-width: 40ch; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.8; text-wrap: pretty; }
.focus-button { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; transition: transform .14s ease, background-color .14s ease; }
.focus-button:hover { background: #2d3e49; }
.focus-button span { margin-right: 6px; color: var(--yellow); font-size: 17px; }
.progress-block { margin: 35px 0 17px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.progress-meta strong, #progress-percent { color: var(--ink); font-variant-numeric: tabular-nums; }
.progress-track { height: 5px; overflow: hidden; background: var(--paper-deep); border-radius: 99px; }
.progress-track span { display: block; height: 100%; background: var(--vermilion); border-radius: 99px; transition: width .28s ease-out; }

.lesson-card { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-topline { display: flex; justify-content: space-between; align-items: center; padding: 19px 24px; border-bottom: 1px solid var(--line); }
.lesson-tag { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.lesson-tag span { color: var(--vermilion); }
.more-button { width: 34px; height: 30px; border: 0; background: transparent; color: var(--muted); font-size: 20px; letter-spacing: 2px; }
.phrase-area { padding: 40px 40px 34px; text-align: center; }
.phrase-kicker { margin-bottom: 13px; color: var(--muted); font-size: 11px; }
.phrase-area h2 { margin-bottom: 11px; font-family: "Noto Serif KR", "Apple SD Gothic Neo", serif; font-size: clamp(54px, 8vw, 92px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.phrase-roman { margin-bottom: 11px; color: var(--vermilion); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .05em; }
.phrase-meaning { margin-bottom: 21px; color: var(--ink); font-size: 14px; }
.phrase-meaning span { margin: 0 6px; color: var(--line); }
.syllables { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; }
.syllables span { min-width: 34px; padding: 7px 8px 6px; border-radius: 7px; background: var(--paper); color: var(--ink); font-family: "Noto Serif KR", serif; font-size: 16px; }
.card-actions { display: flex; gap: 10px; padding: 0 40px 26px; }
.listen-button, .speak-button { min-height: 46px; border-radius: 11px; font-size: 13px; font-weight: 700; transition: transform .14s ease, background-color .14s ease, border-color .14s ease; }
.listen-button { flex: 1; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.listen-button:hover { background: var(--paper-deep); }
.speak-button { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1.4; border: 1px solid var(--vermilion); background: var(--vermilion); color: #fffaf2; }
.speak-button:hover { background: var(--vermilion-dark); }
.mic-icon, .sound-icon { color: var(--vermilion); font-size: 16px; }
.speak-button .mic-icon { color: var(--yellow); }
kbd { margin-left: auto; padding: 3px 5px; border: 1px solid rgba(255,255,255,.32); border-radius: 4px; color: rgba(255,250,242,.7); font-size: 10px; font-family: ui-monospace, monospace; }
.feedback { display: flex; align-items: flex-start; gap: 12px; margin: 0 24px 24px; padding: 15px 17px; background: #eef6ef; border: 1px solid #d6e7d9; border-radius: 12px; }
.feedback-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; background: var(--mint); color: var(--mint-ink); font-weight: 800; }
.feedback strong { display: block; margin: 2px 0 4px; color: var(--mint-ink); font-size: 12px; }
.feedback p { margin: 0; color: #628071; font-size: 11px; line-height: 1.6; }
.feedback.is-success { animation: feedback-pop .36s ease-out; }
.feedback.is-speaking { background: #fff3df; border-color: #efd49c; }
.feedback.is-speaking .feedback-icon { background: var(--yellow); color: #7d5e1c; }
.feedback.is-speaking strong { color: #7d5e1c; }
@keyframes feedback-pop { 0% { opacity: .3; transform: translateY(5px); } 100% { opacity: 1; transform: translateY(0); } }

.practice-section { margin-top: 37px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 17px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin-bottom: 0; font-family: "Noto Serif KR", "Songti SC", serif; font-size: 23px; letter-spacing: -.03em; }
.practice-count { color: var(--muted); font-size: 11px; }
.practice-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.practice-item { display: flex; align-items: flex-start; gap: 11px; min-height: 92px; padding: 15px 13px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--ink); transition: transform .14s ease, border-color .14s ease, background-color .14s ease; }
.practice-item:hover { background: rgba(255,250,242,.7); }
.practice-item.is-active { border-color: var(--ink); background: var(--card); box-shadow: var(--shadow-small); }
.practice-index { color: var(--vermilion); font-family: ui-monospace, monospace; font-size: 10px; font-weight: 700; }
.practice-copy { flex: 1; }
.practice-copy strong { display: block; margin-bottom: 6px; font-size: 12px; }
.practice-copy small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.practice-arrow { color: var(--muted); font-size: 16px; }
.next-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; }
.next-row p { margin: 0; color: var(--muted); font-size: 12px; }
.next-button { display: flex; align-items: center; gap: 14px; min-height: 47px; padding: 0 18px 0 20px; border: 0; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; transition: transform .14s ease, background-color .14s ease; }
.next-button:hover { background: #2d3e49; }
.next-button span { color: var(--yellow); font-size: 18px; }

.insight-panel { padding-top: 10px; }
.insight-head { display: flex; align-items: center; justify-content: space-between; }
.insight-head .eyebrow { margin: 0; }
.spark { color: var(--vermilion); font-size: 19px; }
.tip-illustration { position: relative; height: 108px; margin: 25px 0 22px; background: var(--paper-deep); border-radius: var(--radius-md); overflow: hidden; }
.tip-circle { position: absolute; left: 31px; top: 24px; display: grid; place-items: center; width: 61px; height: 61px; border-radius: 50%; background: var(--vermilion); color: var(--paper); font-family: "Noto Serif KR", serif; font-size: 27px; transform: rotate(-8deg); }
.tip-line { position: absolute; right: 28px; display: block; height: 7px; border-radius: 8px; background: rgba(31,45,54,.22); transform: rotate(-7deg); }
.line-one { top: 33px; width: 64px; }.line-two { top: 53px; width: 44px; right: 47px; opacity: .6; }.tip-dot { position: absolute; right: 31px; top: 72px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.insight-panel h2 { margin: 0 0 12px; font-family: "Noto Serif KR", "Songti SC", serif; font-size: 22px; line-height: 1.35; letter-spacing: -.03em; }
.insight-panel > p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.mini-divider { height: 1px; margin: 25px 0 18px; background: var(--line); }
.record-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }.record-head strong { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.week-bars { display: flex; align-items: flex-end; justify-content: space-between; height: 90px; padding-top: 12px; }
.bar { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 18px; height: 20%; border-radius: 5px 5px 2px 2px; background: var(--paper-deep); }.bar.is-done { background: var(--mint); }.bar.is-today { background: var(--vermilion); }.bar i { position: absolute; bottom: -19px; color: var(--muted); font-size: 10px; font-style: normal; }.side-caption { margin: 34px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

@media (max-width: 1050px) { .workspace { grid-template-columns: 175px minmax(0, 1fr); gap: 30px; }.insight-panel { grid-column: 2; display: grid; grid-template-columns: 180px 1fr; column-gap: 22px; padding-top: 0; }.insight-head { grid-column: 1 / -1; }.tip-illustration { margin: 16px 0 0; }.insight-panel h2 { margin-top: 19px; }.insight-panel > p { margin-top: 19px; }.mini-divider, .record-head, .week-bars, .side-caption { grid-column: 1 / -1; }.mini-divider { margin-top: 21px; } }
@media (max-width: 760px) { .app-shell { width: min(100% - 28px, 560px); }.topbar { height: 77px; }.topbar-meta > span:not(.streak-dot) { display: none; }.workspace { display: block; padding-top: 28px; }.course-rail { padding: 0; }.rail-kicker { margin-bottom: 12px; }.course-title { align-items: center; padding-bottom: 14px; }.lesson-list { display: flex; overflow-x: auto; gap: 7px; margin-top: 12px; padding-bottom: 4px; }.lesson-item { min-width: max-content; padding: 6px 9px 6px 6px; }.lesson-item span:last-child { font-size: 11px; }.rail-note { display: none; }.main-content { margin-top: 34px; }.lesson-heading { display: block; }.focus-button { margin-top: 21px; }.progress-block { margin-top: 27px; }.phrase-area { padding: 34px 20px 27px; }.card-actions { padding: 0 20px 22px; }.feedback { margin: 0 16px 17px; }.practice-list { grid-template-columns: 1fr; }.practice-item { min-height: auto; }.insight-panel { display: none; }.next-row { margin-top: 26px; }.next-row p { max-width: 18ch; line-height: 1.5; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.vocab-section { margin-top: 58px; padding-top: 34px; border-top: 1px solid var(--line); }
.vocab-heading { margin-bottom: 19px; }
.vocab-heading .eyebrow { margin-bottom: 8px; }
.vocab-total { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.vocab-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.search-box { display: flex; align-items: center; gap: 8px; width: min(260px, 100%); min-height: 41px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--muted); }
.search-box span { font-size: 20px; line-height: 1; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #a0a09b; }
.category-tabs { display: flex; gap: 5px; overflow-x: auto; }
.category-tab { min-height: 36px; padding: 0 11px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; white-space: nowrap; transition: transform .14s ease, background-color .14s ease, color .14s ease; }
.category-tab:hover { background: var(--paper-deep); }
.category-tab.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.vocab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vocab-card { min-height: 188px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.vocab-card:hover { transform: translateY(-2px); border-color: #c4b9aa; box-shadow: var(--shadow-small); }
.vocab-card.is-learned { border-color: #a6cdb7; background: #f4faf4; }
.vocab-card-top { display: flex; justify-content: space-between; align-items: center; min-height: 16px; }
.vocab-category { color: var(--vermilion); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.learned-mark { color: var(--mint-ink); font-size: 10px; }
.vocab-card h3 { margin: 22px 0 6px; font-family: "Noto Serif KR", "Apple SD Gothic Neo", serif; font-size: 28px; letter-spacing: -.04em; line-height: 1; }
.vocab-roman { margin: 0 0 9px; color: var(--vermilion); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.vocab-meaning { margin: 0; color: var(--ink); font-size: 12px; }
.vocab-card-actions { display: flex; gap: 6px; margin-top: 20px; }
.vocab-sound, .vocab-learn { min-height: 31px; padding: 0 8px; border-radius: 7px; font-size: 10px; transition: transform .14s ease, background-color .14s ease; }
.vocab-sound { border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.vocab-learn { flex: 1; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.vocab-sound:hover { background: var(--paper-deep); }
.vocab-learn:hover { background: #2d3e49; }
.vocab-empty { margin: 24px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 1050px) { .vocab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .vocab-section { margin-top: 43px; padding-top: 28px; }.vocab-tools { display: block; }.search-box { width: 100%; margin-bottom: 10px; }.category-tabs { padding-bottom: 2px; }.vocab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.vocab-card { min-height: 177px; padding: 13px; }.vocab-card h3 { font-size: 24px; }.vocab-card-actions { display: grid; grid-template-columns: 1fr; margin-top: 15px; }.vocab-sound, .vocab-learn { width: 100%; } }

.vocab-heading-actions { display: flex; align-items: center; gap: 12px; }
.study-launch { min-height: 34px; padding: 0 11px; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; transition: transform .14s ease, background-color .14s ease; }
.study-launch:hover { background: #2d3e49; }
.study-launch span { margin-left: 6px; color: var(--yellow); font-size: 15px; }
.study-mode { margin: 0 0 20px; padding: 18px; border: 1px solid #d4c4a2; border-radius: 15px; background: #fff8e8; box-shadow: var(--shadow-small); }
.study-mode-head, .study-word-meta, .study-footer { display: flex; align-items: center; justify-content: space-between; }
.study-mode-head { margin-bottom: 13px; }
.study-mode-head .eyebrow { margin: 0 0 4px; color: #9a6f25; }
.study-mode-head strong { font-family: "Noto Serif KR", "Songti SC", serif; font-size: 16px; }
.study-mode-head > span { color: #9a6f25; font-family: ui-monospace, monospace; font-size: 11px; }
.study-word-card { padding: 19px; border: 1px solid #eadbbd; border-radius: 11px; background: var(--card); text-align: center; }
.study-word-meta { color: #a17c3c; font-size: 10px; }
.study-word-meta span:first-child { font-weight: 800; letter-spacing: .08em; }
.study-word-card h3 { margin: 25px 0 8px; font-family: "Noto Serif KR", "Apple SD Gothic Neo", serif; font-size: clamp(38px, 6vw, 58px); letter-spacing: -.05em; line-height: 1; }
.study-roman { margin: 0 0 11px; color: var(--vermilion); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.study-meaning { min-height: 19px; margin: 0 0 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.study-hint { min-height: 17px; margin: 0; color: var(--muted); font-size: 11px; }
.study-actions { display: flex; justify-content: center; gap: 7px; margin-top: 17px; }
.study-listen, .study-reveal, .study-skip, .study-remember { min-height: 37px; padding: 0 12px; border-radius: 8px; font-size: 11px; font-weight: 700; transition: transform .14s ease, background-color .14s ease; }
.study-listen { border: 1px solid var(--line); background: var(--paper); color: var(--ink); }.study-reveal { border: 1px solid #c89d51; background: #fff1c9; color: #7c5a1b; }
.study-listen:hover { background: var(--paper-deep); }.study-reveal:hover { background: #f6e3ad; }
.study-footer { gap: 10px; margin-top: 12px; }
.study-skip { border: 0; background: transparent; color: var(--muted); }.study-remember { flex: 1; border: 1px solid var(--vermilion); background: var(--vermilion); color: #fffaf2; }.study-remember:hover { background: var(--vermilion-dark); }.study-remember span { margin-left: 7px; color: var(--yellow); font-size: 15px; }
.vocab-hint { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.vocab-card-actions { margin-top: 17px; }
@media (max-width: 760px) { .vocab-heading-actions { display: block; text-align: right; }.vocab-heading-actions .vocab-total { display: block; margin-bottom: 8px; }.study-mode { padding: 13px; }.study-word-card { padding: 15px; }.study-word-card h3 { margin-top: 21px; }.vocab-hint { min-height: 15px; }.vocab-card-actions { margin-top: 13px; } }
.vocab-more { display: block; width: 100%; min-height: 43px; margin-top: 16px; border: 1px dashed #cfc2b1; border-radius: 9px; background: transparent; color: var(--ink); font-size: 11px; font-weight: 700; transition: transform .14s ease, background-color .14s ease; }
.vocab-more:hover { background: rgba(255,250,242,.65); }
.vocab-source { margin: 15px 0 0; color: #9a958d; font-size: 10px; line-height: 1.6; }

.teach-section { margin-top: 58px; padding-top: 34px; border-top: 1px solid var(--line); }
.teach-heading { margin-bottom: 19px; }
.teach-heading h2 { flex: 1; max-width: none; white-space: nowrap; }
.teach-progress { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.teach-layout { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; }
.teach-steps { display: grid; align-content: start; gap: 6px; }
.teach-step { display: grid; grid-template-columns: 25px 1fr; column-gap: 9px; align-items: start; min-height: 66px; padding: 11px 10px; text-align: left; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); transition: background-color .14s ease, border-color .14s ease, transform .14s ease; }
.teach-step:hover { background: rgba(255,250,242,.7); }
.teach-step.is-active { border-color: var(--ink); background: var(--card); color: var(--ink); box-shadow: var(--shadow-small); }
.teach-step.is-done { border-color: #d6e7d9; background: #f4faf4; color: var(--mint-ink); }
.teach-step.is-done > span { color: var(--mint-ink); }
.teach-step > span { grid-row: span 2; color: var(--vermilion); font-family: ui-monospace, monospace; font-size: 10px; font-weight: 700; }
.teach-step strong { font-size: 12px; }
.teach-step small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.teach-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow); }
.teach-card-top, .teach-footer { display: flex; align-items: center; justify-content: space-between; }
.teach-label { color: var(--vermilion); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.teach-sound { min-height: 33px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 10px; font-weight: 700; }
.teach-sound:hover { background: var(--paper-deep); }
.teach-main { display: flex; align-items: center; gap: 20px; margin: 25px 0 19px; }
.teach-glyph { display: grid; place-items: center; width: 94px; height: 94px; border-radius: 18px; background: var(--paper-deep); color: var(--vermilion); font-family: "Noto Serif KR", "Apple SD Gothic Neo", serif; font-size: 56px; line-height: 1; }
.teach-glyph.is-phrase { width: auto; min-width: 190px; height: 94px; padding: 0 18px; font-size: clamp(28px, 4vw, 48px); white-space: nowrap; }
.teach-korean { margin: 0 0 6px; color: var(--ink); font-family: "Noto Serif KR", "Apple SD Gothic Neo", serif; font-size: 28px; font-weight: 700; }
.teach-roman { margin: 0 0 7px; color: var(--vermilion); font-family: ui-monospace, monospace; font-size: 12px; }
.teach-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.teach-rule { display: grid; gap: 4px; margin-bottom: 20px; padding: 12px 14px; border-left: 3px solid var(--yellow); background: #fff8e8; }
.teach-rule span { color: #9a6f25; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.teach-rule strong { color: #705522; font-size: 12px; }
.teach-check { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 17px; border-top: 1px solid var(--line); }
.teach-check-label { margin: 0 0 6px; color: var(--vermilion); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.teach-question { margin: 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.teach-options { display: flex; gap: 7px; }
.teach-option { min-width: 48px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); font-family: "Noto Serif KR", serif; font-size: 21px; transition: transform .14s ease, border-color .14s ease, background-color .14s ease; }
.teach-option:hover { background: var(--paper-deep); }
.teach-option.is-correct { border-color: #a6cdb7; background: #eef6ef; color: var(--mint-ink); }
.teach-option.is-wrong { border-color: #e6b4a8; background: #fff0eb; color: #a34f3c; }
.teach-feedback { min-height: 18px; margin: 14px 0 16px; color: var(--muted); font-size: 11px; }
.teach-feedback.is-correct { color: var(--mint-ink); }
.teach-feedback.is-wrong { color: #a34f3c; }
.teach-next { min-height: 38px; margin-left: auto; padding: 0 13px; border: 0; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; }
.teach-next:hover { background: #2d3e49; }
.teach-next span { margin-left: 7px; color: var(--yellow); font-size: 15px; }

@media (max-width: 760px) {
  .top-nav { display: none; }
  .teach-section { margin-top: 43px; padding-top: 28px; }
  .teach-heading h2 { white-space: normal; }
  .teach-layout { grid-template-columns: 1fr; }
  .teach-steps { display: flex; overflow-x: auto; padding-bottom: 2px; }
  .teach-step { min-width: 145px; }
  .teach-card { padding: 14px; }
  .teach-main { gap: 14px; }
  .teach-glyph { width: 76px; height: 76px; font-size: 44px; }
  .teach-glyph.is-phrase { min-width: 0; width: 100%; height: 76px; padding: 0 10px; font-size: 31px; }
  .teach-check { display: block; }
  .teach-options { margin-top: 14px; }
  .teach-option { flex: 1; }
}

.phonetics-section { margin-top: 58px; padding-top: 34px; border-top: 1px solid var(--line); }
.phonetics-heading { align-items: flex-start; margin-bottom: 19px; }
.phonetics-heading h2 { margin-bottom: 8px; }
.section-lead { max-width: 52ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.phonetics-count { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.phonetics-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.phonetics-search { flex: 1; max-width: 360px; }
.phonetics-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.phonetics-tab { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.phonetics-tab:hover { background: var(--paper-deep); color: var(--ink); }
.phonetics-tab.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.phonetics-grid { display: grid; gap: 28px; }
.phonetics-group-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.phonetics-group-heading h3 { margin: 0 0 4px; font-family: "Noto Serif KR", "Songti SC", serif; font-size: 18px; }
.phonetics-group-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.phonetics-group-heading > span { color: var(--vermilion); font-family: ui-monospace, monospace; font-size: 10px; }
.phonetics-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.phonetic-card { min-height: 196px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,250,242,.66); transition: transform .14s ease, border-color .14s ease, background-color .14s ease; }
.phonetic-card:hover { border-color: #c5b9a8; background: var(--card); transform: translateY(-2px); }
.phonetic-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.phonetic-symbol { color: var(--ink); font-family: "Noto Serif KR", "Apple SD Gothic Neo", serif; font-size: 34px; font-weight: 700; line-height: 1; }
.phonetic-listen { min-height: 27px; padding: 0 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 10px; font-weight: 700; }
.phonetic-listen:hover { border-color: var(--vermilion); color: var(--vermilion-dark); }
.phonetic-roman { margin: 10px 0 3px; color: var(--vermilion); font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700; }
.phonetic-ipa { margin: 0 0 8px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.phonetic-hint { min-height: 30px; margin: 0 0 6px; color: var(--ink); font-size: 11px; line-height: 1.4; }
.phonetic-tip { min-height: 34px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.phonetic-example { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.phonetic-example::first-letter { color: var(--vermilion); }
.phonetics-empty { margin: 0; padding: 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; font-size: 12px; }

@media (max-width: 1050px) { .phonetics-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .phonetics-section { margin-top: 43px; padding-top: 28px; }
  .phonetics-heading { display: block; }
  .phonetics-count { display: block; margin-top: 11px; }
  .phonetics-tools { display: block; margin-bottom: 18px; }
  .phonetics-search { max-width: none; margin-bottom: 10px; }
  .phonetics-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .phonetic-card { min-height: 188px; padding: 11px; }
  .phonetic-symbol { font-size: 30px; }
}
