:root {
  --navy-900: #0b1f3a;
  --navy-800: #102a4b;
  --cobalt-700: #173b6d;
  --emerald-700: #176b3d;
  --emerald-600: #237c4b;
  --emerald-100: #dff5e7;
  --gold-500: #f4b942;
  --gold-100: #fff0c7;
  --cream-50: #fff7e8;
  --neutral-50: #f7faf8;
  --neutral-100: #eef4f0;
  --neutral-200: #d9e4dc;
  --neutral-500: #66756b;
  --ink-900: #17211b;
  --white: #fff;
  --shadow-soft: 0 18px 50px rgba(11, 31, 58, 0.12);
  --shadow-card: 0 10px 30px rgba(23, 107, 61, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink-900); background: var(--neutral-50); font-family: Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
.container { width: min(100% - 32px, 1160px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-180%); padding: 10px 14px; border-radius: 10px; background: var(--navy-900); color: var(--white); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid rgba(11, 31, 58, 0.08); background: rgba(247, 250, 248, 0.94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-900); text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -0.7px; }
.brand img { border-radius: 12px; }
.header-nav { display: flex; align-items: center; gap: 12px; }
.nav-link { padding: 10px; color: #435248; text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-link:hover { color: var(--emerald-700); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 1px solid transparent; border-radius: 14px; padding: 11px 17px; text-decoration: none; font-weight: 700; line-height: 1.1; cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible, .choice-card:has(input:focus-visible) { outline: 3px solid rgba(244, 185, 66, 0.7); outline-offset: 3px; }
.button-primary { background: var(--emerald-700); color: var(--white); box-shadow: 0 7px 18px rgba(23, 107, 61, 0.2); }
.button-primary:hover:not(:disabled) { background: #115b33; box-shadow: 0 10px 24px rgba(23, 107, 61, 0.25); }
.button-secondary { border-color: var(--neutral-200); background: var(--white); color: var(--navy-900); }
.button-gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 8px 20px rgba(244, 185, 66, 0.22); }
.button-small { min-height: 42px; border-radius: 12px; padding: 9px 13px; font-size: 13px; }
.button-large { min-height: 54px; padding: 14px 20px; }
.button-block { width: 100%; }
.button:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.text-link { color: var(--emerald-700); font-weight: 700; text-underline-offset: 4px; }

.hero { position: relative; overflow: hidden; padding: 70px 0 88px; background: radial-gradient(circle at 78% 28%, rgba(223, 245, 231, 0.85), transparent 30%), var(--neutral-50); }
.hero::before { content: ""; position: absolute; width: 260px; height: 260px; left: -150px; top: 40px; border: 42px solid rgba(244, 185, 66, 0.1); border-radius: 50%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(400px, 0.97fr); align-items: center; gap: 64px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; color: var(--emerald-700); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { max-width: 680px; margin: 0; color: var(--navy-900); font-size: clamp(42px, 6vw, 67px); line-height: 1.02; letter-spacing: -3.5px; }
.hero-lead { max-width: 620px; margin: 24px 0 0; color: #536258; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 26px 0 0; padding: 0; color: #536258; list-style: none; font-size: 13px; }
.hero-proof span { color: var(--emerald-700); font-weight: 700; }

.hero-visual { position: relative; min-height: 520px; display: flex; align-items: flex-end; justify-content: center; }
.mascot-aura { position: absolute; width: 360px; height: 360px; top: 16px; right: 10px; border-radius: 50%; background: linear-gradient(145deg, var(--gold-100), var(--emerald-100)); }
.hero-mascot { position: absolute; z-index: 1; width: 260px; max-height: 390px; top: -18px; right: 38px; object-fit: contain; object-position: top; filter: drop-shadow(0 20px 25px rgba(11, 31, 58, 0.18)); }
.mission-card { position: relative; z-index: 2; width: min(100%, 400px); margin-right: auto; padding: 22px; border: 1px solid rgba(23, 107, 61, 0.16); border-radius: 24px; background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow-soft); }
.mission-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-kicker { color: var(--emerald-700); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.mission-card h2 { margin: 4px 0 0; color: var(--navy-900); font-size: 19px; letter-spacing: -0.4px; }
.time-badge { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: var(--emerald-100); color: var(--emerald-700); font-size: 11px; font-weight: 700; }
.mission-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 19px 0; }
.mission-numbers div { padding: 13px; border-radius: 15px; background: var(--neutral-100); }
.mission-numbers strong, .mission-numbers span { display: block; }
.mission-numbers strong { color: var(--navy-900); font-size: 23px; }
.mission-numbers span { color: var(--neutral-500); font-size: 12px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--neutral-500); font-size: 11px; }
.progress-label strong { color: var(--emerald-700); }
.progress-track { height: 9px; overflow: hidden; margin-bottom: 18px; border-radius: 999px; background: var(--neutral-200); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--emerald-600); }
.streak-chip { position: absolute; z-index: 3; right: 0; bottom: 52px; display: grid; grid-template-columns: auto auto; column-gap: 6px; padding: 11px 14px; border: 1px solid rgba(244, 185, 66, 0.55); border-radius: 16px; background: var(--cream-50); color: var(--navy-900); box-shadow: var(--shadow-card); }
.streak-chip > span:first-child { grid-row: 1 / 3; align-self: center; color: var(--gold-500); font-size: 20px; }
.streak-chip strong { font-size: 13px; }
.streak-chip > span:last-child { color: var(--neutral-500); font-size: 10px; }

.section { padding: 84px 0; }
.section-cream { background: var(--cream-50); }
.section-heading { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.section-heading h2, .final-cta h2 { margin: 0; color: var(--navy-900); font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -2px; }
.section-heading p { margin: 16px 0 0; color: #627066; line-height: 1.6; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { position: relative; min-height: 250px; padding: 25px; border: 1px solid rgba(11, 31, 58, 0.09); border-radius: 22px; background: rgba(255, 255, 255, 0.7); }
.step-number { position: absolute; top: 18px; right: 20px; color: rgba(11, 31, 58, 0.14); font-size: 28px; font-weight: 700; }
.step-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 32px; border-radius: 15px; background: var(--navy-900); color: var(--gold-500); font-size: 24px; }
.step-card h3 { margin: 0 0 9px; color: var(--navy-900); font-size: 19px; }
.step-card p { margin: 0; color: #617067; font-size: 14px; line-height: 1.65; }
.final-cta { background: var(--navy-900); }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.final-cta h2 { color: var(--white); max-width: 650px; }
.eyebrow-dark { color: #8ce2ad; }
.site-footer { padding: 25px 0; border-top: 1px solid var(--neutral-200); background: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-footer { font-size: 18px; }
.footer-inner p { margin: 0; color: var(--neutral-500); font-size: 12px; }

.onboarding-shell { min-height: 100vh; padding: 0 24px 50px; background: radial-gradient(circle at 50% 15%, rgba(223, 245, 231, 0.8), transparent 28%), var(--neutral-50); }
.onboarding-header { width: min(100%, 900px); min-height: 80px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.onboarding-step { color: var(--neutral-500); font-size: 12px; font-weight: 700; }
.back-arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--neutral-200); border-radius: 11px; background: var(--white); font-size: 18px; }
.onboarding-progress { width: min(100%, 900px); height: 7px; margin-inline: auto; overflow: hidden; border-radius: 999px; background: var(--neutral-200); }
.onboarding-progress span { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--emerald-600); }
.onboarding-content { width: min(100%, 610px); margin: 45px auto 0; text-align: center; }
.onboarding-flynn { width: 90px; height: 90px; margin: 0 auto 14px; overflow: hidden; border: 4px solid var(--gold-500); border-radius: 50%; background: var(--cream-50); }
.onboarding-flynn img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.25); transform-origin: 50% 35%; filter: drop-shadow(0 5px 5px rgba(11,31,58,.16)); }
.onboarding-content h1 { margin: 0; color: var(--navy-900); font-size: clamp(30px, 6vw, 43px); line-height: 1.1; letter-spacing: -2px; }
.onboarding-content > p { max-width: 520px; margin: 15px auto 26px; color: var(--neutral-500); line-height: 1.6; }
.choice-list { display: grid; gap: 10px; text-align: left; }
.choice-card { display: grid; grid-template-columns: 42px 1fr 28px; align-items: center; gap: 12px; min-height: 76px; padding: 13px 15px; border: 1px solid var(--neutral-200); border-radius: 17px; background: var(--white); cursor: pointer; transition: border 160ms ease, background 160ms ease, transform 160ms ease; }
.choice-card:hover { transform: translateY(-1px); border-color: rgba(23, 107, 61, 0.45); }
.choice-card:has(input:checked) { border-color: var(--emerald-700); background: #f0faf3; box-shadow: 0 0 0 1px var(--emerald-700); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-letter { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--neutral-100); color: var(--navy-900); font-weight: 700; }
.choice-card:has(input:checked) .choice-letter { background: var(--emerald-700); color: var(--white); }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { color: var(--navy-900); font-size: 14px; }
.choice-card small { margin-top: 3px; color: var(--neutral-500); font-size: 12px; }
.choice-check { color: transparent; font-weight: 700; }
.choice-card:has(input:checked) .choice-check { color: var(--emerald-700); }
.choice-list .button { margin-top: 10px; }
.plan-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 18px; text-align: left; }
.plan-summary div { min-height: 92px; padding: 15px; border: 1px solid var(--neutral-200); border-radius: 16px; background: var(--white); }
.plan-summary strong, .plan-summary span { display: block; }
.plan-summary strong { color: var(--navy-900); font-size: 18px; }
.plan-summary span { margin-top: 6px; color: var(--neutral-500); font-size: 11px; }
.coming-note { display: block; margin-top: 13px; color: var(--neutral-500); }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(circle at 50% 15%, var(--emerald-100), transparent 35%), var(--neutral-50); }
.auth-card { width: min(100%, 480px); padding: 32px; border: 1px solid var(--neutral-200); border-radius: 24px; background: var(--white); box-shadow: var(--shadow-soft); }
.auth-card > .brand { margin-bottom: 32px; }
.auth-card h1, .page-heading h1, .welcome-row h1, .summary-card h1 { margin: 0; color: var(--navy-900); font-size: clamp(30px, 5vw, 44px); letter-spacing: -2px; }
.auth-card > p, .page-heading p, .welcome-row p { color: var(--neutral-500); line-height: 1.6; }
.auth-form { display: grid; gap: 15px; margin-top: 24px; }
.form-field { display: grid; gap: 7px; color: var(--navy-900); font-size: 13px; font-weight: 700; }
.form-field input:not([type="checkbox"]) { width: 100%; height: 50px; padding: 0 13px; border: 1px solid var(--neutral-200); border-radius: 12px; background: var(--neutral-50); }
.form-field small { color: var(--neutral-500); font-weight: 400; line-height: 1.4; }
.form-field ul { margin: 0; padding-left: 18px; }
.checkbox-field { display: grid; grid-template-columns: 20px 1fr; align-items: start; }
.checkbox-field input { width: 18px; height: 18px; }
.field-error, .form-error { color: #a12d2d !important; }
.form-error { padding: 11px; border-radius: 10px; background: #fff0f0; }
.auth-switch { margin: 20px 0 0; text-align: center; font-size: 13px; }
.auth-switch a { color: var(--emerald-700); font-weight: 700; }

.app-layout { min-height: 100vh; padding-bottom: 120px; background: radial-gradient(circle at 85% 5%, rgba(223,245,231,.65), transparent 22%), var(--neutral-50); }
.app-header { display: flex; justify-content: space-between; align-items: center; width: min(100% - 32px, 1000px); min-height: 76px; margin: auto; }
.profile-link, .avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-900); color: var(--gold-500); text-decoration: none; font-weight: 700; }
.app-main { width: min(100% - 32px, 1000px); margin: 24px auto 0; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.streak-box { min-width: 150px; padding: 15px; border: 1px solid var(--gold-500); border-radius: 16px; background: var(--cream-50); }
.streak-box strong, .streak-box span { display: block; }
.streak-box strong { color: var(--navy-900); }.streak-box span { color: var(--neutral-500); font-size: 11px; }
.daily-card { position:relative;overflow:hidden;padding:28px;border-radius:25px;background:linear-gradient(145deg,var(--navy-900),var(--navy-800));color:var(--white);box-shadow:var(--shadow-soft); }
.daily-card::after { content:"";position:absolute;width:230px;height:230px;right:-90px;top:-110px;border:35px solid rgba(244,185,66,.09);border-radius:50%; }
.daily-copy { position:relative;z-index:2;max-width:68%; }
.daily-flynn-frame { position:absolute;z-index:1;width:170px;height:215px;right:2px;top:-4px;display:grid;place-items:end center;pointer-events:none; }
.daily-flynn { width:155px;height:200px;object-fit:contain;object-position:50% 100%;filter:drop-shadow(0 0 2px rgba(255,240,199,.9)) drop-shadow(0 14px 18px rgba(0,0,0,.28)); }
.daily-card h2 { margin: 6px 0; font-size: 28px; }.daily-card p { color: #c6d1cb; }
.daily-stats, .summary-stats, .stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 22px 0; }
.daily-stats div { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.08); }
.daily-stats strong, .daily-stats span, .summary-stats strong, .summary-stats span, .stat-grid strong, .stat-grid span { display: block; }
.daily-stats strong { font-size: 23px; }.daily-stats span { color: #bfc9c3; font-size: 11px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.mini-grid article, .settings-card, .word-list, .leaderboard { padding: 22px; border: 1px solid var(--neutral-200); border-radius: 20px; background: var(--white); }
.mini-grid h3 { color: var(--navy-900); }.mini-grid a { color: var(--emerald-700); font-size: 13px; font-weight: 700; }
.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; width: min(calc(100% - 24px), 600px); padding: 7px; border: 1px solid var(--neutral-200); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-soft); }
.bottom-nav a { flex:1;display:grid;place-items:center;gap:3px;padding:7px;border-radius:12px;color:var(--neutral-500);text-decoration:none;font-size:10px;font-weight:700; }.bottom-nav a span { font-size:20px;color:var(--emerald-700); }.bottom-nav a.active { background:var(--emerald-100);color:var(--emerald-700); }

.study-shell { min-height: 100vh; padding: 20px 16px 40px; background: radial-gradient(circle at 50% 10%, var(--emerald-100), transparent 30%), var(--neutral-50); }
.study-header { width: min(100%, 720px); margin: auto; display: grid; grid-template-columns: 42px 1fr 60px; align-items: center; gap: 12px; }
.study-header > a { display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--white);text-decoration:none;font-size:25px; }.study-header > div > span { font-size:11px;color:var(--neutral-500); }.study-header .progress-track { margin:5px 0 0; }.study-header > strong { color:var(--emerald-700);font-size:12px;text-align:right; }
.word-card, .quiz-card, .feedback-card { width: min(100%, 650px); margin: 55px auto 0; padding: 32px; border: 1px solid var(--neutral-200); border-radius: 25px; background: var(--white); box-shadow: var(--shadow-card); text-align: center; }
.word-card h1 { margin: 2px 0; color: var(--navy-900); font: 700 clamp(48px,10vw,72px) Atkinson Hyperlegible,sans-serif; }.word-card h2 { color: var(--emerald-700); }.word-type { color:var(--neutral-500);font-size:12px; }
blockquote { margin: 25px 0; padding: 18px; border-left: 4px solid var(--gold-500); border-radius: 12px; background: var(--cream-50); color: var(--navy-900); text-align:left; line-height:1.55; } blockquote small { display:block;margin-top:7px;color:var(--neutral-500); }
.study-actions { display:flex;justify-content:flex-end;gap:10px; }.study-actions form:last-child { flex:1; }.study-actions form:last-child button { width:100%; }
.quiz-card h1 { margin:4px 0 25px;color:var(--navy-900);font-size:clamp(28px,6vw,42px); }.quiz-card h1 strong { color:var(--emerald-700); }
.quiz-options { display:grid;gap:10px;text-align:left; }.quiz-options label { display:grid;grid-template-columns:42px 1fr;align-items:center;gap:10px;min-height:65px;padding:10px;border:1px solid var(--neutral-200);border-radius:15px;cursor:pointer; }.quiz-options input { position:absolute;opacity:0; }.quiz-options label:has(input:checked) { border-color:var(--emerald-700);box-shadow:0 0 0 1px var(--emerald-700);background:#f0faf3; }.option-key { display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:var(--neutral-100); }.quiz-options label:has(input:checked) .option-key { background:var(--emerald-700);color:white; }
.feedback-shell { display:grid;place-items:center; }.feedback-card { margin:auto; }.feedback-icon,.summary-badge { display:grid;place-items:center;width:65px;height:65px;margin:0 auto 18px;border-radius:50%;background:var(--emerald-100);color:var(--emerald-700);font-size:32px;font-weight:700; }.feedback-card.incorrect .feedback-icon { background:var(--gold-100);color:#8a5c00; }.feedback-card h1 {color:var(--navy-900);}
.summary-card { width:min(100%,650px);margin:45px auto;padding:34px;border-radius:25px;background:var(--white);box-shadow:var(--shadow-soft);text-align:center; }.summary-stats div,.stat-grid div { padding:17px;border-radius:15px;background:var(--neutral-100); }.summary-stats strong,.stat-grid strong { color:var(--navy-900);font-size:24px; }.summary-stats span,.stat-grid span { color:var(--neutral-500);font-size:11px; }
.page-heading { margin-bottom:22px; }.stat-grid { grid-template-columns:repeat(4,1fr); }.word-list h2,.settings-card h2 {color:var(--navy-900);}.word-list article {display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-top:1px solid var(--neutral-100);}.word-list article div strong,.word-list article div span {display:block}.word-list article div span{color:var(--neutral-500);font-size:12px}.state-pill{padding:6px 9px;border-radius:999px;background:var(--emerald-100);color:var(--emerald-700);font-size:10px;font-weight:700}.state-weak{background:var(--gold-100);color:#815800}
.leaderboard {display:grid;gap:5px}.leaderboard article{display:grid;grid-template-columns:30px 42px 1fr auto;align-items:center;gap:10px;padding:11px;border-radius:14px}.leaderboard article.is-me{background:var(--emerald-100)}.leaderboard small{display:block;color:var(--neutral-500)}.rank{color:var(--neutral-500);text-align:center}
.settings-card {max-width:600px}.settings-card form+form{margin-top:25px}
.empty-state { display:grid;grid-template-columns:115px 1fr;align-items:center;gap:18px;padding:12px 0; }.empty-state img {width:110px;height:130px;object-fit:cover;object-position:50% 5%;border-radius:18px;background:var(--cream-50)}.empty-state strong{color:var(--navy-900);font-size:17px}.empty-state p{color:var(--neutral-500);font-size:13px;line-height:1.5}.empty-state .button{font-size:12px}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .hero-visual { width: min(100%, 520px); margin-inline: auto; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1160px); }
  .header-inner { min-height: 66px; }
  .header-nav .nav-link, .header-nav .button-secondary { display: none; }
  .brand { font-size: 18px; }
  .brand img { width: 36px; height: 36px; }
  .hero { padding: 44px 0 58px; }
  .hero h1 { font-size: 42px; letter-spacing: -2.4px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 15px; }
  .hero-proof { display: grid; justify-content: start; text-align: left; margin-inline: auto; width: fit-content; }
  .hero-visual { min-height: 470px; }
  .mascot-aura { width: 285px; height: 285px; right: 0; }
  .hero-mascot { width: 210px; max-height: 315px; top: -6px; right: 18px; }
  .mission-card { align-self: flex-end; padding: 18px; }
  .streak-chip { right: -4px; bottom: 12px; }
  .section { padding: 58px 0; }
  .section-heading { text-align: left; }
  .final-cta-inner { flex-direction: column; align-items: flex-start; }
  .final-cta .button { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .onboarding-shell { padding-inline: 16px; }
  .onboarding-header { min-height: 68px; }
  .onboarding-header .brand > span:not(.back-arrow) { display: none; }
  .onboarding-content { margin-top: 30px; }
  .choice-card { grid-template-columns: 40px 1fr 20px; padding-inline: 12px; }
  .plan-summary { grid-template-columns: 1fr; }
  .plan-summary div { min-height: auto; }
  .auth-card { padding: 24px 18px; }
  .app-header, .app-main { width: min(100% - 24px, 1000px); }
  .welcome-row { align-items:flex-start; }.welcome-row p { margin-bottom:0; }.streak-box { min-width:105px; }
  .daily-card { padding:22px 18px; }.daily-copy {max-width:64%;min-height:145px}.daily-flynn-frame{width:138px;height:188px;right:-2px;top:-3px}.daily-flynn{width:128px;height:178px}.daily-card h2{font-size:26px}.daily-card p{font-size:12px}.daily-stats {position:relative;z-index:2;grid-template-columns:repeat(3,1fr);}.daily-stats div{padding:11px}.daily-card form{position:relative;z-index:2}
  .mini-grid { grid-template-columns:1fr; }.stat-grid { grid-template-columns:1fr 1fr; }
  .word-card,.quiz-card,.feedback-card { margin-top:28px;padding:24px 16px; }.study-actions { flex-direction:column-reverse; }.study-actions form,.study-actions button { width:100%; }
  .summary-stats { grid-template-columns:repeat(3,1fr); }.summary-card { margin-top:20px;padding:28px 16px; }
  .leaderboard {padding:10px}.leaderboard article{grid-template-columns:25px 38px 1fr auto;font-size:12px}.avatar{width:36px;height:36px}
  .empty-state{grid-template-columns:82px 1fr;gap:12px}.empty-state img{width:80px;height:105px}.empty-state .button{width:100%}
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
