@font-face{font-family:Manjari;src:url(assets/Manjari-Regular.woff2)}@font-face{font-family:Fredoka;src:url(assets/Fredoka.woff2)}*{box-sizing:border-box}body{margin:0;background:#f9f1db;color:#30302f;font:22px/1.4 Manjari,Arial,sans-serif}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;min-height:48px;border:1.5px solid #30302f;border-radius:22px;background:#fffaf0;padding:10px 14px}button:focus-visible{outline:3px solid #30302f;outline-offset:4px}header{height:56px;position:relative;background:#ff585e;border-radius:0 0 18px 18px;display:flex;align-items:center;justify-content:space-between;padding:5px 12px}header nav{display:flex;gap:8px}header button{font:21px Fredoka;min-height:42px;width:42px;padding:4px;background:#fffaf0}header img{position:absolute;width:67px;left:50%;transform:translateX(-50%)}main{max-width:660px;margin:auto;padding:15px 18px 22px;display:flex;flex-direction:column;gap:12px;min-height:calc(100svh - 56px)}.meta{font-size:17px;color:#655d50;display:flex;justify-content:space-between;align-items:center;gap:10px}.meta button{font-size:17px;padding:5px 12px;min-height:42px}h1{font-size:29px;line-height:1.2;font-weight:400;margin:0}p{margin:0;font-size:23px;line-height:1.42}.scene{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:#eadcbd;border-radius:24px;box-shadow:0 4px 16px #49391a12;flex:none}.scene img{width:100%;height:100%;display:block;object-fit:contain;background:#eadcbd}.scene .missing{width:100%;height:100%;background:#eadcbd;display:flex;align-items:center;justify-content:center;font-size:18px;padding:30px;text-align:center}.actions{display:flex;flex-direction:column;gap:9px}.actions button{font-size:22px;line-height:1.3;min-height:60px}.primary{background:#30302f;color:#fffaf0;border-color:#30302f}.choice{text-align:left;background:#fffaf0}.reply{padding:14px 17px;border:1.5px solid #30302f;background:#fffaf0;border-radius:20px;line-height:1.4}.reply.good{background:#d7ead9}.reply.retry{background:#f7e9c7}.bottom{display:flex;justify-content:center;gap:10px;margin-top:auto;padding-top:4px}.bottom button{font-size:19px;flex:1;max-width:230px}.stepdots{display:flex;gap:5px;justify-content:center}.stepdots i{height:5px;width:20px;border-radius:4px;background:#30302f25}.stepdots i.on{background:#30302f}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grid button{text-align:left;padding:0;overflow:hidden;border:0;background:#fffaf0;box-shadow:0 2px 0 #30302f}.grid img{width:100%;display:block;aspect-ratio:4/3;object-fit:cover}.grid span{display:block;font-size:21px;padding:10px 12px;line-height:1.3}.grid small{font-size:15px;display:block;color:#655d50}.complete-title{text-align:center;padding:15px 0}.landing-title{text-align:center;font-size:42px;line-height:1.3}.landing-title span:nth-child(odd){color:#ff585e}.landing-title span:nth-child(even){color:#378b78}.landing-title span:nth-child(3n){color:#8b68bd}.landing-art{max-width:280px;align-self:center;width:70%;border-radius:50%;aspect-ratio:1;object-fit:cover}.landing-text{text-align:center;font-size:23px}.landing-start{align-self:center;min-width:180px}.passed{color:#287046}.footer{font-size:16px;text-align:center;color:#655d50}::-webkit-scrollbar{display:none}html{scrollbar-width:none}@media(max-height:620px){header{height:50px}main{padding:10px 16px;gap:9px;min-height:calc(100svh - 50px)}h1{font-size:25px}p{font-size:21px}.meta{font-size:16px}.scene{border-radius:21px}.actions button{font-size:21px;min-height:54px}.bottom button{font-size:18px}.reply{font-size:21px;padding:12px}.landing-title{font-size:35px}.landing-art{width:55%}}@media(min-width:700px){main{padding:25px;gap:17px}.scene{max-height:420px;aspect-ratio:4/3}.actions{width:100%;max-width:500px;align-self:center}h1{font-size:36px}p{font-size:26px}.grid{grid-template-columns:repeat(3,1fr)}}@media(prefers-reduced-motion:no-preference){.choice:active,.primary:active{transform:translateY(2px)}.scene img{animation:arrive .35s ease-out}@keyframes arrive{from{opacity:.5;transform:scale(1.02)}to{opacity:1;transform:scale(1)}}}
@media(max-width:350px){main{gap:7px;padding:8px 13px 12px}h1{font-size:23px;line-height:1.16}p{font-size:20px;line-height:1.32}.actions{gap:7px}.actions button{font-size:20px;min-height:48px;padding:8px 12px}.reply{font-size:20px;line-height:1.3;padding:10px 12px}.bottom button{font-size:17px;padding:8px;min-height:46px}.meta{font-size:15px}.meta button{min-height:38px;padding:3px 10px;font-size:16px}}
header{height:58px;padding:8px 12px;border-radius:0 0 14px 14px}header nav{gap:12px}header nav button{width:auto;height:32px;min-height:32px;font:600 14px Fredoka,Arial;border:0;border-radius:12px;padding:0 12px}header img{width:auto;height:32px}header #sound{width:32px;height:32px;min-height:32px;border:0;font-size:20px}.landing-title .wm{font-size:35px;padding:20px 12px;min-height:145px;max-width:480px;line-height:1.1}.landing-title .wm-l{-webkit-text-stroke:2px #30302f;text-shadow:0 3px #30302f}.landing-title{margin:0}.landing-art{width:125px;height:125px;border-radius:0;object-fit:cover}.landing-text{font-size:20px;max-width:400px;align-self:center}.landing-start{margin-top:0}.landing-small{font-size:17px;text-align:center}@media(max-width:360px){header nav{gap:8px}header nav button{font-size:12px;padding:0 6px}header img{height:24px}.landing-title .wm{font-size:29px;min-height:94px;padding:12px}.landing-art{width:85px;height:85px}.landing-text{font-size:17px}}
main{min-height:calc(100svh - 58px)}

.grid img{aspect-ratio:16/9}.grid span{font-size:19px;padding:8px 10px}.grid small{font-size:14px}.grid{gap:10px}@media(max-width:350px){.grid span{font-size:17px}.grid img{aspect-ratio:2/1}.grid{gap:8px}}/* Malayalam labels must wrap inside cards, including long unspaced words. */
.grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.grid button{min-width:0}.grid span{min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal}.grid small{overflow-wrap:normal}
/* Visual review has no audio yet. Do not present an active sound control. */
header #sound{visibility:hidden;pointer-events:none}
@media(max-width:350px){.grid span{font-size:16px;line-height:1.3;padding:6px 8px}.grid img{aspect-ratio:2.4/1}}
.vehicle-options{display:flex;gap:8px;justify-content:center}.vehicle-options button{font-size:18px;min-height:38px;padding:4px 14px}
/* One complete slide per lesson. Long slides scroll rather than split or lose text. */
.lessontext{font-size:22px;line-height:1.4}.scene{height:180px;aspect-ratio:auto}.bottom{margin-top:8px}.grid img{object-position:center}
@media(max-width:350px){.lessontext{font-size:20px;line-height:1.35}.scene{height:150px}}
@media(min-width:700px){.scene{height:260px}.lessontext{font-size:25px;line-height:1.45}}
.landing-art{width:270px;height:270px;max-width:80%;object-fit:contain;background:none}.landing-title .wm{min-height:110px;padding:12px}.landing-title .wm-words{justify-content:center}.landing-text{font-size:20px}
@media(max-width:350px){.landing-art{width:205px;height:205px}.landing-title .wm{min-height:84px}.landing-text{font-size:17px}}

/* Approved edge-to-edge illustration fill. */
.scene img{object-fit:cover;object-position:center}

/* Preserve complete approved illustration, with no bands or cropped people. */
.scene{height:auto;aspect-ratio:4/3;max-height:none}

/* Full Malayalam narration set is now present. */
header #sound{visibility:visible;pointer-events:auto}
header #sound[aria-pressed="true"]{background:#d7ead9}

/* User prefers shorter image boxes with a modest crop. Keep faces in frame. */
.scene{height:180px;aspect-ratio:auto}.scene img{object-position:center top}
@media(max-width:350px){.scene{height:150px}}
@media(min-width:700px){.scene{height:260px}}
