/* ============================================================
   Jocurile de științe (joc-stiinte.js). Toate clasele încep cu js-.
   ============================================================ */

/* ---------- scena, cerința, punctele ---------- */
.js-scena { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 940px; margin: 0 auto; }
.js-cerinta { margin: 0; padding: 10px 16px; border-radius: 16px; background: var(--albastru-pal); font-size: clamp(1.05rem, 2.6vw, 1.35rem); font-weight: 800; line-height: 1.35; text-align: center; min-height: 1.6em; max-width: 100%; }
.js-puncte { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.js-punct { width: 16px; height: 16px; border: 3px solid var(--linie); border-radius: 50%; background: #fff; }
.js-punct--plin { border-color: var(--verde); background: var(--verde); animation: js-pop 0.4s; }
@keyframes js-pop { 50% { transform: scale(1.6); } }

/* ---------- tava și cartonașele ---------- */
.js-tava { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 92px; padding: 10px; border: 3px dashed #f0c96a; border-radius: 20px; background: #fff8e6; }
.js-piesa {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 64px; min-height: 64px; padding: 6px 10px;
  border: 3px solid var(--albastru); border-radius: 18px; background: #fff; box-shadow: 0 4px 0 var(--linie);
  color: var(--cerneala); text-align: center;
}
.js-piesa__e { font-size: 2.4rem; line-height: 1.1; }
.js-piesa__nume { max-width: 9em; font-size: 1rem; font-weight: 800; line-height: 1.15; }
.js-piesa--mare .js-piesa__e { font-size: 3rem; }
.js-ales { outline: 4px solid var(--galben); outline-offset: 3px; background: #fffbea; }
.js-intra { animation: js-intra 0.5s cubic-bezier(0.3, 1.5, 0.6, 1) backwards; }
@keyframes js-intra { from { opacity: 0; transform: translateY(-36px) scale(0.3); } }
.js-piesa--pusa { min-width: 50px; min-height: 50px; padding: 2px 6px; box-shadow: none; border-color: var(--verde); animation: js-pune 0.35s ease-out; }
.js-piesa--pusa .js-piesa__e { font-size: 1.8rem; }
.js-piesa--pusa .js-piesa__nume { display: none; }
@keyframes js-pune { from { transform: scale(1.5); opacity: 0.4; } }
.js-piesa--absorbita { position: absolute; left: 50%; top: 40%; translate: -50% -50%; animation: js-absorbit 0.7s ease-in forwards; pointer-events: none; }
@keyframes js-absorbit { to { transform: scale(0.2); opacity: 0; } }

/* ---------- eticheta pe desen ---------- */
.js-etichete__corp { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; width: 100%; }
.js-harta { position: relative; width: min(var(--lat, 380px), 100%); border-radius: 18px; background: #fff; box-shadow: 0 3px 0 var(--linie); }
.js-harta svg { display: block; width: 100%; height: auto; border-radius: 18px; }
.js-harta .schema__zone [data-parte].js-gasit { opacity: 0.28; fill: #3fc07a; stroke: #3fc07a; }
.js-harta .schema__zone [data-parte].aprins { opacity: 0.45; fill: #ff8c00; stroke: #ff8c00; }
.js-tava--una { width: auto; min-width: 150px; min-height: 96px; }
.js-etichete--inalt .js-etichete__corp { flex-wrap: nowrap; }
.js-etichete--inalt .js-harta { width: min(var(--lat), 64%); flex: 0 1 auto; }
.js-etichete--inalt .js-tava--una { flex: 0 1 150px; min-width: 0; padding: 8px; }
.js-pus {
  position: absolute; z-index: 2; translate: -50% -50%; padding: 1px 7px;
  border: 2px solid var(--verde); border-radius: 10px; background: #fff; color: #17783f;
  font-size: clamp(0.68rem, 1.8vw, 0.95rem); font-weight: 800; white-space: nowrap; pointer-events: none;
  animation: js-pune 0.4s ease-out;
}
.js-pus--mare { padding: 0; border: 0; background: none; font-size: clamp(1.9rem, 6vw, 3.2rem); filter: drop-shadow(0 0 8px #ffd65a); }
.js-harta--gata { animation: js-gata 0.8s; }
@keyframes js-gata { 50% { transform: scale(1.04); } }
.js-cer { fill: #cfe8ff; transition: fill 0.8s; }

/* ---------- sortarea ---------- */
.js-cutii { display: flex; gap: 10px; width: 100%; }
.js-cutie {
  --c: var(--albastru); --cp: var(--albastru-pal);
  display: flex; flex: 1 1 0; flex-direction: column; min-width: 0; min-height: 150px; padding: 8px;
  border: 4px solid var(--c); border-radius: 0 0 22px 22px; border-top-width: 10px; background: var(--cp);
}
.js-cutie--1 { --c: #e0731f; --cp: #fff1e3; }
.js-cutie--2 { --c: #8e44ad; --cp: #f6ebfb; }
.js-cutie__cap { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.js-cutie__e { font-size: 2.2rem; line-height: 1.1; }
.js-cutie__nume { font-size: clamp(0.85rem, 2.4vw, 1.15rem); font-weight: 900; line-height: 1.15; overflow-wrap: break-word; color: var(--c); }
.js-cutie__continut { display: flex; flex: 1; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 6px; padding-top: 8px; }
.js-cutie--salt { animation: js-salt 0.45s; }
@keyframes js-salt { 40% { transform: scale(1.05) translateY(-4px); } }
.js-cutie--gata { animation: js-gata 0.8s; box-shadow: 0 0 0 4px #ffd65a; }
.js-inoata { animation: js-pune 0.35s ease-out, js-inoata 1.6s 0.4s ease-in-out infinite alternate; }
@keyframes js-inoata { to { transform: translateX(10px); } }
.js-porneste { box-shadow: 0 0 14px 4px #ffd65a; }
.js-pleaca { animation: js-pune 0.35s ease-out, js-pleaca 1.2s 0.4s ease-in-out; }
@keyframes js-pleaca { 50% { transform: translateX(14px); } }
.js-aterizeaza-repede { animation: js-ateriz-repede 0.35s ease-in; }
@keyframes js-ateriz-repede { from { transform: translateY(-120px); } }
.js-aterizeaza-incet { animation: js-ateriz-incet 1.8s ease-out; }
@keyframes js-ateriz-incet { 0% { transform: translate(0, -120px) rotate(0); } 30% { transform: translate(12px, -80px) rotate(12deg); } 60% { transform: translate(-12px, -36px) rotate(-12deg); } }

/* ---------- etapele în ordine ---------- */
.js-sloturi { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; width: 100%; }
.js-slot { position: relative; display: grid; place-items: center; min-height: 116px; padding: 8px 4px 4px; border: 3px dashed var(--albastru); border-radius: 18px; background: var(--albastru-pal); }
.js-slot__nr { position: absolute; top: -12px; left: -8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--albastru); color: #fff; font-weight: 900; }
.js-slot--plin { border-style: solid; border-color: var(--verde); background: var(--verde-pal); }
.js-slot .js-piesa--pusa .js-piesa__nume { display: block; font-size: 0.8rem; }
.js-slot--arata { animation: js-arata 0.6s ease-in-out backwards; }
@keyframes js-arata { 50% { transform: scale(1.1); box-shadow: 0 0 0 5px #ffd65a; } }

/* ---------- ce îi trebuie plantei / copilului ---------- */
.js-daruri__tinta { position: relative; display: grid; place-items: center; min-width: 170px; min-height: 190px; padding: 6px 18px; border: 4px dashed #8fce7a; border-radius: 26px; background: #f2fbea; }
.js-ghiveci svg { display: block; width: 160px; height: 200px; }
.js-ghiveci--creste svg { animation: js-creste 0.7s ease-out; transform-origin: 50% 100%; }
@keyframes js-creste { from { transform: scaleY(0.75); } }
.js-copil-creste { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.js-copil-creste__e { font-size: 4.2rem; line-height: 1; transition: font-size 0.6s; }
.js-copil-creste__os { font-size: 1.4rem; letter-spacing: 2px; }

/* ---------- memoria ---------- */
.js-grila { display: grid; grid-template-columns: repeat(4, minmax(0, 120px)); justify-content: center; gap: 10px; width: 100%; }
.js-carte { position: relative; display: grid; place-items: center; min-height: 104px; padding: 6px 4px; border: 3px solid var(--albastru); border-radius: 16px; background: linear-gradient(150deg, #5c9bf5, var(--albastru)); color: #fff; font: inherit; cursor: pointer; box-shadow: 0 4px 0 var(--albastru-inchis); }
.js-carte__spate { font-size: 2.4rem; font-weight: 900; }
.js-carte__fata { display: none; flex-direction: column; align-items: center; gap: 2px; }
.js-carte__e { font-size: 2.2rem; line-height: 1.1; }
.js-carte__t { font-size: clamp(0.72rem, 2vw, 0.95rem); font-weight: 800; line-height: 1.15; overflow-wrap: break-word; }
.js-carte--intoarsa { background: #fff; color: var(--cerneala); animation: js-intoarce 0.3s ease-out; }
.js-carte--intoarsa .js-carte__spate { display: none; }
.js-carte--intoarsa .js-carte__fata { display: flex; }
@keyframes js-intoarce { from { transform: scaleX(0); } }
.js-carte--gasita { border-color: var(--verde); background: var(--verde-pal); box-shadow: 0 4px 0 #17783f; }

/* ---------- obiectul pe locul potrivit ---------- */
.js-tinte { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
.js-tinta { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 112px; min-height: 140px; padding: 10px; border: 3px dashed var(--albastru); border-radius: 20px; background: #fff; }
.js-tinta__desen { position: relative; display: flex; align-items: center; justify-content: center; gap: 2px; min-height: 80px; }
.js-tinta__e, .js-ob, .js-ob-dupa { font-size: 3.4rem; line-height: 1; }
.js-tinta__nume { font-size: 1rem; font-weight: 800; text-align: center; }
.js-tinta--bine { border-style: solid; border-color: var(--verde); background: var(--verde-pal); }
.js-piesa--pe { position: absolute; top: -20px; right: -16px; scale: 0.8; box-shadow: none; }
.js-efect--soare .js-piesa--pe { top: -34px; right: auto; left: 50%; translate: -50% 0; border-color: #f0a020; background: #fff6d5; }
.js-efect--soare .js-tinta { margin-top: 16px; }
.js-ob-dupa { display: none; }
.js-tinta--efect .js-ob:not(.js-ob--ramane) { animation: js-topeste 0.9s ease-in forwards; }
.js-tinta--efect .js-ob-dupa { display: inline; animation: js-apare 0.6s 0.8s ease-out backwards; }
@keyframes js-topeste { to { transform: scale(0.2) translateY(30px); opacity: 0; width: 0; } }
@keyframes js-apare { from { transform: scale(0); } }
.js-picaturi { position: absolute; right: -10px; bottom: -6px; font-size: 1.2rem; transition: opacity 1.4s 0.3s, transform 1.4s 0.3s; }
.js-tinta--efect .js-picaturi { opacity: 0; transform: translateY(-30px); }
.js-congelator { position: relative; display: grid; place-items: center; width: 74px; height: 92px; border: 4px solid #8fb7e8; border-radius: 12px; background: linear-gradient(#f2f8ff, #d6e8ff); }
.js-congelator__usa { font-size: 2.6rem; }
.js-tinta__e--soare { filter: drop-shadow(0 0 10px #ffc107); }
.js-transforma { display: inline-block; animation: js-transforma 0.9s ease-in-out; }
@keyframes js-transforma { 50% { transform: scale(0.2) rotate(180deg); } }
.js-efect--surse .js-tinta { width: min(420px, 100%); }
.js-instalatie { display: block; width: 100%; height: auto; }
.js-geam { fill: #6b7a8f; transition: fill 0.5s 0.6s; }
.js-pornit .js-geam { fill: #ffd84a; }
.js-pornit .js-elice { animation: js-gira 0.9s linear infinite; }
@keyframes js-gira { to { transform: rotate(360deg); } }
.js-lac { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0.15); transition: transform 0.8s; }
.js-pornit .js-lac { transform: scaleY(1); }
.js-cascada { opacity: 0; stroke-dasharray: 10 8; transition: opacity 0.4s 0.5s; }
.js-pornit .js-cascada { opacity: 1; animation: js-curent 0.6s linear infinite; }
@keyframes js-curent { to { stroke-dashoffset: -18; } }
.js-pornit .js-roata { animation: js-gira 1s 0.6s linear infinite; }
.js-auto { transition: transform 1.3s 0.3s ease-in; }
.js-pornit .js-auto { transform: translateX(170px); }
.js-flacari { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transition: opacity 0.4s; }
.js-pornit .js-flacari { opacity: 1; animation: js-flacara 0.4s ease-in-out infinite alternate; }
@keyframes js-flacara { to { transform: scaleY(1.2); } }
.js-cald { opacity: 0; transition: opacity 0.5s 0.8s; }
.js-frig { transition: opacity 0.5s 0.8s; }
.js-pornit .js-cald { opacity: 1; }
.js-pornit .js-frig { opacity: 0; }

/* ---------- curtea cu animale ---------- */
.js-curte { position: relative; width: 100%; height: 320px; overflow: hidden; border-radius: 22px; background: linear-gradient(#bfe3ff, #e6f4ff 36%); box-shadow: 0 3px 0 var(--linie); }
.js-curte__iarba { position: absolute; left: 0; right: 0; top: 36%; height: 40%; background: linear-gradient(#9bd77f, #78c25c); }
.js-curte__apa { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(#6bb8f2, #3f8fd8); }
.js-umbla { position: absolute; left: 1%; animation: js-plimba var(--d, 8s) ease-in-out infinite alternate; }
@keyframes js-plimba { to { left: calc(99% - 64px); } }
.js-umbla--oprit { animation-play-state: paused; }
.js-animal { display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: hsl(0 0% 100% / 0.35); font-size: 2.6rem; line-height: 1; cursor: pointer; }
.js-animal--gasit { background: #fff6d5; box-shadow: 0 0 0 4px var(--verde); animation: js-sare 0.6s ease-out 2; }
@keyframes js-sare { 50% { transform: translateY(-24px); } }

/* ---------- la soare ---------- */
.js-plaja__loc { position: relative; display: flex; align-items: flex-end; justify-content: space-evenly; gap: 10px; width: 100%; min-height: 230px; padding: 34px 10px 12px; border-radius: 22px; background: linear-gradient(#9fd8ff 0 55%, #f7dc9c 55%); }
.js-plaja__soare { position: absolute; top: 6px; left: 12px; font-size: 3rem; animation: js-straluceste 2s ease-in-out infinite alternate; }
@keyframes js-straluceste { to { filter: drop-shadow(0 0 14px #ffc107); } }
.js-plaja__copil { position: relative; display: grid; place-items: center; min-width: 120px; min-height: 140px; border-radius: 22px; }
.js-plaja__fata { font-size: 6rem; line-height: 1; }
.js-plaja__pus { position: absolute; left: 50%; translate: -50% 0; line-height: 1; animation: js-pune 0.4s ease-out; pointer-events: none; }
.js-plaja__pus--cap { top: -14px; font-size: 3.6rem; }
.js-plaja__pus--ochi { top: 64px; font-size: 2.4rem; }
.js-plaja__pus--mana { top: auto; bottom: 0; left: auto; right: -12px; translate: 0 0; font-size: 2.4rem; }
.js-plaja__umbra { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 130px; min-height: 180px; padding: 6px; border: 3px dashed #3f9a3f; border-radius: 22px; background: radial-gradient(ellipse at 50% 92%, hsl(120 30% 30% / 0.35) 0 40%, transparent 42%); }
.js-plaja__copac { font-size: 4.6rem; line-height: 1; }
.js-plaja__eticheta { order: -1; font-size: 0.95rem; font-weight: 800; }
.js-plaja__umbra .js-plaja__copil { min-height: 0; }
.js-plaja__umbra .js-plaja__fata { font-size: 3.6rem; }
.js-plaja__umbra .js-plaja__pus--cap { top: -26px; font-size: 2.2rem; }
.js-plaja__umbra .js-plaja__pus--ochi { top: 20px; font-size: 1.5rem; }
.js-plaja__umbra .js-plaja__pus--mana { font-size: 1.5rem; }

/* ---------- laboratorul cu apă ---------- */
.js-lab { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 16px; width: 100%; min-height: 220px; padding: 10px; border-radius: 22px; background: #f4f8fd; }
.js-tava--lab:empty { display: none; }
.js-lab > svg { display: block; width: min(260px, 80%); height: auto; }
.js-lab__abur, .js-lab__capac, .js-lab__picaturi, .js-lab__foc, .js-lab__bule { opacity: 0; transition: opacity 0.5s; }
.js-lab--foc .js-lab__foc { opacity: 1; animation: js-flacara-mica 0.35s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes js-flacara-mica { to { transform: scaleY(1.3); } }
.js-lab--fierbe .js-lab__bule { opacity: 1; }
.js-lab--fierbe .js-lab__bule circle { animation: js-bula 0.9s ease-in infinite; }
.js-lab--fierbe .js-lab__bule circle:nth-child(2) { animation-delay: 0.3s; }
.js-lab--fierbe .js-lab__bule circle:nth-child(3) { animation-delay: 0.55s; }
.js-lab--fierbe .js-lab__bule circle:nth-child(4) { animation-delay: 0.15s; }
@keyframes js-bula { to { transform: translateY(-40px); opacity: 0; } }
.js-lab--fierbe .js-lab__abur { opacity: 0.9; animation: js-abur 1.6s ease-in-out infinite alternate; }
@keyframes js-abur { to { transform: translateY(-6px); opacity: 0.4; } }
.js-lab--capac .js-lab__capac { opacity: 1; }
.js-lab--capac .js-lab__abur { opacity: 0; animation: none; }
.js-lab--picaturi .js-lab__picaturi { opacity: 1; }
.js-lab__buton { display: inline-flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 18px; border: 3px solid #e0731f; border-radius: 999px; background: #fff1e3; color: var(--cerneala); font: inherit; font-size: 1.15rem; font-weight: 800; cursor: pointer; }
.js-lab__buton-e { font-size: 2rem; }
.js-lab__buton:disabled { opacity: 0.6; cursor: default; }
.js-capac { display: block; width: 90px; height: 14px; margin: 14px 4px 6px; border-radius: 7px; background: #8d99ae; box-shadow: 0 -8px 0 -2px #5c677d inset; }
.js-sarma, .js-cos, .js-frigider, .js-masa { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 130px; min-height: 170px; padding: 8px; border: 3px dashed var(--albastru); border-radius: 18px; background: #fff; }
.js-sarma { min-width: 170px; background: linear-gradient(#cfeaff, #fff); }
.js-sarma__soare { position: absolute; top: 4px; right: 8px; font-size: 2.2rem; }
.js-sarma__fir { position: absolute; top: 56px; left: 10px; right: 10px; height: 3px; background: #6b7280; }
.js-sarma__eticheta { font-size: 0.95rem; font-weight: 800; text-align: center; }
.js-cos__e { font-size: 3.4rem; }
.js-tricou { position: relative; display: block; }
.js-tricou__e { font-size: 2.6rem; }
.js-tricou__apa { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; font-size: 0.9rem; letter-spacing: 2px; transition: opacity 2s, transform 2s; }
.js-piesa--pe-sarma { position: absolute; top: 48px; left: 50%; translate: -50% 0; border-color: var(--verde); }
.js-piesa--uscat .js-tricou__apa { opacity: 0; transform: translateY(-24px); }
.js-frigider { min-height: 190px; border: 4px solid #8fb7e8; border-radius: 14px; background: linear-gradient(#f2f8ff, #d6e8ff); }
.js-frigider__maner { position: absolute; top: 20px; right: 10px; width: 8px; height: 50px; border-radius: 4px; background: #8fb7e8; }
.js-masa__blat { display: block; width: 120px; height: 14px; border-radius: 6px; background: #a8784a; }
.js-pahar { position: relative; display: block; width: 46px; height: 62px; margin: 4px; border: 3px solid #8fb7e8; border-top: 0; border-radius: 0 0 10px 10px; background: hsl(210 80% 96% / 0.6); }
.js-pahar__apa { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; border-radius: 0 0 8px 8px; background: #9fd0f7; }
.js-pahar__picaturi { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle, #2f8fe8 0 2px, transparent 3px) 0 0 / 11px 13px; transition: opacity 1.6s; }
.js-pahar--aburit .js-pahar__picaturi { opacity: 0.85; }

/* ---------- căderea de pe balcon ---------- */
.js-turn { position: relative; width: min(520px, 100%); height: 320px; overflow: hidden; border-radius: 22px; background: linear-gradient(#cfe8ff, #f2f8ff); }
.js-turn__balcon { position: absolute; top: 96px; left: 0; right: 0; height: 10px; background: #8a5a2b; }
.js-turn__jos { position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: #8fce7a; }
.js-turn__col { position: absolute; top: 10px; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 40%; }
.js-turn__col--0 { left: 5%; }
.js-turn__col--1 { right: 5%; }
.js-cazator { display: grid; place-items: center; width: 84px; height: 84px; padding: 0; border: 3px solid var(--albastru); border-radius: 22px; background: #fff; font-size: 3rem; line-height: 1; cursor: pointer; }
.js-turn__nume { position: relative; z-index: 1; margin-bottom: 8px; padding: 2px 10px; border-radius: 10px; background: #fff; font-size: 1rem; font-weight: 800; text-align: center; }
.js-cade-repede { animation: js-cade var(--d) ease-in forwards; }
@keyframes js-cade { to { transform: translateY(176px); } }
.js-cade-incet { animation: js-cade-incet var(--d) linear forwards; }
@keyframes js-cade-incet {
  25% { transform: translate(18px, 44px) rotate(14deg); }
  50% { transform: translate(-18px, 88px) rotate(-14deg); }
  75% { transform: translate(18px, 132px) rotate(14deg); }
  100% { transform: translate(0, 176px) rotate(0); }
}

/* ---------- camera întunecată ---------- */
.js-camera { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(520px, 100%); padding: 18px; border-radius: 22px; background: #1b2238; transition: background 0.8s; }
.js-lucru { display: grid; place-items: center; min-height: 84px; padding: 0; border: 3px solid #36405e; border-radius: 18px; background: #262f4a; font-size: 2.8rem; line-height: 1; cursor: pointer; filter: brightness(0.35); transition: filter 0.8s, background 0.8s; }
.js-camera--luminata { background: radial-gradient(circle at 50% 40%, #fff8d6, #f3e4b5 70%); }
.js-camera--luminata .js-lucru { background: #fffdf2; border-color: #e8d9a8; filter: none; }
.js-lucru--aprins { box-shadow: 0 0 22px 8px #ffd65a; }

/* ---------- instrumentele ---------- */
.js-instrument { position: relative; display: grid; place-items: center; width: min(440px, 100%); padding: 10px; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 3px 0 var(--linie); cursor: pointer; }
.js-instrument svg { display: block; width: 100%; height: auto; max-height: 260px; overflow: visible; }
.js-vibreaza--acum { animation: js-vibra 0.07s linear 16 alternate; }
@keyframes js-vibra { from { transform: translateY(-2px); } to { transform: translateY(2px); } }
.js-vibreaza--piele.js-vibreaza--acum { animation-name: js-vibra-piele; }
@keyframes js-vibra-piele { from { transform: scaleY(0.82); } to { transform: scaleY(1.14); } }
.js-vibreaza--clopot.js-vibreaza--acum { animation: js-vibra-clopot 0.12s linear 12 alternate; }
@keyframes js-vibra-clopot { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.js-vibreaza--rigla.js-vibreaza--acum { animation: js-vibra-rigla 0.07s linear 18 alternate; }
@keyframes js-vibra-rigla { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.js-unda-sunet { position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border: 4px solid var(--albastru); border-radius: 50%; opacity: 0; pointer-events: none; animation: js-unda 1.6s ease-out forwards; }
.js-unda-sunet--mereu { animation-iteration-count: infinite; animation-duration: 2.4s; }
@keyframes js-unda { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(3.6); opacity: 0; } }

/* ---------- aproape sau departe ---------- */
.js-curte-sunet { position: relative; width: 100%; height: 190px; overflow: hidden; border-radius: 22px; background: linear-gradient(#dff1ff 0 62%, #9bd77f 62%); }
.js-clopot { position: absolute; bottom: 48px; display: grid; place-items: center; width: 64px; height: 64px; font-size: 3rem; line-height: 1; }
.js-instrument .js-unda-sunet { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
.js-clopot .js-unda-sunet { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.js-ascultator { position: absolute; bottom: 30px; display: grid; place-items: center; width: 64px; height: 76px; padding: 0; border: 3px solid transparent; border-radius: 18px; background: hsl(0 0% 100% / 0.6); font-size: 2.8rem; line-height: 1; cursor: pointer; }
.js-ascultator__vol { position: absolute; top: -30px; left: 50%; translate: -50% 0; font-size: 1.5rem; animation: js-pune 0.4s ease-out; }
.js-ascultator--bine { border-color: var(--verde); background: var(--verde-pal); }

/* ---------- ecrane mici ---------- */
@media (max-width: 520px) {
  .js-tava { gap: 8px; padding: 8px; }
  .js-piesa__e { font-size: 2rem; }
  .js-piesa__nume { font-size: 0.9rem; }
  .js-sloturi { grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 8px; }
  .js-slot { min-height: 84px; padding: 6px 2px 2px; }
  .js-slot .js-piesa--pusa { min-width: 0; padding: 2px; }
  .js-slot .js-piesa--pusa .js-piesa__e { font-size: 1.5rem; }
  .js-slot .js-piesa--pusa .js-piesa__nume { font-size: 0.68rem; }
  .js-slot__nr { width: 24px; height: 24px; top: -10px; left: -6px; font-size: 0.85rem; }
  .js-ordine .js-tava .js-piesa__nume { font-size: 0.8rem; }
  .js-cerinta { padding: 8px 12px; font-size: 1.02rem; }
  .js-sortare .js-piesa { min-width: 58px; padding: 4px 6px; }
  .js-sortare .js-piesa__e { font-size: 1.8rem; }
  .js-sortare .js-piesa__nume { max-width: 6.5em; font-size: 0.75rem; }
  .js-cutie { min-height: 120px; }
  .js-cutii { gap: 6px; }
  .js-cutie { padding: 5px; }
  .js-cutie__e { font-size: 1.8rem; }
  .js-grila { gap: 6px; }
  .js-carte { min-height: 92px; padding: 4px 2px; }
  .js-carte__t { font-size: 0.7rem; }
  .js-tinta { min-width: 96px; }
  .js-curte { height: 300px; }
  .js-plaja__fata { font-size: 5rem; }
  .js-plaja__pus--ochi { top: 56px; font-size: 2rem; }
  .js-plaja__copil { min-width: 100px; }
  .js-plaja__umbra { min-width: 110px; }
  .js-sarma, .js-cos, .js-frigider, .js-masa { min-width: 120px; }
  .js-sarma { min-width: 140px; }
}

/* ---------- fără mișcare decorativă ---------- */
@media (prefers-reduced-motion: reduce) {
  .js-intra, .js-punct--plin, .js-piesa--pusa, .js-pus, .js-harta--gata, .js-cutie--salt, .js-cutie--gata,
  .js-inoata, .js-pleaca, .js-aterizeaza-repede, .js-aterizeaza-incet, .js-slot--arata, .js-ghiveci--creste svg,
  .js-carte--intoarsa, .js-animal--gasit, .js-plaja__soare, .js-plaja__pus, .js-transforma,
  .js-pornit .js-elice, .js-pornit .js-roata, .js-pornit .js-cascada, .js-pornit .js-flacari,
  .js-lab--foc .js-lab__foc, .js-lab--fierbe .js-lab__bule circle, .js-lab--fierbe .js-lab__abur,
  .js-vibreaza--acum, .js-ascultator__vol { animation: none; }
  .js-umbla { left: var(--x, 1%); animation: none; }
  .js-unda-sunet { display: none; }
  .js-cade-repede, .js-cade-incet { animation-duration: 0.01s; }
  .js-tinta--efect .js-ob:not(.js-ob--ramane) { animation-duration: 0.01s; }
  .js-tinta--efect .js-ob-dupa { animation: none; }
  .js-auto, .js-picaturi, .js-tricou__apa, .js-pahar__picaturi, .js-lac { transition: none; }
}
