/* Landing page styles are scoped so the quiz keeps its existing layout. */
body { background: radial-gradient(ellipse at 6% 4%, #cef4ff 0, transparent 47%), radial-gradient(ellipse at 100% 15%, #ddd0ff 0, transparent 50%), linear-gradient(125deg,#eaf5ff,#f7f5ff); background-attachment: fixed; }
#appStart { width:100%; max-width:940px; padding:0; color:#080d48; font-family:Arial,Helvetica,sans-serif; }
#appStart button { font-family:inherit; cursor:pointer; }
#appStart :focus-visible { outline:3px solid #146dff; outline-offset:4px; }
.home-header { display:flex; align-items:center; justify-content:space-between; padding:0 24px; }
.home-brand img { width:128px; height:126px; object-fit:contain; }
.home-tagline { color:#667797; font-size:15px; }
.home-hero { position:relative; min-height:248px; padding:32px 24px 26px; overflow:hidden; }
.hero-copy { position:relative; z-index:1; width:62%; }
.hero-copy h1 { font-size:clamp(30px,4.6vw,48px); font-weight:800; letter-spacing:-1.5px; line-height:1.12; margin:0 0 17px; }
.hero-copy p { color:#566783; font-size:clamp(17px,2.6vw,25px); line-height:1.35; margin:0; }
.hero-character { position:absolute; width:360px; height:360px; object-fit:contain; right:0; top:0; }
.home-panel { position:relative; padding:26px; border:1px solid #ffffffb5; border-radius:40px; background:#ffffffa8; box-shadow:0 18px 60px #a1b8e51a; }
#appStart .section { margin:0; }
#appStart .section > .section-title { display:none; }
#appStart .lesson-picker { border:2px solid #bfd4f6; border-radius:22px; background:#ffffffb8; box-shadow:none; margin:0 0 30px; }
#appStart .lesson-picker summary { padding:17px 25px; justify-content:flex-start; gap:18px; font-size:23px; font-weight:400; color:#657b9d; }
#appStart .lesson-picker summary > span { font-size:37px; line-height:1; color:#0066d9; }
#appStart .lesson-picker summary::after { margin-left:auto; color:#0756ab; }
.lesson-picker-options { max-height:320px; overflow:auto; }
.lesson-filter-option { padding:6px 0; }
.quick-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.quick-heading h2 { margin:0; font-size:26px; font-weight:700; }
.text-action { color:#006bfa; background:transparent; border:0; font-size:18px; font-weight:700; white-space:nowrap; }
.quick-lessons { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; margin-bottom:26px; }
.quick-lessons button { min-height:118px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:12px 6px; border:2px solid transparent; border-radius:21px; background:#ffffffc9; color:#536687; font-size:17px; font-weight:600; box-shadow:0 8px 20px #718ee510; }
.quick-lessons button > span { font-size:40px; line-height:1.3; }
.quick-lessons button:hover { background:#eef0ff; }
.quick-lessons button[aria-pressed="true"] { color:#6020ff; border-color:#7461ff; background:linear-gradient(130deg,#e0edff,#eee0ff); }
.selected-lesson { display:flex; align-items:center; gap:22px; padding:23px; border:2px solid white; border-radius:24px; background:#ffffffb0; margin-bottom:16px; }
.selected-icon { display:grid; place-items:center; flex:0 0 65px; height:65px; border-radius:16px; color:white; font-size:42px; background:linear-gradient(140deg,#a161ff,#6222ff); box-shadow:0 8px 18px #814bff30; }
.selected-lesson > div { min-width:0; flex:1; color:#6e83a7; font-size:18px; }
.selected-lesson strong { display:block; color:#080d48; font-size:26px; line-height:1.3; overflow-wrap:anywhere; margin-top:2px; }
.selected-lesson .text-action { border-radius:17px; background:#eaf0fc; padding:19px; }
#appStart .lesson-grid { grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:12px; margin:0; }
#appStart .lesson-card { padding:12px; border:2px solid #fff; border-radius:18px; background:#f1f5ff; color:#536687; box-shadow:none; margin-bottom:16px; }
#appStart .lesson-card.active { border-color:#8570ff; background:#eee9ff; }
#appStart .lesson-card .icon { display:none; }
#appStart .lesson-card .label { font-size:16px; margin:0; padding:4px 12px; overflow-wrap:anywhere; }
#appStart .check-lesson { width:18px; height:18px; top:2px; right:2px; color:#6530e8; }
#appStart .unit-btn { color:#17397e; }
#appStart .unit-btn.active { outline:2px solid #7854ff; }
#appStart .home-panel > .section:nth-of-type(2) { padding:23px; border:2px solid white; border-radius:24px; background:#ffffffa8; margin-bottom:24px; }
.count-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#appStart .count-heading .section-title { color:#080d48; font-size:26px; margin:0; padding:0; }
#estimatedTime { color:#6b80a3; font-size:18px; }
#appStart .count-wrap { gap:0; margin:20px auto 0; width:max-content; border-radius:60px; background:#eaf0fc90; }
#appStart .count-btn { width:74px; height:74px; background:#f7faff; border:4px solid white; color:#0068ed; font-size:36px; box-shadow:0 8px 20px #8aace31a; }
#appStart .count-value { min-width:200px; font-size:50px; color:#080d48; }
#appStart .start-btn { margin:0; border:0; border-radius:19px; min-height:92px; background:linear-gradient(105deg,#00c3e8,#008aff 54%,#6413ff); font-size:35px; box-shadow:0 18px 28px #7269dd30; }
#appStart .start-btn::before { content:'▶'; margin-right:24px; }
#appStart .share-btn { display:block; width:53%; margin:26px auto 0; min-height:59px; border:2px solid #89b7ff; border-radius:14px; color:#0073ff; background:transparent; font-size:21px; }
#appStart .share-btn:hover { background:#e9f2ff; }
#appStart .share-status { min-height:0; margin-top:0; }
#appStart .share-status:not(:empty) { margin-top:12px; }
#appStart .summary { display:none; }
.home-benefits { display:flex; justify-content:space-around; margin:36px 0; color:#566888; }
.home-benefits > span { display:flex; align-items:center; gap:20px; font-size:20px; font-weight:600; line-height:1.35; padding:0 20px; }
.home-benefits > span + span { border-left:1px solid #ccd7fa; }
.home-benefits b { font-size:44px; color:#8a36ff; }
.home-benefits > span:last-child b { color:#00bd89; }
.home-footer { display:flex; justify-content:center; gap:28px; flex-wrap:wrap; border-top:1px solid #ccd7f3; padding:24px 0 12px; color:#7084aa; font-size:16px; }
.home-footer a:hover { color:#006bfa; }
@media(max-width:640px) {
 body { padding:16px 12px !important; }
 .home-header { padding:0 7px; }.home-brand img { width:90px; height:90px; }.home-tagline { font-size:11px; }
 .home-hero { min-height:207px; padding:23px 7px 22px; }.hero-copy { width:68%; }.hero-copy h1 { font-size:29px; letter-spacing:-.8px; }.hero-copy p { font-size:15px; max-width:220px; }.hero-copy p br { display:none; }.hero-character { width:215px; height:240px; right:-48px; top:16px; }
 .home-panel { padding:16px; border-radius:26px; }
 #appStart .lesson-picker { border-radius:15px; margin-bottom:22px; }#appStart .lesson-picker summary { font-size:16px; padding:12px; gap:10px; }#appStart .lesson-picker summary > span { font-size:28px; }
 .quick-heading h2 { font-size:21px; }.text-action { font-size:14px; }.quick-lessons { display:flex; overflow-x:auto; gap:10px; padding-bottom:5px; margin-bottom:16px; }.quick-lessons button { flex:0 0 92px; min-height:98px; font-size:13px; border-radius:17px; }.quick-lessons button > span { font-size:32px; }
 .selected-lesson { gap:12px; padding:14px 10px; border-radius:19px; }.selected-icon { flex-basis:43px; height:46px; font-size:30px; border-radius:12px; }.selected-lesson > div { font-size:13px; }.selected-lesson strong { font-size:19px; }.selected-lesson .text-action { padding:12px 8px; font-size:12px; }
 #appStart .home-panel > .section:nth-of-type(2) { padding:16px 12px; border-radius:19px; margin-bottom:18px; }#appStart .count-heading .section-title { font-size:21px; }#estimatedTime { font-size:12px; }#appStart .count-btn { width:57px; height:57px; font-size:28px; }#appStart .count-value { min-width:120px; font-size:39px; }
 #appStart .start-btn { min-height:67px; padding:14px; font-size:25px; border-radius:15px; }#appStart .start-btn::before { margin-right:14px; }#appStart .share-btn { width:80%; min-height:47px; font-size:16px; margin-top:20px; }
 .home-benefits { margin:26px 0; }.home-benefits > span { gap:8px; padding:0 9px; font-size:12px; }.home-benefits b { font-size:27px; }.home-footer { font-size:12px; gap:12px; padding-top:18px; }
}
@media(prefers-reduced-motion:reduce) { #appStart * { transition:none; } }
html { min-height:100%; background:#edf2ff; }
body.min-h-screen { background-image:radial-gradient(ellipse at 6% 4%,#cef4ff 0,transparent 47%),radial-gradient(ellipse at 100% 15%,#ddd0ff 0,transparent 50%),linear-gradient(125deg,#eaf5ff,#f7f5ff); }
.quick-lessons svg { display:block; width:44px; height:44px; }
#appStart .share-btn svg { display:inline-block; width:27px; height:27px; vertical-align:middle; margin-right:8px; }
.home-benefits svg { width:44px; height:44px; }
@media(max-width:640px) { .selected-icon svg { width:30px; height:30px; }.home-benefits svg { width:27px; height:27px; } }
/* One persistent search field; options float above the page without reflow. */
.hero-character { width:180px; height:180px; top:auto; bottom:0; right:32px; }
.lesson-search-shell { position:relative; display:flex; align-items:center; border:2px solid #bfd4f6; border-radius:22px; background:#ffffffc9; margin-bottom:30px; }
.search-symbol { position:absolute; left:24px; color:#0066d9; font-size:33px; pointer-events:none; }
#appStart .lesson-search { border:0; border-radius:20px; background:transparent; padding:20px 58px 20px 65px; font-size:23px; }
#appStart .lesson-picker { position:static; border:0; margin:0; background:transparent; overflow:visible; }
#appStart .lesson-picker summary { position:absolute; top:0; right:0; bottom:0; width:52px; padding:0; justify-content:center; border-radius:0 20px 20px 0; }
#appStart .lesson-picker summary::after { margin:0; }
#appStart .lesson-picker-options { position:absolute; top:calc(100% + 9px); left:0; right:0; z-index:20; max-height:min(320px,45vh); overflow-y:auto; overscroll-behavior:contain; padding:14px 20px; border:1px solid #c6d7f5; border-radius:18px; background:#fff; box-shadow:0 16px 35px #374b7f30; }
@media(max-width:640px) {
 .hero-character { width:107.5px; height:120px; right:4px; top:auto; bottom:10px; }
 .lesson-search-shell { border-radius:15px; margin-bottom:22px; }
 #appStart .lesson-search { padding:16px 40px 16px 38px; font-size:15px; border-radius:13px; }
 .search-symbol { left:12px; font-size:27px; }
 #appStart .lesson-picker summary { width:36px; padding:0; }
}
/* Compact opening screen: keep the main controls visible without scrolling. */
body.min-h-screen { padding:12px 16px; }
#appStart { max-width:820px; }
.home-header { padding:0 12px; }
.home-brand img { width:76px; height:74px; }
.home-tagline { font-size:13px; }
.home-hero { min-height:135px; padding:12px 12px 18px; display:flex; align-items:center; justify-content:space-between; }
.hero-copy { width:72%; }
.hero-copy h1 { font-size:34px; line-height:1.08; margin-bottom:10px; }
.hero-copy p { font-size:17px; }
.hero-character { position:static; width:145px; height:135px; flex-shrink:0; object-fit:contain; align-self:center; }
.home-panel { padding:16px 20px; border-radius:27px; }
.lesson-search-shell { margin-bottom:14px; border-radius:16px; }
#appStart .lesson-search { padding:12px 52px 12px 52px; font-size:17px; }
.search-symbol { left:18px; font-size:28px; }
.quick-heading { margin-bottom:9px; }
.quick-heading h2 { font-size:21px; }
.text-action { font-size:15px; }
.quick-lessons { gap:12px; margin-bottom:12px; }
.quick-lessons button { min-height:78px; padding:8px 5px; gap:4px; font-size:14px; border-radius:16px; }
.quick-lessons svg { width:32px; height:32px; }
.selected-lesson { padding:10px 14px; gap:14px; margin-bottom:10px; border-radius:17px; }
.selected-icon { flex-basis:44px; height:44px; border-radius:12px; }
.selected-icon svg { width:30px; height:30px; }
.selected-lesson > div { font-size:13px; }
.selected-lesson strong { font-size:20px; }
.selected-lesson .text-action { padding:12px; font-size:14px; }
#appStart .home-panel > .section:nth-of-type(2) { padding:12px 16px; margin-bottom:13px; border-radius:18px; }
#appStart .count-heading .section-title { font-size:21px; }
#estimatedTime { font-size:14px; }
#appStart .count-wrap { margin-top:8px; }
#appStart .count-btn { width:49px; height:49px; font-size:27px; border-width:3px; }
#appStart .count-value { min-width:140px; font-size:36px; }
#appStart .start-btn { min-height:57px; padding:12px; font-size:25px; border-radius:14px; }
#appStart .share-btn { min-height:41px; margin-top:13px; padding:7px 12px; font-size:16px; border-radius:11px; }
.home-benefits { margin:17px 0; }
.home-benefits > span { font-size:14px; gap:12px; }
.home-benefits b { font-size:30px; }
.home-benefits svg { width:30px; height:30px; }
.home-footer { padding:12px 0 0; font-size:12px; gap:20px; }
#appStart .lesson-card { padding:7px; margin-bottom:10px; }
#appStart .lesson-card .label { font-size:14px; }
#appStart .lesson-card .units-inside { margin-top:5px; }
@media(max-width:640px) {
 body.min-h-screen { padding:8px 10px !important; }
 .home-header { padding:0 4px; }.home-brand img { width:58px; height:57px; }.home-tagline { font-size:10px; }
 .home-hero { min-height:124px; padding:8px 4px 12px; gap:4px; }.hero-copy { width:auto; flex:1; min-width:0; }.hero-copy h1 { font-size:25px; letter-spacing:-.6px; margin-bottom:8px; }.hero-copy p { font-size:12px; line-height:1.3; max-width:235px; }.hero-character { width:100px; height:108px; }
 .home-panel { padding:12px; border-radius:21px; }.lesson-search-shell { margin-bottom:12px; border-radius:13px; }#appStart .lesson-search { font-size:14px; padding:11px 34px 11px 33px; }.search-symbol { left:10px; font-size:24px; }
 .quick-heading { margin-bottom:8px; }.quick-heading h2 { font-size:18px; }.text-action { font-size:12px; }.quick-lessons { gap:8px; margin-bottom:10px; padding-bottom:2px; }.quick-lessons button { flex-basis:76px; min-height:69px; padding:7px 4px; font-size:11px; border-radius:13px; }.quick-lessons svg { width:28px; height:28px; }
 .selected-lesson { padding:8px; gap:9px; margin-bottom:9px; border-radius:14px; }.selected-icon { flex-basis:34px; height:36px; border-radius:10px; }.selected-icon svg { width:25px; height:25px; }.selected-lesson > div { font-size:11px; }.selected-lesson strong { font-size:16px; }.selected-lesson .text-action { padding:9px 7px; font-size:11px; }
 #appStart .home-panel > .section:nth-of-type(2) { padding:9px 11px; margin-bottom:10px; border-radius:15px; }#appStart .count-heading .section-title { font-size:18px; }#estimatedTime { font-size:11px; }#appStart .count-wrap { margin-top:6px; }#appStart .count-btn { width:43px; height:43px; font-size:25px; }#appStart .count-value { min-width:104px; font-size:31px; }
 #appStart .start-btn { min-height:49px; padding:10px; font-size:22px; border-radius:12px; }#appStart .share-btn { min-height:36px; margin-top:10px; padding:5px 10px; font-size:14px; }#appStart .share-btn svg { width:22px; height:22px; }
 .home-benefits { margin:13px 0; }.home-benefits > span { font-size:11px; gap:7px; padding:0 8px; }.home-benefits b { font-size:24px; }.home-benefits svg { width:24px; height:24px; }.home-footer { font-size:10px; gap:12px; padding-top:10px; }
}
@media(min-width:641px) and (max-height:800px) {
 .home-brand img { width:58px; height:57px; }.home-hero { min-height:110px; padding-top:4px; padding-bottom:9px; }.hero-character { width:116px; height:110px; }.hero-copy h1 { font-size:29px; }.hero-copy p { font-size:15px; }
 .home-panel { padding:12px 18px; }.quick-lessons button { min-height:66px; }.quick-lessons svg { width:27px; height:27px; }.home-benefits { margin:12px 0; }
}
.quick-lessons button > span { font-size:inherit; line-height:1; }
#appStart .home-panel > .section:nth-of-type(2) { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.count-heading { flex-direction:column; align-items:flex-start; gap:3px; }
#appStart .count-wrap { margin:0; }
.home-benefits br { display:none; }
.home-benefits > span { white-space:pre-line; }
@media(max-width:640px) {
 #appStart .count-value { min-width:62px; font-size:29px; }
 #appStart .count-btn { width:39px; height:39px; }
 #appStart .count-heading .section-title { font-size:16px; }
 .home-benefits > span { font-size:10px; gap:5px; padding:0 5px; }
 .home-benefits { margin:10px 0; }
}
@media(max-width:640px) and (max-height:740px) {
 .home-brand img { width:45px; height:44px; }
 .home-hero { min-height:105px; padding:5px 4px 9px; }
 .hero-copy h1 { font-size:22px; margin-bottom:6px; }
 .hero-copy p { font-size:11px; }
 .hero-character { width:85px; height:96px; }
 .home-panel { padding:10px; }
 .quick-lessons button { min-height:61px; }
 .home-footer { padding-top:7px; }
}
