/* ==========================================================================
   Learn Korean — main styles
   Palette: ink navy + warm coral + soft cream (modern language-app feel)
   ========================================================================== */

:root {
  --lk-bg: #f6f3ee;
  --lk-bg-alt: #efe9df;
  --lk-surface: #ffffff;
  --lk-ink: #1a1f2e;
  --lk-muted: #5c6478;
  --lk-line: #e4ddd2;
  --lk-primary: #e85d4c;
  --lk-primary-dark: #c94738;
  --lk-secondary: #2b3a67;
  --lk-accent: #3d8b7a;
  --lk-ok: #2f8f6b;
  --lk-danger: #c0392b;
  --lk-radius: 16px;
  --lk-radius-sm: 10px;
  --lk-shadow: 0 10px 30px rgba(26, 31, 46, 0.08);
  --lk-shadow-lg: 0 20px 50px rgba(26, 31, 46, 0.12);
  --lk-font: "Outfit", system-ui, sans-serif;
  --lk-ko: "Noto Sans KR", "Malgun Gothic", sans-serif;
  --lk-max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--lk-font);
  color: var(--lk-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 93, 76, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(43, 58, 103, 0.1), transparent 50%),
    var(--lk-bg);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--lk-secondary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--lk-primary);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.lk-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lk-ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.lk-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.lk-container {
  width: min(100% - 2rem, var(--lk-max));
  margin-inline: auto;
}

.lk-main {
  min-height: 60vh;
}

/* ---------- Header ---------- */
.lk-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(246, 243, 238, 0.88);
  border-bottom: 1px solid var(--lk-line);
}

.lk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.lk-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.lk-logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--lk-primary), #f08a4b);
  color: #fff;
  font-family: var(--lk-ko);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 8px 18px rgba(232, 93, 76, 0.35);
}

.lk-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.lk-logo-text strong {
  font-size: 1.05rem;
}

.lk-logo-text small {
  color: var(--lk-muted);
  font-size: 0.75rem;
}

.lk-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lk-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lk-menu a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--lk-ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.lk-menu a:hover,
.lk-menu .current-menu-item a {
  background: rgba(43, 58, 103, 0.08);
  color: var(--lk-secondary);
}

.lk-nav-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lk-user-chip {
  font-size: 0.85rem;
  color: var(--lk-muted);
  padding: 0.35rem 0.7rem;
  background: var(--lk-bg-alt);
  border-radius: 999px;
}

.lk-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.lk-nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--lk-ink);
  border-radius: 2px;
}

/* ---------- Buttons & inputs ---------- */
.lk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.lk-btn:hover {
  transform: translateY(-1px);
}

.lk-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.lk-btn-primary {
  background: var(--lk-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(232, 93, 76, 0.28);
}

.lk-btn-primary:hover {
  background: var(--lk-primary-dark);
  color: #fff;
}

.lk-btn-secondary {
  background: var(--lk-secondary);
  color: #fff;
}

.lk-btn-secondary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.lk-btn-ghost {
  background: transparent;
  color: var(--lk-ink);
  border: 1px solid var(--lk-line);
}

.lk-btn-danger {
  background: #fdecea;
  color: var(--lk-danger);
}

.lk-btn-danger-text {
  color: var(--lk-danger) !important;
}

.lk-btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.lk-btn-lg {
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
}

.lk-btn-block {
  width: 100%;
}

.lk-input,
.lk-select,
textarea.lk-input {
  width: 100%;
  border: 1px solid var(--lk-line);
  border-radius: var(--lk-radius-sm);
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--lk-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lk-input:focus,
.lk-select:focus,
textarea.lk-input:focus {
  outline: none;
  border-color: var(--lk-primary);
  box-shadow: 0 0 0 3px rgba(232, 93, 76, 0.18);
}

.lk-input-lg {
  font-size: 1.15rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
}

.lk-field {
  margin-bottom: 1rem;
}

.lk-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.lk-field-help,
.lk-form-hint {
  color: var(--lk-muted);
  font-size: 0.85rem;
}

.lk-field-check label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

/* ---------- Cards / layout ---------- */
.lk-card {
  background: var(--lk-surface);
  border: 1px solid var(--lk-line);
  border-radius: var(--lk-radius);
  box-shadow: var(--lk-shadow);
  padding: 1.35rem 1.5rem;
}

.lk-section {
  padding: 2.5rem 0 3.5rem;
}

.lk-section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--lk-line);
}

.lk-section-head {
  max-width: 640px;
  margin-bottom: 1.75rem;
}

.lk-section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.lk-page-head {
  margin-bottom: 1.5rem;
}

.lk-page-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.lk-page-title {
  margin: 0.15rem 0 0.4rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}

.lk-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lk-primary);
}

.lk-muted {
  color: var(--lk-muted);
}

.lk-lead {
  font-size: 1.1rem;
  color: var(--lk-muted);
  max-width: 36rem;
}

/* ---------- Hero ---------- */
.lk-hero {
  padding: 3rem 0 2rem;
}

.lk-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.lk-hero h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.lk-hero-visual {
  position: relative;
  min-height: 320px;
}

.lk-float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--lk-line);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  box-shadow: var(--lk-shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 180px;
}

.lk-float-card .lk-ko {
  font-family: var(--lk-ko);
  font-size: 1.45rem;
  font-weight: 700;
}

.lk-float-card .lk-en,
.lk-float-card .lk-pl {
  color: var(--lk-muted);
  font-size: 0.9rem;
}

.lk-float-1 {
  top: 10%;
  left: 5%;
  transform: rotate(-4deg);
}

.lk-float-2 {
  top: 38%;
  right: 0;
  transform: rotate(3deg);
}

.lk-float-3 {
  bottom: 5%;
  left: 18%;
  transform: rotate(-1deg);
  border-color: rgba(232, 93, 76, 0.35);
}

.lk-badge {
  align-self: flex-start;
  background: rgba(232, 93, 76, 0.12);
  color: var(--lk-primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.25rem;
}

/* ---------- Features ---------- */
.lk-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.lk-feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--lk-bg-alt);
  font-family: var(--lk-ko);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.lk-feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.lk-feature p {
  margin: 0;
  color: var(--lk-muted);
  font-size: 0.95rem;
}

.lk-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.5rem 0;
}

.lk-cta-band h2 {
  margin: 0 0 0.35rem;
}

.lk-cta-band p {
  margin: 0;
  color: var(--lk-muted);
  max-width: 36rem;
}

/* ---------- Dashboard ---------- */
.lk-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lk-stat-card {
  background: var(--lk-surface);
  border: 1px solid var(--lk-line);
  border-radius: var(--lk-radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--lk-shadow);
}

.lk-stat-value {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lk-secondary);
}

.lk-stat-label {
  color: var(--lk-muted);
  font-size: 0.9rem;
}

.lk-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lk-quick-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

.lk-quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lk-shadow-lg);
  color: inherit;
}

.lk-quick-icon {
  font-family: var(--lk-ko);
  font-size: 1.5rem;
  font-weight: 700;
}

.lk-quick-card h2 {
  margin: 0.4rem 0;
  font-size: 1.2rem;
}

.lk-quick-card p {
  margin: 0;
  color: var(--lk-muted);
  font-size: 0.95rem;
}

.lk-checklist {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--lk-muted);
}

.lk-checklist li {
  margin-bottom: 0.35rem;
}

/* ---------- Toolbar / table ---------- */
.lk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.lk-toolbar-search {
  flex: 1 1 220px;
}

.lk-toolbar-filters {
  flex: 0 1 180px;
}

.lk-field-inline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 160px;
}

.lk-field-inline label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lk-muted);
}

.lk-table-wrap {
  padding: 0;
  overflow: auto;
}

.lk-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.lk-table th,
.lk-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--lk-line);
  vertical-align: top;
  font-size: 0.92rem;
}

.lk-table th {
  background: var(--lk-bg-alt);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lk-muted);
  position: sticky;
  top: 0;
}

.lk-table tbody tr:hover {
  background: rgba(232, 93, 76, 0.04);
}

.lk-ko-cell {
  font-family: var(--lk-ko);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ---------- TTS / audio ---------- */
.lk-cell-with-audio {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.lk-speak-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 32px;
  min-height: 32px;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--lk-line);
  border-radius: 999px;
  background: var(--lk-bg);
  color: var(--lk-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.15s, transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.lk-speak-btn:hover:not(:disabled) {
  background: rgba(232, 93, 76, 0.1);
  border-color: rgba(232, 93, 76, 0.35);
  color: var(--lk-primary-dark);
}

.lk-speak-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lk-speak-btn.is-playing {
  background: rgba(61, 139, 122, 0.15);
  border-color: var(--lk-accent);
  box-shadow: 0 0 0 3px rgba(61, 139, 122, 0.18);
  animation: lk-pulse 1s ease-in-out infinite;
}

.lk-speak-btn-lg {
  min-width: 40px;
  min-height: 40px;
  font-size: 1rem;
}

.lk-speak-icon {
  font-size: 0.95em;
}

@keyframes lk-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.lk-no-tts .lk-speak-btn,
.lk-no-tts .lk-letter-play {
  opacity: 0.35;
}

.lk-flash-audio-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.lk-flash-tts-note {
  max-width: 420px;
  text-align: center;
  font-size: 0.85rem;
  margin: 0;
}

.lk-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.lk-check-inline input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--lk-primary);
}

.lk-letter-btn {
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
}

.lk-letter-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 93, 76, 0.4);
  box-shadow: var(--lk-shadow);
}

.lk-letter-play {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  opacity: 0.7;
}

button.lk-syllable-block {
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  transition: transform 0.15s, border-color 0.15s;
}

button.lk-syllable-block:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 93, 76, 0.4);
}

.lk-expr-cell,
.lk-notes-cell {
  max-width: 180px;
  color: var(--lk-muted);
  font-size: 0.88rem;
}

.lk-col-actions {
  white-space: nowrap;
  width: 1%;
}

.lk-center {
  text-align: center;
}

.lk-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--lk-bg-alt);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lk-secondary);
}

.lk-pill-ok {
  background: rgba(47, 143, 107, 0.15);
  color: var(--lk-ok);
}

.lk-table-meta {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.lk-loading-row td {
  text-align: center;
  color: var(--lk-muted);
  padding: 2rem;
}

/* ---------- Modal ---------- */
.lk-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lk-modal[hidden] {
  display: none !important;
}

.lk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 46, 0.45);
}

.lk-modal-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--lk-shadow-lg);
}

.lk-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--lk-line);
}

.lk-modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.lk-modal-body {
  padding: 1.25rem;
}

.lk-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.lk-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.lk-field-full {
  grid-column: 1 / -1;
}

.lk-icon-btn {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--lk-muted);
}

/* ---------- Toast ---------- */
.lk-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 300;
  background: var(--lk-secondary);
  color: #fff;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  box-shadow: var(--lk-shadow-lg);
  max-width: min(90vw, 360px);
  font-weight: 500;
}

.lk-toast-error {
  background: var(--lk-danger);
}

.lk-toast[hidden] {
  display: none !important;
}

/* ---------- Flashcards ---------- */
.lk-flash-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.lk-flash-card {
  width: min(100%, 460px);
  min-height: 280px;
  border: 1px solid var(--lk-line);
  border-radius: 24px;
  background: linear-gradient(160deg, #fff 0%, #faf7f2 100%);
  box-shadow: var(--lk-shadow-lg);
  cursor: pointer;
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: inherit;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lk-flash-card:hover {
  transform: translateY(-2px);
}

.lk-flash-card.is-flipped {
  border-color: rgba(61, 139, 122, 0.4);
  background: linear-gradient(160deg, #fff 0%, #eef8f5 100%);
}

.lk-flash-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 220px;
}

.lk-flash-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--lk-muted);
}

.lk-flash-text {
  font-family: var(--lk-ko);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
}

.lk-flash-hint {
  color: var(--lk-muted);
  font-size: 0.85rem;
}

.lk-flash-meta {
  color: var(--lk-muted);
  font-size: 0.9rem;
  max-width: 28rem;
}

.lk-flash-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.lk-flash-progress {
  margin: 1rem 0;
}

.lk-progress-bar {
  height: 8px;
  background: var(--lk-line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.lk-progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lk-primary), #f08a4b);
  transition: width 0.25s ease;
}

.lk-flash-empty {
  text-align: center;
  color: var(--lk-muted);
}

/* ---------- Search ---------- */
.lk-search-hero {
  margin-bottom: 1.25rem;
}

.lk-search-results {
  display: grid;
  gap: 0.85rem;
}

.lk-search-card .lk-search-ko {
  font-family: var(--lk-ko);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.lk-search-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
}

.lk-notes-private {
  font-size: 0.9rem;
  color: var(--lk-accent);
}

/* ---------- Hangul ---------- */
.lk-hangul-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lk-letter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.lk-letter {
  background: var(--lk-bg);
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
  border: 1px solid var(--lk-line);
}

.lk-letter-char {
  display: block;
  font-family: var(--lk-ko);
  font-size: 1.75rem;
  font-weight: 700;
}

.lk-letter-rom {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.lk-letter-tip {
  display: block;
  font-size: 0.75rem;
  color: var(--lk-muted);
  margin-top: 0.15rem;
}

.lk-syllable-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.lk-syllable-block {
  background: var(--lk-bg);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  text-align: center;
  border: 1px solid var(--lk-line);
  min-width: 120px;
}

.lk-ko-lg {
  display: block;
  font-family: var(--lk-ko);
  font-size: 2rem;
  font-weight: 700;
}

/* ---------- Auth ---------- */
.lk-auth-page {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
}

.lk-auth-card {
  width: min(100%, 420px);
}

.lk-auth-brand {
  text-align: center;
  margin-bottom: 1.25rem;
}

.lk-auth-brand .lk-logo-mark {
  margin: 0 auto 0.75rem;
}

.lk-auth-brand h1 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.lk-auth-links {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
}

.lk-auth-links span {
  margin: 0 0.35rem;
  color: var(--lk-muted);
}

.lk-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.lk-alert-error {
  background: #fdecea;
  color: var(--lk-danger);
  border: 1px solid #f5c6c2;
}

.lk-alert-success {
  background: #e8f6ef;
  color: var(--lk-ok);
  border: 1px solid #b8e0cc;
}

/* ---------- Footer ---------- */
.lk-footer {
  border-top: 1px solid var(--lk-line);
  background: rgba(255, 255, 255, 0.55);
  padding: 2rem 0;
  margin-top: 2rem;
}

.lk-footer-inner {
  display: grid;
  gap: 1rem;
}

.lk-footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.lk-footer-brand p {
  margin: 0.2rem 0 0;
  color: var(--lk-muted);
  font-size: 0.9rem;
}

.lk-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.lk-footer-links a {
  text-decoration: none;
  font-weight: 500;
}

.lk-footer-copy {
  margin: 0;
  color: var(--lk-muted);
  font-size: 0.85rem;
}

.lk-prose p:first-child {
  margin-top: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lk-hero-inner,
  .lk-feature-grid,
  .lk-stats-grid,
  .lk-hangul-grid {
    grid-template-columns: 1fr;
  }

  .lk-quick-grid {
    grid-template-columns: 1fr;
  }

  .lk-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lk-hero-visual {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  .lk-nav-toggle {
    display: flex;
  }

  .lk-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--lk-line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
    box-shadow: var(--lk-shadow);
  }

  .lk-nav.is-open {
    display: flex;
  }

  .lk-menu {
    flex-direction: column;
  }

  .lk-nav-auth {
    justify-content: flex-start;
    padding-top: 0.5rem;
    border-top: 1px solid var(--lk-line);
  }

  .lk-form-grid {
    grid-template-columns: 1fr;
  }

  .lk-header-inner {
    position: relative;
  }
}
