.magic-classroom-cta{margin-top:1.35rem;display:flex;flex-direction:column;align-items:flex-start;gap:.45rem}
.magic-classroom-cta a{display:inline-block;padding:.85rem 1.1rem;border-radius:16px;background:linear-gradient(135deg,#ef7b18,#f6a51d);color:#fff;font-weight:950;line-height:1.25;box-shadow:0 6px 0 #b94e07,0 12px 25px #d66a1828}
.magic-classroom-cta a:hover,.magic-classroom-cta a:focus{transform:translateY(-2px)}
.magic-classroom-cta b{margin-left:.45rem}.magic-classroom-cta small{color:#60766f;font-weight:800}
.magical-welcome{grid-template-columns:1fr auto}.magic-heading{align-self:center}.welcome-nona{grid-column:2;grid-row:1}
.lesson-cards{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem}
.lesson-cards button{overflow:hidden;padding:0;border:2px solid #ead9b7;border-radius:22px;background:#fff;text-align:left;color:#173d35;box-shadow:0 9px 22px #68441416;transition:.2s}
.lesson-cards button:hover,.lesson-cards button:focus{transform:translateY(-4px);border-color:#ef9a22;box-shadow:0 16px 28px #68441420}
.lesson-cards img{display:block;width:100%;height:155px;object-fit:cover}.lesson-cards span{display:block;padding:.8rem}
.lesson-cards .lesson-art{display:grid;height:155px;place-items:center;padding:0;background:linear-gradient(145deg,#ffe2a8,#ffd0dc);font-size:2.65rem;letter-spacing:.18em}
.lesson-cards .ocean-art{background:linear-gradient(145deg,#7ce0ef,#92bfff)}
.lesson-cards .library-art{background:radial-gradient(circle at 50% 35%,#fff1a5,#7c421d 72%,#2c1b25);color:#fff7c7;text-shadow:0 4px 12px #3c160f}
.lesson-cards .detective-art{background:radial-gradient(circle at 65% 32%,#ffd86b,#224a55 54%,#172733);color:#fff3b4;text-shadow:0 4px 12px #07171e}
.lesson-cards .shop-art{background:radial-gradient(circle at 50% 35%,#fff0a6,#da7933 58%,#6b321d);color:#fff;text-shadow:0 4px 12px #6b321d}
.lesson-cards .time-art{background:radial-gradient(circle at 50% 38%,#7cf3ff,#147685 45%,#59311c 78%);color:#fff4b5;text-shadow:0 4px 12px #063d49}
.lesson-cards small{display:grid;place-items:center;width:26px;height:26px;margin-bottom:.35rem;border-radius:50%;background:#f68118;color:#fff;font-weight:950}
.lesson-cards b,.lesson-cards em{display:block}.lesson-cards b{font-size:1.05rem}.lesson-cards em{margin-top:.2rem;color:#667b73;font-size:.78rem;font-style:normal;font-weight:700;line-height:1.35}
.magical-welcome .student-progress{grid-column:1/-1}.fallback-start{grid-column:1/-1;justify-self:start;border:0}
.visual-question{text-align:center}.visual-equation{display:flex;align-items:center;justify-content:center;gap:.35em;font-size:clamp(2.3rem,8vw,5.4rem);font-weight:950;line-height:1.05}
.visual-equation .a{color:#ff7a00}.visual-equation .b{color:#1a78cf}.visual-equation .op{color:#fff}.object-groups{display:flex;align-items:center;justify-content:center;gap:.6rem;flex-wrap:wrap;margin-bottom:.35rem}.object-group{display:flex;gap:.15rem;font-size:clamp(1.7rem,5vw,3.25rem)}.object-plus{font-size:2.3rem;color:#ffd13e}.star-strip{margin-top:.45rem;color:#ffd342;font-size:clamp(1.35rem,4vw,2.2rem);letter-spacing:.08em}.board.challenge-board{background:linear-gradient(145deg,#154f43,#103b52)}
.object-equation{display:flex;align-items:center;justify-content:center;gap:.5rem;min-height:82px;white-space:nowrap}.object-equals{color:#173d35;font-size:clamp(1.7rem,4vw,2.5rem)}
@media(max-width:900px){.lesson-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.magical-welcome{grid-template-columns:1fr}.welcome-nona{display:none}.lesson-cards{grid-template-columns:1fr 1fr}.lesson-cards img{height:105px}.lesson-cards span{padding:.6rem}.lesson-cards b{font-size:.9rem}.lesson-cards em{font-size:.7rem}}

/* ცოცხალი საკლასო სცენა — ყველა ბავშვი დაფისკენ იყურება */
.classroom{
  position:relative;display:block;overflow:hidden;width:min(980px,100%);min-height:0;margin:0 auto;
  aspect-ratio:16/10;border:5px solid #e6a441;border-radius:30px;
  background:#dff3ff url('numbers-forest-board.png') center/cover no-repeat;
  box-shadow:0 20px 44px #5f3b1829;
}
.classroom .teacher{display:none}
.classroom .board{
  position:absolute;z-index:2;left:33%;top:8.5%;width:58%;min-height:0;height:54%;
  margin:0;padding:.4rem .7rem;border:0;border-radius:0;
  background:transparent;color:#173d35;box-shadow:none;backdrop-filter:none;
  display:grid;grid-template-rows:auto auto minmax(82px,1fr) auto auto;align-content:stretch;overflow:hidden;
}
.classroom .board-top{margin:0 .4rem;padding:.38rem .65rem;color:#173f37;font-size:1.18rem;background:#fffffff2;border-radius:12px;font-weight:950}.classroom .progress{display:none}
.classroom .task-instruction{justify-self:center;margin:.38rem 0 .15rem;padding:.3rem .85rem;text-align:center;font-size:clamp(1rem,1.65vw,1.28rem);line-height:1.05;color:#fff;background:#1e6657;border-radius:999px;font-weight:950}.classroom .board h2{min-height:0;margin:0;color:#173d35;align-self:center}.classroom .visual-equation{font-size:clamp(1.8rem,3.3vw,3rem)}
.classroom .visual-equation .op{color:#294e48}.classroom .answers{grid-template-columns:repeat(4,1fr);width:64%;justify-self:center;align-self:start;margin-top:.65rem;gap:.42rem}.classroom .answers button{width:100%;min-height:0;aspect-ratio:1;padding:.1rem;font-size:clamp(1.05rem,1.7vw,1.25rem);border-width:2px;border-radius:16px;box-shadow:0 3px 0 #9b7318}
.classroom .object-equation{min-height:48px}.classroom .object-group{font-size:clamp(1.35rem,2.8vw,2.2rem)}.classroom .object-plus{color:#ef9d16;font-size:1.8rem}.classroom .board p{min-height:30px;margin:.38rem .35rem 0;padding:.28rem .45rem;color:#294e48;background:#ffffffe0;border-radius:10px;font-size:.92rem;line-height:1.2;text-align:center;font-weight:900}.classroom .next{padding:.4rem .7rem;background:#145747;color:#fff}
.classroom.lesson-addition .board,.classroom.lesson-subtraction .board,.classroom.lesson-objects .board,.classroom.lesson-stars .board{outline:0;background:transparent}
.classroom.lesson-bakery .board{left:34%;top:7%;width:56%;height:58%;outline:0;background:transparent}
.classroom.lesson-ocean .board{left:32%;top:7%;width:58%;height:58%;outline:0;background:transparent}
.classroom.lesson-ocean .object-equation{width:94%;max-width:94%;justify-self:center;justify-content:center;text-align:center;overflow:hidden;flex-wrap:nowrap}
.classroom.lesson-ocean .object-equation .object-group{display:flex;max-width:43%;justify-content:center;flex-wrap:wrap;font-size:clamp(.9rem,1.65vw,1.4rem);line-height:1.05}
.classroom.lesson-ocean .answers:has(button:nth-child(3):last-child){grid-template-columns:repeat(3,1fr);width:48%}
.classroom.lesson-library .board{left:29%;top:12%;width:58%;height:53%;padding:.25rem .75rem}
.classroom.lesson-library .board-top{background:transparent;color:#123f3d;padding:.2rem .5rem;font-size:1rem}
.classroom.lesson-library .task-instruction{margin:.2rem 0 0;padding:0;background:transparent;color:#123f3d;font-size:clamp(1.2rem,2vw,1.65rem)}
.classroom.lesson-library .visual-equation{font-size:clamp(2.4rem,4.7vw,4.15rem)}
.classroom.lesson-library .answers{width:68%;margin-top:.35rem}
.classroom.lesson-library .answers button,.classroom.lesson-library .answers button:nth-child(2n){background:#fff3cf;color:#123f3d;border-color:#c88a27;box-shadow:0 3px 0 #976019}
.classroom.lesson-library .board p{background:transparent;margin-top:.2rem}
.classroom.lesson-detective .board{left:32%;top:24%;width:46%;height:35%;padding:0 .3rem;grid-template-rows:auto auto minmax(58px,1fr) auto auto;overflow:visible}
.classroom.lesson-detective .board-top{margin:0 0 0 18%;background:transparent;color:#3b2418;padding:0;font-size:.92rem}
.classroom.lesson-detective .task-instruction{margin:.1rem 0 0;padding:0;background:transparent;color:#3b2418;font-size:clamp(1rem,1.6vw,1.3rem);transform:translateX(6%)}
.classroom.lesson-detective .visual-equation{font-size:clamp(2rem,4vw,3.45rem);color:#3b2418}
.classroom.lesson-detective .answers{width:72.5%;margin-top:.3rem;gap:0;transform:translateX(-13.5%)}
.classroom.lesson-detective .answers button,.classroom.lesson-detective .answers button:nth-child(2n){aspect-ratio:1;background:transparent!important;border:0!important;box-shadow:none!important;color:#352016;font-size:clamp(1.1rem,2vw,1.45rem);padding:0}
.classroom.lesson-detective .board p{position:absolute;left:12%;right:12%;top:102%;margin:0;background:#fff8e8e8;color:#3b2418;border:2px solid #c68a35}
.classroom.lesson-time .board{left:34%;top:23%;width:32%;height:35%;padding:0;grid-template-rows:auto auto minmax(58px,1fr) auto auto;overflow:visible}
.classroom.lesson-time .board-top{margin:0;background:transparent;color:#123f52;padding:0;font-size:.9rem;transform:translateY(14px)}
.classroom.lesson-time .task-instruction{margin:.1rem 0 0;padding:0;background:transparent;color:#123f52;font-size:clamp(1rem,1.55vw,1.25rem);transform:translateY(12px)}
.classroom.lesson-time .visual-equation{font-size:clamp(2.1rem,4.2vw,3.6rem);color:#123f52}
.classroom.lesson-time .answers{position:absolute;left:0;top:68%;width:100%;height:29%;margin:0;gap:0;align-items:center}
.classroom.lesson-time .answers button,.classroom.lesson-time .answers button:nth-child(2n){display:grid;place-items:center;width:100%;height:100%;aspect-ratio:auto;background:transparent!important;border:0!important;box-shadow:none!important;color:#123f52;font-size:clamp(1.05rem,1.85vw,1.4rem);line-height:1;padding:0;transform:none!important}
.classroom.lesson-time .next{position:absolute;left:30%;top:105%;width:40%;padding:.28rem .5rem;z-index:4}
.classroom.lesson-time .board p{position:absolute;left:12%;right:12%;top:124%;min-height:0;margin:0;padding:.12rem .25rem;background:#effffff0;color:#123f52;border:2px solid #20a7b8;z-index:3}
.classroom.lesson-shop .board{left:47%;top:4%;width:42%;height:69%;padding:.25rem .55rem;grid-template-rows:auto auto auto minmax(130px,1fr) auto auto;overflow:hidden}
.classroom.lesson-shop .board-top{background:transparent;color:#5a351e;padding:.2rem .3rem;font-size:clamp(.82rem,1.2vw,1rem)}
.classroom.lesson-shop .task-instruction{margin:.1rem 0;padding:.12rem;background:transparent;color:#7b431e;font-size:clamp(1rem,1.55vw,1.3rem)}
.classroom.lesson-shop .visual-question{align-self:start;display:block;min-height:0;width:100%;color:#4b2d1b}
.classroom.lesson-shop .shop-items{display:flex;align-items:center;justify-content:center;gap:clamp(.35rem,1vw,.8rem);margin:.15rem auto .25rem}
.classroom.lesson-shop .shop-items span{display:grid;grid-template-rows:auto auto auto;min-width:31%;padding:.22rem .35rem;background:#fff8e6d9;border:2px solid #d9a34d;border-radius:14px;box-shadow:0 3px 0 #a56a25}
.classroom.lesson-shop .shop-items b{font-size:clamp(1.65rem,3vw,2.7rem);line-height:1}.classroom.lesson-shop .shop-items em{font-size:clamp(.72rem,1.05vw,.92rem);font-style:normal;font-weight:900}.classroom.lesson-shop .shop-items strong{font-size:clamp(.7rem,1vw,.88rem);color:#9a4f18}.classroom.lesson-shop .shop-items i{font-style:normal;font-size:1.5rem;color:#e09a20;font-weight:1000}
.classroom.lesson-shop .shop-question{margin:.35rem auto 0;max-width:94%;font-size:clamp(.85rem,1.35vw,1.18rem);line-height:1.25;font-weight:1000;color:#4b2d1b}.classroom.lesson-shop .shop-payment{font-size:clamp(.72rem,1vw,.9rem);font-weight:900;color:#7b431e}
.classroom.lesson-shop .answers{width:66%;margin-top:.25rem;gap:.35rem}.classroom.lesson-shop .answers button,.classroom.lesson-shop .answers button:nth-child(2n){aspect-ratio:auto;min-height:44px;padding:.25rem .4rem;background:linear-gradient(#ffd970,#e9a827);border-color:#b16a18;color:#4b2d1b;box-shadow:0 3px 0 #8c5014;border-radius:999px;font-size:clamp(.82rem,1.25vw,1.05rem)}
.classroom.lesson-shop .board p{min-height:24px;margin:.18rem auto 0;padding:.18rem .35rem;background:transparent;color:#5a351e;font-size:.78rem}
.classroom.lesson-addition .progress i{background:#ff982b}.classroom.lesson-subtraction .progress i{background:#3199e0}.classroom.lesson-objects .progress i{background:#51b85e}.classroom.lesson-stars .progress i{background:#9a62d9}
/* მოძრაობის/ოვაციის მართვა ფოტოს აღარ ფარავს */
body .motion-toggle{position:static!important;display:inline-block;width:max-content;margin:0;left:auto!important;bottom:auto!important}
@media(max-width:760px){
  .classroom{width:min(520px,100%);aspect-ratio:4/5;min-height:0;background-image:url('numbers-forest-board-mobile.png');background-size:cover;background-position:center 18%}
  /* მთელი სავარჯიშო დაფის თეთრ სამუშაო სივრცეში რჩება */
  .classroom .board{left:24%;top:7%;width:70%;height:58%;max-height:none;margin:0;padding:0 .35rem;background:transparent;display:grid;grid-template-rows:auto auto minmax(68px,1fr) auto auto;overflow:hidden}
  .classroom .board-top{margin:0 .15rem;padding:.25rem .4rem;font-size:.92rem;line-height:1.15}
  .classroom .task-instruction{font-size:.86rem;margin:.25rem 0 .08rem;padding:.24rem .6rem}.classroom .board h2{min-height:0;margin:0;line-height:1}
  .classroom .visual-equation{font-size:clamp(1.5rem,7.5vw,2.45rem)}
  .classroom .object-groups{gap:.28rem;margin-bottom:.12rem;flex-wrap:nowrap}
  .classroom .object-equation{gap:.22rem;min-height:54px}
  .classroom .object-equals{font-size:1.4rem}
  .classroom .object-group{gap:.05rem;font-size:1.15rem}
  .classroom .object-plus{font-size:1.35rem}
  .classroom .star-strip{margin-top:.12rem;font-size:1.05rem}
  .classroom .answers{grid-template-columns:repeat(4,1fr);width:76%;justify-self:center;align-self:start;margin-top:.4rem;gap:.2rem}
  .classroom .answers button{width:100%;min-height:0;aspect-ratio:1;padding:.05rem;font-size:.86rem;border-width:2px;border-radius:11px;box-shadow:0 2px 0 #9b7318}
  .classroom .board p{flex:0 0 auto;min-height:22px;max-height:30px;margin:.18rem 0 .08rem;font-size:.72rem;line-height:1.15;text-align:center;overflow:hidden}
  .classroom .next{align-self:flex-end;float:none;padding:.32rem .58rem;font-size:.8rem;line-height:1.15}
  .classroom.lesson-bakery .board{left:28%;top:6%;width:64%;height:60%}
  .classroom.lesson-ocean .board{left:27%;top:6%;width:66%;height:60%}
  .classroom.lesson-ocean .object-equation{width:96%;max-width:96%;font-size:1.15rem}
  .classroom.lesson-ocean .object-equation .object-group{max-width:43%;font-size:.78rem}
  .classroom.lesson-ocean .answers:has(button:nth-child(3):last-child){width:58%}
  .classroom.lesson-library .board{left:18%;top:22%;width:72%;height:45%;padding:0 .25rem}
  .classroom.lesson-library .board-top{font-size:.78rem;padding:.12rem .2rem}
  .classroom.lesson-library .task-instruction{font-size:.9rem;margin:.1rem 0 0}
  .classroom.lesson-library .visual-equation{font-size:clamp(1.7rem,8vw,2.4rem)}
  .classroom.lesson-library .answers{width:74%;margin-top:.2rem}
  .classroom.lesson-detective .board{left:19%;top:25%;width:66%;height:34%;padding:0 .15rem;grid-template-rows:auto auto minmax(55px,1fr) auto auto}
  .classroom.lesson-detective .board-top{font-size:.72rem}
  .classroom.lesson-detective .task-instruction{font-size:.78rem;margin:.08rem 0 0;transform:translateX(3%)}
  .classroom.lesson-detective .visual-equation{font-size:clamp(1.55rem,7vw,2.25rem)}
  .classroom.lesson-detective .answers{width:61%;gap:0;margin-top:.15rem;transform:translateX(-2%)}
  .classroom.lesson-detective .answers button{font-size:.82rem}
  .classroom.lesson-detective .board p{top:103%;font-size:.64rem}
  .classroom.lesson-time .board{left:30%;top:28%;width:40%;height:31%;padding:0;grid-template-rows:auto auto minmax(48px,1fr) auto auto}
  .classroom.lesson-time .board-top{font-size:.68rem;transform:translateY(8px)}
  .classroom.lesson-time .task-instruction{font-size:.75rem;margin:.05rem 0 0;transform:translateY(7px)}
  .classroom.lesson-time .visual-equation{font-size:clamp(1.45rem,7vw,2.15rem)}
  .classroom.lesson-time .answers{left:0;top:72%;width:100%;height:24%;gap:0;margin:0}
  .classroom.lesson-time .answers button{font-size:.82rem}
  .classroom.lesson-time .next{left:27%;top:101%;width:46%;font-size:.7rem;padding:.2rem .35rem}
  .classroom.lesson-time .board p{left:8%;right:8%;top:118%;font-size:.62rem}
  .classroom.lesson-shop .board{left:28%;top:9%;width:65%;height:59%;padding:.05rem .28rem;grid-template-rows:auto auto auto minmax(105px,1fr) auto auto}
  .classroom.lesson-shop .board-top{font-size:.72rem;padding:.08rem .15rem}
  .classroom.lesson-shop .task-instruction{font-size:.8rem;margin:.04rem 0;padding:.05rem}
  .classroom.lesson-shop .shop-items{gap:.22rem;margin:.05rem auto .12rem}.classroom.lesson-shop .shop-items span{min-width:34%;padding:.12rem .2rem;border-radius:9px;box-shadow:0 2px 0 #a56a25}.classroom.lesson-shop .shop-items b{font-size:1.45rem}.classroom.lesson-shop .shop-items em,.classroom.lesson-shop .shop-items strong{font-size:.62rem}.classroom.lesson-shop .shop-items i{font-size:1rem}
  .classroom.lesson-shop .shop-question{margin:.18rem auto 0;font-size:.74rem;line-height:1.18}.classroom.lesson-shop .shop-payment{font-size:.62rem}
  .classroom.lesson-shop .answers{width:72%;margin-top:.12rem;gap:.18rem}.classroom.lesson-shop .answers button{min-height:34px;font-size:.72rem;padding:.08rem .2rem}
  .classroom.lesson-shop .board p{font-size:.62rem;margin:.08rem 0 0;padding:.08rem}
}
#classroom.lesson-library{background-image:url('library-board.png')!important;background-size:cover!important;background-position:center!important}
#classroom.lesson-detective{background-image:url('detective-board.png')!important;background-size:cover!important;background-position:center!important}
#classroom.lesson-time{background-image:url('time-machine-board.png')!important;background-size:cover!important;background-position:center!important}
#classroom.lesson-shop{background-image:url('magic-shop-board.png')!important;background-size:cover!important;background-position:center!important}
@media(max-width:760px){
  #classroom.lesson-library{background-image:url('library-board-mobile.png')!important;background-size:cover!important;background-position:center!important}
  #classroom.lesson-detective{background-image:url('detective-board-mobile.png')!important;background-size:cover!important;background-position:center!important}
  #classroom.lesson-time{background-image:url('time-machine-board-mobile.png')!important;background-size:cover!important;background-position:center!important}
  #classroom.lesson-shop{background-image:url('magic-shop-board-mobile.png')!important;background-size:cover!important;background-position:center!important}
}
