/* খুদে পাঠশালা — ১ম থেকে ৪র্থ শ্রেণি
   চেহারা: রোদেলা গ্রাম-মাঠের দৃশ্য, কাঠের সাইনবোর্ডে প্রশ্ন, খেলনা-ব্লকের মতো উত্তর, সঙ্গী টুনটুনি পাখি। */
.jr {
  --jr-ink: #24324a;
  --jr-soft: #55657a;
  --jr-sky: #e6f6ff;
  --jr-paper: #fffdf7;
  --jr-wood: #b7793f;
  --jr-wood-dark: #7d4b22;
  --jr-sun: #ffc928;
  --jr-tomato: #ef5b3b;
  --jr-leaf: #2f9e62;
  --jr-grass: #7cc96b;
  --jr-grape: #8f6cf0;
  --jr-line: #d7e6ee;
  background: linear-gradient(#d6efff, #f3fbff 380px, #f7fbf2);
  color: var(--jr-ink);
  font-family: "Baloo Da 2", "Hind Siliguri", system-ui, sans-serif;
}
.jr h1, .jr h2, .jr h3 { font-family: inherit; letter-spacing: 0; }
.jr-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.jr .jr-sp { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; }
.jr-inline { font-size: 1.6em; }

/* উপরের অংশ */
.jr-top { padding: clamp(1rem, 3vw, 1.8rem) 0 .6rem; }
.jr-crumb { margin: 0 0 .2rem; font-weight: 700; }
.jr-crumb a { color: var(--jr-soft); }
.jr-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.jr-top h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.05; font-weight: 800; margin: 0; }
.jr-lead { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--jr-soft); max-width: 62ch; margin: .4rem 0 0; }
.jr-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.jr-levels { display: flex; flex-wrap: wrap; gap: .35rem; background: #fff; border-radius: 999px; padding: .25rem; box-shadow: 0 3px 0 var(--jr-line); }
.jr-levels button, .jr-pill { border: 0; background: transparent; color: var(--jr-ink); border-radius: 999px; padding: .35rem .85rem; font: inherit; font-weight: 700; cursor: pointer; min-height: 42px; }
.jr-pill { background: #fff; box-shadow: 0 3px 0 var(--jr-line); }
.jr-levels button[aria-pressed="true"] { background: var(--jr-ink); color: #fff; }
.jr-starbox { display: inline-flex; align-items: center; gap: .3rem; background: #fff6d6; border: 2px solid #f6d27d; border-radius: 999px; padding: .25rem .9rem; font-weight: 800; font-size: 1.15rem; min-height: 42px; }
.jr-starbox.jr-pop { animation: jr-pop .5s ease; }
@keyframes jr-pop { 40% { transform: scale(1.2); } }

/* খেলার তাক (মেনু) */
.jr-shelf { margin: 1.2rem 0 1.6rem; }
.jr-shelf h2 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); font-weight: 800; margin: 0 0 .7rem; }
.jr-tiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.jr-tile-link { position: relative; display: grid; gap: .15rem; padding: 1rem 1rem .9rem; border-radius: 24px; background: #fff; color: var(--jr-ink); text-decoration: none; box-shadow: 0 6px 0 color-mix(in srgb, var(--tint) 55%, #fff), 0 10px 24px rgb(36 50 74 / .08); border: 3px solid color-mix(in srgb, var(--tint) 35%, #fff); transition: transform .15s ease; }
.jr-tile-link:hover, .jr-tile-link:focus-visible { transform: translateY(-4px) rotate(-.6deg); outline: none; border-color: var(--tint); }
.jr-tile-ico { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; font-size: 2.6rem; background: color-mix(in srgb, var(--tint) 18%, #fff); margin-bottom: .45rem; box-shadow: inset 0 -5px 0 color-mix(in srgb, var(--tint) 30%, #fff); }
.jr-tile-link b { font-size: 1.2rem; line-height: 1.2; }
.jr-tile-link small { color: var(--jr-soft); font-size: .92rem; line-height: 1.3; }
.jr-tile-stars { position: absolute; top: .8rem; right: .9rem; font-style: normal; letter-spacing: 1px; }
.jr-tile-stars i { font-style: normal; color: #dfe6eb; font-size: 1.1rem; }
.jr-tile-stars i.is-on { color: var(--jr-sun); text-shadow: 0 1px 0 #d9a400; }
.jr-tag { justify-self: start; margin-top: .35rem; font-style: normal; font-size: .8rem; font-weight: 700; color: var(--jr-soft); background: #f1f5f8; border-radius: 999px; padding: .05rem .6rem; }

/* খেলার মঞ্চ */
.jr-play { margin: .6rem 0 2rem; scroll-margin-top: 96px; }
.jr-playbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .7rem; }
.jr-back { font-weight: 800; color: var(--jr-ink); background: #fff; border-radius: 999px; padding: .35rem 1rem; text-decoration: none; box-shadow: 0 3px 0 var(--jr-line); min-height: 42px; display: inline-flex; align-items: center; }
.jr-playbar h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; margin: 0; flex: 1; }
.jr-path { display: flex; align-items: center; gap: 5px; }
.jr-path span { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #cfdce5; }
.jr-path span.is-now { border-color: var(--jr-sun); transform: scale(1.25); }
.jr-path span.is-good { background: var(--jr-sun); border-color: #e0a400; }
.jr-path span.is-done { background: #9ccfe8; border-color: #6fb1d3; }
.jr-path b { margin-left: .3rem; font-size: 1rem; }
.jr-scene { position: relative; isolation: isolate; border-radius: 32px; overflow: hidden; min-height: 600px; padding: clamp(1rem, 3vw, 2rem) clamp(.8rem, 3vw, 2rem) clamp(7rem, 12vw, 8rem); box-shadow: 0 8px 0 #4f9f4b, 0 18px 40px rgb(36 50 74 / .12); }
.jr-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.jr-clouds { animation: jr-drift 40s linear infinite alternate; }
@keyframes jr-drift { to { transform: translateX(60px); } }
.jr-board { max-width: 860px; margin-inline: auto; }
.jr-buddy { position: absolute; left: clamp(.4rem, 2vw, 1.6rem); bottom: .4rem; width: clamp(96px, 14vw, 140px); cursor: pointer; z-index: 2; }
.jr-buddy-svg { width: 100%; display: block; animation: jr-bob 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.jr-buddy .jr-tail { transform-origin: 50px 70px; animation: jr-tail 2.6s ease-in-out infinite; }
@keyframes jr-bob { 50% { transform: translateY(-4px); } }
@keyframes jr-tail { 50% { transform: rotate(-6deg); } }
.jr-buddy.is-happy .jr-buddy-svg { animation: jr-hop .7s cubic-bezier(.3, 1.6, .5, 1) 2; }
@keyframes jr-hop { 40% { transform: translateY(-26px) rotate(-6deg); } }
.jr-buddy.is-sad .jr-buddy-svg { animation: jr-tilt .9s ease; }
@keyframes jr-tilt { 30%, 70% { transform: rotate(9deg); } }
.jr-bubble { position: absolute; left: 92%; bottom: 62%; width: max-content; max-width: min(320px, 62vw); margin: 0; background: #fff; border-radius: 20px 20px 20px 4px; padding: .5rem .9rem; font-weight: 700; font-size: 1.05rem; line-height: 1.35; box-shadow: 0 4px 0 #d7e6ee; animation: jr-in .25s ease; }
@keyframes jr-in { from { opacity: 0; transform: scale(.85); } }

/* প্রশ্ন: কাঠের সাইনবোর্ড */
.jr-sign { position: relative; display: flex; align-items: flex-start; gap: .6rem; background: var(--jr-paper); border: 5px solid var(--jr-wood); border-radius: 22px; padding: .9rem 1.2rem; box-shadow: 0 6px 0 var(--jr-wood-dark); margin: 0 auto 1.2rem; max-width: 760px; }
.jr-sign::before, .jr-sign::after { content: ""; position: absolute; top: -16px; width: 10px; height: 16px; background: var(--jr-wood-dark); border-radius: 3px; }
.jr-sign::before { left: 18%; } .jr-sign::after { right: 18%; }
.jr-prompt { flex: 1; font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.5; margin: 0; font-weight: 600; }
.jr-prompt small { display: block; font-size: .9rem; color: var(--jr-soft); font-weight: 500; }
.jr-prompt strong { color: var(--jr-tomato); }
.jr-hear { flex: none; border: 0; background: #e8f4fb; border-radius: 50%; width: 46px; height: 46px; font-size: 1.3rem; cursor: pointer; }
.jr-eq { display: inline-block; margin-left: .3rem; padding: 0 .55rem; border-radius: 10px; background: #fff3d6; font-weight: 800; white-space: nowrap; }
.jr-task { display: block; font-weight: 800; color: var(--jr-grape); }
.jr-visual { display: grid; justify-items: center; gap: .8rem; margin: .4rem auto 1.2rem; background: rgb(255 255 255 / .82); border-radius: 24px; padding: 1rem; max-width: 760px; }
.jr-visual:empty { display: none; }

/* উত্তর: খেলনা-ব্লক */
.jr-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .8rem; max-width: 760px; margin-inline: auto; }
.jr-choice { --c: var(--jr-sun); min-height: 72px; border: 0; border-radius: 18px; background: #fff; font: inherit; font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; color: var(--jr-ink); cursor: pointer; box-shadow: inset 0 0 0 4px var(--c), 0 7px 0 color-mix(in srgb, var(--c) 70%, #000); transition: transform .1s; animation: jr-drop .35s cubic-bezier(.3, 1.5, .5, 1) backwards; animation-delay: calc(var(--i) * 60ms); }
.jr-choice:nth-child(4n+1) { --c: #ef5b3b; } .jr-choice:nth-child(4n+2) { --c: #3fa7e0; } .jr-choice:nth-child(4n+3) { --c: #2f9e62; } .jr-choice:nth-child(4n+4) { --c: #f6a623; }
@keyframes jr-drop { from { opacity: 0; transform: translateY(-14px) scale(.9); } }
.jr-choice:hover:not(:disabled) { transform: translateY(-3px); }
.jr-choice:active:not(:disabled) { transform: translateY(5px); box-shadow: inset 0 0 0 4px var(--c), 0 2px 0 color-mix(in srgb, var(--c) 70%, #000); }
.jr-choice .jr-sp { width: 1.6em; height: 1.6em; }
.jr-choice.is-right { background: #dff5e7; --c: var(--jr-leaf); animation: jr-yay .5s ease; }
@keyframes jr-yay { 40% { transform: scale(1.1) rotate(-3deg); } }
.jr-choice.is-wrong { animation: jr-shake .35s; opacity: .45; }
.jr-choice:disabled:not(.is-right) { opacity: .45; cursor: default; }
@keyframes jr-shake { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.jr-feedback { min-height: 1.6em; font-size: 1.15rem; margin: 1rem auto .4rem; max-width: 760px; text-align: center; font-weight: 700; }
.jr-feedback.is-right { color: #1d7a48; }
.jr-feedback.is-wrong { color: #b14a33; }
.jr-next { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.jr-btn { border: 0; border-radius: 16px; padding: .65rem 1.3rem; font: inherit; font-weight: 800; font-size: 1.1rem; cursor: pointer; background: #fff; color: var(--jr-ink); min-height: 50px; box-shadow: 0 4px 0 #c6d5df; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.jr-btn-go { background: var(--jr-tomato); color: #fff; box-shadow: 0 4px 0 #b43a22; }
.jr-btn:active { transform: translateY(3px); box-shadow: none; }
.jr-btn:disabled { opacity: .5; }

/* রাউন্ড শেষের উদযাপন */
.jr-win { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgb(36 50 74 / .35); padding: 1rem; }
.jr-win-card { background: var(--jr-paper); border: 6px solid var(--jr-sun); border-radius: 30px; padding: 1.4rem 1.6rem; text-align: center; max-width: 440px; animation: jr-in .35s cubic-bezier(.3, 1.5, .5, 1); }
.jr-win-card h3 { font-size: 1.6rem; margin: .2rem 0; font-weight: 800; }
.jr-win-stars { margin: 0; font-size: 3.2rem; letter-spacing: .3rem; }
.jr-win-stars span { color: #dfe6eb; display: inline-block; }
.jr-win-stars span.is-on { color: var(--jr-sun); text-shadow: 0 3px 0 #d9a400; animation: jr-yay .6s ease backwards; }
.jr-win-stars span:nth-child(2) { animation-delay: .2s; transform: translateY(-10px); } .jr-win-stars span:nth-child(3) { animation-delay: .4s; }
.jr-sticker { display: grid; justify-items: center; margin: .8rem 0 1rem; }
.jr-sticker span { font-size: 3.4rem; background: #fff; border-radius: 50%; width: 96px; height: 96px; display: grid; place-items: center; border: 4px dashed var(--jr-tomato); }
.jr-win-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.jr-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }

/* ঝুড়িতে রাখো */
.jr-orchard { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; align-items: end; max-width: 760px; margin: 0 auto 1rem; }
.jr-tree { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; align-content: center; min-height: 190px; padding: 1.2rem; background: radial-gradient(120% 90% at 40% 30%, #7fd06d, #4fa553); border-radius: 48% 52% 44% 56% / 58% 54% 46% 42%; box-shadow: inset 0 -12px 0 rgb(0 0 0 / .1), 0 6px 0 #3d8b3d; }
.jr-fruit { border: 0; background: none; padding: 0; width: 46px; height: 46px; cursor: pointer; font-size: 40px; display: grid; place-items: center; }
.jr-fruit:hover { transform: scale(1.12); }
.jr-basket { position: relative; display: grid; justify-items: center; }
.jr-basket svg { width: 100%; max-width: 230px; display: block; }
.jr-basket-in { display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 2px; min-height: 60px; width: 82%; margin-bottom: -16px; position: relative; z-index: 1; }
.jr-basket-in .jr-fruit { width: 36px; height: 36px; font-size: 32px; }
.jr-basket-n { position: absolute; bottom: 18px; background: #fff; border-radius: 999px; padding: 0 .8rem; font-size: 1.5rem; z-index: 2; box-shadow: 0 3px 0 var(--jr-wood-dark); }
/* গণনা */
.jr-objs { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; max-width: 620px; }
.jr-obj { font-size: clamp(2rem, 5vw, 2.6rem); background: none; border: 0; border-radius: 14px; width: 1.6em; height: 1.6em; cursor: pointer; position: relative; }
.jr-objs.is-dense .jr-obj { font-size: 1.7rem; }
.jr-obj.is-counted { background: #fff3d6; }
.jr-obj.is-counted::after { content: attr(data-n); position: absolute; top: -6px; right: -6px; background: var(--jr-tomato); color: #fff; font-size: .8rem; border-radius: 999px; min-width: 1.5em; line-height: 1.5em; font-weight: 800; }
.jr-tally { font-size: 1.2rem; margin: 0; }

/* দশের ঘর */
.jr-frames { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.jr-frame { display: grid; grid-template-columns: repeat(5, clamp(40px, 9vw, 58px)); gap: 4px; padding: 6px; background: var(--jr-ink); border-radius: 12px; }
.jr-cell { aspect-ratio: 1; background: #fff; border-radius: 6px; display: grid; place-items: center; }
.jr-cell.is-on::before { content: ""; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--jr-tomato); }

/* সংখ্যারেখা */
.jr-line { position: relative; width: 100%; max-width: 760px; height: 92px; display: flex; justify-content: space-between; border-bottom: 4px solid var(--jr-ink); margin-top: 20px; }
.jr-tick { position: relative; width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.jr-tick i { width: 3px; height: 14px; background: var(--jr-ink); margin-bottom: -4px; }
.jr-tick b { position: absolute; top: 100%; margin-top: 8px; font-size: clamp(.7rem, 1.6vw, 1rem); }
.jr-tick.is-here b { color: var(--jr-tomato); transform: scale(1.4); }
.jr-frog { position: absolute; bottom: 4px; font-size: 2.2rem; transform: translateX(-50%); transition: left .45s cubic-bezier(.3, 1.6, .5, 1); }
.jr-hop { margin-top: 2rem; }

/* যোগ-বিয়োগ ছবি */
.jr-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; }
.jr-group { display: inline-flex; flex-wrap: wrap; gap: 2px; max-width: 260px; padding: .5rem; border: 3px dashed var(--jr-line); border-radius: 16px; font-size: 1.9rem; }
.jr-group .is-gone { opacity: .35; position: relative; }
.jr-group .is-gone::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 4px; background: var(--jr-tomato); transform: rotate(-35deg); border-radius: 2px; }
.jr-op { font-size: 2.2rem; font-weight: 800; }

/* তুলনা ও প্যাটার্ন */
.jr-compare { display: flex; align-items: center; gap: 1.2rem; }
.jr-compare > div { display: grid; justify-items: center; }
.jr-compare b { font-size: clamp(2.6rem, 8vw, 4rem); line-height: 1; }
.jr-dots { color: var(--jr-tomato); letter-spacing: 2px; max-width: 150px; text-align: center; word-break: break-all; }
.jr-box { display: inline-grid; place-items: center; min-width: 64px; height: 64px; border: 3px dashed var(--jr-mango); border-radius: 16px; font-size: 2rem; font-weight: 800; color: var(--jr-mango); }
.jr-pattern { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; font-size: 2.2rem; }
.jr-num { background: #eef3f7; border-radius: 12px; padding: 0 .6rem; font-weight: 800; font-size: 1.8rem; }

/* আকৃতি ও জিওবোর্ড */
.jr-shape { width: min(220px, 60vw); fill: #ffd98a; stroke: var(--jr-ink); stroke-width: 4; }
.jr-life { margin: 0; color: var(--jr-soft); }
.jr-geo { width: min(330px, 86vw); background: #f4ead6; border-radius: 18px; touch-action: manipulation; }
.jr-pin { fill: #8b5e34; cursor: pointer; }
.jr-pin:hover, .jr-pin:focus-visible { fill: var(--jr-tomato); outline: none; }
.jr-pin.is-on { fill: var(--jr-tomato); }
.jr-geo-band { fill: none; stroke: var(--jr-grape); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.jr-geo-fill { fill: rgb(108 92 231 / .2); }

/* গুণ, ভাগ, ভগ্নাংশ, টাকা */
.jr-array { display: grid; gap: 4px; font-size: 1.8rem; letter-spacing: 4px; text-align: center; }
.jr-array div { background: #fff8e6; border-radius: 10px; padding: 0 .4rem; }
.jr-shares { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.jr-share { display: grid; justify-items: center; background: #eef7ff; border-radius: 14px; padding: .4rem .6rem; font-size: 1.4rem; max-width: 140px; text-align: center; }
.jr-kid { font-size: 2rem; }
.jr-pizza { width: min(260px, 70vw); }
.jr-slice { fill: #ffe2a8; stroke: #a0522d; stroke-width: 3; cursor: pointer; }
.jr-slice.is-on { fill: var(--jr-tomato); }
.jr-slice:focus-visible { outline: none; stroke: var(--jr-grape); stroke-width: 5; }
.jr-frac { display: inline-grid; text-align: center; font-size: 2rem; font-weight: 800; margin: 0; }
.jr-frac-n { border-bottom: 4px solid var(--jr-ink); padding: 0 .4rem; }
.jr-money { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: center; }
.jr-note { display: inline-grid; place-items: center; min-width: 96px; height: 52px; border-radius: 8px; font-weight: 800; font-size: 1.3rem; border: 3px solid rgb(0 0 0 / .15); background: #d9f0d0; }
.jr-note.n2, .jr-note.n1 { background: #f8d8e6; } .jr-note.n5 { background: #f6e3c3; } .jr-note.n10 { background: #e9d4f3; } .jr-note.n20 { background: #d6eef0; } .jr-note.n50 { background: #f3e1c9; } .jr-note.n100 { background: #d7e3f5; }
.jr-price { font-size: 1.5rem; font-weight: 800; }

/* গল্প ও শব্দকার্ড */
.jr-story { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.7; background: #fff8e6; border-left: 6px solid var(--jr-mango); border-radius: 14px; padding: 1rem 1.2rem; max-width: 640px; }
.jr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.jr-flip { position: relative; min-height: 130px; border: 3px solid var(--jr-line); border-radius: 18px; background: #fff; font: inherit; color: var(--jr-ink); cursor: pointer; padding: .6rem; }
.jr-flip span { display: grid; place-items: center; gap: .2rem; text-align: center; font-size: 1.15rem; font-weight: 700; }
.jr-flip b { font-size: 1.8rem; }
.jr-flip .jr-back { display: none; }
.jr-flip.is-flipped { background: #eef7ff; border-color: #2b8fd6; }
.jr-flip.is-flipped .jr-front { display: none; }
.jr-flip.is-flipped .jr-back { display: grid; }
.jr-flip .jr-back b { font-size: 1.2rem; }

/* ইংরেজি */
.jr-emo { font-size: 2.4rem; line-height: 1; }
.jr-hero-emo { font-size: clamp(4rem, 12vw, 6rem); }
.jr-abc { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.jr-letter, .jr-wcard, .jr-sent { border: 3px solid var(--jr-line); background: #fff; border-radius: 18px; padding: .6rem; font: inherit; color: var(--jr-ink); cursor: pointer; display: grid; justify-items: center; gap: .15rem; text-align: center; box-shadow: 0 3px 0 var(--jr-line); }
.jr-letter:hover, .jr-wcard:hover, .jr-sent:hover { border-color: #2b8fd6; }
.jr-big { font-size: 1.9rem; font-weight: 800; color: var(--jr-tomato); }
.jr-word { font-weight: 800; font-size: 1.1rem; }
.jr-letter small, .jr-wcard small, .jr-sent small { color: var(--jr-soft); }
.jr-letter.is-pulse { animation: jr-pop .45s ease; border-color: var(--jr-mango); }
.jr-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.jr-tab { border: 2px solid var(--jr-line); background: #fff; border-radius: 999px; padding: .3rem .9rem; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; color: var(--jr-ink); }
.jr-tab[aria-selected="true"] { background: var(--jr-grape); border-color: var(--jr-grape); color: #fff; }
.jr-wordgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.jr-wcard b { font-size: 1.2rem; }
.jr-sentences { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.jr-sent b { font-size: 1.25rem; }
.jr-spell { display: flex; gap: .35rem; margin: 0; }
.jr-spell span { min-width: 1.4em; border-bottom: 4px solid var(--jr-ink); text-align: center; font-size: 2.2rem; font-weight: 800; }
.jr-big-inline { font-size: 2rem; color: var(--jr-tomato); }
.jr-built { min-height: 2.2em; font-size: 1.6rem; font-weight: 800; margin: 0; }
.jr-tiles { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.jr-tile { border: 3px solid var(--jr-mango); background: #fff8e6; border-radius: 12px; padding: .4rem .9rem; font: inherit; font-size: 1.3rem; font-weight: 800; cursor: pointer; color: var(--jr-ink); min-height: 48px; }
.jr-tile:disabled { opacity: .3; }
.jr-tip { margin-top: 1rem; color: var(--jr-soft); }
.jr-note-box { background: #fff; border-radius: 18px; padding: 1rem 1.2rem; margin-bottom: 2rem; color: var(--jr-soft); }


/* হাব পাতা: রোদেলা গ্রামের মানচিত্র */
.jr-map { position: relative; margin: .6rem 0 1.4rem; border-radius: 34px; overflow: hidden; box-shadow: 0 8px 0 #4f9f4b, 0 18px 40px rgb(36 50 74 / .12); }
.jr-map > svg { display: block; width: 100%; height: auto; }
.jr-map a { cursor: pointer; }
.jr-map a .jr-gate { transition: transform .2s ease; transform-box: fill-box; transform-origin: 50% 100%; }
.jr-map a:is(:hover, :focus-visible) .jr-gate { transform: translateY(-8px) scale(1.04); }
.jr-map a:focus-visible { outline: none; }
.jr-map a:focus-visible .jr-plank { stroke: #24324a; stroke-width: 6; }
.jr-map-title { position: absolute; left: clamp(1rem, 4vw, 2.6rem); top: clamp(.8rem, 3vw, 2rem); max-width: 46%; }
.jr-map-title h1 { font-size: clamp(2rem, 6.4vw, 4.4rem); line-height: 1; font-weight: 800; margin: 0; color: var(--jr-ink); text-shadow: 0 3px 0 #fff; }
.jr-map-title p { margin: .4rem 0 0; font-size: clamp(.9rem, 1.8vw, 1.2rem); font-weight: 600; color: #34465f; }
.jr-map-buddy { position: absolute; left: 47%; bottom: 23%; width: clamp(70px, 11vw, 130px); }
.jr-map-buddy .jr-buddy-svg { animation: jr-bob 2.6s ease-in-out infinite; }
.jr-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; padding-bottom: 1.5rem; }
.jr-door { --tint: #ef5b3b; display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; padding: 1.3rem 1.4rem; border-radius: 28px; color: var(--jr-ink); text-decoration: none; background: #fff; box-shadow: 0 7px 0 color-mix(in srgb, var(--tint) 55%, #fff); border: 3px solid color-mix(in srgb, var(--tint) 30%, #fff); }
.jr-door + .jr-door { --tint: #3fa7e0; }
.jr-door:hover, .jr-door:focus-visible { border-color: var(--tint); transform: translateY(-3px); }
.jr-door .jr-tile-ico { grid-row: span 3; }
.jr-door h2 { margin: 0; font-size: 1.7rem; font-weight: 800; }
.jr-door p { margin: 0; color: var(--jr-soft); }
.jr-door .jr-go { font-weight: 800; color: var(--tint); }
.jr-book { background: #fff; border-radius: 28px; padding: 1.2rem 1.4rem; margin-bottom: 1.6rem; display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; align-items: center; box-shadow: 0 6px 0 var(--jr-line); }
.jr-book h2 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.jr-book p { margin: 0; color: var(--jr-soft); }
.jr-stickers { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.jr-stickers span { font-size: 2.2rem; width: 62px; height: 62px; display: grid; place-items: center; background: #fff8e6; border: 3px dashed #f6c77d; border-radius: 50%; }
.jr-h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; margin: .5rem 0 1rem; }
.jr-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; padding-bottom: 2.5rem; }
.jr-step { background: #fff; border-radius: 22px; padding: 1.1rem 1.2rem; }
.jr-step h3 { margin: 0 0 .3rem; font-size: 1.25rem; }
.jr-step p { margin: 0; color: var(--jr-soft); }
.jr-note-box { background: #fff; border-radius: 18px; padding: 1rem 1.2rem; margin-bottom: 2rem; color: var(--jr-soft); }
.jr-tip { margin-top: 1rem; color: var(--jr-soft); }

@media (max-width: 700px) {
  .jr-scene { min-height: 0; border-radius: 24px; padding-bottom: 8.5rem; }
  .jr-bubble { left: 88%; max-width: 58vw; font-size: .95rem; }
  .jr-orchard { grid-template-columns: 1fr; }
  .jr-path span { width: 13px; height: 13px; border-width: 2px; }
  .jr-map-title { position: static; max-width: none; padding: 1rem 1.1rem 0; background: #d9f0ff; }
  .jr-map-buddy { display: none; }
  .jr-tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .jr-tile-ico { width: 58px; height: 58px; font-size: 2rem; }
  .jr-tile-link small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .jr *, .jr *::before, .jr *::after { animation: none !important; transition: none !important; }
}

/* ছবির আকার বড় করা */
.jr-group { font-size: clamp(2.2rem, 5vw, 2.8rem); max-width: 330px; }
.jr-obj { font-size: clamp(2.4rem, 6vw, 3rem); }
.jr-objs.is-dense .jr-obj { font-size: 2rem; }
.jr-array { font-size: clamp(1.8rem, 4.4vw, 2.3rem); }
.jr-share { font-size: 1.7rem; }
.jr-story .jr-sp { width: 1.5em; height: 1.5em; vertical-align: -0.4em; }
.jr-pattern { font-size: clamp(2.4rem, 6vw, 3rem); }
.jr-choice.is-long { font-size: clamp(1.1rem, 2.4vw, 1.45rem); overflow-wrap: normal; word-break: normal; padding: .3rem .5rem; }
