:root {
  --ink: #14234a;
  --ink-soft: #34446d;
  --cream: #fff8e6;
  --paper: #ffffff;
  --yellow: #ffe05d;
  --mint: #72ded4;
  --pink: #ff6ea7;
  --purple: #c8b3ff;
  --green: #80dfa2;
  --orange: #ffad62;
  --line: #14234a;
  --muted: #e7e9f1;
  font-family: "Trebuchet MS", "Avenir Next", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--cream); }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.skip-link { position: fixed; z-index: 999; left: 1rem; top: 1rem; transform: translateY(-200%); padding: .65rem 1rem; border: 2px solid var(--line); border-radius: .75rem; background: white; font-weight: 900; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 3px solid var(--line); background: rgba(20, 35, 74, .98); color: white; box-shadow: 0 6px 0 rgba(20, 35, 74, .1); }
.topline, .main-nav, main, footer { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.topline { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: white; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 3.1rem; aspect-ratio: 1; border: 2px solid white; border-radius: 1rem; background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 white; font-size: 1.5rem; font-weight: 950; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.1rem; line-height: 1.05; }
.brand small { margin-top: .18rem; color: #cdd3e6; font-size: .65rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.header-score { min-width: 10rem; display: grid; gap: .35rem; font-size: .75rem; font-weight: 900; text-align: right; }
.header-score i { width: 10rem; height: .55rem; overflow: hidden; border: 1px solid white; border-radius: 999px; background: rgba(255,255,255,.2); }
.header-score em { display: block; width: 0; height: 100%; background: var(--yellow); transition: width .3s ease; }
.main-nav { display: flex; gap: .45rem; padding: 0 0 .7rem; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav button { flex: 0 0 auto; padding: .58rem .82rem; border: 1.5px solid rgba(255,255,255,.45); border-radius: 999px; color: white; background: transparent; font-size: .78rem; font-weight: 900; cursor: pointer; }
.main-nav button:hover, .main-nav button:focus-visible, .main-nav button.is-active { border-color: var(--yellow); background: var(--yellow); color: var(--ink); outline: none; }

main { min-height: 72vh; }
.view { display: none; padding: clamp(1.3rem, 4vw, 3.5rem) 0 4rem; }
.view.is-active { display: block; animation: appear .28s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } }

.hero { min-height: 30rem; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.eyebrow { display: inline-flex; padding: .42rem .7rem; border: 2px solid var(--line); border-radius: .55rem; background: white; box-shadow: 3px 3px 0 var(--line); font-size: .69rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.dark { background: var(--mint); box-shadow: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 1.15rem 0 1rem; font-size: clamp(2.55rem, 6.5vw, 5.2rem); line-height: .97; letter-spacing: -.06em; }
h1 mark { color: inherit; background: linear-gradient(transparent 56%, var(--yellow) 56%); }
h2 { margin: .7rem 0 0; font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -.045em; }
.hero-copy > p, .page-heading p { max-width: 45rem; color: var(--ink-soft); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.55; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.1rem; }
.primary-button, .secondary-button, .small-button, .back-button, .quit-button { min-height: 3rem; padding: .7rem 1rem; border: 2px solid var(--line); border-radius: .9rem; font-weight: 900; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.primary-button { background: var(--yellow); box-shadow: 4px 4px 0 var(--line); }
.secondary-button { background: white; }
.small-button { min-height: 2.7rem; background: var(--yellow); }
.primary-button:hover, .secondary-button:hover, .small-button:hover, .back-button:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--line); }
.danger { color: #9a2452; border-color: #9a2452; }
.local-pill { display: inline-flex; gap: .45rem; align-items: center; padding: .55rem .75rem; border-radius: 999px; background: #e7f8f4; font-size: .76rem; font-weight: 850; }

.detective-card { position: relative; min-height: 25rem; overflow: hidden; border: 3px solid var(--line); border-radius: 2.5rem; background: var(--mint); box-shadow: 10px 10px 0 var(--line); transform: rotate(1.5deg); }
.detective { position: absolute; left: 50%; bottom: 0; width: 17rem; height: 21rem; transform: translateX(-50%); }
.hat { position: absolute; z-index: 4; left: 2rem; top: 1.2rem; width: 11.5rem; height: 4rem; border: 3px solid var(--line); border-radius: 50% 50% 20% 20%; background: #a66b47; transform: rotate(-5deg); }
.hat::after { content: ""; position: absolute; left: -2.2rem; bottom: -.8rem; width: 15rem; height: 1.3rem; border: 3px solid var(--line); border-radius: 50%; background: #a66b47; }
.head { position: absolute; z-index: 3; left: 3.8rem; top: 4.2rem; width: 9.5rem; height: 9rem; border: 3px solid var(--line); border-radius: 46% 46% 44% 44%; background: #ffd2ad; }
.head::before, .head::after { content: ""; position: absolute; top: 3rem; width: .75rem; aspect-ratio: 1; border-radius: 50%; background: var(--line); }
.head::before { left: 2.3rem; }.head::after { right: 2.3rem; }
.head i { position: absolute; left: 50%; top: 4.8rem; width: 2.5rem; height: 1rem; border-bottom: 3px solid var(--line); border-radius: 50%; transform: translateX(-50%); }
.coat { position: absolute; left: 1.5rem; bottom: -1rem; width: 14rem; height: 11rem; border: 3px solid var(--line); border-radius: 4rem 4rem 0 0; background: #53678e; }
.coat::before, .coat::after { content: ""; position: absolute; top: .8rem; width: 5rem; height: 7rem; border: 3px solid var(--line); background: #7285a9; }
.coat::before { left: 1rem; transform: skew(12deg); }.coat::after { right: 1rem; transform: skew(-12deg); }
.glass { position: absolute; z-index: 6; right: -.5rem; top: 7rem; font-family: Georgia, serif; font-size: 7rem; font-weight: 900; transform: rotate(-15deg); }
.paper { position: absolute; z-index: 2; padding: .5rem .7rem; border: 2px solid var(--line); background: white; box-shadow: 3px 3px 0 var(--line); font-size: .75rem; font-weight: 900; }
.paper-one { left: 1rem; top: 1.3rem; transform: rotate(-5deg); }.paper-two { right: 1rem; top: 3rem; transform: rotate(5deg); }
.answer-stamp { position: absolute; z-index: 7; right: 1.2rem; bottom: 1.1rem; padding: .6rem; border: 4px double #b72359; border-radius: 50%; color: #b72359; background: rgba(255,255,255,.84); font-size: .72rem; font-weight: 950; text-align: center; transform: rotate(-12deg); }

.overview-card, .coverage, .report-card { margin-top: 2rem; padding: clamp(1.25rem, 4vw, 2.6rem); border: 3px solid var(--line); border-radius: 2rem; background: white; box-shadow: 8px 8px 0 var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.route-card { min-height: 11rem; display: grid; grid-template-columns: auto 1fr; align-content: end; gap: .8rem; padding: 1.25rem; border: 2px solid var(--line); border-radius: 1.2rem; text-align: left; cursor: pointer; }
.route-card > span { grid-row: 1 / 3; align-self: start; display: grid; place-items: center; width: 2.4rem; aspect-ratio: 1; border: 2px solid var(--line); border-radius: 50%; background: white; font-weight: 950; }
.route-card > b { position: absolute; opacity: 0; }
.route-card strong, .route-card small { display: block; }.route-card strong { font-size: 1.15rem; }.route-card small { margin-top: .35rem; line-height: 1.4; }
.route-card.theory { background: var(--yellow); }.route-card.method { background: var(--purple); }.route-card.games { background: var(--mint); }
.route-card:hover, .route-card:focus-visible { transform: translateY(-4px); box-shadow: 0 6px 0 var(--line); outline: none; }
.coverage-grid { display: flex; flex-wrap: wrap; gap: .7rem; }
.coverage-grid span { padding: .65rem .85rem; border: 2px solid var(--line); border-radius: 999px; background: #f7f8fb; font-weight: 850; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: 1.5rem 0 2.5rem; }
.page-heading h1 { max-width: 55rem; font-size: clamp(2.5rem, 6vw, 4.8rem); }
.page-heading.compact { align-items: center; }
.lesson-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.lesson-card { min-height: 16rem; display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 1rem; padding: 1.4rem; border: 3px solid var(--line); border-radius: 1.5rem; background: white; box-shadow: 5px 5px 0 var(--line); cursor: pointer; text-align: left; }
.lesson-card:hover, .lesson-card:focus-visible { transform: translateY(-4px); box-shadow: 6px 9px 0 var(--line); outline: none; }
.lesson-icon { display: grid; place-items: center; width: 4.2rem; aspect-ratio: 1; border: 2px solid var(--line); border-radius: 1rem; font-size: 2rem; }
.lesson-card small, .lesson-card strong, .lesson-card em { display: block; }
.lesson-card small { margin-bottom: .45rem; font-size: .68rem; font-style: normal; font-weight: 950; letter-spacing: .1em; }
.lesson-card strong { font-size: 1.45rem; line-height: 1.08; }
.lesson-card p { grid-column: 1 / -1; margin: .3rem 0 0; color: var(--ink-soft); line-height: 1.45; font-weight: 650; }
.lesson-card em { grid-column: 1 / -1; font-style: normal; font-size: .76rem; font-weight: 900; }

.back-button { margin-bottom: 1rem; background: white; }
.lesson-sheet { overflow: hidden; border: 3px solid var(--line); border-radius: 2rem; background: white; box-shadow: 8px 8px 0 var(--line); }
.lesson-hero { padding: clamp(1.5rem, 5vw, 3.5rem); border-bottom: 3px solid var(--line); }
.lesson-hero-head { display: flex; align-items: center; gap: 1rem; }
.lesson-hero-head span { display: grid; place-items: center; width: 4.8rem; aspect-ratio: 1; border: 3px solid var(--line); border-radius: 1.2rem; background: white; font-size: 2.2rem; }
.lesson-hero h1 { margin: .7rem 0; font-size: clamp(2.3rem, 6vw, 4.7rem); }
.lesson-hero p { max-width: 55rem; margin: 0; font-size: 1.1rem; line-height: 1.55; font-weight: 650; }
.lesson-content { padding: clamp(1.5rem, 5vw, 3.5rem); }
.highlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.highlight-card { padding: 1.2rem; border: 2px solid var(--line); border-radius: 1.2rem; background: #fffdf4; }
.highlight-card strong { display: block; margin-bottom: .45rem; font-size: 1.15rem; }
.highlight-card p { margin: 0; line-height: 1.5; }
.memory-card { display: flex; gap: .85rem; align-items: center; margin-top: 1.2rem; padding: 1rem 1.2rem; border: 3px dashed var(--line); border-radius: 1.1rem; background: var(--yellow); font-weight: 950; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.steps-board { display: grid; gap: .8rem; counter-reset: steps; }
.step-row { counter-increment: steps; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 2px solid var(--line); border-radius: 1.1rem; background: white; box-shadow: 4px 4px 0 var(--line); }
.step-row::before { content: counter(steps); display: grid; place-items: center; width: 2.6rem; aspect-ratio: 1; border: 2px solid var(--line); border-radius: 50%; background: var(--yellow); font-weight: 950; }
.step-row strong { font-size: 1rem; }
.step-row span { padding: .35rem .55rem; border-radius: 999px; background: #eff1f7; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.method-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; margin-top: 1.3rem; padding: 1rem 1.2rem; border: 3px solid var(--line); border-radius: 1rem; background: var(--mint); font-weight: 850; }

.practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.practice-card { min-height: 14rem; display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 1rem; padding: 1.35rem; border: 3px solid var(--line); border-radius: 1.4rem; background: white; box-shadow: 5px 5px 0 var(--line); cursor: pointer; text-align: left; }
.practice-card:hover, .practice-card:focus-visible { transform: translateY(-4px); box-shadow: 6px 9px 0 var(--line); outline: none; }
.practice-card .lesson-icon { width: 3.8rem; }
.practice-card strong { display: block; font-size: 1.3rem; }.practice-card p { grid-column: 1/-1; margin: 0; line-height: 1.45; }.practice-card small { display: block; margin-top: .5rem; font-weight: 900; }
.practice-card.mix { grid-column: 1 / -1; min-height: 10rem; background: var(--yellow); }
.bonus-heading { grid-column: 1 / -1; margin-top: 1.2rem; padding: 1.4rem 1.5rem; border: 3px solid var(--line); border-radius: 1.4rem; background: #eef0ff; box-shadow: 5px 5px 0 var(--line); }
.bonus-heading h2 { margin: .35rem 0 .25rem; font-size: clamp(1.7rem, 4vw, 2.35rem); }.bonus-heading p { margin: 0; color: var(--ink-soft); font-weight: 750; }
.bonus-card { background: linear-gradient(145deg, #fff 0%, #fff8d7 100%); }
.bonus-card.is-completed { background: linear-gradient(145deg, #fff 0%, #dff8e9 100%); }
.bonus-card.is-locked { opacity: .62; filter: grayscale(.45); box-shadow: 3px 3px 0 var(--line); cursor: not-allowed; }
.bonus-card.is-locked:hover { transform: none; box-shadow: 3px 3px 0 var(--line); }

#view-quiz { width: 100%; min-height: calc(100vh - 9rem); padding-inline: 0; }
.quiz-shell { width: min(860px, calc(100% - 2rem)); margin: 0 auto; }
.quiz-topline { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.quit-button { min-height: 2.7rem; background: white; }
.quiz-meter { height: .8rem; overflow: hidden; border: 2px solid var(--line); border-radius: 999px; background: white; }
.quiz-meter i { display: block; width: 0; height: 100%; background: var(--pink); transition: width .3s ease; }
.question-card, .result-card { padding: clamp(1.25rem, 5vw, 2.8rem); border: 3px solid var(--line); border-radius: 2rem; background: white; box-shadow: 8px 8px 0 var(--line); }
.question-kicker { display: inline-flex; padding: .35rem .6rem; border-radius: .45rem; background: var(--mint); font-size: .68rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.question-statement { margin: 1rem 0 1.3rem; padding: 1rem 1.1rem; border: 3px solid var(--line); border-left: .65rem solid var(--yellow); border-radius: 1rem; background: #fff8cf; box-shadow: 0 .35rem 0 rgba(32, 39, 82, .12); }
.question-statement span { display: block; color: #765600; font-size: .7rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.question-statement p { margin: .45rem 0 0; font-size: clamp(1rem, 2.5vw, 1.16rem); font-weight: 750; line-height: 1.55; white-space: pre-line; }
.question-statement p + p { margin-top: .8rem; padding-top: .8rem; border-top: 2px dashed rgba(32, 39, 82, .25); }
.question-card h2 { margin: 1rem 0 1.4rem; font-size: clamp(1.55rem, 4vw, 2.5rem); line-height: 1.16; }
.choice-list { display: grid; gap: .7rem; }
.choice { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .8rem; width: 100%; padding: .9rem 1rem; border: 2px solid var(--line); border-radius: 1rem; background: #f8f9fc; cursor: pointer; text-align: left; font-weight: 800; }
.choice:hover, .choice:focus-visible { background: #eefbfa; outline: none; }
.choice.is-selected { background: var(--yellow); box-shadow: 3px 3px 0 var(--line); }
.choice.is-correct { border-color: #187542; background: #cef5db; }
.choice.is-wrong { border-color: #af2357; background: #ffd8e6; }
.choice-index { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border: 2px solid var(--line); border-radius: .55rem; background: white; font-size: .75rem; font-weight: 950; }
.question-help { margin: -.4rem 0 1rem; color: var(--ink-soft); font-size: .83rem; font-weight: 700; }
.answer-input { width: min(20rem, 100%); padding: .85rem 1rem; border: 3px solid var(--line); border-radius: 1rem; background: #fffdf1; font-size: 1.3rem; font-weight: 950; }
.number-answer { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.number-answer span { font-weight: 950; }
.classify-list { display: grid; gap: 1rem; }
.classify-item { padding: 1rem; border: 2px solid var(--line); border-radius: 1rem; background: #f8f9fc; }
.classify-item strong { display: block; margin-bottom: .7rem; }
.category-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.category-buttons button { padding: .55rem .7rem; border: 2px solid var(--line); border-radius: 999px; background: white; cursor: pointer; font-weight: 850; }
.category-buttons button.is-selected { background: var(--yellow); box-shadow: 2px 2px 0 var(--line); }
.order-list { display: grid; gap: .65rem; counter-reset: order; }
.order-item { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .75rem .85rem; border: 2px solid var(--line); border-radius: .9rem; background: #f8f9fc; }
.order-item::before { counter-increment: order; content: counter(order); display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border-radius: 50%; background: var(--purple); font-weight: 950; }
.order-controls { display: flex; gap: .3rem; }
.order-controls button { width: 2rem; aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: .5rem; background: white; cursor: pointer; font-weight: 950; }
.question-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.3rem; }
.check-button, .next-button { min-height: 3rem; padding: .7rem 1.1rem; border: 2px solid var(--line); border-radius: .9rem; background: var(--yellow); box-shadow: 3px 3px 0 var(--line); cursor: pointer; font-weight: 950; }
.check-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.feedback { margin-top: 1.2rem; padding: 1rem; border: 2px solid var(--line); border-radius: 1rem; line-height: 1.5; }
.feedback.good { background: #cef5db; }.feedback.bad { background: #ffd8e6; }
.feedback strong { display: block; margin-bottom: .3rem; }
.result-card { text-align: center; }
.result-badge { display: grid; place-items: center; width: 8rem; aspect-ratio: 1; margin: 0 auto 1rem; border: 3px solid var(--line); border-radius: 50%; background: var(--yellow); box-shadow: 6px 6px 0 var(--line); font-size: 2rem; font-weight: 950; }
.result-card h2 { margin-bottom: .7rem; }.result-card p { color: var(--ink-soft); font-size: 1.05rem; }
.unlock-message { max-width: 36rem; margin: 1.2rem auto 0; padding: 1rem 1.2rem; border: 3px solid var(--line); border-radius: 1rem; background: var(--mint); font-size: 1.05rem; font-weight: 950; }
.result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-card { padding: 1.25rem; border: 3px solid var(--line); border-radius: 1.3rem; background: white; box-shadow: 5px 5px 0 var(--line); }
.stat-card span, .stat-card strong { display: block; }.stat-card span { font-size: .7rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }.stat-card strong { margin-top: .4rem; font-size: 2.3rem; }
.lesson-report-row { display: grid; grid-template-columns: minmax(12rem, 1fr) 2fr auto; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #dde0e9; }
.lesson-report-row:last-child { border-bottom: 0; }
.lesson-report-row > span { font-weight: 850; }
.report-meter { height: .7rem; overflow: hidden; border: 2px solid var(--line); border-radius: 999px; background: #eff1f6; }.report-meter i { display: block; height: 100%; background: var(--mint); }
.bonus-progress-summary { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 1rem 1.1rem; border: 3px solid var(--line); border-radius: 1rem; background: var(--yellow); font-weight: 950; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 1rem; max-width: calc(100% - 2rem); padding: .75rem 1rem; border: 2px solid white; border-radius: 999px; color: white; background: var(--ink); box-shadow: 3px 3px 0 var(--yellow); opacity: 0; pointer-events: none; transform: translate(-50%, 1rem); transition: .2s ease; font-weight: 850; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
footer { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem 1.4rem; padding: 2.5rem 0; border-top: 2px solid rgba(20,35,74,.15); font-size: .78rem; font-weight: 850; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: .8rem; }
  .detective-card { width: min(31rem, 100%); min-height: 20rem; margin-inline: auto; }
  .detective { transform: translateX(-50%) scale(.82); transform-origin: bottom; }
  .route-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 7rem; }
  .page-heading { display: block; }
  .page-heading > button { margin-top: 1rem; }
}

@media (max-width: 650px) {
  .topline, .main-nav, main, footer { width: min(100% - 1rem, 1180px); }
  .site-header { position: static; }
  .topline { min-height: 4.5rem; }
  .brand-mark { width: 2.65rem; }
  .brand strong { font-size: .95rem; }
  .header-score { min-width: 6.5rem; }
  .header-score i { width: 6.5rem; }
  .main-nav { padding-bottom: .65rem; }
  .main-nav button { font-size: .71rem; }
  .view { padding-top: 1.3rem; }
  .hero { min-height: 0; gap: 1.3rem; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.8rem); }
  .detective-card { min-height: 18rem; border-radius: 1.5rem; box-shadow: 6px 6px 0 var(--line); }
  .overview-card, .coverage, .report-card, .lesson-sheet, .question-card, .result-card { border-radius: 1.3rem; box-shadow: 5px 5px 0 var(--line); }
  .section-heading { align-items: start; }
  .lesson-grid, .practice-grid, .highlight-grid, .stats-grid { grid-template-columns: 1fr; }
  .practice-card.mix, .bonus-heading { grid-column: auto; }
  .lesson-card, .practice-card { min-height: 0; }
  .step-row { grid-template-columns: auto 1fr; }
  .step-row span { grid-column: 2; justify-self: start; }
  .quiz-shell { width: calc(100% - 1rem); }
  .quiz-topline { grid-template-columns: auto 1fr; }
  .quiz-topline > strong { grid-column: 1 / -1; justify-self: end; margin-top: -.65rem; }
  .question-card { padding: 1.1rem; }
  .question-actions { align-items: stretch; flex-direction: column; }
  .check-button, .next-button { width: 100%; }
  .lesson-report-row { grid-template-columns: 1fr auto; }
  .lesson-report-row .report-meter { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
