@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
  color-scheme: light;
  --ink: #182e2b;
  --muted: #667772;
  --green: #153f37;
  --green-2: #24584c;
  --leaf: #d4ee7b;
  --paper: #f5f6f1;
  --surface: #fffefa;
  --line: #e4e8df;
  --mint: #e8f0e9;
  --coral: #df7c5c;
  --gold: #e7bd64;
  --shadow: 0 18px 48px rgba(31, 57, 47, .09);
  font-family: 'DM Sans', 'Aptos', 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #8cae47; outline-offset: 3px; }
button:disabled { cursor: not-allowed; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.loading-state { padding: 4rem 1rem; text-align: center; color: var(--muted); }
.site-header { position: relative; z-index: 4; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 clamp(1rem, 5vw, 4.5rem); background: rgba(255, 254, 250, .9); border-bottom: 1px solid rgba(228, 232, 223, .8); }
.brand { display: inline-flex; align-items: center; gap: .7rem; border: 0; padding: .35rem 0; background: transparent; cursor: pointer; text-align: left; }
.brand-mark { width: 39px; height: 39px; flex: 0 0 auto; }
.brand-copy { display: flex; flex-direction: column; gap: .05rem; }
.brand-name { color: var(--green); font-size: 1.06rem; font-weight: 700; letter-spacing: -.045em; }
.brand-subtitle { color: #78867e; font-size: .63rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.header-note { display: flex; align-items: center; gap: .48rem; color: var(--muted); font-size: .77rem; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #91b45b; box-shadow: 0 0 0 4px #edf4df; }
.header-action { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 40px; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--green); font-size: .83rem; font-weight: 700; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.header-action:hover { background: var(--mint); transform: translateY(-1px); }
.header-action .stat-count { display: inline-grid; min-width: 21px; height: 21px; place-items: center; border-radius: 999px; background: var(--leaf); font-size: .68rem; }

main { width: min(1160px, calc(100% - 2.5rem)); margin: 0 auto; flex: 1; }
.home-main { padding: 2rem 0 4rem; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: center; min-height: 278px; overflow: hidden; padding: clamp(2rem, 5vw, 3.8rem); border-radius: 26px; color: #fffdf6; background: var(--green); box-shadow: 0 20px 50px rgba(21, 63, 55, .14); }
.hero::before, .hero::after { position: absolute; content: ''; pointer-events: none; border-radius: 50%; }
.hero::before { width: 400px; height: 400px; top: -206px; right: 124px; border: 1px solid rgba(212, 238, 123, .18); box-shadow: 0 0 0 34px rgba(212, 238, 123, .03), 0 0 0 70px rgba(212, 238, 123, .025); }
.hero::after { width: 210px; height: 210px; right: 22px; bottom: -156px; border: 1px solid rgba(255,255,255,.13); box-shadow: 0 0 0 24px rgba(255,255,255,.025); }
.hero-content { position: relative; z-index: 1; max-width: 650px; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; color: var(--leaf); font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { width: 20px; height: 1px; content: ''; background: currentColor; }
.hero h1, .page-heading h1, .complete-title { margin: 0; font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; letter-spacing: -.045em; }
.hero h1 { max-width: 650px; font-size: clamp(2.4rem, 5.2vw, 4.25rem); line-height: 1.02; }
.hero h1 em { color: var(--leaf); font-style: normal; }
.hero-description { max-width: 520px; margin: 1.1rem 0 0; color: rgba(255, 253, 246, .78); font-size: .98rem; line-height: 1.65; }
.hero-art { position: relative; z-index: 1; display: grid; place-items: center; min-height: 190px; }
.hero-ring { position: absolute; width: 182px; height: 182px; border: 1px solid rgba(212, 238, 123, .48); border-radius: 50%; }
.hero-ring::before, .hero-ring::after { position: absolute; content: ''; border: 1px solid rgba(212, 238, 123, .23); border-radius: 50%; }
.hero-ring::before { inset: 17px; }
.hero-ring::after { inset: 39px; }
.hero-microscope { width: 102px; height: 102px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .16)); }
.hero-orbit-dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 7px rgba(223,124,92,.16); }
.hero-orbit-dot.one { top: 18px; right: 77px; }
.hero-orbit-dot.two { bottom: 18px; left: 36px; width: 7px; height: 7px; background: var(--leaf); box-shadow: 0 0 0 6px rgba(212,238,123,.14); }

.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 2.8rem 0 1.1rem; }
.section-intro h2, .topics-heading h2 { margin: 0; color: var(--ink); font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 400; letter-spacing: -.035em; }
.section-intro p, .topics-heading p { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.bank-total { flex: 0 0 auto; color: var(--muted); font-size: .8rem; }

.subject-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.subject-card { position: relative; display: flex; flex-direction: column; min-height: 222px; overflow: hidden; padding: 1.55rem 1.65rem; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); text-align: left; cursor: pointer; box-shadow: 0 3px 12px rgba(31, 57, 47, .025); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.subject-card:hover { transform: translateY(-4px); border-color: #c6d4c6; box-shadow: var(--shadow); }
.subject-card::after { position: absolute; right: -22px; bottom: -82px; width: 210px; height: 210px; content: ''; border: 1px solid #dfe9d8; border-radius: 50%; box-shadow: 0 0 0 23px rgba(232,240,233,.44), 0 0 0 47px rgba(232,240,233,.25); }
.subject-card.parasitology::after { border-color: #efdfd2; box-shadow: 0 0 0 23px rgba(246,237,228,.5), 0 0 0 47px rgba(246,237,228,.28); }
.subject-card-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: start; }
.subject-number { color: #91a098; font-size: .72rem; font-weight: 700; letter-spacing: .15em; }
.subject-glyph { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--green); background: #e7f0e1; }
.subject-card.parasitology .subject-glyph { color: #975844; background: #faede4; }
.subject-glyph svg { width: 22px; height: 22px; }
.subject-card h3 { position: relative; z-index: 1; margin: 1.05rem 0 .35rem; font-family: 'DM Serif Display', Georgia, serif; font-size: 1.75rem; font-weight: 400; letter-spacing: -.035em; }
.subject-meta { position: relative; z-index: 1; display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .83rem; }
.subject-meta .bullet { color: #a7b5a8; }
.subject-cta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1.3rem; color: var(--green); font-size: .83rem; font-weight: 700; }
.subject-cta .arrow { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--green); color: var(--leaf); transition: transform .2s ease; }
.subject-card:hover .subject-cta .arrow { transform: translateX(3px); }

.progress-panel { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: 1.7rem; align-items: center; margin-top: 1.2rem; padding: 1.25rem 1.55rem; border: 1px solid var(--line); border-radius: 17px; background: #edf1e9; }
.progress-copy { display: flex; align-items: center; gap: 1rem; }
.progress-emblem { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--green); color: var(--leaf); }
.progress-emblem svg { width: 20px; height: 20px; }
.progress-copy h3 { margin: 0; font-size: .9rem; }
.progress-copy p { margin: .24rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.stat-pair { display: flex; justify-content: flex-end; gap: 1.7rem; }
.stat-box { min-width: 74px; }
.stat-value { color: var(--green); font-family: 'DM Serif Display', Georgia, serif; font-size: 1.75rem; line-height: 1; }
.stat-label { margin-top: .35rem; color: var(--muted); font-size: .69rem; }
.recent-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; padding: .75rem 1rem; border-radius: 12px; background: rgba(255,254,250,.68); color: var(--muted); font-size: .78rem; }
.recent-strip strong { color: var(--ink); }
.text-button { border: 0; padding: .25rem; background: transparent; color: var(--green); font-weight: 700; cursor: pointer; }

.page-main { padding: 2rem 0 4rem; }
.breadcrumbs { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem; color: #8b9991; font-size: .78rem; }
.breadcrumbs button { border: 0; padding: .2rem 0; background: transparent; color: var(--green); font-weight: 700; cursor: pointer; }
.breadcrumbs .current { color: var(--muted); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem; margin: .7rem 0 1.55rem; }
.page-heading h1 { font-size: clamp(2.25rem, 5vw, 3.35rem); line-height: 1.02; }
.page-heading p { margin: .5rem 0 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.subject-summary { display: flex; align-items: center; gap: .45rem; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--green); white-space: nowrap; }
.subject-summary strong { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.subject-summary span { color: var(--muted); font-size: .75rem; }
.topic-toolbar { display: grid; grid-template-columns: minmax(200px, 1fr) auto auto; gap: .75rem; align-items: center; margin: 1.5rem 0 1rem; padding: .85rem; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.search-field { position: relative; }
.search-field svg { position: absolute; top: 50%; left: .85rem; width: 17px; height: 17px; transform: translateY(-50%); color: #8b9991; pointer-events: none; }
.search-field input { width: 100%; min-height: 43px; padding: .6rem .9rem .6rem 2.5rem; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); outline: none; }
.search-field input::placeholder { color: #9aa69f; }
.select-wrap { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.select-wrap select { min-height: 43px; padding: .55rem 2.2rem .55rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); }
.shuffle-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 .35rem; color: var(--muted); font-size: .78rem; white-space: nowrap; cursor: pointer; }
.shuffle-toggle input { width: 16px; height: 16px; accent-color: var(--green); }
.topic-count-line { display: flex; justify-content: space-between; margin: .7rem .25rem .55rem; color: var(--muted); font-size: .77rem; }
.topic-list { display: flex; flex-direction: column; gap: .62rem; }
.topic-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.topic-row:hover { transform: translateX(2px); border-color: #c6d4c6; box-shadow: 0 8px 22px rgba(31,57,47,.045); }
.topic-index { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #edf2e9; color: var(--green); font-size: .75rem; font-weight: 700; }
.topic-info h3 { margin: 0; color: var(--ink); font-size: .95rem; font-weight: 700; }
.topic-info p { margin: .24rem 0 0; color: var(--muted); font-size: .76rem; }
.topic-questions { color: #839189; font-size: .76rem; white-space: nowrap; }
.topic-start { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 40px; padding: .55rem .88rem; border: 0; border-radius: 10px; background: var(--green); color: #fffef8; font-size: .78rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.topic-start:hover { transform: translateY(-1px); background: #21584b; }
.topic-start svg { width: 15px; height: 15px; }
.empty-state { padding: 2rem 1rem; border: 1px dashed #ccd5ca; border-radius: 14px; color: var(--muted); text-align: center; }

.quiz-wrap { width: min(850px, 100%); margin: 0 auto; }
.quiz-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .6rem 0 1rem; }
.quiz-topic-label { color: var(--muted); font-size: .82rem; }
.quiz-topic-label strong { color: var(--green); }
.exit-quiz { border: 0; padding: .4rem 0; background: transparent; color: #76857d; font-size: .78rem; font-weight: 700; cursor: pointer; }
.quiz-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .7rem 0 .6rem; }
.quiz-count { color: var(--ink); font-size: .83rem; font-weight: 700; }
.quiz-score { color: var(--green); font-size: .82rem; font-weight: 700; }
.progress-track { width: 100%; height: 7px; overflow: hidden; border-radius: 999px; background: #e4e9df; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--green); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.question-card { margin-top: 1.25rem; padding: clamp(1.3rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: var(--shadow); }
.question-number { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .66rem; border-radius: 999px; background: #eff4e5; color: var(--green); font-size: .7rem; font-weight: 700; letter-spacing: .035em; }
.question-number .spark { width: 7px; height: 7px; border-radius: 50%; background: #9ebc57; }
.question-text { margin: 1.15rem 0 1.55rem; color: var(--ink); font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(1.22rem, 2.6vw, 1.7rem); font-weight: 400; line-height: 1.45; letter-spacing: -.015em; }
.answer-list { display: flex; flex-direction: column; gap: .6rem; }
.answer-option { display: grid; grid-template-columns: 34px minmax(0, 1fr) 22px; align-items: center; gap: .8rem; width: 100%; min-height: 58px; padding: .72rem .95rem; border: 1px solid #e1e7df; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.answer-option:hover:not(:disabled) { transform: translateX(2px); border-color: #a9bea9; background: #fafcf8; }
.answer-option:disabled { opacity: 1; cursor: default; }
.option-letter { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #dce5d9; border-radius: 9px; color: #66766f; font-size: .78rem; font-weight: 700; }
.option-copy { color: #33433d; font-size: .9rem; line-height: 1.5; }
.option-indicator { width: 18px; height: 18px; border: 1px solid #dbe3dc; border-radius: 50%; }
.answer-option.is-correct { border-color: #76a761; background: #f0f7e9; }
.answer-option.is-correct .option-letter { border-color: #75a45d; background: #d9edbf; color: #285640; }
.answer-option.is-correct .option-indicator { display: grid; place-items: center; border-color: #5d9253; background: #5d9253; color: white; }
.answer-option.is-wrong { border-color: #e6a18c; background: #fdf1ec; }
.answer-option.is-wrong .option-letter { border-color: #e6a18c; background: #fae1d8; color: #9a4e35; }
.answer-option.is-wrong .option-indicator { border-color: #dc8162; background: #dc8162; }
.answer-option.is-muted { opacity: .62; }
.feedback-box { display: flex; align-items: start; gap: .75rem; margin-top: 1rem; padding: .95rem 1rem; border-radius: 12px; background: #f1f5ec; }
.feedback-box.wrong { background: #fbf0eb; }
.feedback-icon { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #d9edbf; color: #285640; font-size: .8rem; font-weight: 700; }
.feedback-box.wrong .feedback-icon { background: #f4d6c9; color: #984f38; }
.feedback-copy strong { display: block; margin: .05rem 0 .23rem; color: var(--ink); font-size: .82rem; }
.feedback-copy p { margin: 0; color: #66766f; font-size: .77rem; line-height: 1.55; }
.feedback-copy .answer-reveal { margin-top: .3rem; color: #364c42; }
.question-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.3rem; }
.source-note { max-width: 340px; color: #89958e; font-size: .7rem; line-height: 1.45; }
.next-button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 45px; padding: .7rem 1.1rem; border: 0; border-radius: 11px; background: var(--green); color: #fffef8; font-size: .82rem; font-weight: 700; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.next-button:hover:not(:disabled) { transform: translateY(-1px); background: #21584b; }
.next-button:disabled { background: #d7ded6; color: #87938b; }
.next-button svg { width: 16px; height: 16px; }

.results-wrap { width: min(850px, 100%); margin: 0 auto; }
.results-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.results-hero { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; overflow: hidden; padding: clamp(1.6rem, 5vw, 2.7rem); background: var(--green); color: white; }
.results-hero::after { position: absolute; right: 110px; bottom: -160px; width: 260px; height: 260px; content: ''; border: 1px solid rgba(212,238,123,.23); border-radius: 50%; box-shadow: 0 0 0 28px rgba(212,238,123,.04); }
.results-hero .eyebrow { margin-bottom: .65rem; }
.complete-title { position: relative; z-index: 1; font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.06; }
.results-hero p { position: relative; z-index: 1; max-width: 470px; margin: .65rem 0 0; color: rgba(255,253,246,.75); font-size: .88rem; line-height: 1.6; }
.score-ring { position: relative; z-index: 1; display: grid; width: 122px; height: 122px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(212,238,123,.55); border-radius: 50%; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 9px rgba(255,255,255,.035); text-align: center; }
.score-ring strong { display: block; color: var(--leaf); font-family: 'DM Serif Display', Georgia, serif; font-size: 2rem; font-weight: 400; line-height: 1; }
.score-ring span { display: block; margin-top: .3rem; color: rgba(255,253,246,.72); font-size: .65rem; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 1.25rem 1.6rem; border-bottom: 1px solid var(--line); }
.result-stat { padding: .2rem 1rem; border-right: 1px solid var(--line); text-align: center; }
.result-stat:last-child { border-right: 0; }
.result-stat strong { display: block; color: var(--green); font-family: 'DM Serif Display', Georgia, serif; font-size: 1.6rem; font-weight: 400; }
.result-stat span { color: var(--muted); font-size: .73rem; }
.results-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; padding: 1.2rem 1rem 1.4rem; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: .65rem .95rem; border: 1px solid #dce4db; border-radius: 10px; background: #fff; color: var(--green); font-size: .78rem; font-weight: 700; cursor: pointer; transition: background .15s ease; }
.secondary-button:hover { background: #f2f6ef; }
.missed-section { margin-top: 1.5rem; }
.missed-section h2 { margin: 0 0 .75rem; font-family: 'DM Serif Display', Georgia, serif; font-size: 1.4rem; font-weight: 400; }
.missed-list { display: flex; flex-direction: column; gap: .55rem; }
.missed-item { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.missed-item strong { display: block; margin-bottom: .35rem; font-size: .78rem; }
.missed-item p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.missed-item .correct-line { margin-top: .3rem; color: #315d47; font-weight: 600; }

.site-footer { width: min(1160px, calc(100% - 2.5rem)); display: flex; justify-content: space-between; gap: 1rem; margin: 0 auto; padding: 1.3rem 0 1.6rem; border-top: 1px solid var(--line); color: #87938b; font-size: .7rem; }
.site-footer strong { color: #627269; font-weight: 600; }

.mixed-practice-card { width: 100%; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1.1rem 1.35rem; border: 1px solid #dce5d5; border-radius: 17px; background: #edf2e9; text-align: left; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.mixed-practice-card:hover { transform: translateY(-2px); border-color: #bdd0b7; background: #e7efe1; }
.mixed-practice-mark, .mixed-bank-glyph { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: var(--green); color: var(--leaf); }
.mixed-practice-mark svg, .mixed-bank-glyph svg { width: 23px; height: 23px; }
.mixed-practice-copy { display: flex; flex-direction: column; gap: .22rem; }
.mixed-practice-copy strong { color: var(--green); font-size: .95rem; }
.mixed-practice-copy span { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.mixed-practice-cta { display: inline-flex; align-items: center; gap: .55rem; color: var(--green); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.mixed-practice-cta svg { width: 17px; height: 17px; }
.mixed-setup-card { margin-top: 1.25rem; padding: clamp(1.2rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.mixed-bank-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.mixed-bank-item { display: flex; align-items: center; gap: .8rem; min-width: 0; padding: .8rem; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.mixed-bank-glyph { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; }
.mixed-bank-glyph svg { width: 20px; height: 20px; }
.mixed-bank-item > span:last-child { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.mixed-bank-item strong { color: var(--ink); font-size: .82rem; }
.mixed-bank-item small { color: var(--muted); font-size: .7rem; }
.mixed-settings { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mixed-settings .select-wrap { gap: .7rem; }
.mixed-balance-note { margin: .85rem 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.mixed-start-button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 46px; margin-top: 1rem; padding: .7rem 1.1rem; border: 0; border-radius: 11px; background: var(--green); color: #fffef8; font-size: .83rem; font-weight: 700; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.mixed-start-button:hover { transform: translateY(-1px); background: #21584b; }
.mixed-start-button:disabled, .mixed-start-button:disabled:hover { opacity: .58; cursor: not-allowed; background: #7d8c81; transform: none; }
.mixed-start-button svg { width: 17px; height: 17px; }
.feedback-copy .explanation-review, .missed-item .explanation-review { margin-top: .45rem; padding-top: .4rem; border-top: 1px solid rgba(165, 110, 68, .2); color: #854c2d; }
.missed-item .missed-origin { margin-bottom: .35rem; color: var(--green); font-size: .69rem; font-weight: 700; }
.missed-item .missed-explanation { margin-top: .35rem; color: #40584a; }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr) 190px; }
  .hero-ring { width: 152px; height: 152px; }
  .hero-microscope { width: 84px; height: 84px; }
  .topic-toolbar { grid-template-columns: minmax(180px, 1fr) auto; }
  .shuffle-toggle { grid-column: 2; justify-self: end; }
}
@media (max-width: 620px) {
  .site-header { min-height: 66px; padding: 0 1rem; }
  .brand-mark { width: 35px; height: 35px; }
  .header-note { display: none; }
  .header-action { min-height: 37px; padding: .45rem .7rem; font-size: .75rem; }
  main { width: min(100% - 1.3rem, 520px); }
  .home-main, .page-main { padding-top: 1.1rem; }
  .hero { display: block; min-height: unset; padding: 1.65rem 1.35rem 1.8rem; border-radius: 19px; }
  .hero h1 { max-width: 480px; font-size: clamp(2.45rem, 12vw, 3.6rem); }
  .hero-description { max-width: 430px; margin-top: .75rem; font-size: .88rem; }
  .hero-art { position: absolute; right: 13px; bottom: 13px; min-height: 0; width: 94px; height: 94px; opacity: .36; }
  .hero-ring { width: 85px; height: 85px; }
  .hero-ring::before { inset: 9px; }
  .hero-ring::after { inset: 20px; }
  .hero-microscope { width: 48px; height: 48px; }
  .hero-orbit-dot.one { top: 2px; right: 32px; width: 7px; height: 7px; box-shadow: 0 0 0 4px rgba(223,124,92,.14); }
  .hero-orbit-dot.two { bottom: 5px; left: 9px; width: 5px; height: 5px; }
  .section-intro { align-items: start; margin: 2rem 0 .9rem; }
  .section-intro h2 { font-size: 1.75rem; }
  .section-intro p { max-width: 250px; font-size: .8rem; line-height: 1.5; }
  .bank-total { display: none; }
  .subject-list { grid-template-columns: 1fr; gap: .7rem; }
  .subject-card { min-height: 184px; padding: 1.2rem 1.25rem; border-radius: 16px; }
  .subject-card h3 { margin-top: .65rem; font-size: 1.55rem; }
  .subject-cta { padding-top: .9rem; }
  .subject-card::after { width: 160px; height: 160px; right: -20px; bottom: -72px; }
  .mixed-practice-card { grid-template-columns: 42px minmax(0, 1fr); gap: .75rem; margin-top: .7rem; padding: .9rem; border-radius: 14px; }
  .mixed-practice-mark { width: 40px; height: 40px; border-radius: 12px; }
  .mixed-practice-copy strong { font-size: .86rem; }
  .mixed-practice-copy span { font-size: .72rem; }
  .mixed-practice-cta { grid-column: 2; justify-self: start; font-size: .74rem; }
  .progress-panel { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .stat-pair { justify-content: space-around; padding-top: .85rem; border-top: 1px solid #dbe3d7; }
  .recent-strip { align-items: start; font-size: .72rem; }
  .page-heading { align-items: start; margin: .4rem 0 1rem; }
  .page-heading h1 { font-size: 2.4rem; }
  .page-heading p { max-width: 380px; font-size: .83rem; }
  .subject-summary { padding: .5rem .65rem; }
  .subject-summary strong { font-size: 1.05rem; }
  .subject-summary span { font-size: .65rem; }
  .mixed-setup-card { margin-top: .85rem; padding: 1rem .8rem; border-radius: 15px; }
  .mixed-bank-list { grid-template-columns: 1fr; gap: .55rem; }
  .mixed-bank-item { padding: .65rem; }
  .mixed-settings { align-items: stretch; flex-direction: column; gap: .75rem; margin-top: .85rem; padding: .85rem 0; }
  .mixed-settings .select-wrap { justify-content: space-between; }
  .mixed-settings .select-wrap select { max-width: 160px; }
  .mixed-settings .shuffle-toggle { align-self: flex-start; }
  .mixed-start-button { width: 100%; }
  .topic-toolbar { grid-template-columns: 1fr 1fr; gap: .55rem; padding: .65rem; }
  .search-field { grid-column: 1 / -1; }
  .select-wrap { justify-content: space-between; gap: .4rem; font-size: .7rem; }
  .select-wrap select { max-width: 125px; min-height: 40px; padding: .45rem 1.6rem .45rem .55rem; font-size: .74rem; }
  .shuffle-toggle { grid-column: auto; justify-self: end; font-size: .72rem; }
  .topic-row { grid-template-columns: 34px minmax(0,1fr) auto; gap: .65rem; padding: .82rem .75rem; border-radius: 12px; }
  .topic-index { width: 32px; height: 32px; border-radius: 10px; font-size: .68rem; }
  .topic-info h3 { font-size: .85rem; line-height: 1.3; }
  .topic-info p { font-size: .69rem; }
  .topic-questions { display: none; }
  .topic-start { min-height: 37px; padding: .48rem .6rem; font-size: .7rem; }
  .topic-start svg { display: none; }
  .quiz-topline { margin-top: .3rem; }
  .quiz-topic-label { max-width: 72%; font-size: .73rem; line-height: 1.4; }
  .exit-quiz { font-size: .72rem; }
  .question-card { margin-top: .85rem; padding: 1.15rem .9rem 1rem; border-radius: 16px; }
  .question-text { margin: .9rem 0 1rem; font-size: 1.28rem; line-height: 1.44; }
  .answer-option { grid-template-columns: 29px minmax(0,1fr) 18px; gap: .62rem; min-height: 52px; padding: .62rem .68rem; border-radius: 10px; }
  .option-letter { width: 29px; height: 29px; border-radius: 8px; font-size: .72rem; }
  .option-copy { font-size: .8rem; line-height: 1.45; }
  .option-indicator { width: 16px; height: 16px; }
  .question-footer { align-items: end; margin-top: 1rem; }
  .source-note { max-width: 190px; font-size: .63rem; }
  .next-button { min-height: 42px; padding: .62rem .8rem; font-size: .75rem; white-space: nowrap; }
  .feedback-box { padding: .78rem; }
  .feedback-copy p { font-size: .72rem; }
  .results-hero { grid-template-columns: 1fr auto; gap: .65rem; padding: 1.35rem 1rem; }
  .complete-title { font-size: 2rem; }
  .results-hero p { font-size: .75rem; }
  .score-ring { width: 88px; height: 88px; }
  .score-ring strong { font-size: 1.55rem; }
  .score-ring span { font-size: .57rem; }
  .result-stats { padding: 1rem .3rem; }
  .result-stat { padding: .15rem .35rem; }
  .result-stat strong { font-size: 1.4rem; }
  .result-stat span { font-size: .64rem; }
  .results-actions { gap: .45rem; padding: 1rem .5rem; }
  .secondary-button { min-height: 40px; padding: .6rem .65rem; font-size: .69rem; }
  .site-footer { width: calc(100% - 1.3rem); align-items: start; padding: 1rem 0 1.2rem; font-size: .64rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
