/* Bunnimoo 6.5.0 — alive routines (bm-alive.js). transform/opacity animations only; .al-rm / html.rm / prefers-reduced-motion stop the loops. */
.al { display: flex; flex-direction: column; gap: 10px; position: relative; }
.al .head-row { position: relative; }
.al .al-mute { margin-inline-start: auto; }
.al .al-mute svg { width: 26px; height: 26px; }
.al .al-mute { position: relative; }
.al .al-mute.off::after { content: ''; position: absolute; left: 22%; right: 22%; top: 50%; height: 3px; border-radius: 2px; background: #c25a7a; transform: rotate(-40deg); }

/* path with the hopping bunny */
.al-path { position: relative; height: 46px; margin: 0 22px; }
.al-pline { position: absolute; inset: 12px 0 auto; width: 100%; height: 22px; overflow: visible; }
.al-pline path { fill: none; stroke: #e2d4ec; stroke-width: 2.4; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.al-pd { position: absolute; top: 9px; inset-inline-start: var(--p); width: 28px; height: 28px; margin-inline-start: -14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #eadff1 inset; display: grid; place-items: center; transition: transform .3s ease, background .3s ease; }
.al-pd svg { width: 17px; height: 17px; opacity: .45; }
.al-pd.was, .al-pd.ok { background: #e7f6ee; box-shadow: 0 0 0 2px #b9dcc9 inset; } .al-pd.was svg, .al-pd.ok svg { opacity: .9; }
.al-pd.now { transform: scale(1.18); box-shadow: 0 0 0 3px #ffcf6b inset, 0 2px 8px rgba(120, 90, 150, .2); } .al-pd.now svg { opacity: 1; }
.al-hop { position: absolute; top: -14px; inset-inline-start: var(--p); width: 30px; height: 30px; margin-inline-start: -15px; transition: inset-inline-start .6s cubic-bezier(.3, 1.4, .5, 1); animation: alHop .6s ease; z-index: 2; pointer-events: none; }
.al-hop b { display: block; font-size: 24px; line-height: 30px; text-align: center; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .15)); }
@keyframes alHop { 0% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(-16px) scale(.95, 1.08); } 60% { transform: translateY(0) scale(1.12, .88); } 100% { transform: none; } }

/* the scene */
.al-scene { position: relative; height: clamp(300px, 52vh, 460px); border-radius: 30px; overflow: hidden; isolation: isolate; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 6px 22px rgba(80, 60, 120, .14); }
.al-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.al-sky.al-night { background: linear-gradient(180deg, #2c2f63 0%, #4b4a8a 45%, #7b6ea8 72%); }
.al-sky.al-day { background: linear-gradient(180deg, #8fd0f7 0%, #bfe6fb 50%, #fff2d6 74%); transition: filter 1.2s ease; }
.al-floor { position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(180deg, #e8d6c8, #dcc6b6); border-radius: 50% 50% 0 0 / 22% 22% 0 0; }
.al-night .al-floor { background: linear-gradient(180deg, #8d7ba6, #7a6a95); }
.al-dim { position: absolute; inset: 0; background: #0d0f2e; opacity: 0; transition: opacity 1.4s ease; z-index: 3; }
.al-scene.dark .al-dim { opacity: .55; }
.al-moon { position: absolute; top: 9%; inset-inline-end: 10%; width: 54px; height: 54px; border-radius: 50%; background: #fff4c9; box-shadow: 0 0 0 8px rgba(255, 244, 201, .12), 0 0 40px 10px rgba(255, 240, 190, .35); animation: alFloat 6s ease-in-out infinite; z-index: 4; }
.al-moon::after { content: ''; position: absolute; top: 8px; inset-inline-start: 14px; width: 10px; height: 10px; border-radius: 50%; background: rgba(220, 205, 150, .5); box-shadow: 16px 18px 0 -2px rgba(220, 205, 150, .45); }
.al-tw { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; background: #fff7d6; border-radius: 50%; transform: scale(var(--s)); animation: alTw 2.6s ease-in-out var(--d) infinite; box-shadow: 0 0 6px 1px rgba(255, 247, 214, .8); }
.al-tw.al-late { opacity: 0; z-index: 4; animation: none; transition: opacity 1.6s ease; }
.al-scene.dark .al-tw.al-late { opacity: 1; animation: alTw 2.2s ease-in-out var(--d) infinite; }
@keyframes alTw { 0%, 100% { opacity: .35; transform: scale(var(--s)); } 50% { opacity: 1; transform: scale(calc(var(--s) * 1.5)); } }
@keyframes alFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.al-sun { position: absolute; top: 8%; inset-inline-end: 12%; width: 62px; height: 62px; border-radius: 50%; background: #ffd34d; box-shadow: 0 0 0 10px rgba(255, 211, 77, .2), 0 0 50px 14px rgba(255, 200, 80, .45); transition: transform 1.4s cubic-bezier(.3, 1.2, .5, 1); }
.al-sun i { position: absolute; inset: -22px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 214, 90, .45) 0 10deg, transparent 10deg 30deg); animation: alSpin 18s linear infinite; z-index: -1; }
.st-wake .al-sun { transform: translateY(150px) scale(.8); }
.st-wake .al-sky.al-day { filter: saturate(.55) brightness(.82); }
.al-scene.sunup .al-sun { transform: none; }
.al-scene.sunup .al-sky.al-day { filter: none; }
@keyframes alSpin { to { transform: rotate(360deg); } }
.al-cloud { position: absolute; width: 90px; height: 28px; border-radius: 20px; background: #fff; opacity: .9; animation: alDrift 26s linear infinite; }
.al-cloud::before, .al-cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.al-cloud::before { width: 40px; height: 40px; top: -20px; left: 14px; } .al-cloud::after { width: 30px; height: 30px; top: -13px; left: 44px; }
.al-cloud.c1 { top: 12%; left: -100px; } .al-cloud.c2 { top: 28%; left: -100px; transform: scale(.7); animation-duration: 34s; animation-delay: -12s; } .al-cloud.c3 { top: 6%; left: -100px; transform: scale(.55); animation-duration: 40s; animation-delay: -25s; }
@keyframes alDrift { from { translate: 0 0; } to { translate: 560px 0; } }

.al-stage { position: absolute; inset: 0; z-index: 5; transition: transform .45s cubic-bezier(.3, 1.2, .5, 1), opacity .4s ease; }
.al-stage.al-enter { transform: translateX(-40px) scale(.97); opacity: 0; }
[dir="rtl"] .al-stage.al-enter, html[lang="he"] .al-stage.al-enter { transform: translateX(40px) scale(.97); }

/* the living bunny */
.al-bun { position: absolute; left: 50%; bottom: 7%; width: 200px; margin-left: -100px; z-index: 6; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; }
.al-bun:focus-visible { outline: 3px solid #ffcf6b; outline-offset: 4px; border-radius: 30px; }
.al-bob { position: relative; transform-origin: 50% 100%; animation: alBreath 3.4s ease-in-out infinite; }
.al-bun .charwrap.mid { width: 200px; margin: 0; }
.al-bun::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 2px; height: 14px; border-radius: 50%; background: rgba(60, 40, 90, .18); z-index: -1; animation: alShadow 3.4s ease-in-out infinite; }
@keyframes alBreath { 0%, 100% { transform: translateY(0) scale(1, 1) rotate(0); } 25% { transform: translateY(-3px) scale(.99, 1.025) rotate(-.8deg); } 50% { transform: translateY(-5px) scale(1.01, 1.035) rotate(0); } 75% { transform: translateY(-2px) scale(.995, 1.02) rotate(.8deg); } }
@keyframes alShadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.9); opacity: .75; } }
.al-bun.blink .blinker, .al-bun.blink .eyes-open { transform-box: fill-box; transform-origin: 50% 50%; transform: scaleY(.1); transition: transform .08s ease; }
.al-bun.jump .al-bob { animation: alJump .75s cubic-bezier(.3, 1.3, .5, 1); }
.al-bun.wiggle .al-bob { animation: alWiggle .55s ease; }
.al-bun.squish .al-bob { animation: alSquish .5s ease; }
.al-bun.chew .al-bob { animation: alChew .35s ease 2; }
.al-bun.high .al-bob { animation: alHigh 1s ease; }
.al-bun.stretch .al-bob { animation: alStretch 1.5s ease; }
.al-bun.yawn .al-bob { animation: alYawn 1.2s ease; }
.al-bun.rub .al-bob { animation: alRub .3s ease-in-out infinite; }
.al-bun.hugging .al-bob { transform: scale(1.06, .94); animation: none; transition: transform .25s ease; }
.al-bun.zzz .al-bob { animation-duration: 5s; }
@keyframes alJump { 0% { transform: scale(1, 1); } 18% { transform: scale(1.12, .86); } 45% { transform: translateY(-46px) scale(.92, 1.1); } 70% { transform: translateY(0) scale(1.1, .9); } 85% { transform: scale(.97, 1.03); } 100% { transform: none; } }
@keyframes alWiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-7deg); } 45% { transform: rotate(6deg); } 70% { transform: rotate(-4deg); } }
@keyframes alSquish { 0%, 100% { transform: none; } 40% { transform: scale(1.08, .92); } }
@keyframes alChew { 0%, 100% { transform: none; } 50% { transform: scale(1.04, .96) translateY(2px); } }
@keyframes alHigh { 0% { transform: none; } 25% { transform: translateY(-30px) rotate(-8deg) scale(.95, 1.08); } 50% { transform: translateY(0) rotate(4deg) scale(1.08, .92); } 75% { transform: rotate(-2deg); } 100% { transform: none; } }
@keyframes alStretch { 0% { transform: none; } 35% { transform: scale(.94, 1.16); } 60% { transform: scale(1.05, .95); } 100% { transform: none; } }
@keyframes alYawn { 0%, 100% { transform: none; } 40% { transform: scale(1.03, 1.06) rotate(-3deg); } }
@keyframes alRub { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }

/* clothes worn by the bunny (positions on the 220x270 art) */
.al-wear { position: absolute; pointer-events: none; opacity: 0; transform: scale(.4); transition: opacity .3s ease, transform .45s cubic-bezier(.3, 1.6, .5, 1); z-index: 3; }
.al-wear.on { opacity: 1; transform: none; }
.al-wear svg { width: 100%; height: auto; display: block; }
.al-w-cap { width: 46%; left: 25%; top: 7%; }
.al-w-cap.on { transform: rotate(-12deg); }
.al-w-top { width: 50%; left: 25%; top: 62%; }
.al-w-top svg { opacity: .92; }
.al-bun.sleeping .al-w-top { opacity: 0; }
.al-bun.sleeping .al-w-cap { left: 12%; top: 46%; width: 38%; transform: rotate(-34deg); }

/* tools and items */
.al-tool, .al-item, .al-string, .al-hugbtn, .al-book { -webkit-tap-highlight-color: transparent; touch-action: none; border: 0; background: none; padding: 0; cursor: grab; font: inherit; }
.al-tool { position: absolute; z-index: 8; width: 84px; height: 84px; inset-inline-start: 14px; bottom: 26%; display: grid; place-items: center; border-radius: 26px; background: rgba(255, 255, 255, .85); box-shadow: 0 6px 16px rgba(60, 40, 90, .2); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s; animation: alBeckon 2.4s ease-in-out infinite; }
.al-tool svg { width: 64px; height: 64px; }
.al-tool.held, .al-item.held, .al-string.held { transition: none; animation: none; cursor: grabbing; box-shadow: 0 12px 26px rgba(60, 40, 90, .3); z-index: 20; }
.al-tool.held { background: transparent; box-shadow: none; }
.al-tool.held svg { transform: rotate(-25deg) scale(1.15); filter: drop-shadow(0 4px 6px rgba(40, 30, 80, .35)); }
.al-tray.empty { opacity: 0; pointer-events: none; transition: opacity .4s; }
@keyframes alBeckon { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg) translateY(-4px); } }
.al-ring { position: absolute; z-index: 8; top: 14px; inset-inline-start: 14px; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(60, 40, 90, .18); }
.al-ring svg { position: absolute; inset: 4px; width: 56px; height: 56px; transform: rotate(-90deg); }
.al-ring circle { fill: none; stroke-width: 5; } .al-ring .bg { stroke: #eee6f3; } .al-ring .fg { stroke: #6fcf97; stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset .15s linear; }
.al-hring .fg { stroke: #ff8aa8; }
.al-ring b { font-size: 24px; line-height: 1; }
.al-tray { position: absolute; z-index: 8; inset-inline-start: 10px; top: 14px; display: flex; flex-direction: column; gap: 10px; }
.al-plate { padding: 8px; background: rgba(255, 255, 255, .55); border-radius: 40px; }
.al-item { width: 76px; height: 76px; border-radius: 22px; background: rgba(255, 255, 255, .9); box-shadow: 0 4px 12px rgba(60, 40, 90, .18); display: grid; place-items: center; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; animation: alBeckon 2.6s ease-in-out infinite; }
.al-item:nth-child(2) { animation-delay: -.8s; } .al-item:nth-child(3) { animation-delay: -1.6s; }
.al-item svg { width: 58px; height: 58px; } .al-food { width: 64px; height: 64px; border-radius: 50%; } .al-food img { width: 46px; height: 46px; object-fit: contain; }
.al-item.used { opacity: 0; transform: scale(.3) !important; pointer-events: none; }

/* bath */
.al-tub { position: absolute; z-index: 7; left: 8%; right: 8%; bottom: 4%; height: 30%; border-radius: 22px 22px 60px 60px; background: linear-gradient(180deg, #ffffff, #e8f3fb); box-shadow: inset 0 6px 0 #cfe6f5, 0 6px 14px rgba(60, 40, 90, .15); pointer-events: none; }
.al-tub::before { content: ''; position: absolute; left: 4%; right: 4%; top: -14px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 20% 50%, #fff 0 12px, transparent 13px), radial-gradient(circle at 45% 40%, #fff 0 15px, transparent 16px), radial-gradient(circle at 70% 55%, #fff 0 13px, transparent 14px), radial-gradient(circle at 88% 45%, #fff 0 10px, transparent 11px); }
.st-bath .al-bun { bottom: 14%; }
.al-bubbles { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.al-bub { position: absolute; left: var(--x); bottom: 20%; width: 62px; height: 62px; margin-left: -31px; border-radius: 50%; border: 0; padding: 0; pointer-events: auto; cursor: pointer; background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95) 0 7px, rgba(255, 255, 255, .25) 8px, rgba(180, 225, 255, .35) 60%, rgba(255, 190, 240, .45) 100%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); transform: scale(var(--s)); animation: alRiseB var(--du) linear var(--dl) infinite; -webkit-tap-highlight-color: transparent; touch-action: none; }
.al-bub.pop { animation: alPop .3s ease forwards; }
@keyframes alRiseB { 0% { transform: translateY(0) scale(var(--s)); opacity: 0; } 8% { opacity: 1; } 50% { transform: translate(14px, -120px) scale(var(--s)); } 92% { opacity: 1; } 100% { transform: translate(-8px, -250px) scale(var(--s)); opacity: 0; } }
@keyframes alPop { to { transform: scale(1.7); opacity: 0; } }

/* story book */
.al-book { position: absolute; z-index: 8; left: 50%; top: 10%; width: 150px; height: 112px; margin-left: -75px; perspective: 700px; cursor: pointer; }
.st-story .al-bun { bottom: 4%; width: 170px; margin-left: -85px; } .st-story .al-bun .charwrap.mid { width: 170px; }
.al-bk-back, .al-bk-cover { position: absolute; inset: 0; border-radius: 10px 14px 14px 10px; }
.al-bk-back { background: #fffaf0; box-shadow: 0 6px 16px rgba(30, 20, 60, .3), inset 0 0 0 3px #f1e3cc; display: grid; place-items: center; padding: 8px; }
.al-bk-cover { background: linear-gradient(135deg, #8a7fe0, #6b5fc9); transform-origin: 0 50%; transition: transform .8s cubic-bezier(.4, 1.2, .5, 1); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(30, 20, 60, .35); backface-visibility: hidden; animation: alBeckon 2.4s ease-in-out infinite; }
.al-bk-moon svg { width: 54px; height: 54px; }
.al-book.open .al-bk-cover { transform: rotateY(-170deg); animation: none; }
.al-book.open { width: 230px; margin-left: -115px; transition: width .5s ease, margin .5s ease; }
.al-pg { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; transition: opacity .4s ease .3s; }
.al-book.open .al-pg { opacity: 1; }
.al-book.turn .al-pg { animation: alTurn .45s ease; }
@keyframes alTurn { 0% { transform: rotateY(0); opacity: 1; } 50% { transform: rotateY(80deg); opacity: .2; } 100% { transform: none; opacity: 1; } }
.al-pgpic { font-size: 30px; line-height: 1; } .al-pgtx { font-size: 16px; line-height: 1.35; color: #4b4063; text-align: center; font-weight: 600; }

/* lamp */
.al-lamp { position: absolute; z-index: 7; inset-inline-start: 16px; bottom: 22%; width: 70px; pointer-events: none; }
.al-lamp svg { width: 100%; height: auto; display: block; position: relative; z-index: 2; }
.al-glow { position: absolute; left: 50%; top: 18%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 230, 160, .7), rgba(255, 230, 160, 0) 70%); transition: opacity 1.2s ease, transform 1.2s ease; z-index: 1; }
.al-scene.dark .al-glow { opacity: .55; transform: scale(.6); }
.al-scene.dark .al-lamp svg path { fill: #e9c56f; }
.al-string { position: absolute; z-index: 9; inset-inline-start: 74px; bottom: calc(22% + 20px); width: 64px; height: 150px; display: flex; flex-direction: column; align-items: center; cursor: grab; }
.al-cord { width: 3px; height: 60px; background: #8c7aa8; border-radius: 2px; transition: height .35s cubic-bezier(.3, 1.8, .5, 1); }
.al-knob { width: 30px; height: 30px; border-radius: 50%; background: #ffcf6b; box-shadow: 0 0 0 6px rgba(255, 207, 107, .3), 0 3px 8px rgba(0, 0, 0, .2); animation: alKnob 1.6s ease-in-out infinite; }
.al-string.held .al-cord { transition: none; }
@keyframes alKnob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* hug */
.al-hugbtn { position: absolute; z-index: 8; inset-inline-end: 14px; bottom: 20px; width: 76px; height: 76px; border-radius: 50%; background: #ffe1ea; box-shadow: 0 0 0 6px rgba(255, 138, 168, .25), 0 6px 14px rgba(60, 40, 90, .2); display: grid; place-items: center; animation: alBeckon 2s ease-in-out infinite; }
.al-hugbtn svg { width: 44px; height: 44px; }
.st-night .al-ring, .st-night .al-hring { inset-inline-start: auto; inset-inline-end: 14px; top: 14px; }

/* wake */
.al-blanket { position: absolute; z-index: 7; left: 50%; bottom: 4%; width: 240px; margin-left: -120px; pointer-events: none; transition: transform .9s cubic-bezier(.4, 1.3, .5, 1), opacity .9s ease; }
.al-blanket.off { transform: translate(140px, 40px) rotate(18deg); opacity: 0; }

/* fx */
.al-fx { position: absolute; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.al-p { position: absolute; left: var(--x); top: var(--y); font-size: 22px; line-height: 1; opacity: 0; transform: translate(-50%, -50%); }
.al-p.go { animation: alPart 1.1s cubic-bezier(.2, .8, .4, 1) var(--dl) forwards; }
@keyframes alPart { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(var(--r)); } }
.al-p.al-foam { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 4px, rgba(235, 248, 255, .9) 5px, rgba(200, 230, 255, .7)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9); }
.al-p.al-foam.go { animation-duration: 1.3s; }
.al-p.al-drop { width: 12px; height: 16px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #7cc8f2; }
.al-p.al-crumb { width: 8px; height: 8px; border-radius: 2px; background: #f39a4a; }
.al-p.al-zz { font-weight: 800; color: #fff; font-size: 26px; text-shadow: 0 2px 6px rgba(40, 30, 90, .4); }
.al-p.al-zz.go { animation-duration: 1.6s; }
.al-ghost { position: absolute; z-index: 25; left: var(--gx); top: var(--gy); font-size: 40px; opacity: 0; pointer-events: none; transform: translate(-20%, -10%); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.al-ghost.show { opacity: 1; }
.al-ghost.g-rub { animation: alGRub 1.6s ease-in-out 3; }
.al-ghost.g-drag, .al-ghost.g-pull { animation: alGDrag 2s ease-in-out 3; }
.al-ghost.g-tap { animation: alGTap 1.1s ease-in-out 4; }
.al-ghost.g-hold { animation: alGHold 1.8s ease-in-out 3; }
@keyframes alGRub { 0%, 100% { left: var(--gx); top: var(--gy); } 50% { left: var(--gx2); top: var(--gy2); } }
@keyframes alGDrag { 0% { left: var(--gx); top: var(--gy); opacity: 0; } 15% { opacity: 1; transform: translate(-20%, -10%) scale(.9); } 75% { left: var(--gx2); top: var(--gy2); opacity: 1; } 100% { left: var(--gx2); top: var(--gy2); opacity: 0; } }
@keyframes alGTap { 0%, 100% { transform: translate(-20%, -10%) scale(1); } 50% { transform: translate(-20%, -10%) scale(.8); } }
@keyframes alGHold { 0% { transform: translate(-20%, -10%) scale(1); } 30%, 80% { transform: translate(-20%, -10%) scale(.82); } 100% { transform: translate(-20%, -10%) scale(1); } }

/* card + nav */
.al-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 24px; background: var(--card, #fff); box-shadow: var(--shadow, 0 4px 14px rgba(80, 60, 120, .1)); }
.al-cpic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #f5effa; } .al-cpic svg { width: 30px; height: 30px; }
.al-ctx { flex: 1; min-width: 0; } .al-line { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--ink, #3b3350); }
.al-hint { margin: 3px 0 0; font-size: 15px; color: #8a7fa3; transition: color .3s; } .al-hint.ok { color: #2f8a5f; font-weight: 700; animation: alPopIn .4s ease; }
@keyframes alPopIn { 0% { transform: scale(.9); } 60% { transform: scale(1.05); } 100% { transform: none; } }
.al-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.al-me { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 58px; padding: 0 18px 0 14px; border-radius: 999px; border: 0; background: #fff; box-shadow: 0 0 0 2px var(--lilac2, #ead9e3) inset; font: inherit; font-size: 18px; font-weight: 600; color: var(--ink-2, #5a5070); cursor: pointer; transition: transform .2s; }
.al-me svg { width: 24px; height: 24px; opacity: .35; } .al-me:active { transform: scale(.95); }
.al-me.on { background: #e9f6ef; box-shadow: 0 0 0 2px #b9dcc9 inset; color: #2f6a52; animation: alPopIn .4s ease; } .al-me.on svg { opacity: 1; }
.al-next { opacity: .45; transform: scale(.92); transition: opacity .3s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.al-next svg { width: 22px; height: 22px; } [dir="rtl"] .al-next svg, html[lang="he"] .al-next svg { transform: scaleX(-1); }
.al-next.ready { opacity: 1; transform: none; animation: alReady 1.6s ease-in-out infinite; }
@keyframes alReady { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 180, 90, .55); } 50% { box-shadow: 0 0 0 12px rgba(255, 180, 90, 0); } }

/* end card */
.al-end { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(40, 30, 80, .35); border-radius: 24px; overflow: hidden; }
.al-end[hidden] { display: none; }
.al-endcard { position: relative; width: min(92%, 360px); padding: 18px 16px 16px; border-radius: 30px; background: #fff; text-align: center; box-shadow: 0 16px 40px rgba(40, 30, 80, .3); animation: alCardIn .55s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes alCardIn { 0% { transform: translateY(40px) scale(.85); opacity: 0; } 100% { transform: none; opacity: 1; } }
.al-endbun { width: 150px; margin: -6px auto 0; animation: alBreath 3.4s ease-in-out infinite; transform-origin: 50% 100%; } .al-endbun .charwrap.mid { width: 150px; margin: 0; }
.al-endcard h2 { font-size: 21px; margin: 6px 0 10px; color: var(--ink, #3b3350); }
.al-chart { background: #f7f2fb; border-radius: 20px; padding: 10px 8px; } .al-chart b { display: block; font-size: 15px; color: #7a6f94; margin-bottom: 6px; }
.al-week { display: flex; justify-content: space-between; gap: 4px; }
.al-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 14px; background: #fff; }
.al-day.today { box-shadow: 0 0 0 2px #ffcf6b inset; } .al-day.fut { opacity: .5; }
.al-day i { font-style: normal; font-size: 13px; color: #8a7fa3; font-weight: 700; }
.al-day em { font-style: normal; width: 26px; height: 26px; display: grid; place-items: center; font-size: 18px; border-radius: 50%; background: #f1eaf7; }
.al-day em.pop { animation: alSlot .6s cubic-bezier(.3, 1.8, .5, 1); background: #fff3cf; }
@keyframes alSlot { 0% { transform: scale(.2); } 100% { transform: none; } }
.al-fly { position: absolute; left: 50%; top: 32%; font-size: 54px; line-height: 1; transform: translate(-50%, -50%); transition: left 1s cubic-bezier(.5, 0, .3, 1), top 1s cubic-bezier(.5, 0, .3, 1), font-size 1s ease, opacity .3s; pointer-events: none; z-index: 3; animation: alPopIn .5s ease; }
.al-fly.go { left: var(--tx); top: var(--ty); font-size: 20px; }
.al-endnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; align-items: center; }
.al-again { min-height: 56px; padding: 0 18px; border-radius: 999px; border: 0; background: #f3edf8; font: inherit; font-size: 17px; font-weight: 600; color: #6a5f85; cursor: pointer; }
.al-cf { position: absolute; top: -12px; left: var(--x); width: 9px; height: 14px; background: var(--c); border-radius: 2px; animation: alFall var(--du) cubic-bezier(.3, .6, .5, 1) var(--dl) forwards; z-index: 50; pointer-events: none; }
@keyframes alFall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 760px) rotate(var(--r)); opacity: .9; } }

/* reduced motion: no loops, short transitions; every interaction still works */
.al-rm *, html.rm .al * { animation-iteration-count: 1 !important; }
.al-rm .al-bob, .al-rm .al-moon, .al-rm .al-tw, .al-rm .al-cloud, .al-rm .al-sun i, .al-rm .al-tool, .al-rm .al-item, .al-rm .al-knob, .al-rm .al-hugbtn, .al-rm .al-bk-cover, .al-rm .al-next.ready, .al-rm .al-endbun, .al-rm .al-bun::after, .al-rm .al-ghost { animation: none !important; }
.al-rm .al-bub { animation-duration: 14s !important; animation-iteration-count: infinite !important; }
@media (prefers-reduced-motion: reduce) {
  .al-bob, .al-moon, .al-tw, .al-cloud, .al-sun i, .al-tool, .al-item, .al-knob, .al-hugbtn, .al-bk-cover, .al-next.ready, .al-endbun, .al-bun::after, .al-ghost { animation: none !important; }
  .al-bub { animation-duration: 14s !important; }
  .al-stage { transition-duration: .01s; }
}
@media (max-height: 700px) { .al-scene { height: clamp(260px, 42vh, 340px); } .al-line { font-size: 16px; } }
