/* Course home refinement: preserve the comic palette, put learning first. */
#view-home.view.on{display:flex;flex-direction:column;gap:0;max-width:1160px;margin:0 auto}
#view-home>.hero{order:0;min-height:330px;padding:38px 44px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;border-radius:24px;background-image:radial-gradient(#15110a0d 1px,transparent 1px);background-size:16px 16px}
#view-home>.hero h2{position:relative;z-index:2;font-size:clamp(30px,3.2vw,43px);line-height:1.14;letter-spacing:-.025em;max-width:680px}
#view-home>.hero p{position:relative;z-index:2;max-width:600px;margin-top:14px;font-size:16px;line-height:1.75;font-weight:650}
#view-home>.hero .chips{position:relative;z-index:2;margin-top:20px;max-width:670px;gap:8px}
#view-home>.hero .chip{transform:none;border-radius:999px;box-shadow:none;font-size:13px;padding:6px 12px;background:#fffdf4}
#view-home>.hero .cta{position:relative;z-index:2;margin-top:24px;min-height:52px;padding:12px 24px;transition:transform .16s ease,box-shadow .16s ease}
#view-home>.hero .cta:hover{transform:translate(-2px,-2px);box-shadow:7px 7px 0 var(--line)}
#view-home>.hero .cta:focus-visible,#view-home .continue .go:focus-visible,#view-home .course:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
#view-home>.hero .blob{right:-64px;top:-60px;width:240px;height:240px;opacity:.9}
#view-home>.hero .blob2{right:114px;bottom:-68px;width:122px;height:122px}
#view-home>.hero .burst{right:36px;top:28px;z-index:2;width:108px;height:108px}

/* The first screen now has a clear learning action and a compact progress row. */
#view-home>.stats{order:1;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:28px}
#view-home>.stats .stat{min-width:0;min-height:86px;padding:15px 17px;transform:none;box-shadow:3px 3px 0 rgba(21,17,10,.85)}
#view-home>.stats .stat b{display:block;font-size:24px;letter-spacing:-.025em}
#view-home>.stats .stat span{display:block;margin-top:3px;font-size:13px;line-height:1.35}
#view-home>.cols{order:2;grid-template-columns:minmax(0,1fr) 290px;gap:26px;margin-top:36px;align-items:start}
#view-home .sec-h{margin:0 0 14px}
#view-home .sec-h h3{font-size:22px;letter-spacing:-.02em}
#view-home .continue{min-height:124px;padding:22px;gap:18px;border-radius:20px;background:#fff}
#view-home .continue .thumb{width:70px;height:70px;font-size:28px}
#view-home .continue h4{font-size:19px;line-height:1.3}
#view-home .continue p{font-size:14px;line-height:1.5}
#view-home .continue .go{min-height:44px;white-space:nowrap}
#view-home .grid{gap:14px}
#view-home .course{min-width:0;min-height:184px;display:flex;flex-direction:column;border-radius:18px;transition:transform .16s ease,box-shadow .16s ease}
#view-home .course:hover{transform:translateY(-3px);box-shadow:5px 7px 0 var(--line)}
#view-home .course .top{width:46px;height:46px;margin-bottom:11px}
#view-home .course h4{font-size:16px;line-height:1.35}
#view-home .course p{font-size:13px;line-height:1.5;min-height:0}
#view-home .course .row{margin-top:auto;padding-top:14px}
#view-home .rail-card{padding:20px;border-radius:18px;margin-bottom:18px}

/* Lore is editorial supporting content, not the gate before the courses. */
#view-home>.synopsis{order:3;width:100%;max-width:none;margin:50px 0 0;padding:28px 34px;box-shadow:3px 3px 0 rgba(21,17,10,.8)}
#view-home>.characters{order:4;width:100%;max-width:none;margin:22px 0 0;padding:28px 34px;box-shadow:3px 3px 0 rgba(21,17,10,.8)}
#view-home .sec-title{font-size:22px;margin-bottom:17px}
#view-home .syn-para{max-width:78ch;font-size:14px;line-height:1.85;color:#554e41}
#view-home .char-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
#view-home .char-card{box-shadow:none;background:#fffefa}

/* Continue the same hierarchy on the curriculum overview. */
#view-courses .lead{max-width:100%;margin-bottom:34px}
#view-courses .sec-h{padding-bottom:9px;border-bottom:2px solid rgba(21,17,10,.16)}
#view-courses .sec-h h3{letter-spacing:-.02em}

@media(max-width:1050px){
  #view-home>.cols{grid-template-columns:minmax(0,1fr) 250px;gap:18px}
  #view-home .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  #view-home>.hero{min-height:0;padding:30px 24px 28px}
  #view-home>.hero h2{font-size:29px;max-width:calc(100% - 64px)}
  #view-home>.hero p{font-size:14px;line-height:1.65}
  #view-home>.hero .burst{right:3px;top:8px;transform:scale(.62);transform-origin:top right}
  #view-home>.hero .blob,#view-home>.hero .blob2{opacity:.27}
  #view-home>.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:18px}
  #view-home>.stats .stat{padding:11px;min-height:76px;gap:7px}
  #view-home>.stats .stat .ic{width:34px;height:34px}
  #view-home>.stats .stat b{font-size:18px}
  #view-home>.stats .stat span{font-size:11px}
  #view-home>.cols{grid-template-columns:1fr;gap:22px;margin-top:28px}
  #view-home>.synopsis{margin-top:32px;padding:22px}
  #view-home>.characters{padding:22px}
}
@media(max-width:500px){
  #view-home>.hero h2{font-size:26px}
  #view-home>.hero .chip{font-size:11px;padding:5px 9px}
  #view-home>.stats{grid-template-columns:1fr;gap:8px}
  #view-home>.stats .stat{min-height:58px}
  #view-home>.stats .stat b{font-size:19px}
  #view-home .continue{flex-wrap:wrap;padding:17px}
  #view-home .continue .go{width:100%;margin-left:0}
  #view-home .grid{grid-template-columns:1fr}
  #view-home .course{min-height:0}
}
@media(prefers-reduced-motion:reduce){#view-home>.hero .cta,#view-home .course{transition:none}}
