/* Hareket: ortak anahtar kareler, menü ısırığı, adım sahneleri */
@keyframes float { 50% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes rise { 50% { transform: translateY(-10px); } }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(16deg); } 20% { transform: rotate(-14deg); } 30% { transform: rotate(10deg); } 40% { transform: rotate(-6deg); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes in { from { opacity: 0; transform: translateY(16px); } }

/* Menü: aktif bölümün solundaki lokma kıt kıt kıt yenir */
.nom-bite { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: nomA 2.4s cubic-bezier(.5, 0, .2, 1.4) infinite; }
.nom-bite.b2 { animation-name: nomB; }
.nom-bite.b3 { animation-name: nomC; }
@keyframes nomA { 0%, 12% { transform: scale(0); } 18%, 86% { transform: scale(1); } 94%, 100% { transform: scale(0); } }
@keyframes nomB { 0%, 34% { transform: scale(0); } 40%, 86% { transform: scale(1); } 94%, 100% { transform: scale(0); } }
@keyframes nomC { 0%, 56% { transform: scale(0); } 62%, 86% { transform: scale(1); } 94%, 100% { transform: scale(0); } }
.menu a.is-active .nom svg { animation: chew 2.4s ease-in-out infinite; }
@keyframes chew { 12%, 34%, 56% { transform: translateY(0) scale(1); } 17%, 39%, 61% { transform: translateY(-1.5px) scale(.92); } }

/* Sahneler yalnızca görünürken oynar */
.scene * { animation-play-state: paused !important; }
.scene.is-playing * { animation-play-state: running !important; }

/* 1 · Dokunuş */
.v-tap { position: relative; width: 74px; height: 124px; border-radius: 16px; background: #fff; box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); padding: 12px 9px; display: grid; gap: 6px; align-content: start; }
.v-tap i { display: block; height: 7px; border-radius: 4px; background: #EEE2DC; }
.v-tap i.s { width: 60%; }
.v-tap .thumb { height: 36px; border-radius: 9px; background: url("../assets/photos/dish-bowl.webp") center / cover; }
.v-tap .bt { margin-top: 4px; height: 16px; border-radius: 99px; background: var(--red); animation: press 2.2s ease-in-out infinite; }
.v-tap .finger { position: absolute; left: 50%; bottom: 8px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: tap 2.2s ease-in-out infinite; }
@keyframes press { 40%, 55% { transform: scale(.94); filter: brightness(1.2); } }
@keyframes tap { 0% { transform: translate(30px, 30px); opacity: 0; } 30% { transform: translate(-11px, -2px); opacity: 1; } 45% { transform: translate(-11px, -2px) scale(.85); box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 18px rgba(255,255,255,0); } 100% { transform: translate(-11px, -2px); opacity: 0; } }

/* 2 · Zil */
.v-bell { position: relative; width: 78px; height: 78px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--red); box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); }
.v-bell svg { width: 36px; height: 36px; animation: ring 1.6s ease-in-out infinite; transform-origin: 50% 12%; }
.v-bell::before, .v-bell::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); animation: wave 1.6s ease-out infinite; }
.v-bell::after { animation-delay: .5s; }
.v-bell .badge { position: absolute; top: -6px; right: -34px; padding: 5px 9px; border-radius: 99px; background: var(--red-2); color: #fff; font: 700 11px/1 var(--font-text); white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); animation: pop 1.6s ease-in-out infinite; }
@keyframes wave { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes pop { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } }

/* 3 · Fiş */
.v-print { position: relative; width: 112px; height: 120px; }
.v-print .printer { position: absolute; top: 8px; left: 0; right: 0; height: 40px; border-radius: 12px; background: #fff; box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); z-index: 2; }
.v-print .printer::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 9px; height: 4px; border-radius: 4px; background: #2B1415; }
.v-print .printer i { position: absolute; right: 12px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: #2ECC71; animation: blink 1s steps(2) infinite; }
.v-print .paper { position: absolute; left: 24px; right: 24px; top: 40px; height: 74px; background: #FFFDF8; border-radius: 0 0 6px 6px; padding: 10px 8px; display: grid; gap: 5px; align-content: start; animation: printOut 2.8s ease-in-out infinite; transform-origin: top; }
.v-print .paper i { height: 4px; border-radius: 3px; background: #D9CBC6; }
.v-print .paper i:nth-child(2) { width: 70%; }
.v-print .paper i:nth-child(4) { width: 50%; background: var(--red); }
@keyframes printOut { 0% { clip-path: inset(0 0 100% 0); } 60%, 85% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes blink { 50% { opacity: .2; } }

/* 4 · Yol */
.v-ride { position: relative; width: 100%; height: 100%; }
.v-ride .road { position: absolute; left: 10%; right: 10%; bottom: 40px; height: 3px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 12px, transparent 12px 22px); animation: road .8s linear infinite; }
.v-ride .scooter { position: absolute; left: 22%; bottom: 44px; width: 52px; height: 52px; color: #fff; animation: bob .5s ease-in-out infinite alternate, drive 3.4s ease-in-out infinite; }
.v-ride .pin { position: absolute; right: 13%; bottom: 46px; width: 30px; height: 30px; color: #fff; animation: pinDrop 3.4s ease-in-out infinite; }
@keyframes road { to { background-position: -22px 0; } }
@keyframes bob { to { transform: translateY(-3px); } }
@keyframes drive { 0% { left: 6%; } 70%, 100% { left: 50%; } }
@keyframes pinDrop { 0%, 60% { transform: translateY(0); } 70% { transform: translateY(-8px); } 80% { transform: translateY(0); } }

/* 5 · Puan */
.v-points { position: relative; width: 176px; height: 124px; }
.v-points .card { position: absolute; left: 0; right: 0; bottom: 8px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, var(--red-2), var(--red-deep)); box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); color: #fff; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; gap: 6px; white-space: nowrap; }
.v-points .card small { font: 600 10px/1 var(--font-text); opacity: .8; }
.v-points .card b { font: 800 20px/1 var(--font); letter-spacing: -.02em; }
.v-points .coin { position: absolute; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #F6C453; box-shadow: inset 0 -3px 0 #D99A2B; display: grid; place-items: center; color: #8A5A0B; font: 800 12px/1 var(--font); animation: dropIn 2.4s ease-in infinite; }
.v-points .coin:nth-child(1) { left: 96px; }
.v-points .coin:nth-child(2) { left: 122px; animation-delay: .5s; }
.v-points .coin:nth-child(3) { left: 148px; animation-delay: 1s; }
@keyframes dropIn { 0% { transform: translateY(-16px); opacity: 0; } 20% { opacity: 1; } 55% { transform: translateY(46px) scale(1); opacity: 1; } 70%, 100% { transform: translateY(52px) scale(.4); opacity: 0; } }

/* Kurulum 1 · Menü aktarımı */
.v-menu { width: 78%; display: grid; gap: 8px; }
.v-menu .row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 10px 20px -14px rgba(60,0,10,.5); animation: slideRow 3.6s var(--ease) infinite; }
.v-menu .row:nth-child(2) { animation-delay: .25s; }
.v-menu .row:nth-child(3) { animation-delay: .5s; }
.v-menu .row img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.v-menu .row span { flex: 1; display: grid; gap: 4px; }
.v-menu .row span i { height: 5px; border-radius: 3px; background: #E9DCD7; }
.v-menu .row span i + i { width: 55%; }
.v-menu .row b { font: 700 11px/1 var(--font-text); color: var(--red); }
@keyframes slideRow { 0% { transform: translateX(-120%); opacity: 0; } 18%, 82% { transform: none; opacity: 1; } 100% { transform: translateX(120%); opacity: 0; } }

/* Kurulum 2 · Marka rengi */
.v-theme { display: flex; align-items: center; gap: 16px; }
.v-theme .mini { width: 70px; height: 128px; border-radius: 16px; background: #fff; box-shadow: 0 14px 26px -14px rgba(60,0,10,.6); overflow: hidden; }
.v-theme .mini .top { height: 52px; animation: theme 6s steps(1) infinite; }
.v-theme .mini i { display: block; margin: 8px 9px 0; height: 6px; border-radius: 3px; background: #EEE2DC; }
.v-theme .mini .pill { margin: 10px 9px 0; height: 14px; border-radius: 99px; animation: theme 6s steps(1) infinite; }
.v-theme .dots { display: grid; gap: 8px; }
.v-theme .dots span { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.v-theme .dots span:nth-child(1) { background: #B3121F; animation: ringOn 6s steps(1) infinite; }
.v-theme .dots span:nth-child(2) { background: #1F6B45; animation: ringOn 6s steps(1) -4.5s infinite; }
.v-theme .dots span:nth-child(3) { background: #2A2A2A; animation: ringOn 6s steps(1) -3s infinite; }
.v-theme .dots span:nth-child(4) { background: #C8641A; animation: ringOn 6s steps(1) -1.5s infinite; }
@keyframes theme { 0% { background: #B3121F; } 25% { background: #1F6B45; } 50% { background: #2A2A2A; } 75% { background: #C8641A; } }
@keyframes ringOn { 0% { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); } 25%, 100% { box-shadow: 0 0 0 3px #fff; } }

/* Kurulum 3 · Cihaz kodu */
.v-code { display: grid; justify-items: center; gap: 12px; }
.v-code .boxes { display: flex; gap: 5px; }
.v-code .boxes span { width: 24px; height: 32px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px #E6D6D0; display: grid; place-items: center; font: 700 15px/1 var(--font); color: var(--ink); }
.v-code .boxes span b { opacity: 0; animation: digit 4s steps(1) infinite; }
.v-code .boxes span:nth-child(2) b { animation-delay: .3s; }
.v-code .boxes span:nth-child(3) b { animation-delay: .6s; }
.v-code .boxes span:nth-child(4) b { animation-delay: .9s; }
.v-code .boxes span:nth-child(5) b { animation-delay: 1.2s; }
.v-code .boxes span:nth-child(6) b { animation-delay: 1.5s; }
.v-code .ok { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: #1F7A45; color: #fff; font: 600 12px/1 var(--font-text); animation: okIn 4s var(--ease) infinite; }
.v-code .ok svg { width: 14px; height: 14px; }
@keyframes digit { 0% { opacity: 0; } 10%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes okIn { 0%, 45% { transform: scale(.6); opacity: 0; } 55%, 90% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }

/* Kurulum 4 · Yayın */
.v-live { display: grid; justify-items: center; gap: 12px; }
.v-live .switch { width: 58px; height: 32px; border-radius: 99px; background: #E6D6D0; position: relative; animation: swBg 4s steps(1) infinite; }
.v-live .switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); animation: swKnob 4s var(--ease) infinite; }
.v-live .note { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 14px; background: #fff; box-shadow: 0 14px 26px -14px rgba(60,0,10,.6); font: 600 12px/1.2 var(--font-text); animation: noteIn 4s var(--ease) infinite; }
.v-live .note svg { width: 26px; height: 26px; color: var(--red); }
@keyframes swBg { 0% { background: #E6D6D0; } 25%, 100% { background: #1F7A45; } }
@keyframes swKnob { 0%, 15% { transform: translateX(0); } 25%, 100% { transform: translateX(26px); } }
@keyframes noteIn { 0%, 35% { transform: translateY(14px); opacity: 0; } 45%, 90% { transform: none; opacity: 1; } 100% { opacity: 0; } }
