/* ============================================================
   Jocurile pentru orientare și pentru numerele 0–100 (joc-numere.js)
   Toate clasele și animațiile încep cu „jn-”.
   ============================================================ */

/* ---------- comune ---------- */

.jn-tura { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.jn-cerinta { margin: 0; max-width: 40em; font-size: clamp(1.15rem, 2.8vw, 1.6rem); font-weight: 800; line-height: 1.35; text-align: center; }
.jn-progres { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.jn-progres__punct { width: 16px; height: 16px; border-radius: 50%; background: var(--linie); transition: background 0.3s, transform 0.3s; }
.jn-progres__punct[data-stare='acum'] { background: var(--albastru); transform: scale(1.25); }
.jn-progres__punct[data-stare='gata'] { background: var(--verde); }
.jn-gata { min-width: 140px; min-height: 60px; font-size: 1.35rem; }
.jn-din-nou { min-height: 52px; }
.jn-tura > .desen--bete svg { width: auto; height: clamp(80px, 14vh, 130px); max-width: 100%; }
.jn-tura .obiecte { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: 2px; }

.jn-intra { animation: jn-intra 0.5s ease-out var(--int, 0s) backwards; }
@keyframes jn-intra { from { opacity: 0; transform: translateY(-36px) scale(0.6); } }
.jn-sare { animation: jn-sare 0.55s ease-out; }
@keyframes jn-sare { 40% { scale: 1.18; } 70% { scale: 0.95; } }

/* ---------- hrănirea ---------- */

.jn-hrana { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 3vw, 36px); flex-wrap: wrap; }
.jn-hrana__animal { font-size: clamp(4.2rem, 13vw, 7.5rem); line-height: 1; }
.jn-hrana__farfurie {
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px;
  width: clamp(190px, 34vw, 300px); min-height: clamp(120px, 20vw, 170px); padding: 16px 22px; border-radius: 50%;
  background: radial-gradient(closest-side, #fff 70%, #dfe6f0 72%, #fff 80%, #cfd8e6 100%); box-shadow: 0 6px 0 #c0cadb;
}
.jn-hrana__tava {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  min-height: 84px; max-width: 560px; padding: 10px; border-radius: 18px;
  background: repeating-linear-gradient(90deg, #d9a35f 0 26px, #cf9550 26px 30px); box-shadow: inset 0 -5px 0 #b77d3c;
}
.jn-hrana__ob, .jn-animal {
  display: inline-grid; place-items: center; width: clamp(58px, 9vw, 76px); height: clamp(58px, 9vw, 76px);
  font-size: clamp(2.3rem, 6vw, 3.2rem); line-height: 1;
}
.jn-mesteca { animation: jn-mesteca 0.3s ease-in-out 4; }
@keyframes jn-mesteca { 50% { scale: 1.12 0.92; } }
.jn-hrana__ob.jn-mancat { animation: jn-mancat 0.5s ease-in var(--int, 0s) forwards; }
@keyframes jn-mancat { to { opacity: 0; scale: 0.2; translate: -60px -20px; } }

/* ---------- perechi (cartonașe care se întorc) ---------- */

.jn-mem { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 14px); width: min(100%, 620px); margin: 6px auto 0; }
.jn-mem__carte { aspect-ratio: 3 / 4; padding: 0; border: 0; background: none; cursor: pointer; perspective: 600px; }
.jn-mem__interior { position: relative; display: block; width: 100%; height: 100%; transition: transform 0.45s; transform-style: preserve-3d; }
.jn-mem__carte--deschisa .jn-mem__interior { transform: rotateY(180deg); }
.jn-mem__spate, .jn-mem__fata {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 4px 0 hsl(220 40% 70%);
}
.jn-mem__spate { color: #fff; font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 900; background: repeating-linear-gradient(45deg, var(--albastru) 0 10px, var(--albastru-inchis) 10px 20px); }
.jn-mem__fata { padding: 4px; background: #fff; border: 3px solid var(--linie); transform: rotateY(180deg); }
.jn-mem__carte--gasita .jn-mem__fata { background: var(--verde-pal); border-color: var(--verde); }
.jn-mem__carte--gasita { animation: jn-sare 0.55s ease-out; cursor: default; }
.jn-mem__nr { font-size: clamp(2rem, 7vw, 3.6rem); font-weight: 900; }
.jn-mem__obiecte { display: block; font-size: clamp(0.8rem, 2.7vw, 1.6rem); line-height: 1.25; text-align: center; word-break: break-all; }

/* ---------- nuferii și broasca ---------- */

.jn-iaz {
  position: relative; width: min(100%, 980px); padding: 58px 10px 18px; border-radius: 26px;
  background: radial-gradient(ellipse at 30% 20%, #8fd3f4, #4aa6d8 70%); box-shadow: inset 0 0 0 4px #3b8fc0;
}
.jn-iaz__nuferi { display: flex; flex-wrap: wrap; justify-content: center; gap: 56px 10px; }
.jn-nufar {
  width: clamp(56px, 7.4vw, 84px); height: clamp(56px, 7.4vw, 84px); padding: 0; border: 0; border-radius: 50%;
  color: #fff; font: inherit; font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 900; text-shadow: 0 2px 0 #1d5b2e;
  background: conic-gradient(from 20deg, transparent 0 18deg, #3fae5c 18deg), radial-gradient(circle, #3fae5c 60%, #2e8a47);
  box-shadow: 0 4px 0 #1f6b35; cursor: pointer;
}
.jn-nufar--start { box-shadow: 0 4px 0 #1f6b35, 0 0 0 4px #ffd65a; }
.jn-nufar--bine { background: radial-gradient(circle, #ffd65a 55%, #f0a92a); color: var(--cerneala); text-shadow: none; box-shadow: 0 4px 0 #c27c12; }
.jn-broasca { position: absolute; left: 0; top: 0; z-index: 2; margin: -0.8em 0 0 -0.5em; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; pointer-events: none; }
.jn-broasca--bucurie { animation: jn-oracaie 0.6s ease-out; }
@keyframes jn-oracaie { 30% { scale: 1.3; } 60% { scale: 0.9 1.1; } }

/* ---------- numărătoarea ---------- */

.jn-num {
  position: relative; width: min(100%, 640px); height: 78px; border: 8px solid #b07a3a; border-radius: 14px;
  background: #fff8ea; cursor: pointer; touch-action: manipulation;
}
.jn-num__sarma { position: absolute; left: 0; right: 0; top: calc(50% - 2px); height: 4px; background: #6b7280; }
.jn-num__bila {
  --b: min(46px, 7.7%);
  position: absolute; top: 50%; left: calc(var(--i) * var(--b)); width: var(--b); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9a9a, #d62828 65%); translate: 0 -50%; transition: left 0.25s ease-out;
}
.jn-num__bila--alta { background: radial-gradient(circle at 35% 30%, #9cc2ff, #1d4fb8 65%); }
.jn-num__bila--dreapta { left: calc(100% - (10 - var(--i)) * var(--b)); }
.jn-num--bine { border-color: var(--verde); }
.jn-num--bine .jn-num__bila--dreapta { box-shadow: 0 0 0 3px #ffd65a; }
.jn-num__obiecte { padding: 6px 14px; border-radius: 16px; background: #fff; }

/* ---------- pescuitul ---------- */

.jn-lac {
  position: relative; width: min(100%, 980px); height: clamp(340px, 44vh, 420px); overflow: hidden; border-radius: 26px;
  background:
    repeating-radial-gradient(ellipse at 50% -40%, transparent 0 34px, hsl(200 80% 90% / 0.25) 34px 37px),
    linear-gradient(#7cc4f0, #2f86c8);
  box-shadow: inset 0 0 0 4px #2a76b0;
}
.jn-lac__galeata { position: absolute; right: 10px; top: 6px; z-index: 3; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; }
.jn-lac__galeata--plina { animation: jn-sare 0.55s ease-out; }
.jn-peste { position: absolute; left: 0; animation: jn-inoata var(--d, 9s) linear var(--int, 0s) infinite alternate; }
@keyframes jn-inoata { from { left: 0; } to { left: calc(100% - 92px); } }
.jn-peste--prins { z-index: 4; }
.jn-peste__corp {
  position: relative; display: grid; place-items: center; width: 92px; height: 64px; padding: 0; border: 0;
  background: none; font-size: clamp(3rem, 6vw, 3.6rem); line-height: 1; cursor: pointer;
}
.jn-peste__emoji { display: block; animation: jn-intoarce calc(var(--d, 9s) * 2) step-end var(--int, 0s) infinite; }
@keyframes jn-intoarce { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
.jn-peste__emoji svg { display: block; width: 92px; height: 59px; }
.jn-peste__nr {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; min-width: 1.6em; padding: 1px 6px; border: 3px solid var(--cerneala);
  border-radius: 999px; background: #fff; color: var(--cerneala); font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 900;
}

/* ---------- semnul ---------- */

.jn-semn { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 24px); }
.jn-semn__parte {
  display: flex; flex: 0 1 190px; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 10px 6px;
  border-radius: 20px; background: #fff; box-shadow: 0 4px 0 var(--linie);
}
.jn-semn__nr { font-size: clamp(2.4rem, 7vw, 3.8rem); line-height: 1; }
.jn-semn__parte .obiecte { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; max-width: 100%; font-size: clamp(0.8rem, 3vw, 1.7rem); letter-spacing: 0; }
.jn-semn__parte .obiecte__grup { padding: 2px 4px; letter-spacing: 0; }
.jn-semn__loc {
  display: grid; place-items: center; flex: none; width: clamp(66px, 10vw, 96px); aspect-ratio: 1; border: 4px dashed var(--albastru);
  border-radius: 50%; background: var(--albastru-pal); color: var(--cerneala-slaba); font-size: clamp(2rem, 5vw, 3rem); font-weight: 900;
}
.jn-semn__loc--plin { border-style: solid; border-color: var(--verde); background: var(--verde-pal); color: var(--verde); animation: jn-sare 0.55s ease-out; }
.jn-semn__piese { display: flex; justify-content: center; gap: 18px; }
.jn-semn__piesa {
  display: grid; place-items: center; width: clamp(64px, 9vw, 88px); aspect-ratio: 1; border-radius: 18px;
  background: linear-gradient(160deg, #5b93f0, var(--albastru)); box-shadow: 0 5px 0 var(--albastru-inchis);
  color: #fff; font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 900;
}

/* Zecile și unitățile: bare de câte 10 cuburi și cuburi. */
.jn-blocuri { --c: 8px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 3px; max-width: 140px; }
.jn-blocuri__zece { width: var(--c); height: calc(var(--c) * 10); border: 1px solid #1d4fb8; background: repeating-linear-gradient(#5b93f0 0 calc(var(--c) - 1px), #1d4fb8 calc(var(--c) - 1px) var(--c)); }
.jn-blocuri__unu { width: var(--c); height: var(--c); border: 1px solid #b25d00; background: #f6a33a; }

/* ---------- trenul ---------- */

.jn-tren { width: 100%; overflow: hidden; padding: 8px 0 0; }
.jn-tren__linie { padding-bottom: 10px; background: linear-gradient(#6b7280, #6b7280) bottom / 100% 5px no-repeat, repeating-linear-gradient(90deg, #8a5a2b 0 8px, transparent 8px 22px) bottom / 100% 10px no-repeat; }
.jn-tren__garnitura { --vag: clamp(46px, 9vw, 90px); position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.jn-tren__garnitura--pleaca { animation: jn-pleaca 1.6s ease-in forwards; }
@keyframes jn-pleaca { 20% { transform: translateX(12px); } to { transform: translateX(-120vw); } }
.jn-tren__loco { flex: none; font-size: clamp(2.1rem, 7vw, 4.4rem); line-height: 1; }
.jn-tren__fum { position: absolute; left: 0; top: 0; font-size: 2rem; animation: jn-fum 1s ease-out infinite; }
@keyframes jn-fum { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 30px -30px; } }
.jn-tren__loc { flex: none; display: grid; place-items: center; width: var(--vag); height: calc(var(--vag) * 0.86); border: 3px dashed #7c8db5; border-radius: 10px; background: hsl(220 60% 97% / 0.8); }
.jn-tren__loc--plin { border-color: transparent; background: none; }
.jn-vagon {
  --vag: clamp(56px, 9vw, 90px);
  position: relative; display: grid; place-items: center; width: var(--vag); height: calc(var(--vag) * 0.86);
  border-radius: 10px 10px 6px 6px; background: var(--c, #ef5b5b); box-shadow: inset 0 -6px 0 rgb(0 0 0 / 0.18);
  color: #fff; font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 900; text-shadow: 0 2px 0 rgb(0 0 0 / 0.25);
}
.jn-vagon::before, .jn-vagon::after { content: ''; position: absolute; bottom: -7px; width: 14px; height: 14px; border: 3px solid #12245a; border-radius: 50%; background: #9aa5bd; }
.jn-vagon::before { left: 10%; }
.jn-vagon::after { right: 10%; }
.jn-vagon--0 { --c: #ef5b5b; }
.jn-vagon--1 { --c: #2f6fde; }
.jn-vagon--2 { --c: #23a05a; }
.jn-vagon--3 { --c: #f08a24; }
.jn-vagon--4 { --c: #8a5bd6; }
.jn-tren__loc .jn-vagon { width: 100%; height: 100%; }
.jn-vagon--dat { --c: #64748b; }
.jn-tren__piese { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; min-height: 70px; margin-top: 10px; }

/* ---------- calendarul ---------- */

.jn-cal { width: min(100%, 480px); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 6px 0 var(--linie); }
.jn-cal__luna { display: block; padding: 8px; background: var(--rosu); color: #fff; font-size: 1.4rem; text-align: center; text-transform: capitalize; }
.jn-cal__grila { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 8px; }
.jn-cal__zi-sapt { color: var(--cerneala-slaba); font-size: 0.9rem; font-weight: 800; text-align: center; }
.jn-cal__zi { display: grid; place-items: center; min-height: clamp(38px, 6vw, 52px); border-radius: 8px; background: var(--albastru-pal); font-size: clamp(1rem, 2.6vw, 1.35rem); font-weight: 800; }
.jn-cal__zi--lipsa { border: 3px dashed var(--portocaliu); background: #fff6dc; }
.jn-cal__zi--pusa { background: var(--verde-pal); color: var(--verde); }
.jn-cal__piese { display: flex; justify-content: center; gap: 16px; }
.jn-cal__piesa {
  display: grid; place-items: center; width: clamp(60px, 8vw, 80px); aspect-ratio: 1; border-radius: 16px;
  background: linear-gradient(160deg, #f6a64e, var(--portocaliu)); box-shadow: 0 5px 0 #b8600f; color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 900;
}

/* ---------- construiește: bețișoare și ouă ---------- */

.jn-c-surse { display: flex; justify-content: center; gap: 22px; }
.jn-c-sursa { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.jn-c-sursa__piesa {
  display: grid; place-items: center; min-width: 76px; min-height: 96px; padding: 6px; border: 3px dashed #e0a800; border-radius: 16px; background: #fff8e1;
}
.jn-c-sursa__text { max-width: 9em; color: var(--cerneala-slaba); font-size: 0.95rem; font-weight: 700; text-align: center; }
.jn-c-loc { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 14px 22px; width: min(100%, 760px); min-height: 150px; padding: 18px 12px; }
.jn-c-masa { border-radius: 18px; background: repeating-linear-gradient(0deg, #d9a35f 0 18px, #d19a55 18px 20px); box-shadow: inset 0 -6px 0 #b77d3c; }
.jn-c-cos { border: 6px solid #9a6a2c; border-top-width: 10px; border-radius: 10px 10px 50px 50px; background: repeating-linear-gradient(45deg, #e8c48a 0 10px, #d9ae6a 10px 20px); }
.jn-c-zeci, .jn-c-unitati { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 6px; transition: gap 0.5s; }
.jn-c-unitati { min-width: 40px; min-height: 76px; }
.jn-c-piesa { cursor: pointer; }
.jn-c-bat { display: block; box-sizing: content-box; width: 12px; height: 76px; border: 0 solid transparent; border-width: 0 7px; border-radius: 4px; background: #e0a800 content-box; transition: border-width 0.5s; }
.jn-c-unitati--strange { gap: 0; }
.jn-c-unitati--strange .jn-c-bat { border-width: 0 1px; }
.jn-c-unitati--strange .jn-c-ou { margin: 0 -8px; transition: margin 0.5s; }
.jn-c-manunchi { position: relative; display: block; width: 68px; height: 76px; background: repeating-linear-gradient(90deg, #e0a800 0 5px, transparent 5px 7px); }
.jn-c-manunchi::after { content: ''; position: absolute; left: -4px; right: -2px; top: 42%; height: 11px; border-radius: 4px; background: var(--rosu); }
.jn-c-ou { display: inline-grid; place-items: center; width: 40px; height: 52px; font-size: 2.1rem; line-height: 1; }
.jn-c-cofraj { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; width: 84px; padding: 5px; border-radius: 8px; background: #b9a07a; box-shadow: 0 3px 0 #8a7352; }
.jn-c-cofraj__ou { aspect-ratio: 3 / 4; border-radius: 50%; background: #fff7ea; }
.jn-c-rezultat { min-height: 1.5em; margin: 0; color: var(--verde); font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 900; text-align: center; }

/* ---------- racheta ---------- */

.jn-rac { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 36px; }
.jn-rac__model { display: grid; place-items: center; min-width: 150px; min-height: 120px; padding: 12px 16px; border-radius: 18px; background: #fff; box-shadow: 0 4px 0 var(--linie); }
.jn-rac__model .jn-blocuri { --c: 11px; max-width: 220px; }
.jn-rac__cuvinte { font-size: clamp(1.4rem, 3.6vw, 2rem); }
.jn-racheta { position: relative; display: flex; flex-direction: column; align-items: center; width: 200px; }
.jn-racheta__varf { width: 140px; height: 84px; background: var(--rosu); clip-path: polygon(50% 0, 78% 30%, 100% 100%, 0 100%, 22% 30%); }
.jn-racheta__corp {
  position: relative; z-index: 1; display: flex; justify-content: center; gap: 8px; width: 140px; padding: 64px 6px 18px;
  border-radius: 0 0 14px 14px; background: linear-gradient(90deg, #cfd8ea, #fff 45%, #cfd8ea);
}
.jn-racheta__corp::before {
  content: ''; position: absolute; left: calc(50% - 22px); top: 10px; width: 36px; height: 36px; border: 4px solid #12245a;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d8f0ff, #6bb6e8);
}
.jn-racheta__col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.jn-racheta__col small { color: var(--cerneala-slaba); font-size: 1rem; font-weight: 900; }
.jn-racheta__cifra { display: grid; place-items: center; width: 56px; height: 64px; border: 3px dashed var(--albastru); border-radius: 12px; background: #fff; font-size: 2.3rem; font-weight: 900; }
.jn-racheta__cifra--plina { border-style: solid; border-color: var(--verde); color: var(--verde); animation: jn-sare 0.55s ease-out; }
.jn-racheta__aripi { width: 200px; height: 70px; margin-top: -70px; background: var(--rosu); clip-path: polygon(0 100%, 8% 45%, 30% 0, 70% 0, 92% 45%, 100% 100%); }
.jn-racheta__flacara { margin-top: -2px; font-size: 2.6rem; line-height: 1; opacity: 0; rotate: 180deg; }
.jn-racheta--pleaca { animation: jn-decolare 1.4s ease-in 0.2s forwards; }
.jn-racheta--pleaca .jn-racheta__flacara { opacity: 1; animation: jn-flacara 0.15s linear infinite alternate; }
@keyframes jn-decolare { 15% { transform: translateY(6px); } to { transform: translateY(-120vh); } }
@keyframes jn-flacara { to { scale: 1.2 1.35; } }
.jn-rac__cifre { display: grid; grid-template-columns: repeat(5, clamp(56px, 8vw, 72px)); gap: clamp(4px, 1.4vw, 12px); justify-content: center; }
.jn-rac__cifra {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: linear-gradient(160deg, #5b93f0, var(--albastru));
  box-shadow: 0 5px 0 var(--albastru-inchis); color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.2rem); font-weight: 900;
}

/* ---------- sortarea în cutii ---------- */

.jn-sort { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.jn-sort__sus { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 170px; }
.jn-sort__piesa { display: grid; place-items: center; min-width: 96px; min-height: 96px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 5px 0 var(--linie); }
.jn-sort__piesa .desen--creion { width: clamp(110px, 16vw, 150px); }
.jn-sort__cutii { display: flex; justify-content: center; gap: 10px; width: 100%; }
.jn-cutie {
  display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 6px; max-width: 260px; min-height: 150px; padding: 8px 6px 10px;
  border: 4px solid #b07a3a; border-top-width: 10px; border-radius: 6px 6px 18px 18px; background: #f6dcae; cursor: pointer;
}
.jn-cutie__cap { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: clamp(1rem, 2.6vw, 1.3rem); text-align: center; }
.jn-cutie__emoji { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1; }
.jn-cutie__semn { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.jn-cutie__linie { display: block; width: 40px; }
.jn-cutie__continut { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.jn-sort__piesa--pusa { min-width: 0; min-height: 0; padding: 3px; border-radius: 10px; box-shadow: none; animation: jn-intra 0.35s ease-out; }
.jn-sort__piesa--pusa .desen--creion { width: 46px; }
.jn-sort__piesa--pusa .jn-carte { font-size: 0.45rem; }
.jn-carte { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: clamp(1rem, 2.6vw, 1.3rem); }
.jn-carte__nr { font-size: 3em; line-height: 1; }
.jn-carte__u { color: var(--portocaliu); }
.jn-carte__perechi { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 9em; }
.jn-carte__pereche { display: inline-flex; flex-direction: column; gap: 3px; padding: 3px; border: 2px solid var(--verde); border-radius: 8px; }
.jn-carte__pereche--singur { border-color: var(--rosu); border-style: dashed; }
.jn-carte__pereche i { display: block; width: 0.8em; height: 0.8em; border-radius: 50%; background: var(--albastru); }

/* ---------- creionul care se rotește ---------- */

.jn-rot { display: grid; place-items: center; width: min(260px, 74vw); aspect-ratio: 1; border: 4px dashed var(--linie); border-radius: 50%; background: #fff; }
.jn-rot--bine { border-style: solid; border-color: var(--verde); background: var(--verde-pal); }
.jn-rot__creion { width: 82%; padding: 0; border: 0; background: none; cursor: pointer; transform: rotate(var(--u, 0deg)); transition: transform 0.35s ease-out; }
.jn-rot__creion .desen--creion { display: block; width: 100%; }
.jn-rot__eticheta { min-height: 1.4em; color: var(--verde); font-size: clamp(1.4rem, 3.4vw, 1.9rem); }

/* ---------- interior și exterior ---------- */

.jn-curte {
  display: grid; place-items: center; width: min(100%, 480px); aspect-ratio: 16 / 10; padding: 18px;
  border: 10px dotted #8a5a2b; border-radius: 50%; background: #c9eed6;
}
.jn-curte__in { display: flex; flex-wrap: wrap; justify-content: center; max-width: 82%; }
.jn-curte__afara { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: min(100%, 560px); min-height: 80px; padding: 8px; border-radius: 18px; background: #e4f1cf; }
.jn-animal--sare { animation: jn-salt-animal 0.4s ease-out var(--int, 0s) 2; }
@keyframes jn-salt-animal { 50% { translate: 0 -16px; } }
.jn-tarc { position: relative; width: min(100%, 540px); aspect-ratio: 4 / 3; border-radius: 18px; background: #e4f1cf; }
.jn-tarc__gard { position: absolute; inset: 14% 18%; border: 10px dotted #8a5a2b; border-radius: 50%; background: #c9eed6; }
.jn-tarc__animal {
  position: absolute; width: clamp(56px, 10vw, 76px); height: clamp(56px, 10vw, 76px); margin: calc(clamp(56px, 10vw, 76px) / -2) 0 0 calc(clamp(56px, 10vw, 76px) / -2);
  padding: 0; border: 0; border-radius: 50%; background: none; font-size: clamp(2.2rem, 5.6vw, 3rem); line-height: 1; cursor: pointer;
}
.jn-tarc__animal--gasit { background: hsl(145 60% 45% / 0.25); box-shadow: 0 0 0 4px var(--verde); animation: jn-sare 0.55s ease-out; }

/* ---------- mișcare redusă: jocul rămâne, mișcarea decorativă se oprește ---------- */

@media (prefers-reduced-motion: reduce) {
  .jn-intra, .jn-sare, .jn-mesteca, .jn-broasca--bucurie, .jn-lac__galeata--plina, .jn-mem__carte--gasita,
  .jn-semn__loc--plin, .jn-racheta__cifra--plina, .jn-tarc__animal--gasit, .jn-animal--sare, .jn-sort__piesa--pusa,
  .jn-tren__fum, .jn-racheta--pleaca .jn-racheta__flacara { animation: none; }
  .jn-peste, .jn-peste__emoji { animation: none; }
  .jn-hrana__ob.jn-mancat { animation: none; opacity: 0.25; }
  .jn-tren__garnitura--pleaca, .jn-racheta--pleaca { animation: none; opacity: 0.4; }
  .jn-mem__interior, .jn-num__bila, .jn-rot__creion, .jn-c-zeci, .jn-c-unitati, .jn-c-bat { transition: none; }
}
