/* ==========================================================
   Class 6 Science · Section 6 · সংবেদী অঙ্গ
   Theme: "পাঁচ জানালার বাড়ি" — the body as a village house at dusk.
   The five sense organs are five windows; the brain lives inside and
   learns about the world only through them. Lime-washed sky-blue wall,
   green wooden shutters (louvred card tops), iron window grilles
   (top bar), marigold lamp-light glow; badge = 14 little windows that
   light up. Each sense has its own colour. Band কৌতূহলী (11–12).
   ========================================================== */
:root {
  --bg: #e4eef0;
  --card: #fbfdfc;
  --ink: #1f2b2e;
  --ink-2: #51605f;
  --red: #b5482f;
  --red-s: #f8e2db;
  --navy: #1d5c55;
  --navy-s: #ddefeb;
  --line: #c9dcdc;
  --kraft: #9cc2bd;
  --lamp: #f2b632;
  --eye: #12817a;
  --ear: #6b4bb8;
  --nose: #d9731c;
  --tongue: #c93d72;
  --skin: #8a5a2b;
  --ok: #217a49;
  --no: #b03a2e;
  --shutter: repeating-linear-gradient(180deg, #2a7a70 0 3px, #1d5c55 3px 5px);
  --grille: repeating-linear-gradient(90deg, #1f2b2e 0 3px, transparent 3px 18px), linear-gradient(#1f2b2e, #1f2b2e) top / 100% 2px no-repeat, linear-gradient(#1f2b2e, #1f2b2e) bottom / 100% 2px no-repeat;
}
* { box-sizing: border-box; }
body { color: var(--ink); background:
  radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .45) 0 2px, transparent 3px) 0 0 / 46px 38px,
  linear-gradient(180deg, #d7e6ea, var(--bg) 40rem); background-color: var(--bg); }
::selection { background: rgba(242, 182, 50, .45); }
a { color: var(--navy); }
strong { color: var(--red); }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 2000; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--content-w); margin-inline: auto; padding-inline: var(--gutter); }
main, .wrap, .lesson-part > *, .grid2 > *, .row-ctrl > *, .explore > *, .ear-zones > * { min-width: 0; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; padding: .4rem var(--gutter) .75rem; background: rgba(240, 247, 247, .96); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: var(--fs-sm); }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: var(--grille); opacity: .8; }
.crumbs { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--red); font-weight: 700; }
.album { display: flex; align-items: center; gap: .45rem; font-weight: 800; }
.stamps { display: inline-flex; gap: 2px; }
.stamps i { width: .62rem; height: .8rem; border-radius: .31rem .31rem 1px 1px; background: #3b4a4d; border: 1.5px solid var(--navy); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: background .4s, box-shadow .4s; }
.stamps i.on { background: var(--lamp); box-shadow: 0 0 6px 1px rgba(242, 182, 50, .8); }
.album.pop { animation: thump .6s; }
@keyframes thump { 30% { transform: scale(1.1); filter: drop-shadow(0 0 6px rgba(242, 182, 50, .9)); } }

/* hero */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 2rem; }
.hero-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.eyebrow { display: inline-block; color: #fff; background: var(--navy); font-weight: 800; padding: .1rem .9rem; border-radius: 4px; font-size: var(--fs-sm); box-shadow: 3px 3px 0 var(--lamp); }
h1 { font-size: var(--fs-3xl); line-height: 1.25; margin: .7rem 0 1rem; }
.lede { font-size: var(--fs-lg); line-height: 1.75; }
.hint { color: var(--ink-2); border-left: 4px solid var(--navy); padding-left: .8rem; }
.window-card { margin: 0; position: relative; border-radius: 120px 120px 8px 8px; overflow: hidden; background: #2a7a70; padding: 12px; box-shadow: 0 0 0 4px var(--ink), 0 14px 30px rgba(20, 50, 50, .25); }
.window-card > svg { display: block; width: 100%; height: auto; border-radius: 110px 110px 4px 4px; }
.hero-read { margin: 8px 0 0; padding: .45rem 1rem; border-radius: 4px; background: var(--ink); color: var(--lamp); font-weight: 800; }

/* blocks */
.block { padding-block: clamp(1.6rem, 4vw, 3rem); }
.sec-title, .lesson-part h2, #video h2, #compare h2, #activity h2, #quiz h2, #diary h2 { font-size: var(--fs-2xl); line-height: 1.35; margin: .2rem 0 1rem; }
.story h2 { font-size: var(--fs-xl); margin: .3rem 0 .8rem; }
.sub-title { font-size: var(--fs-xl); margin: 2rem 0 .8rem; color: var(--navy); }
.part-tag { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-weight: 800; color: #fff; background: var(--navy); padding: .1rem .8rem .1rem .55rem; border-radius: 3px; font-size: var(--fs-sm); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.part-tag::before { content: ''; width: .85rem; height: 1.05rem; border-radius: .45rem .45rem 1px 1px; background: var(--lamp); box-shadow: 0 0 6px rgba(242, 182, 50, .9); }
.goals { display: grid; gap: .6rem; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.goals li { background: var(--card); border-radius: 4px; padding: .7rem 1rem .7rem 3rem; position: relative; box-shadow: 0 2px 0 var(--line); }
.goals li::before { content: ''; position: absolute; left: .9rem; top: .85rem; width: 1.2rem; height: 1.5rem; border: 2.5px solid var(--navy); border-radius: .6rem .6rem 2px 2px; background: linear-gradient(var(--navy), var(--navy)) center / 2px 100% no-repeat, linear-gradient(var(--navy), var(--navy)) center / 100% 2px no-repeat, #fde9b0; }

.card { position: relative; background: var(--card); border-radius: 6px; padding: calc(clamp(1rem, 3vw, 1.6rem) + 10px) clamp(1rem, 3vw, 1.6rem) clamp(1rem, 3vw, 1.6rem); box-shadow: 0 6px 18px rgba(20, 50, 50, .12), 0 0 0 1.5px var(--line); overflow: hidden; }
.card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--shutter); border-bottom: 2px solid var(--ink); }
.card h3 { margin: 0 0 .5rem; font-size: var(--fs-lg); display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.story { border-left: 6px solid var(--lamp); }
.widget { margin: 1.6rem 0; }
.def { margin: 1rem 0; background: var(--navy-s); border-left: 6px solid var(--navy); border-radius: 4px; padding: .8rem 1rem; }
.def b:first-child { color: var(--navy); }
.remember { position: relative; margin: 1.4rem 0 .4rem; background: #fff6da; border-radius: 4px; padding: .9rem 1rem; border-left: 6px solid var(--lamp); box-shadow: 0 0 0 1.5px #f1dc9f, 0 0 18px rgba(242, 182, 50, .25); }
.remember > b:first-child { display: inline-block; background: var(--red); color: #fff; padding: 0 .6rem; border-radius: 3px; margin-right: .4rem; }

.grid2 { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.fig { display: block; width: 100%; height: auto; }
.explore { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .explore { grid-template-columns: 1.35fr 1fr; } }

/* sense colour accents on sections */
.sense-eye { --c: var(--eye); } .sense-ear { --c: var(--ear); } .sense-nose { --c: var(--nose); } .sense-tongue { --c: var(--tongue); } .sense-skin { --c: var(--skin); }
.lesson-part[class*="sense-"] > h2 { display: flex; align-items: center; gap: .6rem; }
.lesson-part[class*="sense-"] > h2::after { content: ''; flex: 1; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--c) 0 18px, transparent 18px 26px); }
.lesson-part[class*="sense-"] .card::before { background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--c) 75%, #fff) 0 3px, var(--c) 3px 5px); }

/* controls */
.row-ctrl { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin: .7rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }
.chips button, .seg button, .part-chips button { border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 999px; padding: .05rem .8rem; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.chips button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.seg { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.part-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 .6rem; }
.part-chips button { border-color: var(--c, var(--navy)); border-radius: 4px; display: inline-flex; gap: .35rem; align-items: center; }
.part-chips button b { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c, var(--navy)); color: #fff; font-size: .85rem; }
.part-chips button.seen { background: #fdf3d2; }
.part-chips button[aria-pressed="true"] { background: var(--c, var(--navy)); color: #fff; }
.part-chips button[aria-pressed="true"] b { background: #fff; color: var(--c, var(--navy)); }
.part-info { background: #eef5f4; border-radius: 4px; padding: .6rem .9rem; border-left: 5px solid var(--c, var(--navy)); min-height: 5rem; }
.part-info h4 { margin: 0 0 .2rem; font-size: var(--fs-lg); color: var(--c, var(--navy)); }
.part-info p { margin: .2rem 0; }
.slider { display: flex; align-items: center; gap: .5rem; font-weight: 700; flex-wrap: wrap; margin: .4rem 0; }
.slider input { accent-color: var(--red); width: 11rem; max-width: 100%; }
.btn { font: inherit; font-weight: 800; border: 2px solid var(--ink); background: var(--red); color: #fff; padding: .3rem 1.1rem; border-radius: 6px; cursor: pointer; box-shadow: 3px 3px 0 var(--navy); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.btn.ghost { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: default; }
.msg { min-height: 1.8em; font-weight: 700; margin: .5rem 0; }
.msg.ok { color: var(--ok); } .msg.no { color: var(--no); }

/* svg markers */
.mk { cursor: pointer; }
.mk:focus { outline: none; }
.mk:focus-visible circle.dot { stroke: #1d7bff; stroke-width: 4; }
.mk circle.dot { transition: r .2s; }
.mk.on circle.dot { fill: var(--red); }
.mk.done circle.dot { fill: var(--ok); }
.ping { pointer-events: none; }

/* sorter */
.sorter { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: .5rem; }
.sorter li { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; justify-content: space-between; padding: .45rem .7rem; border-radius: 4px; background: #eef5f4; border: 1.5px solid var(--line); }
.sorter li .t { flex: 1 1 15rem; }
.sorter li .reply { flex-basis: 100%; font-size: var(--fs-sm); color: var(--navy); font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.sorter li .reply .env { display: inline-block; width: .9rem; height: .9rem; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 8px 2px rgba(242, 182, 50, .9); animation: fly .9s ease-out; }

@keyframes fly { from { transform: translateX(-2rem) rotate(-12deg); opacity: 0; } }
.sorter li.ok { background: #e6f3e9; border-color: var(--ok); }
.sorter li.bad { animation: shake .4s; border-color: var(--no); }
.sorter .seg button { font-size: .95rem; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* care list */
.care-list { list-style: none; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.care-list li { display: flex; gap: .6rem; align-items: flex-start; background: var(--card); padding: .6rem .8rem; border-radius: 4px; box-shadow: 0 0 0 1.5px var(--line); }
.care-list li .ic { flex: none; width: 1.6em; height: 1.6em; }

/* ear zones */
.ear-zones { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); margin: 1rem 0; }
.zone { background: var(--card); border-radius: 4px; padding: .7rem 1rem; border-top: 6px solid var(--ear); box-shadow: 0 0 0 1.5px var(--line); }
.zone h3 { margin: 0 0 .3rem; font-size: var(--fs-lg); color: var(--ear); }
.zone p { margin: 0; }
.zone.z2 { border-top-color: #9a7ad8; } .zone.z3 { border-top-color: #3f2a85; }
.bal-fig { max-width: 520px; margin-inline: auto; }

/* tongue / skin small cards */
.mini h3 { color: var(--tongue); }
.flip-list { padding-left: 1.2rem; margin: 0; }
.flip-list li { margin: .35rem 0; }

/* care letters */
.letters { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.letter { align-content: start; position: relative; background: #fff; border-radius: 3px; padding: .7rem .8rem .6rem; box-shadow: 0 0 0 1.5px var(--line), 0 3px 0 var(--kraft); display: grid; gap: .45rem; }
.letter::before { content: ''; position: absolute; top: .55rem; right: .55rem; width: 1.8rem; height: 2.3rem; border-radius: .9rem .9rem 2px 2px; border: 2.5px solid var(--k, var(--navy)); background: linear-gradient(var(--k, var(--navy)), var(--k, var(--navy))) center / 2px 100% no-repeat, #eef5f4; }
.letter .tag { font-size: .9rem; font-weight: 800; color: var(--k, var(--navy)); }
.letter p { margin: 0; padding-right: 2.6rem; }
.letter .seg button { font-size: .95rem; }
.letter.ok { box-shadow: 0 0 0 2px var(--ok), 0 3px 0 var(--ok); }
.letter.ok::after { content: attr(data-mark); position: absolute; right: .6rem; bottom: .5rem; font-weight: 800; font-size: .85rem; color: var(--ok); border: 2.5px solid var(--ok); border-radius: 50%; padding: .35rem .3rem; transform: rotate(-14deg); background: rgba(255, 255, 255, .85); }
.letter.bad { animation: shake .4s; }
.letter .why { font-size: var(--fs-sm); color: var(--ok); }

/* player */
.player { border-radius: 10px; background: #13302e; padding: clamp(.5rem, 2vw, 1rem); color: #fff; box-shadow: 0 0 0 4px #2a7a70, 0 12px 26px rgba(10, 40, 40, .35); }
.stage { position: relative; border-radius: 4px; overflow: hidden; }
.stage svg:not(.ic) { width: 100%; height: auto; display: block; }
.big-play { position: absolute; inset: 0; margin: auto; width: 5.5rem; height: 5.5rem; border-radius: 50%; border: 4px solid #fff; background: var(--lamp); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.big-play .ic { width: 2.4rem; height: 2.4rem; }
.big-play.hide { display: none; }
.caption { min-height: 3.6em; margin: .75rem .25rem; font-size: var(--fs-lg); line-height: 1.6; }
.controls { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ctrl { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.controls input[type="range"] { flex: 1; min-width: 6rem; accent-color: #f2c94c; }
.time { font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }
.chapters { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: .75rem 0 0; list-style: none; }
.chapters button { border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #eef2fa; border-radius: 999px; padding: .1rem .7rem; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.chapters button.on { background: var(--lamp); border-color: var(--lamp); color: var(--ink); }

/* table */
.table-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; background: var(--card); min-width: 38rem; }
.cmp th, .cmp td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.cmp thead th { background: var(--navy); color: #fff; }
.cmp td:first-child { font-weight: 800; border-left: 6px solid var(--rc); color: var(--rc); }
.r-eye { --rc: var(--eye); } .r-ear { --rc: var(--ear); } .r-nose { --rc: var(--nose); } .r-tongue { --rc: var(--tongue); } .r-skin { --rc: var(--skin); }

/* diary */
.tally { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); }
.tally > div { display: flex; align-items: center; justify-content: space-between; gap: .4rem; background: #eef5f4; border-radius: 4px; padding: .35rem .5rem; border-left: 5px solid var(--k); font-weight: 700; }
.tally button { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font: inherit; font-weight: 800; cursor: pointer; line-height: 1; padding: 0; }
.tally output { min-width: 1.6rem; text-align: center; }
.chart-box { position: relative; height: 300px; margin-top: 1rem; }

/* label lab */
.tabs { margin-bottom: .6rem; }
.pool { display: flex; flex-wrap: wrap; gap: .45rem; margin: .5rem 0; }
.pool button { font: inherit; font-size: var(--fs-sm); border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 3px; padding: .2rem .7rem; cursor: pointer; box-shadow: 2px 2px 0 var(--kraft); }
.pool button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.pool button.used { display: none; }
.pool button.bad { animation: shake .4s; background: var(--red-s); }

/* quiz */
.stem-card { margin: .8rem 0; }
.stem-card p { margin: 0; }
.score-pill { display: inline-block; background: var(--navy); color: #fff; padding: .1rem .9rem; border-radius: 999px; font-weight: 700; }
.lk-q { background: var(--card); border-radius: 4px; padding: 1rem; margin: .8rem 0; box-shadow: 0 0 0 1.5px var(--line); border-left: 6px solid var(--red); }
.lk-q-stem { font-weight: 700; margin-bottom: .6rem; }
.lk-opts { display: grid; gap: .45rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.lk-opt { display: flex; gap: .6rem; align-items: center; text-align: left; font: inherit; padding: .45rem .7rem; border: 2px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; }
.lk-opt-key { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy); color: #fff; flex: none; font-size: .95rem; }
.lk-opt.is-right { border-color: var(--ok); background: #e5f4ea; }
.lk-opt.is-wrong { border-color: var(--no); background: #fbe9e6; }
.lk-explain { margin: .6rem 0 0; }
.lk-explain.ok { color: var(--ok); } .lk-explain.no { color: var(--no); }
.qa details, .cq-parts details { background: var(--card); border-radius: 4px; padding: .6rem .9rem; margin: .5rem 0; border-left: 5px solid var(--navy); }
.cq .cq-parts details { background: #eef5f4; }
.qa summary, .cq-parts summary { cursor: pointer; font-weight: 700; }
.qa details p, .cq-parts details p { margin: .6rem 0 .2rem; }
.cq { margin: 1rem 0; }
.cq-stem { font-weight: 800; font-size: var(--fs-lg); }
.cq-fig { display: block; width: 100%; max-width: 560px; height: auto; margin: .4rem 0; }
.cq-parts { list-style: none; padding: 0; }
.summary ul { padding-left: 1.3rem; }
.summary li { margin: .4rem 0; }

/* pager */
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 2rem 1rem; }
.pager-btn { display: inline-block; padding: .5rem 1.1rem; border-radius: 4px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; border: 2px solid var(--navy); }
.pager-btn.disabled { background: #dbe6e6; color: #4f5c5c; border-color: #bfd0d0; }
.credit { color: var(--ink-2); font-size: var(--fs-sm); padding-bottom: 2rem; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
.pool button.placed { background: #e6f3e9; border-color: var(--ok); color: var(--ok); box-shadow: none; cursor: default; font-weight: 700; }
#pupil-svg { max-width: 360px; margin-inline: auto; }
#lens-svg { max-width: 400px; }
@media (max-width: 480px) { .stamps i { width: .45rem; height: .6rem; } }
.letter.ok::before { background: linear-gradient(var(--k), var(--k)) center / 2px 100% no-repeat, var(--lamp); box-shadow: 0 0 8px rgba(242, 182, 50, .9); }
