/* ============================================================
   «عالم القيم والوعي» (js/values-world.js) — سماء ليل سحرية
   ============================================================ */
.vw { position: fixed; inset: 0; z-index: 45; color: #F6F3FF; font-family: var(--f-body);
  background: radial-gradient(120% 70% at 50% 0%, #3B2A7A 0%, #1B1446 45%, #0B1030 100%);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); overflow: hidden; }
.vw.out { animation: vwOut .38s ease forwards; }
@keyframes vwOut { to { opacity: 0; transform: scale(1.04); filter: blur(4px); } }
.vw-sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vw-scr { position: relative; height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 16px 40px; max-width: 760px; margin: 0 auto; -webkit-overflow-scrolling: touch; }
.vw-scr.vw-in > * { animation: vwRise .6s cubic-bezier(.2,.9,.25,1.1) both; }
.vw-scr.vw-in > *:nth-child(2) { animation-delay: .06s; } .vw-scr.vw-in > *:nth-child(3) { animation-delay: .12s; }
.vw-scr.vw-in > *:nth-child(4) { animation-delay: .18s; } .vw-scr.vw-in > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes vwRise { from { opacity: 0; transform: translateY(26px) scale(.97); } }

/* الشريط العلوي */
.vw-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 0 10px;
  background: linear-gradient(180deg, rgba(27,20,70,.92) 60%, rgba(27,20,70,0)); backdrop-filter: blur(6px); }
.vw-back { width: 46px; height: 46px; flex: none; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.vw-back .ic { width: 24px; height: 24px; }
.vw-ttl { flex: 1; display: grid; line-height: 1.25; min-width: 0; }
.vw-ttl small { opacity: .7; font-size: .78rem; } .vw-ttl b { font-family: var(--f-display); font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-pill { flex: none; padding: 6px 12px; border-radius: 99px; background: rgba(126,224,161,.16); border: 1px solid rgba(126,224,161,.4); font-weight: 700; font-size: .85rem; }
.vw-dots { display: flex; gap: 6px; } .vw-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); transition: .3s; }
.vw-dots i.ok { background: #7EE0A1; } .vw-dots i.cur { background: #FFD45E; transform: scale(1.35); box-shadow: 0 0 10px #FFD45E; }
.vw-h { font-family: var(--f-display); font-size: 1.2rem; margin: 18px 2px 10px; }
.vw-small { font-size: .82rem; opacity: .75; margin: 4px 0 8px; }

/* زرار عام */
.vw-go { border: 0; border-radius: 18px; padding: 13px 22px; font-weight: 800; font-size: 1.02rem; cursor: pointer; color: #2A1B00;
  background: linear-gradient(135deg, #FFE27A, #FFB547); box-shadow: 0 10px 24px -10px #FFB547, inset 0 -3px 0 rgba(0,0,0,.12);
  transition: transform .3s cubic-bezier(.3,1.6,.5,1), filter .2s; }
.vw-go:hover { filter: brightness(1.06); } .vw-go:active { transform: scale(.94); }
.vw-go:disabled { opacity: .4; cursor: default; filter: grayscale(.4); }
.vw-go.alt { color: #fff; background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.25); box-shadow: none; }
.vw-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }

/* ---------- البطل: الشجرة ---------- */
.vw-hero { position: relative; border-radius: 30px; padding: 6px 10px 16px; margin-top: 4px;
  background: radial-gradient(90% 70% at 50% 75%, rgba(126,224,161,.16), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.vw-tree { display: block; width: 100%; max-width: 440px; margin: 0 auto; height: auto; overflow: visible; }
.vw-sway { transform-origin: 200px 304px; animation: vwSway 7s ease-in-out infinite; }
@keyframes vwSway { 0%, 100% { transform: rotate(-.9deg); } 50% { transform: rotate(.9deg); } }
.vw-can { transform-box: fill-box; transform-origin: center; animation: vwBreathe 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.8s); }
@keyframes vwBreathe { 50% { transform: scale(1.06); } }
.vw-br.new { stroke-dasharray: 1; stroke-dashoffset: 1; animation: vwDraw 1.1s .3s cubic-bezier(.4,0,.2,1) forwards; }
.vw-br.bare { stroke-dasharray: .04 .05; }
@keyframes vwDraw { to { stroke-dashoffset: 0; } }
.vw-lf { transform-box: fill-box; transform-origin: center; }
.vw-lf.new { animation: vwLeaf .8s var(--d, .5s) cubic-bezier(.3,1.8,.5,1) both; }
@keyframes vwLeaf { from { transform: scale(0); opacity: 0; } }
.vw-fruit { animation: vwFloat 3.2s ease-in-out infinite; }
.vw-fruit.new { animation: vwFruitIn 1.2s .9s cubic-bezier(.3,1.7,.5,1) both, vwFloat 3.2s 2.1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes vwFruitIn { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
@keyframes vwFloat { 50% { transform: translateY(-3px); } }
.vw-bud { animation: vwPulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes vwPulse { 50% { transform: scale(1.4); opacity: .7; } }
.vw-flies { position: absolute; inset: 0; pointer-events: none; }
.vw-flies i { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; border-radius: 50%; background: #FFF4A8;
  box-shadow: 0 0 10px 3px rgba(255,236,120,.7); animation: vwFly var(--t) var(--d) ease-in-out infinite alternate; opacity: .0; }
@keyframes vwFly { 0% { opacity: 0; transform: translate(0,0); } 30% { opacity: .9; } 100% { opacity: .2; transform: translate(26px,-34px); } }
.vw-hero-txt { display: grid; gap: 4px; text-align: center; margin-top: -6px; position: relative; }
.vw-hero-txt b { font-family: var(--f-display); font-size: 1.35rem; }
.vw-hero-txt span { opacity: .82; font-size: .9rem; }
.vw-meter { display: block; height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin: 8px auto 0; width: min(320px, 90%); opacity: 1 !important; }
.vw-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7EE0A1, #FFD45E); box-shadow: 0 0 12px #7EE0A1; animation: vwBar 1.4s .4s cubic-bezier(.2,.9,.2,1) both; }
@keyframes vwBar { from { width: 0 !important; } }

/* ---------- الكواكب (القيم) ---------- */
.vw-orbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 420px) { .vw-orbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vw-orb { position: relative; display: grid; justify-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 24px; cursor: pointer; color: #fff;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 30%, transparent), rgba(255,255,255,.04));
  box-shadow: 0 14px 30px -18px var(--c); animation: vwBob 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * -.55s); }
@keyframes vwBob { 50% { translate: 0 -5px; } }
.vw-orb-ball { position: relative; width: 72px; height: 72px; display: grid; place-items: center; }
.vw-orb-ball svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.vw-orb-ball .trk { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 5; }
.vw-orb-ball .val { fill: none; stroke: var(--c); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--c)); transition: stroke-dashoffset 1s; }
.vw-orb-ball em { font-style: normal; font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0, var(--c) 30%, var(--c2) 100%); box-shadow: 0 0 22px -2px var(--c), inset 0 -6px 10px rgba(0,0,0,.18); }
.vw-orb-ball s { position: absolute; top: -2px; inset-inline-end: -2px; text-decoration: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 900; background: #7EE0A1; color: #0B3A1F; box-shadow: 0 0 10px #7EE0A1; }
.vw-orb.done .vw-orb-ball em { animation: vwGlow 2.4s ease-in-out infinite; }
@keyframes vwGlow { 50% { box-shadow: 0 0 34px 4px var(--c), inset 0 -6px 10px rgba(0,0,0,.18); } }
.vw-orb b { font-family: var(--f-display); font-size: 1.02rem; line-height: 1.2; text-align: center; }
.vw-orb small { opacity: .72; font-size: .72rem; text-align: center; }
.vw-foot { margin: 22px 4px 0; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.2); font-size: .85rem; opacity: .85; }

/* ---------- صفحة الخُلق ---------- */
.vw-intro { text-align: center; display: grid; gap: 10px; justify-items: center; padding-top: 6px; }
.vw-big-orb { position: relative; width: 130px; height: 130px; display: grid; place-items: center; margin: 6px 0; }
.vw-big-orb span { position: relative; z-index: 1; font-size: 62px; width: 110px; height: 110px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0, var(--c) 32%, var(--c2) 100%); box-shadow: 0 0 50px -6px var(--c); animation: vwFloat 3s ease-in-out infinite; }
.vw-big-orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c); opacity: 0; animation: vwWave 3s ease-out infinite; }
.vw-big-orb i:nth-child(3) { animation-delay: 1s; } .vw-big-orb i:nth-child(4) { animation-delay: 2s; }
@keyframes vwWave { from { transform: scale(.75); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.vw-intro h2 { font-family: var(--f-display); font-size: 1.9rem; }
.vw-def { font-size: 1.05rem; opacity: .9; max-width: 460px; }
.vw-steps { display: grid; gap: 10px; width: 100%; margin: 6px 0 8px; }
.vw-step { display: grid; grid-template-columns: 34px 36px 1fr; align-items: center; gap: 10px; text-align: start; padding: 12px 14px; border-radius: 18px; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); transition: transform .3s cubic-bezier(.3,1.6,.5,1), background .2s; }
.vw-step:hover { background: rgba(255,255,255,.12); } .vw-step:active { transform: scale(.97); }
.vw-step > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(255,255,255,.12); }
.vw-step.ok > span { background: #7EE0A1; color: #0B3A1F; box-shadow: 0 0 12px #7EE0A1; }
.vw-step em { font-style: normal; font-size: 28px; } .vw-step b { font-weight: 600; font-size: .92rem; line-height: 1.45; }
.vw-step.lab { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 28%, transparent), rgba(255,255,255,.05)); }

/* ---------- المسرح (الموقف) ---------- */
.vw-stage { position: relative; overflow: hidden; border-radius: 28px; min-height: 250px; padding: 18px 16px 16px; display: grid; align-content: space-between; gap: 12px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 75%, #1B1446), color-mix(in srgb, var(--c2) 60%, #0B1030));
  box-shadow: 0 24px 50px -24px var(--c), inset 0 1px 0 rgba(255,255,255,.25); transition: filter .6s, box-shadow .6s; }
.vw-stage-bg { position: absolute; inset-inline-end: -20px; bottom: -30px; font-size: 170px; opacity: .16; filter: blur(1px); transform: rotate(-8deg); pointer-events: none; }
.vw-cast { display: flex; justify-content: center; align-items: flex-end; gap: 14px; min-height: 100px; }
.vw-cast span { font-size: 62px; line-height: 1; filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); animation: vwIdle 2.6s ease-in-out infinite; animation-delay: calc(var(--k) * -.7s); }
.vw-cast span:nth-child(2) { font-size: 44px; }
@keyframes vwIdle { 50% { transform: translateY(-6px) rotate(2deg); } }
.vw-stage.win { box-shadow: 0 0 0 3px #FFE27A, 0 24px 60px -16px #FFE27A; }
.vw-stage.win .vw-cast span { animation: vwJump .7s cubic-bezier(.3,1.6,.5,1) 3; animation-delay: calc(var(--k) * .08s); }
@keyframes vwJump { 40% { transform: translateY(-26px) scale(1.12); } }
.vw-stage.sad { filter: saturate(.35) brightness(.85); }
.vw-bubble { position: relative; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.95); color: #2E2640; border-radius: 20px; padding: 12px 14px; font-weight: 600; font-size: 1.05rem; line-height: 1.55; box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); }
.vw-bubble::before { content: ""; position: absolute; top: -9px; inset-inline-start: 50%; width: 18px; height: 18px; background: inherit; transform: rotate(45deg); border-radius: 4px; }
.vw-bubble p { flex: 1; position: relative; }
.vw-say { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #F1EDFF; font-size: 20px; cursor: pointer; position: relative; }
.vw-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.vw-sparkles i { position: absolute; bottom: 10%; left: var(--x); font-style: normal; font-size: 22px; animation: vwHeart 2.2s var(--d) ease-out both; }
@keyframes vwHeart { from { opacity: 0; transform: translateY(0) scale(.4); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-220px) rotate(var(--r)) scale(1.2); } }
.vw-q { font-family: var(--f-display); text-align: center; font-size: 1.3rem; margin: 16px 0 10px; }
.vw-choices { display: grid; gap: 12px; }
@media (min-width: 560px) { .vw-choices { grid-template-columns: 1fr 1fr; } }
.vw-ch { display: flex; align-items: center; gap: 12px; text-align: start; padding: 14px 16px; border-radius: 22px; cursor: pointer; color: #fff; font-size: 1rem; line-height: 1.45;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border: 1.5px solid rgba(255,255,255,.22);
  transition: transform .35s cubic-bezier(.3,1.6,.5,1), background .3s, border-color .3s, opacity .3s; }
.vw-ch:hover { border-color: rgba(255,255,255,.5); } .vw-ch:active { transform: scale(.96); }
.vw-ch > span { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: rgba(255,255,255,.12); }
.vw-ch b { font-weight: 700; }
.vw-ch.win { background: linear-gradient(135deg, #2FA36B, #45BE80); border-color: #7EE0A1; box-shadow: 0 0 0 4px rgba(126,224,161,.25), 0 14px 30px -12px #45BE80; transform: scale(1.03); }
.vw-ch.win > span { animation: vwSpin .8s cubic-bezier(.3,1.6,.5,1); }
@keyframes vwSpin { from { transform: rotate(-200deg) scale(.4); } }
.vw-ch.nope { animation: vwShake .5s; opacity: .45; border-color: rgba(255,120,140,.6); }
.vw-ch.dim { opacity: .35; }
.vw-ch.hint { animation: vwHint 1.4s ease-in-out infinite; }
@keyframes vwHint { 50% { box-shadow: 0 0 0 6px rgba(255,226,122,.35); border-color: #FFE27A; } }
@keyframes vwShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.vw-fb { margin-top: 14px; }
.vw-good, .vw-oops { border-radius: 24px; padding: 14px; text-align: center; display: grid; gap: 10px; justify-items: center; animation: vwRise .5s both; }
.vw-good { background: linear-gradient(180deg, rgba(126,224,161,.16), rgba(126,224,161,.04)); border: 1px solid rgba(126,224,161,.35); }
.vw-good p, .vw-oops p { font-size: 1.02rem; line-height: 1.6; }
.vw-oops { background: rgba(160,170,220,.12); border: 1px solid rgba(180,190,255,.25); }
.vw-cloud { font-size: 40px; animation: vwDrift 3s ease-in-out infinite; }
@keyframes vwDrift { 50% { transform: translateX(16px); } }
.vw-rip { position: relative; width: 100%; max-width: 420px; }
.vw-rip canvas { display: block; width: 100%; height: 230px; }
.vw-rip-n { display: block; font-weight: 800; color: #FFE27A; min-height: 1.4em; }
.vw-leaf-got { display: inline-block; padding: 4px 12px; border-radius: 99px; background: rgba(126,224,161,.2); color: #B9F5CF; font-weight: 700; font-size: .85rem; animation: vwPop .6s cubic-bezier(.3,1.8,.5,1) both; }
@keyframes vwPop { from { transform: scale(0); } }

/* ---------- الثمرة (إتمام الخُلق) ---------- */
.vw-master { position: relative; overflow: hidden; text-align: center; display: grid; justify-items: center; gap: 14px; padding-top: 16px; }
.vw-rays { position: absolute; top: -40px; left: 50%; width: 520px; height: 520px; margin-left: -260px; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c) 45%, transparent) 0 10deg, transparent 10deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 62%); mask: radial-gradient(circle, #000 0, transparent 62%); animation: vwRot 22s linear infinite; }
@keyframes vwRot { to { transform: rotate(360deg); } }
.vw-medal { position: relative; width: 150px; height: 170px; perspective: 600px; z-index: 1; }
.vw-medal-in { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #FFF6C9, #FFD45E 40%, #D99A1E 100%); box-shadow: 0 0 0 8px rgba(255,212,94,.35), 0 0 60px #FFD45E, inset 0 -8px 16px rgba(0,0,0,.2);
  animation: vwMedal 1.4s cubic-bezier(.2,1.2,.3,1) both; }
.vw-medal-in span { font-size: 70px; width: 110px; height: 110px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 40%, var(--c2)); box-shadow: inset 0 4px 10px rgba(0,0,0,.25); }
@keyframes vwMedal { from { transform: rotateY(540deg) scale(.2); opacity: 0; } 60% { opacity: 1; } }
.vw-medal .rib { position: absolute; bottom: 0; width: 34px; height: 56px; background: linear-gradient(var(--c), var(--c2)); z-index: -1; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.vw-medal .rib.l { left: 38px; transform: rotate(14deg); } .vw-medal .rib.r { right: 38px; transform: rotate(-14deg); }
.vw-master h2 { font-family: var(--f-display); font-size: 1.4rem; position: relative; }
.vw-quote { position: relative; margin: 0; padding: 18px 18px 14px; border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,212,94,.35); max-width: 520px; font-size: 1.15rem; line-height: 1.9; }
.vw-quote.ar { font-family: "Amiri", "Amiri Quran", serif; font-size: 1.5rem; }
.vw-quote span { display: inline-block; animation: vwWord .6s calc(.9s + var(--k) * .12s) cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes vwWord { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
.vw-quote cite { display: block; font-style: normal; font-family: var(--f-body); font-size: .8rem; opacity: .7; margin-top: 6px; }

/* ---------- المختبرات ---------- */
.vw-lab { display: grid; gap: 12px; padding-top: 4px; }
.vw-lab-stage { position: relative; border-radius: 26px; overflow: hidden; min-height: 330px; border: 1px solid rgba(255,255,255,.14);
  background: radial-gradient(90% 80% at 50% 40%, color-mix(in srgb, var(--c) 30%, transparent), rgba(255,255,255,.03)); }
.vw-lab-msg { text-align: center; font-weight: 600; font-size: 1.02rem; line-height: 1.6; min-height: 1.6em; }
.vw-lab-act { display: grid; justify-items: center; }
.vw-lab-end { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 14px; border-radius: 22px; background: rgba(126,224,161,.1); border: 1px solid rgba(126,224,161,.3); animation: vwRise .5s both; }
.vw-lab-end h3 { font-family: var(--f-display); font-size: 1.3rem; }
.vw-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.vw-chips span { padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: .85rem; animation: vwPop .5s both; }
.vw-chips span:nth-child(2) { animation-delay: .1s; } .vw-chips span:nth-child(3) { animation-delay: .2s; } .vw-chips span:nth-child(4) { animation-delay: .3s; } .vw-chips span:nth-child(5) { animation-delay: .4s; }

/* الجراثيم */
.vw-germ-cv { display: block; width: 100%; height: 340px; touch-action: none; cursor: grab; }
.vw-timer { position: absolute; top: 12px; inset-inline-start: 12px; width: 70px; height: 70px; display: grid; place-items: center; align-content: center; line-height: 1; }
.vw-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.vw-timer .trk { fill: rgba(0,0,0,.25); stroke: rgba(255,255,255,.18); stroke-width: 6; }
.vw-timer .val { fill: none; stroke: #7EE0A1; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 4px #7EE0A1); transition: stroke-dashoffset .2s; }
.vw-timer b { position: relative; font-size: 1.4rem; font-weight: 800; } .vw-timer small { position: relative; font-size: .62rem; opacity: .8; }
.vw-germ-count { position: absolute; top: 14px; inset-inline-end: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,.3); font-weight: 800; }
.vw-lab-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vw-lab-steps span { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: rgba(255,255,255,.06); font-size: .72rem; text-align: center; transition: .3s; border: 1px solid transparent; }
.vw-lab-steps em { font-style: normal; font-size: 22px; }
.vw-lab-steps span.on { background: rgba(255,226,122,.18); border-color: #FFE27A; transform: translateY(-3px); }
.vw-lab-steps span.ok { background: rgba(126,224,161,.18); border-color: rgba(126,224,161,.5); }

/* الماء */
.vw-sink { min-height: 320px; direction: ltr; }
.vw-faucet { position: absolute; top: 26px; left: calc(53% - 91px); width: 120px; height: 180px; }
.vw-pipe { position: absolute; top: 20px; left: 10px; width: 90px; height: 26px; border-radius: 14px 14px 6px 6px; background: linear-gradient(180deg, #D9E2EC, #8A9BB0); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.vw-pipe::after { content: ""; position: absolute; right: 0; top: 18px; width: 24px; height: 26px; border-radius: 0 0 8px 8px; background: linear-gradient(90deg, #AFC0D2, #8A9BB0); }
.vw-tap { position: absolute; top: -6px; left: 30px; width: 54px; height: 40px; border-radius: 14px; border: 0; cursor: pointer; z-index: 2; background: linear-gradient(180deg, #FF8A65, #E4572E); box-shadow: 0 6px 14px -6px #E4572E; font-size: 20px; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.vw-sink.on .vw-tap { transform: rotate(-35deg); background: linear-gradient(180deg, #4FD1C5, #1BA3B8); }
.vw-tap.hint { animation: vwHint 1s ease-in-out infinite; }
.vw-stream { position: absolute; top: 64px; left: 84px; width: 14px; height: 0; border-radius: 0 0 8px 8px; transition: height .25s;
  background: repeating-linear-gradient(180deg, rgba(160,220,255,.95) 0 10px, rgba(90,180,240,.85) 10px 20px); background-size: 100% 40px; animation: vwFlow .35s linear infinite; }
.vw-sink.on .vw-stream { height: 130px; }
@keyframes vwFlow { to { background-position: 0 40px; } }
.vw-basin { position: absolute; bottom: 30px; left: 30%; width: 46%; height: 70px; border-radius: 0 0 90px 90px; background: linear-gradient(180deg, #F4F8FB, #C7D3DF); box-shadow: inset 0 8px 14px rgba(0,0,0,.12); }
.vw-kid { position: absolute; bottom: 74px; right: -62px; font-size: 52px; }
@media (min-width: 520px) { .vw-kid { right: -80px; font-size: 60px; } }
.vw-kid em { position: absolute; font-style: normal; font-size: 30px; left: 30px; top: 22px; }
.vw-sink.brushing .vw-kid em { animation: vwBrush .25s ease-in-out infinite alternate; }
@keyframes vwBrush { to { transform: translateX(10px) rotate(-12deg); } }
.vw-tank { position: absolute; bottom: 30px; left: 14px; width: 74px; height: 190px; border-radius: 14px 14px 18px 18px; border: 3px solid rgba(255,255,255,.6); overflow: hidden; display: grid; place-items: center; align-content: center; background: rgba(255,255,255,.06); }
.vw-tank-fill { position: absolute; bottom: 0; left: 0; right: 0; height: 0; background: linear-gradient(180deg, #7FD3F7, #1BA3B8); transition: height .15s linear; }
.vw-tank-fill::before { content: ""; position: absolute; top: -6px; left: -20%; width: 140%; height: 12px; border-radius: 50%; background: #9BE0FB; animation: vwWobble 1.6s ease-in-out infinite alternate; }
@keyframes vwWobble { to { transform: translateX(10%); } }
.vw-tank b, .vw-tank small { position: relative; z-index: 1; text-shadow: 0 1px 4px rgba(0,0,0,.5); } .vw-tank b { font-size: 1.4rem; }
.vw-clock { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,.3); font-weight: 700; direction: ltr; }
.vw-cmp:empty { display: none; }
.vw-cmp { display: grid; gap: 10px; }
.vw-bars { display: flex; gap: 22px; justify-content: center; align-items: flex-end; height: 200px; padding: 10px; border-radius: 22px; background: rgba(255,255,255,.05); }
.vw-bars > div { display: grid; justify-items: center; gap: 6px; height: 100%; align-content: end; }
.vw-bars i { position: relative; display: block; width: 70px; height: var(--h); border-radius: 14px 14px 6px 6px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 0 20px -4px var(--c); animation: vwGrow 1.2s cubic-bezier(.2,.9,.2,1) both; transform-origin: bottom; }
.vw-bars i b { position: absolute; top: -26px; left: 0; right: 0; text-align: center; font-weight: 800; }
@keyframes vwGrow { from { transform: scaleY(0); } }
.vw-cmp h4 { font-family: var(--f-display); font-size: 1.05rem; margin: 6px 0 0; }
.vw-tubs { display: grid; gap: 10px; }
.vw-tubs > div { padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.06); }
.vw-tubs p { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 6px; }
.vw-tubs i { font-style: normal; font-size: 18px; animation: vwPop .4s cubic-bezier(.3,1.8,.5,1) both; }

/* السلامة */
.vw-road { min-height: 260px; background: linear-gradient(180deg, #8FD18B 0 16%, #5A6475 16% 84%, #C9CED6 84%); }
.vw-road::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 4px; margin-top: -2px; background: repeating-linear-gradient(90deg, #FFE27A 0 26px, transparent 26px 50px); }
.vw-zebra { position: absolute; top: 16%; bottom: 16%; left: 50%; width: 76px; margin-left: -38px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.9) 0 14px, transparent 14px 28px); }
.vw-cars span { position: absolute; font-size: 48px; left: -80px; opacity: 0; }
.vw-cars .a { top: 22%; } .vw-cars .b { top: 52%; transform: scaleX(-1); } .vw-cars .c { top: 30%; }
.vw-road.traffic .vw-cars .a { animation: vwCarR 1.6s linear infinite; } .vw-road.traffic .vw-cars .c { animation: vwCarR 1.6s .8s linear infinite; }
.vw-road.traffic .vw-cars .b { animation: vwCarL 2s .3s linear infinite; }
.vw-road.look-r .vw-cars .a { animation: vwCarR 1.4s linear 1; } .vw-road.look-l .vw-cars .b { animation: vwCarL 1.6s linear 1; }
@keyframes vwCarR { 0% { left: -80px; opacity: 1; } 100% { left: calc(100% + 20px); opacity: 1; } }
@keyframes vwCarL { 0% { left: calc(100% + 20px); opacity: 1; } 100% { left: -80px; opacity: 1; } }
.vw-light { position: absolute; top: 18px; inset-inline-end: 18px; display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: #1F2533; box-shadow: 0 6px 14px rgba(0,0,0,.4); z-index: 2; }
.vw-light i { width: 26px; height: 26px; border-radius: 50%; background: #3A4152; }
.vw-light .r { background: #FF4D4D; box-shadow: 0 0 14px #FF4D4D; }
.vw-road.green .vw-light .r { background: #3A4152; box-shadow: none; } .vw-road.green .vw-light .g { background: #3EE07A; box-shadow: 0 0 16px #3EE07A; }
.vw-walkers { position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%); display: flex; align-items: flex-end; height: 52px; line-height: 1; gap: 0; font-size: 44px; transition: bottom 1.6s ease-in-out, gap .4s; z-index: 1; }
.vw-walkers span { transition: transform .4s; }
.vw-road.hand .vw-walkers { gap: 0; } .vw-road:not(.hand) .vw-walkers { gap: 26px; }
.vw-road.look-r .vw-walkers .kid { animation: vwLookR .9s ease; } .vw-road.look-l .vw-walkers .kid { animation: vwLookL .9s ease; }
@keyframes vwLookR { 50% { transform: translateX(10px) rotate(12deg); } } @keyframes vwLookL { 50% { transform: translateX(-10px) rotate(-12deg); } }
.vw-road.cross .vw-walkers { bottom: 77%; }
.vw-road.cross .vw-walkers span { animation: vwIdle .4s ease-in-out infinite; }
.vw-road.shake { animation: vwShake .5s; }
.vw-road-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: s; }
.vw-road-steps li { counter-increment: s; display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.06); opacity: .55; transition: .3s; }
.vw-road-steps li::before { content: counter(s); width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(255,255,255,.14); }
.vw-road-steps li.on { opacity: 1; background: rgba(255,226,122,.14); } .vw-road-steps li.ok { opacity: 1; } .vw-road-steps li.ok::before { content: "✓"; background: #7EE0A1; color: #0B3A1F; }
.vw-road-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.vw-road-btns .vw-go { padding: 11px 16px; font-size: .95rem; }
.vw-part2:empty { display: none; }
.vw-deck { position: relative; height: 230px; display: grid; place-items: center; touch-action: pan-y; }
.vw-card { width: min(300px, 86%); height: 200px; border-radius: 26px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 16px; cursor: grab; user-select: none; touch-action: none;
  background: linear-gradient(160deg, #FFFFFF, #EEE8FF); color: #2E2640; box-shadow: 0 24px 40px -20px rgba(0,0,0,.6); transition: transform .45s cubic-bezier(.3,1.3,.5,1), opacity .45s, box-shadow .3s; animation: vwDeal .5s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes vwDeal { from { transform: translateY(40px) scale(.85) rotate(-4deg); opacity: 0; } }
.vw-card span { font-size: 54px; } .vw-card b { font-size: 1.05rem; line-height: 1.5; } .vw-card small { opacity: .5; font-size: .75rem; }
.vw-card.to-yes, .vw-card.good { box-shadow: 0 0 0 5px #3EE07A, 0 24px 40px -20px rgba(0,0,0,.6); }
.vw-card.to-no, .vw-card.bad { box-shadow: 0 0 0 5px #FF4D6D, 0 24px 40px -20px rgba(0,0,0,.6); }
.vw-deck-btns { display: flex; gap: 12px; justify-content: center; }
.vw-deck-btns button { flex: 1; max-width: 180px; border: 0; border-radius: 18px; padding: 14px; font-weight: 800; font-size: 1.05rem; cursor: pointer; color: #fff; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.vw-deck-btns button:active { transform: scale(.93); }
.vw-yes { background: linear-gradient(135deg, #2FA36B, #45BE80); box-shadow: 0 10px 20px -10px #45BE80; }
.vw-no { background: linear-gradient(135deg, #D94A70, #E4572E); box-shadow: 0 10px 20px -10px #E4572E; }
.vw-deck-fb { text-align: center; min-height: 3em; line-height: 1.6; padding: 0 6px; }

/* برطمان الشكر */
.vw-jar-wrap { display: grid; justify-items: center; gap: 8px; }
.vw-jar { --glow: 0; position: relative; width: 190px; height: 230px; border-radius: 34px 34px 46px 46px; border: 4px solid rgba(220,235,255,.75); border-top-width: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14) 20%, rgba(255,255,255,.04) 60%, rgba(255,255,255,.12));
  box-shadow: 0 0 calc(20px + var(--glow) * 60px) calc(var(--glow) * 12px) rgba(255,214,94,calc(.15 + var(--glow) * .5)), inset 0 -10px 30px rgba(255,214,94,calc(var(--glow) * .35)); transition: box-shadow .6s; margin-top: 18px; }
.vw-jar .lid { position: absolute; top: -20px; left: 14px; right: 14px; height: 24px; border-radius: 10px; background: linear-gradient(180deg, #E9B949, #B07D1E); box-shadow: 0 4px 0 rgba(0,0,0,.2); }
.vw-jar canvas { position: absolute; inset: 6px 6px 8px; width: calc(100% - 12px); height: calc(100% - 14px); border-radius: 28px 28px 40px 40px; }
.vw-jar .glass { position: absolute; top: 16px; inset-inline-start: 16px; width: 14px; height: 120px; border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0)); pointer-events: none; }
.vw-jar.pulse { animation: vwJar .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes vwJar { 40% { transform: scale(1.06, .95); } }
.vw-jar-n { font-weight: 800; font-size: 1.1rem; color: #FFE27A; }
.vw-bless { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.vw-bless button { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 18px; cursor: pointer; color: #fff; font-weight: 600; font-size: .85rem;
  background: color-mix(in srgb, var(--c) 22%, rgba(255,255,255,.04)); border: 1.5px solid color-mix(in srgb, var(--c) 50%, transparent); transition: transform .3s cubic-bezier(.3,1.6,.5,1), opacity .4s; }
.vw-bless button span { font-size: 28px; }
.vw-bless button:active { transform: scale(.9); }
.vw-bless button.in { opacity: .35; transform: scale(.92); }
.vw-flyb { position: fixed; z-index: 60; font-size: 34px; pointer-events: none; transform: translate(-50%, -50%); filter: drop-shadow(0 0 10px #FFE27A); }
.vw-jar-end:empty { display: none; }

/* ---------- كارت الدخول في الرئيسية ---------- */
.vw-entry-wrap { margin: 14px 0; }
.vw-entry { position: relative; width: 100%; display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 10px; padding: 12px 14px; border: 0; border-radius: 26px; cursor: pointer; text-align: start; overflow: hidden; color: #fff;
  background: radial-gradient(120% 120% at 85% 0%, #5B3FB8 0%, #2A1E6B 50%, #13183F 100%); box-shadow: 0 18px 40px -18px #5B3FB8, inset 0 1px 0 rgba(255,255,255,.2); font: inherit; }
.vw-entry::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 60%); transform: translateX(-120%); animation: vwShine 4.5s 1s ease-in-out infinite; pointer-events: none; }
@keyframes vwShine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.vw-entry-sky { position: absolute; inset: 0; pointer-events: none; }
.vw-entry-sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: vwTw 2.4s ease-in-out infinite; }
.vw-entry-sky i:nth-child(1) { top: 14%; left: 30%; } .vw-entry-sky i:nth-child(2) { top: 30%; left: 62%; animation-delay: .5s; } .vw-entry-sky i:nth-child(3) { top: 70%; left: 44%; animation-delay: 1s; }
.vw-entry-sky i:nth-child(4) { top: 20%; left: 88%; animation-delay: 1.4s; } .vw-entry-sky i:nth-child(5) { top: 80%; left: 76%; animation-delay: .2s; } .vw-entry-sky i:nth-child(6) { top: 55%; left: 8%; animation-delay: 1.8s; }
@keyframes vwTw { 50% { opacity: .2; transform: scale(.5); } }
.vw-entry-tree { position: relative; width: 120px; filter: drop-shadow(0 0 14px rgba(126,224,161,.45)); }
.vw-tree.mini { width: 120px; }
.vw-entry-txt { position: relative; display: grid; gap: 3px; line-height: 1.35; }
.vw-entry-txt small { color: #FFE27A; font-weight: 700; font-size: .78rem; }
.vw-entry-txt b { font-family: var(--f-display); font-size: 1.3rem; }
.vw-entry-txt > span { font-size: .82rem; opacity: .88; }
.vw-entry-bar { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 4px; opacity: 1 !important; }
.vw-entry-bar i { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: linear-gradient(90deg, #7EE0A1, #FFD45E); }
.vw-entry-txt em { font-style: normal; font-size: .74rem; opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  .vw *, .vw-entry, .vw-entry * { animation: none !important; transition: none !important; }
}
