@font-face { font-family: 'Rubik'; src: url('../assets/fonts/Rubik.woff2') format('woff2'), url('../assets/fonts/Rubik.ttf') format('truetype'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Varela Round'; src: url('../assets/fonts/VarelaRound.woff2') format('woff2'), url('../assets/fonts/VarelaRound.ttf') format('truetype'); font-weight: 400; font-display: swap; }
/* ===== עיצוב בסיסי ===== */
:root {
  --paper: #fffaf3;
  --ink: #4a4058;
  --muted: #8a8098;
  --coral: #f29a85;
  --mint: #9fd9c4;
  --sky: #a9d9ea;
  --lav: #c9b8ea;
  --yellow: #f6d27a;
  --card: #ffffff;
  --line: #ece4f2;
  --shadow: 0 6px 18px rgba(80, 60, 100, .12);
  --r: 22px;
  --ui: 'Varela Round', 'Rubik', Arial, sans-serif;
  --letter: 'Rubik', Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(circle at 8% 10%, rgba(242, 154, 133, .14) 0 120px, transparent 121px),
    radial-gradient(circle at 92% 90%, rgba(201, 184, 234, .2) 0 160px, transparent 161px),
    var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  user-select: none;
  overscroll-behavior: none;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
#app { min-height: 100%; }
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ===== סרגל עליון ===== */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { margin: 0; font-size: clamp(24px, 3.4vw, 36px); }
.logo {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--coral); color: #fff; font: 700 26px var(--letter); box-shadow: var(--shadow);
}
.parents-btn, .pill-btn {
  background: var(--card); border-radius: 999px; padding: 12px 22px; font-size: 18px;
  box-shadow: var(--shadow); border: 2px solid var(--line);
}
.pill-btn:active, .parents-btn:active { transform: scale(.96); }
.pill-btn.danger { color: #c4523d; }
.icon-btn {
  width: 56px; height: 56px; border-radius: 18px; background: var(--card);
  box-shadow: var(--shadow); font-size: 26px; display: grid; place-items: center; flex: none;
}
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ===== מפת האותיות ===== */
.map {
  display: grid; gap: 16px; padding: 8px 20px 40px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  direction: rtl;
}
.letter-card {
  position: relative; aspect-ratio: 1; border-radius: var(--r); background: var(--card);
  box-shadow: var(--shadow); overflow: hidden; border: 3px solid #fff;
  animation: pop-in .45s calc(var(--i) * 25ms) both;
}
.letter-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.letter-card .card-letter {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center;
  font: 700 26px var(--letter); box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.letter-card.soon { background: #f3eef6; }
.letter-card.soon .card-letter {
  inset: 0; width: auto; height: auto; background: none; box-shadow: none;
  font-size: 72px; color: #cfc4d8;
}
.letter-card.soon img { opacity: .35; filter: grayscale(.6); }
.stars { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 20px; }
.stars b { color: #e6dff0; margin: 0 1px; }
.stars b.on { color: #f3bf3a; text-shadow: 0 1px 0 #d9a21d; }
.soon-tag {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 14px; color: var(--muted);
}
.wiggle { animation: wiggle .5s; }

/* ===== מסלול הלמידה ===== */
.flow-top { padding-bottom: 6px; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.step-dot {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px;
  border-radius: 18px; background: var(--card); box-shadow: var(--shadow); min-width: 74px;
  border: 3px solid transparent; position: relative;
}
.step-dot span { font-size: 26px; }
.step-dot small { font-size: 13px; color: var(--muted); }
.step-dot.active { border-color: var(--coral); }
.step-dot.done::after {
  content: '✓'; position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint); color: #fff; font-size: 14px; display: grid; place-items: center;
}
.flow-letter {
  width: 56px; height: 56px; border-radius: 18px; background: var(--coral); color: #fff;
  font: 700 36px var(--letter); display: grid; place-items: center; box-shadow: var(--shadow);
}
.stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px 20px; }
.flow-nav { display: flex; justify-content: space-between; padding: 10px 24px 24px; }
.nav-btn {
  width: 76px; height: 76px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow);
  font-size: 34px;
}
.nav-btn.next { background: var(--coral); color: #fff; }

/* מכירים */
.intro { text-align: center; }
.reveal { display: flex; align-items: center; justify-content: center; gap: 24px; }
.reveal-frame {
  position: relative; width: min(46vh, 60vw, 440px); aspect-ratio: 1; border-radius: 28px;
  background: #fff; box-shadow: var(--shadow); overflow: hidden; cursor: pointer;
}
.reveal-frame .pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: opacity .9s; }
.reveal-frame .in-letter { position: absolute; inset: auto; padding: 0; display: grid; place-items: center; opacity: 0; transition: opacity .9s .25s, transform .8s cubic-bezier(.4,0,.2,1); pointer-events: none; }
.reveal-frame .in-letter b { position: relative; top: -.1em; font: 700 100px var(--letter); line-height: 1; color: #1a1718; white-space: nowrap; }
.reveal.shape-on .color { opacity: 0; transform: scale(.96); transition: opacity .9s, transform .9s; }
.reveal.shape-on .in-letter { opacity: 1; }
.reveal-eq, .reveal-letter { opacity: 0; transform: scale(.4); transition: all .5s cubic-bezier(.3, 1.6, .5, 1); }
.reveal-eq { font-size: 48px; color: var(--muted); width: 0; }
.reveal-letter {
  font: 700 min(30vh, 220px) var(--letter); line-height: 1; width: 0; overflow: visible;
}
.reveal.letter-on .reveal-eq { opacity: 1; transform: none; width: auto; }
.reveal.letter-on .reveal-letter { opacity: 1; transform: none; width: auto; }
.intro-word { font-size: 40px; margin-top: 14px; font-weight: bold; }

/* שומעים */
.sound { text-align: center; }
.big-letter { font: 700 min(26vh, 200px) var(--letter); line-height: 1.05; }
.sound-cards { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.sound-card {
  width: 180px; padding: 18px 12px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 6px; border: 3px solid transparent;
}
.sound-card img { width: 90px; height: 90px; object-fit: contain; }
.sc-icon { font-size: 52px; line-height: 90px; }
.sc-label { font-size: 15px; color: var(--muted); }
.sc-value { font-size: 30px; font-weight: bold; }
.sound-card.heard { border-color: var(--mint); }
.sound-card.bump { animation: bump .4s; }

/* כותבים */
.trace { display: flex; flex-direction: column; align-items: center; width: 100%; }
.trace-board {
  position: relative; width: min(60vh, 86vw, 520px); aspect-ratio: 1; background: var(--card);
  border-radius: 28px; box-shadow: var(--shadow); touch-action: none;
}
.trace-support { text-align: center; padding: 10px 14px; margin-top: 10px; border-radius: 18px; }
.trace-support p { margin: 6px 0 0; font-size: 14px; }
.trace-support .assist { background: #edf7f1; border-color: #b4d9c9; min-height: 48px; }
.trace-support.suggested { background: #e2f4e9; }
.trace-support .assist:disabled { opacity: .7; cursor: default; }
.trace-board canvas { display: block; border-radius: 28px; touch-action: none; }
.trace-help, .check-help { text-align: center; min-height: 2.8em; padding: 0 12px; max-width: 38em; }
.recognition-summary { font-weight: bold; margin: 10px 0 4px; }
.recognition-detail { font-size: 14px; line-height: 1.7; margin: 4px 0; }
.trace-done {
  position: absolute; inset: auto 0 18px; text-align: center; font-size: 30px; font-weight: bold;
  opacity: 0; transform: translateY(10px); transition: all .4s; pointer-events: none;
}
.trace-done.show { opacity: 1; transform: none; font-size: clamp(16px, 3vw, 26px); background: #fffaf3; border-radius: 14px; padding: 6px; }

/* משחקים – בחירת שלב */
.game-pick { text-align: center; }
.game-pick h2 { font-size: 32px; margin: 0 0 18px; }
.stage-cards { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.stage-card {
  width: 300px; height: auto; padding: 10px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
  border: 3px solid transparent; position: relative;
}
.stage-card .sc-name { font-size: 22px; }
.stage-card.done { border-color: var(--mint); }
.soon-card { background: var(--card); border-radius: 26px; padding: 30px 40px; box-shadow: var(--shadow); font-size: 56px; }
.soon-card p { font-size: 22px; margin: 8px 0 0; }

/* מדבקה */
.sticker-step { text-align: center; }
.sticker {
  position: relative; width: min(40vh, 300px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: #fff; border: 10px solid #fff; box-shadow: 0 0 0 5px var(--yellow), var(--shadow); overflow: hidden;
}
.sticker img { width: 100%; height: 100%; object-fit: contain; }
.sticker.earned { animation: sticker-in .8s cubic-bezier(.3, 1.6, .5, 1); }
.sticker.locked { filter: grayscale(1) opacity(.45); }
.sticker-letter {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 700 30px var(--letter);
}

/* ===== אזור הורים ===== */
.parents-screen { padding-bottom: 40px; }
.gate { margin: auto; text-align: center; background: var(--card); padding: 30px 40px; border-radius: 28px; box-shadow: var(--shadow); position: relative; }
.gate .back { position: absolute; top: 14px; right: 14px; }
.gate p { font-size: 28px; }
.gate-opts { display: grid; grid-template-columns: repeat(2, 90px); gap: 12px; justify-content: center; }
.gate-opts button { height: 70px; border-radius: 18px; background: #f6f1fa; font-size: 28px; }
.shake { animation: wiggle .45s; }
.panel { max-width: 860px; margin: 0 auto; width: 100%; }
.card-sec { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 22px; margin: 14px 20px; }
.card-sec h2 { margin: 0 0 10px; font-size: 22px; }
.card-sec p, .tips li { line-height: 1.7; }
.prow { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.prow img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fff; }
.prow-main { flex: 1; }
.prow-title b { font: 700 22px var(--letter); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.chip { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: #f4f0f7; color: var(--muted); }
.chip.on { background: #dff3ea; color: #3d8f6c; }
.acc { text-align: center; }
.acc small { display: block; font-size: 12px; color: var(--muted); }
.acc b { font-size: 22px; }
.settings { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.toggle { font-size: 18px; display: flex; gap: 8px; align-items: center; }
.toggle input { width: 24px; height: 24px; }

/* ===== מסך משחק ===== */
.game-screen { height: 100vh; height: 100dvh; overflow: hidden; touch-action: none; }
.game-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; flex: none; }
.cue {
  display: flex; align-items: center; gap: 6px; height: 62px; padding: 4px 9px 4px 5px;
  border-radius: 18px; background: #fff; box-shadow: var(--shadow); flex: none;
}
.cue-anchor { width: 50px; height: 50px; object-fit: contain; }
.cue-copy { display: grid; justify-items: center; gap: 1px; }
.cue-copy small { color: var(--ink); font-size: 11px; white-space: nowrap; }
.cue-copy b { display: grid; place-items: center; min-width: 25px; height: 30px; font: 700 29px/1 var(--letter); color: #25202f; }
.tok-glyph { display: inline-block; width: .248em; height: .347em; object-fit: contain; vertical-align: .23em; }
.cue-copy .tok-glyph { width: 22px; height: 24px; }
.shelf {
  flex: 1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; direction: rtl;
  background: var(--card); padding: 8px; border-radius: 20px; box-shadow: var(--shadow); min-width: 0;
}
.slot {
  aspect-ratio: 1; max-height: 54px; border-radius: 12px; border: 2px dashed #e2d8ea; background: #fdfbff;
  display: grid; place-items: center; overflow: hidden;
}
.slot.filled { border: 2px solid var(--mint); background: #effaf5; animation: bump .45s; }
.slot .tok-letter { font-size: clamp(18px, 3vw, 30px); }
.slot .tok-pic { width: 90%; height: 90%; font-size: 22px; }
.stage-pills { display: flex; gap: 6px; flex: none; }
.pill {
  width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow);
  font-size: 18px; position: relative;
}
.pill.on { background: var(--lav); color: #fff; font-weight: bold; }
.pill.done::after { content: '✓'; position: absolute; top: -4px; left: -4px; font-size: 12px; background: var(--mint); color: #fff; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; }
.arena { position: relative; flex: 1; margin: 0 14px 14px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); touch-action: none; }
.game-screen.loading .arena { visibility: hidden; pointer-events: none; }
.scene-loading { display: none; position: absolute; inset: 100px 14px 14px; place-content: center; justify-items: center; background: #fffaf3; border-radius: 28px; z-index: 10; }
.game-screen.loading .scene-loading { display: grid; }


/* פריטים (אות / תמונה) */
.tok { display: grid; place-items: center; position: relative; }
.tok-letter { font: 700 1em var(--letter); color: var(--ink); line-height: 1; }
.tok-pic i { font-style: normal; }
.tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 12px; }
.flyer {
  position: fixed; z-index: 50; transform: translate(-50%, -50%); width: 90px; height: 90px; border-radius: 22px;
  background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); display: grid; place-items: center;
  font-size: 54px; transition: transform .75s cubic-bezier(.3, .8, .3, 1); pointer-events: none;
}
.flyer .tok-pic { width: 80%; height: 80%; }

/* סוף שלב */
.game-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(60, 45, 75, .35); }
.game-modal[hidden] { display: none; }
.gm-card { background: #fff; border-radius: 32px; padding: 30px 40px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); animation: sticker-in .6s cubic-bezier(.3, 1.6, .5, 1); }
.gm-stars { font-size: 52px; }
.gm-card h2 { font-size: 40px; margin: 6px 0; }
.gm-card p { font-size: 22px; color: var(--muted); }

/* ===== ר׳: מגרש הכדורגל ===== */
.field { background: #9fd38a; }
.field-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-color: #a6d991;
  background-image:
    linear-gradient(#dff2fb 0 9%, transparent 9%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 9%, transparent 9% 18%),
    linear-gradient(#bfe3a6 9%, #93cc7d);
}
.goal { position: absolute; left: 50%; width: min(26%, 34vh); aspect-ratio: 1; top: 3%; transform: translateX(-50%); transform-origin: 50% 0; }
.goal svg, .goal img { width: 100%; height: 100%; display: block; object-fit: contain; }
.goal.bulge .goal-net, .goal.bulge img { animation: bulge .55s ease-out; transform-origin: 50% 40%; }
.goal.shake { animation: post-shake .4s; }
.ball-layer, .fx-layer { position: absolute; inset: 0; pointer-events: none; }
.ball { position: absolute; left: 0; top: 0; will-change: transform; filter: drop-shadow(0 6px 4px rgba(40, 80, 30, .3)); }
.ball-spin, .ball-skin { position: absolute; inset: 0; width: 100%; height: 100%; }
.ball-face {
  position: absolute; left: 50%; top: 50%; width: 62%; height: 62%; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 3px #3a3440 inset; font-size: clamp(34px, 5vw, 56px);
}
.ball.pic .ball-face { width: 74%; height: 74%; padding: 9%; }
.ball.pic .tok-pic { width: 100%; height: 100%; font-size: clamp(30px, 4.6vw, 50px); }
.ball .tok-pic img { border-radius: 50%; }
.ball.picitem { filter: drop-shadow(0 8px 6px rgba(40, 80, 30, .28)); }
.item-face { position: absolute; inset: -26%; display: grid; place-items: center; font-size: clamp(54px, 8vw, 90px); transform-origin: 50% 90%; }
.item-face .tok-pic { width: 100%; height: 100%; }
.item-face .tok-pic img { background: none; border-radius: 0; }
.foot {
  position: absolute; left: 0; top: 0; pointer-events: none; z-index: 4;
  transform-origin: 4% 18%; transform: rotate(8deg);
}
.foot svg, .foot img { width: 100%; height: 100%; display: block; }
.foot.kick { animation: kick .6s ease-in-out; }
.popup {
  position: absolute; transform: translate(-50%, -50%); font: 700 clamp(34px, 6vw, 64px) var(--letter);
  color: #fff; text-shadow: 0 3px 0 #e07d5f, 0 6px 14px rgba(0,0,0,.25); animation: popup 1.1s ease-out forwards; white-space: nowrap;
}
.popup.boing-txt { color: #fff6c4; text-shadow: 0 3px 0 #8a7a5a, 0 6px 14px rgba(0,0,0,.25); font-size: clamp(26px, 4.4vw, 46px); }

/* ===== קונפטי ואנימציות ===== */
.confetti {
  position: fixed; z-index: 70; width: 12px; height: 16px; border-radius: 3px; pointer-events: none;
  animation: confetti 1.1s ease-out forwards;
}
@keyframes confetti { to { transform: translate(var(--dx), calc(var(--dy) + 160px)) rotate(var(--r)); opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.7); } }
@keyframes wiggle { 20% { transform: rotate(-6deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(3deg); } }
@keyframes bump { 50% { transform: scale(1.12); } }
@keyframes sticker-in { from { transform: scale(.2) rotate(-30deg); opacity: 0; } }
@keyframes ripple { from { transform: translateX(-8%); } 50% { transform: translateX(4%); } to { transform: translateX(-8%); } }
@keyframes kick { 0% { transform: rotate(8deg); } 35% { transform: rotate(34deg); } 60% { transform: rotate(-16deg); } 100% { transform: rotate(8deg); } }
@keyframes bulge { 40% { transform: scale(1.06, 1.1); } 70% { transform: scale(.98); } }
@keyframes post-shake { 0%, 100% { transform: translateX(-50%); } 25% { transform: translateX(calc(-50% + 5px)); } 50% { transform: translateX(calc(-50% - 5px)); } 75% { transform: translateX(calc(-50% + 2px)); } }
@keyframes popup { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.5); } 25% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -110%) scale(1); } }

/* ===== טלפון / טאבלט לאורך ===== */
@media (max-width: 760px) {
  .topbar { padding: 10px 12px; }
  .map { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; padding: 6px 12px 30px; }
  .step-dot { min-width: 54px; padding: 6px; }
  .step-dot small { display: none; }
  .reveal { flex-direction: column; gap: 6px; }
  .reveal-frame { width: min(42vh, 82vw); }
  .reveal-letter { font-size: 22vh; }
  .game-top { flex-wrap: wrap; gap: 6px; padding-inline: 8px; }
  .game-top > .icon-btn { width: 40px; height: 42px; }
  .game-top .pill { width: 34px; height: 34px; }
  .stage-pills { gap: 3px; }
  .shelf { order: 5; flex-basis: 100%; }
}

/* ===== ב׳: הבאר ===== */
.wellscene { background: #8fd0e8; }
.well-bg { position: absolute; inset: 0; background-size: 100% 100%; }
.lake {
  position: absolute; left: 13%; right: 13%; top: 73%; bottom: 2%;
  background: linear-gradient(#7fd6ee, #4fb8dc 70%, #3fa8d0);
  border-radius: 45% 45% 30% 30% / 35% 35% 25% 25%; overflow: hidden;
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, .35), 0 0 0 6px rgba(120, 80, 40, .25);
}
.lake i {
  position: absolute; left: -10%; width: 120%; height: 14px; border-radius: 50%;
  border-top: 3px solid rgba(255, 255, 255, .45); animation: ripple 6s linear infinite;
}
.lake i:nth-child(1) { top: 22%; } .lake i:nth-child(2) { top: 52%; animation-delay: -2s; } .lake i:nth-child(3) { top: 80%; animation-delay: -4s; }
.rope {
  position: absolute; width: 5px; transform-origin: 50% 0; z-index: 3; border-radius: 3px;
  background: repeating-linear-gradient(180deg, #9d642b 0 6px, #e7b66b 6px 11px);
}
.bucket { position: absolute; left: 0; top: 0; z-index: 4; filter: drop-shadow(0 5px 4px rgba(30, 60, 80, .3)); }
.b-handle { position: absolute; left: 22%; right: 22%; top: -14%; height: 40%; border: 4px solid #7d674e; border-bottom: 0; border-radius: 50% 50% 0 0; }
.b-body {
  position: absolute; left: 8%; right: 8%; top: 18%; bottom: 0; border: 4px solid #4d7282;
  border-radius: 10px 10px 16px 16px; background: linear-gradient(90deg, #8bcfe7, #d9f5fb 48%, #72bdd9);
}
.b-rim { position: absolute; left: 4%; right: 4%; top: 10%; height: 20%; border: 4px solid #4d7282; border-radius: 50%; background: #dff8ff; }
.float-layer, .fall-layer { position: absolute; inset: 0; pointer-events: none; }
.floater { position: absolute; left: 0; top: 0; z-index: 2; will-change: transform; }
.fl-face, .fa-face {
  position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center;
  font-size: clamp(30px, 4.6vw, 52px); box-shadow: 0 4px 10px rgba(20, 70, 100, .25), inset 0 -4px 0 rgba(169, 217, 234, .5);
}
.floater.pic .fl-face, .faller.pic .fa-face { background: none; box-shadow: none; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .2)); font-size: clamp(40px, 6vw, 70px); }
.floater.pic .tok-pic, .faller.pic .tok-pic { width: 100%; height: 100%; }
.floater.pic .tok-pic img, .faller.pic .tok-pic img { background: none; }
.floater.jump-out .fl-face { animation: jump-out .45s ease-out; }
@keyframes jump-out { 40% { transform: translateY(-40%) rotate(-15deg); } 100% { transform: translateY(10%) rotate(10deg); } }
.splash { position: absolute; transform: translate(-50%, -50%); width: 1px; height: 1px; pointer-events: none; }
.splash i {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 12px; margin: -6px 0 0 -15px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .9); animation: splash .9s ease-out forwards;
}
.splash i:nth-child(2) { animation-delay: .12s; } .splash i:nth-child(3) { animation-delay: .24s; }
@keyframes splash { from { transform: scale(.3); opacity: 1; } to { transform: scale(5); opacity: 0; } }

/* ===== ה׳: הכביש ===== */
.roadscene { background: #bfe3a6; }
.road-side { position: absolute; top: 0; bottom: 0; width: 16%; background: radial-gradient(circle at 30% 20%, #f3b8cf 0 5px, transparent 6px) 0 0 / 60px 90px, radial-gradient(circle at 70% 60%, #f6d27a 0 5px, transparent 6px) 0 0 / 70px 110px, linear-gradient(#c6e9ae, #a9d991); }
.road-side.left { left: 0; } .road-side.right { right: 0; }
.road { position: absolute; top: 0; bottom: 0; left: 16%; right: 16%; background: #e8e4f3; box-shadow: inset 6px 0 0 #efa69e, inset -6px 0 0 #efa69e; --scroll: 0px; }
.lane-line {
  position: absolute; top: -80px; bottom: 0; width: 6px; margin-left: -3px;
  background: repeating-linear-gradient(180deg, #fffdf8 0 44px, transparent 44px 80px);
  transform: translateY(var(--scroll));
}
.lane-line.l1 { left: 33.33%; } .lane-line.l2 { left: 66.66%; }
.faller { position: absolute; left: 0; top: 0; z-index: 2; will-change: transform; }
.wheel { position: absolute; left: 0; top: 0; z-index: 3; filter: drop-shadow(0 8px 6px rgba(60, 50, 90, .3)); }
.wheel img { width: 100%; height: 100%; object-fit: contain; }
.steer {
  position: absolute; bottom: 14px; width: 64px; height: 64px; border-radius: 50%; z-index: 5;
  background: rgba(255, 255, 255, .9); box-shadow: var(--shadow); font-size: 40px; line-height: 1; direction: ltr; unicode-bidi: isolate;
}
.steer.left { left: 14px; } .steer.right { right: 14px; }

/* ===== כ׳: הכריש בים ===== */
.seascene { background: #6cc3e0; overflow: hidden; }
.seascene.quake { animation: quake .3s; }
@keyframes quake { 25% { transform: translate(3px, 2px); } 50% { transform: translate(-3px, -1px); } 75% { transform: translate(2px, -2px); } }
.sea-bg { position: absolute; inset: 0; background: linear-gradient(#b6ecf7, #7fcde6 35%, #4aa9d0 80%, #3d97c2); background-size: 100% 100%; }
.seascene.has-bg .sea-rays, .seascene.has-bg .sea-caustics, .seascene.has-bg .sea-far, .seascene.has-bg .sea-sand { display: none; }
.sea-rays {
  position: absolute; inset: -10% -20%; transform-origin: 50% 0;
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .16) 0 50px, transparent 50px 150px);
  -webkit-mask-image: linear-gradient(#000, transparent 75%); mask-image: linear-gradient(#000, transparent 75%);
  animation: rays 9s ease-in-out infinite alternate;
}
@keyframes rays { from { transform: skewX(-6deg) translateX(-3%); } to { transform: skewX(6deg) translateX(3%); } }
.sea-caustics {
  position: absolute; inset: 0; opacity: .35; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 60px 22px at 20% 30%, #fff, transparent 70%),
    radial-gradient(ellipse 80px 26px at 60% 18%, #fff, transparent 70%),
    radial-gradient(ellipse 50px 18px at 80% 45%, #fff, transparent 70%),
    radial-gradient(ellipse 70px 20px at 35% 60%, #fff, transparent 70%);
  animation: caustics 6s ease-in-out infinite alternate;
}
@keyframes caustics { from { transform: translate(-2%, 0) scale(1); opacity: .2; } to { transform: translate(3%, 2%) scale(1.1); opacity: .45; } }
.sea-far {
  position: absolute; left: 0; right: 0; bottom: 8%; height: 22%; opacity: .35;
  background:
    radial-gradient(ellipse 18% 70% at 12% 100%, #2f86ad 98%, transparent),
    radial-gradient(ellipse 22% 90% at 48% 100%, #2f86ad 98%, transparent),
    radial-gradient(ellipse 16% 60% at 85% 100%, #2f86ad 98%, transparent);
}
.fish-layer { position: absolute; inset: 0; pointer-events: none; }
.fish { position: absolute; left: 0; top: 0; opacity: .85; }
.fish svg { width: 100%; height: 100%; display: block; }
.sea-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; pointer-events: none; }
.weed { position: absolute; bottom: 4%; width: 5%; min-width: 26px; transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite alternate; }
.weed svg { width: 100%; height: 100%; display: block; }
.weed.w1 { left: 2%; height: 80%; } .weed.w2 { left: 6%; height: 55%; animation-delay: -1.3s; }
.weed.w3 { left: 63%; height: 50%; animation-delay: -2.1s; } .weed.w4 { right: 3%; height: 75%; animation-delay: -.6s; }
.weed.w5 { right: 8%; height: 45%; animation-delay: -2.8s; }
@keyframes sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg) skewX(4deg); } }
.sea-sand {
  position: absolute; left: -5%; right: -5%; bottom: -8%; height: 34%; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(circle at 20% 40%, #e7c98f 0 4px, transparent 5px) 0 0 / 50px 30px, linear-gradient(#f5dfad, #e6c486);
}
.shell { position: absolute; width: 26px; height: 20px; border-radius: 50% 50% 20% 20%; background: repeating-linear-gradient(90deg, #f6b8b0 0 4px, #fbd6cf 4px 8px); }
.shell.s1 { left: 30%; top: 30%; transform: rotate(-12deg); } .shell.s2 { left: 72%; top: 42%; transform: rotate(15deg) scale(.8); }
.star { position: absolute; left: 48%; top: 28%; font-style: normal; width: 30px; height: 30px; background: #f5a46e; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubbles i {
  position: absolute; bottom: -30px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .7); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.8) 0 2px, rgba(255,255,255,.12) 3px); animation: bubble-up 7s linear infinite;
}
.bubbles i:nth-child(1) { left: 8%; } .bubbles i:nth-child(2) { left: 22%; animation-delay: -2s; width: 10px; height: 10px; }
.bubbles i:nth-child(3) { left: 37%; animation-delay: -4.5s; } .bubbles i:nth-child(4) { left: 51%; animation-delay: -1s; width: 22px; height: 22px; }
.bubbles i:nth-child(5) { left: 64%; animation-delay: -5.5s; width: 12px; height: 12px; } .bubbles i:nth-child(6) { left: 77%; animation-delay: -3s; }
.bubbles i:nth-child(7) { left: 88%; animation-delay: -6s; width: 9px; height: 9px; } .bubbles i:nth-child(8) { left: 30%; animation-delay: -3.7s; width: 8px; height: 8px; }
.bubbles i:nth-child(9) { left: 4%; animation-delay: -5s; width: 14px; height: 14px; animation-duration: 9s; } .bubbles i:nth-child(10) { left: 94%; animation-delay: -1.5s; width: 11px; height: 11px; animation-duration: 8s; }
@keyframes bubble-up { 50% { margin-left: 12px; } to { transform: translateY(calc(-100vh - 40px)); opacity: .2; } }
.sea-item { filter: drop-shadow(0 8px 6px rgba(20, 60, 90, .25)); }
.sea-item.held { z-index: 5; }
.sea-item.tapped > * { animation: bump .4s; }
.sea-item .ball-face { width: 58%; height: 58%; box-shadow: 0 0 0 3px #4a6b7c inset; }
.sea-item.pic .fl-face { inset: 6%; }
.soap {
  position: absolute; inset: -6%; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.85) 0 6%, rgba(255,255,255,0) 14%), radial-gradient(circle, rgba(255,255,255,.08) 60%, rgba(200,240,255,.45) 72%, rgba(255,210,240,.5) 80%, rgba(255,255,255,0) 82%);
  animation: soap 3s ease-in-out infinite alternate;
}
@keyframes soap { to { transform: scale(1.05, .96); } }
.shark { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; transform-origin: 45% 50%; }
.sk-wrap { position: absolute; inset: 0; transform-origin: 80% 50%; }
.sk { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.swimscene .shark { mix-blend-mode: multiply; }
.sk-wrap { filter: none; }
.shark.yuck .sk-wrap { animation: yuck .6s ease-in-out; }
@keyframes yuck { 30% { filter: hue-rotate(-40deg) saturate(1.4); } 100% { filter: none; } }
.pbub {
  position: absolute; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  border: 2px solid rgba(255, 255, 255, .85); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9) 0 18%, rgba(255,255,255,.15) 30%);
  animation: pbub 1.2s ease-out forwards;
}
.pbub.spitdrop { background: #dff6ff; border-color: #fff; animation-duration: .7s; --dx: -90px !important; }
@keyframes pbub { from { opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.3); opacity: 0; } }
.spark { position: absolute; font-style: normal; font-size: 26px; transform: translate(-50%, -50%); text-shadow: 0 2px 4px rgba(0,0,0,.15); animation: spark .85s ease-out forwards; pointer-events: none; }
@keyframes spark { from { transform: translate(-50%, -50%) scale(.3); opacity: 1; } to { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.1) rotate(160deg); opacity: 0; } }
.bigword { position: absolute; transform: translate(-50%, -50%); pointer-events: none; z-index: 6; animation: bigword 1.3s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.bigword b { position: relative; display: block; font: 700 clamp(48px, 9vw, 104px) var(--letter); color: #fff; white-space: nowrap; -webkit-text-stroke: 3px #3a6f9a; paint-order: stroke fill; text-shadow: 0 6px 0 #3a6f9a, 0 12px 18px rgba(0, 0, 0, .25); }
.bigword .rays { position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 236, 140, .75) 0 10deg, transparent 10deg 24deg);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 68%); mask-image: radial-gradient(circle, #000 30%, transparent 68%);
  animation: rays-spin 1.3s linear forwards; }
.bigword.pu-word b { font-size: clamp(36px, 6vw, 64px); color: #e9fbff; -webkit-text-stroke-color: #7a8fa0; text-shadow: 0 4px 0 #7a8fa0; }
.bigword.pu-word .rays { display: none; }
@keyframes bigword { 0% { transform: translate(-50%, -50%) scale(.2) rotate(-12deg); opacity: 0; } 18% { transform: translate(-50%, -50%) scale(1.15) rotate(4deg); opacity: 1; } 75% { transform: translate(-50%, -60%) scale(1) rotate(0); opacity: 1; } 100% { transform: translate(-50%, -85%) scale(.9); opacity: 0; } }
@keyframes rays-spin { to { transform: translate(-50%, -50%) rotate(90deg); } }

/* ===== כ׳: הכריש קופץ מהמים ===== */
.leapscene { background: #bfe9f7; overflow: hidden; touch-action: manipulation; }
.leapscene .sky { position: absolute; left: 0; right: 0; top: 0; height: 46%; background: linear-gradient(#a8dff5, #dff5fb 85%); }
.leapscene .sun {
  position: absolute; right: 9%; top: 9%; width: min(13vw, 13vh); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff3b0 0 48%, #ffd86b 50% 62%, rgba(255, 216, 107, 0) 64%);
  box-shadow: 0 0 40px 18px rgba(255, 230, 140, .45); animation: sun-pulse 3.5s ease-in-out infinite alternate;
}
@keyframes sun-pulse { to { transform: scale(1.06); box-shadow: 0 0 55px 26px rgba(255, 230, 140, .55); } }
.leapscene .cloud {
  position: absolute; width: 16%; height: 9%; border-radius: 999px; background: #fff; opacity: .9;
  box-shadow: 30px -14px 0 6px #fff, 62px 2px 0 0 #fff; animation: cloud-drift 38s linear infinite;
}
.leapscene .cloud.c1 { top: 10%; left: -20%; } .leapscene .cloud.c2 { top: 24%; left: -20%; animation-delay: -15s; transform: scale(.7); animation-duration: 52s; }
.leapscene .cloud.c3 { top: 5%; left: -20%; animation-delay: -28s; animation-duration: 45s; }
@keyframes cloud-drift { to { left: 115%; } }
.sea-back, .sea-front { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sea-front { z-index: 4; }
.wave-tint { fill: rgba(70, 170, 215, .38); }
.wave-line { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 4; stroke-linecap: round; }
.leapscene .deep { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; overflow: hidden; }
.leapscene .deep .weed { height: 45%; }
.leapscene .deep .weed.w1 { height: 60%; } .leapscene .deep .weed.w4 { height: 55%; }
.leapscene .deep .sea-sand { height: 22%; }
.leapscene .shark { z-index: 3; }
.leapscene .float-layer { z-index: 5; }
.leapscene .fx-layer { z-index: 6; }
.drop {
  position: absolute; border-radius: 50%; background: #e8f9ff; box-shadow: inset -2px -2px 0 rgba(90, 170, 210, .5);
  transform: translate(-50%, -50%); pointer-events: none; animation: drop .85s ease-out forwards;
}
@keyframes drop {
  45% { transform: translate(calc(-50% + var(--dx) * .7), calc(-50% + var(--dy))); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) * -0.2)) scale(.6); opacity: 0; }
}
.ring {
  position: absolute; width: 60px; height: 16px; margin: -8px 0 0 -30px; border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .9); pointer-events: none; animation: ring .8s ease-out forwards;
}
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(calc(2.6 * var(--s, 1))); opacity: 0; } }

/* ===== כ׳: הכריש שוחה – העולם חולף לידו ===== */
.swimscene { touch-action: none; }
.swimscene .weed { left: 0; bottom: 6%; height: 55%; animation: none; will-change: transform; }
.swimscene .weed svg { transform-origin: 50% 100%; animation: sway 3.6s ease-in-out infinite alternate; }
.swimscene .weed:nth-child(3n) { height: 75%; } .swimscene .weed:nth-child(4n) { height: 40%; }
.swimscene .weed:nth-child(2n) svg { animation-delay: -1.4s; } .swimscene .weed:nth-child(3n) svg { animation-delay: -2.4s; }
.swimscene .sea-sand { bottom: -10%; }
.swimscene .fish { opacity: .75; }
.swimscene .sea-bg { background-size: cover; background-position: center top; }
.swimscene.has-bg .sea-sand { display: block; }
.swimscene .sea-sand.img { left: 0; right: 0; bottom: 0; height: 26%; border-radius: 0; background-repeat: repeat-x; background-size: auto 100%; }
.swimscene.has-bg .weed { bottom: 12%; opacity: .9; }
.sea-item.img-ball .ball-face { width: 56%; height: 56%; background: none; box-shadow: none; }

/* ===== ב׳: הבאר והנחל התת־קרקעי ===== */
.well2 { background: #dff3f8; overflow: hidden; touch-action: manipulation; }
.w2-sky { position: absolute; inset: 0; background: linear-gradient(#bfe6f4, #eef9fb 45%); }
.w2-sun {
  position: absolute; left: 7%; top: 7%; width: min(11vw, 11vh); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff4bf 0 50%, #ffdf86 52% 62%, rgba(255, 223, 134, 0) 64%);
  box-shadow: 0 0 36px 14px rgba(255, 232, 150, .45); animation: sun-pulse 3.5s ease-in-out infinite alternate;
}
.w2-cloud { position: absolute; width: 14%; height: 7%; border-radius: 999px; background: #fff; opacity: .9; box-shadow: 26px -12px 0 5px #fff, 54px 2px 0 0 #fff; animation: cloud-drift 46s linear infinite; left: -20%; }
.w2-cloud.c1 { top: 9%; } .w2-cloud.c2 { top: 22%; animation-delay: -24s; transform: scale(.75); }
.w2-earth {
  position: absolute; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(150, 105, 70, .25) 0 3px, transparent 4px) 0 0 / 70px 46px,
    radial-gradient(circle at 70% 70%, rgba(255, 245, 225, .5) 0 2px, transparent 3px) 0 0 / 54px 38px,
    linear-gradient(#e7c9a0 0 22%, #dcb88b 22% 46%, #d2aa7d 46% 70%, #c99e72 70%);
}
.w2-grass { position: absolute; left: 0; right: 0; top: -10px; height: 18px; background: repeating-linear-gradient(100deg, #a9d39a 0 6px, #bfe0ad 6px 11px); border-radius: 0 0 40% 40% / 0 0 100% 100%; }
.w2-shaft {
  position: absolute; border-radius: 6px;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 26px), linear-gradient(90deg, #8a6446, #b38a64 25%, #b38a64 75%, #8a6446);
  box-shadow: inset 0 0 0 4px rgba(120, 85, 55, .5);
}
.w2-stream {
  position: absolute; left: 0; right: 0; overflow: hidden;
  background: linear-gradient(#a7def0, #7cc8e4 60%, #69b9d8);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, .45), 0 -3px 0 rgba(120, 85, 55, .35);
}
.w2-ripples { position: absolute; inset: 0; background:
  repeating-linear-gradient(90deg, transparent 0 60px, rgba(255, 255, 255, .55) 60px 96px, transparent 96px 170px) 0 0 / 170px 3px no-repeat repeat-x,
  repeating-linear-gradient(90deg, transparent 0 40px, rgba(255, 255, 255, .35) 40px 70px, transparent 70px 130px) 0 0 / 130px 3px repeat-x;
  background-position-y: 35%, 72%; background-repeat: repeat-x; }
.w2-bed { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#c49a70, #b88e66); }
.w2-well { position: absolute; z-index: 4; pointer-events: none; transform-origin: 50% 100%; }
.w2-well.crank { animation: crank .35s ease-in-out infinite alternate; }
@keyframes crank { from { transform: rotate(-.6deg); } to { transform: rotate(.6deg); } }
.well2 .rope { z-index: 2; }
.well2 .bucket { z-index: 3; }
.well2 .float-layer { z-index: 5; }
.well2 .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.w2-item .fl-face { box-shadow: 0 4px 8px rgba(20, 70, 100, .25), inset 0 -4px 0 rgba(169, 217, 234, .6); border: 3px solid #f6e3b8; }
.w2-item.pic .fl-face { border: 0; }
.w2-item.chosen .fl-face { box-shadow: 0 0 0 5px #ffd977, 0 0 22px 8px rgba(255, 217, 119, .8); }
.w2-item.pic.chosen .fl-face { filter: drop-shadow(0 0 10px #ffd977) drop-shadow(0 0 4px #ffd977); box-shadow: none; }
.w2-item.tapped .fl-face { animation: bump .4s; }
.game-screen.no-shelf .shelf { visibility: hidden; }
.w2-bottle { position: absolute; z-index: 4; pointer-events: none; transform-origin: 50% 100%; filter: drop-shadow(0 6px 6px rgba(80, 60, 30, .2)); }
.w2-bottle svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.w2-bottle.gulp { animation: bottle-gulp .5s ease-out; }
@keyframes bottle-gulp { 30% { transform: scale(1.08, .94); } 60% { transform: scale(.96, 1.05) rotate(-2deg); } }
.w2-liquid {
  position: absolute; left: 11%; right: 11%; bottom: 3%; height: 8%; border-radius: 0 0 12% 12% / 0 0 20% 20%;
  background: linear-gradient(rgba(140, 210, 235, .55), rgba(100, 185, 220, .7)); transition: height .6s ease-out;
}
.w2-liquid::before { content: ''; position: absolute; left: 0; right: 0; top: -5px; height: 10px; border-radius: 50%; background: rgba(200, 240, 252, .8); animation: liquid-wave 2.4s ease-in-out infinite alternate; }
@keyframes liquid-wave { to { transform: scaleX(.92) translateY(2px); } }
.w2-inside { position: absolute; inset: 0; }
.w2-in {
  position: absolute; transform: translate(-50%, -50%) rotate(var(--r)); border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15); animation: in-drop .5s cubic-bezier(.3, 1.6, .5, 1);
}
.w2-in b { font: 700 1em var(--letter); color: #3a3440; }
.w2-in .tok-pic { width: 90%; height: 90%; }
.w2-in .tok-pic img { background: none; }
@keyframes in-drop { from { transform: translate(-50%, -160%) rotate(var(--r)) scale(.6); opacity: 0; } }
.w2-cork { position: absolute; left: 36%; width: 28%; top: -3%; height: 9%; border-radius: 4px 4px 2px 2px; background: repeating-linear-gradient(90deg, #c8955f 0 4px, #b98552 4px 7px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.w2-cork.pop { animation: cork-pop 1s ease-out forwards; }
@keyframes cork-pop { 30% { transform: translate(10px, -120px) rotate(200deg); } 100% { transform: translate(40px, -40px) rotate(420deg); opacity: 0; } }
.w2-count { position: absolute; left: 50%; bottom: -16%; transform: translateX(-50%); font: 700 clamp(14px, 2vw, 20px) var(--letter); color: #7a5a3a; background: rgba(255, 250, 240, .85); padding: 1px 10px; border-radius: 999px; white-space: nowrap; }
.w2-ring { position: absolute; left: 50%; top: 62%; width: 120%; height: 30%; transform: translate(-50%, 0); border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: item-ring 2s ease-out infinite; }
@keyframes item-ring { from { transform: translate(-50%, 0) scale(.7); opacity: .9; } to { transform: translate(-50%, 0) scale(1.25); opacity: 0; } }
.w2-fish { position: absolute; inset: 0; pointer-events: none; }
.w2-fish .fish { position: absolute; left: 0; top: 0; opacity: .7; }
.drip { position: absolute; width: 5px; height: 8px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #bfe9f7; pointer-events: none; animation: drip .7s ease-in forwards; }
@keyframes drip { to { transform: translateY(70px); opacity: 0; } }
.bucket.shake { animation: bucket-shake .4s; }
@keyframes bucket-shake { 25% { margin-left: -5px; } 50% { margin-left: 5px; } 75% { margin-left: -3px; } }

/* ===== ה׳: מבט ממושב הנהג ===== */
.drive { background: #cfeefa; overflow: hidden; touch-action: manipulation; }
.dr-scene, .dr-items { position: absolute; inset: 0; transform-origin: 50% 70%; }
.dr-scene { background: linear-gradient(#a9dcf2, #e6f6fb 34%); }
.dr-scene.shake { animation: quake .35s; }
.dr-canvas { position: absolute; inset: 0; }
.dr-sun { position: absolute; left: 12%; top: 6%; width: min(9vw, 9vh); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff4bf 0 50%, #ffdf86 52% 62%, rgba(255, 223, 134, 0) 64%); box-shadow: 0 0 30px 12px rgba(255, 232, 150, .45); }
.dr-cloud { position: absolute; width: 13%; height: 6%; border-radius: 999px; background: #fff; opacity: .9; box-shadow: 24px -10px 0 5px #fff, 50px 2px 0 0 #fff; animation: cloud-drift 60s linear infinite; left: -20%; }
.dr-cloud.c1 { top: 10%; } .dr-cloud.c2 { top: 20%; animation-delay: -30s; transform: scale(.7); }
.dr-items { pointer-events: none; }
.rd-item { position: absolute; left: 0; top: 0; will-change: transform; }
.rd-sign {
  position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center;
  border: max(2px, .07em) solid #f2a08c; box-shadow: 0 .06em .12em rgba(60, 50, 90, .25); font-family: var(--letter); font-weight: 700; color: #3a3440;
}
.rd-sign .tok-letter { font-size: 1em; }
.rd-item.pic .rd-sign .tok-pic { width: 86%; height: 86%; font-size: .9em; }
.rd-item.pic .rd-sign .tok-pic img { background: none; }
.rd-post { position: absolute; left: 46%; width: 8%; top: 95%; bottom: 0; background: #a5a0b5; border-radius: 3px; }
.rd-item.tapped .rd-sign { animation: bump .4s; }
.dr-ws {
  position: absolute; left: -3%; right: -3%; top: -4%; bottom: 20%; pointer-events: none; z-index: 150;
  border: solid #e8d2b6; border-width: 9vh 6vw 0; border-radius: 22% 22% 0 0 / 34% 34% 0 0;
  box-shadow: inset 0 0 0 3px rgba(150, 120, 90, .25);
}
.dr-mirror { position: absolute; left: 50%; top: 2%; width: 15%; height: 6%; transform: translateX(-50%); z-index: 151; border-radius: 12px; background: linear-gradient(#cfe8f2, #a9d3e6); border: 4px solid #c9ad8c; pointer-events: none; }
.dr-mirror i { position: absolute; left: 50%; top: -60%; width: 6%; height: 60%; background: #c9ad8c; transform: translateX(-50%); }
.dr-dash {
  position: absolute; left: -4%; right: -4%; bottom: -2%; height: 26%; z-index: 152; pointer-events: none;
  background: linear-gradient(#f0dcc0, #e3c7a3); border-radius: 50% 50% 0 0 / 34% 34% 0 0; box-shadow: 0 -4px 0 rgba(150, 120, 90, .25);
}
.dr-dash.bump { animation: bump .4s; }
.dr-dash .dial { position: absolute; top: 28%; width: min(8vw, 9vh); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fffaf2 0 55%, #d9bf9c 57%); border: 3px solid #c9ad8c; }
.dr-dash .dial::after { content: ''; position: absolute; left: 50%; top: 50%; width: 38%; height: 4px; background: #f2a08c; transform-origin: 0 50%; transform: rotate(-140deg); border-radius: 2px; animation: needle 3s ease-in-out infinite alternate; }
@keyframes needle { to { transform: rotate(-60deg); } }
.dr-dash .d1 { left: 12%; } .dr-dash .d2 { right: 12%; }
.dr-wheel { position: absolute; z-index: 153; padding: 0; border: 0; background: none; border-radius: 50%; filter: drop-shadow(0 8px 8px rgba(80, 60, 40, .3)); }
.dr-wheel img { width: 100%; height: 100%; display: block; }
.dr-wheel.honk img { animation: bump .3s; }
.drive .steer { z-index: 154; bottom: 4%; }
.drive .fx-layer { position: absolute; inset: 0; z-index: 160; pointer-events: none; }
.speed-set { margin: 14px 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 18px; }
.speed-set small { flex-basis: 100%; color: #8a8094; font-size: 14px; }
.seg { display: inline-flex; background: #f1ecf7; border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 17px; color: #5a5064; cursor: pointer; }
.seg button.on { background: #fff; color: #3a3440; box-shadow: 0 2px 6px rgba(60, 50, 90, .15); font-weight: 700; }

/* ===== ד׳: מי מאחורי הדלת ===== */
.doors { background: linear-gradient(#c3e7f6, #eef8fb 55%); overflow: hidden; touch-action: manipulation; }
.dd-sky { position: absolute; inset: 0; }
.dd-cloud { position: absolute; width: 13%; height: 6%; border-radius: 999px; background: #fff; opacity: .9; box-shadow: 24px -10px 0 5px #fff, 50px 2px 0 0 #fff; animation: cloud-drift 50s linear infinite; left: -20%; }
.dd-cloud.c1 { top: 6%; } .dd-cloud.c2 { top: 14%; animation-delay: -25s; transform: scale(.7); }
.dd-street { position: absolute; inset: 0; }
.dd-walk {
  position: absolute; left: 0; right: 0; top: 78%; bottom: 0;
  background: repeating-linear-gradient(90deg, #efe2cf 0 70px, #e6d6c0 70px 74px), #efe2cf;
  box-shadow: inset 0 6px 0 #dcc8ac;
}
.dd-house { position: absolute; left: 0; top: 0; will-change: transform; }
.dd-roof { position: absolute; left: -6em; right: -6em; top: 0; height: 24em; background: var(--roof); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.dd-wall { position: absolute; left: 0; right: 0; top: 23em; bottom: 0; background: var(--wall); box-shadow: inset 0 0 0 .5em rgba(150, 120, 100, .18); border-radius: .6em .6em 0 0; }
.dd-win { position: absolute; left: 9em; top: 12em; width: 24em; height: 20em; border-radius: 1.5em; background: linear-gradient(#cfeaf6, #a9d6ea); box-shadow: inset 0 0 0 1em #fff, 0 0 0 .4em rgba(150, 120, 100, .25); }
.dd-doorway { position: absolute; left: 44em; width: 36em; bottom: 0; height: 66em; background: #6b5866; perspective: 120em; border-radius: .5em .5em 0 0; overflow: visible; }
.dd-door {
  position: absolute; inset: 0; transform-origin: 0 50%; border-radius: .5em .5em 0 0;
  background: repeating-linear-gradient(90deg, var(--door) 0 8.5em, rgba(0, 0, 0, .06) 8.5em 9em), var(--door);
  box-shadow: inset 0 0 0 .5em rgba(120, 90, 70, .25);
}
.dd-knob { position: absolute; right: 4em; top: 52%; width: 4.5em; height: 4.5em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 20%, #c9b8ea 25%); }
.dd-door.knock { animation: knock .3s; }
@keyframes knock { 25% { margin-left: -.8em; } 50% { margin-left: .8em; } 75% { margin-left: -.4em; } }
.dd-beam { position: absolute; left: 40em; width: 54em; bottom: 66em; height: 9em; background: repeating-linear-gradient(90deg, #2c272e 0 3em, #3a333c 3em 5em); border-radius: .6em; box-shadow: 0 .4em .6em rgba(0, 0, 0, .2); }
.dd-post { position: absolute; left: 80em; width: 10em; bottom: 0; height: 74em; background: repeating-linear-gradient(180deg, #2c272e 0 3em, #3a333c 3em 5em); border-radius: .6em .6em 0 0; box-shadow: .3em 0 .6em rgba(0, 0, 0, .2); }
.dd-peek { position: absolute; left: 8em; right: 0; bottom: 5em; display: flex; flex-direction: column; align-items: center; gap: 1em; opacity: 0; transition: opacity .2s; }
.dd-house.peeking .dd-peek, .dd-peek:has(.dd-animal:not(:empty)) { opacity: 1; }
.dd-animal { font-size: 20em; line-height: 1; filter: drop-shadow(0 .05em .05em rgba(0, 0, 0, .2)); }
.dd-sign { width: 23em; height: 23em; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1.2em #f6c37a, 0 .6em 1em rgba(0, 0, 0, .25); font-family: var(--letter); font-weight: 700; color: #3a3440; }
.dd-sign .tok-letter { font-size: 15em; }
.dd-sign .tok-pic { width: 82%; height: 82%; font-size: 13em; display: grid; place-items: center; }
.dd-sign .tok-pic img { background: none; }
.dd-peek.boo { animation: bump .3s; }
.dd-house.slam { animation: quake .35s; }
.dd-jumper { position: absolute; left: 0; top: 0; z-index: 7; display: grid; place-items: center; pointer-events: none; }
.dd-jumper span { font-size: 9vmin; }
.dd-ghost { position: absolute; width: 2px; height: 2px; }
.dd-parade { position: absolute; left: 0; right: 0; top: 78%; bottom: 0; z-index: 5; pointer-events: none; }
.dd-count { position: absolute; left: 3%; top: 50%; transform: translateY(-50%); font: 700 clamp(16px, 2.4vw, 24px) var(--letter); color: #7a5a3a; background: rgba(255, 250, 240, .9); padding: 2px 12px; border-radius: 999px; }
.dd-member { position: absolute; bottom: 8%; display: flex; flex-direction: column; align-items: center; animation: march .6s ease-in-out infinite alternate; }
.dd-member span { font-size: 7.5vmin; line-height: 1; }
.dd-member i { font-style: normal; margin-top: -4px; width: 5vmin; height: 5vmin; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 700 3.4vmin var(--letter); color: #3a3440; box-shadow: 0 0 0 2px #f6c37a; }
.dd-member i .tok-pic { width: 90%; height: 90%; font-size: 2vmin; }
.dd-member i .tok-pic img { background: none; }
@keyframes march { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-14%) rotate(4deg); } }
.dd-parade.party .dd-member { animation: party .5s ease-in-out infinite alternate; }
@keyframes party { to { transform: translateY(-60%) rotate(10deg) scale(1.1); } }
/* ר׳: האיורים המצוירים של השער והרגל */
.goal:has(img) { width: min(42%, 60vh); aspect-ratio: 664 / 362; }
.foot:has(img) { transform-origin: 46% 16%; }
.field.has-bg .field-bg { background-size: cover; background-position: center top; }

/* ===== ז׳: הזחל המטפס ===== */
.climb { background: linear-gradient(#bfe6f4, #eaf7ee 70%, #dff0d6); overflow: hidden; touch-action: manipulation; }
.cl-sky { position: absolute; inset: 0; }
.cl-cloud { position: absolute; width: 16%; height: 6%; border-radius: 999px; background: #fff; opacity: .85; box-shadow: 26px -10px 0 5px #fff, 54px 2px 0 0 #fff; animation: cloud-down 22s linear infinite; }
.cl-cloud.c1 { left: 6%; } .cl-cloud.c2 { left: 70%; animation-delay: -8s; transform: scale(.7); } .cl-cloud.c3 { left: 34%; animation-delay: -15s; transform: scale(.8); }
@keyframes cloud-down { from { top: -10%; } to { top: 110%; } }
.cl-stem {
  position: absolute; top: 0; bottom: 0; border-radius: 999px;
  background: repeating-linear-gradient(180deg, #8cc78a 0 26px, #7dbb7c 26px 30px, #8cc78a 30px 70px), #8cc78a;
  box-shadow: inset -6px 0 0 rgba(0, 0, 0, .08), inset 6px 0 0 rgba(255, 255, 255, .25);
}
.cl-leaves { position: absolute; inset: 0; pointer-events: none; }
.cl-leaf { position: absolute; left: 0; top: 0; will-change: transform; }
.cl-twig { position: absolute; left: 50%; top: 50%; height: 7px; margin-top: -3px; background: #7dbb7c; border-radius: 4px; }
.cl-blade {
  position: absolute; inset: 0; border-radius: 0 70% 0 70%; transform: rotate(-45deg);
  background: radial-gradient(circle at 30% 30%, #c6e8b4, #9fd19a 70%); box-shadow: inset 0 0 0 3px #86bf82, 0 4px 8px rgba(40, 90, 40, .2);
  display: grid; place-items: center;
}
.cl-face { width: 62%; height: 62%; border-radius: 50%; background: #fff; display: grid; place-items: center; transform: rotate(45deg); font: 700 clamp(26px, 4.4vw, 46px) var(--letter); color: #3a3440; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); }
.cl-face .tok-pic { width: 88%; height: 88%; font-size: clamp(24px, 4vw, 40px); }
.cl-face .tok-pic img { background: none; }
.cl-leaf.chosen .cl-blade { box-shadow: inset 0 0 0 3px #86bf82, 0 0 0 5px #ffd977, 0 0 22px 8px rgba(255, 217, 119, .8); }
.cl-leaf.tapped .cl-blade { animation: bump .4s; }
.cl-leaf.munched .cl-blade { animation: munched .35s forwards; }
@keyframes munched { to { transform: rotate(-45deg) scale(.1); opacity: 0; } }
.cl-leaf.wilt .cl-blade { filter: sepia(.8) saturate(.6) brightness(.9); transition: filter .3s; }
.cl-deco { position: absolute; left: 0; top: 0; border-radius: 0 70% 0 70%; background: #a9d6a0; box-shadow: inset 0 0 0 2px #8cc78a; transform-origin: 0 50%; }
.cl-deco.flower { border-radius: 50%; background: radial-gradient(circle, #ffe08a 0 25%, #f6b8d1 27% 60%, transparent 62%); box-shadow: none; }
.cl-cat { position: absolute; z-index: 3; pointer-events: none; }
.cl-body, .cl-head { position: absolute; inset: 0; width: 100%; height: 100%; }
.cl-body { transform-origin: 51% 50%; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 6px 6px rgba(40, 60, 40, .2)); }
.cl-head { z-index: 2; filter: drop-shadow(0 4px 4px rgba(40, 60, 40, .2)); }
.cl-head.chew { animation: chew .6s; }
@keyframes chew { 20%, 60% { scale: 1.06 .94; } 40%, 80% { scale: .96 1.05; } }
.cl-neck { position: absolute; right: 65.9%; top: 24.2%; height: 9.4%; width: 0; background: #4a484c; border-radius: 999px; z-index: 1; }
.cl-cat.yuck .cl-head { animation: yuck-head .6s; }
@keyframes yuck-head { 25% { rotate: -12deg; filter: hue-rotate(60deg); } 50% { rotate: 10deg; } 75% { rotate: -6deg; } }
.cl-cat.gulp .cl-body { animation: bump .5s; }
.cl-cat.giggle { animation: giggle .6s; }
@keyframes giggle { 20% { rotate: -4deg; } 40% { rotate: 4deg; } 60% { rotate: -3deg; } 80% { rotate: 2deg; } }
.cl-cocoon { position: absolute; left: 40%; width: 22%; top: 18%; height: 70%; border-radius: 50%; opacity: 0; transform: scale(.4); transition: opacity .6s, transform .6s;
  background: repeating-linear-gradient(170deg, #e9d9b8 0 10px, #dcc79e 10px 14px); box-shadow: inset -8px 0 0 rgba(0, 0, 0, .08); }
.cl-cat.cocoon .cl-cocoon { opacity: 1; transform: scale(1); }
.cl-cat.cocoon .cl-head, .cl-cat.cocoon .cl-body { opacity: 0; transition: opacity .5s .3s; }
.cl-butterfly { position: absolute; z-index: 8; font-size: 12vmin; transform: translate(-50%, -50%); animation: fly-away 2.4s ease-in-out forwards; pointer-events: none; }
@keyframes fly-away { 0% { transform: translate(-50%, -50%) scale(.2); } 30% { transform: translate(-60%, -90%) scale(1.1) rotate(-10deg); } 60% { transform: translate(-30%, -160%) scale(1) rotate(10deg); } 100% { transform: translate(-80%, -320%) scale(.9) rotate(-8deg); } }
.cl-count { position: absolute; z-index: 4; font: 700 clamp(16px, 2.4vw, 24px) var(--letter); color: #4f7a4c; background: rgba(255, 255, 255, .85); padding: 2px 12px; border-radius: 999px; }
.crumb { position: absolute; width: 9px; height: 7px; border-radius: 40%; pointer-events: none; animation: crumb .9s ease-out forwards; }
@keyframes crumb { to { transform: translate(var(--dx), var(--dy)) rotate(200deg); opacity: 0; } }
/* האיורים המצוירים */
.dd-animal { display: block; width: 30em; height: 25em; font-size: 1em; }
.dd-animal img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; display: block; }
.dd-jumper span, .dd-member span { display: block; }
.dd-jumper span img { width: 100%; height: 100%; object-fit: contain; }
.dd-jumper span { width: 100%; height: 100%; font-size: 1em; }
.dd-member span { width: 9vmin; height: 7.5vmin; font-size: 1em; }
.dd-member span img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.w2-bottle-img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .92; }
.w2-bottle .w2-liquid { left: 12%; right: 12%; bottom: 3%; opacity: .7; }
.w2-bottle .w2-cork { display: none; }
.cl-cocoon { background: none !important; box-shadow: none !important; object-fit: contain; left: 30%; width: 40%; top: 0; height: 90%; }
.cl-butterfly img { width: 14vmin; height: auto; display: block; }
.cl-deco.leafimg { background: none; box-shadow: none; border-radius: 0; object-fit: contain; }

/* ===== ז׳: הזחל המטפס בעומק ===== */
.climb3d { --cam: 0deg; overflow: hidden; touch-action: manipulation; background: linear-gradient(#a9dcf2, #dff3f6 55%, #eaf6e2); }
.climb3d > div { rotate: var(--cam); transform-origin: 50% 60%; }
.climb3d .fx-layer, .climb3d .c3-count { rotate: none; }
.c3-sky { position: absolute; inset: -5%; }
.c3-sun { position: absolute; right: 14%; top: 6%; width: min(12vw, 12vh); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff6c8 0 45%, #ffe08a 50% 60%, rgba(255, 224, 138, 0) 66%); box-shadow: 0 0 60px 30px rgba(255, 236, 160, .5); }
.c3-rays { position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: screen; opacity: .45;
  background: repeating-conic-gradient(from 200deg at 82% 8%, rgba(255, 250, 220, .5) 0 4deg, transparent 4deg 13deg);
  -webkit-mask-image: radial-gradient(circle at 82% 8%, #000 10%, transparent 70%); mask-image: radial-gradient(circle at 82% 8%, #000 10%, transparent 70%);
  animation: c3rays 12s ease-in-out infinite alternate; }
@keyframes c3rays { to { transform: rotate(4deg); opacity: .3; } }
.c3-far, .c3-mid, .c3-near, .c3-back, .c3-front, .c3-pollen { position: absolute; inset: 0; pointer-events: none; }
.c3-far { filter: blur(3px); opacity: .55; }
.c3-mid { filter: blur(1.2px); opacity: .8; }
.c3-bgstem { position: absolute; top: 0; width: 18px; border-radius: 999px; background: linear-gradient(90deg, #7cbf86, #a6dba0 40%, #7cbf86); }
.c3-bgstem.far { width: 10px; }
.c3-bgstem i { position: absolute; width: 46px; height: 30px; border-radius: 0 70% 0 70%; background: #a8d9a0; }
.c3-bgstem.far i { width: 28px; height: 18px; }
.c3-bgstem i:nth-child(1) { top: 20%; left: 8px; } .c3-bgstem i:nth-child(2) { top: 50%; right: 8px; transform: scaleX(-1); } .c3-bgstem i:nth-child(3) { top: 78%; left: 8px; }
/* הגבעול הראשי: גליל עם הצללה ופסים שזזים */
.c3-stem { position: absolute; top: -5%; bottom: -5%; border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .18), rgba(255, 255, 255, .35) 30%, rgba(255, 255, 255, .05) 55%, rgba(0, 0, 0, .22)),
    repeating-linear-gradient(180deg, #84c482 0 60px, #78b876 60px 64px), #84c482; }
.c3-back { z-index: 1; } .c3-cat { z-index: 3; } .c3-front { z-index: 4; } .c3-near { z-index: 6; } .c3-pollen { z-index: 7; }
.c3-stem { z-index: 2; }
.c3-leaf { position: absolute; left: 0; top: 0; will-change: transform; perspective: 400px; }
.c3-twig { position: absolute; right: 50%; top: 50%; height: 6px; margin-top: -3px; background: linear-gradient(#8cc78a, #6fae6d); border-radius: 3px; transform-origin: 100% 50%; z-index: -1; left: auto; }
.c3-twig { left: 50%; right: auto; transform-origin: 0 50%; }
.c3-blade { position: absolute; inset: 0; transform-style: preserve-3d; display: grid; place-items: center; filter: drop-shadow(0 8px 8px rgba(40, 80, 40, .22)); }
.c3-leafimg { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: contain; transform: rotate(-40deg); }
.c3-face { position: relative; width: 54%; height: 54%; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 700 clamp(26px, 4.6vw, 48px) var(--letter); color: #3a3440; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.c3-face .tok-pic { width: 88%; height: 88%; font-size: clamp(22px, 4vw, 40px); }
.c3-face .tok-pic img { background: none; }
.c3-leaf.chosen .c3-blade { filter: drop-shadow(0 0 10px #ffd977) drop-shadow(0 0 4px #ffd977); }
.c3-leaf.chosen .c3-face { box-shadow: 0 0 0 5px #ffd977; }
.c3-leaf.tapped .c3-face { animation: bump .4s; }
.c3-leaf.bitten .c3-leafimg { -webkit-mask-image: radial-gradient(circle at 92% 50%, transparent 0 24%, #000 25%); mask-image: radial-gradient(circle at 92% 50%, transparent 0 24%, #000 25%); }
.c3-leaf.wilt .c3-leafimg { filter: sepia(.85) saturate(.6) brightness(.9); transition: filter .3s; }
.c3-cat { position: absolute; pointer-events: none; }
.c3-body { position: absolute; inset: 0; transform-origin: 51% 50%; transition: scale .4s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(10px 12px 8px rgba(30, 60, 30, .25)); }
.c3-band, .c3-head, .c3-cocoon { position: absolute; inset: 0; width: 100%; height: 100%; }
.c3-head { z-index: 2; transform-origin: 34% 32%; filter: drop-shadow(6px 8px 6px rgba(30, 60, 30, .25)); }
.c3-head.chew { animation: chew .6s; }
.c3-neck { position: absolute; right: 65.9%; top: 24.2%; height: 9.4%; width: 0; background: radial-gradient(ellipse at 50% 30%, #6a686c, #3e3c40); border-radius: 999px; z-index: 1; }
.c3-cat.yuck .c3-head { animation: yuck-head .6s; }
.c3-cat.gulp .c3-body { animation: bump .5s; }
.c3-cat.giggle { animation: giggle .6s; }
.c3-cocoon { object-fit: contain; left: 30%; width: 40%; top: 0; height: 90%; opacity: 0; transform: scale(.3); transition: opacity .6s, transform .7s cubic-bezier(.3, 1.5, .5, 1); }
.c3-cat.cocoon .c3-cocoon { opacity: 1; transform: scale(1); }
.c3-cat.cocoon .c3-head, .c3-cat.cocoon .c3-body, .c3-cat.cocoon .c3-neck { opacity: 0; transition: opacity .5s .3s; }
.c3-butterfly { position: absolute; z-index: 9; transform: translate(-50%, -50%); animation: c3fly 2.8s ease-in-out forwards; pointer-events: none; }
.c3-butterfly img { width: 14vmin; display: block; animation: flap .25s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleX(.55); } }
/* הפרפר עף לכיוון המצלמה: גדל ויוצא מהמסך */
@keyframes c3fly { 0% { transform: translate(-50%, -50%) scale(.2); } 35% { transform: translate(-80%, -90%) scale(1.2) rotate(-10deg); } 70% { transform: translate(-40%, -70%) scale(2.6) rotate(8deg); } 100% { transform: translate(-60%, -40%) scale(7); opacity: 0; } }
/* דברים קרובים מאוד למצלמה: גדולים, מטושטשים, חולפים מהר */
.c3-nearthing { position: absolute; top: 0; object-fit: contain; filter: blur(6px) brightness(.95); opacity: .75; }
.c3-nearthing.flower { border-radius: 50%; background: radial-gradient(circle, #ffe08a 0 22%, #f6b8d1 24% 58%, transparent 60%); }
.c3-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff7c8; box-shadow: 0 0 8px 2px rgba(255, 245, 190, .9); animation: pollen 8s ease-in-out infinite; opacity: .8; }
@keyframes pollen { 0% { transform: translate(0, 0); } 50% { transform: translate(30px, -40px); opacity: .3; } 100% { transform: translate(-10px, -90px); opacity: .9; } }
.c3-count { position: absolute; z-index: 8; font: 700 clamp(16px, 2.4vw, 24px) var(--letter); color: #4f7a4c; background: rgba(255, 255, 255, .88); padding: 2px 12px; border-radius: 999px; }

/* ===== ז׳: תלת־מימד אמיתי ===== */
.climb3dx { background: linear-gradient(#8fd3f0, #cdeef7 45%, #eaf7e6); overflow: hidden; touch-action: manipulation; }
.z3-canvas { position: absolute; inset: 0; display: block; }
.z3-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12vmin; animation: bump 1s infinite; }
.z3-count { position: absolute; z-index: 5; top: 12px; left: 14px; font: 700 clamp(18px, 2.6vw, 26px) var(--letter); color: #4f7a4c; background: rgba(255, 255, 255, .9); padding: 4px 14px; border-radius: 999px; box-shadow: 0 4px 12px rgba(40, 80, 40, .15); }
.climb3dx .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.z3-ghost { position: absolute; width: 60px; height: 60px; transform: translate(-50%, -50%); opacity: 0; }
.doors3dx { background: linear-gradient(#a9dcf2, #e6f6fb 55%); overflow: hidden; touch-action: manipulation; }
.doors3dx .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.shark3dx { background: linear-gradient(#8fd6ec, #4fa9cf 60%, #3a8fb8); overflow: hidden; touch-action: none; }
.shark3dx .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.road3dx { background: linear-gradient(#a9dcf2, #e6f6fb 45%); overflow: hidden; touch-action: manipulation; }
.road3dx .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.road3dx .steer { z-index: 7; bottom: 4%; }
.soccer3dx { background: linear-gradient(#9fd6f0, #e3f4fa 50%); overflow: hidden; touch-action: manipulation; }
.soccer3dx .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.lion3dx { background: linear-gradient(#f7c98e, #fde9c8 45%, #fff3de); overflow: hidden; touch-action: manipulation; }
.lion3dx .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.well3dx { background: linear-gradient(#a9dcf2, #e6f6fb 45%); overflow: hidden; touch-action: manipulation; }
.well3dx .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }

/* ---------- א׳: שאגת האריה (מצויר) ---------- */
.lionscene { position: relative; overflow: hidden; touch-action: manipulation; background: #fbe3bd; }
.lionscene .sv-sky { position: absolute; inset: 0; background: linear-gradient(#f9cf98, #fde6c2 48%, #fff2dc 62%); }
.lionscene .sv-sun { position: absolute; left: 16%; top: 14%; width: 15vmin; height: 15vmin; border-radius: 50%; background: radial-gradient(#ffe7a6, #ffd27a 60%, rgba(255,210,122,0) 72%); }
.lionscene .sv-cloud { position: absolute; width: 18vmin; height: 6vmin; border-radius: 6vmin; background: #fffaf0; opacity: .85; animation: svcloud 60s linear infinite; }
.lionscene .sv-cloud::before, .lionscene .sv-cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; }
.lionscene .sv-cloud::before { width: 8vmin; height: 8vmin; left: 3vmin; top: -4vmin; }
.lionscene .sv-cloud::after { width: 6vmin; height: 6vmin; left: 9vmin; top: -2.5vmin; }
.lionscene .sv-cloud.c1 { top: 12%; animation-delay: -10s; }
.lionscene .sv-cloud.c2 { top: 24%; animation-delay: -32s; transform: scale(.8); }
.lionscene .sv-cloud.c3 { top: 8%; animation-delay: -50s; }
@keyframes svcloud { from { left: -25%; } to { left: 110%; } }
.lionscene .sv-hills { position: absolute; left: -5%; right: -5%; top: 52%; height: 20%; background: radial-gradient(60% 100% at 25% 100%, #e7c27c 98%, transparent 100%), radial-gradient(55% 90% at 75% 100%, #dcb36c 98%, transparent 100%); }
.lionscene .sv-grass { position: absolute; left: 0; right: 0; top: 64%; bottom: 0; background: linear-gradient(#e2c37f, #d7b36a); }
.lionscene .sv-tree { position: absolute; }
.lionscene .sv-tree svg { width: 100%; height: 100%; display: block; }
.lionscene .sv-tree.t1 { left: 6%; top: 38%; width: 26vmin; height: 21vmin; }
.lionscene .sv-tree.t2 { left: 40%; top: 47%; width: 15vmin; height: 12vmin; opacity: .85; }
.lionscene .sv-tufts { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; display: flex; justify-content: space-around; align-items: flex-end; pointer-events: none; z-index: 4; }
.lionscene .sv-tufts i { width: 7vmin; height: 7vmin; background: linear-gradient(#c9a65a, #b8954a); clip-path: polygon(0 100%, 15% 20%, 28% 100%, 42% 0, 55% 100%, 70% 25%, 82% 100%, 100% 35%, 100% 100%); opacity: .9; }
.lionscene .lion { position: absolute; z-index: 2; transform-origin: 50% 100%; pointer-events: none; mix-blend-mode: multiply; }
.lionscene .ln { position: absolute; inset: 0; width: 100%; height: 100%; filter: brightness(1.05) contrast(1.08); }
.lionscene .fly-layer { position: absolute; inset: 0; z-index: 3; }
.lionscene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.aplane { position: absolute; left: 0; top: 0; padding: 0; will-change: transform; }
.aplane:disabled { pointer-events: none; }
.aplane:focus-visible .ap-card { outline: 3px solid #4a4058; outline-offset: 3px; }
.aplane .ap-card { position: absolute; left: 0; top: 0; width: 38.5%; aspect-ratio: 1; border-radius: 50%; background: #fffaf0; border: 4px solid #e0a04a; box-shadow: 0 4px 10px rgba(120,80,30,.2); display: grid; place-items: center; overflow: hidden; z-index: 1; }
.aplane .ap-card .tok-letter { font: 700 2.6em var(--letter); color: #3a3440; line-height: 1; }
.aplane .ap-card.pic .tok-pic { width: 82%; height: 82%; display: grid; place-items: center; position: relative; }
.aplane .ap-card.pic .tok-pic i { font-style: normal; font-size: 2.4em; }
.aplane .ap-card.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.aplane .ap-rope { position: absolute; left: 36%; top: 50%; width: 16%; height: 2px; background: #8a6a52; }
.aplane .ap-body { position: absolute; left: 48%; top: 0; width: 56%; height: 100%; }
.aplane .ap-body svg { width: 100%; height: 100%; display: block; overflow: visible; }
.aplane .prop { transform-box: fill-box; transform-origin: 50% 50%; animation: prop .12s linear infinite alternate; }
@keyframes prop { from { transform: scaleY(1); } to { transform: scaleY(.15); } }
.aplane.torn .ap-rope { display: none; }
.aplane.scared .ap-body { animation: shiver .3s ease-in-out 3; }
@keyframes shiver { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.roar-wave { position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 6px solid rgba(255,255,255,.95); border-left-color: transparent; border-top-color: transparent; border-bottom-color: transparent; pointer-events: none;
  animation: roarwave .7s ease-out forwards; opacity: 0; }
@keyframes roarwave { 0% { transform: rotate(var(--ang)) translateX(0) scale(.5); opacity: .95; } 100% { transform: rotate(var(--ang)) translateX(calc(var(--d) * .8)) scale(2.2); opacity: 0; } }
.bigword.lion-word b { -webkit-text-stroke-color: #c0702c; text-shadow: 0 6px 0 #c0702c, 0 12px 18px rgba(0,0,0,.2); }

/* ---------- ק׳: הקוף תופס קוקוסים (מצויר) ---------- */
.junglescene { position: relative; overflow: hidden; touch-action: manipulation; background: #dff3f5; }
.junglescene .jg-sky { position: absolute; inset: 0; background: linear-gradient(#b8e4ec, #e2f4e6 60%); }
.junglescene .jg-sun { position: absolute; left: 44%; top: 10%; width: 13vmin; height: 13vmin; border-radius: 50%; background: radial-gradient(#fff3b8, #ffe08a 60%, rgba(255,224,138,0) 72%); }
.junglescene .jg-cloud { position: absolute; width: 18vmin; height: 6vmin; border-radius: 6vmin; background: #fff; opacity: .9; animation: svcloud 70s linear infinite; }
.junglescene .jg-cloud::before { content: ''; position: absolute; width: 8vmin; height: 8vmin; left: 4vmin; top: -4vmin; border-radius: 50%; background: inherit; }
.junglescene .jg-cloud.c1 { top: 12%; animation-delay: -20s; }
.junglescene .jg-cloud.c2 { top: 22%; animation-delay: -55s; }
.junglescene .jg-sea { position: absolute; left: 0; right: 0; top: 60%; height: 14%; background: linear-gradient(#7ccbe0, #9fdbe8); }
.junglescene .jg-sand { position: absolute; left: -5%; right: -5%; top: 70%; bottom: 0; background: linear-gradient(#f5dfac, #ecd096); border-radius: 50% 50% 0 0 / 14% 14% 0 0; }
.junglescene .jg-palm { position: absolute; bottom: 8%; }
.junglescene .jg-palm svg { width: 100%; height: 100%; display: block; overflow: visible; }
.junglescene .jg-palm.p1 { left: 1%; width: 22vmin; height: 52vmin; }
.junglescene .jg-palm.p2 { left: 17%; width: 17vmin; height: 40vmin; }
.junglescene .monkey { position: absolute; z-index: 2; pointer-events: none; transform-origin: 30% 10%; }
.junglescene .mk { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 8px rgba(60,40,20,.18)); }
.nut-half { position: absolute; pointer-events: none; background: url('../assets/games/qof/coconut.webp') center / 112% no-repeat; }
.nut-half.l { clip-path: polygon(0 0, 52% 0, 46% 30%, 54% 55%, 47% 80%, 52% 100%, 0 100%); }
.nut-half.r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 52% 100%, 47% 80%, 54% 55%, 46% 30%); }
.nut-half::after { content: ''; position: absolute; top: 8%; bottom: 8%; width: 14%; background: #fffaf0; border-radius: 50%; }
.nut-half.l::after { left: 42%; }
.nut-half.r::after { left: 44%; }
.juice { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50% 50% 50% 0; background: #e8f7ff; box-shadow: 0 0 0 2px rgba(150,200,230,.6); pointer-events: none; animation: juice .75s ease-out forwards; }
@keyframes juice { to { transform: translate(var(--tx), calc(var(--ty) + 60px)) scale(.4); opacity: 0; } }
.junglescene .nut-layer { position: absolute; inset: 0; z-index: 3; }
.junglescene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.nut { position: absolute; left: 0; top: 0; will-change: transform; }
.nut .nut-shell { position: absolute; inset: -6%; background: url('../assets/games/qof/coconut.webp') center / contain no-repeat; filter: drop-shadow(0 6px 8px rgba(80,50,20,.25)); }
.nut .nut-label { position: absolute; left: 21%; top: 25%; width: 58%; height: 58%; border-radius: 50%; background: #fffaf0; border: 3px solid #c79a6a; box-shadow: 0 2px 4px rgba(80,50,20,.25); display: grid; place-items: center; overflow: hidden; }
.nut .nut-label .tok-letter { font: 700 2.3em var(--letter); color: #3a3440; line-height: 1; }
.nut .nut-label.pic .tok-pic { width: 84%; height: 84%; display: grid; place-items: center; position: relative; }
.nut .nut-label.pic .tok-pic i { font-style: normal; font-size: 2em; }
.nut .nut-label.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bigword.monkey-word b { -webkit-text-stroke-color: #8a5a3a; text-shadow: 0 6px 0 #8a5a3a, 0 12px 18px rgba(0,0,0,.2); }
.junglescene .jg-trunk { position: absolute; top: 4%; bottom: 7%; z-index: 1; border-radius: 40% 40% 12% 12% / 6% 6% 2% 2%;
  background: repeating-linear-gradient(175deg, #b8875c 0 18px, #a8774e 18px 22px, #c39466 22px 40px); box-shadow: inset -8px 0 0 rgba(90,55,30,.18); }
.junglescene .jg-crown { position: absolute; z-index: 1; pointer-events: none; transform-origin: 50% 40%; }
.junglescene .jg-crown svg { width: 100%; height: auto; display: block; overflow: visible; }
.dizzy { position: absolute; height: 0; transform: translate(-50%, -50%); pointer-events: none; animation: dizzy .45s linear infinite; z-index: 7; aspect-ratio: 2 / 1; }
.dizzy i { position: absolute; font-style: normal; color: #ffd24a; font-size: 26px; text-shadow: 0 2px 3px rgba(0,0,0,.2); }
.dizzy i:nth-child(1) { left: 0; top: -10px; } .dizzy i:nth-child(2) { left: 30%; top: -26px; } .dizzy i:nth-child(3) { left: 62%; top: -18px; } .dizzy i:nth-child(4) { left: 92%; top: -6px; }
@keyframes dizzy { 0% { transform: translate(-50%, -50%) rotate(0) scaleY(.5); } 100% { transform: translate(-50%, -50%) rotate(360deg) scaleY(.5); } }
.junglescene .jg-jungle { position: absolute; left: 0; right: 0; top: 0; bottom: 8%; }
.junglescene .jg-jungle svg { width: 100%; height: 100%; display: block; }
.junglescene .jg-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: linear-gradient(#6f9a52, #5d8645); border-top: 4px solid #82b065; }

/* ---------- ל׳: לבבות על מקל (מצויר) ---------- */
.candyscene { position: relative; overflow: hidden; touch-action: manipulation; background: linear-gradient(160deg, #ffe3ec, #fff4e6 55%, #e9f6ff); }
.candyscene .cd-bg { position: absolute; inset: 0; pointer-events: none; }
.candyscene .cd-bg i { position: absolute; width: 4vmin; height: 4vmin; background: #ffc6d6; opacity: .45; clip-path: path('M12 21 C 4 15, 0 10, 1 6 C 2 2, 7 1, 12 6 C 17 1, 22 2, 23 6 C 24 10, 20 15, 12 21 Z'); transform: scale(1.6); animation: cdfloat 9s ease-in-out infinite; }
.candyscene .cd-bg i:nth-child(1) { left: 6%; top: 14%; } .candyscene .cd-bg i:nth-child(2) { left: 24%; top: 70%; animation-delay: -2s; background: #d9c3f0; }
.candyscene .cd-bg i:nth-child(3) { left: 38%; top: 10%; animation-delay: -4s; } .candyscene .cd-bg i:nth-child(4) { left: 52%; top: 52%; animation-delay: -6s; background: #ffe08a; }
.candyscene .cd-bg i:nth-child(5) { left: 12%; top: 44%; animation-delay: -1s; background: #bfe6f0; } .candyscene .cd-bg i:nth-child(6) { left: 30%; top: 32%; animation-delay: -3s; }
.candyscene .cd-bg i:nth-child(7) { left: 46%; top: 82%; animation-delay: -5s; background: #d9c3f0; } .candyscene .cd-bg i:nth-child(8) { left: 4%; top: 84%; animation-delay: -7s; background: #ffe08a; }
.candyscene .cd-bg i:nth-child(9) { left: 58%; top: 22%; animation-delay: -8s; background: #bfe6f0; } .candyscene .cd-bg i:nth-child(10) { left: 18%; top: 4%; animation-delay: -2.5s; }
@keyframes cdfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.candyscene .face { position: absolute; z-index: 2; pointer-events: none; transform-origin: 70% 80%; }
.candyscene .face img { width: 100%; height: 100%; display: block; }
.candyscene .pop-layer { position: absolute; inset: 0; z-index: 3; }
.candyscene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.lolly { position: absolute; left: 0; top: 0; will-change: transform; transform-origin: 50% 35%; }
.lolly .ll-candy { position: absolute; inset: 0; filter: drop-shadow(0 5px 6px rgba(150,80,100,.25)); }
.lolly .ll-candy svg { width: 100%; height: 100%; display: block; }
.lolly .ll-face { position: absolute; left: 24%; top: 12%; width: 52%; aspect-ratio: 1; border-radius: 50%; background: #fffaf0; display: grid; place-items: center; overflow: hidden; box-shadow: 0 2px 4px rgba(150,80,100,.2); }
.lolly .ll-face .tok-letter { font: 700 2.2em var(--letter); color: #3a3440; line-height: 1; }
.lolly .ll-face.pic .tok-pic { width: 86%; height: 86%; display: grid; place-items: center; position: relative; }
.lolly .ll-face.pic .tok-pic i { font-style: normal; font-size: 1.9em; }
.lolly .ll-face.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; }
.popup.lick-txt { color: #ff6f9a; text-shadow: 0 3px 0 #fff, 0 6px 14px rgba(0,0,0,.15); }
.bigword.candy-word b { -webkit-text-stroke-color: #d9567f; text-shadow: 0 6px 0 #d9567f, 0 12px 18px rgba(0,0,0,.2); }
.candyscene .cd-wall { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #fff1f5 0 34px, #ffe2ea 34px 68px); }
.candyscene .cd-awning { position: absolute; left: 0; right: 0; top: 0; height: 9%; z-index: 1;
  background: repeating-linear-gradient(90deg, #ff8fb1 0 50px, #fffaf0 50px 100px);
  -webkit-mask: radial-gradient(26px 18px at 25px 100%, transparent 98%, #000) 0 0 / 50px 100%; mask: radial-gradient(26px 18px at 25px 100%, transparent 98%, #000) 0 0 / 50px 100%; filter: drop-shadow(0 4px 3px rgba(150,80,100,.2)); }
.candyscene .cd-shelf { position: absolute; left: 2%; width: 58%; height: 14%; display: flex; justify-content: space-around; align-items: flex-end; border-bottom: 10px solid #d9a877; box-shadow: 0 8px 6px -4px rgba(120,70,40,.25); }
.candyscene .cd-shelf.s1 { top: 9%; } .candyscene .cd-shelf.s2 { top: 25%; }
.candyscene .cd-shelf i { height: 92%; aspect-ratio: 70 / 90; display: block; }
.candyscene .cd-shelf svg { width: 100%; height: 100%; display: block; }
.candyscene .cd-counter { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: linear-gradient(#e6b98a, #d9a877); border-top: 8px solid #f2cfa6; }
.candyscene .cd-stand { position: absolute; z-index: 3; border-radius: 18px 18px 8px 8px; background: linear-gradient(#ffc6d6, #ff9fbc); box-shadow: inset 0 6px 0 rgba(255,255,255,.45), 0 6px 8px rgba(150,80,100,.25); }
.candyscene .pop-layer { z-index: 2; }
.candyscene .face { z-index: 4; }
.poof { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; opacity: .9; pointer-events: none; animation: poof .55s ease-out forwards; }
@keyframes poof { to { transform: translate(var(--tx), var(--ty)) scale(1.8); opacity: 0; } }
/* ל׳ – גרסת הלטאה: רקע, מעמד ולטאה מצוירים */
.candyscene .cd-shop, .candyscene .cd-stand, .candyscene .cd-lizard { position: absolute; display: block; pointer-events: none; }
.candyscene .cd-shop { z-index: 0; }
.candyscene .cd-stand { z-index: 1; filter: drop-shadow(0 6px 6px rgba(120,70,40,.18)); }
.candyscene .cd-lizard { z-index: 4; transform-origin: 40% 90%; filter: drop-shadow(0 6px 6px rgba(80,90,40,.18)); }
.candyscene .cd-tongue { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; overflow: visible; }
.candyscene .cd-tongue path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.candyscene .cd-tongue .tg-out { stroke: #b85a6c; }
.candyscene .cd-tongue .tg { stroke: #f2a0ac; }
.candyscene .cd-tongue .tg-mid { stroke: #d97a8a; opacity: .7; }
.candyscene .cd-tongue .tg-lamed { stroke: #141216; stroke-linecap: square; stroke-linejoin: miter; transition: opacity .12s; }
.lolly.tall::after { content: ''; position: absolute; left: calc(50% - 4%); width: 8%; top: 96%; height: 58%; background: #fffaf0; border: 1px solid #e6d6c6; border-radius: 4px; z-index: -1; }
.candyscene .cd-lizard.kid { transform-origin: 70% 85%; filter: none; }

/* ---------- ל׳: הלטאה צדה זבובים ---------- */
.lizscene { position: relative; overflow: hidden; touch-action: manipulation; background: #dff2e6; }
.lizscene .lz-sky { position: absolute; inset: 0; background: linear-gradient(#bfe6f2, #e8f7ee 60%); }
.lizscene .lz-sun { position: absolute; left: 8%; top: 8%; width: 13vmin; height: 13vmin; border-radius: 50%; background: radial-gradient(#fff3b8, #ffe08a 60%, rgba(255,224,138,0) 72%); }
.lizscene .lz-cloud { position: absolute; width: 18vmin; height: 6vmin; border-radius: 6vmin; background: #fff; opacity: .9; animation: svcloud 70s linear infinite; }
.lizscene .lz-cloud::before { content: ''; position: absolute; width: 8vmin; height: 8vmin; left: 4vmin; top: -4vmin; border-radius: 50%; background: inherit; }
.lizscene .lz-cloud.c1 { top: 12%; animation-delay: -15s; } .lizscene .lz-cloud.c2 { top: 24%; animation-delay: -48s; }
.lizscene .lz-hills { position: absolute; left: -5%; right: -5%; top: 50%; height: 26%; background: radial-gradient(60% 100% at 25% 100%, #b8dca0 98%, transparent 100%), radial-gradient(55% 90% at 78% 100%, #a8d394 98%, transparent 100%); }
.lizscene .lz-grass { position: absolute; left: 0; right: 0; top: 66%; bottom: 0; background: linear-gradient(#a6d48e, #8fc27a); }
.lizscene .lz-flowers i { position: absolute; display: block; }
.lizscene .lz-flowers svg { width: 100%; height: 100%; display: block; }
.lizscene .lz-rock { position: absolute; z-index: 1; border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%; background: linear-gradient(#d6cbbd, #b8a994); box-shadow: inset -10px -8px 0 rgba(90,70,50,.15); }
.lizscene .lz-lizard { position: absolute; z-index: 2; display: block; pointer-events: none; transform-origin: 45% 92%; filter: drop-shadow(0 6px 6px rgba(60,80,40,.2)); }
.lizscene .fly-layer { position: absolute; inset: 0; z-index: 3; }
.lizscene .lz-tongue { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.lizscene .lz-tongue path { fill: none; stroke-linecap: round; }
.lizscene .lz-tongue .o { stroke: #b85a6c; } .lizscene .lz-tongue .i { stroke: #f2a0ac; }
.lizscene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.fly { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; will-change: transform; }
.fly .fl-body { width: 92%; height: 40%; position: relative; }
.fly .fl-body svg { width: 100%; height: 100%; display: block; overflow: visible; }
.fly .wing { transform-box: fill-box; transform-origin: 50% 100%; animation: buzz .06s linear infinite alternate; }
.fly.resting .wing { animation-duration: .5s; }
@keyframes buzz { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
.fly .fl-thread { width: 2px; height: 8%; background: #8a8396; }
.fly .fl-card { width: 66%; aspect-ratio: 1; border-radius: 50%; background: #fffaf0; border: 4px solid #7fb36a; box-shadow: 0 3px 6px rgba(40,60,30,.2); display: grid; place-items: center; overflow: hidden; }
.fly .fl-card .tok-letter { font: 700 2.2em var(--letter); color: #3a3440; line-height: 1; }
.fly .fl-card.pic .tok-pic { width: 86%; height: 86%; display: grid; place-items: center; position: relative; }
.fly .fl-card.pic .tok-pic i { font-style: normal; font-size: 1.9em; }
.fly .fl-card.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; }
.fly.hint .fl-card { animation: flyhint .7s ease-in-out infinite alternate; }
@keyframes flyhint { from { box-shadow: 0 0 0 0 rgba(255,217,119,.0); } to { box-shadow: 0 0 0 10px rgba(255,217,119,.75); } }
.fly.dizzy-fly .fl-body::after { content: '★ ★'; position: absolute; color: #ffd24a; font-size: 18px; margin-top: -10px; }
.popup.gulp-txt { color: #6fb46a; text-shadow: 0 3px 0 #fff, 0 6px 14px rgba(0,0,0,.15); }
.bigword.liz-word b { -webkit-text-stroke-color: #4f8a4d; text-shadow: 0 6px 0 #4f8a4d, 0 12px 18px rgba(0,0,0,.2); }
.lizscene .shadow-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.lizscene .fly-shadow { position: absolute; border-radius: 50%; background: radial-gradient(rgba(40,70,30,.55), rgba(40,70,30,0) 70%); }
.lizscene .fly { transform-origin: 50% 61%; }
.lizscene .lz-bg { position: absolute; display: block; pointer-events: none; z-index: 0; }
.fly .fl-body img { width: 100%; height: 100%; object-fit: contain; display: block; animation: flybob .09s linear infinite alternate; }
.fly.resting .fl-body img { animation-duration: .6s; }
@keyframes flybob { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-1.5px) scaleY(.97); } }

/* ---------- פ׳: הפרח והפרפרים ---------- */
.flowerscene { position: relative; overflow: hidden; touch-action: manipulation; background: #eef6ee; }
.flowerscene .fw-bg { position: absolute; display: block; pointer-events: none; z-index: 0; }
.flowerscene .shadow-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.flowerscene .fly-shadow { position: absolute; border-radius: 50%; background: radial-gradient(rgba(40,70,30,.55), rgba(40,70,30,0) 70%); }
.flowerscene .fw-plant { position: absolute; z-index: 2; pointer-events: none; transform-origin: 55% 100%; }
.flowerscene .fw-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.flowerscene .fw-petals i { position: absolute; display: block; transform: translate(-50%, -50%) rotate(var(--a)) scale(0); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 35%, #fff 0 12%, var(--c) 40%); box-shadow: inset 0 -6px 0 rgba(0,0,0,.06); transition: transform .5s cubic-bezier(.2, 1.6, .4, 1); }
.flowerscene .fw-petals i.on { transform: translate(-50%, -50%) rotate(var(--a)) scale(1); }
.flowerscene .fw-plant.full .fw-petals i { animation: petalwave 1.2s ease-in-out infinite alternate; }
@keyframes petalwave { to { transform: translate(-50%, -50%) rotate(var(--a)) scale(1.12); } }
.flowerscene .bf-layer { position: absolute; inset: 0; z-index: 3; }
.flowerscene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.bfly2 { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; will-change: transform; transform-origin: 50% 61%; }
.bfly2 .bf-wings { width: 110%; height: 40%; }
.bfly2 .bf-wings svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bfly2 .wing { transform-box: fill-box; animation: flap2 .22s ease-in-out infinite alternate; }
.bfly2 .wl { transform-origin: 100% 50%; } .bfly2 .wr { transform-origin: 0% 50%; }
.bfly2.resting .wing { animation-duration: .9s; }
.bfly2.shoo .wing { animation-duration: .09s; }
@keyframes flap2 { from { transform: scaleX(1); } to { transform: scaleX(.4); } }
.bfly2 .bf-thread { width: 2px; height: 8%; background: #8a6a52; }
.bfly2 .bf-card { width: 66%; aspect-ratio: 1; border-radius: 50%; background: #fffaf0; border: 4px solid #f2a0b8; box-shadow: 0 3px 6px rgba(80,40,60,.2); display: grid; place-items: center; overflow: hidden; }
.bfly2 .bf-card .tok-letter { font: 700 2.2em var(--letter); color: #3a3440; line-height: 1; }
.bfly2 .bf-card.pic .tok-pic { width: 86%; height: 86%; display: grid; place-items: center; position: relative; }
.bfly2 .bf-card.pic .tok-pic i { font-style: normal; font-size: 1.9em; }
.bfly2 .bf-card.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; }
.bigword.flower-word b { -webkit-text-stroke-color: #c0507a; text-shadow: 0 6px 0 #c0507a, 0 12px 18px rgba(0,0,0,.2); }

/* בלי מילים מצחיקות על המסך (בּוֹנְק, פּוּ, גְּלוּם, גּוֹל...) – רק האות או המילה. הצלילים הקצרים נשארים */
.popup.boing-txt, .popup.goal-txt, .popup.gulp-txt, .popup.lick-txt, .bigword.pu-word { display: none !important; }

/* ---------- י׳: היונה והביצים ---------- */
.eggscene { position: relative; overflow: hidden; touch-action: manipulation; background: #eef6ee; }
.eggscene .eg-bg { position: absolute; display: block; pointer-events: none; z-index: 0; }
.eggscene .eg-dove { position: absolute; z-index: 5; display: block; pointer-events: none; transform-origin: 62% 98%; filter: drop-shadow(0 6px 6px rgba(60,60,90,.18)); }
.eggscene .eg-nest { position: absolute; pointer-events: none; border-radius: 50%; }
.eggscene .eg-nest.back { z-index: 1; background: radial-gradient(ellipse at 50% 70%, #6b4a2f 0 45%, #8a6446 60%, #a87a52 100%); box-shadow: inset 0 8px 0 rgba(0,0,0,.15); }
.eggscene .eg-nest.front { z-index: 4; background:
  repeating-linear-gradient(20deg, rgba(90,60,35,.55) 0 3px, transparent 3px 11px),
  repeating-linear-gradient(-25deg, rgba(150,110,70,.6) 0 3px, transparent 3px 13px),
  linear-gradient(#c49a6c, #a87a52); border-radius: 0 0 50% 50% / 0 0 100% 100%; box-shadow: 0 6px 8px rgba(60,40,20,.25); }
.eggscene .egg-layer { position: absolute; inset: 0; z-index: 3; }
.eggscene .chick-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.eggscene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.egg { position: absolute; left: 0; top: 0; transform-origin: 50% 90%; will-change: transform; }
.egg .eg-shell { position: absolute; inset: 0; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, #fbf3e4 45%, #efe2c8 100%); box-shadow: inset -6px -8px 0 rgba(160,130,90,.15), 0 4px 6px rgba(80,60,30,.2); }
.egg .eg-shell::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 70% 25%, rgba(200,170,120,.35) 0 3%, transparent 4%), radial-gradient(circle at 25% 70%, rgba(200,170,120,.35) 0 3%, transparent 4%), radial-gradient(circle at 75% 78%, rgba(200,170,120,.3) 0 2.5%, transparent 3.5%); }
.egg .eg-crack { position: absolute; left: 8%; right: 8%; top: 36%; height: 14%; opacity: 0; background: linear-gradient(135deg, transparent 45%, #8a6a4a 45% 55%, transparent 55%) 0 0 / 18% 100% repeat-x; }
.egg.eg-swap .eg-face { animation: eg-swap .35s ease-out; }
@keyframes eg-swap { from { opacity: .2; } to { opacity: 1; } }
.egg.cracked .eg-crack { opacity: 1; }
.egg.cracked .eg-shell { clip-path: polygon(0 45%, 12% 38%, 24% 48%, 36% 38%, 48% 48%, 60% 38%, 72% 48%, 84% 38%, 100% 45%, 100% 100%, 0 100%); }
.egg .eg-face { position: absolute; left: 8%; top: 4%; width: 84%; height: 62%; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.egg .eg-face .tok-letter { font: 700 2.9em var(--letter); color: #3a3440; line-height: 1; }
.egg .eg-face.pic .tok-pic { width: 92%; height: 92%; display: grid; place-items: center; position: relative; }
.egg .eg-face.pic .tok-pic i { font-style: normal; font-size: 1.9em; }
.egg .eg-face.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; }
.chick { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; filter: drop-shadow(0 3px 3px rgba(80,60,20,.2)); }
.chick svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chick .ck-wing { transform-box: fill-box; transform-origin: 80% 80%; animation: ckflap .3s ease-in-out infinite alternate; }
.chick .ck-wing.r { transform-origin: 20% 80%; }
@keyframes ckflap { to { transform: rotate(-18deg); } }
.bigword.egg-word b { -webkit-text-stroke-color: #7a6fb8; text-shadow: 0 6px 0 #7a6fb8, 0 12px 18px rgba(0,0,0,.2); }
/* י׳ – קן וביצה מצוירים מג׳מיני */
.eggscene .eg-nest.back, .eggscene .eg-nest.front { background: url('../assets/games/yod/nest.webp') center / 100% 100% no-repeat; box-shadow: none; border-radius: 0; }
.eggscene .eg-nest.front { clip-path: inset(67% 0 0 0); filter: drop-shadow(0 4px 4px rgba(60,40,20,.2)); }
.egg .eg-shell { background: url('../assets/games/yod/egg.webp') center / 100% 100% no-repeat; box-shadow: none; border-radius: 0; filter: drop-shadow(0 3px 4px rgba(80,60,30,.2)); }
.egg .eg-shell::before { display: none; }

/* ---------- ת׳: גשר התנין ---------- */
.bridgescene { position: relative; overflow: hidden; touch-action: manipulation; background: #e6f4f6; }
.bridgescene .br-sky { position: absolute; inset: 0; background: linear-gradient(#bfe6f2, #eaf7f0 62%); }
.bridgescene .br-sun { position: absolute; left: 8%; top: 9%; width: 12vmin; height: 12vmin; border-radius: 50%; background: radial-gradient(#fff3b8, #ffe08a 60%, rgba(255,224,138,0) 72%); }
.bridgescene .br-cloud { position: absolute; width: 18vmin; height: 6vmin; border-radius: 6vmin; background: #fff; opacity: .9; animation: svcloud 70s linear infinite; }
.bridgescene .br-cloud::before { content: ''; position: absolute; width: 8vmin; height: 8vmin; left: 4vmin; top: -4vmin; border-radius: 50%; background: inherit; }
.bridgescene .br-cloud.c1 { top: 12%; animation-delay: -15s; } .bridgescene .br-cloud.c2 { top: 22%; animation-delay: -45s; }
.bridgescene .br-hills { position: absolute; left: -5%; right: -5%; top: 46%; height: 24%; background: radial-gradient(60% 100% at 25% 100%, #b8dca0 98%, transparent 100%), radial-gradient(55% 90% at 78% 100%, #a8d394 98%, transparent 100%); }
.bridgescene .br-river { position: absolute; top: 66%; bottom: 0; background: linear-gradient(#8fd0e6, #6fbcd8); overflow: hidden; }
.bridgescene .br-river i { position: absolute; inset: -20% -50%; background: repeating-linear-gradient(100deg, transparent 0 40px, rgba(255,255,255,.35) 40px 46px, transparent 46px 90px); animation: riverflow 6s linear infinite; }
@keyframes riverflow { to { transform: translateX(90px); } }
.bridgescene .br-bank { position: absolute; top: 66%; bottom: 0; background: linear-gradient(#a6d48e, #8fc27a); border-top: 4px solid #b9e0a0; }
.bridgescene .br-bank.l { left: 0; border-radius: 0 40px 0 0; }
.bridgescene .br-bank.r { right: 0; border-radius: 40px 0 0 0; }
.bridgescene .br-bridge { position: absolute; z-index: 2; display: block; pointer-events: none; transform-origin: 50% 100%; filter: drop-shadow(0 6px 6px rgba(40,60,40,.2)); }
.bridgescene .ani-layer { position: absolute; inset: 0; z-index: 3; }
.bridgescene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.animal { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; transform-origin: 50% 100%; will-change: transform; }
.animal .an-img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; filter: drop-shadow(0 3px 3px rgba(40,60,30,.2)); }
.animal .an-pic { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.animal .an-pic .tok-pic { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.animal .an-pic .tok-pic i { font-style: normal; font-size: 3.6em; }
.animal .an-pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; filter: drop-shadow(0 3px 3px rgba(40,60,30,.2)); }
.animal .an-sign { width: 58%; aspect-ratio: 1; border-radius: 14%; background: #fffaf0; border: 4px solid #c49a6c; display: grid; place-items: center; box-shadow: 0 3px 5px rgba(80,50,20,.2); }
.animal .an-sign .tok-letter { font: 700 2.2em var(--letter); color: #3a3440; line-height: 1; }
.animal .an-stick { width: 4px; height: 10%; background: #a87a52; }
.bigword.bridge-word b { -webkit-text-stroke-color: #4f8a4d; text-shadow: 0 6px 0 #4f8a4d, 0 12px 18px rgba(0,0,0,.2); }

/* ---------- ת׳: התנין על המזח (מצויר, מבט מלמעלה; התנין מצויר בקנבס ומתכופף לאורך מסלול) ---------- */
.crocscene { position: relative; overflow: hidden; touch-action: manipulation; background: #8fcfd6; }
.crocscene .cr-lake { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left bottom; pointer-events: none; user-select: none; }
.crocscene .cr-lake-shine { position: absolute; inset: 0; pointer-events: none; background: repeating-radial-gradient(ellipse 80px 10px at 60% 40%, rgba(255,255,255,.16) 0 2px, transparent 3px 34px); animation: lakeshine 12s linear infinite; opacity: .7; -webkit-mask: linear-gradient(#000 70%, transparent 82%); mask: linear-gradient(#000 80%, transparent 92%); }
@keyframes lakeshine { from { transform: translateX(0); } to { transform: translateX(-120px); } }
.crocscene .cr-pier { position: absolute; display: block; pointer-events: none; user-select: none; z-index: 1; filter: drop-shadow(6px 10px 0 rgba(30,70,80,.25)); }
.crocscene .fish-layer { position: absolute; inset: 0; z-index: 3; }
.crocscene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.crocscene .cr-ring { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 3px solid rgba(255,255,255,.8); pointer-events: none; animation: crring .9s ease-out forwards; }
@keyframes crring { to { transform: scale(var(--r), calc(var(--r) * .55)); opacity: 0; border-width: 1px; } }
.lfish { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.lfish .lf-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 4px rgba(20,60,80,.25)); }
.lfish.left .lf-img { transform: scaleX(-1); }
.lfish .lf-card { position: absolute; left: 58.1%; top: 49.1%; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.lfish.left .lf-card { left: 41.9%; }
.lfish .lf-card .tok-letter { font: 700 2.4em var(--letter); color: #3a3440; line-height: 1; }
.lfish .lf-card.pic .tok-pic { width: 86%; height: 86%; display: grid; place-items: center; position: relative; }
.lfish .lf-card.pic .tok-pic i { font-style: normal; font-size: 2em; }
.lfish .lf-card.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; }
.bigword.croc-word b { -webkit-text-stroke-color: #4f8a4d; text-shadow: 0 6px 0 #4f8a4d, 0 12px 18px rgba(0,0,0,.2); }
.crocscene .cr-deco { position: absolute; display: block; height: auto; z-index: 1; pointer-events: none; user-select: none; }
.crocscene .cr-lily { filter: drop-shadow(3px 5px 2px rgba(20,70,90,.25)); }
.lfish.f2 .lf-card { left: 50.4%; top: 53.6%; width: 46%; }
.lfish.f2.left .lf-card { left: 49.6%; }
.crocscene .cr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.crocscene .cr-croc { position: absolute; display: block; z-index: 2; pointer-events: none; user-select: none; transform-origin: 70% 15%; filter: drop-shadow(5px 8px 4px rgba(20,50,40,.3)); }

/* ---------- ש׳: הארנב סוגר את הפה ---------- */
.teethscene { position: relative; overflow: hidden; touch-action: manipulation; background: #fdfefe; }
.teethscene .th-face { position: absolute; transform-origin: 50% 45%; }
.teethscene .th-face > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.teethscene .th-teeth { position: absolute; inset: 0; z-index: 1; }
.teethscene .th-gum { z-index: 2; }
.teethscene .th-closed { z-index: 4; opacity: 0; }
.teethscene .th-face.closed .th-closed { opacity: 1; animation: thjaw .13s ease-in both; }
@keyframes thjaw { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }   /* הלסת התחתונה עולה ונסגרת */
/* שן לחוצה: צל כהה מעל השן (בלי filter, שנתקע בחלק מהמכשירים ומשאיר את השן כהה גם אחרי שהיא צצה) */
.tooth .th-in::after { content: ''; position: absolute; inset: 0; background: rgba(70,40,40,.22); -webkit-mask: url('../assets/games/shin/tooth2.webp') center / 100% 100% no-repeat; mask: url('../assets/games/shin/tooth2.webp') center / 100% 100% no-repeat; opacity: 0; transition: opacity .15s; pointer-events: none; }
.tooth.pressed .th-in::after { opacity: 1; }
.tooth.down .th-in::after { transform: scaleY(-1); }
.teethscene .th-face.closed { animation: thsnap .3s ease-out; }
@keyframes thsnap { 0% { transform: scale(1, .96); } 40% { transform: scale(1.03, .97); } 100% { transform: none; } }
.teethscene .th-anchor { position: absolute; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(60,20,20,.3)); }
.teethscene .th-anchor img { width: 100%; height: 100%; display: block; border-radius: 0 0 5px 5px; }
.teethscene .th-anchor.glow { animation: thglow .8s ease-out; }
@keyframes thglow { 30% { filter: drop-shadow(0 0 12px #fff) drop-shadow(0 0 5px #ffe680) brightness(1.12); } }
.teethscene .th-anchor.hop { animation: thhop .5s ease-in-out 4; transform-origin: 50% 0; }
@keyframes thhop { 50% { transform: translateY(-4%); filter: drop-shadow(0 0 12px #fff) brightness(1.12); } }
.tooth { position: absolute; cursor: pointer; }
.tooth .th-in { position: absolute; inset: 0; filter: drop-shadow(0 3px 2px rgba(60,20,20,.35)); }
.tooth .th-in img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.tooth.down .th-in img { transform: scaleY(-1); }
.tooth .th-card { position: absolute; left: 0; right: 0; top: 32%; bottom: 6%; display: grid; place-items: center; pointer-events: none; }
.tooth.down .th-card { top: 6%; bottom: 32%; }
.tooth .th-card .tok-letter { font: 700 1em var(--letter); color: #4a3f45; line-height: 1; }
.tooth .th-card.pic .tok-pic { width: 88%; height: 88%; display: grid; place-items: center; position: relative; }
.tooth .th-card.pic .tok-pic i { font-style: normal; font-size: .8em; }
.tooth .th-card.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tooth.wobble { animation: thwob .22s linear; }
/* אות חדשה על השן: נצנוץ עובר על השן, והאות מופיעה בעדינות – השן עצמה לא זזה */
.tooth .th-in::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.95) 48%, transparent 66%) no-repeat; background-size: 250% 100%;
  -webkit-mask: url('../assets/games/shin/tooth2.webp') center / 100% 100% no-repeat; mask: url('../assets/games/shin/tooth2.webp') center / 100% 100% no-repeat; }
.tooth .th-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(110,30,30,.5), rgba(110,30,30,.12) 16%, transparent 30%);
  -webkit-mask: url('../assets/games/shin/tooth2.webp') center / 100% 100% no-repeat; mask: url('../assets/games/shin/tooth2.webp') center / 100% 100% no-repeat; }
.tooth.down .th-shade { transform: scaleY(-1); }
.tooth.shine .th-in::before { animation: thshine .7s ease-out; }
.tooth.shine .th-card { animation: thcard .45s ease-out; }
@keyframes thshine { 0% { opacity: 1; background-position: 120% 0; } 100% { opacity: 1; background-position: -60% 0; } }
@keyframes thcard { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes thwob { 25% { translate: -2px 0; } 75% { translate: 2px 0; } }
.tooth.pop .th-in { animation: thpop .45s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes thpop { from { opacity: 0; scale: .4; } }
.teethscene .th-hand { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; display: none; transform-origin: 0 0; }
.teethscene .th-hand.on { display: block; }
.teethscene .th-hand img { width: 100%; display: block; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.teethscene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.bigword.teeth-word b { -webkit-text-stroke-color: #c0507a; text-shadow: 0 6px 0 #c0507a, 0 12px 18px rgba(0,0,0,.2); }
.teethscene .th-lip { position: absolute; z-index: 6; display: none; pointer-events: none; }
.teethscene.caught-up .th-lip.up, .teethscene.caught-down .th-lip.down { display: block; }
.teethscene .fx-layer { z-index: 7; }
/* תצוגות השלבים נגזרות מהדמות, הרקע וסוג המשימה הנוכחיים. */
.stage-preview { display: block; width: 100%; aspect-ratio: 16 / 10; position: relative; overflow: hidden; border-radius: 18px; background: var(--preview-color); }
.stage-preview .sp-bg, .stage-preview .sp-scenery { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-preview .sp-actor { position: absolute; left: 5%; bottom: 3%; width: 64%; height: 90%; object-fit: contain; mix-blend-mode: multiply; }
.stage-preview .sp-tokens { position: absolute; right: 5%; top: 7%; bottom: 7%; display: flex; flex-direction: column; justify-content: space-around; gap: 4px; }
.stage-preview .sp-token { width: clamp(30px, 5vw, 48px); aspect-ratio: 1; border-radius: 50%; background: #fffdf4; box-shadow: 0 2px 5px #0002; font: 700 clamp(22px, 3vw, 34px) var(--letter); font-style: normal; display: grid; place-items: center; overflow: hidden; }
.stage-preview .sp-token img { width: 90%; height: 90%; object-fit: contain; }
.stage-preview.savanna .sp-scenery { background: linear-gradient(#f6d39d 55%, #dfbf76 55%); }
.stage-preview.garden .sp-scenery { background: linear-gradient(#d0eaff 55%, #a7cf79 55%); }
.stage-preview.road .sp-scenery { background: #b1ce95; clip-path: polygon(45% 25%,55% 25%,100% 100%,0 100%); }
.stage-preview.road .sp-scenery::after { content: ''; position: absolute; left: 15%; right: 15%; top: 0; bottom: 0; background: #8b8a94; }
.stage-preview.night .sp-actor { mix-blend-mode: screen; }
.stage-preview.palms-preview .sp-actor { left: auto; right: 5%; width: 50%; mix-blend-mode: normal; }
.stage-preview.palms-preview .sp-tokens { right: auto; left: 8%; }
.stage-card .sc-type { font-size: 15px; }
.stage-card .sc-check { position: absolute; color: #4cae83; font-size: 26px; top: 14px; left: 16px; background: #fff; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; box-shadow: var(--shadow); }
.stage-card .sc-check:empty { display: none; }
@media (max-width: 700px) { .stage-card { width: min(calc(50vw - 32px), 300px); height: auto; } }

/* ---------- ח׳: החרב חותכת ---------- */
.swordscene { position: relative; overflow: hidden; touch-action: none; background: #cfe8f4; }
.swordscene .sw-bg { position: absolute; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.swordscene .sw-layer { position: absolute; inset: 0; z-index: 2; }
.swordscene .fx-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.swordscene .sw-sword { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(3px 6px 4px rgba(0,0,0,.3)); will-change: transform; }
.sw-item { position: absolute; left: 0; top: 0; will-change: transform; pointer-events: none; }
.sw-item img.sw-food, .sw-half-in img.sw-food { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(40,60,30,.25)); }
.sw-card { position: absolute; left: 30%; top: 30%; width: 40%; height: 40%; border-radius: 50%; background: #fffaf0; border: 3px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.25); display: grid; place-items: center; }
.sw-card .tok-letter { font: 700 2em var(--letter); color: #3a3440; line-height: 1; }
.sw-item.pic .tok-pic, .sw-half-in.pic .tok-pic { position: absolute; inset: 0; display: grid; place-items: center; }
.sw-item.pic .tok-pic i, .sw-half-in.pic .tok-pic i { font-style: normal; font-size: 3em; }
.sw-item.pic .tok-pic img, .sw-half-in.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(40,60,30,.25)); }
.sw-item.wobble { animation: swwob .25s linear; }
@keyframes swwob { 25% { margin-left: -5px; } 75% { margin-left: 5px; } }
.sw-half { position: absolute; left: 0; top: 0; will-change: transform; }
.sw-half-in { position: absolute; inset: 0; }
.sw-trail { position: absolute; height: 10px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 60%, rgba(255,255,255,0)); box-shadow: 0 0 12px rgba(255,255,255,.9); animation: swtrail .38s ease-out forwards; }
@keyframes swtrail { from { opacity: 1; } to { opacity: 0; height: 2px; } }
.sw-splat { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; opacity: .8; animation: swsplat .6s ease-out forwards; pointer-events: none; }
@keyframes swsplat { from { transform: translate(-50%,-50%) scale(.3); } to { transform: translate(-50%,-50%) scale(1.2); opacity: 0; } }
.sw-clang { position: absolute; font-style: normal; font-size: 46px; color: #fff3a0; text-shadow: 0 0 10px #fff; transform: translate(-50%, -50%); animation: spark .5s ease-out forwards; }
.bigword.sword-word b { -webkit-text-stroke-color: #4f7fb8; text-shadow: 0 6px 0 #4f7fb8, 0 12px 18px rgba(0,0,0,.2); }
.sw-item.pic .tok-pic img, .sw-half-in.pic .tok-pic img { background: none; border-radius: 0; }
.sw-item.pic .tok-pic i, .sw-half-in.pic .tok-pic i { visibility: hidden; }

/* ---------- נ׳: הנוצה מדגדגת את הנחש ---------- */
.snakescene { position: relative; overflow: hidden; touch-action: manipulation; background: #cfe9c4; }
.snakescene img { position: absolute; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.snakescene .nk-snake { position: absolute; z-index: 2; will-change: transform; filter: drop-shadow(0 8px 6px rgba(40,70,20,.22)); }
.snakescene .nk-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nk-spot.tickled { animation: nktickle .14s ease-in-out infinite alternate; }
@keyframes nktickle { from { transform: scale(.92, 1.06); } to { transform: scale(1.06, .92); } }
.nk-fluff { position: absolute; width: 10px; height: 4px; border-radius: 50%; background: #9fd6dd; opacity: .9; pointer-events: none; animation: nkfluff 1.2s ease-out forwards; }
@keyframes nkfluff { to { transform: translate(var(--tx), var(--ty)) rotate(var(--r)); opacity: 0; } }
.snakescene .nk-spots { position: absolute; inset: 0; }
.nk-spot { position: absolute; border-radius: 50%; background: #fdf8e4; border: 3px solid #8fb56a; box-shadow: inset 0 -3px 0 rgba(120,150,80,.25), 0 2px 3px rgba(40,70,20,.25); display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.nk-spot.empty { background: rgba(253,248,228,.35); border-color: rgba(143,181,106,.5); box-shadow: none; }
.nk-card { width: 100%; height: 100%; display: grid; place-items: center; pointer-events: none; }
.nk-card .tok-letter { font: 700 1em var(--letter); color: #3a3440; line-height: 1; }
.nk-card.pic .tok-pic { width: 86%; height: 86%; display: grid; place-items: center; position: relative; }
.nk-card.pic .tok-pic i { font-style: normal; font-size: .9em; }
.nk-card.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; border-radius: 0; }
.nk-spot.wrong { animation: nkno .4s linear; background: #ffe3e3; }
@keyframes nkno { 20% { margin-left: -5px; } 40% { margin-left: 5px; } 60% { margin-left: -4px; } 80% { margin-left: 3px; } }
.nk-spot.pop { animation: nkpop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes nkpop { from { transform: scale(.3); opacity: 0; } }
.snakescene .nk-feather { left: 0; top: 0; z-index: 5; filter: drop-shadow(3px 6px 4px rgba(0,0,0,.2)); will-change: transform; }
.snakescene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.bigword.snake-word b { -webkit-text-stroke-color: #5f9a3d; text-shadow: 0 6px 0 #5f9a3d, 0 12px 18px rgba(0,0,0,.2); }

/* ---------- ו׳: מכונת הוופלים ---------- */
.vendscene { position: relative; overflow: hidden; touch-action: manipulation; background: #f3eee4; }
.vendscene img { display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.vendscene .vd-bg { position: absolute; }
.vendscene .vd-machine { position: absolute; z-index: 2; filter: drop-shadow(0 14px 12px rgba(80,50,30,.25)); }
.vendscene .vd-body { position: absolute; inset: 0; width: 100%; height: 100%; }
.vendscene .vd-header { position: absolute; border-radius: 10px; background: linear-gradient(#fff6e2, #f4dcae); border: 4px solid #8a4a22; box-shadow: inset 0 0 0 3px #f7c76d, 0 3px 4px rgba(60,30,10,.3); overflow: hidden; }
/* פסי וופל בצדי השלט – כמו המרקם של הוופל בעוגן */
.vendscene .vd-stripes { position: absolute; top: 14%; bottom: 14%; width: 34%; border-radius: 6px;
  background: repeating-linear-gradient(90deg, #e8c48a 0 7px, #b07a42 7px 10px), #e8c48a; box-shadow: inset 0 0 0 2px #8a4a22; opacity: .9; }
.vendscene .vd-stripes.l { left: 4%; } .vendscene .vd-stripes.r { right: 4%; }
/* הלוגו: עיגול מיתוג שעליו הוופל של העוגן, חורג קצת מעל השלט */
.vendscene .vd-logo { position: absolute; z-index: 1; border-radius: 50%; background: radial-gradient(#fffaf0 55%, #fbe7c2); border: 5px solid #8a4a22; box-shadow: inset 0 0 0 4px #f7c76d, 0 5px 6px rgba(60,30,10,.35); display: grid; place-items: center; overflow: hidden; }
.vendscene .vd-logo img { position: absolute; left: 50%; top: 8%; height: 84%; width: auto; transform: translateX(-50%) rotate(-8deg); filter: drop-shadow(0 3px 2px rgba(60,30,10,.3)); }
.vendscene .vd-logo.glow { animation: vdglow .5s ease-in-out 6 alternate; }
@keyframes vdglow { to { transform: rotate(6deg) scale(1.06); filter: brightness(1.15) drop-shadow(0 0 14px #ffe9a8); } }
.vendscene .vd-window { position: absolute; overflow: hidden; }
.vendscene .vd-glass { position: absolute; pointer-events: none; background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.22) 28%, transparent 36%, transparent 60%, rgba(255,255,255,.14) 66%, transparent 72%); z-index: 3; }
.vd-slot { position: absolute; cursor: pointer; }
.vd-coil { position: absolute; left: 10%; right: 10%; bottom: -6%; height: 34%; border-radius: 50%; border: 3px dashed rgba(90,70,60,.0); pointer-events: none; }
.vd-coil.spin { border-color: rgba(90,70,60,.55); animation: vdspin .25s linear infinite; }
@keyframes vdspin { to { transform: rotate(360deg); } }
.vd-bag, .vd-traybag { position: absolute; inset: 0; transform-origin: 50% 10%; will-change: transform; }
.vd-bag img, .vd-traybag img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(60,30,10,.3)); }
.vd-card { position: absolute; left: 50%; top: 50%; width: 66.7%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.vd-card .tok-letter { font: 700 1em var(--letter); color: #4a3020; line-height: 1; }
.vd-card.pic .tok-pic { width: 88%; height: 88%; display: grid; place-items: center; position: relative; }
.vd-card.pic .tok-pic i { visibility: hidden; }
.vd-card.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; border-radius: 0; filter: none; }
.vd-slot.stuck .vd-bag { animation: vdstuck .9s ease-in-out; }
@keyframes vdstuck { 0% { transform: translateY(4%) scale(1.12); } 25% { transform: translateY(14%) scale(1.12) rotate(14deg); } 45% { transform: translateY(12%) scale(1.12) rotate(-6deg); } 65% { transform: translateY(14%) scale(1.12) rotate(9deg); } 100% { transform: translateY(12%) scale(1.12) rotate(3deg); } }
.vendscene .vd-tray { position: absolute; overflow: hidden; }
.vendscene .vd-tray .vd-traybag { inset: auto; left: 50%; bottom: 4%; width: 34%; aspect-ratio: 604 / 835; height: auto; transform: translateX(-50%) rotate(-78deg); transform-origin: 50% 50%; animation: vdtray .3s cubic-bezier(.3,1.6,.5,1); font-size: .8em; }
@keyframes vdtray { from { transform: translateX(-50%) translateY(-140%) rotate(-40deg); } }
.vendscene .vd-light { position: absolute; width: 2.6%; aspect-ratio: 1; margin: -1.3% 0 0 -1.3%; border-radius: 50%; background: #b44; opacity: .0; }
.vendscene .vd-light.on { animation: vdlight .18s steps(2) 5; }
@keyframes vdlight { 0% { opacity: 0; } 50% { opacity: 1; box-shadow: 0 0 12px 4px #ff4a4a; background: #ff5a5a; } }
.vendscene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.bigword.vend-word b { -webkit-text-stroke-color: #b0662b; text-shadow: 0 6px 0 #b0662b, 0 12px 18px rgba(0,0,0,.2); }
/* המכונה בצבעי וופל (חום־זהב), כמו העטיפה והעוגן */
.vendscene .vd-body { filter: hue-rotate(10deg) saturate(.7) brightness(.62) sepia(.2) contrast(1.1); }   /* שוקולד כהה – כמו ציפוי הוופל בעוגן; השקיות הזהובות בולטות עליו */
.vendscene .vd-screen { position: absolute; background: #1e2a22; border-radius: 3px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px #0d140f; }
.vendscene .vd-screen b { font: 700 1em var(--letter); color: #7dffa6; text-shadow: 0 0 6px #4cff88; line-height: 1; }
.vendscene .vd-screen.ok b { color: #fff27a; text-shadow: 0 0 8px #ffe24a; }
.vendscene .vd-screen.bad b { color: #ff6a6a; text-shadow: 0 0 8px #ff3a3a; }
.vendscene .vd-coin { position: absolute; width: 3.6%; aspect-ratio: 1; margin: -1.8% 0 0 -1.8%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3b0, #f2c14e 55%, #b98a1e); box-shadow: 0 1px 2px rgba(0,0,0,.4); opacity: 0; pointer-events: none; }
.vendscene .vd-coin.in { animation: vdcoin .35s ease-in forwards; }
@keyframes vdcoin { 0% { opacity: 1; transform: translate(-220%, -60%) scale(1.3); } 70% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(0, 0) scaleX(.15); } }
.vendscene .vd-shadow { position: absolute; z-index: 1; border-radius: 50%; background: radial-gradient(rgba(70,45,30,.35), transparent 70%); }

/* ---------- מ׳: חנות המנורות ---------- */
.bulbscene { position: relative; overflow: hidden; touch-action: manipulation; background: #1a1630; }
.bulbscene .bl-room, .bulbscene .bl-bulbs { position: absolute; }
.bulbscene .bl-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.bulbscene .bl-dark { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.bulbscene .bl-bulbs { z-index: 2; }
.bl-anchor { position: absolute; right: 8px; z-index: 3; padding: 7px; border: 2px solid #f3bc74; border-radius: clamp(12px, 2vmin, 22px); background: #fff5dd; box-shadow: 0 4px 16px #20162366; pointer-events: none; }
.bl-anchor img { width: 100%; height: 100%; object-fit: contain; }
.bulbscene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.bl-bulb { position: absolute; cursor: pointer; }
.bl-bulb img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 4px 3px rgba(0,0,0,.35)); }
/* הזכוכית נדלקת: זוהר צהוב בתוך הנורה ועיגול אור סביבה */
.bl-glow { position: absolute; left: 50%; top: 33%; width: 96%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(#fff6c8, #ffd96a 45%, rgba(255,200,90,.55) 70%, rgba(255,200,90,0) 72%); opacity: 0; transition: opacity .35s; pointer-events: none; mix-blend-mode: multiply; }
.bl-halo { position: absolute; left: 50%; top: 33%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(rgba(255,226,140,.55), rgba(255,210,110,.18) 40%, transparent 68%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.bl-bulb.lit .bl-glow, .bl-bulb.lit .bl-halo { opacity: 1; }
.bl-card { position: absolute; left: 50%; top: 33%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; pointer-events: none; }
/* האות היא חוט הלהט: כבויה – אפורה כהה; דולקת – שחורה עם קו זוהר כתום, כמו בעוגן */
.bl-card .tok-letter { font: 700 1em var(--letter); color: #4c4a52; line-height: 1; transition: color .3s, text-shadow .3s; }
.bl-bulb.lit .bl-card .tok-letter { color: #1b1712; text-shadow: 0 0 2px #ffb21e, 0 0 6px #ffb21e, 0 0 14px #ffcf5a; }
.bl-card.pic .tok-pic { width: 90%; height: 90%; display: grid; place-items: center; position: relative; }
.bl-card.pic .tok-pic i { visibility: hidden; }
.bl-card.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; border-radius: 0; filter: saturate(.75) brightness(.95); }
.bl-bulb.lit .bl-card.pic .tok-pic img { filter: none; }
.bl-bulb.flicker .bl-glow { animation: blflick .7s steps(1) both; }
.bl-bulb.flicker { animation: blshake .4s; }
@keyframes blflick { 0%, 30%, 60% { opacity: .9; } 15%, 45%, 100% { opacity: 0; } }
@keyframes blshake { 25% { translate: -3px 0; } 75% { translate: 3px 0; } }
.bl-bulb.swap .bl-card { animation: blswap .4s ease-out; }
@keyframes blswap { from { opacity: 0; scale: .5; } }
.bl-bulb.party .bl-halo { animation: blparty .6s ease-in-out infinite alternate; }
@keyframes blparty { to { transform: translate(-50%, -50%) scale(1.15); } }
.bigword.bulb-word b { -webkit-text-stroke-color: #c98a12; text-shadow: 0 6px 0 #c98a12, 0 12px 18px rgba(0,0,0,.25); }

/* רמז: עיגול זוהר שמסמן תשובה נכונה אחרי כמה שניות בלי נגיעה */
.hint-ring { position: absolute; z-index: 50; pointer-events: none; transform: translate(-50%, -50%); border-radius: 50%;
  border: 6px solid rgba(255, 205, 60, 1); box-shadow: 0 0 26px 10px rgba(255, 210, 80, .75), inset 0 0 18px rgba(255, 240, 180, .7); background: radial-gradient(rgba(255,240,170,.28), transparent 70%);
  animation: hintpulse 1s ease-in-out infinite; }
@keyframes hintpulse { 0%, 100% { scale: .9; opacity: .65; } 50% { scale: 1.12; opacity: 1; } }

/* ===== טלפון לרוחב (מסך נמוך): שורה עליונה דקה, כדי שלמשחק יהיה כמה שיותר גובה ===== */
@media (max-height: 500px) {
  .game-top { padding: 4px 10px; gap: 8px; }
  .game-top .icon-btn { width: 38px; height: 38px; font-size: 18px; }
  .cue { height: 40px; border-radius: 12px; }
  .cue-anchor { width: 31px; height: 31px; }
  .cue-copy small { font-size: 9px; }
  .cue-copy b { min-width: 19px; height: 19px; font-size: 20px; }
  .cue-copy .tok-glyph { width: 15px; height: 17px; }
  .shelf { padding: 4px 6px; gap: 4px; border-radius: 14px; }
  .slot { max-height: 32px; border-radius: 8px; }
  .slot .tok-letter { font-size: 18px; }
  .pill { width: 34px; height: 34px; font-size: 15px; }
  .arena { margin: 0 6px 6px; border-radius: 18px; }
}

/* ===== טלפון/טאבלט לאורך: המשחקים בנויים לרוחב, אז מבקשים לסובב (כמו במשחקים בחנות) ===== */
.rotate-hint { display: none; }
@media (orientation: portrait) and (max-width: 900px) {
  .game-screen .rotate-hint { display: none; position: fixed; inset: 0; z-index: 200; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    background: linear-gradient(160deg, #fff6ec, #f3ecff); text-align: center; }
  .rotate-hint p { font: 700 30px var(--letter); color: #5a4a6a; margin: 0; }
  .rh-phone { font-size: 110px; animation: rhturn 2.2s ease-in-out infinite; }
  @keyframes rhturn { 0%, 25% { transform: rotate(0); } 55%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
}

/* ---------- ס׳: תופסים בסל ---------- */
.basketscene { position: relative; overflow: hidden; touch-action: none; background: #e4f0f8; }
.basketscene .bk-bg { position: absolute; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.basketscene .bk-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.basketscene .bk-basket { position: absolute; left: 0; top: 0; z-index: 3; transform-origin: 50% 90%; pointer-events: none; will-change: transform; }
.basketscene .bk-basket img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 6px rgba(80,50,20,.3)); user-select: none; -webkit-user-drag: none; }
.basketscene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.bk-item { position: absolute; left: 0; top: 0; will-change: transform; }
.bk-card { width: 100%; height: 100%; border-radius: 50%; background: #fffaf0; border: 4px solid #e2b26b; box-shadow: 0 4px 8px rgba(80,50,20,.25); display: grid; place-items: center; overflow: hidden; }
.bk-card .tok-letter { font: 700 2.4em var(--letter); color: #3a3440; line-height: 1; }
.bk-item.pic .bk-card { background: rgba(255,250,240,.9); }
.bk-card.pic, .bk-item.pic .tok-pic { width: 88%; height: 88%; display: grid; place-items: center; position: relative; }
.bk-item.pic .tok-pic i { font-style: normal; font-size: 2.2em; }
.bk-item.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; border-radius: 0; }
.bk-dust { position: absolute; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: rgba(210,190,160,.8); pointer-events: none; animation: bkdust .7s ease-out forwards; }
@keyframes bkdust { to { transform: translate(var(--tx), var(--ty)) scale(1.8); opacity: 0; } }
.bigword.basket-word b { -webkit-text-stroke-color: #b0662b; text-shadow: 0 6px 0 #b0662b, 0 12px 18px rgba(0,0,0,.2); }

/* ---------- ע׳: העין שמחפשת ---------- */
.eyescene { position: relative; overflow: hidden; touch-action: none; background: #1c2440; }
.eyescene .es-bg { position: absolute; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.eyescene .es-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.eyescene .es-dark { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.eyescene .es-eye { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.eyescene .es-eye img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.eyescene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.es-item { position: absolute; }
.es-card { width: 100%; height: 100%; border-radius: 50%; background: #fffaf0; border: 4px solid #e8c56a; box-shadow: 0 4px 8px rgba(40,40,20,.3); display: grid; place-items: center; overflow: hidden; }
.es-card .tok-letter { font: 700 2.4em var(--letter); color: #3a3440; line-height: 1; }
.es-item.pic .tok-pic { width: 88%; height: 88%; display: grid; place-items: center; position: relative; }
.es-item.pic .tok-pic i { font-style: normal; font-size: 2.2em; }
.es-item.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; border-radius: 0; }
.es-item.pop { animation: espop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes espop { from { transform: scale(.2); opacity: 0; } }
.es-item.found { animation: esfound .55s ease-in forwards; }
@keyframes esfound { 40% { transform: scale(1.2); } 100% { transform: scale(.4); opacity: 0; } }
.es-item.nope { animation: esnope .45s linear; }
@keyframes esnope { 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
.bigword.eye-word b { -webkit-text-stroke-color: #c99a1e; text-shadow: 0 6px 0 #c99a1e, 0 12px 18px rgba(0,0,0,.25); }

/* ===== ט׳: הטלוויזיה ===== */
.tvscene { position: relative; overflow: hidden; touch-action: none; background: #f4eee0; }
.tvscene .tv-bg { position: absolute; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: saturate(.9) brightness(.97); }
.tvscene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.tv-set { position: absolute; z-index: 2; cursor: pointer; transform-origin: 50% 100%; }
.tv-set .tv-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 6px 10px rgba(60,40,20,.28)); }
.tv-set .tv-shadow { position: absolute; left: 6%; right: 6%; bottom: -1%; height: 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(60,40,20,.35), rgba(60,40,20,0)); }
.tv-screen { position: absolute; overflow: hidden; border-radius: 10% / 12%; pointer-events: none; }
.tv-ch { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.tv-ch.on { opacity: 1; animation: tvon .28s ease-out; }
@keyframes tvon { from { transform: scaleY(.04); filter: brightness(2.2); } 60% { transform: scaleY(1.03); } to { transform: none; filter: none; } }
.tv-card { width: 82%; height: 86%; display: grid; place-items: center; }
.tv-card .tok-letter { font: 700 1em var(--letter); color: #3a3440; line-height: 1; text-shadow: 0 3px 0 rgba(255,255,255,.8); }
.tv-ch.pic .tok-pic { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.tv-ch.pic .tok-pic i { font-style: normal; font-size: .6em; }
.tv-ch.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; border-radius: 0; }
.tv-snow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; image-rendering: pixelated; }
.tv-lines { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 2px, transparent 2px 5px); }
.tv-glare { position: absolute; inset: 0; background: linear-gradient(130deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 35%); }
.tv-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.tv-flash.go { animation: tvflash .45s ease-out; }
@keyframes tvflash { 0% { opacity: 1; } 100% { opacity: 0; } }
.tv-set.snap { animation: tvsnap .35s ease-out; }
@keyframes tvsnap { 30% { transform: scale(1.03, .97); } 65% { transform: scale(.99, 1.01); } }
.tv-set.nope { animation: tvnope .45s linear; }
@keyframes tvnope { 20% { transform: rotate(-2deg); } 45% { transform: rotate(2deg); } 70% { transform: rotate(-1deg); } }
.tv-fw { position: absolute; inset: 0; font-size: max(12px, .22em); }
.tv-spark { position: absolute; width: .5em; height: .5em; border-radius: 50%; transform: translate(-50%,-50%); animation: tvspark 1.1s ease-out forwards; }
@keyframes tvspark { from { transform: translate(-50%,-50%) scale(1.2); opacity: 1; } to { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty) + 1.4em)) scale(.4); opacity: 0; } }
.tv-remote { position: absolute; z-index: 3; cursor: pointer; transform: rotate(-10deg); transform-origin: 50% 80%; }
.tv-remote img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 6px 8px rgba(60,40,20,.3)); }
.tv-remote .tv-btn { position: absolute; left: 27%; top: 9%; width: 46%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255,90,90,.6); animation: tvbtn 1.8s ease-out infinite; }
@keyframes tvbtn { 0% { box-shadow: 0 0 0 0 rgba(255,110,110,.55); } 70%,100% { box-shadow: 0 0 0 14px rgba(255,110,110,0); } }
.tv-remote.press { animation: tvpress .25s ease-out; }
@keyframes tvpress { 40% { transform: rotate(-10deg) scale(.92); } }
.bigword.tv-word b { -webkit-text-stroke-color: #6a4fb0; text-shadow: 0 6px 0 #6a4fb0, 0 12px 18px rgba(0,0,0,.25); }

/* ===== הרפתקהאות: המסך הראשי, הילקוט וחדר האימון ===== */
.hub-screen, .bag-screen, .gym-screen {
  background: radial-gradient(circle at 50% 22%, #fff6e0, #ffe6cc 45%, #f7d3df 100%);
  --pz: clamp(54px, min(9.4vw, 12.8vh), 132px);           /* גודל חלון */
}
.hub-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 0; }
.hub-title { margin: 0; text-align: center; flex: 1; font: 700 clamp(24px, 4.2vw, 44px) var(--letter); color: #5a3d6b; }
.hub-sub { margin: 2px 0 6px; text-align: center; color: #8a6a99; font-size: clamp(15px, 2vw, 21px); }
.hub-btn { background: #fff; border-radius: 999px; padding: 9px 16px; font-size: clamp(14px, 1.8vw, 19px); box-shadow: var(--shadow); white-space: nowrap; }
.gym-btn { background: #7cc7ff; color: #fff; box-shadow: 0 4px 0 #4a9ad0; font-weight: bold; }
.icon-spacer { width: 56px; flex: none; }
.hub-groups { flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: clamp(8px, 1.6vw, 20px) clamp(10px, 3vw, 36px); padding: 4px 12px 8px; }
.hub-group { display: flex; gap: clamp(4px, 1vw, 12px); background: rgba(255,255,255,.5); border-radius: 999px; padding: clamp(5px, .9vw, 10px) clamp(8px, 1.4vw, 16px); }
.portal { position: relative; display: flex; flex-direction: column; align-items: center; width: calc(var(--pz) + 6px); }
.portal .pring { width: var(--pz); height: var(--pz); border-radius: 50%; background: #fff; border: calc(var(--pz) * .055) solid #fff;
  box-shadow: 0 5px 12px rgba(80,60,100,.18); overflow: hidden; display: block; transition: transform .25s; }
.portal .pring img { width: 100%; height: 100%; object-fit: contain; display: block; }
.portal b { font: 700 calc(var(--pz) * .3) var(--letter); color: #5a3d6b; line-height: 1.15; }
.portal .badge { position: absolute; top: -4px; right: -4px; font-style: normal; font-size: calc(var(--pz) * .3); filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.portal.done .pring { border-color: #ffd54a; }
.portal.next .pring { border-color: #ffd54a; animation: hubglow 1.6s ease-in-out infinite; }
@keyframes hubglow { 0%,100% { box-shadow: 0 0 0 4px rgba(255,213,74,.35), 0 5px 12px rgba(80,60,100,.18); transform: scale(1); }
  50% { box-shadow: 0 0 0 calc(var(--pz) * .12) rgba(255,213,74,.5), 0 5px 12px rgba(80,60,100,.18); transform: scale(1.06); } }
.portal.practice .pring { border-color: #7cc7ff; }
.portal.soon .pring img { opacity: .35; filter: grayscale(.6); }
.portal:active .pring { transform: scale(.94); }
.portal.enter .pring { animation: hubenter .4s ease-in forwards; }
@keyframes hubenter { to { transform: scale(2.4); opacity: 0; } }
.portal.wiggle { animation: wiggle .5s; }
.hub-bag { align-self: center; margin: 0 0 12px; background: #fff; border-radius: 16px; padding: 8px 16px; font-size: clamp(15px, 1.9vw, 20px); box-shadow: var(--shadow); }
.hub-bag b { font-family: var(--letter); letter-spacing: 3px; }
/* לאורך (טלפון): קבוצה בכל שורה, החלונות גדולים יותר */
@media (orientation: portrait) {
  .hub-screen, .bag-screen, .gym-screen { --pz: clamp(54px, min(18vw, 9.5vh), 140px); }
  .hub-groups { flex-direction: column; align-items: center; flex-wrap: nowrap; }
  .hub-btn span { display: none; }
  .hub-btn { padding: 9px 12px; font-size: 20px; }
}
/* נמוך (טלפון לרוחב): הכל קטן יותר כדי שייכנס בלי גלילה */
@media (max-height: 500px) and (orientation: landscape) {
  .hub-top { padding-top: 6px; }
  .hub-sub { display: none; }
  .hub-screen { --pz: clamp(44px, min(8vw, 15vh), 90px); }
  .gym-screen { --pz: clamp(40px, min(6.4vw, 13vh), 80px); }
  .hub-bag { position: absolute; bottom: 6px; left: 10px; margin: 0; padding: 4px 10px; font-size: 13px; }
}
/* הילקוט */
.bag-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 18px; }
.bag-item { width: var(--pz); height: calc(var(--pz) * 1.25); border-radius: 18px; background: rgba(255,255,255,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px dashed #e3c7d8; }
.bag-item b { font: 700 calc(var(--pz) * .3) var(--letter); color: #c9a9c9; }
.bag-item.got { background: #fff; border: 3px solid #ffd54a; box-shadow: var(--shadow); }
.bag-item.got b { color: #5a3d6b; }
.bag-item img { width: 86%; height: 72%; object-fit: contain; }
/* חדר אימון */
.gym-screen .gym-row .portal { --pz: clamp(44px, min(7.2vw, 10.5vh), 96px); }
.gym-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 4px 14px 14px; }
.gym-row.need { padding-bottom: 4px; }
.gym-menu { flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 5vw, 60px); padding: 12px; flex-wrap: wrap; }
.gym-anchor { position: relative; width: min(42vh, 60vw, 340px); aspect-ratio: 1; border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.gym-anchor img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.gym-anchor b { position: absolute; bottom: -14px; left: -14px; width: 74px; height: 74px; border-radius: 50%; background: #7cc7ff; color: #fff; display: grid; place-items: center; font: 700 44px var(--letter); box-shadow: 0 4px 0 #4a9ad0; }
.gym-anchor.small { width: min(26vh, 40vw, 200px); }
.gym-acts { display: flex; flex-direction: column; gap: 14px; }
.gym-act { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 22px; padding: 14px 26px; font-size: clamp(20px, 2.6vw, 28px); font-weight: bold; color: #5a3d6b; box-shadow: 0 5px 0 #e3d3ea; }
.gym-act span { font-size: 1.4em; }
.gym-act:active { transform: translateY(3px); box-shadow: 0 2px 0 #e3d3ea; }
.who-dots { display: flex; justify-content: center; gap: 8px; padding: 8px; }
.who-dots i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.7); border: 2px solid #e3c7d8; }
.who-dots i.on { background: #ffd54a; border-color: #e0b52c; }
.who-dots i.half { background: #ffe9a8; border-color: #e0b52c; }
.who-cards { flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 44px); padding: 10px; flex-wrap: wrap; }
.who-card { position: relative; width: min(30vw, 34vh, 220px); aspect-ratio: 1; border-radius: 28px; background: #fff; box-shadow: 0 7px 0 #e3d3ea; display: grid; place-items: center; }
.who-card b { font: 700 min(20vw, 24vh, 150px) var(--letter); color: #3a3440; line-height: 1; }
.who-card img { position: absolute; top: -18%; right: -14%; width: 52%; height: 52%; object-fit: contain; background: #fff; border-radius: 50%; border: 4px solid #ffd54a; animation: whypop .4s cubic-bezier(.3,1.6,.5,1); }
.who-card.yes { box-shadow: 0 0 0 8px #ffd54a, 0 7px 0 #e3d3ea; animation: whoyes .5s; }
.who-card.no { animation: whono .45s; }
.who-card:disabled { cursor: default; }
.who-card.hinted { outline: 6px solid #36856e; }
.check-actions { padding: 0 12px 20px; }
.check-help { margin: 8px auto; }
@keyframes whoyes { 40% { transform: scale(1.1); } }
@keyframes whono { 20% { transform: translateX(-10px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
@keyframes whypop { from { transform: scale(0); } }
.who-end { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.who-end h2 { margin: 18px 0 0; font-size: clamp(26px, 4vw, 40px); color: #5a3d6b; }
@media (orientation: portrait) { .who-cards { flex-direction: column; } .who-card { width: min(56vw, 24vh, 220px); } }

/* ===== נ׳: הנחש אוסף אותיות (סנייק) ===== */
.slitherscene { position: relative; overflow: hidden; touch-action: none; background: #8fc75a; }
.slitherscene .sl-board { position: absolute; overflow: hidden; }
.slitherscene .sl-lawn { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.slitherscene .sl-items { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.slitherscene .sl-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.slitherscene .sl-panel { position: absolute; z-index: 1; background: linear-gradient(90deg, rgba(60,90,30,.18), transparent 12%), #fff8ec; }
.slitherscene .sl-anchor { position: absolute; border-radius: 22px; background: #fff; box-shadow: 0 6px 16px rgba(60,80,30,.2); }
.slitherscene .sl-an-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: opacity .6s; }
.slitherscene .sl-an-letter { position: absolute; display: grid; place-items: center; opacity: 0; transition: opacity .6s; pointer-events: none; }
.slitherscene .sl-an-letter b { position: relative; top: -.1em; font: 700 100px var(--letter); line-height: 1; color: #1a1718; }
.slitherscene .sl-anchor.out .sl-an-img { opacity: 0; }
.slitherscene .sl-anchor.out .sl-an-letter { opacity: 1; }
.slitherscene .sl-anchor.home { animation: slhome .6s ease-out .5s; }
@keyframes slhome { 40% { transform: scale(1.08); } }
.sl-item { position: absolute; left: 0; top: 0; will-change: transform; }
.sl-card { width: 100%; height: 100%; border-radius: 50%; background: #fffaf0; border: .12em solid #f2c94c; box-shadow: 0 .12em .25em rgba(40,60,20,.35); display: grid; place-items: center; overflow: hidden; }
.sl-card .tok-letter { font: 700 1.2em var(--letter); color: #3a3440; line-height: 1; }
.sl-item.pic .tok-pic { width: 88%; height: 88%; display: grid; place-items: center; position: relative; }
.sl-item.pic .tok-pic i { visibility: hidden; }
.sl-item.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sl-item.nope .sl-card { animation: slnope .45s linear; }
@keyframes slnope { 20% { transform: rotate(-14deg); } 45% { transform: rotate(12deg); } 70% { transform: rotate(-6deg); } }

/* ===== ג׳: להקת החיות ===== */
.bandscene { position: relative; overflow: hidden; touch-action: manipulation; background: #bfe6a8; }
.bandscene .gb-bg { position: absolute; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.bandscene .gb-row { position: absolute; inset: 0; z-index: 2; }
.bandscene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.gb-animal { position: absolute; cursor: pointer; }
.gb-animal img { position: absolute; bottom: 0; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; transform-origin: 50% 100%; filter: drop-shadow(0 6px 5px rgba(80,50,20,.28)); transition: opacity .12s; }
.gb-animal .gb-b { opacity: 0; }
.gb-animal .gb-a { animation: gbidle 2.4s ease-in-out infinite; }
.gb-animal:nth-child(2n) .gb-a { animation-delay: -1.2s; }
@keyframes gbidle { 50% { transform: translateY(-2%) scaleY(1.01); } }
.gb-animal.playing .gb-a { opacity: 0; }
.gb-animal.playing .gb-b { opacity: 1; animation: gbdance .42s ease-in-out infinite alternate; }
@keyframes gbdance { from { transform: rotate(-5deg) translateY(0); } to { transform: rotate(5deg) translateY(-6%); } }
.gb-animal.party .gb-b { animation-duration: .3s; }
.gb-animal.shrug .gb-a { animation: gbshrug .5s ease-in-out; }
@keyframes gbshrug { 25% { transform: translateY(-5%) rotate(-6deg); } 50% { transform: translateY(0) rotate(6deg); } 75% { transform: translateY(-3%) rotate(-3deg); } }
.gb-card { position: absolute; border-radius: 50%; background: #fffaf0; border: .1em solid #f2b84c; box-shadow: 0 .1em .25em rgba(80,50,20,.3); display: grid; place-items: center; overflow: hidden; transition: opacity .2s; }
.gb-card.empty { opacity: 0; }
.gb-card.in { animation: gbcard .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes gbcard { from { transform: scale(0); } }
.gb-card .tok-letter { font: 700 1em var(--letter); color: #3a3440; line-height: 1; }
.gb-card.pic .tok-pic { width: 86%; height: 86%; display: grid; place-items: center; position: relative; }
.gb-card.pic .tok-pic i { visibility: hidden; }
.gb-card.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gb-animal.shrug .gb-card { animation: slnope .45s linear; }
.gb-note { position: absolute; font-style: normal; font-size: 30px; font-weight: bold; text-shadow: 0 2px 3px rgba(0,0,0,.2); animation: gbnote 1.4s ease-out forwards; pointer-events: none; }
@keyframes gbnote { from { transform: translate(-50%, 0) scale(.5); opacity: 1; } to { transform: translate(calc(-50% + var(--tx)), -160px) scale(1.2) rotate(20deg); opacity: 0; } }
.bigword.band-word b { -webkit-text-stroke-color: #d9567f; text-shadow: 0 6px 0 #d9567f, 0 12px 18px rgba(0,0,0,.2); }
/* פ׳: פרפרים מצוירים */
.bfly2 .bf-wings img { width: 100%; height: 100%; object-fit: contain; display: block; transform-origin: 50% 50%; animation: bflap .18s ease-in-out infinite alternate; filter: drop-shadow(0 3px 3px rgba(60,40,60,.2)); }
.bfly2.resting .bf-wings img { animation-duration: 1.1s; }
.bfly2.shoo .bf-wings img { animation-duration: .08s; }
@keyframes bflap { from { transform: scaleX(1); } to { transform: scaleX(.42); } }
/* ג׳ גרסה 2: גורילות ומעמדי ג׳ */
.gb-slot { position: absolute; inset: 0; pointer-events: none; }
.gb-slot .gb-stand { position: absolute; z-index: 1; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 5px 4px rgba(60,40,20,.25)); }
.gb-slot .gb-gor { position: absolute; z-index: 2; pointer-events: auto; cursor: pointer; transform-origin: 50% 100%; transition: transform .25s ease-in-out; }
.gb-slot .gb-gor img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; pointer-events: none; user-select: none; -webkit-user-drag: none; transform-origin: 50% 100%; filter: drop-shadow(0 6px 5px rgba(60,40,20,.28)); }
.gb-gor[data-pose="a"] .gb-a, .gb-gor[data-pose="b"] .gb-b, .gb-gor[data-pose="c"] .gb-c { opacity: 1; }
.gb-gor[data-pose="a"] .gb-a, .gb-gor[data-pose="b"] .gb-b { animation: gbidle 2.4s ease-in-out infinite; }
.gb-slot:nth-child(2) .gb-gor img { animation-delay: -.8s; } .gb-slot:nth-child(3) .gb-gor img { animation-delay: -1.6s; }
.gb-gor[data-pose="c"] .gb-c { animation: gbdance .42s ease-in-out infinite alternate; }
.gb-gor.party[data-pose="c"] .gb-c { animation-duration: .3s; }
.gb-gor.reach { transform: rotate(-5deg) translateX(-4%); }
.gb-gor.grab { animation: gbgrab .4s ease-out; }
@keyframes gbgrab { 30% { transform: scale(1.03, .96); } 65% { transform: scale(.99, 1.02); } }
.gb-gor.shrug { animation: gbshrug .5s ease-in-out; }
.gb-slot .gb-guitar { position: absolute; left: 0; top: 0; z-index: 3; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 5px 4px rgba(60,40,20,.25)); }
.gb-slot .gb-card { z-index: 4; pointer-events: auto; cursor: pointer; }
.gb-card.nope { animation: slnope .45s linear; }
/* מתג סדר האותיות במסך הראשי */
.hub-mid { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 2px 0 6px; }
.hub-mid .hub-sub { margin: 0; }
.hub-order { display: inline-flex; background: rgba(255,255,255,.7); border-radius: 999px; padding: 3px; box-shadow: 0 2px 6px rgba(80,60,100,.12); }
.hub-order button { border-radius: 999px; padding: 5px 14px; font-size: clamp(13px, 1.7vw, 17px); color: #8a6a99; }
.hub-order button.on { background: #c9a3e8; color: #fff; font-weight: bold; }
@media (max-height: 500px) and (orientation: landscape) {
  .hub-mid { position: absolute; bottom: 6px; right: 10px; margin: 0; }
  .hub-order button { padding: 3px 10px; font-size: 13px; }
}
.bulbscene .bl-blur { position: absolute; display: block; pointer-events: none; filter: blur(14px) brightness(.9); transform: scale(1.06); }
.bulbscene .bl-room { box-shadow: 0 0 40px 30px rgba(40,25,20,.35); }

/* ===== צ׳: הצבים במחילות ===== */
.burrowscene { position: relative; overflow: hidden; touch-action: manipulation; background: #f2c879; }
.burrowscene .bw-sand { position: absolute; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 30% 20%, rgba(255,240,200,.35), transparent 40%), radial-gradient(circle at 75% 70%, rgba(220,160,70,.18), transparent 45%), linear-gradient(#f9c96f, #f0bb62); }
.burrowscene .bw-bg { position: absolute; display: block; -webkit-mask: linear-gradient(#000 85%, transparent); mask: linear-gradient(#000 92%, transparent); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.burrowscene .bw-layer { position: absolute; inset: 0; }
.burrowscene .fx-layer { position: absolute; inset: 0; z-index: 2000; pointer-events: none; }
.bw-rim { position: absolute; z-index: 10; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.bw-turtle { position: absolute; overflow: hidden; cursor: pointer; }
.bw-turtle .bw-in { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 50% 80%; }
.bw-turtle img { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 6px 5px rgba(90,60,20,.25)); }
.bw-turtle[data-f="0"] .f0, .bw-turtle[data-f="1"] .f1, .bw-turtle[data-f="2"] .f2, .bw-turtle[data-f="3"] .f3 { display: block; }
.bw-turtle.party .f2 { display: block; }
.bw-card { position: absolute; left: 50%; top: 25.5%; width: 42%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; pointer-events: none; }
.bw-card .tok-letter { font: 700 1em var(--letter); color: #3a2a10; line-height: 1; }
.bw-card.pic .tok-pic { width: 90%; height: 90%; display: grid; place-items: center; position: relative; }
.bw-card.pic .tok-pic i { visibility: hidden; }
.bw-card.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bw-turtle.shake .bw-in { animation: slnope .4s linear; }
.bigword.turtle-word b { -webkit-text-stroke-color: #4f9a3a; text-shadow: 0 6px 0 #4f9a3a, 0 12px 18px rgba(0,0,0,.2); }
.bw-turtle.bonk .bw-in { animation: bwbonk .35s ease-out; }
@keyframes bwbonk { 30% { transform: scale(1.08, .9); } 65% { transform: scale(.97, 1.04); } }
.burrowscene .bw-sky { position: absolute; display: block; pointer-events: none; filter: blur(6px); }

/* ===== ק׳: הקוף והקוקוסים ===== */
.palmscene { position: relative; overflow: hidden; touch-action: manipulation; background: #7fd0f5; }
.palmscene .pm-bg { position: absolute; inset: 0; background: url('../assets/games/qof/beach.webp') 0 0 repeat-x; }
.palmscene .pm-world { position: absolute; inset: 0; }
.palmscene .fx-layer { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.pm-palm { position: absolute; cursor: pointer; transform-origin: 34% 100%; }
.pm-palm > img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 6px 5px rgba(40,70,20,.25)); }
.pm-card { position: absolute; border-radius: 50%; background: #fffaf0; border: .1em solid #c98a4a; box-shadow: 0 .1em .25em rgba(60,40,20,.35); display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.pm-card .tok-letter { font: 700 1em var(--letter); color: #3a2a1a; line-height: 1; }
.pm-card.pic .tok-pic { width: 88%; height: 88%; display: grid; place-items: center; position: relative; }
.pm-card.pic .tok-pic i { visibility: hidden; }
.pm-card.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pm-card.in { animation: gbcard .45s cubic-bezier(.3,1.6,.5,1); }
.pm-card.nope { animation: slnope .45s linear; }
.pm-launch { position: absolute; z-index: 8; pointer-events: none; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(40,30,10,.26)); }
.pm-monkey img { scale: -1 1; }
.pm-monkey { position: absolute; left: 0; top: 0; z-index: 10; pointer-events: none; transform-origin: 50% 50%; }
.pm-monkey img { position: absolute; inset: 0; width: 100%; height: 100%; display: none; filter: drop-shadow(0 5px 4px rgba(40,30,10,.3)); }
.pm-monkey[data-p="0"] .m0, .pm-monkey[data-p="1"] .m1, .pm-monkey[data-p="2"] .m2, .pm-monkey[data-p="3"] .m3 { display: block; }
.pm-monkey[data-p="3"] .m3 { animation: pmno .6s ease-in-out; }
@keyframes pmno { 20% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } 80% { transform: rotate(-3deg); } }
.pm-monkey.land img { animation: pmland .3s ease-out; }
@keyframes pmland { 40% { transform: scale(1.06, .94); } }
.pm-nut { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a8672f, #6b3d16 70%); box-shadow: inset -3px -4px 0 rgba(0,0,0,.2); }
.pm-card.gone { display: none; }

/* ===== ד׳: הדייג ===== */
.fishscene { position: relative; overflow: hidden; touch-action: manipulation; background: #2fb8c8; }
.fishscene .fs-bg { position: absolute; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.fishscene .fs-dock, .fishscene .fs-bucket { position: absolute; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.fishscene .fs-dock { z-index: 2; filter: drop-shadow(0 6px 6px rgba(0,30,40,.25)); }
.fishscene .fs-bucket { z-index: 2; filter: drop-shadow(0 4px 3px rgba(40,30,10,.25)); }
.fishscene .fs-bucket.hop { animation: pmland .35s ease-out; }
.fishscene .fs-boy { position: absolute; z-index: 3; pointer-events: none; }
.fishscene .fs-boy img { position: absolute; inset: 0; width: 100%; height: 100%; display: none; filter: drop-shadow(0 4px 4px rgba(40,30,10,.25)); }
.fs-boy[data-p="0"] .b0, .fs-boy[data-p="1"] .b1, .fs-boy[data-p="2"] .b2 { display: block; }
.fishscene .fs-fish { position: absolute; inset: 0; z-index: 4; }
.fishscene .fs-line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; overflow: visible; }
.fishscene .fs-line path { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 1.6; }
.fishscene .fs-hook { position: absolute; left: 0; top: 0; z-index: 5; width: 12px; height: 16px; border: 2.5px solid #8a8f96; border-top: 0; border-radius: 0 0 8px 8px; pointer-events: none; }
.fishscene .fx-layer { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.fs-f { position: absolute; left: 0; top: 0; cursor: pointer; will-change: transform; }
.fs-f > img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.fs-card { position: absolute; left: 50%; top: 56%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #fffaf0; border: .12em solid rgba(255,255,255,.9); box-shadow: 0 .08em .2em rgba(0,40,60,.3); display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.fs-card .tok-letter { font: 700 1.6em var(--letter); color: #2a3440; line-height: 1; }
.fs-card.pic .tok-pic { width: 90%; height: 90%; display: grid; place-items: center; position: relative; }
.fs-card.pic .tok-pic i { visibility: hidden; }
.fs-card.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fs-f.nope > img, .fs-f.nope .fs-card { animation: slnope .45s linear; }
.fs-drop { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #d8f6ff; animation: fsdrop .7s ease-out forwards; }
@keyframes fsdrop { to { transform: translate(var(--tx), var(--ty)) scale(.4); opacity: 0; } }
.bigword.fish-word b { -webkit-text-stroke-color: #1f8aa0; text-shadow: 0 6px 0 #1f8aa0, 0 12px 18px rgba(0,0,0,.2); }

/* ===== ת׳: התנין והדגים הקופצים ===== */
.leapscene { position: relative; overflow: hidden; touch-action: manipulation; background: #2fb8c8; }
.leapscene .lp-bg, .leapscene .lp-tav { position: absolute; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.leapscene .lp-tav { z-index: 1; filter: drop-shadow(0 6px 6px rgba(0,30,40,.25)); }
.leapscene .lp-croc { position: absolute; z-index: 2; pointer-events: none; transform-origin: 30% 50%; }
.leapscene .lp-croc img { position: absolute; inset: 0; width: 100%; height: 100%; display: none; filter: drop-shadow(0 5px 4px rgba(20,40,10,.3)); }
.lp-croc[data-p="0"] .c0, .lp-croc[data-p="1"] .c1, .lp-croc[data-p="2"] .c2, .lp-croc[data-p="3"] .c3 { display: block; }
.lp-croc[data-p="0"] .c0 { animation: gbidle 3s ease-in-out infinite; transform-origin: 50% 50%; }
.lp-croc[data-p="3"] .c3 { animation: pmno .6s ease-in-out; }
.lp-croc.chew .c2 { animation: pmland .3s ease-in-out 3; }
.leapscene .lp-fish { position: absolute; inset: 0; z-index: 3; }
.lp-f { position: absolute; left: 0; top: 0; cursor: pointer; will-change: transform; }
.lp-f > img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.lp-f.nope .fs-card { animation: slnope .45s linear; }
.leapscene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }

/* ב׳ – הברווז באמבטיה */
.duckscene { position: relative; overflow: hidden; touch-action: manipulation; background: #f3dcc4; }
.duckscene .dk-bg, .duckscene .dk-blur, .duckscene .dk-front { position: absolute; display: block; pointer-events: none; user-select: none; }
.duckscene .dk-blur { filter: blur(14px) brightness(1.03); }
.duckscene .dk-raft { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; user-select: none; transform-origin: 50% 100%; filter: drop-shadow(0 4px 4px rgba(40,30,20,.25)); will-change: transform; }
.duckscene .dk-bubs { position: absolute; inset: 0; z-index: 2; }
.duckscene .dk-duck { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 3; pointer-events: none; will-change: transform; }
.duckscene .dk-head { position: absolute; will-change: transform; }
.duckscene .dk-head img { position: absolute; inset: 0; width: 100%; height: 100%; display: none; filter: drop-shadow(0 4px 3px rgba(80,50,20,.18)); }
.duckscene .dk-head[data-f="0"] .h0, .duckscene .dk-head[data-f="1"] .h1, .duckscene .dk-head[data-f="2"] .h2, .duckscene .dk-head[data-f="3"] .h3 { display: block; }
.duckscene .dk-bodyw { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 30% 60%; }
.duckscene .dk-body { position: absolute; display: block; filter: drop-shadow(0 4px 4px rgba(80,50,20,.18)); }
.duckscene .dk-wing { position: absolute; display: block; opacity: 0; transition: opacity .15s; }
.duckscene .dk-ripple { position: absolute; transition: opacity .25s; z-index: 4; pointer-events: none; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(160,220,245,.75) 0 45%, rgba(200,240,255,.5) 60%, transparent 72%); }
.duckscene .dk-front { z-index: 5; }
.duckscene .fx-layer { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.duckscene .cr-ring { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 3px solid rgba(255,255,255,.8); pointer-events: none; animation: crring .9s ease-out forwards; }
.dk-bub { position: absolute; left: 0; top: 0; cursor: pointer; will-change: transform; }
.dk-bub > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.dk-card { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,.55) 0 55%, transparent 72%); }
.dk-card .tok-letter { font: 700 1.25em var(--letter); color: #2c2840; line-height: 1; text-shadow: 0 0 .12em #fff, 0 0 .2em #fff; }
.dk-card.pic .tok-pic { width: 92%; height: 92%; display: grid; place-items: center; position: relative; }
.dk-card.pic .tok-pic i { visibility: hidden; }
.dk-card.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dk-bub.no .dk-card { opacity: .55; }
.dk-drop { position: absolute; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #bfe6ff 60%, #f6c6ea); pointer-events: none; animation: dkdrop .6s ease-out forwards; }
@keyframes dkdrop { to { transform: translate(var(--tx), var(--ty)) scale(.3); opacity: 0; } }

/* מכירים – מוצאים את האות בתמונה */
.letter-intro { height: 100vh; height: 100dvh; touch-action: pan-y; }
.letter-intro .stage { min-height: 0; container-type: size; padding: 4px 12px; }
.letter-intro .flow-nav { flex: none; align-items: center; gap: 8px; padding: 6px 14px max(8px, env(safe-area-inset-bottom)); }
.letter-intro .flow-nav .nav-btn { flex: none; width: 44px; height: 44px; font-size: 23px; }
.letter-intro .flow-top { flex: none; gap: 6px; }
.letter-intro .flow-top .icon-btn, .letter-intro .flow-letter { flex: none; width: 42px; height: 42px; }
.letter-intro .flow-letter { font-size: 28px; }
.letter-intro .steps { gap: 4px; min-width: 0; }
@media (max-width: 760px) {
  .letter-intro .step-dot { min-width: 0; padding: 3px; border-radius: 10px; }
  .letter-intro .step-dot span { font-size: clamp(16px, 5vw, 24px); }
}

.intro2 { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 48px); }
.find-frame { position: relative; flex: none; width: min(94cqh, 48vw, 520px); aspect-ratio: 1; border-radius: 28px; background: #fff; box-shadow: var(--shadow); overflow: hidden; cursor: pointer; touch-action: manipulation; transition: width .6s cubic-bezier(.4,0,.2,1); }
.find-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.find-spot { position: absolute; border-radius: 18px; pointer-events: none; box-shadow: 0 0 0 2000px rgba(255,255,255,0); transition: box-shadow .9s; }
.find-spot.hint { animation: findhint 1.4s ease-in-out 2; }
@keyframes findhint { 0%, 100% { box-shadow: 0 0 0 2000px rgba(255,255,255,0), inset 0 0 0 0 rgba(255,200,60,0); } 50% { box-shadow: 0 0 0 2000px rgba(255,255,255,.35), 0 0 22px 8px rgba(255,200,60,.85); } }
.find-lo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; opacity: 0; transition: opacity .6s .5s; }
.find-pic { transition: opacity 1s .3s, transform 1s .3s; }
.intro2.has-lo .find-pic { opacity: 0; transform: scale(1.04); filter: blur(2px); }
.intro2.has-lo .find-lo { opacity: 1; }
.intro2.has-lo .find-spot { box-shadow: none !important; }
.intro2.has-lo .eq-crop { border-color: transparent; }
.intro2.found .find-spot { box-shadow: 0 0 0 2000px rgba(255,255,255,.8), 0 0 0 4px #ffd34d, 0 0 26px 10px rgba(255,205,70,.7); animation: none; }
.find-miss { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 4px solid rgba(240,120,110,.8); pointer-events: none; animation: findmiss .65s ease-out forwards; }
@keyframes findmiss { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.intro-side { display: flex; flex-direction: column; align-items: center; gap: clamp(4px, 3cqh, 20px); width: 0; overflow: visible; opacity: 0; visibility: hidden; transition: opacity .5s, width .6s cubic-bezier(.4,0,.2,1); }
.intro2.found .intro-side { width: min(44vw, 460px); opacity: 1; visibility: visible; }
.eq-row { display: flex; align-items: center; gap: 14px; opacity: 0; transform: scale(.6); transition: all .5s cubic-bezier(.3,1.5,.5,1); cursor: pointer; }
.intro2.eq-on .eq-row { opacity: 1; transform: none; }
.eq-crop { height: min(33cqh, 150px); background-repeat: no-repeat; border-radius: 16px; background-color: #fff; box-shadow: var(--shadow); border: 3px solid #ffd34d; }
.eq-sign { font-size: 48px; color: var(--muted); }
.eq-letter { height: min(33cqh, 150px); aspect-ratio: 1; display: grid; place-items: center; font: 700 min(24cqh, 112px) var(--letter); line-height: 1; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.pair-row { display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(20px); transition: all .5s ease-out; }
.intro2.pair-on .pair-row { opacity: 1; transform: none; }
.pair-card { width: min(30cqh, 130px); aspect-ratio: 1; border-radius: 22px; background: #fff; box-shadow: var(--shadow); border: 3px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; }
.pair-card b { font: 700 min(22cqh, 90px) var(--letter); line-height: 1; color: var(--coral); }
.pair-card img { position: absolute; inset: 6% 6% 26%; width: 88%; height: 68%; object-fit: contain; }
.pair-card span { position: absolute; bottom: 5%; left: 0; right: 0; text-align: center; font-weight: 700; font-size: min(3.4vh, 24px); }
.pair-card.bump { animation: pairbump .4s; }
@keyframes pairbump { 40% { transform: scale(1.08); } }
.pair-dash { font-size: 34px; color: var(--muted); }
.start-game { min-height: 48px; padding: 6px 20px; background: #a74d49; color: #fff; border-color: transparent; font-weight: bold; font-size: clamp(18px, 4.5vw, 24px); }
.start-game:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.intro-listen { position: absolute; top: 0; left: 0; width: 42px; height: 42px; font-size: 20px; }
@media (orientation: portrait) {
  .intro2 { flex-direction: column; gap: clamp(4px, 2cqh, 12px); }
  .find-frame { width: min(86vw, 80cqh); }
  .intro2.found .find-frame { width: min(62vw, 43cqh); }
  .intro-side { width: 100%; height: 0; }
  .intro2.found .intro-side { width: 100%; height: auto; gap: clamp(4px, 2cqh, 10px); }
  .eq-crop, .eq-letter { height: min(19cqh, 92px); }
  .eq-letter { font-size: min(15cqh, 62px); }
  .pair-card { width: min(21cqh, 94px); border-radius: 14px; }
  .pair-card b { font-size: min(15cqh, 62px); }
  .eq-sign, .pair-dash { font-size: min(8cqh, 34px); }
}

/* מכירים – טלפון לרוחב: סרגלים דקים כדי שהציור והריבועים יהיו גדולים */
@media (max-height: 500px) and (orientation: landscape) {
  .letter-intro .flow-top { padding-bottom: 0; }
  .letter-intro .flow-top .icon-btn, .letter-intro .flow-letter { width: 36px; height: 36px; }
  .letter-intro .flow-letter { font-size: 24px; }
  .letter-intro .step-dot { padding: 1px 6px; min-height: 0; }
  .letter-intro .step-dot span { font-size: 20px; }
  .letter-intro .flow-nav { padding: 2px 14px max(4px, env(safe-area-inset-bottom)); }
  .letter-intro .flow-nav .nav-btn { width: 38px; height: 38px; font-size: 20px; }
  .letter-intro .start-game { min-height: 40px; padding: 2px 18px; }
  .letter-intro .stage { padding: 0 12px; }
}

/* התקנה למסך הבית */
.hub-install { align-self: center; margin: 0 auto 12px; padding: 9px 18px; border: 1px solid #ddd4e5; border-radius: 22px; background: #fff; color: var(--ink, #4c435d); font: inherit; cursor: pointer; }
.app-installed [data-install] { display: none; }
@media (display-mode: standalone) { [data-install] { display: none; } }
.install-dialog { position: fixed; inset: 0; box-sizing: border-box; max-width: 440px; width: calc(100% - 32px); max-height: 88vh; overflow: auto; margin: auto; padding: 28px; border: 0; border-radius: 28px; background: #fffaf3; color: #4c435d; font: 18px/1.65 var(--font, system-ui); box-shadow: 0 20px 70px #31243b33; text-align: right; }
.install-dialog::backdrop { background: #30223866; }
.install-dialog h2 { margin: 8px 0; font-size: 25px; }
.install-dialog p { margin: 12px 0; }
.install-dialog ol { padding-inline-start: 25px; }
.install-dialog li { margin: 8px 0; }
.install-dialog .install-close { position: absolute; top: 10px; left: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #4c435d; font: 30px system-ui; cursor: pointer; }
.install-icon { display: block; border-radius: 20px; }
.install-dialog .install-native { margin: 12px 0; background: #ed9985; }
.install-dialog [hidden] { display: none; }
.install-dialog .install-note { color: #6a6076; font-size: 14px; }

.hub-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hub-tools .hub-install { margin: 0 0 8px; }
.offline-dialog progress, .install-dialog progress { width: 100%; height: 22px; margin: 12px 0; accent-color: #479b82; }
.install-dialog .offline-download, .install-dialog .offline-open { background: #ed9985; margin: 8px 0; }
.install-dialog button:disabled { opacity: .6; cursor: wait; }
@media (max-height: 500px) and (orientation: landscape) { .hub-tools .hub-install { font-size: 13px; padding: 4px 12px; } }

/* ך׳: סנפיר חובט, גוף זקוף ואות שנשארת גלויה. */
.fin-scene { touch-action: manipulation; }
.fin-scene .sea-bg { background-size: cover; background-position: center top; }
.fin-shark { position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none; mix-blend-mode: multiply; }
.fin-shark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fin-balls { position: absolute; inset: 0; z-index: 4; direction: ltr; }
.fin-ball { position: absolute; top: 0; left: 0; display: grid; place-items: center; padding: 0; border: 3px solid #53778a; border-radius: 50%; color: #302a3d; cursor: pointer; background: conic-gradient(#ffd977 0deg 60deg,#f2a08c 60deg 120deg,#b9cdee 120deg 180deg,#f7dce8 180deg 240deg,#a5decf 240deg 300deg,#fff1c5 300deg); box-shadow: inset 0 4px 6px #ffffff88, 0 6px 9px #19516b30; }
.fin-ball:disabled { opacity: 1; cursor: default; }
.fin-ball:focus-visible { outline: 4px solid white; outline-offset: 4px; }
.fin-ball-face { display: grid; place-items: center; width: 70%; height: 70%; background: #fffdf7; border-radius: 50%; }
.fin-ball .tok-letter { font-size: clamp(38px,7vh,58px); line-height: 1; }
.fin-pop { position: absolute; color: #fff6a0; font-size: 96px; transform: translate(-50%,-50%); animation: fin-pop .45s ease-out forwards; }
@keyframes fin-pop { from { transform: translate(-50%,-50%) scale(.3); opacity: 1; } to { transform: translate(-50%,-50%) scale(1.7); opacity: 0; } }

.slitherscene .sl-cutout { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.hub-finals-title { flex: 0 0 auto; width: 100%; margin: 4px 0 0; color: var(--ink); font-size: clamp(17px, 2vw, 23px); text-align: center; }

.sl-card .sl-final-nun { width: .60em; height: 1.55em; }
.sl-final-nun svg { display: block; width: 100%; height: 100%; overflow: visible; }

.stage-pills[hidden], .game-modal .next[hidden] { display: none; }

.jump-finals { color: #5a3d6b; font-weight: 700; }
.hub-finals-title:focus-visible { outline: 2px solid #5a3d6b; outline-offset: 4px; }
.show-handwriting { padding: 8px 12px; border-radius: 16px; border: 1px solid #ddd4e5;
  background: #fff; color: #5a3d6b; font-size: clamp(13px, 1.8vw, 16px); }
.handwriting-dialog { width: min(480px, calc(100% - 28px)); max-width: none; text-align: center; }
.handwriting-dialog h2 { padding-inline: 32px; margin-top: 0; }
.handwriting-dialog img { display: block; width: 100%; max-height: 66dvh; object-fit: contain; border-radius: 16px; }

/* ו׳: בית הקפה של הוופלים. כל המידות הן יחידות של הסצנה (1672×941), והסצנה כולה מוגדלת יחד */
.cafe { position: relative; overflow: hidden; touch-action: manipulation; background: #f3cf9f; }
.cafe .cf-scene { position: absolute; left: 0; top: 0; width: 1672px; height: 941px; transform-origin: 0 0; }
.cafe .cf-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.cafe .cf-plates { position: absolute; inset: 0; z-index: 1; }
.cafe .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.cf-plate { position: absolute; left: 0; top: 482px; width: 320px; height: 226px; cursor: pointer; will-change: transform; }
.cf-plate.flying { z-index: 5; transition: transform .62s cubic-bezier(.25,.8,.3,1); cursor: default; }
.cf-plate.eaten { opacity: 0; transition: opacity .25s; }
.cf-in { position: absolute; inset: 0; transform-origin: 50% 90%; }
.cf-dish { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 8px 6px rgba(70,40,10,.35)); }
.cf-stick { position: absolute; left: 50%; top: -42px; width: 9px; height: 70px; margin-left: -4px; border-radius: 5px; background: linear-gradient(90deg, #e9c590, #c99a5b); }
.cf-flag { position: absolute; left: 50%; top: -176px; width: 150px; height: 132px; margin-left: -75px; display: grid; place-items: center;
  background: #fffdf6; border: 7px solid #e8b36a; border-radius: 22px; box-shadow: 0 6px 0 #c98a3a, 0 10px 14px rgba(70,40,10,.25); }
.cf-flag .tok-letter { font: 700 104px/1 var(--letter); color: #1b1712; }
.cf-flag .tok-pic { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.cf-flag .tok-pic i { visibility: hidden; }
.cf-flag .tok-pic img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; background: none; border-radius: 12px; }
.cf-in.wobble { animation: cfwobble .55s ease-in-out; }
@keyframes cfwobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-7deg); } 45% { transform: rotate(6deg); } 70% { transform: rotate(-3deg); } }
.cf-wallaby { position: absolute; z-index: 3; transform-origin: 50% 100%; pointer-events: none; }
.cf-wallaby img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.cf-wallaby .cf-no { display: none; }
.cf-wallaby.refuse .cf-no { display: block; }
.cf-wallaby.refuse > img:first-child { visibility: hidden; }
.cf-wallaby.chomp { animation: cfchomp .5s ease-out; }
@keyframes cfchomp { 0% { transform: scale(1); } 30% { transform: scale(1.07, .93); } 60% { transform: scale(.96, 1.06) translateY(-10px); } 100% { transform: scale(1); } }
.cf-wallaby.nope { animation: cfnope .7s ease-in-out; }
@keyframes cfnope { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-3.5deg); } 40% { transform: rotate(3.5deg); } 65% { transform: rotate(-2.5deg); } 85% { transform: rotate(1.5deg); } }
.cf-wallaby.party { animation: cfparty .55s ease-in-out infinite alternate; }
@keyframes cfparty { to { transform: translateY(-24px) rotate(-2deg); } }
.bigword.cafe-word b { -webkit-text-stroke-color: #c98a3a; text-shadow: 0 6px 0 #c98a3a, 0 12px 18px rgba(0,0,0,.25); }

/* י׳: הירח מאיר בלילה. המידות הן יחידות של הסצנה (1672×941) */
.moonscene { position: relative; overflow: hidden; touch-action: manipulation; background: #232a78; }
.moonscene .mn-scene { position: absolute; left: 0; top: 0; width: 1672px; height: 941px; transform-origin: 0 0; }
.moonscene .mn-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 100%; pointer-events: none; user-select: none; }
.moonscene .mn-dim { position: absolute; inset: 0; background: #0a0828; opacity: .55; transition: opacity 1s; pointer-events: none; }
.moonscene .mn-chain, .moonscene .mn-stars { position: absolute; inset: 0; }
.moonscene .mn-chain { z-index: 1; pointer-events: none; }
.moonscene .mn-stars { z-index: 3; }
.moonscene .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.mn-moon { position: absolute; z-index: 2; transform-origin: 58% 12%; animation: mnsway 4.5s ease-in-out infinite alternate; pointer-events: none; }
.mn-moon img { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 0 28px rgba(255, 226, 120, .45)); }
@keyframes mnsway { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }
.mn-moon.glow img { animation: mnglow .9s ease-out; }
@keyframes mnglow { 40% { filter: drop-shadow(0 0 60px rgba(255, 236, 140, 1)) brightness(1.12); } }
.mn-moon.shy { animation: mnshy .6s ease-in-out; }
@keyframes mnshy { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 60% { transform: rotate(3.5deg); } }
.mn-moon.party { animation: mnparty .6s ease-in-out infinite alternate; }
@keyframes mnparty { to { transform: translateY(-18px) rotate(2deg); } }
.mn-moon.party img { filter: drop-shadow(0 0 60px rgba(255, 236, 140, 1)); }
.mn-star { position: absolute; cursor: pointer; will-change: transform; }
.mn-star.pop { animation: mnpop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes mnpop { from { opacity: 0; scale: .3; } }
.mn-star.flying { z-index: 5; transition: transform .7s cubic-bezier(.3, .7, .3, 1); cursor: default; }
.mn-star.chained { cursor: default; }
.mn-bob { position: absolute; inset: 0; animation: mnbob 2.8s ease-in-out infinite alternate; }
@keyframes mnbob { from { transform: translateY(-8px) rotate(-2deg); } to { transform: translateY(8px) rotate(2deg); } }
.mn-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 0 14px rgba(255, 226, 120, .55)); }
.mn-star.lit .mn-img { filter: drop-shadow(0 0 36px rgba(255, 240, 150, 1)) brightness(1.1); }
.mn-star.chained .mn-bob { animation: mntwinkle 1.6s ease-in-out infinite alternate; }
@keyframes mntwinkle { from { opacity: .8; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
.mn-star.chained .mn-tok { display: none; }
.mn-tok { position: absolute; left: 50%; top: 56%; width: 56%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; pointer-events: none; }
.mn-tok .tok-letter { font: 700 96px/1 var(--letter); color: #1b1712; }
.mn-tok.pic .tok-pic { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.mn-tok.pic .tok-pic i { visibility: hidden; }
.mn-tok.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; border-radius: 0; }
.mn-star.oops { animation: mnoops .65s ease-in forwards; }
@keyframes mnoops { 0%, 100% { translate: 0 0; } 15% { translate: -10px 0; } 30% { translate: 10px 0; } 45% { translate: -6px 0; } 100% { opacity: 0; scale: .6; } }
.mn-star.fade { opacity: 0; transition: opacity .6s; }
.bigword.moon-word b { -webkit-text-stroke-color: #c99a12; text-shadow: 0 6px 0 #c99a12, 0 12px 18px rgba(0,0,0,.3); }

/* ===== החוקרים: בחירת דמות והדמות שעומדת ליד ההרפתקה הבאה ===== */
.hero-btn { width: 46px; height: 46px; flex: none; border-radius: 50%; background: #fff; border: 3px solid #ffd54a; box-shadow: var(--shadow);
  padding: 0; overflow: hidden; display: grid; place-items: end center; cursor: pointer; }
.hero-btn img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; display: block; }
.portal .hero-at { position: absolute; left: -42%; bottom: -2%; height: calc(var(--pz) * .95); width: auto; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 3px 3px rgba(60,40,20,.3)); transform-origin: 50% 100%; animation: heroBob 1.8s ease-in-out infinite; }
@keyframes heroBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.hero-screen { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: linear-gradient(#fff6e0, #ffe9bf); }
.hero-row { flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 3vw, 40px); padding: 8px 14px 18px; }
.hero-card { flex: 1; max-width: 300px; height: min(68vh, 78vw * 1.2); max-height: 560px; border: 0; background: rgba(255,255,255,.7); border-radius: 28px;
  box-shadow: var(--shadow); display: grid; place-items: end center; padding: 14px 8px 10px; cursor: pointer; transition: transform .25s, opacity .3s; }
.hero-card img { max-height: 100%; max-width: 100%; object-fit: contain; display: block; }
.hero-card.on { outline: 4px solid #ffd54a; }
.hero-card:active { transform: scale(.96); }
.hero-card.picked { transform: scale(1.08); background: #fff; animation: heroPick .5s; }
.hero-card.dim { opacity: .25; transform: scale(.92); }
@keyframes heroPick { 0% { transform: scale(1); } 40% { transform: scale(1.14) rotate(-2deg); } 100% { transform: scale(1.08); } }
@media (orientation: portrait) and (max-width: 520px) {
  .hero-row { gap: 8px; padding-inline: 8px; }
  .hero-card { height: auto; align-self: center; border-radius: 20px; padding: 14px 4px 8px; }
  .hero-card img { width: 100%; height: auto; }
}
@media (orientation: landscape) and (max-height: 600px) {
  .hero-row { align-items: stretch; padding-bottom: 10px; }
  .hero-card { height: auto; max-height: none; flex: 0 1 230px; padding: 8px 6px 6px; }
  .hero-card img { height: 100%; width: auto; max-width: 100%; }
}
@media (orientation: landscape) and (max-height: 600px) {
  .hero-row { flex: none; height: calc(100dvh - 64px); }
  .hero-card { height: 100%; min-height: 0; }
  .hero-card img { height: 100%; object-fit: contain; object-position: 50% 100%; }
}
@media (orientation: landscape) and (max-height: 600px) {
  .hero-card { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); place-items: stretch; overflow: hidden; }
  .hero-card img { width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: 50% 100%; min-height: 0; }
}

/* ===== הדמות מלווה: ליד כפתורי הניווט, ובחלון הסיום ===== */
.hero-buddy { height: 74px; width: auto; flex: none; align-self: flex-end; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(60,40,20,.25)); transform-origin: 50% 100%; }
.hero-buddy[hidden] { display: none; }
.hero-buddy.hop { animation: buddyHop .7s ease-out; }
@keyframes buddyHop { 0% { transform: translateY(12px) scale(.9); opacity: 0; } 55% { transform: translateY(-8px) scale(1.04); opacity: 1; } 100% { transform: none; } }
.letter-intro .hero-buddy { height: 54px; }
.gm-hero { height: 120px; width: auto; display: block; margin: -70px auto 0; filter: drop-shadow(0 3px 3px rgba(60,40,20,.25)); animation: buddyHop .7s ease-out; }
@media (max-height: 520px) { .gm-hero { height: 84px; margin-top: -54px; } .hero-buddy { height: 52px; } }
.portal .hero-at.runs { animation: heroRun 1.1s ease-out forwards; }
@keyframes heroRun { 0% { transform: translateX(160%) translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { transform: translateX(0) translateY(-6px); } 100% { transform: translateX(0) translateY(0); } }

/* י׳: היונה אוספת ירחים (game-dovesky.js) */
.dovesky { position: relative; overflow: hidden; touch-action: manipulation; background: #232a78; }
.dovesky .ds-scene { position: absolute; left: 0; top: 0; width: 1672px; height: 941px; transform-origin: 0 0; }
.dovesky .ds-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 100%; pointer-events: none; user-select: none; }
.dovesky .ds-dim { position: absolute; inset: 0; background: #0a0828; opacity: .5; transition: opacity 1s; pointer-events: none; }
.dovesky .ds-chain, .dovesky .ds-moons { position: absolute; inset: 0; }
.dovesky .ds-chain { z-index: 1; pointer-events: none; }
.dovesky .ds-moons { z-index: 2; }
.dovesky .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.ds-dove { position: absolute; z-index: 4; pointer-events: none; }
.ds-dove-in { width: 100%; height: 100%; animation: dsfly 1.1s ease-in-out infinite alternate; }
.ds-dove img { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 0 22px rgba(255, 255, 255, .35)); }
@keyframes dsfly { from { transform: translateY(-10px) rotate(-3deg); } to { transform: translateY(10px) rotate(3deg); } }
.ds-dove.nope .ds-dove-in { animation: dsnope .6s ease-in-out; }
@keyframes dsnope { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 60% { transform: rotate(7deg); } }
.ds-dove.yay img { filter: drop-shadow(0 0 50px rgba(255, 236, 140, 1)) brightness(1.1); }
.ds-dove.party .ds-dove-in { animation: dsparty .5s ease-in-out infinite alternate; }
@keyframes dsparty { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-30px) rotate(6deg); } }
.ds-moon { position: absolute; cursor: pointer; will-change: transform; }
.ds-moon.pop { animation: mnpop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.ds-moon.caught { z-index: 5; cursor: default; }
.ds-moon.chained { cursor: default; }
.ds-moon .ds-bob { position: absolute; inset: 0; animation: mnbob 2.8s ease-in-out infinite alternate; }
.ds-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 0 14px rgba(255, 226, 120, .55)); }
.ds-moon.chosen .ds-img { filter: drop-shadow(0 0 36px rgba(255, 240, 150, 1)) brightness(1.1); }
.ds-moon.chained .ds-bob { animation: mntwinkle 1.6s ease-in-out infinite alternate; }
.ds-moon.chained .ds-tok { display: none; }
.ds-tok { position: absolute; width: 54%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; pointer-events: none; background: rgba(255, 251, 230, .92); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 226, 120, .7); }
.ds-tok .tok-letter { font: 700 82px/1 var(--letter); color: #1b1712; }
.ds-tok.pic .tok-pic { width: 86%; height: 86%; display: grid; place-items: center; position: relative; }
.ds-tok.pic .tok-pic i { visibility: hidden; }
.ds-tok.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: none; border-radius: 0; }
.ds-moon.oops { animation: mnoops .65s ease-in forwards; }
.ds-moon.fade { opacity: 0; transition: opacity .6s; }

/* ב׳: הביצה של הברווז (game-duck.js): נסדקת עם כל בועה נכונה ובסוף בוקעת */
.duckscene .dk-eggw { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; transform-origin: 50% 100%; will-change: transform; }
.dk-egg { position: absolute; --crack: 0; transform-origin: 50% 100%; filter: drop-shadow(0 3px 3px rgba(40,30,20,.25)); }
.dk-egg > img, .dk-egg .dk-crack { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.dk-egg-top { transition: transform .9s cubic-bezier(.2,.8,.3,1), opacity .9s; transform-origin: 80% 40%; }
.dk-crack { overflow: visible; }
.dk-crack polyline { fill: none; stroke: #7a4a1e; stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--crack)); transition: stroke-dashoffset .5s; }
.dk-egg.wob { animation: dkeggwob .55s ease-in-out; }
@keyframes dkeggwob { 25% { transform: rotate(-7deg); } 60% { transform: rotate(6deg); } }
.dk-chick { position: absolute; left: -10%; right: -10%; top: -75%; bottom: 35%; overflow: hidden; }
.dk-chick img { position: absolute; left: 50%; bottom: 0; width: 62%; transform: translate(-50%, 100%); transition: transform .8s cubic-bezier(.2,1.4,.4,1) .35s; }
.dk-egg.hatch .dk-egg-top { transform: translate(40%, -120%) rotate(45deg); opacity: 0; }
.dk-egg.hatch .dk-crack { opacity: 0; transition: opacity .2s; }
.dk-egg.hatch .dk-chick img { transform: translate(-50%, 12%); animation: dkchick .5s ease-in-out 1.2s infinite alternate; }
@keyframes dkchick { from { transform: translate(-50%, 12%) rotate(-5deg); } to { transform: translate(-50%, 8%) rotate(5deg); } }

/* עכשיו משחקים בבית: אחרי שלב במשחק (games.js) */
.gm-card.home { max-width: min(560px, 92vw); max-height: 88vh; overflow-y: auto; text-align: right; padding: 24px 28px; }
.gm-card.home h2 { font-size: 30px; text-align: center; }
.gm-card.home .gm-for { text-align: center; font-size: 16px; margin: 0 0 10px; }
.gm-card.home h3 { font-size: 22px; margin: 8px 0 4px; color: #6d28d9; }
.gm-card.home p, .gm-card.home li { font-size: 18px; line-height: 1.5; color: #3a3440; }
.gm-card.home ol { margin: 4px 0 12px; padding-inline-start: 22px; }
.gm-card.home .btn-row { justify-content: center; }
.gm-card.home .btn-row { position: sticky; bottom: -24px; background: #fff; padding: 8px 0 4px; margin-bottom: -4px; }
@media (max-height: 520px) {
  .gm-card.home { padding: 12px 22px; max-height: 94vh; }
  .gm-card.home h2 { font-size: 22px; margin: 0; }
  .gm-card.home .gm-for { font-size: 13px; margin: 0 0 4px; }
  .gm-card.home h3 { font-size: 17px; margin: 4px 0 2px; }
  .gm-card.home p, .gm-card.home li { font-size: 14.5px; line-height: 1.4; margin: 2px 0; }
  .gm-card.home ol { margin: 2px 0 4px; }
  .gm-card.home .btn-row { bottom: -12px; padding: 4px 0; }
}

/* משחק שמיעה: חלון כשמסיימים אות (screens.js) */
.listen-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(40, 30, 60, .45); }

/* הדמות מצביעה על השלב שבו הילד נמצא (screens.js, LetterScreen) */
.hero-guide { position: fixed; z-index: 20; height: 64px; width: auto; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(60,40,20,.25)); transition: left .4s ease, top .4s ease; }
.hero-guide.hop { animation: buddyHop .7s ease-out; }
@media (max-height: 520px) { .hero-guide { height: 46px; } }
/* משחקים בבית: שלב בתוך האות */
.home-step { margin: 12px auto; animation: none; box-shadow: 0 10px 30px rgba(0,0,0,.12); }

/* י׳: היונה עפה בשמיים ואוספת ירחים (game-dovesky.js) */
.dovefly { position: relative; overflow: hidden; touch-action: none; background: #232a78; cursor: grab; }
.dovefly .df-sky { position: absolute; left: 0; top: 0; height: 100%; display: flex; will-change: transform; }
.dovefly .df-sky img { display: block; flex: none; object-fit: cover; pointer-events: none; user-select: none; }
.dovefly .df-sky img.flip { transform: scaleX(-1); }
.dovefly .df-sky::after { content: ''; position: absolute; inset: 0; background: rgba(10, 8, 40, .25); }
.dovefly .df-moons, .dovefly .df-stars { position: absolute; inset: 0; pointer-events: none; }
.dovefly .fx-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.df-dove { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; will-change: transform; }
.df-dove > img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 18px rgba(255,255,255,.35)); }
.df-dove.yay img { filter: drop-shadow(0 0 40px rgba(255, 236, 140, 1)) brightness(1.1); }
.df-dove.nope img { animation: dsnope .6s ease-in-out; }
.df-dove.party img { animation: dsparty .5s ease-in-out infinite alternate; }
.df-moon { position: absolute; left: 0; top: 0; will-change: transform; }
.df-moon > img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 12px rgba(255, 226, 120, .55)); }
.df-tok { position: absolute; width: 54%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; background: rgba(255, 251, 230, .95); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 226, 120, .7); }
.df-tok .tok-letter { font: 700 1em/1 var(--letter); color: #1b1712; }
.df-tok.pic .tok-pic { width: 86%; height: 86%; display: grid; place-items: center; position: relative; }
.df-tok.pic .tok-pic i { visibility: hidden; }
.df-tok.pic .tok-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.df-moon.caught { transition: opacity .45s, scale .45s; opacity: 0; scale: .4; }
.df-moon.oops { animation: mnoops .65s ease-in forwards; }
.df-moon.fade { opacity: 0; transition: opacity .6s; }

/* שלושת החלקים במפה: למידת אותיות, משחקי צלילים, כתיבה (screens.js) */
.hub-modes { display: flex; justify-content: center; gap: clamp(6px, 2vw, 18px); padding: 4px 8px 10px; max-width: 100%; box-sizing: border-box; }
.hub-mode { flex: 1 1 0; min-width: 0; max-width: 170px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border: 3px solid transparent; border-radius: 22px; background: linear-gradient(160deg, #fff, #f6efff); box-shadow: 0 6px 14px rgba(90, 60, 130, .16); font: inherit; cursor: pointer; transition: transform .15s; }
.hub-mode:active { transform: scale(.95); }
.hub-mode .hm-art { font-size: clamp(34px, 7vw, 54px); line-height: 1; }
.hub-mode .hm-art img { height: clamp(46px, 9vw, 80px); width: auto; display: block; }
.hub-mode b { font-size: clamp(14px, 2.2vw, 18px); color: #5a3d6b; }
.hub-mode.on { border-color: #ffd54a; background: linear-gradient(160deg, #fffbe8, #ffefc2); }
.hub-mode[data-mode="sounds"] { background: linear-gradient(160deg, #fff, #e9f6ff); }
.hub-mode[data-mode="writing"] { background: linear-gradient(160deg, #fff, #ffeef2); }
.hub-bottom { padding: 6px 0 14px; }
@media (max-height: 500px) and (orientation: landscape) { .hub-modes { padding: 2px 8px 4px; } .hub-mode { flex-direction: row; padding: 4px 10px; } .hub-mode .hm-art { font-size: 26px; } }
/* משחקי צלילים */
.sounds-screen { padding-bottom: 24px; }
.sounds-sub { text-align: center; margin: 0 auto 12px; max-width: 620px; padding: 0 16px; color: var(--muted); }
.sounds-list { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; padding: 0 14px; }
.listen-card { background: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); border: 2px solid transparent; }
.listen-card.done { border-color: #9ad7b8; background: #f2fbf6; }
.listen-card h3 { margin: 0 0 6px; font-size: 19px; color: #6d28d9; display: flex; align-items: center; gap: 8px; }
.listen-card .sc-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ede9fe; font-size: 15px; color: #6d28d9; flex: none; }
.listen-card p { margin: 0 0 10px; font-size: 17px; line-height: 1.5; }
.hub-group { flex-wrap: wrap; justify-content: center; max-width: 100%; box-sizing: border-box; }
.hub-mode .hm-art img { height: clamp(58px, 15vw, 96px); width: auto; display: block; filter: drop-shadow(0 3px 4px rgba(80,60,100,.2)); }
@media (max-height: 500px) and (orientation: landscape) { .hub-mode .hm-art img { height: 34px; } }

/* משחקי צלילים דיגיטליים (sounds.js) */
.sound-games { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto 8px; padding: 0 14px; }
.sound-game-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border: 3px solid transparent; border-radius: 24px; background: linear-gradient(160deg, #fff, #e9f6ff); box-shadow: 0 6px 14px rgba(60, 90, 140, .16); font: inherit; cursor: pointer; }
.sound-game-btn span { font-size: 46px; line-height: 1; }
.sound-game-btn b { font-size: 18px; color: #2f5d86; }
.sound-game-btn.done { border-color: #9ad7b8; }
.sound-game-btn i { position: absolute; top: 6px; left: 8px; font-style: normal; font-size: 22px; }
.sounds-h2 { text-align: center; font-size: 20px; margin: 22px 0 4px; color: #5a3d6b; }
.sound-game { min-height: 100%; display: flex; flex-direction: column; }
.sg-dots { display: flex; gap: 5px; }
.sg-dots i { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #c4b5fd; }
.sg-dots i.on { background: #22c55e; box-shadow: none; }
.sg-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 10px 14px 20px; }
.sg-target { position: relative; }
.sg-pic { display: grid; place-items: center; width: clamp(90px, 24vw, 150px); aspect-ratio: 1; background: #fff; border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.sg-pic img { width: 86%; height: 86%; object-fit: contain; }
.sg-pic i { font-style: normal; font-size: 60px; }
.sg-pic.big { width: clamp(140px, 40vw, 230px); }
.sg-pic.robot { font-size: clamp(80px, 22vw, 140px); }
.sg-hear { position: absolute; bottom: -10px; left: -10px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 26px; cursor: pointer; }
.sg-choices { display: flex; gap: clamp(10px, 3vw, 22px); flex-wrap: wrap; justify-content: center; }
.sg-choices button, .sg-nums button { border: 4px solid transparent; border-radius: 30px; background: none; padding: 0; cursor: pointer; font: inherit; }
.sg-choices button.right .sg-pic, .sg-nums button.right { border-color: #22c55e; box-shadow: 0 0 0 4px #bbf7d0; }
.sg-choices button.right { border-color: #22c55e; }
.sg-choices button.wrong, .sg-nums button.wrong { animation: wiggle .5s; }
.sg-drum { font-size: clamp(64px, 16vw, 96px); border: 0; background: none; cursor: pointer; line-height: 1; }
.sg-drum.hit { animation: drumhit .25s ease-out; }
@keyframes drumhit { 40% { transform: scale(.85) rotate(-6deg); } }
.sg-taps { min-height: 24px; font-size: 22px; letter-spacing: 6px; color: #7c3aed; }
.sg-q { margin: 0; font-size: 20px; font-weight: 800; }
.sg-nums { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sg-nums button { display: flex; flex-direction: column; align-items: center; min-width: 70px; padding: 8px 10px; background: #fff; box-shadow: var(--shadow); font-size: 18px; }
.sg-nums button b { font-size: 22px; color: #6d28d9; }
.sg-end { text-align: center; }
.sg-end img { height: 150px; }
@media (max-height: 520px) and (orientation: landscape) {
  .sg-stage { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .sg-pic.big { width: 120px; } .sg-pic { width: 96px; } .sg-drum { font-size: 56px; }
}
.sounds-screen .sounds-list, .sounds-screen .sounds-sub { width: 100%; box-sizing: border-box; }
.sound-game .sg-stage { width: 100%; box-sizing: border-box; }
/* רכבת ההברות */
.sg-train { display: flex; align-items: flex-end; gap: 4px; min-height: 70px; direction: rtl; }
.sg-engine { font-size: 68px; line-height: 1; transform: scaleX(-1); }
.sg-cars { display: flex; gap: 4px; }
.sg-cars.wrong { animation: wiggle .5s; }
.sg-car { position: relative; display: grid; place-items: center; min-width: 66px; height: 54px; padding: 0 8px; border-radius: 10px 10px 6px 6px; box-shadow: inset 0 -5px 0 rgba(0,0,0,.08); animation: carin .3s ease-out; margin-bottom: 10px; }
.sg-car::before, .sg-car::after { content: ''; position: absolute; bottom: -9px; width: 14px; height: 14px; border-radius: 50%; background: #4b5563; }
.sg-car::before { right: 7px; } .sg-car::after { left: 7px; }
.sg-car b { font: 800 24px/1 Rubik, Arial, sans-serif; color: #3b2f4a; }
.sg-car.lit { transform: translateY(-8px) scale(1.12); box-shadow: 0 0 0 4px #fde047; transition: transform .15s; }
@keyframes carin { from { transform: translateX(-30px); opacity: 0; } }
.sg-acts { display: flex; gap: 10px; }
.sg-check.right { background: #22c55e; color: #fff; }
/* כתיבה: משחק הקווים ודפי העבודה (screens.js) */
.writing-screen { padding-bottom: 24px; }
.ws-title-img { height: 40px; vertical-align: middle; }
.ws-game { display: flex; flex-direction: column; align-items: center; gap: 4px; width: calc(100% - 28px); max-width: 640px; box-sizing: border-box; margin: 6px auto 0; padding: 16px; border-radius: 24px; background: linear-gradient(160deg, #fff, #ffeef2); box-shadow: 0 6px 14px rgba(140, 60, 90, .16); text-decoration: none; color: inherit; }
.ws-game span { font-size: 46px; line-height: 1; } .ws-game b { font-size: 20px; color: #9d174d; } .ws-game small { color: var(--muted); font-size: 15px; }
.ws-grid { width: 100%; max-width: 680px; box-sizing: border-box; margin: 0 auto; padding: 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ws-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 8px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: inherit; text-align: center; }
.ws-card span { font-size: 34px; line-height: 1; } .ws-card b { font-size: 17px; color: #5a3d6b; } .ws-card small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.ws-letters { width: 100%; max-width: 680px; box-sizing: border-box; margin: 0 auto; padding: 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ws-letters a { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font: 700 30px/1 var(--letter); color: #3b2f4a; text-decoration: none; }
/* סמל אות פותחת / סוגרת: מילה קצרה, והאות הנבחנת בצבע */
.wi { font-style: normal; font-weight: 800; letter-spacing: 2px; color: #9db4c8; }
.wi .on { font-style: normal; color: #e0592a; }
/* המסלול האחד: כפתור גדול שממשיך מאיפה שעצרנו */
.hub-go { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px auto 10px; padding: 12px 30px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #ffb347, #f08a24); color: #fff; font: inherit; font-size: 24px; font-weight: 800; box-shadow: 0 6px 0 #c9661a, 0 10px 18px rgba(200, 100, 30, .3); cursor: pointer; animation: hubGoPulse 2.4s ease-in-out infinite; }
.hub-go b { font-size: 32px; line-height: 1; }
.hub-go:active { transform: translateY(4px); box-shadow: 0 2px 0 #c9661a; }
@keyframes hubGoPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hub-go { animation: none; } }
/* letsplayot.com: the child playing now, and back to choose another child (/letters) */
.hub-kid { display: inline-block; margin-inline-end: 8px; padding: 4px 12px; border-radius: 999px; background: #fff; color: #5b3a8c; font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 2px 6px rgba(80, 50, 140, .15); }
/* הרובוט מדבר: בכל הברה נדלק אור אדום, והילד סופר כמה */
.rb-wrap { display: flex; align-items: center; gap: 14px; }
.rb-bot { display: flex; flex-direction: column; align-items: center; padding: 10px 18px 14px; background: linear-gradient(180deg, #e6edf5, #c9d6e3); border-radius: 30px; box-shadow: var(--shadow); }
.rb-face { font-size: clamp(80px, 22vw, 130px); line-height: 1; }
.rb-bot.talk .rb-face { animation: rbTalk .35s ease-in-out infinite alternate; }
@keyframes rbTalk { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-4px) rotate(2deg); } }
.rb-panel { display: flex; gap: 10px; margin-top: 8px; padding: 8px 12px; background: #334155; border-radius: 14px; }
.rb-light { width: 26px; height: 26px; border-radius: 50%; background: #5b2020; box-shadow: inset 0 -3px 0 rgba(0,0,0,.3); transition: background .15s, box-shadow .15s; }
.rb-light.on { background: #ff2d2d; box-shadow: 0 0 14px 4px rgba(255, 45, 45, .75), inset 0 -3px 0 rgba(0,0,0,.2); }
.rb-word .sg-pic { width: clamp(80px, 22vw, 120px); animation: pop-in .4s ease-out; }
.sg-nums button span { font-size: 12px; color: #ef4444; letter-spacing: 2px; }
