/* N5 Step: moonlit ink, warm paper and a quiet sakura breeze. */
:root{color-scheme:dark;--paper:#101719;--cream:#1a2324;--ink:#f1eee6;--muted:#bac6bd;--green:#92b5a0;--deep:#b9d4c1;--border:#344344}
body{background:var(--paper);color:var(--ink)}
.topbar{background:rgba(16,23,25,.97);border-bottom-color:#344344}
.brand{color:#f4eee3}.brand span{background:#b4cdbb;color:#14241b}
.topbar nav a{color:#e9eee6}.top-export{background:#202c2c;border-color:#647d6d;color:#f3f4ed}
.top-export:hover{background:#30413c}.skip{background:#f1eee6;color:#17221b}
.eyebrow,.intro h1{color:#b5d0b8}.intro .eyebrow span{background:#9bbb9f}.hero-title{color:#f2eee6}.hero-title em,.section h2 em{color:#a7c6aa}
.hero-copy,.overview-head p:last-child,.study-head p:last-child{color:#c4cec2}.scroll-note{color:#b5c6b5}.text-link{color:#e8efe4}
.primary{background:#b8d2bc;color:#142a1b}.primary:hover{background:#d1e5d3;color:#10251a}
.hero-art{background:#1d2c2b;border:1px solid #415450;isolation:isolate}.hero-art:before{display:none}
.art-top,.art-bottom{color:#cedccf;z-index:2}.art-word{color:#f1eee6;z-index:2;text-shadow:0 2px 18px #142120}.art-word span{color:#f0aa9f}
.sakura-scene{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.sakura-moon{position:absolute;right:11%;top:13%;width:clamp(105px,15vw,168px);aspect-ratio:1;border-radius:50%;background:#c8d4ba;opacity:.22;box-shadow:0 0 48px #c8d4ba28;animation:moon-breathe 9s ease-in-out infinite alternate}
.sakura-branch{position:absolute;top:0;right:0;width:95%;height:52%;overflow:visible;transform-origin:100% 0;animation:branch-sway 8s ease-in-out infinite alternate}
.sakura-branch path{fill:none;stroke:#b1b8a2;stroke-width:2.8;opacity:.62;stroke-linecap:round}.sakura-blossoms{fill:#e6b8b2;opacity:.9}
.sakura-petal{position:absolute;top:-7%;width:9px;height:14px;border-radius:80% 10% 80% 15%;background:#e5b0a9;opacity:0;animation:petal-fall 12s linear infinite}
.sakura-petal:nth-of-type(1){left:12%;animation-duration:13s;animation-delay:-2s}.sakura-petal:nth-of-type(2){left:25%;animation-duration:15s;animation-delay:-7s;scale:.7}.sakura-petal:nth-of-type(3){left:38%;animation-duration:11s;animation-delay:-5s;scale:.85}.sakura-petal:nth-of-type(4){left:52%;animation-duration:14s;animation-delay:-10s}.sakura-petal:nth-of-type(5){left:66%;animation-duration:13.5s;animation-delay:-3s;scale:.65}.sakura-petal:nth-of-type(6){left:77%;animation-duration:16s;animation-delay:-12s}.sakura-petal:nth-of-type(7){left:86%;animation-duration:12s;animation-delay:-8s;scale:.75}.sakura-petal:nth-of-type(8){left:95%;animation-duration:17s;animation-delay:-4s;scale:.9}
@keyframes petal-fall{0%{opacity:0;transform:translate(0,-20px) rotate(0)}10%{opacity:.85}50%{transform:translate(-30px,225px) rotate(175deg)}90%{opacity:.8}100%{opacity:0;transform:translate(18px,500px) rotate(365deg)}}
@keyframes branch-sway{from{transform:rotate(-1deg)}to{transform:rotate(1deg)}}@keyframes moon-breathe{from{opacity:.18}to{opacity:.3}}
.section-label{border-color:#53675b;color:#c0d0bf}.section-label span,.topic-num{color:#9cb19d}.topic-link,.topic-links{border-color:#3a4a45}.topic-link:hover .topic-name{color:#bad7be}.topic-meta,.overview-foot{color:#b4c9b4}.source-heading{border-color:#647d6c}.source-heading p,.lesson-heading span{color:#b8c9b7}
.study-card{background:#1a2324;border-color:#40514a;box-shadow:0 9px 30px #050a0a25}.card-top{color:#cfddcd}.card-top span:first-child{background:#293c32;color:#d3e9d2}.jp{color:#f0f1e9}.reading{color:#b8d1b8}.listen{background:#253b31;color:#d9edda;border-color:#66866d}.listen:hover{background:#355345}.meaning,.extra{border-color:#3a4b43}.meaning-label,.extra-label{color:#bed3ba}.meaning-text,.extra{color:#f0f1e9}.known{color:#d6e8d2;border-color:#698370}.known:hover{background:#2c4032}.known[aria-pressed=true]{background:#375b41;color:#f0fbeb;border-color:#91b495}.example-listen{color:#c2e0c1}.status{color:#efc3a9}.error{background:#49302c;color:#fce2da}.footer{color:#b0c4b0;border-color:#3b4b43}
@media(prefers-reduced-motion:reduce){.sakura-petal,.sakura-moon,.sakura-branch{animation:none!important}.sakura-petal{display:none}.sakura-moon{opacity:.23}}
