:root {
  color-scheme: light;
  --paper: #f5f2e8;
  --sheet: #fefcf5;
  --ink: #253025;
  --muted: #526051;
  --line: #cccfc0;
  --wash: #e9ede0;
  --green: #294934;
  --deep: #1b3826;
  --warm: #f1e5c8;
  --amber: #d48a1f;
  --amber-soft: #fbecc9;
  --coral: #d0634b;
  --coral-soft: #f8ddd3;
  --teal: #2f7d78;
  --teal-soft: #d6ece7;
  --shadow: 0 1px 0 #2838280d, 0 8px 24px -12px #28382833;
  --sans: 'Avenir Next', Avenir, system-ui, sans-serif;
  --serif: 'Iowan Old Style', Baskerville, Georgia, serif;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #815a1c; outline-offset: 4px; }
h1, h2, p { margin: 0; }
h1 { font-family: var(--serif); font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.03; }
h1:focus { outline: none; }

.skip-link { position: absolute; inset: 10px auto auto 10px; transform: translateY(-160%); z-index: 2; background: var(--sheet); padding: 12px 16px; color: var(--ink); }
.skip-link:focus { transform: none; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { width: min(100% - 40px, 1024px); margin: auto; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wordmark { border: 0; background: transparent; padding: 8px 0; min-height: 44px; font: 700 1.22rem/1 var(--serif); letter-spacing: -.04em; }
.wordmark span { font-weight: 500; }
.active-profile { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; font-weight: 600; }
.shell { width: min(100% - 40px, 1024px); margin-inline: auto; padding: clamp(30px, 8vh, 92px) 0 40px; }
.shell:focus { outline: none; }
.landing { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(290px, 1fr); align-items: center; gap: clamp(38px, 7vw, 98px); }
.landing h1 { font-size: clamp(3.15rem, 8vw, 6rem); max-width: 8ch; line-height: .94; }
.lead { font-size: clamp(1rem, 2.4vw, 1.18rem); color: var(--muted); max-width: 46ch; }
.landing .lead { margin-top: 20px; }
.lesson-label, .eyebrow { font-size: .78rem; font-weight: 750; letter-spacing: .075em; color: var(--green); text-transform: uppercase; }
.lesson-label { margin-top: clamp(25px, 6vh, 64px); padding-top: 12px; border-top: 1px solid var(--line); width: fit-content; }
.landing-topics { list-style: none; padding: 0; margin: 5px 0 0; font-family: var(--serif); font-size: 1.32rem; font-weight: 600; }
.profile-panel { background: var(--sheet); border: 1px solid var(--line); padding: clamp(18px, 4vw, 32px); border-radius: 10px; box-shadow: 4px 5px 0 #2838280b; }
.profile-panel h2 { font: 600 1.65rem/1.2 var(--serif); letter-spacing: -.035em; margin-bottom: 17px; }
.profile-list { display: grid; }
.profile-choice { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 8px; min-height: 70px; padding: 11px 4px; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; }
.profile-choice strong, .profile-choice small { display: block; }
.profile-choice strong { font-size: 1rem; }
.profile-choice small { color: var(--muted); margin-top: 2px; }
.profile-choice:hover { background: var(--wash); }
.profile-text { flex: 1; }
.arrow { color: var(--green); font-size: 1.24rem; display: inline-flex; }
.arrow svg { width: 18px; height: 18px; fill: currentColor; opacity: .7; }

.view { max-width: 610px; margin-inline: auto; }
.view h1 { margin: 4px 0 12px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 16px; }
.topics { margin: 24px 0 10px; }
.topics h2 { font: 600 1.65rem/1.2 var(--serif); letter-spacing: -.035em; }
.topics ul { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.topic-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.topic-row h3 { margin: 0 0 3px; font-size: 1rem; }
.topic-row p { color: var(--muted); font-size: .9rem; }
.topic-row .topic-progress { color: var(--green); margin-top: 3px; font-size: .8rem; }
.topic-row .button { flex-shrink: 0; }
.topic-actions { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.mission-suggestions, .mission-map { margin: 24px 0; }
.mission-hub h2 { font: 600 1.65rem/1.2 var(--serif); }
.mission-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: 10px; margin-top: 10px; }
.mission-card { background: var(--wash); border: 1px solid var(--line); padding: 14px; display: grid; align-content: space-between; gap: 12px; border-radius: 8px; }
.mission-card h3, .map-title h3 { margin: 0; font: 600 1.23rem/1.2 var(--serif); }
.map-stop { margin-top: 13px; border-left: 3px solid #82987e; padding: 3px 0 4px 13px; }
.map-title p { color: var(--green); font-size: .87rem; margin-top: 3px; }
.map-stop ul { list-style: none; padding: 0; margin: 4px 0 0; }
.map-stop li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 5px 0; }
.map-stop small, .mission-reply span { display: block; color: var(--muted); font-size: .8rem; }
.mission-play > h1 { margin: 16px 0 10px; }
.mission-reply { background: var(--wash); border-left: 3px solid #82987e; padding: 10px 13px; margin: 12px 0; }
.mission-answer, .mission-choices { margin: 16px 0 9px; }
.mission-answer > label { font-weight: 650; }
.mission-play > .button { margin-top: 10px; }
.catalog-tabs, .catalog-pages { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.catalog-search { margin-top: 15px; }
.catalog-search label { font-size: .9rem; font-weight: 650; }
.catalog-search div { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-search input { min-width: 120px; flex: 1; padding: 8px 10px; border: 1px solid #a1aa99; border-radius: 6px; background: var(--sheet); font-size: 1rem; }
.catalog-count { color: var(--muted); margin-top: 10px; font-size: .87rem; }
.catalog-rows { margin-top: 6px; }
.word-list { list-style: none; margin: 10px 0; padding: 0; border-top: 1px solid var(--line); }
.word-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 43px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.word-list strong { font: 600 1.2rem/1.23 var(--serif); }
.word-list small, .word-list span { color: var(--muted); }
.word-list small { display: block; }
.word-list .button { flex-shrink: 0; }
.selection-actions { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; background: var(--paper); }
.selection-actions .topic-progress { color: var(--green); font-size: .87rem; }
.selection-list { display: grid; border-top: 1px solid var(--line); }
.selection-row { display: flex; align-items: center; gap: 11px; cursor: pointer; min-height: 49px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.selection-row:has(input:checked) { background: var(--wash); }
.selection-row input { flex: 0 0 auto; margin: 0; width: 1.15em; height: 1.15em; accent-color: var(--green); }
.selection-row small { display: block; color: var(--muted); }
.selection > .button { margin-top: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-weight: 650; }
.primary { background: var(--green); color: var(--sheet); box-shadow: 0 2px 0 var(--deep); transition: transform .12s ease, box-shadow .12s ease, background .12s; }
.primary:hover { background: var(--deep); }
.primary:active { transform: translateY(2px); box-shadow: 0 0 0 var(--deep); }
.wide { width: 100%; }
.outline { border-color: var(--line); background: var(--sheet); }
.subtle { color: var(--green); padding-inline: 8px; text-decoration: underline; text-underline-offset: .19em; font-size: .9rem; }
.subtle:hover, .outline:hover { background: var(--wash); }

.session-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.session-label > p:last-child { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { display: block; width: 100%; height: 8px; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: var(--line); color: var(--green); }
.progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
.progress::-webkit-progress-value { background: linear-gradient(90deg, var(--green), var(--teal)); border-radius: 99px; transition: width .35s ease; }
.progress::-moz-progress-bar { background: linear-gradient(90deg, var(--green), var(--teal)); border-radius: 99px; }
.task { display: grid; gap: 13px; margin-top: 22px; }
.exercise h1 { font-size: clamp(2.1rem, 5.5vw, 3.25rem); margin: 0; }
.phrase { background: var(--wash); border-left: 3px solid #82987e; padding: 14px 15px; min-width: 0; }
.english { font-family: var(--serif); font-size: clamp(1.32rem, 4vw, 1.85rem); font-weight: 600; line-height: 1.22; }
.translation { margin-top: 5px; color: var(--muted); font-size: .94rem; }
.blank { display: inline-block; min-width: 2em; padding: 0 .33em .1em; color: var(--green); border-bottom: 1px solid var(--green); text-align: center; }
.audio { margin-top: 5px; }
.options { display: grid; gap: 8px; }
.option { border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); min-height: 46px; padding: 8px 12px; text-align: left; }
.option:hover { background: var(--wash); border-color: var(--green); }
form, .answer-fields { display: grid; gap: 9px; }
.answer-fields { grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }
.answer-fields label { font-size: .86rem; font-weight: 650; }
.answer-fields input { display: block; min-height: 45px; padding: 9px 11px; border: 1px solid #a1aa99; border-radius: 6px; background: var(--sheet); width: 100%; margin-top: 4px; font-size: 1rem; }
.help-actions { display: flex; flex-wrap: wrap; column-gap: 5px; }
.help-actions .button { padding-inline: 6px; }
.session-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.hint, .notice { padding: 9px 11px; background: var(--warm); font-size: .9rem; }
.notice { max-width: 610px; margin: 12px auto 0; }
.mark { display: flex; align-items: center; gap: 9px; min-height: 44px; width: fit-content; cursor: pointer; font-size: .95rem; }
.mark input { width: 1.15em; height: 1.15em; accent-color: var(--green); }
.feedback-note { color: var(--muted); }

.recap-list { list-style: none; margin: 18px 0; padding: 0; border-top: 1px solid var(--line); }
.recap-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 15px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 0; }
.recap-list strong { font: 600 1.28rem/1.2 var(--serif); }
.recap-list span, .recap-list p { font-size: .9rem; color: var(--muted); }
.recap-list p { width: 100%; }
.recap > .button { margin-top: 18px; }

/* Avatarok, statisztika, csempék */
.avatar { flex: 0 0 auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 700 1.05rem/1 var(--serif); letter-spacing: -.02em; }
.avatar.small { width: 26px; height: 26px; font-size: .72rem; }
.avatar.large { width: 72px; height: 72px; font-size: 1.7rem; margin-bottom: 14px; }
.avatar.coral { background: var(--coral-soft); color: var(--coral); box-shadow: inset 0 0 0 2px #d0634b33; }
.avatar.teal { background: var(--teal-soft); color: var(--teal); box-shadow: inset 0 0 0 2px #2f7d7833; }
.avatar.amber { background: var(--amber-soft); color: #9a5f0c; box-shadow: inset 0 0 0 2px #d48a1f40; }

.hero-card { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 4vw, 28px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--teal-soft), transparent 70%); pointer-events: none; }
.hero-card.done::after { background: radial-gradient(circle, var(--amber-soft), transparent 70%); }
.hero-card .home-actions { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.stat { display: flex; align-items: center; gap: 10px; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; min-width: 0; }
.stat strong { display: block; font: 700 1.45rem/1 var(--serif); letter-spacing: -.03em; }
.stat strong em { font-style: normal; font-size: .8rem; color: var(--muted); font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.stat small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.25; margin-top: 3px; }
.stat-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--wash); }
.stat-icon svg { width: 20px; height: 20px; fill: var(--muted); }
.stat-icon.leaf svg { fill: var(--green); }
.stat.hot .stat-icon.flame { background: var(--amber-soft); }
.stat.hot .stat-icon.flame svg { fill: var(--amber); animation: flicker 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flicker { 50% { transform: scale(1.08) rotate(-3deg); } }
.tiles { display: grid; gap: 8px; margin: 4px 0 8px; }
.tile { display: flex; align-items: center; gap: 13px; text-align: left; border: 1px solid var(--line); background: var(--sheet); border-radius: 12px; padding: 13px 14px; min-height: 64px; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--green); transform: translateY(-1px); }
.tile > span:nth-child(2) { flex: 1; }
.tile strong, .tile small { display: block; }
.tile small { color: var(--muted); font-size: .85rem; }
.tile-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); }
.tile-icon svg { width: 22px; height: 22px; fill: var(--teal); }
.missions-tile { background: linear-gradient(120deg, var(--sheet) 55%, var(--amber-soft)); }
.missions-tile .tile-icon { background: var(--amber-soft); }
.missions-tile .tile-icon svg { fill: var(--amber); }
.home-footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* Gyűrű */
.ring { --size: 46px; --tone: var(--green); position: relative; flex: 0 0 auto; display: inline-grid; place-items: center; width: var(--size); height: var(--size); }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .track { stroke: var(--line); }
.ring .value { stroke: var(--tone); stroke-linecap: round; transition: stroke-dasharray .5s ease; }
.ring > span { position: relative; font-size: .66rem; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.ring.amber { --tone: var(--amber); }
.stat .ring { --size: 38px; }
.stat .ring > span { font-size: .58rem; }

/* Belépés */
.login { max-width: 420px; }
.login-card { background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; padding: 28px 22px; box-shadow: var(--shadow); text-align: center; display: grid; justify-items: center; }
.login-card form { width: 100%; text-align: left; margin-top: 18px; }
.login-card label { font-weight: 650; font-size: .9rem; }
.login-card .translation { margin-top: 12px; font-size: .82rem; }
.login > .button { margin-top: 10px; }

/* Küldetések */
.mission-summary { display: flex; align-items: center; gap: 14px; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 16px; box-shadow: var(--shadow); }
.mission-summary .ring { --size: 58px; }
.mission-summary .ring > span { font-size: .74rem; }
.mission-summary strong { display: block; font: 700 1.5rem/1 var(--serif); }
.mission-summary small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.stars { display: flex; gap: 2px; margin-top: 6px; }
.stars svg { width: 17px; height: 17px; fill: var(--line); }
.stars .on svg { fill: var(--amber); filter: drop-shadow(0 1px 0 #9a5f0c55); }
.mission-card { position: relative; background: linear-gradient(145deg, var(--sheet), var(--teal-soft)); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); justify-items: start; }
.mission-card.alt { background: linear-gradient(145deg, var(--sheet), var(--amber-soft)); }
.pill { display: inline-block; font-size: .68rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--wash); color: var(--muted); }
.pill.active { background: var(--teal-soft); color: var(--teal); }
.pill.helped { background: var(--coral-soft); color: var(--coral); }
.pill.solo { background: var(--amber-soft); color: #9a5f0c; }
.mission-map > .translation { margin-top: 4px; }
.map-path { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.map-path::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; border-left: 3px dotted #a8b6a2; }
.map-stop { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; margin: 0 0 14px; border: 0; padding: 0; }
.map-node { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sheet); border: 3px solid var(--line); }
.map-node svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.map-stop.started .map-node { border-color: var(--teal); }
.level-1 .map-node { border-color: var(--green); background: var(--green); color: var(--sheet); }
.level-2 .map-node { border-color: var(--amber); background: var(--amber); color: #fff; box-shadow: 0 0 0 5px var(--amber-soft); }
.level-2 .map-node svg { fill: currentColor; stroke: none; }
.map-body { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px 6px; }
.map-stop li { flex-wrap: nowrap; padding: 8px 0; }
.map-stop li .button { flex: 0 0 auto; min-height: 38px; padding: 6px 12px; font-size: .88rem; }
.scenario { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: .95rem; line-height: 1.3; }
.mission-play .scene { background: var(--sheet); border: 1px dashed #a8b6a2; border-radius: 12px; padding: 12px 14px; color: var(--muted); }
.bubble { position: relative; max-width: 88%; padding: 11px 14px; border-radius: 16px; margin: 14px 0; animation: pop .28s ease-out; }
.bubble span { display: block; font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; opacity: .75; }
.bubble.them { background: var(--teal-soft); color: #18403d; border-bottom-left-radius: 4px; }
.mission-answer { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.mission-choices .option { border-radius: 12px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }

/* Ünneplés */
.celebrate { text-align: center; display: grid; justify-items: center; margin: 22px 0 6px; }
.celebrate .lead { margin-inline: auto; }
.mission-play .celebrate ~ .button { display: flex; margin-inline: auto; }
.burst { position: relative; width: 120px; height: 120px; display: grid; place-items: center; margin-bottom: 6px; }
.burst i { --r: 0deg; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 2px; background: var(--amber);
  transform: rotate(var(--r)) translateY(-54px); opacity: 0; animation: spark .9s ease-out .15s forwards; }
.burst i:nth-child(1) { --r: 0deg; }
.burst i:nth-child(2) { --r: 30deg; }
.burst i:nth-child(3) { --r: 60deg; }
.burst i:nth-child(4) { --r: 90deg; }
.burst i:nth-child(5) { --r: 120deg; }
.burst i:nth-child(6) { --r: 150deg; }
.burst i:nth-child(7) { --r: 180deg; }
.burst i:nth-child(8) { --r: 210deg; }
.burst i:nth-child(9) { --r: 240deg; }
.burst i:nth-child(10) { --r: 270deg; }
.burst i:nth-child(11) { --r: 300deg; }
.burst i:nth-child(12) { --r: 330deg; }
.burst i:nth-child(3n) { background: var(--teal); }
.burst i:nth-child(3n+1) { background: var(--coral); }
.badge { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--amber); color: #fff; box-shadow: 0 0 0 8px var(--amber-soft), 0 10px 24px -8px #9a5f0c99; animation: bounce .6s cubic-bezier(.3, 1.6, .5, 1); }
.badge svg { width: 40px; height: 40px; fill: currentColor; }
.celebrate.helped .badge { background: var(--green); box-shadow: 0 0 0 8px var(--wash), 0 10px 24px -8px #1b382699; }
.celebrate.helped .badge svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bounce { from { transform: scale(.2); } }
@keyframes spark { 0% { opacity: 1; transform: rotate(var(--r)) translateY(-20px) scale(.6); } 100% { opacity: 0; transform: rotate(var(--r)) translateY(-64px) scale(1); } }

/* Összegzés */
.recap-score { display: flex; align-items: center; gap: 14px; margin: 14px 0; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.recap-score .ring { --size: 64px; }
.recap-score .ring > span { font-size: .8rem; }
.recap-score .ring circle, .mission-summary .ring circle { stroke-width: 4; }
.recap-score strong { display: block; font: 700 1.7rem/1 var(--serif); }
.recap-score small { color: var(--muted); }
.streak-note { display: flex; align-items: center; gap: 8px; font-weight: 650; color: #9a5f0c; }
.streak-note .stat-icon { background: var(--amber-soft); width: 30px; height: 30px; }
.streak-note svg { fill: var(--amber); }
.phrase { border-radius: 0 10px 10px 0; }
.option, .answer-fields input, .button { border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .burst i { display: none; }
}

@media (max-width: 660px) {
  .topbar-inner, .shell { width: calc(100% - 32px); }
  .topbar-inner { min-height: 52px; }
  .shell { padding-top: 26px; }
  .landing { grid-template-columns: 1fr; gap: 24px; }
  .landing h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .landing .lead { margin-top: 13px; }
  .lesson-label { margin-top: 16px; }
  .task { margin-top: 16px; }
  .task form > .primary { width: 100%; }
}

@media (max-width: 420px) {
  .stats { gap: 6px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
  .stat strong { font-size: 1.25rem; }
  .topic-row { align-items: flex-start; flex-direction: column; }
  .topic-actions { justify-content: flex-start; }
}
