/* Learn Dutch & English — builds on style.css (panels, cards, options, progress). */
.ln { display: flex; flex-direction: column; gap: 18px; }
.ln > .page-title, .ln > .page-lead { margin-bottom: 0; }
.ln-grow { flex: 1; min-width: 0; }
.ln-small { font-size: 14px; margin: -6px 0 10px; }
.ln-center { justify-content: center; }
.ln-crumbs { font-weight: 700; font-size: 14px; color: var(--muted); }
.ln-crumbs a { color: #7cc4ff; text-decoration: none; }
.ln-crumbs a:hover { text-decoration: underline; }
.ln-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.ln-summary a.chip { text-decoration: none; color: var(--ink); }
.ln-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

/* ---------- Language cards ---------- */
.ln-langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.ln-lang-card {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 22px; min-height: 170px;
  border-radius: 20px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden;
  background: linear-gradient(135deg, rgba(20, 44, 100, .95), rgba(8, 18, 44, .95));
  box-shadow: 0 0 26px rgba(47, 128, 255, .2), 0 12px 30px rgba(0, 0, 0, .35);
  transition: transform .15s, box-shadow .15s;
}
.ln-lang-card::after {
  content: ''; position: absolute; inset: auto -40px -60px auto; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 199, 44, .22), transparent 70%); pointer-events: none;
}
.ln-lang-card.ln-nl { border-color: rgba(255, 140, 40, .5); }
.ln-lang-card.ln-en { border-color: rgba(90, 160, 255, .6); }
.ln-lang-card:hover { transform: translateY(-4px); box-shadow: 0 0 34px var(--glow), 0 14px 34px rgba(0, 0, 0, .4); }
.ln-flag { font-size: 72px; line-height: 1; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); }
.ln-lang-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ln-lang-info h2 { font-size: 28px; margin: 0; color: var(--gold-2); }
.ln-lang-info p { margin: 0; }
.ln-lang-stats { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 700; font-size: 14px; }
.ln-lang-card .btn { position: relative; z-index: 1; }

/* ---------- Continue / voices / levels ---------- */
.ln-continue-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ln-continue-row .progress { margin-top: 6px; max-width: 360px; }
.ln-continue-icon { font-size: 44px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: #0b1d45; border: 1px solid var(--line); }
.ln-voice-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ln-voice { display: flex; flex-direction: column; gap: 6px; }
.ln-voice label { font-weight: 800; }
.ln-voice-row { display: flex; gap: 8px; align-items: center; }
.ln-voice-row select { flex: 1; min-width: 0; }
.ln-note {
  grid-column: 1 / -1; padding: 12px 16px; border-radius: 12px; font-size: 15px;
  background: rgba(255, 199, 44, .1); border: 1px dashed rgba(255, 199, 44, .55);
}
.ln-note ul { margin: 8px 0; padding-left: 20px; }
.ln-note li { margin: 3px 0; }
.ln-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ln-level { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border-radius: 14px; background: #0a1838; border: 1px solid var(--line); text-align: center; }
.ln-level.on { border-color: var(--gold); box-shadow: 0 0 16px rgba(255, 199, 44, .3); }
.ln-level-icon { font-size: 30px; }

/* ---------- Course list ---------- */
.ln-level-group { margin-bottom: 22px; }
.ln-level-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 24px; margin: 4px 0 12px; }
.ln-level-title .muted { font-size: 16px; font-family: var(--font-body); }
.ln-course-card .ln-course-icon {
  display: grid; place-items: center; font-size: 54px; height: 96px; text-decoration: none;
  background: radial-gradient(circle at 50% 60%, rgba(47, 128, 255, .28), transparent 70%), #0b1d45;
  border-bottom: 1px solid var(--line);
}
.ln-course-card.done { border-color: rgba(34, 197, 94, .55); }
.ln-course-card.done .ln-course-icon { background: radial-gradient(circle at 50% 60%, rgba(34, 197, 94, .25), transparent 70%), #0b1d45; }
.ln-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.ln-course-card .progress { height: 8px; margin-bottom: 6px; }

/* ---------- Course page ---------- */
.ln-course-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ln-course-head .page-lead { margin-bottom: 10px; }
.ln-course-head .progress { margin-top: 12px; max-width: 480px; }
.ln-course-big {
  font-size: 70px; width: 120px; height: 120px; display: grid; place-items: center; border-radius: 28px;
  background: radial-gradient(circle, rgba(255, 199, 44, .2), transparent 70%), #0b1d45; border: 1px solid var(--line);
  box-shadow: 0 0 24px var(--glow);
}
.ln-lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ln-lesson { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #0a1838; border: 1px solid var(--line); }
.ln-lesson h3 { margin: 0; font-size: 18px; }
.ln-lesson p { margin: 2px 0 0; font-size: 14px; }
.ln-lesson-num {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font: 800 20px var(--font-head); background: #13306b; border: 2px solid var(--blue);
}
.ln-lesson.done { border-color: rgba(34, 197, 94, .5); }
.ln-lesson.done .ln-lesson-num { background: var(--green-2); border-color: #4ade80; }
.ln-stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- Lesson player ---------- */
.ln-lesson-title { font-size: clamp(26px, 3.4vw, 40px); }
.ln-steps { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; flex-wrap: wrap; }
.ln-steps li {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-weight: 800;
  background: rgba(47, 128, 255, .08); border: 1px solid var(--line); color: var(--muted);
}
.ln-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #0b1d45; font-size: 14px; }
.ln-steps li.on { color: #1b1300; background: var(--gold); border-color: var(--gold); }
.ln-steps li.on span { background: #1b1300; color: var(--gold); }
.ln-steps li.past { color: #4ade80; }
.ln-stage { display: flex; flex-direction: column; gap: 18px; }
.ln-intro p { font-size: 17px; margin: 0 0 10px; max-width: 75ch; }
.ln-intro p.ln-tip { padding: 10px 14px; border-radius: 12px; background: rgba(255, 199, 44, .1); border-left: 4px solid var(--gold); }
.ln-rules { margin-top: 10px; padding: 12px 16px; border-radius: 12px; background: rgba(47, 128, 255, .08); border: 1px solid var(--line); }
.ln-rules h3 { font-size: 18px; margin: 0 0 6px; color: var(--gold-2); }
.ln-rules ul { margin: 0; padding-left: 20px; }
.ln-rules li { margin: 4px 0; }

.ln-vocab { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ln-word {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; cursor: pointer;
  background: #0a1838; border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ln-word:hover { border-color: var(--blue); }
.ln-word.speaking { border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 199, 44, .4); transform: scale(1.02); }
.ln-word-emoji { font-size: 38px; line-height: 1; width: 48px; text-align: center; flex: none; }
.ln-word-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ln-word-w { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ln-word-w b { font: 800 20px var(--font-head); color: var(--gold-2); overflow-wrap: anywhere; }
.ln-word-t { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; }
.ln-word-t .speak-btn { padding: 1px 7px; font-size: 13px; }
.ln-word-ex { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 14px; }
.ln-word-ex .speak-btn { flex: none; padding: 1px 7px; font-size: 13px; }

/* exercises */
.ln-ex-top { display: flex; align-items: center; gap: 12px; }
.ln-ex-type { font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.ln-ex .quiz-q { white-space: pre-line; }
.ln-ex .option:disabled { cursor: default; }
.ln-ex .option:disabled:not(.right):not(.wrong) { opacity: .6; }
.ln-correct { margin-top: 4px; color: var(--ink); font-weight: 700; }
.ln-why { margin-top: 6px; color: var(--ink); font-weight: 600; background: rgba(47, 128, 255, .1); border-radius: 10px; padding: 8px 12px; }
.ln-heard { font-style: italic; }
.ln-listen { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ln-big-play {
  width: 84px; height: 84px; border-radius: 50%; font-size: 40px; border: 2px solid var(--gold);
  background: radial-gradient(circle, rgba(255, 199, 44, .3), rgba(255, 199, 44, .05)); box-shadow: 0 0 22px rgba(255, 199, 44, .35);
  animation: ln-pulse 2s infinite;
}
.ln-big-play:hover { transform: scale(1.06); }
@keyframes ln-pulse { 0%, 100% { box-shadow: 0 0 12px rgba(255, 199, 44, .3); } 50% { box-shadow: 0 0 28px rgba(255, 199, 44, .6); } }
.ln-type-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ln-type-input { flex: 1 1 260px; font-size: 22px; padding: 12px 16px; }
.ln-type-input.ok { border-color: var(--green); background: #0f3a26; }
.ln-type-input.bad { border-color: var(--red); background: #3a1414; }
.ln-hint { margin: 8px 0 0; }

.ln-order-line {
  min-height: 64px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; margin-bottom: 12px;
  border-radius: 14px; border: 2px dashed var(--line); background: rgba(47, 128, 255, .06);
}
.ln-order-line.ok { border-style: solid; border-color: var(--green); background: rgba(34, 197, 94, .12); }
.ln-order-line.bad { border-style: solid; border-color: var(--red); background: rgba(239, 68, 68, .12); }
.ln-order-pool { display: flex; flex-wrap: wrap; gap: 8px; }
.ln-tile {
  padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: 18px;
  background: #13306b; border: 1px solid var(--blue); box-shadow: 0 3px 0 #0a1a40;
}
.ln-tile.in { background: #1d3f86; border-color: var(--gold); }
.ln-tile:disabled { opacity: .35; cursor: default; box-shadow: none; }
.ln-tile.in:disabled { opacity: 1; }

.ln-match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ln-match-col { display: flex; flex-direction: column; gap: 8px; }
.ln-match-item {
  padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: #0b1d45; font-weight: 800; font-size: 16px; text-align: center;
  transition: background .15s, border-color .15s, transform .15s;
}
.ln-match-item:hover { border-color: var(--blue); }
.ln-match-item.sel { border-color: var(--gold); background: rgba(255, 199, 44, .15); transform: scale(1.03); }
.ln-match-item.matched { border-color: var(--green); background: #0f5132; opacity: .75; cursor: default; }
.ln-match-item.wrong { border-color: var(--red); background: #5c1a1a; animation: ln-shake .35s; }
.ln-match-item.nudge { animation: ln-shake .35s; }
@keyframes ln-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.ln-say { display: flex; align-items: center; gap: 12px; font: 800 30px var(--font-head); color: var(--gold-2); margin-bottom: 10px; }

/* result */
.ln-result { text-align: center; padding: 30px 20px; }
.ln-result h2 { font-size: 28px; }
.ln-result-score { font: 800 22px var(--font-head); margin: 0 0 4px; }
.ln-result-stars { display: flex; justify-content: center; gap: 12px; margin-bottom: 10px; }
.ln-star { font-size: 72px; line-height: 1; color: #1d3366; text-shadow: 0 0 0 transparent; }
.ln-star.on { color: var(--gold); text-shadow: 0 0 24px rgba(255, 199, 44, .7); animation: ln-pop .5s backwards; }
@keyframes ln-pop { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.25) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }

@media (max-width: 720px) {
  .ln-lang-card { flex-direction: column; text-align: center; align-items: stretch; }
  .ln-flag { font-size: 60px; text-align: center; }
  .ln-lesson { flex-wrap: wrap; }
  .ln-lesson .btn { width: 100%; }
  .ln-match-item { font-size: 14px; padding: 10px 6px; }
  .ln-vocab { grid-template-columns: 1fr; }
  .ln-star { font-size: 56px; }
}
